/* Pathway finder and route pages (/pathways…). Builds on the tokens in
   app.css and the look of the landing page: dark hero with dot grid, serif
   headlines, coral/blue/mint/gold accents. Motion lives in pathways.js and
   switches off with prefers-reduced-motion. */

:root { --night-2: #151e42; --gold: #f2b84b; --coral-light: #ffa184; --shadow-lg: 0 2px 4px rgba(23,26,43,.06), 0 24px 60px rgba(23,26,43,.12); }
@media (prefers-color-scheme: dark) { :root { --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45); } }
main.pw { padding-top: 0; }
.bar { position: relative; z-index: 3; }

/* ---------- Hero ---------- */
.pwhero { position: relative; overflow: hidden; color: #fff; padding: 40px 0 120px;
  background:
    radial-gradient(760px 480px at 90% 0%, rgba(72,104,230,.42), transparent 60%),
    radial-gradient(640px 480px at 0% 100%, rgba(255,106,69,.30), transparent 60%),
    linear-gradient(165deg, var(--night) 0%, var(--night-2) 100%); }
.pwhero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 95%); mask-image: linear-gradient(to bottom, #000 20%, transparent 95%); }
.pwhero .wrap { position: relative; z-index: 1; }
.pwgrid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .pwgrid { grid-template-columns: 1fr; gap: 32px; } .pwhero { padding: 28px 0 104px; } }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0 0 22px; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #ffd8cb;
  background: rgba(255,106,69,.14); border: 1px solid rgba(255,106,69,.35); padding: 6px 14px 6px 10px; border-radius: 999px; margin-bottom: 22px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,106,69,.25); animation: pwpulse 1.8s infinite; }
@keyframes pwpulse { 50% { box-shadow: 0 0 0 8px rgba(255,106,69,0); } }
.pwhero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 0 0 20px; }
.pwhero h1 em { font-style: italic; color: var(--coral-light); }
.pwhero .lead { font-size: 1.1rem; color: rgba(255,255,255,.76); max-width: 34em; margin: 0 0 26px; }
.hchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hchips li { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); padding: 6px 13px; border-radius: 999px; }

