/* Campus claim check -- app layout after the team's prototype (2026-10-26): warm off-white page, sidebar, white cards,
   navy primary, dark navy result card. System fonts only, no external requests. */

:root {
  --navy: #1f2a44;          /* primary: buttons, active tab, result card */
  --navy-deep: #161e33;
  --navy-soft: #e8ebf2;
  --bg: #f7f5f0;            /* warm off-white page */
  --surface: #ffffff;
  --sidebar: #fbfaf7;
  --field: #fcfbf8;
  --ink: #1f2430;
  --muted: #5d6270;
  --line: #e6e2d9;
  --accent: #2a3a66;
  --focus: #b8862e;
  --gold: #b8862e;
  --gold-soft: #f8efdc;

  --supported: #1c6b43;
  --supported-bg: #eaf5ee;
  --contradicted: #a8292b;
  --contradicted-bg: #fbeeee;
  --insufficient: #4a4f5c;
  --insufficient-bg: #f1f2f5;
  --info: #2a3a66;
  --info-bg: #eef1f8;

  /* the same tones, lightened for the dark result card */
  --on-dark: #f4f5f8;
  --on-dark-muted: #b9bfcc;
  --supported-on-dark: #7ed3a0;
  --contradicted-on-dark: #ff8a85;
  --insufficient-on-dark: #c9cfdb;
  --info-on-dark: #a9bcff;
  --gold-on-dark: #f0c35b;

  --notice-bg: #fbf3df;
  --notice-line: #b8862e;
  --error-bg: #fdf0f0;
  --error-line: #c45252;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 4px 14px rgba(31, 36, 48, .05);
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Always light (owner decision 2026-10-12): the warm page whatever the system theme. */
:root { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
strong, b, label, summary { font-weight: 600; }
h1, h2, h3 { font-weight: 650; line-height: 1.25; margin: 0 0 .5rem; color: var(--ink); }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
svg { flex: none; }

/* ---- app shell: sidebar + main column ---- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); padding: 1.25rem 1rem; display: flex;
  flex-direction: column; gap: .5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: .75rem; align-items: center; padding: .25rem .25rem 1rem; border-bottom: 1px solid var(--line); }
.brand-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy);
  color: #fff; font: 700 .72rem/1 var(--sans); letter-spacing: .04em; }
.brand-name { margin: 0; font-weight: 650; line-height: 1.25; }
.brand-sub { margin: 0; color: var(--muted); font-size: .78rem; }
.nav-label { margin: 1rem .5rem .25rem; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.nav-item { width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left; background: transparent;
  color: var(--ink); border: 1px solid transparent; border-radius: 10px; padding: .65rem .75rem; min-height: 44px;
  font: 500 .95rem/1.2 var(--sans); cursor: pointer; transition: background-color .15s ease; }
.nav-item:hover { background: var(--navy-soft); }
.nav-item.active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.nav-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { margin-top: auto; color: var(--muted); font-size: .8rem; padding: .75rem .5rem 0; border-top: 1px solid var(--line); }
.scrim { position: fixed; inset: 0; background: rgba(15, 20, 35, .35); z-index: 20; }

.main-col { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.75rem; border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.topbar-title { margin: 0; font-weight: 600; }
.topbar > .api-status { margin-left: auto; }
.icon-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  padding: 0; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
main { flex: 1 0 auto; padding: 1.5rem 1.75rem 2.5rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; max-width: 1180px; margin: 0 auto; }
.col-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 5rem; }

/* ---- cards ---- */
.scan-card, .card, .panel-card, .tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.scan-card { padding: 1.5rem; }
.scan-title { font-size: 1.6rem; margin-bottom: .25rem; }
.scan-lead { color: var(--muted); margin-bottom: 1.1rem; }
.card { padding: 1.25rem; }
.card:focus { outline: none; box-shadow: 0 0 0 3px rgba(184, 134, 46, .35); }
.card h2 { font-size: 1.1rem; }

/* ---- Text | Image | URL tabs (segmented control) ---- */
.tabs { display: flex; gap: .25rem; padding: .3rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1.1rem; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; min-height: 52px; padding: .45rem .5rem;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 500 .9rem/1.2 var(--sans); cursor: pointer;
  transition: background-color .15s ease, color .15s ease; }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---- form ---- */
label { display: block; margin-bottom: .4rem; color: var(--ink); }
textarea, input[type="text"] { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem .9rem; }
textarea:focus, input[type="text"]:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(31, 42, 68, .14); }
textarea { resize: vertical; min-height: 120px; }
.help, .note, .optional { color: var(--muted); font-size: .88rem; }
.help { margin: .4rem 0 0; }
.optional { font-weight: 400; }
.field-error { color: var(--contradicted); font-weight: 600; margin: .4rem 0 0; }
.optional-link { margin-top: 1.1rem; }
.actions { display: flex; gap: .75rem; margin-top: 1.1rem; flex-wrap: wrap; }
button { font: inherit; font-weight: 600; border-radius: 10px; padding: .7rem 1.5rem; min-height: 44px; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease; }
button.primary { background: var(--navy); color: #fff; flex: 1; }
button.primary:hover { background: var(--navy-deep); }
button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
button.secondary:hover { border-color: var(--navy); }
button:disabled { opacity: .6; cursor: progress; }

.api-status { font-size: .82rem; margin: 0 0 0 auto; color: var(--supported); white-space: nowrap; }
.api-status::before { content: "\25CF  "; }
.api-status.pending { color: var(--muted); }
.api-status.bad { color: var(--contradicted); }
.loading { color: var(--muted); margin: 0; }
.error-tech summary { color: var(--muted); font-size: .85rem; cursor: pointer; }
.error-tech p { overflow-wrap: anywhere; }
.error { background: var(--error-bg); border: 1px solid #efcaca; border-left: 4px solid var(--error-line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.error h2 { font-size: 1.1rem; }

/* ---- picture upload (drop area look; the file input itself stays usable) ---- */
.image-check .drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 1.6rem 1rem;
  border: 1.5px dashed #d6cfbf; border-radius: var(--radius); background: var(--field); cursor: pointer; margin: 0; }
.image-check .drop svg { width: 34px; height: 34px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-weight: 600; }
.image-check input[type="file"] { display: block; margin-top: .6rem; font: inherit; font-size: .9rem; }
.image-preview { display: block; max-width: 100%; max-height: 260px; margin-top: .75rem; border: 1px solid var(--line); border-radius: 8px; }
.note.uncertain { color: var(--ink); font-weight: 600; }

/* ---- outcome legend ---- */
.legend { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.legend li { display: flex; gap: .75rem; align-items: flex-start; }
.legend h3 { font-size: .98rem; margin: 0 0 .1rem; }
.legend .code { font-size: .66rem; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: .05rem .5rem; vertical-align: middle; margin-left: .3rem; font-weight: 500; }
.legend p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; flex: none; }
.dot.supported { background: var(--supported); }
.dot.contradicted { background: var(--contradicted); }
.dot.insufficient { background: var(--insufficient); }
.dot.info { background: var(--info); }

/* ---- result ---- */
.result { display: flex; flex-direction: column; gap: 1.1rem; }
.result:focus { outline: none; }            /* focused by script after a check; the region is announced via aria */
.claim-echo { color: var(--muted); margin: 0; }
.claim-echo q { color: var(--ink); }

/* The verdict: a dark navy card (the prototype's result panel), the tone shown by the mark, its ring and the label. */
.verdict { display: flex; gap: 1.1rem; align-items: center; padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: var(--navy); color: var(--on-dark); box-shadow: var(--shadow); border-left: 5px solid var(--tone); }
.verdict h2 { margin: 0 0 .2rem; font-size: 1.45rem; color: var(--on-dark); }
.verdict p { margin: 0 0 .25rem; color: var(--on-dark-muted); }
.verdict-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--tone); color: var(--navy);
  display: grid; place-items: center; font: 700 1.45rem/1 var(--sans); flex: none; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
.verdict.supported { --tone: var(--supported-on-dark); --tone-bg: var(--supported-bg); }
.verdict.contradicted { --tone: var(--contradicted-on-dark); --tone-bg: var(--contradicted-bg); }
.verdict.insufficient, .verdict.unknown { --tone: var(--insufficient-on-dark); --tone-bg: var(--insufficient-bg); }
.verdict.info { --tone: var(--info-on-dark); --tone-bg: var(--info-bg); }
/* Legitimacy level 2 ("sketchy"): gold, between a match (green) and a conflict (red). */
.verdict.sketchy { --tone: var(--gold-on-dark); --tone-bg: var(--gold-soft); }
.verdict-code { display: inline-block; font: 600 .7rem/1.4 var(--sans); letter-spacing: .08em; color: var(--tone) !important;
  border: 1px solid var(--tone); border-radius: 999px; padding: .1rem .6rem; margin-bottom: .45rem !important; }
.verdict a { color: var(--info-on-dark); }
.level-reasons { margin: .35rem 0 .25rem; padding-left: 1.1rem; color: var(--on-dark); }
.level-reasons li { margin: .15rem 0; }
.level-unsure { padding: .75rem 0 .25rem; }
/* The 1-5 level half-dial on picture results (a fixed scale, not a probability). */
.gauge { width: 120px; height: 72px; flex: none; }
.gauge .seg { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 9; stroke-linecap: round; }
.gauge .seg.on { stroke: var(--tone); }
.gauge-value { fill: var(--on-dark); font: 700 20px/1 var(--sans); }

.panel { background: transparent; }
.panel h3 { color: var(--ink); font-size: 1.05rem; }
.panel.closest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
/* Keep the main view simple: the technical rows (document id, source type, similarity) stay in Details. */
.panel.closest .meta.tech { display: none; }
.passage-context { color: var(--muted); }
/* Low match: say plainly that nothing matches and what the checker is for. */
.scope-note { color: var(--ink); margin-bottom: .35rem; }
/* Display-only notices (date, old post, hearsay): highlighted, the verdict itself is unchanged. */
.date-note { color: var(--ink); background: var(--notice-bg); border-left: 3px solid var(--notice-line);
  padding: .5rem .8rem; border-radius: 8px; font-size: .9rem; margin: 0; }
.date-note.old-post { font-weight: 600; border-left-width: 5px; }
.date-note.hearsay { font-weight: 600; }
.evidence-text { margin: .75rem 0 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.provenance-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }

details.more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; }
details.more > summary { padding: .9rem 0; color: var(--muted); font-size: .92rem; }
details.more .panel { padding: .75rem 0 1rem; }
details.more .panel + .panel { border-top: 1px solid var(--line); }
details.more .panel h3 { font-size: 1rem; }

.meta { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0 .75rem; font-size: .88rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.meta.tech { font-size: .8rem; color: var(--muted); }
.meta.tech dd { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); font-weight: 400; }
th { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.predicted td { font-weight: 600; background: var(--insufficient-bg); }
.evidence-list { list-style: none; margin: 0; padding: 0; }
.evidence-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.evidence-list li:last-child { border-bottom: 0; }
.evidence-list .date-note { margin: .5rem 0 0; }
.item-head { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; font-size: .9rem; }
.tag { background: var(--navy); color: #fff; border-radius: 999px; padding: .05rem .6rem; font-size: .75rem; }
.tag.example { background: var(--insufficient-bg); color: var(--ink); border: 1px solid var(--line); }
summary { cursor: pointer; color: var(--accent); }
.statement-list { margin: 1rem 0 .5rem; padding-left: 1.4rem; }
.statement { margin: 0 0 .75rem; }
.statement q { display: block; color: var(--ink); }
.statement-outcome { margin: .15rem 0 0; font-weight: 600; }
.statement.contradiction .statement-outcome { color: var(--contradicted); }
.statement.match .statement-outcome { color: var(--supported); }
.statement.not_checked_short, .statement.not_checked_limit { color: var(--muted); }

/* ---- dashboard ---- */
.dash-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
#view-dashboard { max-width: 1180px; margin: 0 auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.tile { padding: 1rem 1.1rem; }
.tile-label { margin: 0 0 .35rem; color: var(--muted); font-size: .82rem; }
.tile-value { margin: 0; font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile-sub { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; }
.tile.dark { background: var(--navy); border-color: var(--navy); }
.tile.dark .tile-label, .tile.dark .tile-sub { color: var(--on-dark-muted); }
.tile.dark .tile-value { color: var(--on-dark); }
.panel-card { padding: 1.1rem 1.25rem; }
.panel-card.wide { margin-bottom: 1rem; }
.panel-title { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.chart { width: 100%; height: auto; max-height: 260px; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--sans); }
.chart .bar.text, .swatch.text, .bar-fill.kind-text { fill: var(--navy); background: var(--navy); }
.chart .bar.link, .swatch.link, .bar-fill.kind-link { fill: #8a94ad; background: #8a94ad; }
.chart .bar.picture, .swatch.picture, .bar-fill.kind-picture { fill: #d4b47a; background: #d4b47a; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: .6rem 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.chart-legend li { display: flex; align-items: center; gap: .4rem; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.bar-list li { display: grid; grid-template-columns: minmax(110px, 40%) 1fr max-content; gap: .6rem; align-items: center; font-size: .88rem; }
.bar-name { color: var(--ink); }
.bar-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--navy); transform-origin: left center; }
.bar-fill.supported, .bar-fill.lvl-level_5, .bar-fill.lvl-level_4 { background: var(--supported); }
.bar-fill.contradicted, .bar-fill.lvl-level_1 { background: var(--contradicted); }
.bar-fill.lvl-level_2 { background: var(--gold); }
.bar-fill.not_confirmed, .bar-fill.lvl-level_3, .bar-fill.could_not_read, .bar-fill.lvl-could_not_read,
.bar-fill.lvl-no_text, .bar-fill.lvl-other_page { background: #9aa1b1; }
.bar-fill.withheld_language, .bar-fill.question { background: #8a94ad; }
.bar-count { color: var(--muted); font-variant-numeric: tabular-nums; }

.footer { color: var(--muted); font-size: .82rem; padding: 1.25rem 1.75rem 1.5rem; border-top: 1px solid var(--line); }
.footer p { margin: 0 auto; max-width: 1180px; text-align: center; }

/* ---- smaller screens: the sidebar becomes a slide-in menu ---- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr; }
  .col-side { position: static; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .grid, .scan-card, .col-main { min-width: 0; max-width: 100%; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 30; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 10px 40px rgba(15, 20, 35, .25); }
  .icon-btn { display: grid; }
  .topbar, main { padding-left: 1rem; padding-right: 1rem; }
  .footer { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 600px) {
  .scan-card { padding: 1.1rem; }
  .scan-title { font-size: 1.35rem; }
  .verdict { align-items: flex-start; flex-wrap: wrap; }
  .api-status { display: none; }
  .bar-list li { grid-template-columns: 1fr max-content; }
  .bar-list .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar, .tab, .nav-item, button { transition: none; }
}

/* CAMPUS_VERIFY_UI_EXTRAS: tap-to-try examples, next steps, copy/share */
.examples { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
button.chip { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .75rem; font-size: .85rem; cursor: pointer; }
button.chip:hover, button.chip:focus-visible { border-color: var(--navy); }
.next-steps { border-left: 3px solid var(--navy); padding: .6rem .9rem; background: var(--surface); }
.next-steps .next-title { font-weight: 600; color: var(--ink); margin: 0 0 .3rem; }
.next-steps ul { margin: 0; padding-left: 1.1rem; }
.share-bar { align-items: center; margin-top: 0; }

/* CAMPUS_VERIFY_AUTH=google: sign-in, account chip, Account and Users pages */
.account-chip { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.signin-top { display: flex; align-items: center; }
button.small { padding: .3rem .7rem; font-size: .82rem; }
.signin-card { max-width: 34rem; margin: 2rem auto; }
.google-btn { margin: 1.25rem 0; min-height: 44px; }
.setting { margin-top: 1rem; }
.switch-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* dashboard period; delete my account */
.dash-controls { display: flex; gap: .5rem; align-items: center; }
.dash-controls select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
button.danger { color: var(--contradicted); }

/* CAMPUS_VERIFY_TOUR: guided first-visit tour */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15, 20, 35, .62);
  outline: 3px solid var(--gold); transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.tour-card { position: fixed; width: min(24rem, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.tour-card:focus { outline: none; }
.tour-card.centered { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: min(28rem, calc(100vw - 32px)); }
.tour-spot[hidden] { display: none; }
.tour-card h2 { font-size: 1.15rem; margin: .1rem 0 .4rem; }
.tour-step { font-size: .8rem; color: var(--muted); margin: 0; }
.tour-dots { display: flex; gap: .35rem; margin: .8rem 0 .2rem; }
.tour-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line); }
.tour-dots span.on { background: var(--navy); }
.tour-actions { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.tour-gap { flex: 1; }
.link-btn { background: none; border: 0; color: var(--muted); padding: .3rem 0; cursor: pointer; text-decoration: underline; }
.tour-example { margin: .6rem 0 0; }
.post-example { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; background: var(--bg, #faf8f3); }
.post-example .post-meta { font-size: .82rem; color: var(--muted); margin: 0 0 .3rem; }
.tour-tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  background: var(--gold-soft); color: var(--ink); border-radius: 999px; padding: .1rem .5rem; margin: 0 0 .4rem; }
.tour-banner { display: flex; align-items: center; gap: .6rem; background: var(--gold-soft); border-radius: 10px;
  padding: .55rem .75rem; margin-bottom: 1rem; font-size: .9rem; }
.tour-banner span { flex: 1; }
body.touring { overflow: hidden; }
@media (max-width: 860px) {
  .tour-card:not(.centered) { left: 16px !important; right: 16px; bottom: 16px; top: auto !important; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }
