/* Thoth Tarot wiki. White paper, black ink, EB Garamond.
   Pictures stay pinned and the text passes over them on strips of white. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/eb-garamond-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/eb-garamond-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink: #111; --paper: #fff; --tab: 2.75rem;
  --heb: "Noto Sans Hebrew", "Noto Serif Hebrew", "Arial Hebrew", David, "Times New Roman", serif;
  --sym: "Segoe UI Symbol", "Noto Sans Symbols", "Noto Sans Symbols 2", "Apple Symbols", "DejaVu Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 1.25rem; line-height: 1.42; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p, h1, h2, h3 { margin: 0; font-size: inherit; font-weight: 400; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.heb { font-family: var(--heb); }
.g, .sym { font-family: var(--sym); font-size: 0.92em; }
.g.heb { font-family: var(--heb); font-size: 1em; }
.sw { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.3em; vertical-align: -0.05em; outline: 1px solid var(--ink); }
.muted, .small { font-size: 0.9em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- corner tabs ---------- */
.tab {
  display: inline-flex; align-items: center; min-height: var(--tab); padding: 0 0.9rem;
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1;
  text-decoration: none; white-space: nowrap; border: 0; border-radius: 0; cursor: pointer;
}
a.tab:hover, button.tab:hover { background: var(--ink); color: var(--paper); }
.tab:focus-visible { outline-offset: -3px; }
.tabs {
  position: fixed; z-index: 20; left: 0; right: 0; top: env(safe-area-inset-top, 0px);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; pointer-events: none;
}
.tabs > * { pointer-events: auto; }
.tabs .where { font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: var(--tab); cursor: default; }
.tabs .right { display: flex; flex: 0 0 auto; }

/* ---------- Articles menu ---------- */
.menu { position: relative; }
.menu.open > .tab, .menu:focus-within > .tab { background: var(--ink); color: var(--paper); }
.drop { display: none; position: fixed; left: 0; right: 0; top: calc(var(--tab) + env(safe-area-inset-top, 0px)); background: var(--paper); max-height: calc(100vh - var(--tab)); overflow-y: auto; }
.menu.open .drop, .menu:focus-within .drop { display: block; }
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop .art { position: relative; display: flex; align-items: center; gap: 0.85rem; min-height: 4rem; text-decoration: none; }
.drop .pv { flex: 0 0 4rem; height: 4rem; overflow: hidden; background: #ddd; }
.drop .pv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drop .pv .tab { display: none; }
.drop .tx { display: flex; flex-direction: column; padding: 0.3rem 0.9rem 0.3rem 0; }
.drop b { font-size: 1.05rem; line-height: 1.15; }
.drop .tx span { font-size: 0.88rem; line-height: 1.2; }
.drop .more { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); }
.drop .more a { display: inline-flex; align-items: center; min-height: var(--tab); padding: 0 0.9rem; font-size: 0.95rem; text-decoration: none; }
.drop .more a:hover, .drop .art:hover { background: var(--ink); color: var(--paper); }

/* ---------- titles ---------- */
.title {
  position: relative; z-index: 3; width: 88%; background: var(--paper);
  padding: 4.4rem 0.9rem 1rem;
}
.title h1 { font-weight: 700; font-size: clamp(2.7rem, 13.5vw, 5rem); line-height: 0.94; letter-spacing: -0.012em; overflow-wrap: break-word; }
.title .meta { font-size: 1.05rem; line-height: 1.3; margin-top: 0.6rem; }
.title .over { font-size: 0.95rem; margin-bottom: 0.5rem; }

