/* Ancestra — Hausa, one path at a time.
   Palette grounded in Kano indigo: dye-pit blue as the primary, brass as the
   single accent, neutrals biased cool so the indigo reads as chosen.        */

:root {
  --ink:        #12201A;
  --ink-soft:   #35473E;
  --indigo:     #1F5C46;   /* primary. named for history, kola green now */
  --indigo-dim: #2F7A5E;
  --indigo-wash:#E4EFEA;
  --brass:      #B5761F;
  --brass-wash: #F8EFDF;

  --bg:         #F4F3EF;
  --surface:    #FFFFFF;
  --surface-2:  #EBEBE5;
  --line:       #DBDBD2;
  --text:       #15211C;
  --text-dim:   #556059;
  --text-faint: #87908A;

  --good:       #2C6E52;
  --good-wash:  #DFF0E6;
  --warn:       #8A6420;
  --warn-wash:  #F7EEDC;
  --bad:        #B03A2E;
  --bad-wash:   #F9E6E2;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(20,26,46,.06), 0 8px 24px rgba(20,26,46,.06);

  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hausa: "Andika", "Noto Sans", system-ui, sans-serif;
}

:root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0D1512;
    --surface:    #14201B;
    --surface-2:  #1C2A24;
    --line:       #2A3A32;
    --text:       #E9EFEB;
    --text-dim:   #A3B0A8;
    --text-faint: #74827A;
    --indigo:     #66C79C;
    --indigo-dim: #46A47D;
    --indigo-wash:#152A21;
    --brass:      #D9A94E;
    --brass-wash: #2A2416;
    --good:       #6DBF97;
    --good-wash:  #16281F;
    --warn:       #D6AC5C;
    --warn-wash:  #2A2416;
    --bad:        #E08B83;
    --bad-wash:   #2C1917;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --bg:#0D1512; --surface:#14201B; --surface-2:#1C2A24; --line:#2A3A32;
  --text:#E9EFEB; --text-dim:#A3B0A8; --text-faint:#74827A;
  --indigo:#66C79C; --indigo-dim:#46A47D; --indigo-wash:#152A21;
  --brass:#D9A94E; --brass-wash:#2A2416;
  --good:#6DBF97; --good-wash:#16281F; --warn:#D6AC5C; --warn-wash:#2A2416;
  --bad:#E08B83; --bad-wash:#2C1917;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }

.app { max-width: 30rem; margin: 0 auto; padding: 1.25rem 1.15rem 6rem; min-height: 100vh; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; align-items: center; gap: .65rem; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.grow { flex: 1; min-width: 0; }

.eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}
.hausa { font-family: var(--hausa); }
.pron { font-family: var(--hausa); color: var(--indigo); font-size: .95rem; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: .85rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── wordmark ─────────────────────────────────────────────────────────── */
.mark { display: flex; align-items: baseline; gap: .5rem; }
.logo-wrap { display: inline-flex; color: var(--indigo); }
.logo-wrap .logo { width: 1.75rem; height: 1.75rem; display: block; }
.mark { align-items: center; }
button.mark-home { background: none; border: 0; padding: 0; cursor: pointer; }
button.mark-home:hover b { color: var(--indigo); }
.mark b {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -.02em; font-variation-settings: "SOFT" 40, "WONK" 1;
}
.mark span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }

/* ── cards & buttons ──────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow);
}
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: var(--r-sm);
  padding: .8rem 1.1rem; font-weight: 600; font-size: .97rem;
  background: var(--indigo); color: #fff; transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-quiet { background: transparent; color: var(--text-dim); border-color: transparent; padding: .5rem .6rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .75rem; font-size: .85rem; border-radius: 999px; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface-2); color: var(--text-dim);
  border-radius: 999px; padding: .22rem .6rem; font-size: .74rem; font-weight: 600;
}
.chip-brass { background: var(--brass-wash); color: var(--brass); }
.chip-indigo { background: var(--indigo-wash); color: var(--indigo); }

/* ── progress ─────────────────────────────────────────────────────────── */
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--indigo); border-radius: 999px; transition: width .3s ease; }
.bar-brass > i { background: var(--brass); }

/* ── path cards ───────────────────────────────────────────────────────── */
.path {
  display: block; width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.path::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--indigo);
}
.path.brass::before { background: var(--brass); }
.path.locked { opacity: .55; box-shadow: none; }
.path.rec { border-color: var(--indigo); }
.path.rec .eyebrow { color: var(--indigo); }
.path h3 { font-size: 1.2rem; }

