/* quants.at - one small stylesheet, always light */
[hidden] { display: none !important; }   /* 21 Nov: hidden always wins (the phone's list cards said display: block) */
:root {
  --bg: #ffffff; --fg: #1d1d1b; --muted: #6b6a66; --line: #e3e0d8; --card: #ffffff;
  --accent: #1f5f73; --accent-soft: #e5eff2; --code: #f2f0ea;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* always light, also on devices in dark mode (Michael, 15 Nov) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
/* Imprint and Privacy always at the bottom of the window, however tall it is (16 Nov) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > footer, body > header { flex: none; width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 2.2rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
p, li { max-width: 46rem; }
code { background: var(--code); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; word-break: break-all; }
.small, .sub, .crumb, .facts, .lead { color: var(--muted); }
.small { font-size: .9rem; }
.note { color: var(--muted); font-size: .85rem; }   /* "> " in the content files */

/* header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.logo-line { display: flex; align-items: flex-end; gap: .45rem; }
.tagline { color: var(--muted); font-size: .68rem; font-weight: 400; margin-bottom: 3px; }   /* 26 Nov: a bit smaller (was .74rem) */   /* "curated with care": a footnote to the bookshelf */
.logo { display: flex; line-height: 0; border-radius: 50%; transition: transform .15s; }
.logo:hover { transform: scale(1.06); }
/* the menu button: three lines, like GitHub's; the panel opens under it */
.menu { position: relative; flex: none; margin: 0; }   /* not the fold-out space of details below */
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
                width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--accent); border-color: var(--accent); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; z-index: 10; padding: .35rem;
              background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.menu-panel a { display: block; padding: .45rem .7rem; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: .92rem; }
.menu-panel a:hover { background: var(--accent-soft); }
.menu-panel a[aria-current] { font-weight: 600; } .menu-panel a[aria-current]::after { content: "  ✓"; color: var(--accent); }
/* the language pill (21 Nov): EN | DE, the current one in teal; left of the menu button */
.top-right { display: flex; align-items: center; gap: .55rem; }
.lang-pill { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 32px; padding: 3px;
             box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.lang-pill a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
               min-width: 2.3rem; padding: 0 .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
               letter-spacing: .06em; color: var(--muted); text-decoration: none; transition: color .2s; }
.lang-pill a:hover { color: var(--accent); }
.lang-pill .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
                    border-radius: 999px; background: var(--accent); transition: transform .22s ease; }
.lang-pill.de .thumb { transform: translateX(100%); }
.lang-pill a[aria-current], .lang-pill a[aria-current]:hover { color: #fff; }
/* 21 Nov: the pill sits at the top of the menu, on every screen */
.menu-lang { display: flex; justify-content: center; padding: .35rem .3rem .55rem;
             border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.menu-lang a[aria-current]::after { content: none; }   /* not the menu's tick */
.menu-lang a:hover { background: none; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: .35rem .3rem; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--accent); }
/* the language switch: EN | DE, the current one marked */
nav .lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
nav .lang a { padding: .1rem .45rem; font-size: .8rem; font-weight: 600; letter-spacing: .03em; }
nav .lang a + a { border-left: 1px solid var(--line); }
nav .lang a[aria-current] { background: var(--accent); color: var(--bg); }
.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: .55rem; padding-bottom: .9rem; color: var(--muted);
        font-size: .78rem; text-align: center; }   /* 21 Nov: small and quiet, it is a legal detail */
.foot a { color: var(--muted); text-decoration: none; } .foot a:hover { color: var(--accent); }
.foot p { max-width: none; }   /* centred across the whole width, not in a 46rem paragraph */
.feedback { margin-top: 2.5rem; margin-bottom: 0; text-align: center; color: var(--muted); font-size: .85rem; }   /* the start page: one line just above the footer line */
.feedback + .foot { margin-top: .5rem; }

/* landing */
.hero h1 { font-size: 2.6rem; max-width: 40rem; margin-top: 3rem; }
.hero p { font-size: 1.15rem; color: var(--muted); }
.explore { margin: 2.2rem 0 3rem; }
.card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-decoration: none;
        color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.8rem;
        transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card-text { display: flex; flex-direction: column; gap: .3rem; }
