/* Kapnagora Web — reference tables in the new design (WEB-NEU, 16.10.2026).
   The page tells a short story first (hero, two tool doors, a few large chapter doors);
   the tables themselves are evidence, opened on request. buchtabellen2.css still carries the
   table mechanics (sheet grid, phone row cards, popover); this file maps its tokens onto
   neu.css and replaces the boxed look with type. */

/* ---------- token bridge: buchtabellen2.css speaks the old token names ---------- */
body.nb{--ink-dim:var(--ink2);--muted:var(--ink3);--card:var(--panel);
  --acc:var(--gold);--acc-soft:rgba(29,27,24,.12);--acc-ink:var(--paper);--warn:var(--red);
  --radius:var(--r);--radius-sm:var(--r-s);--num:var(--serif);--shadow:none}

/* ---------- hero: one sentence, three counted numbers ---------- */
.nb-hero .n-h1{font-size:clamp(46px,7.6vw,112px)}
.nb-hero .n-lede{max-width:44ch}
.bt-deep .nb-story,.bt-deep .nb-play,.bt-deep .nb-chead{display:none}
.bt-deep .nb-hero{padding-top:28px}
@media (max-width:860px){body.nb main .np-crumbs a{display:inline-block;padding:14px 6px;margin:-14px -6px;min-width:44px}}
.bt-deep #chapters{padding-top:0}

/* ---------- two tool doors ---------- */
.nb-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.nb-door{position:relative;display:flex;flex-direction:column;min-height:300px;padding:clamp(24px,3vw,40px);border-radius:0;text-decoration:none;
  background:var(--band);border:1px solid var(--line);overflow:hidden;
  transition:transform .32s var(--ease),border-color .32s var(--ease)}
.nb-door:hover{transform:translateY(-4px);border-color:var(--line2)}
.nb-door-k{font-family:var(--serif);color:var(--gold);font-size:20px}
.nb-door h3{font-family:var(--serif);font-weight:400;font-size:clamp(34px,4vw,56px);line-height:1;letter-spacing:-.02em;margin:auto 0 12px}
.nb-door p{color:var(--ink2);margin:0;max-width:38ch;font-size:16.5px}
.nb-go{margin-top:20px;color:var(--gold);font-weight:600}
@media (max-width:700px){.nb-doors{grid-template-columns:1fr}.nb-door{min-height:220px}}

/* ---------- index: the JS lede is replaced by the hero above ---------- */
.bt2>.bt2-lede:first-child{display:none}

/* chapters as large numbered doors, one line each */
.bt2-topics{display:block;margin:0;counter-reset:ch;border-top:1px solid var(--line)}
.bt2 a.bt2-topic{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:baseline;gap:6px 24px;padding:clamp(22px,3vw,36px) 4px;
  border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;counter-increment:ch;text-decoration:none;
  transition:background .32s var(--ease),padding .32s var(--ease)}
.bt2 a.bt2-topic::before{content:counter(ch,decimal-leading-zero);font-family:var(--serif);color:var(--gold);font-size:22px;grid-row:1/3}
.bt2 a.bt2-topic:hover{transform:none;background:var(--band);padding-left:14px}
.bt2-topic .n{font-family:var(--serif);font-weight:400;font-size:clamp(32px,4.4vw,64px);line-height:1;letter-spacing:-.02em;margin:0;color:var(--ivory)}
.bt2-topic .d{grid-column:2;font-size:16px;color:var(--ink2);margin:6px 0 0;max-width:56ch}
.bt2-topic .c{grid-column:3;grid-row:1;align-self:center;font-family:var(--sans);font-size:14px;color:var(--ink3);white-space:nowrap}
.bt2-topic .c::after{content:"  →";color:var(--gold)}
@media (max-width:640px){
  .bt2 a.bt2-topic{grid-template-columns:40px minmax(0,1fr);gap:4px 12px}
  .bt2 a.bt2-topic::before{font-size:17px;grid-row:1}
  .bt2-topic .n{font-size:32px}
  .bt2-topic .d{grid-column:2;font-size:15px}
  .bt2-topic .c{grid-column:2;grid-row:auto;margin-top:8px}
}

