/* Below the first screen: the same sea, the same voice */
body { background: var(--sea); }
#water { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.sea { background: transparent; z-index: 1; }
main.deep, footer { position: relative; z-index: 1; background: transparent; color: var(--on-sea); }
main.deep { padding: clamp(40px, 6vw, 90px) var(--pad) 0; max-width: 1480px; margin: 0 auto; }

.deep-head { max-width: 760px; margin: 0 0 28px; }
.deep-head h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.2vw, 64px); line-height: .98; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.deep-head p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--on-sea-2); max-width: 60ch; }

/* chapters */
.chapters { margin-bottom: clamp(70px, 9vw, 140px); }
.ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(34px, 5vw, 70px) 0; }
.ch + .ch { border-top: 1px solid rgba(255, 255, 255, .14); }
.ch-text { position: relative; }
.ch-no { position: absolute; left: -.06em; top: -.42em; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(120px, 13vw, 210px); line-height: 1; letter-spacing: -.05em; color: rgba(255, 255, 255, .08); pointer-events: none; }
.ch h3 { position: relative; margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.04; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.ch-big { position: relative; margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(54px, 6vw, 96px); line-height: .9; letter-spacing: -.035em; color: #fff; display: flex; align-items: baseline; gap: 12px; }
.ch-big span { font-size: .34em; letter-spacing: -.01em; }
.ch-big.yes span { color: #8fd3a6; } .ch-big.no span { color: #f09aa8; }
.ch-out { margin: 0 0 12px; font-size: 16.5px; font-weight: 600; color: #fff; }
.ch-means { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--on-sea-2); max-width: 52ch; }
.ch-means b { color: #fff; }
.ch-lean { margin: 0 0 16px; font-size: 14.5px; color: var(--on-sea-2); }
.ch-ask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-ask span { font-size: 15px; font-weight: 600; color: #fff; margin-right: 4px; }
.ch-ask button { border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; border-radius: 8px; padding: 8px 18px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ch-ask button:hover { border-color: #fff; }
.ch-ask button[data-c="yes"][aria-pressed="true"] { background: #fbfbf9; color: var(--yes-ink); border-color: #fbfbf9; }
.ch-ask button[data-c="no"][aria-pressed="true"] { background: #fbfbf9; color: var(--no-ink); border-color: #fbfbf9; }
.ch-you { margin: 10px 0 0; font-size: 15px; color: var(--on-sea-2); min-height: 1.4em; }
.ch-you b { color: #fff; }

.ch-map { position: relative; }
.ch-map canvas { display: block; width: 100%; height: clamp(300px, 34vw, 520px); cursor: crosshair; touch-action: pan-y; }
.ch-pins { position: absolute; inset: 0; pointer-events: none; }
.cpin { position: absolute; transform: translate(-50%, -100%); }
.cpin .tag { display: block; white-space: nowrap; background: var(--land); color: var(--ink); font-weight: 700; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.cpin .tag small { font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.cpin.y .tag { box-shadow: inset 3px 0 0 var(--yes-fill), 0 4px 12px rgba(0, 0, 0, .2); }
.cpin.n .tag { box-shadow: inset 3px 0 0 var(--no-fill), 0 4px 12px rgba(0, 0, 0, .2); }
.cpin.me .tag { background: var(--ink); color: #fff; } .cpin.me .tag small { color: #cfd3d6; }
.cpin .stem { display: block; width: 1.5px; height: 14px; margin: 0 auto; background: var(--land); }
.cpin.me .stem { background: var(--ink); }
.wipe { position: absolute; top: 4%; bottom: 14%; width: 0; border-left: 2px solid #fff; transform: translateX(-1px); cursor: ew-resize; touch-action: none; }
.wipe .grip { position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.wipe .grip::before, .wipe .grip::after { content: ""; position: absolute; top: 12px; border: 5px solid transparent; }
.wipe .grip::before { left: 4px; border-right-color: var(--sea); } .wipe .grip::after { right: 4px; border-left-color: var(--sea); }
.wipe:focus-visible .grip { outline: 3px solid #fff; outline-offset: 3px; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; margin-top: 6px; font-size: 13.5px; color: var(--on-sea-2); }
.ch-legend .lv { display: inline-flex; align-items: center; gap: 8px; }
.ch-legend .lv i { width: 90px; height: 8px; border-radius: 2px; display: inline-block; }
.ch-legend select { font: inherit; font-weight: 700; color: #fff; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .6); padding: 2px 2px; cursor: pointer; }
.ch-legend select option { color: var(--ink); }
.ch:not(.peeled) .ch-legend .lp { opacity: .7; }

/* questions that travelled together */
.moved { margin-bottom: clamp(70px, 9vw, 140px); }
.moved-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.sheet-card { background: var(--land); color: var(--ink); border-radius: 14px; padding: 20px; box-shadow: 0 14px 36px rgba(0, 0, 0, .16); min-width: 0; }
.sheet-card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.sheet-card .lede { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.mx text { font-family: var(--font); }
.chart .ql { fill: var(--ink-2); font-size: 12.5px; font-weight: 700; font-family: var(--font); }

/* ask the towns */
.finder { margin-bottom: clamp(60px, 7vw, 110px); }
.sentence { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 12px; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.02em; line-height: 1.25; color: #fff; max-width: 1100px; }
.sentence select { font: inherit; letter-spacing: inherit; color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-bottom: 3px solid #fff; border-radius: 6px 6px 0 0; padding: 0 8px; cursor: pointer; max-width: 100%; }
.sentence select option { color: var(--ink); font-size: 16px; }
.found { margin: 18px 0 14px; font-size: 16px; color: var(--on-sea-2); }
.found b { color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; max-height: 420px; overflow: auto; }
.pill-town { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: var(--land); color: var(--ink); padding: 5px 12px 5px 6px; cursor: pointer; text-align: left; transition: transform .15s; }
.pill-town:hover { transform: translateY(-2px); }
.pill-town.on { outline: 2.5px solid #fff; outline-offset: 2px; }
.pill-town span { display: grid; line-height: 1.15; }
.pill-town b { font-size: 14px; }
.pill-town small { font-size: 12px; color: var(--ink-2); }
.fulltable summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.fulltable[open] summary { margin-bottom: 12px; }
.fulltable .tools { margin-bottom: 10px; }
.fulltable .tools input { border: 1.5px solid #c9cdc8; border-radius: 8px; }
.fulltable .tablewrap { border: 0; border-radius: 8px; max-height: 560px; }
.fulltable thead th { border-bottom: 2px solid var(--ink); font-family: var(--font); text-transform: none; font-stretch: normal; letter-spacing: 0; font-weight: 700; font-size: 13px; }
.fulltable tbody tr:nth-child(even) { background: #f3f4f1; }
.fulltable tbody td { border-bottom: 0; }
.fulltable .res { font-family: var(--font); font-stretch: normal; text-transform: none; }

/* footer on the sea */
footer { max-width: 1480px; margin: 0 auto; padding: 0 var(--pad) 40px; }
footer .cert { border: 0; border-radius: 14px; background: var(--land); gap: 0; box-shadow: 0 14px 36px rgba(0, 0, 0, .16); }
footer .cert > div { border: 0; padding: 20px; }
footer .cert h4 { font-family: var(--display); text-transform: none; font-stretch: normal; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
footer .sign .wm { color: #fff; font-family: var(--display); text-transform: none; }
footer .sign p { color: var(--on-sea-2); }

@media (max-width: 900px) {
  .ch { grid-template-columns: minmax(0, 1fr); }
  .ch-map canvas { height: 300px; }
  .moved-grid { grid-template-columns: minmax(0, 1fr); }
  main.deep { padding-left: 16px; padding-right: 16px; }
  .sentence { font-size: 24px; }
}

.wipe .hint { position: absolute; top: -26px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .22); padding: 3px 8px; border-radius: 6px; transition: opacity .3s; }
.ch.peeled .wipe .hint { opacity: 0; }

.ch-map .src { margin: 4px 0 0; font-size: 12px; color: var(--on-sea-2); }
.drawer .tally .src { color: #c9ced2; }

/* the sentence reads as a sentence: answers are underlined words, not boxes */
.sentence select { -webkit-appearance: none; appearance: none; background: none; border: 0; border-bottom: 3px solid rgba(255, 255, 255, .55); border-radius: 0; padding: 0 2px 2px; color: #fff; transition: border-color .2s; }
.sentence select:hover, .sentence select:focus-visible { border-bottom-color: #fff; outline: none; }
.answer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 48px); align-items: center; margin: 26px 0 30px; }
.found-big { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 7vw, 120px); line-height: .88; letter-spacing: -.04em; color: #fff; }
.found-big span { font-size: .3em; letter-spacing: -.01em; margin-left: 10px; color: var(--on-sea-2); }
.found { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--on-sea-2); max-width: 44ch; }
.found .tn { font: inherit; font-weight: 700; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.found .tn:hover { text-decoration-color: #fff; }
.answer-map { position: relative; }
.answer-map canvas { display: block; width: 100%; height: clamp(280px, 30vw, 460px); cursor: pointer; }
.fulltable { background: transparent; box-shadow: none; padding: 0; color: #fff; }
.fulltable summary { color: #fff; font-family: var(--font); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .45); list-style: none; }
.fulltable summary::-webkit-details-marker { display: none; }
.fulltable[open] .tools, .fulltable[open] .tablewrap { background: var(--land); color: var(--ink); border-radius: 10px; }
.fulltable[open] .tools { padding: 10px; }

/* colophon: prose on the sea, no card */
footer.colophon { max-width: 1480px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--pad) 48px; border-top: 1px solid rgba(255, 255, 255, .16); }
.colophon h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.colophon .cols { columns: 2 420px; column-gap: 48px; }
.colophon .cols p { margin: 0 0 14px; break-inside: avoid; font-size: 14.5px; line-height: 1.6; color: var(--on-sea-2); }
.colophon a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.colophon .sig { margin: 22px 0 0; font-size: 14px; color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .answer { grid-template-columns: minmax(0, 1fr); }
  .answer-map canvas { height: 260px; }
}
.cpin.reg .tag { box-shadow: inset 3px 0 0 var(--sea), 0 4px 12px rgba(0, 0, 0, .2); }
.ch-ext { margin: -6px 0 16px; font-size: 15px; color: var(--on-sea-2); }
.ch-ext .tn { font: inherit; font-weight: 700; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.ch-ext .tn:hover { text-decoration-color: #fff; }
.ch-peel { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--on-sea-2); max-width: 70ch; transition: opacity .3s; }
.ch-peel b { color: #fff; }

/* the handle starts at the right edge, so its hint reads leftward */
.wipe .hint { left: auto; right: 22px; transform: none; top: calc(50% - 12px); }

/* ---------- controls look like controls: paper chips, the first screen's material ---------- */
.chip { position: relative; display: inline-flex; vertical-align: middle; }
.chip select, .sentence .chip select { -webkit-appearance: none; appearance: none; field-sizing: content; max-width: 100%; font: 700 clamp(16px, 1.4vw, 20px)/1.25 var(--font); letter-spacing: 0; color: var(--ink); background: var(--land); border: 0; border-radius: 10px; padding: 10px 40px 10px 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.chip select:hover, .sentence .chip select:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .26); }
.chip select:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.chip::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .16); vertical-align: middle; }
.seg button { font: 700 clamp(16px, 1.4vw, 20px)/1.25 var(--font); color: #fff; background: transparent; border: 0; border-radius: 9px; padding: 7px 18px; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { background: rgba(255, 255, 255, .14); }
.seg button[data-v="yes"][aria-pressed="true"] { background: var(--yes-fill); color: #fff; }
.seg button[data-v="no"][aria-pressed="true"] { background: var(--no-fill); color: #fff; }
.sentence { align-items: center; font-size: clamp(22px, 2.2vw, 32px); gap: 10px 12px; }
.found-big.yes { color: #8fd3a6; } .found-big.no { color: #f09aa8; }
.found-big span { color: var(--on-sea-2); }

/* ---------- which questions travelled together: a ranked list ---------- */
.lk-pick { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin: 0 0 26px; }
.lk-pick label { font-size: 15px; font-weight: 700; color: var(--on-sea-2); }
.lk-axis, .lk-row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 13rem) 20px; column-gap: 22px; align-items: center; }
.lk-axis { padding: 0 12px 8px; }
.lk-axis .sc { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--on-sea-2); }
.lk-axis em { font-style: normal; }
.lk-axis .opp { color: #e3a35f; } .lk-axis .same { color: #a9d4f5; }
.links { list-style: none; margin: 0; padding: 0; max-width: 1180px; }
.lk { border-top: 1px solid rgba(255, 255, 255, .14); }
.lk:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.lk-row { width: 100%; padding: 13px 12px; background: transparent; border: 0; color: #fff; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; transition: background .15s; }
.lk-row:hover, .lk.open .lk-row { background: rgba(255, 255, 255, .08); }
.lk-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.lk .nm { font-size: 16px; font-weight: 700; }
.lk .nm b { display: inline-block; width: 1.7em; font-family: var(--display); font-weight: 800; color: var(--on-sea-2); }
.lk .bar { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .09); }
.lk .bar::before { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1.5px; background: rgba(255, 255, 255, .45); }
.lk .bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.lk .say { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.lk .say small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--on-sea-2); }
.lk .chev { display: grid; place-items: center; color: var(--on-sea-2); transition: transform .2s; }
.lk.open .chev { transform: rotate(180deg); color: #fff; }
.lk-more { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 18px 32px; align-items: center; padding: 10px 12px 24px; }
.lk-plot canvas { display: block; width: 100%; height: 340px; cursor: crosshair; }
.lk-key p { margin: 0 0 10px; font-size: 15px; color: var(--on-sea-2); }
.lk-key p b { color: #fff; }
.lk-key i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 9px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(14, 63, 107, .7); }
.lk-key .src { margin-top: 14px; font-size: 12px; }
@media (max-width: 760px) {
  .lk-row { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 8px; }
  .lk .nm { grid-column: 1; } .lk .chev { grid-column: 2; grid-row: 1; }
  .lk .bar, .lk .say { grid-column: 1 / -1; }
  .lk-axis { grid-template-columns: minmax(0, 1fr); }
  .lk-axis > span:first-child { display: none; }
  .lk-more { grid-template-columns: minmax(0, 1fr); }
  .lk-plot canvas { height: 280px; }
}

/* ---------- colophon: one small line, the method behind a toggle ---------- */
footer.colophon { padding: 20px var(--pad) 26px; }
.colophon .line { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font-size: 12.5px; color: var(--on-sea-2); }
.colophon .line span + span::before { content: "·"; margin: 0 9px; opacity: .6; }
.colophon details.method summary { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #fff; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); list-style: none; }
.colophon details.method summary::-webkit-details-marker { display: none; }
.colophon details.method[open] summary { margin-bottom: 10px; }
.colophon .cols { columns: 3 280px; column-gap: 32px; }
.colophon .cols p { font-size: 12.5px; line-height: 1.55; margin: 0 0 10px; }