/* Code badge instead of emoji flags (emoji flags show as letters on Windows). */
.cc { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--c1, var(--coral)), var(--c2, #ff9f68)); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.cc.DE { --c1: #2b2f3a; --c2: #d4483b; } .cc.UK { --c1: #23356f; --c2: #c8343f; } .cc.AU { --c1: #1d3a8a; --c2: #2f6fd8; }
.cc.US { --c1: #24408e; --c2: #c13a45; } .cc.CA { --c1: #c62e36; --c2: #e8606a; }

/* Route illustration */
.routecard { position: relative; border-radius: 26px; padding: 18px 18px 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.routecard svg { display: block; width: 100%; height: auto; }
.rc-line { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.rc-draw { fill: none; stroke: url(#rcg); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rcdraw 2.4s .3s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes rcdraw { to { stroke-dashoffset: 0; } }
.rc-node { fill: var(--night); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: rcpop .5s cubic-bezier(.34,1.56,.64,1) forwards; }
.rc-num { fill: #fff; font: 700 11px var(--serif, Georgia); text-anchor: middle; dominant-baseline: central; opacity: 0; animation: rcfade .4s forwards; }
@keyframes rcpop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes rcfade { to { opacity: 1; } }
.rc-label { fill: rgba(255,255,255,.75); font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.rc-end { font: 800 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; letter-spacing: .05em; }
.rc-glow { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,161,132,.9)); }
.rc-foot { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.6); padding: 4px 4px 0; }

/* Marquee of regulators (finder) */
.pwmarquee { position: relative; z-index: 1; margin-top: 44px; overflow: hidden; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pwtrack { display: flex; gap: 10px; width: max-content; animation: pwscroll 50s linear infinite; }
.pwtrack span { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
@keyframes pwscroll { to { transform: translateX(-50%); } }
.pwmarquee:hover .pwtrack { animation-play-state: paused; }

/* ---------- Finder form (glass card in the hero) ---------- */
.pwform { background: var(--surface); color: var(--ink); border-radius: 26px; padding: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.4); }
.pwform h2 { font-size: 1.8rem; margin: 0 0 4px; }
.pwform .form-sub { color: var(--ink-soft); font-size: .92rem; margin: 0 0 18px; }
.pwform .btn { width: 100%; margin-top: 4px; }
.pwform .btn .arr { transition: transform .2s; }
.pwform .btn:hover .arr { transform: translateX(4px); }
@media (max-width: 480px) { .pwform { padding: 20px 16px; } }

/* ---------- Stats strip ---------- */
.pwstats { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pwstat { padding: 22px 22px 20px; border-inline-start: 1px solid var(--line); min-width: 0; }
.pwstat:first-child { border-inline-start: 0; }
.pwstat dt { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pwstat dd { margin: 0; font-size: .93rem; line-height: 1.45; }
.pwstat .big { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; margin-bottom: 4px; color: var(--ink); }
.pwstat small { color: var(--ink-soft); font-size: .8rem; }
@media (max-width: 860px) {
  .pwstats { grid-template-columns: 1fr 1fr; }
  .pwstat:nth-child(odd) { border-inline-start: 0; }
  .pwstat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pwstat .big { font-size: 2.1rem; }
}
@media (max-width: 420px) { .pwstat { padding: 16px; } }

/* ---------- Sections ---------- */
.pwsec { margin: 64px 0; }
.pwsec > h2, .pwsec .h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 8px; }
.pwsec > .sub { margin-bottom: 26px; }
.pwnews { display: flex; gap: 14px; align-items: flex-start; margin: 40px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--mint-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--mint) 30%, transparent); }
.pwnews .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; font-weight: 800; }
.pwnews p { margin: 0; font-size: .96rem; }

/* Origin switch */
.pworigin { margin: 48px 0 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.seg a { flex: 1 1 200px; text-align: center; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .9rem; padding: 10px 14px; border-radius: 13px; transition: background .25s, color .25s, box-shadow .25s; }
.seg a:hover { color: var(--ink); background: var(--bg); }
.seg a.on { background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px rgba(23,26,43,.18); }
.onote { position: relative; margin-top: 14px; padding: 18px 20px 18px 54px; border-radius: 18px; background: var(--blue-soft); }
.onote::before { content: "→"; position: absolute; inset-inline-start: 18px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.onote p { margin: 0; transition: opacity .25s, transform .25s; }
.onote p[hidden] { display: none; }
.onote p.swap { opacity: 0; transform: translateY(6px); }

/* Timeline */
.tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 0; display: grid; gap: 18px; counter-reset: s; }
.tl::before, .tl .tlfill { content: ""; position: absolute; inset-inline-start: 25px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; }
.tl::before { background: var(--line-strong); }
.tl .tlfill { background: linear-gradient(180deg, var(--coral), var(--blue), var(--mint), var(--gold)); transform-origin: top; transform: scaleY(var(--p, 1)); }
.tli { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.tli .dot { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--c); color: var(--c);
  font-family: var(--serif); font-size: 1.5rem; box-shadow: 0 0 0 8px var(--bg); transition: background .3s, color .3s; }
.tli.lit .dot { background: var(--c); color: #fff; }
.tli:nth-of-type(4n+1) { --c: var(--coral-deep); } .tli:nth-of-type(4n+2) { --c: var(--blue); } .tli:nth-of-type(4n+3) { --c: var(--mint); } .tli:nth-of-type(4n+4) { --c: #c9901a; }
.tlc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tlc:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tlhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.tlhead h3 { margin: 0; font-size: 1.08rem; }
.fee { font-size: .86rem; font-weight: 700; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: var(--mint-soft); color: #0f7a58; }
.fee.soft { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); font-weight: 600; }
@media (prefers-color-scheme: dark) { .fee { color: #6fe0b5; } }
.tlc p { margin: 8px 0 0; color: var(--ink-soft); font-size: .96rem; }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.src:hover { text-decoration: underline; }
.src svg, .ext svg { width: 12px; height: 12px; }
.tlnote { margin: 16px 0 0 70px; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 520px) {
  .tli { grid-template-columns: 40px 1fr; gap: 12px; }
  .tli .dot { width: 40px; height: 40px; font-size: 1.2rem; box-shadow: 0 0 0 6px var(--bg); }
  .tl::before, .tl .tlfill { inset-inline-start: 19px; top: 20px; bottom: 20px; }
  .tlc { padding: 15px 16px; }
  .tlnote { margin-inline-start: 52px; }
}

/* Apps */
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.app { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.app:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.mono { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--m1), var(--m2)); box-shadow: 0 8px 20px color-mix(in srgb, var(--m1) 40%, transparent); }
.app:nth-child(4n+1) .mono { --m1: #ff6a45; --m2: #ffa184; } .app:nth-child(4n+2) .mono { --m1: #4868e6; --m2: #7d95f5; }
.app:nth-child(4n+3) .mono { --m1: #1aa97b; --m2: #4fd2a5; } .app:nth-child(4n+4) .mono { --m1: #c9901a; --m2: #f2b84b; }
.app b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.app p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.app small { color: var(--ink-soft); }
.stores { grid-column: 1 / -1; display: flex; gap: 8px; }
.store { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border-radius: 12px; font-size: .85rem; font-weight: 700; text-decoration: none;
  color: var(--bg); background: var(--ink); transition: transform .15s, opacity .15s; }
.store:hover { transform: translateY(-1px); opacity: .9; }
.store svg { width: 15px; height: 15px; }

/* Tutors band */
.tutorband { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; border-radius: 28px; padding: 34px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--coral-soft), var(--blue-soft)); }
.tutorband::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; inset-inline-end: -100px; top: -140px; background: rgba(255,255,255,.35); }
.tutorband > * { position: relative; }
.tutorband h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 8px; }
.tutorband p { margin: 0; color: var(--ink-soft); }
.tlinks { display: grid; gap: 8px; }
.tlinks a { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  text-decoration: none; color: var(--ink); font-weight: 600; transition: transform .2s, border-color .2s; }
.tlinks a:hover { transform: translateX(4px); border-color: var(--coral); }
.tlinks a span { color: var(--coral-deep); }
@media (max-width: 760px) { .tutorband { grid-template-columns: 1fr; padding: 24px 20px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.04rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--coral-deep); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }
.faq details[open] p { animation: rcfade .35s ease; }

/* Sources */
.sources { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.sources h2 { font-size: 1.5rem; margin: 0 0 10px; }
.sources ol { margin: 0; padding-inline-start: 20px; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; font-size: .93rem; }
.sources .ext { display: inline-flex; align-items: center; gap: 5px; }
.sources .fine { color: var(--ink-soft); font-size: .85rem; margin: 14px 0 0; }

/* Route cards (finder + "other pathways") */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.rcard { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.rcard b { display: block; font-size: 1.02rem; }
.rcard small { display: block; color: var(--ink-soft); font-size: .84rem; margin-top: 2px; }
.rcard .money { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.rcard .go { color: var(--coral-deep); font-size: 1.2rem; transition: transform .2s; }
.rcard:hover .go { transform: translateX(4px); }
.pwgroup { margin: 56px 0; }
.pwgroup h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; }
.pwgroup h2 small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .9rem; color: var(--ink-soft); }
.pwfine { color: var(--ink-soft); font-size: .88rem; }
.pwmissing { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--coral-soft); color: #b2381c; font-size: .93rem; }
@media (prefers-color-scheme: dark) { .pwmissing { color: #ffb39e; } }

/* How the finder works – three steps */
.how3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.how3 div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.how3 b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--coral-deep); margin-bottom: 8px; }
.how3 p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .how3 { grid-template-columns: 1fr; } }

/* Reveal on scroll – only with JS, never with reduced motion */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .kicker::before, .pwtrack { animation: none; }
  .rc-draw { animation: none; stroke-dashoffset: 0; }
  .rc-node, .rc-num { animation: none; opacity: 1; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .tlc, .app, .rcard, .tlinks a, .store, .seg a { transition: none; }
  .tl .tlfill { transform: none; }
}

/* Hero figure: illustration with the animated route overlapping it */
.pwfig { position: relative; margin: 0 0 28px; }
.pwfig img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.45); transform: rotate(-1.2deg);
  -webkit-mask-image: radial-gradient(130% 120% at 50% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(130% 120% at 50% 45%, #000 60%, transparent 100%); }
.pwfig .routecard { position: absolute; inset-inline: 8% -4%; bottom: -34px; padding: 10px 14px 8px; }
@media (max-width: 900px) { .pwfig { margin-bottom: 40px; } .pwfig .routecard { inset-inline: 4%; } }
.js .pwfig img { animation: figin 1s .1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes figin { from { opacity: 0; transform: translateY(24px) rotate(-3deg) scale(.97); } }
.js .pwfig img { animation-name: figin; }
.pwfig img { will-change: transform; }

/* Finder hero background illustration */
.pwhero.finder .art { position: absolute; inset: 0 0 0 auto; width: min(64%, 980px); background: url(/img/pw/hero-finder.jpg) right center / cover no-repeat; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.js .pwhero.finder .art { animation: artdrift 30s ease-in-out infinite alternate; }
@keyframes artdrift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-2%); } }
@media (max-width: 900px) { .pwhero.finder .art { width: 100%; opacity: .35; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%); mask-image: linear-gradient(180deg, #000 30%, transparent 85%); } }

/* Route card thumbnails */
.rcard { grid-template-columns: 96px 1fr auto; }
.rcard .thumb { width: 96px; height: 64px; border-radius: 12px; object-fit: cover; display: block; transition: transform .35s; }
.rcard:hover .thumb { transform: scale(1.06); }
.rcard .cc { width: 28px; height: 22px; border-radius: 7px; font-size: .6rem; vertical-align: 2px; margin-inline-end: 4px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .js .pwfig img, .js .pwhero.finder .art { animation: none; } .rcard .thumb { transition: none; } }
.pwhero.finder { padding-bottom: 0; }
.pwhero.finder .pwmarquee { margin-top: 56px; }
@media (max-width: 900px) { .pwhero.finder .art { inset: 0; height: 340px; opacity: .45; background-position: 70% 30%; } }

/* Route cards, image-first (overrides the compact layout above) */
.rgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.rcard { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 0; overflow: hidden; gap: 0; align-items: end; border-radius: 22px; }
.rcard .thumb { grid-column: 1 / -1; width: 100%; height: 150px; border-radius: 0; background: var(--night); }
.rcard > span:not(.go) { padding: 14px 4px 16px 18px; min-width: 0; }
.rcard .go { padding: 0 18px 18px 0; align-self: end; }
.rcard b { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.rcard small { margin-top: 6px; }
.rcard .money { display: block; font-size: 1.6rem; line-height: 1.1; margin-top: 2px; }
.rcard { align-items: start; align-content: start; }
.rcard .go { align-self: end; }
@media (prefers-color-scheme: dark) { .tutorband::before { background: rgba(255,255,255,.05); } }

/* Agency listings */
.aggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.agency { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.agtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.agtop b { font-size: 1.05rem; }
.paid { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.agency small { color: var(--ink-soft); }
.agency p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.agbtns { display: flex; gap: 8px; margin-top: 4px; }
.store.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.stores { flex-wrap: wrap; }
.apptry { font-weight: 600; white-space: nowrap; }