/* ---------- the wall of cards ---------- */
.cover .title { padding-bottom: 0; margin-bottom: -1.5rem; }
.suits { display: flex; flex-wrap: wrap; margin: 0.6rem 0 0 -0.55rem; font-size: 1rem; line-height: 1; }
.suits a, .suits button { display: inline-flex; align-items: center; min-height: var(--tab); padding: 0 0.55rem; text-decoration: none; background: none; border: 0; border-bottom: 3px solid var(--paper); font: inherit; color: var(--ink); cursor: pointer; }
.suits [aria-pressed="true"], .suits .on { font-weight: 700; border-bottom-color: var(--ink); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 5 / 6; background: #e9e9e6; text-decoration: none; color: var(--ink); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.tile.full { grid-column: 1 / -1; aspect-ratio: 9 / 5; }
.tile.full > img { object-position: 50% 14%; }
.tile .tab { position: absolute; left: 0; bottom: 0; min-height: 2.3rem; max-width: 100%; white-space: normal; padding-top: 0.35rem; padding-bottom: 0.35rem; line-height: 1.12; flex-direction: column; align-items: flex-start; justify-content: center; }
.tile .tab small { font-weight: 400; font-size: 0.9em; }
.cut { position: absolute; background: var(--paper); display: flex; align-items: center; justify-content: center; text-align: center; font-style: normal; font-weight: 700; font-size: 1.35rem; line-height: 1.1; transition: opacity 0.14s linear; }
.cut.word { font-size: 0.92rem; padding: 0 0.3rem; }
.cut.say { display: block; text-align: left; padding: 0.55rem 0.7rem; font-weight: 400; font-size: 0.95rem; line-height: 1.25; }
.tile:hover .cut:not(.say), .tile:focus-visible .cut:not(.say) { opacity: 0; }
.tile:hover .tab, .tile:focus-visible .tab { background: var(--ink); color: var(--paper); }
.tile:focus-visible { outline-offset: -3px; }

/* ---------- a pinned picture ---------- */
.pic { position: fixed; z-index: 0; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; background: var(--paper); }
.pic picture { display: contents; }
.pic img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.js .pic img { position: absolute; left: 0; top: 0; object-fit: fill; will-change: transform; }
.js .card .pic img { transition: transform 0.6s ease; }
.pic i { position: absolute; left: 0; top: 0; width: 0; height: 0; background: rgba(255, 255, 255, 0.87); transition: all 0.55s ease; }

main { display: block; }
.flow { position: relative; z-index: 2; }
.article .flow { padding-top: 58vh; padding-top: 58svh; }
.p { background: var(--paper); padding: 0.75em 0.85em; }
.o0 { width: 90%; } .o1 { width: 90%; margin-left: 10%; } .o2 { width: 100%; } .o3 { width: 86%; margin-left: 5%; } .o4 { width: 94%; }
.s { width: -moz-fit-content; width: fit-content; max-width: calc(100% - var(--ml, 0%)); margin-left: var(--ml, 0%); background: var(--paper); padding: 0.32em 0.85em; }
.n { width: 88%; margin-left: 12%; background: var(--paper); padding: 0.55em 0.85em; font-style: italic; font-size: 1.1em; line-height: 1.3; }
.h { background: var(--paper); padding: 0.55em 0.55em 0.6em; font-weight: 700; font-size: 1.6em; line-height: 1.1; letter-spacing: -0.005em; }
h1.h { font-size: 1.9em; }
.show { height: 44vh; height: 44svh; }
.win { height: 34vh; height: 34svh; }
.gap { height: 7vh; height: 7svh; }
.strip { background: var(--paper); padding: 0.4em 0.85em 0.6em; overflow-x: auto; }

.js-io .flow > .p, .js-io .flow > .s, .js-io .flow > .n, .js-io .flow > .h, .js-io .flow > .strip { opacity: 0; }
.js-io .flow > .in { opacity: 1; transition: opacity 0.25s linear; }

/* ---------- look closer ---------- */
.look .step { padding: 0; }
.look .cap { background: var(--paper); padding: 0.7em 0.85em; width: 92%; margin-bottom: 0.5rem; }
.look .cap h3 { font-weight: 700; font-size: 1.5em; line-height: 1.1; margin-bottom: 0.25em; }
.js .look .step { min-height: 85vh; }
.js .look .cap { position: fixed; z-index: 4; left: 0; width: min(92%, 26rem); margin: 0; opacity: 0; transition: opacity 0.3s linear; pointer-events: none; }
.js .look .step.at-top .cap { top: calc(var(--tab) + 0.75rem); }
.js .look .step.at-bot .cap { bottom: 1.25rem; }
.js .look .step.on .cap { opacity: 1; }
.js .card .flow > *, .js .look > .h { transition: opacity 0.25s linear; }
.looking .flow > :not(.look), .looking .look > .h, .looking .look > .s { opacity: 0 !important; }
.js .look > .s { transition: opacity 0.25s linear; }
html:not(.js) .look > .s { display: none; }

/* ---------- everything else, in rows that open ---------- */
.info { position: relative; z-index: 2; background: var(--paper); }
.ih { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ih .h { padding-bottom: 0.45em; }
.all { white-space: nowrap; border: 0; background: none; font: inherit; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; min-height: var(--tab); padding: 0 0.85em; cursor: pointer; color: var(--ink); }
.info details { border-top: 1px solid var(--ink); scroll-margin-top: var(--tab); }
.info details:last-of-type { border-bottom: 1px solid var(--ink); }
.info summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.1rem; padding: 0.3rem 0.85em; font-weight: 700; cursor: pointer; }
.info summary::-webkit-details-marker { display: none; }
.info summary::after { content: ""; flex: 0 0 auto; width: 0.62em; height: 0.62em; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin: -0.3em 0.25em 0 0; }
.info details[open] > summary { background: var(--ink); color: var(--paper); }
.info details[open] > summary::after { transform: rotate(-135deg); margin-top: 0.35em; border-color: var(--paper); }
.info summary:focus-visible { outline-offset: -3px; }
.body { padding: 0.9em 0.85em 1.2em; }
.info .lede { padding: 0 0.85em 1em; max-width: 44rem; }
.info .src { padding: 1em 0.85em 0; }
@media (min-width: 900px) { .info.wide .lede { padding-left: 0; } }

/* ---------- text and tables inside rows and plain pages ---------- */
.body p, .prose p, .page > p { margin: 0 0 0.7em; }
.body > :last-child, .prose > :last-child { margin-bottom: 0; }
.body ul, .body ol, .prose ul, .prose ol { margin: 0 0 0.8em; padding-left: 1.2em; }
.body li, .prose li { margin: 0.25em 0; }
.body h3, .prose h3, .page h3 { margin: 1.2em 0 0.45em; font-weight: 700; font-size: 1em; }
.body h3:first-child { margin-top: 0; }
.prose h2, .page > h2, .rel h2, .sec > h2 { margin: 2em 0 0.5em; font-weight: 700; font-size: 1.45em; line-height: 1.1; }
.sec > h2 .cnt, .page h2 .cnt, .page h2 small { font-weight: 400; font-size: 0.7em; margin-left: 0.4em; }
blockquote { margin: 0 0 0.8em; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--ink); font-style: italic; }
blockquote p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--ink); margin: 1.2em 0; }
.legend, .xl { font-size: 0.9em; }
.note { border: 1px solid var(--ink); padding: 0.7em 0.85em; margin: 0 0 1em; }
.note p { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0 1.1em; margin: 0 0 1em; }
.kv > * { padding: 0.42em 0; border-bottom: 1px solid var(--ink); }
.kv .k { font-weight: 700; }