.kicker { color: var(--accent); font-weight: 700; font-size: 1.35rem; }
.kicker::after { content: " →"; }
.big { font-size: 1.05rem; }
.shelf { width: 140px; flex: none; fill: var(--accent); opacity: .85; }
.shelf .board { fill: var(--muted); }
.block { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }   /* a page that starts with a block: no line above it */
.block ol { padding-left: 1.3rem; } .block li { margin: .45rem 0; }
/* How it works: reports -> libraries -> Claude <-> you, top to bottom */
.flow { width: min(100%, 26rem); margin-top: 1.6rem; text-align: center; line-height: 1.3; }
.flow .box { width: 14rem; max-width: 100%; margin: 0 auto; background: var(--accent-soft); border-radius: 10px; padding: .7rem 1rem; }
.flow .arrow { display: grid; grid-template-columns: 1fr auto 1fr; gap: .7rem; align-items: center;
               color: var(--muted); font-size: 1.15rem; padding: .35rem 0; }
.flow .arrow .l { text-align: right; } .flow .arrow .r { text-align: left; }
.flow small { color: var(--muted); font-size: .85rem; }

/* list of libraries */
.filter { width: 100%; max-width: 420px; padding: .65rem .9rem; font: inherit; border: 1px solid var(--line);
          border-radius: 10px; background: var(--card); color: var(--fg); margin: 1rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: .5rem .6rem; }
td { border-bottom: 1px solid var(--line); padding: .8rem .6rem; vertical-align: top; }
td[data-label="Years"] { white-space: nowrap; }
.list td:nth-child(2) { font-variant-numeric: tabular-nums; }   /* 26 Nov: years line up (both languages) */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list td:first-child a { font-weight: 650; }
.sub { display: block; font-size: .88rem; line-height: 1.4; margin-top: .2rem; }
.btn { font: inherit; font-size: .9rem; padding: .4rem .9rem; border-radius: 8px; border: 1px solid var(--accent);
       background: transparent; color: var(--accent); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent); color: var(--bg); }
.list .btn { font-size: .8rem; padding: .22rem .6rem; border-color: var(--line); border-radius: 6px; }   /* 20 Nov: quieter in the list, one per library */
.list .btn:hover { border-color: var(--accent); }

/* one library */
.crumb { margin: 2rem 0 0; } .crumb a::before { content: "← "; }
.crumb + h1 { margin-top: 1.8rem; }   /* 26 Nov: more room between "← Overview" and the name */
.connectbox { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--card);
              border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin: 1.4rem 0; }
.connectbox span { color: var(--muted); font-size: .9rem; }
/* one library: light, one thought per block */
h1.lib-name { margin: 1.8rem 0 .4rem; }
/* 26 Nov: three sizes only on a library page: the name; everything you read (facts, the sentence,
   the documents); small labels. Even gaps between the blocks. */
.facts { color: var(--muted); font-size: inherit; margin: 0; }
.punch { font-size: inherit; line-height: 1.6; max-width: 34rem; margin: 1.8rem 0; }
.lib-connect { margin: 0 0 2.6rem; }
.lib-connect .btn { font-size: inherit; padding: .45rem 1.1rem; }
.inside { max-width: 34rem; margin: 0 0 3rem; }
.inside h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 .5rem; }
.inside h2.full { font-size: inherit; font-weight: 600; color: var(--fg); text-transform: none; letter-spacing: 0; margin: 0 0 .7rem; }   /* 24 Nov: "Documents: <full legal name>", a long name in capitals looked loud */
.inside p { margin: .2rem 0; }
ul.contents { list-style: none; padding: 0; margin: 0; }
ul.contents li { display: flex; justify-content: space-between; gap: 1.2rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
ul.contents li:first-child { border-top: 1px solid var(--line); }
ul.contents li span:first-child { min-width: 0; }
.when { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }   /* wraps rather than overflow */
.alldocs { margin: 0 0 3.4rem; }
.signature { color: var(--muted); font-size: .88rem; font-style: italic; margin: 0; }
.muted { color: var(--muted); }
.legal { max-width: 40rem; } .legal h1 { font-size: 1.8rem; margin-top: 2.2rem; } .legal h2 { font-size: 1.1rem; margin-top: 1.8rem; }
details { margin-top: 1rem; } summary { cursor: pointer; color: var(--accent); }
table.docs { width: auto; max-width: 34rem; margin-top: .6rem; font-size: .85rem; }
.docs th, .docs td { padding: .28rem .9rem .28rem 0; }

/* connect pop-up */
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--fg);
         max-width: 480px; width: calc(100% - 40px); padding: 1.2rem 1.4rem; }
