/* =========================================================
   Quiz hub — LIGHT/CREAM, to sit flush with the homepage.
   The quizzes themselves are dark; this index page is not.
   Two surfaces, two palettes, on purpose (same call as
   flr-community's waitlist page vs its dark CTA card).

   Properly enqueued rather than inlined: the inlining in
   render.php is a deliberate LiteSpeed workaround for the
   quiz FORM (a deferred script there breaks a live nonce).
   The hub has no form and no nonce, so it has no such need.
   ========================================================= */

.flrq-hub{
  --paper:#F3ECDE; --paper-alt:#E8DECA; --card:#FCF8EE;
  --ink:#23121A; --ink-2:#4A3542; --ink-3:#77616D;
  --wine:#6E1F35; --wine-2:#8C2C48; --rose:#B76E85;
  /* --brass is the readable one on cream. #C9A84C is a WASH, never text. */
  --brass:#9A742C; --brass-lt:#C9A84C;
  --line:rgba(35,18,26,.20); --line-2:rgba(35,18,26,.10);
  --sh:0 18px 40px rgba(35,18,26,.12);
  --serif:'Libre Caslon Text',Georgia,'Times New Roman',serif;
  --sans:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;

  /* Full bleed. SYMMETRIC negative margins with width:auto, NOT `width:100vw`
     plus one margin: .ast-container is padded, so 50% (of the padded content
     box) and 50vw (of the viewport) disagree by half that padding and the
     block drifts sideways. Setting both lets the error cancel, and dodges the
     100vw-versus-scrollbar overflow at the same time. */
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  width:auto;
  max-width:100vw;
  overflow-x:hidden;
  box-sizing:border-box;

  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.6;
  padding:clamp(44px,7vw,88px) 20px clamp(56px,8vw,100px);
  -webkit-font-smoothing:antialiased;
}
.flrq-hub *,.flrq-hub *::before,.flrq-hub *::after{box-sizing:border-box}

.flrq-hub .flrq-hub-shell{width:min(1120px,92vw);margin:0 auto}

/* The Astra template uppercases headings here. Undo it, or "HOW FILTHY ARE
   YOU, REALLY?" shouts off the page. */
.flrq-hub h1,.flrq-hub h2,.flrq-hub h3{
  font-family:var(--serif);font-weight:700;line-height:1.1;margin:0;
  letter-spacing:-.01em;text-transform:none;color:var(--ink)
}
.flrq-hub h1{font-size:clamp(2rem,6vw,3.4rem)}
.flrq-hub h3{font-size:clamp(1.2rem,2.6vw,1.5rem)}

.flrq-hub .flrq-hub-kicker{
  font-size:.7rem;font-weight:600;letter-spacing:.19em;text-transform:uppercase;
  color:var(--brass);margin:0 0 14px
}
.flrq-hub .flrq-hub-deck{
  font-size:clamp(1rem,2.1vw,1.14rem);color:var(--ink-2);max-width:60ch;margin:16px 0 0
}
.flrq-hub .flrq-hub-head{max-width:760px;margin:0 0 clamp(30px,5vw,52px)}

/* ---- tiles ---- */
.flrq-hub .flrq-hub-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:clamp(16px,2.4vw,28px)
}
.flrq-hub .flrq-tile{
  background:var(--card);border:1px solid var(--line-2);border-radius:3px;
  padding:clamp(24px,3vw,34px);display:flex;flex-direction:column;
  transition:.2s ease
}
.flrq-hub .flrq-tile:hover{transform:translateY(-3px);box-shadow:var(--sh);border-color:var(--line)}
.flrq-hub .flrq-tile-meta{font-size:.8rem;color:var(--ink-3);margin:0 0 12px;letter-spacing:.02em}
.flrq-hub .flrq-tile-deck{color:var(--ink-2);margin:12px 0 0;font-size:.98rem}

/* ---- live stats ---- */
.flrq-hub .flrq-tile-stats{
  margin:22px 0 0;padding:18px 0 0;border-top:1px solid var(--line-2);
  display:grid;gap:14px
}
.flrq-hub .flrq-stat b{
  display:block;font-family:var(--serif);font-size:1.65rem;line-height:1;color:var(--wine)
}
.flrq-hub .flrq-stat span{display:block;font-size:.82rem;color:var(--ink-3);margin-top:5px}
.flrq-hub .flrq-tile-empty{
  margin:22px 0 0;padding:18px 0 0;border-top:1px solid var(--line-2);
  font-size:.88rem;color:var(--ink-3);font-style:italic
}

/* ---- cta ---- */
.flrq-hub .flrq-tile-cta{margin-top:auto;padding-top:24px}
.flrq-hub .flrq-btn-hub{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 28px;background:var(--wine);color:#FCF8EE;
  font-weight:600;font-size:.95rem;border:1px solid var(--wine);border-radius:2px;
  text-decoration:none;transition:.18s ease;min-height:48px;font-family:var(--sans)
}
.flrq-hub .flrq-btn-hub:hover{background:var(--wine-2);border-color:var(--wine-2);color:#FCF8EE}
.flrq-hub .flrq-tile-note{font-size:.78rem;color:var(--ink-3);margin:10px 0 0}

.flrq-hub .flrq-hub-foot{
  margin:clamp(34px,5vw,56px) auto 0;max-width:760px;
  font-size:.85rem;color:var(--ink-3);text-align:center
}

@media(max-width:520px){
  .flrq-hub .flrq-hub-grid{grid-template-columns:1fr}
  .flrq-hub .flrq-btn-hub{width:100%}
}
