/* Credit Finder brand. Its own look, clearly made and run by ITS (see .byits and .disclaimer).
   Loaded after tokens.css: re-maps the shared token names so styles.css needs no changes. */
:root {
  --its-navy: #0b2e33;
  --its-ink: #2b4246;
  --its-navy-2: #12424a;
  --its-navy-3: #1b5560;
  --its-pink: #2ad4a0;
  --its-pink-ink: #0a7558;
  --its-blue: #1fb5c9;
  --its-blue-ink: #0b6f7d;
  --its-yellow: #ffd166;
  --its-purple: #3c4f9e;
  --its-bg: #f3f8f7;
  --its-line: #dce8e6;
  --its-muted: #5a716d;
}
.btn.primary:hover { background: #075d46; }
.bar .wordmark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -.4px; }
.bar .wordmark img { height: 36px; width: 36px; }
.byits { font-size: 13px; font-weight: 600; color: #cfe3e0; text-decoration: none; border: 1px solid #2c5a61; border-radius: 9999px; padding: 4px 10px; white-space: nowrap; }
.byits:hover { color: #fff; background: var(--its-navy-2); }
.disclaimer { margin-top: 16px; font-size: 14px; color: #cfe3e0; max-width: 62ch; }
.disclaimer strong { color: var(--its-yellow); }
footer .disclaimer { color: var(--its-muted); margin-top: 8px; }
@media (max-width: 640px) { .bar { flex-wrap: wrap; } .dnav { margin-left: 0; width: 100%; } }
.ribbon { color: var(--its-navy); }
.badge { color: var(--its-navy); }

/* Art (AIMLAPI-made, decorative). Every slot looks right with the image missing. */
.hero.has-art { min-height: 360px; }
.hero-art { position: absolute; right: -30px; bottom: -10px; width: min(40vw, 480px); height: auto; z-index: -1; pointer-events: none; }
.hero.has-art h1, .hero.has-art p, .hero.has-art .eyebrow { max-width: calc(100% + 10px - min(40vw, 480px)); }
@media (max-width: 900px) {
  .hero.has-art { min-height: 0; }
  .hero-art { position: static; width: 70%; max-width: 360px; margin: 4px auto -8px; order: 9; z-index: 0; }
  .hero.has-art h1, .hero.has-art p { max-width: none; }
}
.chip-icon { width: 26px; height: 26px; margin: -4px 8px -4px -6px; flex: none; }
.side-art { display: block; width: 72%; max-width: 260px; height: auto; margin: 18px auto 0; }
.enquiry { position: relative; overflow: hidden; }
.enq-art { position: absolute; right: 12px; top: -10px; width: 190px; height: auto; opacity: .95; pointer-events: none; }
.enquiry h2, .enquiry > p { max-width: calc(100% - 200px); }
@media (max-width: 700px) { .enq-art { width: 110px; right: -6px; } .enquiry h2, .enquiry > p { max-width: calc(100% - 100px); } }
.dpartners { display: grid; grid-template-columns: 1fr; }
.partners-art { width: 220px; height: auto; justify-self: end; margin: -8px 0 -16px; order: -1; float: right; }
@media (min-width: 760px) { .dpartners { grid-template-columns: 1fr 240px; align-items: center; } .partners-art { order: 2; grid-row: 1 / span 2; grid-column: 2; margin: 0; } }
.dempty { display: grid; justify-items: center; gap: 8px; text-align: center; grid-column: 1 / -1; }
.empty-art { width: 180px; height: auto; }
.dcard .dart { margin: -24px -24px 4px; border-radius: var(--its-radius-lg) var(--its-radius-lg) 0 0; overflow: hidden; aspect-ratio: 3 / 2; background: var(--its-bg); }
.dcard .dart img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Results stage (scape.js): summary strip + 3D stage. The cards below stay the full, accessible list. */
.scape { display: grid; gap: 14px; margin-bottom: 18px; }
.stop { display: grid; gap: 10px; }
.sstrip { background: var(--its-navy); color: #fff; border-radius: var(--its-radius-lg); padding: 16px 18px; display: grid; gap: 12px; }
.shead { font-size: 15px; color: #cfe3e0; } .shead b { color: #fff; font-size: 17px; }
.sstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .sstats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .sstat { scroll-snap-align: start; } .lbl-row { display: none; } }
.sstat { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid #1d4f57; background: #0f3a40; color: #fff; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.sstat:hover { transform: translateY(-2px); border-color: var(--its-pink); }
.sstat .sl { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.sstat b { font-size: 22px; letter-spacing: -.5px; }
.sstat .ss { font-size: 13px; color: #b9d3cf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-mint .sl { color: var(--its-pink); } .s-yellow .sl { color: var(--its-yellow); } .s-sky .sl { color: var(--its-blue); }
.sview { justify-self: end; display: inline-flex; border: 1px solid var(--its-line); border-radius: 9999px; padding: 3px; background: #fff; }
.sview button { border: 0; background: transparent; font: 600 14px var(--its-font); color: var(--its-navy); padding: 6px 14px; border-radius: 9999px; cursor: pointer; min-height: 36px; }
.sview button[aria-pressed=true] { background: var(--its-navy); color: #fff; }
.stage { position: relative; height: clamp(340px, 52vw, 480px); border-radius: var(--its-radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1b5560 0%, #0b2e33 60%); outline-offset: 3px; touch-action: pan-y; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.stage-labels { position: absolute; inset: 0; pointer-events: none; }
.lbl { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .2s; white-space: nowrap; }
.lbl-col { pointer-events: auto; display: grid; justify-items: center; line-height: 1.05; padding: 4px 8px 5px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(11,46,51,.78); color: #fff; font: 600 11px var(--its-font); cursor: pointer; backdrop-filter: blur(4px); }
.lbl-col b { font-size: 15px; } .lbl-col.ok { border-color: rgba(42,212,160,.6); } .lbl-col.ok b { color: var(--its-pink); }
.lbl-col.on { background: #fff; color: var(--its-navy); } .lbl-col.on b { color: var(--its-pink-ink); }
.lbl-col.picked::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 9999px; background: var(--its-yellow); color: var(--its-navy); font-size: 11px; display: grid; place-items: center; }
.lbl-gap { font: 700 12px var(--its-font); color: var(--its-navy); background: var(--its-yellow); padding: 4px 10px; border-radius: 9999px; }
.lbl-row { font: 700 11px var(--its-font); letter-spacing: .8px; text-transform: uppercase; color: #9fc5bf; }
.stage-key { position: absolute; left: 12px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #cfe3e0; pointer-events: none; }
.stage-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.k-mint { background: var(--its-pink); } .k-yellow { background: var(--its-yellow); } .k-slate { background: #6f8c88; } .k-glass { background: rgba(255,209,102,.5); border: 1px solid var(--its-yellow); }
.stage-hint { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: #9fc5bf; pointer-events: none; }
.stage-panel { position: absolute; top: 12px; right: 12px; width: min(300px, calc(100% - 24px)); background: #fff; color: var(--its-ink); border-radius: 14px; padding: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: grid; gap: 8px; animation: pin .22s ease-out; }
.stage-panel[hidden] { display: none; }
@keyframes pin { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .stage-panel { animation: none; } .sstat { transition: none; } }
.stage-panel h3 { font-size: 17px; line-height: 1.25; padding-right: 22px; }
.psub { margin: -4px 0 0; font-size: 13px; color: var(--its-muted); }
.ptags { display: flex; gap: 6px; flex-wrap: wrap; }
.pclose { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 9999px; background: var(--its-bg); color: var(--its-navy); font-size: 20px; cursor: pointer; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pgrid div { background: var(--its-bg); border-radius: 10px; padding: 8px 10px; display: grid; }
.pgrid b { font-size: 19px; color: var(--its-navy); } .pgrid span { font-size: 12px; color: var(--its-muted); }
.pgap { margin: 0; font-weight: 600; font-size: 14px; } .pgap.ok { color: var(--its-green-ink); } .pgap.part { color: var(--its-orange-ink); }
.pprice { margin: 0; font-size: 13px; color: var(--its-muted); }
.pacts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .pacts .btn { min-height: 42px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 520px) { .stage-panel { top: auto; bottom: 10px; left: 10px; right: 10px; width: auto; } .stage-hint { display: none; } }

/* Teacher link maker (send.html) */
.qsend { margin: 28px 0; display: grid; gap: 8px; }
.qsend input, .qsend select { min-height: 48px; padding: 10px 14px; border: 1px solid var(--its-line); border-radius: var(--its-radius); font: 16px var(--its-font); color: var(--its-ink); background: #fff; }
.qsend label { font-weight: 650; color: var(--its-navy); }
.qlink { display: grid; gap: 10px; margin-top: 10px; padding: 18px; border-radius: var(--its-radius-lg); background: var(--its-bg); border: 1px dashed var(--its-pink-ink); }
.qlink-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.qlink-row input { font-size: 14px; color: var(--its-navy); }

/* Credit Lanes (lanes.js): every option on one shared scale, the gap on top. */
.lanes { --pitch: 14px; display: grid; gap: 12px; container: lanes / inline-size; }
.lgap { position: sticky; top: 0; z-index: 3; background: var(--its-navy); color: #fff; border-radius: var(--its-radius-lg); padding: 14px 16px; display: grid; gap: 10px; box-shadow: 0 10px 24px rgba(11,46,51,.18); transition: background .25s; }
.lgap.closed { background: linear-gradient(120deg, #0b2e33, #0a5a49); }
.lgap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.lgap-head b { color: var(--its-pink); font-size: 18px; }
.lgap-line { font-weight: 700; font-size: 17px; }
.lgap.would .lgap-line { color: var(--its-yellow); }
.lgap-q { flex-basis: 100%; font-size: 13px; color: #b9d3cf; }
.lgap-slots { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.slot { width: 18px; height: 18px; border-radius: 9999px; border: 2px dashed rgba(255,209,102,.75); transition: background .25s, border-color .25s, transform .25s; }
.slot.have { background: var(--its-pink); border: 2px solid var(--its-pink); box-shadow: 0 0 8px rgba(42,212,160,.6); }
.slot.try { background: rgba(255,209,102,.55); border-style: solid; border-color: var(--its-yellow); animation: tryin .25s ease-out both; }
.slot.spare { border-style: solid; opacity: .75; transform: scale(.8); }
@keyframes tryin { from { transform: scale(.5); opacity: 0; } }
.lsort { display: flex; flex-wrap: wrap; gap: 6px; }
.lsort button { border: 1px solid var(--its-line); background: #fff; color: var(--its-navy); font: 600 14px var(--its-font); padding: 6px 14px; min-height: 38px; border-radius: 9999px; cursor: pointer; }
.lsort button[aria-pressed=true] { background: var(--its-navy); color: #fff; border-color: var(--its-navy); }
.lkey { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--its-muted); }
.lkey i { display: inline-block; width: 10px; height: 10px; border-radius: 9999px; margin-right: 5px; vertical-align: -1px; }
.lkey .kd { background: var(--its-pink); } .lkey .kl { width: 2px; border-radius: 0; height: 12px; border-left: 2px dashed var(--its-yellow-ink, #b7791f); }
.lkey .ks { background: var(--its-pink); opacity: .45; }
.lrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lrow { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--its-line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; animation: rowin .35s ease-out both; animation-delay: var(--d); }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.lrow.hot, .lrow:focus-within { border-color: var(--its-pink-ink); box-shadow: 0 6px 18px rgba(11,46,51,.1); }
.lrow.lpicked { border-color: var(--its-pink); background: #f2fbf8; }
.lrow.k-other .lname { font-weight: 600; }
.linfo { all: unset; display: grid; gap: 2px; cursor: pointer; border-radius: 8px; padding: 2px 4px; }
.linfo:focus-visible { outline: 3px solid var(--its-yellow); }
.lname { color: var(--its-navy); font-size: 15px; line-height: 1.25; }
.lmeta { font-size: 13px; color: var(--its-muted); }
.ltag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--its-pink-ink); }
.ltag.pkg { color: #9a6a00; }
.ldots { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 0; min-height: 26px; }
.ldots::before { content: ""; position: absolute; top: -8px; bottom: -8px; left: calc(var(--gap) * var(--pitch) - 1px); border-left: 2px dashed #d39b1d; pointer-events: none; }
.dot { flex: none; width: var(--pitch); height: var(--pitch); display: grid; place-items: center; }
.dot::after { content: ""; width: 74%; height: 74%; border-radius: 9999px; background: var(--c); box-shadow: 0 0 0 1px rgba(11,46,51,.08); animation: dotin .3s ease-out both; animation-delay: calc(var(--d) + var(--i) * 12ms); }
.dot.alt::after { filter: brightness(.86) saturate(1.1); }
.dot.spare::after { opacity: .5; }
@keyframes dotin { from { transform: scale(0); } }
.lrow.hot .dot::after { box-shadow: 0 0 6px var(--c); }
.lend { margin-left: 8px; font-size: 12px; font-weight: 700; color: #c2410c; white-space: nowrap; }
.ldots { overflow: hidden; }
.lend.ok { color: var(--its-pink-ink); }
.ladd { border: 1px solid var(--its-pink-ink); background: #fff; color: var(--its-pink-ink); font: 700 14px var(--its-font); padding: 8px 14px; min-height: 40px; border-radius: 9999px; cursor: pointer; white-space: nowrap; }
.ladd:hover { background: var(--its-pink-ink); color: #fff; }
.ladd.on { background: var(--its-pink-ink); color: #fff; }
.ldetail { grid-column: 1 / -1; border-top: 1px solid var(--its-line); padding-top: 8px; font-size: 14px; color: var(--its-ink); }
.ldetail p { margin: 0 0 4px; } .ldetail ul { margin: 6px 0 0; padding-left: 18px; color: var(--its-muted); font-size: 13px; }
.flydot { position: fixed; z-index: 50; pointer-events: none; display: grid; place-items: center; }
.flydot::after { content: ""; width: 74%; height: 74%; border-radius: 9999px; background: var(--c); box-shadow: 0 0 10px var(--c); }
/* Stack each row (name + Add on top, dots full width below) whenever the lanes column itself is narrow:
   on a phone, and on a laptop where the form sits beside the results. */
@container lanes (max-width: 620px) {
  .lrow { grid-template-columns: 1fr auto; }
  .ldots { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .ldots { flex-wrap: wrap; row-gap: 4px; }
  .lend { margin-left: 4px; }
  .lgap { top: 0; border-radius: 14px; }
  .slot { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) { .lrow, .dot::after, .slot.try { animation: none; } .lgap, .slot, .lrow { transition: none; } }

.lgap-over { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--its-pink); }
.lgap-over.try { color: var(--its-yellow); }
.lmore { margin-left: 2px; font-weight: 800; color: var(--its-muted); }

/* Sponsored slot (sponsored.js, mock-up): set apart from the results on purpose, never styled like a result. */
.sponsor { margin: 0 0 14px; padding: 12px 14px; background: #fbf6ea; border: 1px solid #e6d3a3; border-radius: 14px; display: grid; gap: 8px; }
.sponsor[hidden] { display: none; }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-tag { font: 800 11px var(--its-font); letter-spacing: .06em; text-transform: uppercase; color: #5b4a1c; border: 1.5px solid #5b4a1c; border-radius: 6px; padding: 2px 7px; }
.sp-demo { font-size: 12px; color: #7a6a43; }
.sp-body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.sp-art { width: 56px; height: 56px; object-fit: contain; }
.sp-main p { margin: 0; }
.sp-who { font-size: 12px; font-weight: 700; color: #7a6a43; }
.sp-name { font-weight: 800; color: var(--its-navy); }
.sp-meta { font-size: 13px; color: var(--its-muted); }
.sp-go { border: 1px solid #5b4a1c; color: #5b4a1c; background: #fff; border-radius: 9999px; padding: 8px 14px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.sp-go:hover { background: #5b4a1c; color: #fff; }
.sp-why summary { cursor: pointer; font-size: 13px; color: #5b4a1c; font-weight: 600; }
.sp-why p { margin: 6px 0 0; font-size: 13px; color: var(--its-muted); }
@media (max-width: 640px) { .sp-body { grid-template-columns: auto 1fr; } .sp-go { grid-column: 1 / -1; text-align: center; } }

/* All providers page and the "other providers" panel: one card for everyone. */
.plist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pcard { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.pcard-art { width: 100%; height: 150px; object-fit: cover; background: #f3f6f5; }
.pcard-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.pcard-body h2 { font-size: 18px; margin: 0; }
.pcard-body p { margin: 0; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ptag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; background: #eef4f3; color: var(--its-navy); }
.ptag.free { background: #e5f4e4; }
.pstatus { font-size: 12px; color: var(--its-muted); }
.pstatus.ok { color: var(--its-pink-ink); font-weight: 700; }
.pacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.plink { font-size: 13px; }
.chipbtn { border: 1px solid var(--its-line); background: #fff; border-radius: 9999px; padding: 7px 12px; font: 600 14px var(--its-font); cursor: pointer; margin: 0 6px 6px 0; }
.chipbtn[aria-pressed="true"] { background: var(--its-navy); color: #fff; border-color: var(--its-navy); }
.prules ul { margin: 8px 0 0; padding-left: 18px; color: var(--its-muted); }
.others { margin-top: 16px; }
.others h2 { font-size: 18px; margin: 0 0 6px; }
.olist { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.ptag.gen { background: #f3efe6; color: #6b5b3a; }