.facts { border-collapse: collapse; width: 100%; font-size: 0.95em; line-height: 1.3; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.42em 0; border-bottom: 1px solid var(--ink); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { font-weight: 700; padding-right: 1.1em; white-space: nowrap; }
.strip .facts { font-size: 0.92em; }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
.tbl { border-collapse: collapse; width: 100%; font-size: 0.85em; line-height: 1.3; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 0.5em 0.9em 0.5em 0; border-bottom: 1px solid var(--ink); }
.tbl thead th { font-weight: 700; white-space: nowrap; border-bottom-width: 2px; }
.tbl tbody th { font-weight: 700; white-space: nowrap; }
.tbl small { display: block; font-weight: 400; }
.tbl caption { text-align: left; font-size: 0.9em; padding-bottom: 0.4em; }
.tbl .sym.big { font-size: 1.4em; }
.tbl.grid td { min-width: 6.4rem; }
.tc { display: block; text-decoration: none; font-size: 0.92em; line-height: 1.2; }
.tc img { display: block; width: 100%; max-width: 7.2rem; height: auto; margin-bottom: 0.35rem; }
.tc span { display: block; font-weight: 700; }
.tc small { display: block; font-weight: 400; }
.tc.sm { display: flex; gap: 0.6rem; align-items: center; min-width: 11rem; }
.tc.sm img { width: 3rem; margin: 0; flex: 0 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 1em; padding: 0; }
.chips li { display: contents; }
.chips a, .chips .chip { display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.3rem; padding: 0.2rem 0.7rem; border: 1px solid var(--ink); text-decoration: none; font-size: 0.95em; line-height: 1.1; }
.chips a:hover { background: var(--ink); color: var(--paper); }
.chips small { font-size: 0.85em; }

.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 0 0 1em; }
.alts { display: flex; flex-wrap: wrap; gap: 1rem; }
.cardimg { margin: 0; width: 9rem; }
.cardimg img { display: block; width: 100%; height: auto; }
.cardimg figcaption { font-size: 0.88em; margin-top: 0.3rem; }
.mini .tab { min-height: 2rem; padding: 0.3rem 0.55rem; font-size: 0.8rem; }
.mini .cut { font-size: 1rem; }
.mini + .legend { margin-top: -0.3em; }
.rows { list-style: none; margin: 0 0 1em; padding: 0; border-top: 1px solid var(--ink); }
.rows a { display: flex; align-items: baseline; gap: 0.8em; padding: 0.5em 0.2em; border-bottom: 1px solid var(--ink); text-decoration: none; }
.rows a:hover { background: var(--ink); color: var(--paper); }
.rows .g { flex: 0 0 1.6em; text-align: center; }
.rows .nm { flex: 1 1 auto; min-width: 0; }
.rows .nm small { display: block; font-size: 0.86em; }
.rows .r { flex: 0 1 auto; text-align: right; font-size: 0.86em; }