/* ── lesson map ───────────────────────────────────────────────────────── */
.map { display: grid; gap: .5rem; }
.node {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: .7rem .85rem; text-align: left; width: 100%;
}
.node[disabled] { opacity: .5; }
.node .num {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-dim); font-weight: 700; font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.node.done .num { background: var(--good-wash); color: var(--good); }
.node.next .num { background: var(--indigo); color: #fff; }
.node b { font-weight: 600; font-size: .97rem; display: block; }

/* ── lesson runner ────────────────────────────────────────────────────── */
.stage-bar { display: flex; gap: .25rem; margin-bottom: 1rem; }
.stage-bar i { flex: 1; height: 3px; border-radius: 999px; background: var(--surface-2); }
.stage-bar i.on { background: var(--indigo); }
.stage-bar i.done { background: var(--indigo-dim); }

.teach { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.2rem; box-shadow: var(--shadow); }
.teach .word { font-family: var(--hausa); font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.teach .en { font-size: 1.05rem; margin-top: .5rem; }
.field { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
.field .k { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

.prompt {
  background: var(--indigo-wash); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.15rem 1.1rem;
}
.prompt .q { font-size: .85rem; color: var(--text-dim); }
.prompt .stim { font-size: 1.7rem; font-weight: 700; line-height: 1.25; margin-top: .2rem; }
.prompt .stim.hausa { font-family: var(--hausa); }

.opt {
  width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: .8rem .95rem; font-weight: 600; display: flex;
  align-items: center; justify-content: space-between; gap: .75rem;
}
.opt.right { background: var(--good-wash); border-color: var(--good); color: var(--good); }
.opt.wrong { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
.opt.dim { opacity: .5; }

/* ── speaking ─────────────────────────────────────────────────────────── */
.mic {
  width: 5rem; height: 5rem; border-radius: 50%; border: none; display: grid; place-items: center;
  background: var(--indigo); color: #fff; margin: 0 auto; box-shadow: var(--shadow);
}
.mic.rec { background: var(--bad); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(166,63,56,.45); } 50% { box-shadow: 0 0 0 14px rgba(166,63,56,0); } }
.mark-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mark-btn { border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); padding: .7rem .4rem; font-weight: 600; font-size: .85rem; }
.mark-btn.good { color: var(--good); border-color: var(--good); background: var(--good-wash); }
.mark-btn.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-wash); }
.mark-btn.bad  { color: var(--bad);  border-color: var(--bad);  background: var(--bad-wash); }

/* ── dialogue ─────────────────────────────────────────────────────────── */
.turn { display: flex; gap: .6rem; align-items: flex-start; }
.turn .who { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); width: 3.4rem; padding-top: .35rem; flex: none; }
.bubble { background: var(--surface-2); border-radius: var(--r); padding: .7rem .85rem; flex: 1; }
.bubble.them { background: var(--indigo-wash); }

/* ── forms ────────────────────────────────────────────────────────────── */
label.f { display: block; }
label.f > span { display: block; font-size: .8rem; font-weight: 600; color: var(--text-dim); margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .8rem;
}
input:focus, select:focus { outline: 2px solid var(--indigo); outline-offset: -1px; border-color: transparent; }

/* ── stats ────────────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .6rem; text-align: center; }
.tile b { display: block; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); font-weight: 700; }

.banner { background: var(--brass-wash); color: var(--brass); border-radius: var(--r-sm); padding: .6rem .8rem; font-size: .85rem; font-weight: 600; }
.scroll-x { overflow-x: auto; }
.hidden { display: none !important; }

/* trust pages rendered inside the app in the single file build */
.page-inline h1 { font-size: 1.5rem; margin: .6rem 0 .3rem; }
.page-inline h2 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.page-inline p, .page-inline li { color: var(--text-dim); font-size: .95rem; }
.page-inline ul { padding-left: 1.1rem; margin: .4rem 0; }
.page-inline a { color: var(--indigo); }

/* language wishlist: present but plainly not built yet */
.node.lang { opacity: .72; }
.node.lang:hover { opacity: 1; }
.node.lang .num { background: var(--surface-2); color: var(--text-faint); }
.node.lang.asked { opacity: 1; border-color: var(--brass); }
.node.lang.asked .num { background: var(--brass-wash); color: var(--brass); }

/* ── one bar across the top of every screen ──────────────────────────── */
.topbar { display: flex; align-items: center; gap: .6rem; min-height: 2.6rem; margin-bottom: 1rem; }
.topbar h2 { font-size: 1.1rem; font-family: var(--display); font-weight: 600; }
.iconbtn {
  width: 2.4rem; height: 2.4rem; flex: none; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-dim);
  display: grid; place-items: center; transition: color .15s, border-color .15s;
}
.iconbtn:hover { color: var(--text); border-color: var(--text-faint); }

