/* Project red-flag check — scoped to .t-flag (on <main>) and .t-flag~.mobile-action */
.t-flag{--f-navy:#102b46;--f-navy2:#0a1f33;--f-lime:#b6e477;--f-red:#e0533d;--f-amber:#f2a93b;--f-okink:#3b7420;--f-redink:#b3321f;--f-amberink:#8a5a0c}
.t-flag .btn.wa,.t-flag~.mobile-action .btn.wa{background:#25d366;border-color:#128c3e;color:#0b3b22}
.t-flag .btn.wa:hover{background:#1ebe5b}

/* hero: short, tool right under it */
.t-flag .fl-hero{padding:34px 0 26px;border-bottom:1px solid var(--line)}
.t-flag .fl-hero .crumb{margin-bottom:18px}
.t-flag .fl-hero h1{font-size:clamp(2.4rem,4.4vw,4rem);line-height:1.05;max-width:900px;color:var(--f-navy)}
.t-flag .fl-sub{margin-top:12px;font-size:1.1rem;color:var(--muted)}

/* layout */
.t-flag .fl-tool{padding:34px 0 48px}
.t-flag .fl-grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:36px;align-items:start}
.t-flag .fl-card{background:var(--paper);border:1px solid var(--line);padding:8px 30px 12px}
.t-flag .fl-side{position:sticky;top:124px}
.t-flag .fl-result{grid-column:1/-1}

/* progress */
.t-flag .fl-progress{display:flex;align-items:center;gap:16px;padding:18px 0 14px;border-bottom:1px solid var(--line)}
.t-flag .fl-progress-bar{flex:1;height:6px;background:var(--soft);overflow:hidden}
.t-flag .fl-progress-fill{display:block;height:100%;width:0;background:var(--f-navy);transition:width .25s}
.t-flag .fl-progress-text{font-size:.85rem;color:var(--muted);white-space:nowrap}
.t-flag .fl-progress-text b{font-family:var(--serif);font-weight:400;font-size:1.25rem;color:var(--f-navy)}

/* questions */
.t-flag .fl-qs{list-style:none;margin:0;padding:0}
.t-flag .fl-q{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;padding:16px 0 16px 14px;border-bottom:1px solid var(--line);border-left:4px solid transparent;margin-left:-18px;transition:border-color .2s,background .2s}
.t-flag .fl-q:last-child{border-bottom:0}
.t-flag .fl-q[data-st=green]{border-left-color:var(--f-lime)}
.t-flag .fl-q[data-st=amber]{border-left-color:var(--f-amber)}
.t-flag .fl-q[data-st=red]{border-left-color:var(--f-red);background:#e0533d0a}
.t-flag .fl-qtext{display:flex;gap:14px;align-items:flex-start}
.t-flag .fl-n{font-family:var(--serif);font-size:1.05rem;color:var(--muted);min-width:24px;padding-top:1px}
.t-flag .fl-qt{font-weight:600;font-size:1.04rem;line-height:1.35;color:var(--f-navy)}
.t-flag .fl-hint{margin-top:4px;font-size:.86rem;line-height:1.45;color:var(--muted)}
.t-flag .fl-hint a{border-bottom:1px solid currentColor;color:var(--accent);white-space:nowrap}

/* pill buttons (radios under the hood, so keyboard + labels work) */
.t-flag .fl-pills{display:flex;gap:8px}
.t-flag .fl-pills input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.t-flag .fl-pills label{display:inline-flex;align-items:center;justify-content:center;min-height:46px;min-width:74px;padding:0 18px;border:1.5px solid #c9cfc8;border-radius:999px;background:var(--paper);font-weight:600;font-size:.93rem;color:var(--f-navy);cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s,transform .15s;user-select:none}
.t-flag .fl-pills label:hover{border-color:var(--f-navy);transform:translateY(-1px)}
.t-flag .fl-pills input:focus-visible+label{outline:3px solid var(--bright);outline-offset:3px}
.t-flag .fl-pills input:checked+label{background:var(--f-navy);border-color:var(--f-navy);color:#fff}
.t-flag .fl-q[data-st=green] .fl-pills input:checked+label{background:var(--f-lime);border-color:#8fc555;color:var(--f-navy)}
.t-flag .fl-q[data-st=amber] .fl-pills input:checked+label{background:var(--f-amber);border-color:#d68d1c;color:var(--f-navy)}
.t-flag .fl-q[data-st=red] .fl-pills input:checked+label{background:var(--f-red);border-color:var(--f-red);color:#fff}

/* traffic-light verdict card */
.t-flag .fl-verdict{background:var(--f-navy);color:#fff;padding:28px 26px 24px;display:flex;gap:24px;box-shadow:0 24px 60px #102b4626;position:relative;overflow:hidden}
.t-flag .fl-verdict:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s}
.t-flag .fl-verdict[data-state=red]:before{opacity:1;background:radial-gradient(circle at 18% 16%,#e0533d40,transparent 55%)}
.t-flag .fl-verdict[data-state=amber]:before{opacity:1;background:radial-gradient(circle at 18% 50%,#f2a93b38,transparent 55%)}
.t-flag .fl-verdict[data-state=green]:before{opacity:1;background:radial-gradient(circle at 18% 84%,#b6e47738,transparent 55%)}
.t-flag .fl-light{flex:0 0 auto;display:flex;flex-direction:column;gap:12px;background:var(--f-navy2);border:1px solid #ffffff1c;border-radius:40px;padding:12px;align-self:flex-start;position:relative}
.t-flag .fl-l{display:block;width:50px;height:50px;border-radius:50%;opacity:.16;transition:opacity .3s,box-shadow .3s}
.t-flag .fl-l-red{background:var(--f-red)}
.t-flag .fl-l-amber{background:var(--f-amber)}
.t-flag .fl-l-green{background:var(--f-lime)}
.t-flag .fl-verdict[data-state=red] .fl-l-red{opacity:1;box-shadow:0 0 26px 4px #e0533daa}
.t-flag .fl-verdict[data-state=amber] .fl-l-amber{opacity:1;box-shadow:0 0 26px 4px #f2a93baa}
.t-flag .fl-verdict[data-state=green] .fl-l-green{opacity:1;box-shadow:0 0 26px 4px #b6e477aa}
.t-flag .fl-vbody{position:relative;min-width:0;flex:1}
.t-flag .fl-veyebrow{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;font-weight:650;color:#b9c8d6}
.t-flag .fl-vword{margin-top:6px;font-family:var(--serif);font-size:2.4rem;line-height:1;letter-spacing:-.03em}
.t-flag .fl-verdict[data-state=red] .fl-vword{color:#ff8a76}
.t-flag .fl-verdict[data-state=amber] .fl-vword{color:var(--f-amber)}
.t-flag .fl-verdict[data-state=green] .fl-vword{color:var(--f-lime)}
.t-flag .fl-verdict[data-state=idle] .fl-vword{font-size:1.7rem;color:#fff}
.t-flag .fl-score{margin-top:8px;font-family:var(--serif);line-height:.9;display:flex;align-items:baseline;gap:4px}
.t-flag .fl-score b{font-weight:400;font-size:5.2rem;letter-spacing:-.04em}
.t-flag .fl-score span{font-size:1.3rem;color:#9fb2c4}
.t-flag .fl-vline{margin-top:12px;font-size:.95rem;line-height:1.45;color:#dce6ee;font-weight:550}
.t-flag .fl-dots{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;margin-top:18px}
.t-flag .fl-dots span{height:10px;background:#ffffff1f}
.t-flag .fl-dots .is-green{background:var(--f-lime)}
.t-flag .fl-dots .is-amber{background:var(--f-amber)}
.t-flag .fl-dots .is-red{background:var(--f-red)}
.t-flag .fl-now{margin-top:16px;background:none;border:0;border-bottom:1px solid #ffffff80;padding:3px 0;color:#fff;font-size:.86rem;font-weight:550}
.t-flag .fl-now:hover{border-color:#fff}
.t-flag .fl-legal{margin-top:12px;font-size:.8rem;color:var(--muted)}
/* idle: a key to the three lights instead of an empty score */
.t-flag .fl-key{display:none;list-style:none;margin:16px 0 0;padding:0}
.t-flag .fl-key li{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid #ffffff1a;font-size:.88rem;color:#dce6ee}
.t-flag .fl-key li:before{content:'';width:12px;height:12px;border-radius:50%;flex:0 0 auto}
.t-flag .fl-key b{font-weight:700;min-width:52px;color:#fff}
.t-flag .fl-key .k-red:before{background:var(--f-red)}
.t-flag .fl-key .k-amber:before{background:var(--f-amber)}
.t-flag .fl-key .k-green:before{background:var(--f-lime)}
.t-flag .fl-verdict[data-state=idle] .fl-key{display:block}
.t-flag .fl-verdict[data-state=idle] .fl-score{display:none}
.t-flag .fl-verdict[data-state=idle] .fl-l{opacity:.4}
.t-flag .fl-verdict[data-state=red] .fl-score span{font-size:1.25rem;color:#ff8a76;letter-spacing:0}
.t-flag .fl-verdict .tk-act{margin-top:16px}
.t-flag .fl-verdict .tk-nextlink{margin-left:0}
.t-flag .fl-ctasec{padding:0 0 20px}

/* split result */
.t-flag .fl-split{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;margin-top:6px}
.t-flag .fl-col{border:1px solid var(--line);background:var(--paper);padding:24px 26px}
.t-flag .fl-col-ask{border-top:4px solid var(--f-red)}
.t-flag .fl-col-ok{border-top:4px solid var(--f-lime);background:#f6f9ee}
.t-flag .fl-colh{font-family:var(--serif);font-size:1.6rem;line-height:1.15;display:flex;align-items:center;gap:12px;color:var(--f-navy)}
.t-flag .fl-colnum{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;border-radius:50%;background:var(--f-navy);color:#fff;font-size:1.3rem}
.t-flag .fl-col-ok .fl-colnum{background:var(--f-lime);color:var(--f-navy)}
.t-flag .fl-list{list-style:none;margin:16px 0 0;padding:0}
.t-flag .fl-list li{padding:12px 0 12px 14px;border-top:1px solid var(--line);border-left:3px solid transparent;font-size:.93rem;line-height:1.45}
.t-flag .fl-list-ask li{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:baseline}
.t-flag .fl-list-ask li.is-red{border-left-color:var(--f-red)}
.t-flag .fl-list-ask li.is-amber{border-left-color:var(--f-amber)}
.t-flag .fl-tag{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;padding:3px 7px;white-space:nowrap}
.t-flag .is-red .fl-tag{background:#e0533d1f;color:var(--f-redink)}
.t-flag .is-amber .fl-tag{background:#f2a93b2e;color:var(--f-amberink)}
.t-flag .fl-list-ask strong{color:var(--f-navy);font-weight:650}
.t-flag .fl-doc{grid-column:2;color:var(--muted)}
.t-flag .fl-list-ok li{color:var(--f-navy);font-weight:550;border-left-color:var(--f-lime)}
.t-flag .fl-list-ok li:before{content:'✓';color:var(--f-okink);margin-right:10px;font-weight:700}
.t-flag .fl-list .fl-empty{color:var(--muted);font-weight:400;border-left-color:transparent}
.t-flag .fl-list .fl-empty:before{content:none}

/* lead form: see tools-kit.css (.tk-cta) */
.t-flag .fl-retry{background:none;border:0;padding:0;font:inherit;color:inherit}

/* faq: tighter */
.t-flag .fl-faqsec{padding:20px 0 60px}
.t-flag .fl-faqsec .faq details p a{border-bottom:1px solid currentColor}

@media(max-width:900px){
  .t-flag .fl-grid{grid-template-columns:1fr;gap:22px}
  .t-flag .fl-side{position:static}
  .t-flag .fl-split{grid-template-columns:1fr}
}
@media(max-width:600px){
  .t-flag .fl-hero{padding:22px 0 18px}
  .t-flag .fl-hero .crumb{margin-bottom:12px}
  .t-flag .fl-hero h1{font-size:2.3rem}
  .t-flag .fl-sub{font-size:1rem}
  .t-flag .fl-tool{padding:18px 0 40px}
  .t-flag .fl-card{padding:4px 16px 8px}
  .t-flag .fl-q{grid-template-columns:1fr;gap:12px;padding:16px 0 16px 10px;margin-left:-14px}
  .t-flag .fl-pills label{flex:1;min-width:0;padding:0 8px;min-height:48px}
  .t-flag .fl-pills{padding-left:0}
  .t-flag .fl-verdict{padding:22px 18px;gap:18px}
  .t-flag .fl-l{width:42px;height:42px}
  .t-flag .fl-score b{font-size:4.4rem}
  .t-flag .fl-col{padding:20px 16px}
  .t-flag .fl-colh{font-size:1.35rem}
  .t-flag~.mobile-action{display:flex;gap:8px}
  .t-flag~.mobile-action .btn{width:auto;flex:1;gap:8px;padding:12px 6px;font-size:.8rem}
}
