/* FastBox public pages: the keyhole arch (partials/public-arch.php), used by the
   guest landing hero (index.php, whose own sheet is fastbox-landing.css) and the
   side panels of the auth pages. Standalone on purpose: the dashboard sheets are
   never loaded here.

   Colours come from the logo. White text sits on dark green only, never on olive.
   Archivo for Latin, Tajawal for Arabic, Noto Sans Tifinagh (then Ebrima, which
   ships with Windows) for Tamazight. Tracking is reset under [dir=rtl]: Arabic is
   a connected script and letter-spacing pulls its joins apart. */
:root{
  --fb-ink:#1C2B19;
  --fb-green:#305F29;
  --fb-green-d:#244A1F;
  --fb-mid:#517D49;
  --fb-olive:#ABC067;
  --fb-olive-d:#92A457;
  --fb-wash:#EFF3E1;
  --fb-line:#D5DDC2;
  --fb-muted:#55664F;
  --fb-paper:#fff;
  --fb-font:Archivo,Tajawal,'Noto Sans Tifinagh',Ebrima,system-ui,sans-serif;
}
[dir="rtl"]{--fb-font:Tajawal,Archivo,system-ui,sans-serif}

/* ---- the arch ---- */
.fb-arch{position:relative;width:100%}
.fb-arch__crown{display:block;width:100%;height:auto;fill:var(--fb-green);margin-bottom:-1px}
/* Sits in the crown. Width relative to the arch so it scales with it. */
.fb-arch{container-type:inline-size}
.fb-arch__box{position:absolute;top:11cqw;inset-inline-start:50%;width:36%;height:auto;margin-inline-start:-18%}
/* 7.5% = the crown's own 30/400 inset, which is what makes it a keyhole. */
.fb-arch__body{background:var(--fb-green);color:#fff;margin-inline:7.5%;padding:12px clamp(16px,6cqw,30px) 30px}
.fb-arch__label{margin:0 0 12px;font:600 13px/1.4 var(--fb-font);color:#D5E3A8}
.fb-arch__code{font:700 15px/1.3 var(--fb-font);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
[dir="rtl"] .fb-arch__code{text-align:right}
.fb-arch__sum dl{margin:12px 0 0;padding:0;border-top:1px solid rgba(255,255,255,.2)}
.fb-arch__sum dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.2)}
.fb-arch__sum dt{font:400 13.5px/1.35 var(--fb-font);color:#DCE7C3}
.fb-arch__sum dd{margin:0;font:700 13.5px/1.35 var(--fb-font);text-align:end}

/* newest first, like track.php; the line runs behind opaque markers */
.fb-steps{list-style:none;margin:16px 0 0;padding:0}
.fb-steps li{position:relative;padding-block:0 13px;padding-inline-start:24px;font:400 14.5px/1.35 var(--fb-font);color:#E8EFD6}
.fb-steps li:last-child{padding-bottom:0}
.fb-steps li::before{content:"";position:absolute;inset-inline-start:5px;top:6px;bottom:-6px;width:2px;background:rgba(255,255,255,.28)}
.fb-steps li:last-child::before{display:none}
.fb-steps__dot{position:absolute;inset-inline-start:0;top:4px;width:12px;height:12px;border-radius:50%;background:var(--fb-green);border:2px solid var(--fb-olive)}
.fb-steps .is-now{color:#fff;font-weight:700}
.fb-steps .is-now .fb-steps__dot{background:var(--fb-olive)}

/* the one orchestrated moment: on load the sample walks up to its current status */
@media(prefers-reduced-motion:no-preference){
  .fb-arch--full .fb-steps li{animation:fbStep .42s both;animation-delay:calc(var(--i)*.24s + .15s)}
  @keyframes fbStep{from{opacity:.25}to{opacity:1}}
}

.fb-arch__call{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.2)}
.fb-arch__call b{display:block;font:700 14.5px/1.3 var(--fb-font)}
/* A picture of the button, not a button: the sample has no number to call. */
.fb-arch__callbtn{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:9px 13px;border-radius:9px;background:var(--fb-olive);color:var(--fb-ink);font:700 13.5px/1 var(--fb-font)}

.fb-checks{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:12px}
.fb-checks li{display:flex;gap:10px;align-items:flex-start;font:500 14.5px/1.4 var(--fb-font);color:#fff}
.fb-checks svg{flex:none;margin-top:2px;color:var(--fb-olive)}

/* ============================================================
   AUTH PAGES: side panel, plus the brand tokens over each page's inline sheet.
   Loaded after that sheet, so it wins at equal specificity.
   ============================================================ */
.fb-auth{--disp:var(--fb-font);--label:var(--fb-font);--body:var(--fb-font);--lime:var(--fb-olive);--violet:var(--fb-green);--violet-d:var(--fb-green-d);--lavande:var(--fb-wash);--encre:var(--fb-ink);--gris:var(--fb-muted);--craie:#fff}
.fb-auth,[dir="rtl"] .fb-auth,[dir="rtl"] .fb-auth h1,[dir="rtl"] .fb-auth h2{font-family:var(--fb-font)}
.fb-auth .pane{position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(22px,3vw,36px);padding:clamp(26px,3vw,44px) clamp(26px,3.4vw,52px) 0;background:var(--fb-wash);color:var(--fb-ink);overflow:hidden;min-height:100vh}
.fb-auth .pane__logo img{display:block;height:46px;width:auto}
.fb-auth .pane__txt h2{font:800 clamp(28px,3vw,42px)/1.08 var(--fb-font);letter-spacing:-.03em;color:var(--fb-green);margin:0}
[dir="rtl"] .fb-auth .pane__txt h2{letter-spacing:0;line-height:1.25}
.fb-auth .pane__txt p{margin:12px 0 0;max-width:42ch;font:400 16px/1.55 var(--fb-font);color:var(--fb-muted)}
.fb-auth .pane__door{margin-top:auto;width:min(390px,100%);margin-inline:auto}
/* The arch stands on the panel's floor, so its body has to reach it. */
.fb-auth .fb-arch__body{padding-bottom:26px}
/* Form side: same voice as the landing. Primary is dark green with white text. */
.fb-auth .btn-lime{background:var(--fb-green);color:#fff;box-shadow:none}
.fb-auth .btn-lime:hover{background:var(--fb-green-d);transform:none;color:#fff}
.fb-auth .way{letter-spacing:0;text-transform:none;font:600 14.5px/1.3 var(--fb-font);color:var(--fb-mid)}
.fb-auth .way::before{display:none}
.fb-auth .sheet::before{display:none}
.fb-auth h1{letter-spacing:-.025em;color:var(--fb-green);font-weight:800}
[dir="rtl"] .fb-auth h1{letter-spacing:0}
/* each page's inline sheet hides the panel at this width; this sheet's .pane is
   more specific, so it has to say so too */
@media(max-width:980px){.fb-auth .pane{display:none}}
.fb-auth a:focus-visible,.fb-auth button:focus-visible,.fb-auth select:focus-visible{outline:3px solid var(--fb-green);outline-offset:2px}