/* ── choice rows ─────────────────────────────────────────────────────── */
.node.choice { padding: .85rem .95rem; }
.node.choice .ring {
  width: 1.45rem; height: 1.45rem; border-radius: 50%; flex: none;
  border: 2px solid var(--line); display: grid; place-items: center;
  color: transparent; transition: background .15s, border-color .15s, color .15s;
}
.node.choice.picked { border-color: var(--indigo); }
.node.choice.picked .ring { background: var(--indigo); border-color: var(--indigo); color: var(--surface); }
.node.choice > svg { color: var(--text-faint); }

/* ── a calmer stack of path cards ────────────────────────────────────── */
.path { padding: 1rem 1.05rem; }
.path h3 { font-size: 1.15rem; }
.path.locked { padding: .85rem 1.05rem; }
.path.locked h3 { font-size: 1.05rem; }
.path.locked p { margin: .2rem 0 0; font-size: .88rem; }

.lockmark { display: inline-flex; color: var(--text-faint); }

/* ── the front page ──────────────────────────────────────────────────
   One idea, centred, with the character given room to be the image.     */
.welcome {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; gap: clamp(2rem, 7vh, 4rem);
  text-align: center; padding: 2.5rem 0 max(1.5rem, 5vh);
}
/* centred, then nudged a little below centre so the lower half is not empty */
.welcome-mid {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  padding-top: clamp(1rem, 6vh, 4rem);
}
.kuka-stage {
  display: grid; place-items: center; padding: 1.6rem 2.4rem 1.1rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--indigo-wash), transparent 78%);
}
.welcome h1 { font-size: 2.35rem; line-height: 1.08; max-width: 13ch; margin: 0; }
.welcome .lede { font-size: 1.08rem; color: var(--text-dim); margin: 0; max-width: 26ch; }
.welcome-foot { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; }
.welcome-foot .btn-quiet { align-self: center; }

/* ── Kuka ─────────────────────────────────────────────────────────────
   The crown sways from the trunk, the eyes blink, and the moods change the
   mouth and the posture. Everything stops for reduced motion.            */
.kuka-wrap { display: inline-flex; color: var(--indigo); flex: none; }
.kuka { width: var(--kuka-size, 2.5rem); height: auto; display: block; overflow: visible; }
.kuka-crown { transform-origin: 32px 30px; animation: kuka-sway 6s ease-in-out infinite; }
.kuka-eye { fill: var(--surface); animation: kuka-blink 6.5s infinite; transform-origin: center; }
.kuka-mouth { stroke: var(--surface); }

@keyframes kuka-sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50%      { transform: rotate(1.6deg); }
}
@keyframes kuka-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.12); }
}
@keyframes kuka-hop {
  0%, 100% { transform: translateY(0); }
  35%      { transform: translateY(-14%); }
  60%      { transform: translateY(0); }
}
@keyframes kuka-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25%      { transform: translateX(-6%) rotate(-3deg); }
  75%      { transform: translateX(6%) rotate(3deg); }
}

.kuka-happy .kuka { animation: kuka-hop .55s ease-out 1; }
.kuka-happy .kuka-crown { animation-duration: 2s; }
.kuka-happy .kuka-mouth { d: path("M27.8 43.8 C30 47 34 47 36.2 43.8"); }

.kuka-cheer .kuka { animation: kuka-hop .7s ease-out 2; }
.kuka-cheer .kuka-crown { animation-duration: 1.6s; }
.kuka-cheer .kuka-mouth { d: path("M27.6 43.6 C30 47.6 34 47.6 36.4 43.6"); }

.kuka-sad .kuka { animation: kuka-shake .45s ease-in-out 1; }
.kuka-sad .kuka-crown { animation-duration: 9s; }
.kuka-sad .kuka-mouth { d: path("M28.6 46 C30.2 44.2 33.8 44.2 35.4 46"); }
.kuka-sad .kuka-eye { ry: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .kuka-crown, .kuka-eye, .kuka { animation: none !important; }
}

/* phone with its dial code attached */
.phonerow { display: flex; align-items: stretch; gap: .4rem; }
.phonerow .dial {
  display: grid; place-items: center; padding: 0 .7rem; flex: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums; color: var(--text-dim); font-weight: 600;
}
.phonerow input { flex: 1; min-width: 0; }

/* ── language rows: one component, two states ────────────────────────── */
.langrow {
  display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: .75rem .85rem;
}
.langrow + .langrow { margin-top: .45rem; }
.langrow b { font-weight: 600; display: block; }
.langrow.asked { border-color: var(--brass); }
.langrow.ready { border-color: var(--indigo); }
.langrow.ready .btn { pointer-events: none; }
.langrow .btn-sm { white-space: nowrap; }

/* ── the lesson card is the point of the screen ──────────────────────── */
.lesson-card { border-color: var(--indigo); }
.path-strip { background: var(--surface-2); border-radius: var(--r); padding: .8rem .9rem; }

