/* Rewards finder (/finder/), 2026-10 redesign. Loaded after site.css; overrides its older finder rules. */

/* Short opening so the tool starts near the top on phones */
.phero.fhero { padding: 22px 0 26px; border-bottom: 0; }
.fhero .crumbs { margin-bottom: 10px; }
.fhero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.fhero .lede { margin-top: 10px; max-width: 62ch; color: #d3deeb; font-size: 1.05rem; }

/* Navy feature area for the tool itself */
section.ftool { padding: 8px 0 64px; background: linear-gradient(180deg, var(--sea) 0, var(--navy) 260px, var(--navy) 100%); }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

/* ----- The form ----- */
.fform { position: static; max-height: none; background: rgba(7,26,51,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; }
.fform fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.fform legend { font-weight: 650; font-size: 1rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.fform label { color: #c4d1e1; font-size: .92rem; }
.fform input[type=number], .fform select { min-height: 44px; font-size: 1rem; }
.fform input:focus, .fform select:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.fform .hint { font-size: .88rem; color: #b4c3d6; margin: 2px 0 10px; }

/* Presets: teal informational toggles */
.fpresets-box { margin-bottom: 14px; }
.fpresets-h { font-weight: 650; font-size: .95rem; margin-bottom: 8px; }
.fpresets-h span { font-weight: 400; color: var(--dim); }
.fpresets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fpreset { min-height: 44px; font: inherit; font-size: .92rem; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(60,194,176,.45); background: rgba(60,194,176,.06); color: #d9f3ef; cursor: pointer; }
.fpreset:hover { background: rgba(60,194,176,.14); color: #fff; border-color: var(--teal); }
.fpreset[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #04241f; font-weight: 700; }
.fpreset[aria-pressed="true"]::before { content: "\2713\00a0"; }
.fpresets-box .hint { margin: 0; }
.fpresets-box .hint b { color: #fff; }

/* Stages */
.fstages { list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.fstage { border-bottom: 1px solid rgba(255,255,255,.12); }
.fstage-h { font-family: inherit; font-size: inherit; line-height: inherit; }
.fstage-btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n t e" "n s e"; column-gap: 12px; align-items: center; text-align: left; min-height: 60px; padding: 10px 2px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; border-radius: 10px; }
.fstage-btn:hover .ftitle { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fnum { grid-area: n; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; border: 2px solid rgba(60,194,176,.6); color: var(--teal); }
.ftitle { grid-area: t; font-weight: 700; font-size: 1.08rem; }
.fsum { grid-area: s; font-size: .9rem; color: #b4c3d6; }
.fedit { grid-area: e; font-size: .9rem; font-weight: 600; color: var(--teal); padding: 6px 10px; border: 1px solid rgba(60,194,176,.45); border-radius: 8px; }
.fstage.open .fnum { background: var(--teal); color: #04241f; border-color: var(--teal); }
.fstage.open .fsum, .fstage.open .fedit { display: none; }
.fstage-body { padding: 4px 0 18px; animation: fIn var(--t) var(--ease); }
@keyframes fIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fstage-nav { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.fnext { background: #eef3f9; color: var(--navy); font-weight: 700; }
.fnext:hover { background: #fff; color: var(--navy); }
.fback { min-height: 44px; padding: 8px 14px; background: none; border: 0; color: #c4d1e1; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-right: auto; }
.fback:hover { color: #fff; }

/* Game type and option cards: whole label tappable */
.fgames { display: grid; gap: 8px; }
.fgame, .fradio { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); cursor: pointer; margin: 0; }
.fgame:hover, .fradio:hover { border-color: rgba(60,194,176,.6); }
.fgame input, .fradio input { width: 20px; height: 20px; flex: none; accent-color: var(--teal); margin: 0; }
.fgame b, .fradio b { display: block; color: var(--ink); font-size: 1rem; }
.fgame small, .fradio small { display: block; color: #b4c3d6; font-size: .86rem; line-height: 1.4; }
.fgame:has(input:checked), .fradio:has(input:checked) { border-color: var(--teal); background: rgba(60,194,176,.12); }
.fsmoke { display: grid; gap: 8px; }
.fform .fchecks label.check { color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.fform .fchecks input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 0; }

.fplay { border-left: 3px solid rgba(60,194,176,.5) !important; padding-left: 14px !important; }
.fremove { min-height: 44px; padding: 6px 0; background: none; border: 0; color: #c4d1e1; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fremove:hover { color: #fff; }
.fadd { border: 1px dashed rgba(60,194,176,.5); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.fadd-h { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.fadd-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fadd-btns .btn { padding: 8px 14px; font-size: .95rem; }

/* Advanced assumptions */
.fform details.fadv { border-top: 0; padding-top: 0; margin-top: 14px; }
.fform .fadv summary { display: flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 600; font-size: .95rem; margin: 0; }
.fform .fadv[open] summary { margin-bottom: 8px; }
.faccount { border-top-color: rgba(255,255,255,.12); }

/* ----- Compact results summary beside the form (desktop) ----- */
.flive { position: sticky; top: 16px; border-radius: 16px; padding: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.flive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.flive h2 { font-family: inherit; font-size: 1.05rem; font-weight: 700; }
.fupd { font-size: .8rem; font-weight: 700; color: var(--teal-ink); opacity: 0; transition: opacity var(--t) var(--ease); }
.fupd.on { opacity: 1; }
.fupd.on::before { content: "\2713\00a0"; }
.fmini { list-style: none; display: grid; gap: 8px; }
.fmini li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--paper-line); }
.fmini-r { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; }
.fmini-n b { display: block; font-size: .98rem; line-height: 1.3; }
.fmini-n small, .fmini-s small { display: block; font-size: .8rem; line-height: 1.35; color: var(--paper-muted); }
.fmini-s { text-align: right; font-size: .82rem; color: var(--paper-muted); white-space: nowrap; }
.fmini-s b { font-size: 1.3rem; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.fmini-loss, .fmini-note, .fmini-empty { font-size: .9rem; margin-top: 10px; color: var(--paper-muted); }
.fmini-loss b { color: var(--paper-ink); }
.flive-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; }

/* ----- Phone results bar ----- */
.fbar-m { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--deep); border-top: 1px solid rgba(60,194,176,.45); box-shadow: 0 -10px 30px rgba(0,0,0,.35); }
.fbar-m[hidden] { display: none; }
.fbar-txt { flex: 1; min-width: 0; font-size: .95rem; line-height: 1.3; }
.fbar-txt small { display: block; font-size: .78rem; color: var(--teal); font-weight: 600; }
.fbar-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbar-txt span { color: #c4d1e1; white-space: nowrap; }
.fbar-m .btn { flex: none; padding: 10px 16px; }
.fbar-edit { background: #eef3f9; color: var(--navy); }
body.has-fbar { padding-bottom: 76px; }
body.has-fbar .toasts { bottom: 90px; }

/* ----- Results ----- */
.fresults-wrap { margin-top: 40px; }
.fresults-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fresults-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.fresults-head h2:focus { outline: none; }
.fresults-head h2:focus-visible { outline: 3px solid var(--teal); }
.fedit-btn { padding: 8px 16px; }
.fsummary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
.fsummary small { color: #b4c3d6; letter-spacing: .04em; }
.fscale-key { font-size: .95rem; color: #d3deeb; background: rgba(60,194,176,.08); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; padding: 12px 16px; margin-bottom: 18px; max-width: 90ch; }
.fscale-key b { color: #fff; }
.fempty { font-size: 1rem; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }

.ftop { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.fcard { display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.fcard.top { background: #fff; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin-bottom: 0; }
.fcard-head { grid-template-columns: auto 1fr; margin-bottom: 6px; }
.fcard h3 { font-family: inherit; font-size: 1.2rem; font-weight: 700; }
.fcard.top .frank { background: var(--navy); color: #fff; }
.fcard.top .fprog { color: var(--paper-muted); }
.fwhy-h { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.fcard.top .fwhy-h { color: var(--teal-ink); }
.freasons { list-style: none; display: grid; gap: 6px; font-size: .98rem; }
.freasons li { position: relative; padding-left: 24px; }
.freasons li::before { content: "\2713"; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--teal); }
.fcard.top .freasons li::before { color: var(--teal-ink); }
.fflags { margin-top: 2px; }
.fflags li { font-size: .92rem; }
.fscore-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fscore-row .fscore { flex: none; text-align: left; min-width: 0; display: flex; align-items: baseline; gap: 2px; }
.fscore-row .fscore b { display: inline; font-size: 2rem; color: var(--ink); }
.fscore-row .fscore span { font-size: .95rem; color: var(--muted); font-weight: 600; }
.fscore-row p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.fscore-row p b { color: var(--ink); }
.fdetail { margin-top: 10px; }
.fdetail summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--teal); }
.fcard.top .fdetail summary { color: var(--teal-ink); }
.fdetail[open] summary { margin-bottom: 6px; }
.fcard.top .fstats { grid-template-columns: 1fr; gap: 0; }
.fcard.top .fstats dd { margin-bottom: 8px; }
.fcard.top .fbar { background: var(--paper-2); }

.fmore-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.fmore-btns .btn { padding: 10px 16px; font-size: .97rem; }
.fmore-btns .btn[aria-expanded="true"] { background: rgba(60,194,176,.22); color: #fff; }
.fcalc-box { margin: 10px 0 18px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.fcalc-box > p { font-size: .95rem; color: #d3deeb; margin-bottom: 12px; max-width: 90ch; }
.fcalc th, .fcalc td { padding: 9px 12px; font-size: .9rem; }
.fcalc thead th { white-space: nowrap; }
.fcalc thead small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
.fcalc tbody th { font-weight: 600; color: var(--ink); }

.fgroup-h { font-family: inherit; font-size: 1.15rem; font-weight: 700; margin: 26px 0 6px; }
.fgroup { margin-top: 26px; padding: 4px 18px 10px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.28); }
.fgroup .fgroup-h { margin-top: 14px; }
.fgroup-p { font-size: .95rem; color: #c4d1e1; margin-bottom: 14px; max-width: 80ch; }
.fgroup-p b { color: #fff; }
.fgroup .fcard { background: rgba(255,255,255,.03); }
.fgroup.unranked .fgroup-h::before { content: "Not ranked"; display: inline-block; vertical-align: middle; margin-right: 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #3b4b61; color: #fff; }
.fgroup.fails { border-color: rgba(240,179,107,.5); }
.fgroup.fails .fgroup-h::before { content: "Set apart"; display: inline-block; vertical-align: middle; margin-right: 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #7a4a12; color: #fff; }

/* Explanatory reading below */
#f-how .card h3 { font-size: 1.05rem; }

/* ----- Phones and narrow tablets ----- */
@media (max-width: 899px) {
  .finder-grid { grid-template-columns: 1fr; gap: 0; }
  .flive { display: none; }
  .fform { padding: 16px; margin: 0 -4px; }
  .fresults-wrap { margin-top: 28px; }
}
@media (min-width: 900px) {
  .fresults-head .fedit-btn { display: none; }
}
@media (max-width: 520px) {
  .wrap.finder-grid, .fresults-wrap { padding: 0 16px; }
  .fstats { grid-template-columns: 1fr; }
  .fcard { padding: 16px; }
  .fgroup { padding: 2px 12px 8px; }
  .fstage-btn { column-gap: 10px; }
  .fedit { padding: 4px 8px; }
}

/* Fixes after first preview */
.fform label.fgame, .fform label.fradio { display: flex; margin: 0; }
.fbar-m .btn[hidden], .fadd-btns .btn[hidden] { display: none; }
.fcard h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.faccount a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) { .fhero .lede { font-size: 1rem; } .fhero h1 { font-size: 1.9rem; } }
@media (max-width: 520px) {
  .fsummary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fsummary > div { padding: 8px 12px; }
  .fsummary b { font-size: 1.05rem; }
  .fscale-key { font-size: .92rem; padding: 10px 14px; }
}
.fbar-m.upd { border-top-color: var(--teal); }
.fcard:not(.top) .frank { background: rgba(255,255,255,.1); color: var(--ink); }
.fcard:not(.top) .fprog { color: #b4c3d6; }
.ftool .fcard { padding: 18px 20px; border-radius: 16px; margin-bottom: 14px; }
.ftop .fcard { margin-bottom: 0; }
@media (max-width: 520px) { .ftool .fcard { padding: 16px; } }