/* ---------- chapter view: big title, the tool, then the evidence ---------- */
.bt2-back{display:inline-flex;align-items:center;min-height:44px;color:var(--gold);font-size:14px;margin:0 0 10px}
.bt2-lede{margin:8px 0 28px}
.bt2-lede h1,.bt2-head h1,.bt2-head h2{font-family:var(--serif);font-weight:400;font-size:clamp(40px,6vw,84px);line-height:1;letter-spacing:-.025em;color:var(--ivory);margin:0 0 14px}
.bt2-lede p{font-size:clamp(17px,1.6vw,20px);color:var(--ink2);max-width:46ch}
.bt2-head{margin:8px 0 24px}
.bt2-head p{font-size:14px;color:var(--gold);margin:0}
.bt2-tool{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;padding:22px 26px;margin:0 0 26px;border-radius:0;
  background:var(--band);border:1px solid var(--line2);text-decoration:none;transition:transform .32s var(--ease)}
.bt2-tool:hover{transform:translateY(-3px)}
.bt2-tool span{color:var(--ink2);font-size:16px}
.bt2-tool b{color:var(--gold);white-space:nowrap}
.bt2-evid{border-top:1px solid var(--line);padding-top:12px}
.bt2-evid>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;min-height:44px;color:var(--ink2);font-size:15px}
.bt2-evid>summary::-webkit-details-marker{display:none}
.bt2-evid>summary::before{content:"+";display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:0;border:1px solid var(--line);color:var(--gold);transition:transform .24s var(--ease),border-color .24s}
.bt2-evid[open]>summary::before{transform:rotate(45deg);border-color:var(--line2)}
.bt2-evid>summary:hover{color:var(--ivory)}
.bt2-evid[open] .bt2-list{animation:np-in .32s var(--ease-out)}
.bt2-list{gap:0;margin:10px 0 0;border-top:1px solid var(--line)}
.bt2 a.bt2-item{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:14px 4px;transition:background .24s var(--ease)}
.bt2 a.bt2-item:hover{background:rgba(29,27,24,.03)}
.bt2-item .t{font-size:18px;color:var(--ivory)}
.bt2-item .s,.bt2-item .n{font-family:var(--sans)}

/* ---------- table view: flags and the view switch ---------- */
.bt2-flag{border-radius:0;font-size:14px;background:var(--panel)}
.bt2-views{padding:4px;background:var(--panel)}
.bt2-views button{font-size:14px;padding:0 18px;min-height:44px}
.bt2-views button[aria-pressed="true"]{color:var(--paper)}
.bt2-viewhint{font-size:14px;color:var(--ink3)}

/* Reading: one statement per row, set in type — no boxed label/value fields */
.bt2-read{gap:0;border-top:1px solid var(--line)}
.bt2-read .bt2-fact{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:20px 2px}
.bt2-fact .subj{font-size:clamp(22px,2.4vw,30px);font-weight:400;color:var(--ivory);margin:0 0 10px;letter-spacing:-.01em}
.bt2-vals{gap:8px 32px}
.bt2-val{min-width:0;border:0;padding:0;background:none}
.bt2-val .v{font-family:var(--serif);font-weight:400;font-size:26px;color:var(--ivory)}
.bt2-val .v .u{font-family:var(--sans);font-size:14px;color:var(--gold)}
.bt2-val .lab{font-size:14px;color:var(--ink3);font-weight:500;margin-top:4px}
.bt2-val .q,.bt2-conv{font-size:14px;color:var(--ink3)}
.bt2-val.ident{border:0}
.bt2-val.ident .v{font-size:19px;color:var(--ink2)}
.bt2-val.text .v{font-family:var(--sans);font-size:15.5px;color:var(--ink2)}
.bt2-sentence{border-top-style:solid}
.bt2-empty{border-radius:0;color:var(--ink3);font-size:14.5px}
@media (max-width:640px){
  .bt2-val{min-width:calc(50% - 16px)}
  .bt2-vals{gap:12px 16px}
}

/* Sheet: the grid itself, as evidence */
.bt2-sheetwrap{border-radius:0;background:var(--bg2)}
table.bt2-sheet{font-size:14px}
table.bt2-sheet th{background:var(--panel)}
table.bt2-sheet th .u{font-family:var(--sans)}
table.bt2-sheet td.num{font-family:var(--serif);font-weight:400;font-size:15.5px}
table.bt2-sheet td.ident{font-family:var(--sans)}
.bt2-pop{background:var(--panel2);border-radius:0}
.bt2-pop .big{font-family:var(--serif);font-weight:400;font-size:32px}
@media (max-width:640px){
  table.bt2-sheet tr{background:var(--panel);border-radius:0}
  table.bt2-sheet td.subj{font-size:19px}
}
