/* All-Visas Finder — shared design language for the Journey / Atlas / Deck
 * islands. Scoped under .avf so it never collides with the site style.css.
 * Fonts (Space Grotesk / Inter / IBM Plex Mono) are loaded by each finder
 * template's {% block head_extra %}. Design tokens per PRD §5. */

.avf {
  --ink: #12233D; --ink-70: #3D4E68; --paper: #F5F7F9; --card: #FFFFFF;
  --green: #1F7A57; --green-soft: #DDF0E7; --green-bg: #E7F3EE;
  --amber: #B97E1C; --amber-soft: #F7ECD6; --amber-bg: #FAF1DF;
  --red: #B3382C; --muted: #8A97A8; --line: #DEE4EB;
  --disp: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --body: 'Inter', 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  font-family: var(--body); color: var(--ink);
}

/* Give the finder pages the paper background edge-to-edge. */
body.avf-page { background: var(--paper); }
.avf-page main.avf-main { padding: 0; max-width: none; }

/* ---- intro band (SSR, visible with and without JS) ------------------- */
.avf-intro { background: var(--ink); color: #fff; padding: 34px 22px 40px; }
.avf-intro-inner { max-width: 1080px; margin: 0 auto; }
.avf-intro .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: #FFD9A0; margin-bottom: 12px; }
.avf-intro h1 { font-family: var(--disp); font-size: clamp(24px, 4vw, 40px); font-weight: 700; line-height: 1.12; max-width: 22ch; margin: 0 0 10px; }
.avf-intro p { color: #9FB2CC; font-size: 15px; max-width: 60ch; margin: 0; line-height: 1.55; }
.avf-tablink { display: inline-flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.avf-tablink a { font-family: var(--mono); font-size: 12px; color: #C6D3E4; text-decoration: none; border: 1px solid #35496B; border-radius: 99px; padding: 6px 13px; transition: border-color .15s, color .15s; }
.avf-tablink a:hover { border-color: #7E96BC; color: #fff; }
.avf-tablink a.is-current { background: #fff; color: var(--ink); border-color: #fff; }

/* ---- no-JS fallback --------------------------------------------------- */
.avf-noscript { max-width: 1080px; margin: 24px auto; padding: 18px 22px; background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; color: var(--ink-70); font-size: 14.5px; line-height: 1.6; }
.avf-noscript a { color: var(--ink); font-weight: 600; }

/* Hide the JS island until it mounts; noscript shows meanwhile. */
.avf-app[hidden] { display: none; }
.avf-loading { max-width: 1080px; margin: 40px auto; padding: 0 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---- stamp badge (the brand signature) ------------------------------- */
.avf .stamp { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 2.5px double var(--green); color: var(--green); border-radius: 6px; padding: 5px 10px; transform: rotate(-6deg); white-space: nowrap; display: inline-block; }
.avf .stamp.a { border-color: var(--amber); color: var(--amber); }
.avf .stamp.o { border-color: var(--muted); color: var(--muted); }
.avf .stamp.pop { animation: avfStamp .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes avfStamp { from { transform: rotate(-6deg) scale(1.7); opacity: 0 } to { transform: rotate(-6deg) scale(1); opacity: 1 } }

/* ---- buttons / controls ---------------------------------------------- */
.avf .btn { font-family: var(--disp); font-weight: 600; font-size: 15px; border: none; border-radius: 10px; padding: 13px 26px; cursor: pointer; transition: transform .12s; }
.avf .btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.avf .btn-primary { background: var(--ink); color: #fff; }
.avf .btn-primary:hover { transform: translateY(-1px); }
.avf .btn-ghost { background: transparent; color: var(--ink-70); text-decoration: underline; padding: 13px 8px; font-family: var(--body); font-weight: 500; font-size: 14px; cursor: pointer; border: none; }
.avf input[type=range] { width: 100%; accent-color: var(--ink); height: 30px; }
.avf .foot-note { max-width: 1080px; margin: 40px auto 60px; padding: 16px 22px 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); }
.avf .foot-note a { color: var(--ink-70); }

/* ---- shared card bits (deck + journey results) ----------------------- */
.avf .group-label { max-width: 1080px; margin: 28px auto 12px; padding: 0 22px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-70); }
.avf .group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (prefers-reduced-motion: reduce) {
  .avf *, .avf *::before, .avf *::after { animation: none !important; transition: none !important; }
}

/* ======================================================================
 *  A · JOURNEY
 * ==================================================================== */
.avf-journey .shell { max-width: 1060px; margin: 0 auto; padding: 24px 22px 60px; display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
@media (max-width: 860px) { .avf-journey .shell { grid-template-columns: 1fr; gap: 18px; } }
.avf-journey .rail { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; order: 2; }
@media (max-width: 860px) { .avf-journey .rail { position: static; order: 0; display: flex; align-items: center; gap: 18px; padding: 14px 18px; } }
.avf-journey .rail .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.avf-journey .rail .big { font-family: var(--disp); font-size: 60px; font-weight: 700; line-height: 1; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .avf-journey .rail .big { font-size: 38px; margin: 0; } }
.avf-journey .rail .sub { font-size: 13px; color: var(--ink-70); }
.avf-journey .funnel { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
@media (max-width: 860px) { .avf-journey .funnel { display: none; } }
.avf-journey .frow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.avf-journey .frow .bar { height: 8px; border-radius: 4px; background: var(--line); flex: 1; overflow: hidden; }
.avf-journey .frow .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.avf-journey .frow.active .bar i { background: var(--green); }
.avf-journey .frow .n { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.avf-journey .crumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; min-height: 26px; }
.avf-journey .crumb { font-family: var(--mono); font-size: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; color: var(--ink-70); cursor: pointer; }
.avf-journey .crumb:hover { border-color: var(--ink); }
.avf-journey .crumb b { color: var(--ink); }
.avf-journey .qnum { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.avf-journey h2.q { font-family: var(--disp); font-size: clamp(24px, 4vw, 34px); font-weight: 700; line-height: 1.15; margin: 0 0 8px; }
.avf-journey .hint { font-size: 14px; color: var(--ink-70); margin-bottom: 26px; max-width: 52ch; }
.avf-journey .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.avf-journey .opt { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; text-align: left; font-family: var(--body); transition: transform .12s, border-color .12s, box-shadow .12s; }
.avf-journey .opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18, 35, 61, .08); }
.avf-journey .opt:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.avf-journey .opt .ico { font-size: 22px; margin-bottom: 10px; display: block; }
.avf-journey .opt .t { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.avf-journey .opt .d { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.avf-journey .slider-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 560px; }
.avf-journey .slider-val { font-family: var(--disp); font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; }
.avf-journey .slider-val small { font-size: 15px; color: var(--muted); font-family: var(--mono); font-weight: 400; }
.avf-journey .ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 4px; }
.avf-journey .impact { font-family: var(--mono); font-size: 12px; color: var(--green); margin-top: 14px; min-height: 18px; }
.avf-journey .actions { display: flex; gap: 12px; margin-top: 24px; align-items: center; }
.avf-journey .vcards { display: grid; gap: 12px; }
.avf-journey .vcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.avf-journey .vcard .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.avf-journey .vcard .name { font-family: var(--disp); font-weight: 600; font-size: 17px; }
.avf-journey .vcard .name a { color: inherit; text-decoration: none; }
.avf-journey .vcard .name a:hover { text-decoration: underline; }
.avf-journey .vcard .why { font-size: 13px; color: var(--ink-70); margin-top: 6px; line-height: 1.5; }
.avf-journey .vcard .gap { font-family: var(--mono); font-size: 12px; color: var(--amber); margin-top: 6px; }
.avf-journey .morebtn { margin-top: 14px; background: none; border: 1px dashed var(--line); border-radius: 10px; padding: 11px; width: 100%; font-family: var(--mono); font-size: 12px; color: var(--ink-70); cursor: pointer; }
.avf-journey .morebtn:hover { border-color: var(--ink); color: var(--ink); }
.avf-journey .res-head h2 { font-family: var(--disp); font-size: clamp(24px, 4vw, 32px); font-weight: 700; margin: 0; }
.avf-journey .res-head p { color: var(--ink-70); font-size: 14px; margin-top: 6px; }

/* ======================================================================
 *  B · ATLAS
 * ==================================================================== */
.avf-atlas .wrap { display: grid; grid-template-columns: 320px 1fr; min-height: 60vh; }
@media (max-width: 900px) { .avf-atlas .wrap { grid-template-columns: 1fr; } }
.avf-atlas .panel { background: var(--ink); color: #E8EEF6; padding: 24px 22px 40px; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; }
@media (max-width: 900px) { .avf-atlas .panel { position: static; max-height: none; } }
.avf-atlas .panel h2 { font-family: var(--disp); font-size: 21px; font-weight: 700; line-height: 1.2; margin: 0; }
.avf-atlas .panel .lead { font-size: 13px; color: #9FB2CC; margin: 8px 0 22px; line-height: 1.5; }
.avf-atlas .field { margin-bottom: 20px; }
.avf-atlas .field > label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8FA3BF; margin-bottom: 8px; }
.avf-atlas .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avf-atlas .chip { font-family: var(--body); font-size: 12.5px; font-weight: 500; background: transparent; border: 1px solid #35496B; color: #C6D3E4; border-radius: 99px; padding: 6px 12px; cursor: pointer; transition: all .12s; }
.avf-atlas .chip:hover { border-color: #7E96BC; }
.avf-atlas .chip.on { background: #fff; color: var(--ink); border-color: #fff; }
.avf-atlas .chip:focus-visible { outline: 2px solid #FFD9A0; outline-offset: 2px; }
.avf-atlas .rangeval { font-family: var(--disp); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.avf-atlas .rangeval small { font-family: var(--mono); font-size: 11px; color: #8FA3BF; font-weight: 400; }
.avf-atlas .panel input[type=range] { accent-color: #5AC49A; }
.avf-atlas .toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 10px 0; border-bottom: 1px solid #22375A; cursor: pointer; }
.avf-atlas .toggle input { width: 18px; height: 18px; accent-color: #5AC49A; cursor: pointer; }
.avf-atlas .stat { font-family: var(--mono); font-size: 11px; color: #8FA3BF; margin-top: 22px; line-height: 1.8; }
.avf-atlas .stat b { color: #5AC49A; font-size: 14px; }
.avf-atlas .atlas { padding: 26px 26px 40px; }
.avf-atlas .atlas-head h2 { font-family: var(--disp); font-size: clamp(21px, 3vw, 28px); font-weight: 700; margin: 0; }
.avf-atlas .legend { display: flex; gap: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-70); margin: 10px 0 24px; flex-wrap: wrap; }
.avf-atlas .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.avf-atlas .region { margin-bottom: 28px; }
.avf-atlas .region h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.avf-atlas .region h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.avf-atlas .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.avf-atlas .tile { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s, background .35s, border-color .35s; position: relative; }
.avf-atlas .tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(18, 35, 61, .10); }
.avf-atlas .tile:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.avf-atlas .tile .flag { font-size: 24px; }
.avf-atlas .tile .cn { font-family: var(--disp); font-weight: 600; font-size: 14.5px; margin: 6px 0 2px; }
.avf-atlas .tile .cs { font-family: var(--mono); font-size: 10.5px; color: var(--ink-70); }
.avf-atlas .tile.g { background: var(--green-soft); border-color: var(--green); }
.avf-atlas .tile.g .cs { color: var(--green); font-weight: 600; }
.avf-atlas .tile.a { background: var(--amber-soft); border-color: var(--amber); }
.avf-atlas .tile.a .cs { color: var(--amber); font-weight: 600; }
.avf-atlas .tile.o { opacity: .55; }
.avf-atlas .tile .dotrow { position: absolute; top: 12px; right: 12px; display: flex; gap: 3px; }
.avf-atlas .tile .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.avf-atlas .tile .dot.g { background: var(--green); }
.avf-atlas .tile .dot.a { background: var(--amber); }
.avf-scrim { position: fixed; inset: 0; background: rgba(10, 20, 38, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.avf-scrim.open { opacity: 1; pointer-events: auto; }
.avf-drawer { position: fixed; top: 0; right: -480px; width: min(460px, 100vw); height: 100vh; background: var(--card); z-index: 50; transition: right .3s cubic-bezier(.22, 1, .36, 1); box-shadow: -12px 0 40px rgba(10, 20, 38, .18); overflow-y: auto; padding: 24px; }
.avf-drawer.open { right: 0; }
.avf-drawer .close { float: right; background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; }
.avf-drawer h3 { font-family: var(--disp); font-size: 24px; font-weight: 700; margin: 4px 0 2px; }
.avf-drawer .dsub { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.avf-drawer .prog { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.avf-drawer .prog .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.avf-drawer .prog .pn { font-family: var(--disp); font-weight: 600; font-size: 15.5px; }
.avf-drawer .prog .pn a { color: inherit; text-decoration: none; }
.avf-drawer .prog .pn a:hover { text-decoration: underline; }
.avf-drawer .prog .pm { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.avf-drawer .checks { margin-top: 12px; font-size: 12.5px; line-height: 1.9; }
.avf-drawer .checks .ok { color: var(--green); }
.avf-drawer .checks .no { color: var(--red); }
.avf-drawer .checks .unk { color: var(--muted); }
.avf-drawer .gapline { font-family: var(--mono); font-size: 11.5px; color: var(--amber); margin-top: 8px; background: var(--amber-soft); border-radius: 6px; padding: 7px 10px; }

/* ======================================================================
 *  C · DECK
 * ==================================================================== */
.avf-deck .shell { max-width: 1120px; margin: 0 auto; padding: 24px 22px 40px; display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .avf-deck .shell { grid-template-columns: 1fr; } }
.avf-deck .passport { position: sticky; top: 16px; background: linear-gradient(160deg, #16294A 0%, #12233D 60%, #0D1A2E 100%); color: #E8EEF6; border-radius: 16px; padding: 22px; box-shadow: 0 16px 40px rgba(13, 26, 46, .28); overflow: hidden; }
@media (max-width: 920px) { .avf-deck .passport { position: static; } }
.avf-deck .passport::before { content: "ALL-VISAS"; position: absolute; bottom: -14px; right: -6px; font-family: var(--disp); font-weight: 700; font-size: 60px; color: rgba(255, 255, 255, .045); letter-spacing: .05em; pointer-events: none; }
.avf-deck .ph { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: #8FA3BF; border-bottom: 1px solid #2A3F63; padding-bottom: 12px; margin-bottom: 16px; }
.avf-deck .ph .chipicon { width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #D8B36A, #B98F42); }
.avf-deck .prow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.avf-deck .pfield label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #8FA3BF; margin-bottom: 4px; }
.avf-deck .pfield select, .avf-deck .pfield input { width: 100%; background: #0E1D35; border: 1px solid #2A3F63; color: #E8EEF6; font-family: var(--disp); font-weight: 600; font-size: 15px; border-radius: 8px; padding: 8px 10px; }
.avf-deck .pfield input:focus, .avf-deck .pfield select:focus { outline: 2px solid #5AC49A; border-color: transparent; }
.avf-deck .pfield.full { grid-column: 1 / -1; }
.avf-deck .pnote { font-family: var(--mono); font-size: 10px; color: #5AC49A; margin-top: 14px; letter-spacing: .06em; }
.avf-deck .savebadge { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; color: #8FA3BF; }
.avf-deck .share { margin-top: 14px; }
.avf-deck .share button { width: 100%; font-family: var(--disp); font-weight: 600; font-size: 13px; background: rgba(255,255,255,.08); color: #E8EEF6; border: 1px solid #2A3F63; border-radius: 8px; padding: 9px; cursor: pointer; }
.avf-deck .share button:hover { background: rgba(255,255,255,.14); }
.avf-deck .deck-head h2 { font-family: var(--disp); font-size: clamp(21px, 3vw, 28px); font-weight: 700; margin: 0 0 14px; }
.avf-deck .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.avf-deck .tab { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 14px; cursor: pointer; color: var(--ink-70); }
.avf-deck .tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.avf-deck .tab:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.avf-deck .sortrow { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.avf-deck .sortrow select { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; background: var(--card); color: var(--ink); }
.avf-deck .deck { display: grid; gap: 12px; }
.avf-deck .mcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: box-shadow .15s; }
.avf-deck .mcard:hover { box-shadow: 0 8px 22px rgba(18, 35, 61, .08); }
.avf-deck .mtop { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; cursor: pointer; }
.avf-deck .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 14px; position: relative; }
.avf-deck .ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.avf-deck .ring circle { fill: none; stroke-width: 5; }
.avf-deck .mname { font-family: var(--disp); font-weight: 600; font-size: 17px; }
.avf-deck .mmeta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.avf-deck .mgap { font-family: var(--mono); font-size: 11.5px; margin-top: 6px; color: var(--amber); }
.avf-deck .mgap.ok { color: var(--green); }
.avf-deck .mright { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.avf-deck .cmpchk { font-family: var(--mono); font-size: 10.5px; color: var(--ink-70); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.avf-deck .cmpchk input { accent-color: var(--ink); }
.avf-deck .mdetail { display: none; border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; font-size: 13px; }
.avf-deck .mcard.open .mdetail { display: block; }
.avf-deck .mdetail .ok { color: var(--green); line-height: 1.9; }
.avf-deck .mdetail .no { color: var(--red); line-height: 1.9; }
.avf-deck .mdetail .unk { color: var(--muted); line-height: 1.9; }
.avf-deck .mdetail a.dlink { font-family: var(--mono); font-size: 11px; color: var(--ink); display: inline-block; margin-top: 10px; }
.avf-deck .tray { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: #fff; padding: 12px 20px; display: none; align-items: center; gap: 16px; z-index: 60; font-family: var(--mono); font-size: 12px; }
.avf-deck .tray.show { display: flex; }
.avf-deck .tray .items { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.avf-deck .tray .titem { background: #22375A; border-radius: 8px; padding: 6px 10px; }
.avf-deck .tray button { font-family: var(--disp); font-weight: 600; background: #fff; color: var(--ink); border: none; border-radius: 8px; padding: 10px 18px; cursor: pointer; }
.avf-deck .cmp-modal { position: fixed; inset: 0; background: rgba(10, 20, 38, .55); display: none; place-items: center; z-index: 70; padding: 20px; }
.avf-deck .cmp-modal.show { display: grid; }
.avf-deck .cmp-box { background: var(--card); border-radius: 16px; max-width: 860px; width: 100%; max-height: 86vh; overflow: auto; padding: 26px; }
.avf-deck .cmp-box h3 { font-family: var(--disp); margin: 0 0 16px; }
.avf-deck .cmp-box table { width: 100%; border-collapse: collapse; font-size: 13px; }
.avf-deck .cmp-box th, .avf-deck .cmp-box td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.avf-deck .cmp-box th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); background: var(--paper); }
.avf-deck .cmp-box td.h { font-family: var(--disp); font-weight: 600; }
.avf-deck .cmp-box .xbtn { float: right; background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; }

/* ======================================================================
 *  /finder overview
 * ==================================================================== */
.avf-hub { max-width: 1080px; margin: 0 auto; padding: 30px 22px 20px; }
.avf-hub .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.avf-hub .concept { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(18, 35, 61, .07); transition: transform .15s; }
.avf-hub .concept:hover { transform: translateY(-4px); }
.avf-hub .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.avf-hub .concept h2 { font-family: var(--disp); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.avf-hub .concept p { font-size: 13.5px; color: var(--ink-70); line-height: 1.6; flex: 1; }
.avf-hub .for { font-family: var(--mono); font-size: 11px; color: var(--green); margin: 12px 0 16px; }
.avf-hub a.go { font-family: var(--disp); font-weight: 600; text-align: center; background: var(--ink); color: #fff; text-decoration: none; border-radius: 10px; padding: 13px; transition: transform .12s; }
.avf-hub a.go:hover { transform: translateY(-1px); }
.avf-hub table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 13.5px; margin-top: 14px; }
.avf-hub th, .avf-hub td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.avf-hub th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); background: #EDF1F5; }
.avf-hub td.dots { font-size: 12px; letter-spacing: 2px; color: var(--ink); }
.avf-hub h3.mx { font-family: var(--disp); font-size: 22px; margin: 40px 0 6px; }