/* ── navigation, not links ───────────────────────────────────────────── */
.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
}
.navitem {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  background: none; border: 0; padding: .45rem .2rem; color: var(--text-faint);
  font-size: .7rem; font-weight: 600; border-radius: var(--r-sm);
}
.navitem.on { color: var(--indigo); }
.navitem:hover { color: var(--text-dim); }
.navitem.on:hover { color: var(--indigo); }
.app { padding-bottom: 6.5rem; }

/* ── settings lists ──────────────────────────────────────────────────── */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.listrow {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  padding: .8rem .9rem; background: none; border: 0; color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.listrow:last-child { border-bottom: 0; }
.listrow.tappable:hover { background: var(--surface-2); }
.listrow .faint { font-weight: 600; }

/* ── permission switches ─────────────────────────────────────────────── */
.switch {
  width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); position: relative; flex: none; transition: background .15s, border-color .15s;
}
.switch::after {
  content: ""; position: absolute; top: 50%; left: .18rem; transform: translateY(-50%);
  width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--text-faint); transition: left .15s, background .15s;
}
.switch.on { background: var(--indigo-wash); border-color: var(--indigo); }
.switch.on::after { left: calc(100% - 1.23rem); background: var(--indigo); }

/* Kuka's line. Said, not labelled, so it keeps its normal case. */
.quip { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }

/* category chips that scroll rather than wrap into a wall */
.chiprow { display: flex; gap: .35rem; padding: .1rem 0 .3rem; }
.chiprow .chip { white-space: nowrap; border: 0; cursor: pointer; }
.navbar { grid-template-columns: repeat(5, 1fr); }

/* ── dictionary entry ────────────────────────────────────────────────── */
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.1rem 1.2rem; box-shadow: var(--shadow); }
.headword { font-size: 2rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.entry .meaning { font-size: 1.1rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.entry-section { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.usage { display: block; width: 100%; text-align: left; background: var(--surface-2); border: 0; border-radius: var(--r-sm); padding: .6rem .75rem; }
.usage:hover { background: var(--indigo-wash); }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--r-sm); padding: .65rem .8rem; }

/* ── Words, dictionary furniture ─────────────────────────────────────── */
.bigsearch { font-size: 1.05rem; padding: .9rem 1rem; border-radius: var(--r); }

.pod { display: block; width: 100%; text-align: left; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pod-face { background: linear-gradient(160deg, var(--indigo), var(--indigo-dim));
  color: #fff; padding: 2rem 1.2rem; text-align: center; }
.pod-word { font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
.pod-mean { margin-top: .5rem; opacity: .9; }
.pod-foot { padding: .7rem .9rem; display: flex; align-items: center; justify-content: space-between; }

.browse { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.browse-cell { display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .65rem .75rem; text-align: left; font-size: .92rem; }
.browse-cell:hover { border-color: var(--indigo); }

.wordform { font-style: italic; color: var(--text-dim); font-size: .92rem; }
.senses { margin: .9rem 0 0; padding-left: 1.15rem; }
.senses li { margin: .25rem 0; font-size: 1.05rem; }
.senses li::marker { color: var(--text-faint); font-weight: 700; font-size: .85rem; }
.literally { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: .95rem; }
.sec { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin: 0 0 .1rem;
  padding-bottom: .3rem; border-bottom: 2px solid var(--line); }

.nearby { display: flex; flex-wrap: wrap; gap: .35rem; }
.nearby-cell { background: var(--surface-2); border: 0; border-radius: 999px;
  padding: .35rem .7rem; font-size: .9rem; }
.nearby-cell:hover { background: var(--indigo-wash); color: var(--indigo); }

/* the A to Z index, hooked letters included */
.azgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: .35rem; }
.azcell { display: flex; flex-direction: column; align-items: center; gap: .05rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .5rem .2rem; }
.azcell:hover { border-color: var(--indigo); }
.azcell.on { background: var(--indigo); border-color: var(--indigo); }
.azcell.on .azletter, .azcell.on .faint { color: var(--bg); }
.azletter { font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.azcell .faint { font-size: .68rem; }

.footquiet { opacity: .75; }
.footquiet:hover { opacity: 1; }

.pod-small .pod-face { padding: 1.4rem 1rem; }
.pod-small .pod-word { font-size: 1.55rem; }

.langrow.building { border-color: var(--brass); }

/* in page confirmation, since a framed page cannot show the browser's */
.asklayer {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(13, 21, 18, .55); padding: 1.2rem; backdrop-filter: blur(2px);
}
.askbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.2rem; max-width: 22rem; width: 100%; box-shadow: var(--shadow);
  max-height: 70vh; overflow-y: auto;
}
.askbox p { font-size: .98rem; line-height: 1.45; }