dialog h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
dialog::backdrop { background: rgba(0,0,0,.35); }
.copy { display: flex; gap: .5rem; margin: .6rem 0 1rem; }
.copy input { flex: 1; min-width: 0; font: inherit; font-size: 16px; /* 16px: iPhone Safari zooms into smaller fields */ padding: .5rem .7rem; border: 1px solid var(--line);
              border-radius: 8px; background: var(--bg); color: var(--fg); }
.copy button, .close { font: inherit; font-size: .9rem; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--accent);
                       background: var(--accent); color: var(--bg); cursor: pointer; }
.close { background: transparent; color: var(--accent); }

/* phones: the table becomes cards */
@media (max-width: 680px) {
  body { font-size: 16px; }
  dialog { padding: 1rem 1.1rem; }
  nav { gap: 1rem; }
  .hero h1 { font-size: 2rem; }
  .card { flex-direction: column-reverse; align-items: flex-start; }
  .shelf { width: 110px; }
  .list thead { display: none; }
  .list tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .8rem; padding: .4rem .2rem; background: var(--card); }
  .list td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem .8rem; text-align: right; }
  .list td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; }
  .list td:first-child { display: block; text-align: left; } .list td:first-child::before { content: none; }
  .list td:last-child { justify-content: flex-end; }
}

/* the start page: boxes. The pick: one wide box in three parts; then three equal doors */
.card.pick { display: grid; grid-template-columns: minmax(15rem, 1fr) 2fr auto; align-items: center; gap: 2rem; text-align: left;
             margin: 2.4rem 0 1.2rem; padding: 1.6rem 1.8rem; min-height: 8.5rem; }