/* diagrams */
.wheel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wheel svg { display: block; width: 100%; min-width: 700px; max-width: 880px; height: auto; margin: 0 auto; }
.wheel .wseg { fill: var(--paper); stroke: var(--ink); stroke-width: 0.7; }
.wheel a:hover .wseg, .wheel a:focus .wseg { fill: #ddd; }
.wheel .wt { fill: var(--ink); font-family: "EB Garamond", serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.wheel .wc { font-size: 11.5px; font-weight: 700; } .wheel .ws { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.wheel .wg, .wheel .wg2 { font-family: var(--sym); } .wheel .wg2 { font-size: 13px; }
.wheel .wtr { font-size: 10.5px; } .wheel .wn { font-size: 14px; font-weight: 700; } .wheel .wk { font-size: 10.5px; }
.wheel .wd { font-size: 10px; } .wheel .wq { font-size: 11px; font-weight: 700; } .wheel .wm { font-size: 11px; }
.tree svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; overflow: visible; }
.tree .p { stroke: var(--ink); stroke-width: 1.4; opacity: 0.45; fill: none; }
.tree .p.hi { stroke-width: 5; opacity: 1; }
.tree .hit { stroke: transparent; stroke-width: 22; fill: none; cursor: pointer; }
.tree .lab { font-family: "EB Garamond", serif; font-size: 10px; fill: var(--ink); pointer-events: none; }
.tree .lh { font-family: var(--heb); font-size: 14px; fill: var(--ink); pointer-events: none; }
.tree .sp { stroke: var(--ink); stroke-width: 1.2; cursor: pointer; }
.tree .sp.hi { stroke-width: 4; }
.tree .sn { font-family: "EB Garamond", serif; font-size: 10px; pointer-events: none; font-weight: 700; }
.tree .lbg { fill: var(--paper); opacity: 0.92; pointer-events: none; }
.numtree svg { max-width: 340px; }
.numtree .fl { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; opacity: 0.9; }
.numtree .p { opacity: 0.3; }
.numtree .ab { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; }
.numtree .tn { font-family: "EB Garamond", serif; font-size: 20px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.numtree .tl { font-family: "EB Garamond", serif; font-size: 11px; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.numtree .ta { text-anchor: end; }
.split { display: grid; gap: 1.2rem; margin-bottom: 1em; }

/* finder and other small tools */
.frow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; margin: 0.9em 0; }
.frow label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
.frow select, .frow input, .field { height: var(--tab); min-width: 5.5rem; padding: 0 0.7rem; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 1.05rem; }
.go { background: var(--ink); color: var(--paper); }
.go:hover { background: var(--paper); color: var(--ink); outline: 1px solid var(--ink); }
.fout { margin: 0.4em 0 0.8em; }
.fout:empty { display: none; }
.fout .mini { grid-template-columns: repeat(3, 1fr); max-width: 34rem; }
.fout .msg { margin: 0; }
.search input { width: 100%; height: 3.2rem; padding: 0 0.9rem; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 1.15rem; -webkit-appearance: none; appearance: none; }
.results { margin-top: 1rem; }
.flash { max-width: 26rem; }
.flash .seg { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.flash .seg .tab { border: 1px solid var(--ink); }
.flash .seg [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.flash .face { position: relative; aspect-ratio: 520 / 798; background: #e9e9e6; overflow: hidden; }
.flash .face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flash .ans { position: absolute; left: 0; right: 12%; bottom: 0; background: var(--paper); padding: 0.7em 0.85em; }
.flash .ans b { display: block; font-size: 1.5em; line-height: 1.1; }
.flash .acts { display: flex; gap: 0.4rem; margin: 0.6rem 0; }
.flash .acts .tab { border: 1px solid var(--ink); flex: 1; justify-content: center; }

/* ---------- plain pages ---------- */
.page { position: relative; z-index: 2; max-width: 46rem; margin: 0 auto; padding: 0 0.9rem 2rem; }
.page.wide { max-width: 68rem; }
.page .title { width: auto; padding-left: 0; padding-right: 0; padding-bottom: 1.3rem; display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: end; }
.page .title > * { grid-column: 1; }
.page .title .glyph { grid-column: 2; grid-row: 1 / span 4; font-family: var(--heb); font-size: 3.4rem; line-height: 1; align-self: end; }
.page .title .glyph.sym { font-family: var(--sym); font-size: 2.8rem; }
.page .title h1 { font-size: clamp(2.4rem, 10vw, 4.2rem); }
.page .title .kw { font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin-top: 0.5rem; }
.page .tiles { margin: 0 -0.9rem 1em; }
.page .mini { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .page .mini { grid-template-columns: repeat(3, 1fr); } }
.page .tree { margin: 1em 0; }

/* ---------- end of page ---------- */
.end { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 4px; margin-top: 2.2rem; }
.end .tab { min-height: 3.1rem; white-space: normal; line-height: 1.15; flex-direction: column; align-items: flex-start; justify-content: center; }
.end .tab small { font-weight: 400; font-size: 0.85em; }
.end .next { margin-left: auto; align-items: flex-end; text-align: right; }
.card .end, .article .end { background: var(--paper); margin-top: 0; padding-top: 1.2rem; }
.flow > .end { margin-top: 1.2rem; margin-bottom: 30vh; background: none; padding: 0; }
.foot { position: relative; z-index: 2; background: var(--paper); border-top: 2px solid var(--ink); margin-top: 2.5rem; padding: 1.2rem 0.9rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: 0.9rem; line-height: 1.4; }
.card .foot, .article .foot { margin-top: 0; }
.foot p { max-width: 44rem; margin: 0 0 0.7em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin: 0 0 0.7em; }
.foot nav a { display: inline-flex; align-items: center; min-height: 2.3rem; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  body { font-size: 1.35rem; }
  .title { width: 60%; padding-left: 2rem; }
  .title h1 { font-size: clamp(4rem, 8vw, 7.5rem); }
  .suits { margin-top: 0.9rem; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tile { aspect-ratio: 4 / 5; }
  .tile.full { grid-column: span 2; aspect-ratio: 8 / 5; }

  .drop { position: absolute; left: auto; right: 0; top: 100%; width: 16.5rem; overflow: visible; }
  .drop .art { min-height: 3.6rem; padding-left: 0.9rem; position: static; }
  .drop .pv { display: none; position: absolute; right: 100%; top: 0; width: 18rem; height: auto; aspect-ratio: 4 / 5; }
  .drop .art:hover .pv, .drop .art:focus-visible .pv { display: block; }
  .drop .pv .tab { display: inline-flex; position: absolute; left: 0; bottom: 0; min-height: 2.3rem; background: var(--paper); color: var(--ink); }

  .flow { width: 34rem; margin-left: 7vw; }
  .article .flow { padding-top: 46vh; }
  .show { height: 1.2rem; }

  /* picture standing at the right */
  .card .pic, .bg-side .pic { left: auto; right: 4vw; width: min(calc(100vh * var(--ar, 0.652)), 46vw); }
  .bg-strip .pic { left: auto; right: 5vw; width: min(27rem, 34vw); }
  .card .flow, .bg-side .flow { width: min(34rem, calc(100vw - min(100vh * var(--ar, 0.652), 46vw) - 13vw - 1rem)); }
  .bg-strip .flow { width: min(34rem, calc(100vw - min(27rem, 34vw) - 14vw - 1rem)); }
  .card .title { width: min(60%, calc(100vw - min(100vh * var(--ar, 0.652), 46vw) - 5vw)); }
  .card .title h1 { font-size: clamp(3.2rem, 6.4vw, 6.5rem); }

  .card .win, .bg-side .win, .bg-strip .win { height: 4.5rem; }
  .flow > .end { margin-bottom: 4rem; }
  .js .look .step { min-height: 75vh; }
  .js .look .cap { left: 7vw; width: min(34rem, calc(100vw - min(100vh * var(--ar, 0.652), 46vw) - 13vw - 1rem)); padding-left: 0.55em; }
  .js .look .step.at-top .cap, .js .look .step.at-bot .cap { top: 34vh; bottom: auto; }

  .info.wide { padding: 0.8rem 7vw 1rem; }
  .info.wide .ih .h { padding-left: 0; }
  .info.wide summary, .info.wide .body { padding-left: 0; padding-right: 0; }
  .info.wide details[open] > summary { padding-left: 0.85em; padding-right: 0.85em; }
  .mini { grid-template-columns: repeat(4, 1fr); }
  .info.wide .mini, .page .mini { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
  .fout .mini { grid-template-columns: repeat(3, 11rem); }
  .split { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; }
  .page { padding-left: 2rem; padding-right: 2rem; }
  .page .tiles { margin-left: 0; margin-right: 0; }
  .article .end, .foot { padding-left: 7vw; padding-right: 7vw; }
  .card .end { padding-left: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pic i, .js .card .pic img, .cut, .js .look .cap, .js-io .flow > .in, .js .card .flow > *, .js .look > .h { transition: none; }
}
@media print {
  .tabs, .pic, .win, .show, .gap, .end, .all { display: none !important; }
  .flow, .article .flow { padding-top: 0; width: auto; margin: 0; }
  .flow > * { opacity: 1 !important; }
  .look .cap { position: static !important; opacity: 1 !important; }
  .look .step { min-height: 0 !important; }
}

/* ================= German site additions (appended to the kit stylesheet) ================= */
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/amiri-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/amiri-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
:root { --der: #1F4FD8; --die: #D3162B; --das: #1E8A3A; --pale: #e0e0e0; }
.ar { font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif; font-size: 1.06em; line-height: 1.2; unicode-bidi: isolate; }
.tr { display: inline; }
.tr .ar { margin-inline-start: 0.15em; }
.sep { padding: 0 0.3em; }

/* gender: colour square, always next to the printed article */
.gd { white-space: nowrap; }
.gd::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.28em; vertical-align: 0.06em; background: var(--c, var(--ink)); }
.gm { --c: var(--der); } .gf { --c: var(--die); } .gn { --c: var(--das); } .gp { --c: var(--ink); }
.title h1 .gd { font-weight: 400; font-size: 0.5em; vertical-align: 0.42em; margin-right: 0.12em; letter-spacing: 0; }

/* ---------- cover: typographic tiles ---------- */
.tiles.words { gap: 0; background: var(--paper); border-top: 1px solid var(--ink); }
.tiles.words .wt { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.wt { position: relative; display: block; overflow: hidden; aspect-ratio: 5 / 6; background: var(--paper); color: var(--ink); text-decoration: none; }
.wt .tex { position: absolute; left: 0.28rem; top: 40%; right: -30%; margin: 0; font-weight: 700; font-size: 2.1rem; line-height: 0.92; letter-spacing: -0.02em; color: var(--pale); pointer-events: none; }
@media (min-width: 900px) { .wt .tex { font-size: 2.6rem; } }
.wt .w { position: absolute; left: 0.75rem; right: 0.6rem; top: 0.8rem; margin: 0; }
.wt .w .gd { display: inline-block; background: var(--paper); font-size: 0.95rem; padding: 0.1rem 0.3rem 0.1rem 0; }
.wt .w b { display: block; width: fit-content; max-width: 100%; background: var(--paper); font-size: clamp(1.55rem, 7.4vw, 2.1rem); line-height: 1; letter-spacing: -0.012em; padding: 0.06em 0.12em 0.1em 0; overflow-wrap: anywhere; hyphens: auto; }
.wt .tab { position: absolute; left: 0; bottom: 0; min-height: 2.3rem; max-width: 100%; white-space: normal; padding-top: 0.35rem; padding-bottom: 0.35rem; line-height: 1.12; flex-direction: column; align-items: flex-start; justify-content: center; font-weight: 400; }
.wt .tab .ar { font-size: 1.05rem; }
.wt:hover .tab, .wt:focus-visible .tab { background: var(--ink); color: var(--paper); }
.wt:hover .tex { color: #cfcfcf; }
.wt:focus-visible { outline-offset: -3px; }
.wt .done { position: absolute; right: 0; top: 0; background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 700; line-height: 1; padding: 0.4rem 0.5rem; }
.wt.full { grid-column: 1 / -1; aspect-ratio: 9 / 5; }
.wt.full .w b { font-size: clamp(2.6rem, 14vw, 4.4rem); }
.wt.full .tex { font-size: 4.6rem; top: 34%; }
.wt.full .cut.say { left: auto; right: 0; top: 0; width: 46%; position: absolute; }
.levels { display: flex; gap: 0; margin: 1rem 0 0; }
.levels a, .levels span { display: inline-flex; align-items: center; min-height: var(--tab); padding: 0 0.9rem; border: 1px solid var(--ink); margin-right: -1px; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.levels .on { background: var(--ink); color: var(--paper); }
.levels .soon { font-weight: 400; }
.suits .div { width: 1px; background: var(--ink); margin: 0.6rem 0.4rem; }
.cover .info { margin-top: 0; }
.cover .title.wtitle { margin-bottom: 0; padding-bottom: 0.6rem; }
.cover .info .ih .h { padding-top: 1.2rem; }

/* ---------- word set page ---------- */
.set .title { padding-bottom: 1.3rem; }
.set .over a { text-decoration: none; }
.idx { position: relative; z-index: 2; background: var(--paper); padding: 0 0.9rem 1rem; }
.idx .rows { columns: 1; column-gap: 2rem; }
.idx .rows li { break-inside: avoid; }
.idx .rows a { padding: 0.42em 0.2em; }
.idx .rows .nm { font-weight: 700; }
.idx .rows .nm .gd, .idx .rows .nm small { font-weight: 400; }
.idx .rows .r .ar { font-size: 1.08em; }
.idx .box { font-size: 0.8rem; font-weight: 700; border: 1px solid currentColor; padding: 0.1em 0.35em; margin-left: 0.4em; white-space: nowrap; }
.idx .acts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.idx .acts .tab { border: 1px solid var(--ink); }

.word { position: relative; border-top: 2px solid var(--ink); scroll-margin-top: 0; overflow: clip; }
.word + .word { margin-top: 0; }
.word .wh { position: relative; z-index: 3; background: var(--paper); width: 92%; padding: calc(var(--tab) + 0.6rem) 0.9rem 0.8rem; }
.word .wh h2 { font-weight: 700; font-size: clamp(2.4rem, 11vw, 4.2rem); line-height: 0.94; letter-spacing: -0.012em; }
.word .wh h2 .gd { font-weight: 400; font-size: 0.5em; vertical-align: 0.42em; margin-right: 0.12em; }
.word .wh .meta { font-size: 1.05rem; line-height: 1.3; margin-top: 0.5rem; }
.word .wh .num { font-size: 0.9rem; margin-bottom: 0.4rem; }
.word .wh .mark { display: inline-block; background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.45rem; margin-left: 0.4rem; vertical-align: 0.1em; }
.hear { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85em; margin-top: 0.6rem; border: 1px solid var(--ink); background: var(--paper); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.hear:hover { background: var(--ink); color: var(--paper); }

/* the model sentence: the "picture" of a word page */
.pin { position: sticky; top: var(--tab); z-index: 0; height: 0; overflow: visible; pointer-events: none; }
.pin .sen { position: absolute; left: 0; right: 0; top: 0.4rem; padding: 0 0.9rem; font-weight: 700; font-size: clamp(2.6rem, 13vw, 4.6rem); line-height: 0.98; letter-spacing: -0.015em; color: var(--ink); }
.pin .sen .pt { transition: color 0.35s linear; }
.looking .sen .pt { color: var(--pale); }
.looking .sen .pt.on { color: var(--ink); }
.tpic .big { transition: opacity 0.4s linear; }
.looking .tpic .big { opacity: 0.35; }
.word .flow { padding-top: 50vh; padding-top: 50svh; }
.word .flow .ms { width: 100%; }
.word .flow .ms .de { display: block; font-size: 1.15em; font-weight: 700; line-height: 1.2; }
.word .flow .p .ar, .word .flow .s .ar, .info .ar.blk { display: block; text-align: right; margin-top: 0.15em; }
.ex { display: block; }
.ex .de { display: block; }
.ex .en { display: block; font-size: 0.9em; }
.ex .ar { display: block; font-size: 0.98em; text-align: right; }
.word .info { margin-top: 1.5rem; }
.word .end { background: var(--paper); margin-top: 0; padding-top: 1rem; position: relative; z-index: 2; }
.look .cap .pt-de { font-weight: 700; }

.ftbl { border-collapse: collapse; width: 100%; font-size: 0.92em; line-height: 1.3; }
.ftbl th, .ftbl td { text-align: left; padding: 0.42em 0.9em 0.42em 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.ftbl thead th { border-bottom-width: 2px; }
.ftbl tbody th { font-weight: 700; white-space: nowrap; }
.chips .gd::before { margin-right: 0.2em; }

/* ---------- grammar article: typographic background ---------- */
.tpic { position: fixed; z-index: 0; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; background: var(--paper); pointer-events: none; }
.tpic .big { position: absolute; left: -0.04em; top: 8vh; margin: 0; font-weight: 700; font-size: 44vw; line-height: 0.82; letter-spacing: -0.03em; color: var(--pale); white-space: nowrap; will-change: transform; }
.tpic .big span { display: block; }
.tpic .big .k { color: var(--ink); }
.article .flow .s .ar, .article .flow .p .ar { display: block; text-align: right; }

/* ---------- flashcards ---------- */
.kk { max-width: 34rem; }
.kk .boxes { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ink); margin: 0 0 1rem; }
.kk .boxes div { padding: 0.45rem 0.5rem 0.5rem; border-right: 1px solid var(--ink); line-height: 1.1; }
.kk .boxes div:last-child { border-right: 0; background: var(--ink); color: var(--paper); }
.kk .boxes small { display: block; font-size: 0.78rem; }
.kk .boxes b { font-size: 1.6rem; }
.kk .face { border: 1px solid var(--ink); padding: 1.2rem 1rem 1rem; min-height: 19rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; background: var(--paper); }
.kk .q { font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.01em; }
.kk .q .blank { display: inline-block; height: auto; min-width: 4.2em; border-bottom: 3px solid var(--ink); }
.kk .q .hit { box-shadow: inset 0 -0.18em 0 var(--paper), inset 0 -0.32em 0 var(--ink); }
.kk .hint { font-size: 1rem; }
.kk .hint .ar { font-size: 1.1rem; }
.kk .ans { border-top: 1px solid var(--ink); padding-top: 0.8rem; }
.kk .ans b { display: block; font-size: 2rem; line-height: 1.05; }
.kk .ans .gd { font-weight: 400; }
.kk .ans p { margin: 0.3rem 0 0; font-size: 1rem; }
.kk .acts { display: flex; gap: 0.4rem; margin: 0.6rem 0; }
.kk .acts .tab { border: 1px solid var(--ink); flex: 1; justify-content: center; }
.kk .type { display: flex; gap: 0.4rem; }
.kk .type input { flex: 1; height: var(--tab); border: 1px solid var(--ink); padding: 0 0.7rem; font: inherit; font-size: 1.1rem; border-radius: 0; min-width: 0; }
.kk .store { border: 1px solid var(--ink); padding: 0.7em 0.85em; margin: 1.4rem 0 0; font-size: 0.95rem; }
.kk .store .acts { margin-bottom: 0; }
.kk .store .tab { flex: 0 1 auto; }

@media (min-width: 600px) {
  .idx .rows { columns: 2; }
}
@media (min-width: 900px) {
  .wt { aspect-ratio: 4 / 5; }
  .wt.full { grid-column: span 2; aspect-ratio: 8 / 5; }
  .wt .w b { font-size: 1.9rem; }
  .wt.full .w b { font-size: 3.6rem; }
  .wt.full .tex { font-size: 4rem; }
  .levels { margin-top: 1.2rem; }

  .idx { padding: 0 2rem 1.5rem; max-width: 72rem; }
  .idx .rows { columns: 3; }
  .word .wh { width: 60%; padding-left: 7vw; }
  .word .wh h2 { font-size: clamp(3.4rem, 6vw, 5.6rem); }
  .pin .sen { left: auto; right: 4vw; width: 44vw; top: 1.2rem; font-size: clamp(2.8rem, 4.6vw, 4.8rem); text-align: left; padding: 0; }
  .word .flow { padding-top: 0.5rem; width: min(34rem, 46vw); }
  .word .win, .word .gap { height: 4.5rem; }
  .word .flow > .win:last-child { height: 30vh; }
  .word .info.wide { padding-left: 7vw; padding-right: 7vw; }
  .word .end { padding-left: 7vw; padding-right: 7vw; }
  .js .word .look .cap { width: min(34rem, 46vw); }

  .tpic .big { font-size: 26vw; top: 10vh; left: auto; right: -2vw; }
  .kk { max-width: 38rem; }
  .kk .face { min-height: 21rem; padding: 1.6rem 1.4rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pin .sen .pt { transition: none; }
}

/* menu previews without pictures */
.drop .pv { background: var(--paper); outline: 1px solid var(--ink); outline-offset: -1px; position: relative; }
.drop .pv .pw { position: absolute; left: 0.3rem; top: 0.1rem; font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--pale); letter-spacing: -0.02em; }
@media (min-width: 900px) { .drop .pv .pw { font-size: 7rem; left: 0.6rem; top: 0.4rem; } }

/* look closer inside an article: the sentence stays put while the captions change */
.look .lsen { position: sticky; top: calc(var(--tab) + 0.5rem); z-index: 3; }
.look .lsen .sen { font-weight: 700; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1; letter-spacing: -0.012em; margin-bottom: 0.4rem; }
.look .lsen .en { display: block; font-size: 0.9em; }
.look .lsen .ar { display: block; text-align: right; }
.js .article .look .step { min-height: 70vh; }
@media (min-width: 900px) { .look .lsen .sen { font-size: 3.4rem; } }

/* German inside English prose is set in italic */
:is(p, li, td, .cap p) > span[lang="de"]:not(.de):not(.gd) { font-style: italic; }
.word .flow .ms .ar { font-size: 1.06em; }
.kk .seg { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.kk .seg .tab { border: 1px solid var(--ink); }
.kk .seg [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.kk .face { min-height: 12rem; }
@media (min-width: 900px) { .kk .face { min-height: 19rem; } }
.kk .type input::placeholder { color: var(--ink); opacity: 1; font-style: italic; }

/* ================= site pages (after the design board) ================= */
.dot { color: inherit; font-weight: 400; padding: 0 0.02em; }
.px { }
.cover .topicfilter { margin: 0.2rem 0 0 -0.55rem; }
.cover .topicfilter > summary { display: inline-flex; align-items: center; min-height: var(--tab); padding: 0 0.55rem; font-size: 1rem; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.cover .topicfilter > summary::-webkit-details-marker { display: none; }
.cover .topicfilter[open] > summary { font-weight: 700; }
.cover .topicfilter .suits { margin: 0; }
.wt { content-visibility: auto; contain-intrinsic-size: auto 240px; }
.wt .done[hidden] { display: none !important; }
.wt.is-done .done { display: block !important; }
.word .wh .inbox { display: inline-block; border: 1px solid var(--ink); font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.4rem; margin-left: 0.4rem; vertical-align: 0.1em; }
.acts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 0; }
.acts .tab { border: 1px solid var(--ink); }
.page .sec { margin: 2.2rem 0 0; }
.page .sec > h2 a { text-decoration: none; }
.page .sec > h2 a:hover { text-decoration: underline; }
.page .sec .small { margin: -0.3rem 0 0.6rem; }
.page .rows .r .ar { font-size: 1.08em; }
.page .rows .nm .gd, .page .rows .nm small { font-weight: 400; }
.page .rows .nm { font-weight: 400; }
.page .rows .nm > span[lang="de"] { font-weight: 700; }
.box { font-size: 0.78rem; font-weight: 700; border: 1px solid currentColor; padding: 0.05em 0.35em; margin-left: 0.4em; white-space: nowrap; vertical-align: 0.1em; }
.stepprog { font-size: 0.86em; }
.prose h2 { margin-top: 1.6em; }
.prose p { margin: 0 0 0.8em; max-width: 40rem; }
.page .end { margin-top: 2.5rem; }

/* flashcards, working version */
.kk .pool { font-size: 0.95rem; margin: 0 0 0.5rem; }
.kk .seg select.field { height: var(--tab); max-width: 100%; min-width: 0; flex: 1 1 12rem; font-size: 0.95rem; }
.kk .face .q .hit { box-shadow: inset 0 -0.16em 0 var(--paper), inset 0 -0.3em 0 var(--ink); }
.kk .face .tag { font-size: 0.85rem; }
.kk .face .recall { font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.05; }
.kk .face .recall .ar { font-weight: 700; }
.kk .verdict { font-size: 1rem; margin: 0.4rem 0 0; }
.kk .acts .tab small { font-weight: 400; }
.kk label.tab { cursor: pointer; }
.kk .done-msg { border: 1px solid var(--ink); padding: 1.2rem 1rem; }
.kk .done-msg b { display: block; font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.4rem; }
.kk .store .acts .tab { flex: 0 1 auto; }
.kk .store input[type=file]:focus-visible + label, .kk .store label:focus-within { outline: 3px solid var(--ink); }
.results .rows .r .ar { font-size: 1.05em; }
.search input::placeholder { color: var(--ink); opacity: 1; font-style: italic; }
@media (min-width: 900px) {
  .kk { max-width: 40rem; }
}

.chips a, .chips .chip { min-height: 2.75rem; }
.idx .rows a { min-height: 2.75rem; }
.foot nav a { min-height: 2.75rem; }
@media (min-width: 900px) {
  .drop { width: 35rem; }
  .drop ul { display: grid; grid-template-columns: 1fr 1fr; }
  .drop .art { min-height: 3.3rem; }
}
.strip .facts td, .strip .facts th { padding-right: 0.9em; }
.strip .facts td:last-child { padding-right: 0; }
.strip .facts thead th { white-space: nowrap; border-bottom: 2px solid var(--ink); }
.wallmore { padding: 0.9rem 0.9rem 0; } @media (min-width: 900px) { .wallmore { padding-left: 2rem; } }

/* ---------- word pictures (ASCII from Phosphor icons, drawn for Courier Prime at line-height 1.1) */
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/courier-prime-latin-400-normal.woff2) format("woff2"); }
.asc { --af: min(12px, 3.1vw); height: calc(15 * 1.1 * var(--af)); display: flex; align-items: center; justify-content: center; margin: 1.1rem 0 0.2rem; overflow: hidden; }
.asc pre { font-family: "Courier Prime", monospace; font-size: var(--af); line-height: 1.1; text-align: left; margin: 0; white-space: pre; color: var(--ink); letter-spacing: 0; }
@media (min-width: 900px) {
  .word.haspic .wh { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; align-items: end; }
  .word.haspic .wh > * { grid-column: 1; }
  .word.haspic .wh .asc { --af: 14px; grid-column: 2; grid-row: 1 / span 4; margin: 0; }
}
@media print { .asc { display: none; } }

/* ---------- stories: big strips, translation on tap, line-by-line arrival */
.story .flow > .st { font-size: clamp(1.6rem, 6.6vw, 2.7rem); line-height: 1.16; padding: 0.3em 0.55em 0.36em; margin-top: 0.3rem; }
.story .st .sb { all: unset; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.story .st .sb:focus-visible { outline: 2px solid var(--ink); outline-offset: 0.15em; }
.story .st .kw { font-weight: inherit; text-decoration: underline dotted; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }
.story .st.open { box-shadow: inset 0.3rem 0 0 var(--ink); }
.story .st .trn { font-size: 1.08rem; line-height: 1.35; margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid var(--ink); }
.js .story .st .trn { display: none; }
.js .story .st.open .trn { display: block; }
.story .st .trn .en { display: block; }
.story .st .trn .ar { display: block; text-align: right; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.story .st .wl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; margin-top: 0.35rem; font-size: 0.98rem; }
.story .st .wl small { font-size: 0.85rem; margin-right: 0.2rem; }
.story .st .wl a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.story .sthead { padding-top: 0.6rem; }
.story .sthead h1 { font-size: clamp(2.6rem, 12vw, 5rem); line-height: 0.95; font-weight: 700; margin: 0.4rem 0 0.6rem; }
.story .sthead .over { font-size: 1rem; }
.story .sthead .meta { font-size: 1.05rem; margin-top: 0.3rem; }
.story .sthead .ar { display: block; }
.story .sthead .trall { margin-top: 1rem; border: 1px solid var(--ink); }
.story .trall[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.js-io .story .flow > .st { opacity: 0; transform: translateY(1.1rem); }
.js-io .story .flow > .st.in { opacity: 1; transform: none; transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story .flow > .win { height: 30vh; }
@media (min-width: 900px) {
  .story .flow > .st { max-width: 40rem; }
  .story .st .trn { font-size: 1.2rem; }
  .story .st .trn .ar { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .story .flow > .st { transform: none !important; transition: none !important; } }
@media print { .story .flow > .st .trn { display: block !important; } .story .trall { display: none; } }