.pick-name { color: var(--accent); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.pick-name::after { content: " →"; }
.pick-line { font-size: 1.05rem; line-height: 1.5; max-width: 34rem; }
.pick-label { color: var(--muted); font-size: .82rem; white-space: nowrap; align-self: start; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0 0 3rem; }
.card.door { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
             text-align: left; gap: 1.2rem; min-height: 9rem; padding: 1.4rem 1.5rem; }
.door-name { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.door-name::after { content: " →"; }
.door-line { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.text { max-width: 40rem; } .text h1 { margin-top: 2.2rem; }
.text li { margin: .7rem 0; }
.text h2 { font-size: 1.35rem; margin: 3rem 0 .8rem; }   /* the sections, with a little more air */
.text h2:first-child { margin-top: 2.2rem; }   /* a little air between the steps and points */
@media (max-width: 820px) {
  .card.pick { grid-template-columns: 1fr; gap: .7rem; min-height: 0; }
  .pick-label { order: -1; }
  .doors { grid-template-columns: 1fr; }
  .card.door { min-height: 0; flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
}

/* the start page (16 Nov): two and two. Explore | timeline, Connect Claude | How it works */
.home { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2.8rem 0 3rem; }
.home .card.door { min-height: 9rem; }
.card.tl-card { display: block; padding: 1.5rem 1.6rem 1.1rem; }
.card.tl-card:hover { border-color: var(--line); transform: none; }   /* not a link itself: its rows are */
@media (max-width: 820px) {
  .home { grid-template-columns: 1fr; margin-top: 1.6rem; }
  .home .card.door { min-height: 0; }
  .card.tl-card { padding: 1.2rem 1.6rem .9rem 1rem; }   /* room for the last year on the right */
}
/* the start page's top: a title with an example conversation, beside a timeline of the libraries */
.hero2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; margin: 2.8rem 0 2.4rem; }
.hero-title { font-size: 2.3rem; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .3rem; }
.hero-sub { color: var(--muted); font-size: 1.15rem; margin: 0 0 1.5rem; }   /* "curated with care" */
.example { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; max-width: 27rem; }
.ex-q { margin: 0 0 .8rem auto; width: fit-content; max-width: 90%; background: var(--accent-soft); border-radius: 12px 12px 3px 12px;
        padding: .5rem .8rem; font-size: .95rem; }
.ex-a { margin: 0; font-weight: 600; font-size: 1.05rem; }
.ex-src { margin: .25rem 0 0; font-size: .82rem; color: var(--muted); }
.ex-src a { color: var(--muted); }
.timeline { display: flex; flex-direction: column; gap: .55rem; }
.tl-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: center; text-decoration: none; color: var(--fg); }
.tl-name { font-size: .82rem; line-height: 1.25; text-align: right; color: var(--muted); }
.tl-row:hover .tl-name { color: var(--accent); }
.tl-track { position: relative; height: 8px; background: var(--line); border-radius: 4px; opacity: .9; }
.tl-bar { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; transition: filter .15s; }
.tl-row:hover .tl-bar { filter: brightness(1.25); }
.tl-axis .tl-track { background: none; height: 1.1rem; }
.tl-axis .tl-track span { position: absolute; transform: translateX(-50%); font-size: .72rem; color: var(--muted); top: 0; }
@media (max-width: 820px) {
  .hero2 { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
  .hero-title { font-size: 1.9rem; }
  .tl-row { grid-template-columns: 7rem 1fr; gap: .7rem; }
}

/* the start page (16 Nov, draft): books lying in stacks on the floor, always centred */
.shelf-home { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 4.5rem 0 4rem; }
.shelf { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 1.5rem 2.2rem; width: 100%;
         padding-bottom: 2px; border-bottom: 2px solid var(--line); max-width: 46rem; }   /* the floor */
.stack { display: flex; flex-direction: column; align-items: center; width: min(19rem, 80vw); }
.spine { display: flex; align-items: center; justify-content: center; margin-top: 2px; border-radius: 2px 4px 4px 2px;
         text-decoration: none; color: rgba(255,255,255,.95); transform: translateX(var(--nudge)) rotate(var(--tilt));
         transition: transform .18s ease;
         background-image: linear-gradient(to right, transparent 14px, rgba(255,255,255,.3) 14px 16px, transparent 16px calc(100% - 18px),
                           rgba(255,255,255,.3) calc(100% - 18px) calc(100% - 16px), transparent calc(100% - 16px)),
                           linear-gradient(to bottom, rgba(255,255,255,.10), transparent 40%, rgba(0,0,0,.12)); }
.spine.light { color: #173a43; }
.spine span { font-size: .8rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; overflow: hidden;
              text-overflow: ellipsis; max-width: calc(100% - 44px); }
.spine:hover, .spine:focus-visible { transform: translateX(calc(var(--nudge) + 14px)) rotate(var(--tilt)); }   /* pulled out a little */
.shelf-label { margin: 1.4rem 0 0; max-width: 30rem; color: var(--muted); font-size: .95rem; line-height: 1.45; }   /* 20 Nov: closer to "Choose a library" */
.shelf-label strong { color: var(--fg); font-weight: 600; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .7rem; margin: .55rem 0 0; font-size: 1rem; }
.steps a { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-block;
           padding: .45rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.steps a:hover { border-color: var(--accent); }   /* 22 Nov: a box like the list's Connect buttons */
.steps span { color: var(--muted); }
@media (max-width: 820px) { .shelf-home { margin: 3rem 0 3rem; } .steps { font-size: .95rem; } }



/* one library (26 Nov): name, sector and country; a small documents table with the page count;
   Connect centred under it */
.lib-head { margin: 1.8rem 0 2.2rem; }
.lib-head h1.lib-name { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .35rem; }
.card-sector { color: var(--muted); margin: 0; }
.lib-block { max-width: 26rem; margin: 0 0 3.4rem; font-size: .95rem; }
.card-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
              font-weight: 600; margin: 0 0 .4rem; }
.lib-block ul.contents li { padding: .45rem 0; }
.lib-block li.count span:first-child { color: var(--muted); }
.lib-action { text-align: center; margin: 2.4rem 0 0; }
.lib-action .btn { font-size: 1rem; padding: .5rem 1.6rem; }
@media (max-width: 680px) {
  .lib-head h1.lib-name { font-size: 1.45rem; }
  .lib-block { max-width: none; }
}

/* 1 Dec 2026: the law libraries. On the start page, space between the company and the law block */
.shelf-label.law-label { margin-top: 2.6rem; }
.list.law td:nth-child(2), .list.law td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lib-block.law-block { max-width: 34rem; }
.law-block h2.card-label { margin-top: 1.8rem; }
.law-block h2.card-label:first-child { margin-top: 0; }
.law-block ul:not(.contents) { padding-left: 1.1rem; margin: .4rem 0; }
.law-block ul:not(.contents) li { margin: .3rem 0; }
.law-block p { margin: .4rem 0; }
.law-block ul.contents li.part { padding-left: 1rem; color: var(--muted); font-size: .9rem; }
.law-block .lib-action { margin-top: 2rem; }
