/* Le Vian Academy — Editorial Boutique styling (redesign).
   Loaded by _Layout AFTER site.css so the --sb-* tokens resolve.
   In-shell content (picker + hub) + a global body-level reader overlay. */

/* ----- content: picker + hub ----- */
.academy-shell{ padding:24px clamp(16px,4vw,40px) 40px; max-width:1100px; margin:0 auto;
    font-family:var(--sb-sans); color:var(--sb-body); }
.academy-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.academy-head__brand{ display:flex; align-items:center; gap:10px; font-family:var(--sb-serif);
    font-size:22px; color:var(--sb-ink); }
.academy-head__brand i{ color:var(--sb-gold); }
.academy-profile-chip{ background:var(--sb-espresso); color:#f3e9dc; border:none; border-radius:22px;
    padding:8px 16px; font-weight:600; min-height:44px; cursor:pointer; display:inline-flex; align-items:center; gap:8px; }
.academy-profile-chip__switch{ font-weight:500; font-size:.8rem; opacity:.75; border-left:1px solid rgba(243,233,220,.35);
    padding-left:8px; }
/* Chip row above the hub progress — right-aligned, matching the legacy header chip. */
.academy-hub__bar{ display:flex; justify-content:flex-end; margin-bottom:14px; }

.academy-picker-title{ font-family:var(--sb-serif); font-size:26px; color:var(--sb-cocoa); margin:8px 0 4px; }
.academy-picker-sub{ color:var(--sb-taupe); margin:0 0 20px; }
.academy-people{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.academy-person{ background:var(--sb-surface); border:1px solid var(--sb-border); border-radius:var(--sb-radius);
    padding:18px 10px; text-align:center; font-weight:600; color:var(--sb-ink); min-height:104px; cursor:pointer;
    transition:border-color .15s, box-shadow .15s; }
.academy-person:hover{ border-color:var(--sb-gold); box-shadow:0 4px 16px rgba(61,43,31,.08); }
.academy-person .ava{ width:46px; height:46px; border-radius:50%; background:var(--sb-gold-2); color:#6b4a1f;
    font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; margin:0 auto 10px; }
.academy-addme{ display:flex; flex-direction:column; align-items:center; justify-content:center; }
/* The "+" avatar doubles as the submit button so a tap adds the associate (not just Enter). */
.academy-addme .ava{ border:none; cursor:pointer; font-family:inherit; }
.academy-addme .ava:hover{ filter:brightness(.96); }
.academy-addme input{ width:100%; border:1px solid var(--sb-border); border-radius:10px; padding:8px 10px;
    text-align:center; background:#fffdf8; }

.academy-progress-row{ display:flex; justify-content:space-between; align-items:baseline; font-weight:600; color:var(--sb-ink); }
.academy-progress-row span:last-child{ font-family:var(--sb-serif); font-size:18px; color:var(--sb-cocoa); }
.academy-progress-bar{ height:8px; border-radius:5px; background:var(--sb-border); overflow:hidden; margin:8px 0 22px; }
.academy-progress-bar > i{ display:block; height:100%; width:0; transition:width .4s;
    background:linear-gradient(90deg,var(--sb-gold),var(--sb-gold-2)); }
.academy-tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:14px; }
.academy-tile{ background:var(--sb-surface); border:1px solid var(--sb-border); border-radius:var(--sb-radius);
    padding:16px; min-height:92px; cursor:pointer; display:flex; flex-direction:column; justify-content:space-between;
    text-align:left; transition:border-color .15s, box-shadow .15s; }
.academy-tile:hover{ border-color:var(--sb-gold); box-shadow:0 4px 16px rgba(61,43,31,.08); }
.academy-tile .t{ font-family:var(--sb-serif); font-size:17px; color:var(--sb-ink); }
.academy-tile .ring{ align-self:flex-end; font-size:.8rem; color:var(--sb-cocoa); font-weight:700; }

/* Sticky category bar: back pill stays visible while scrolling the topic grid. */
.academy-catbar{ position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:12px;
    background:var(--sb-cream); padding:10px 0 12px; margin-bottom:6px; }
.academy-back{ background:var(--sb-surface); border:1px solid var(--sb-border); border-radius:22px; color:var(--sb-cocoa);
    font-weight:600; padding:9px 16px; min-height:44px; cursor:pointer; display:inline-flex; align-items:center; gap:8px;
    box-shadow:0 1px 4px rgba(61,43,31,.06); transition:border-color .15s; }
.academy-back:hover{ border-color:var(--sb-gold); }
.academy-catbar__title{ font-family:var(--sb-serif); font-size:19px; color:var(--sb-ink); }
/* Multi-column so long categories (e.g. 19 gemstones) use the width instead of one tall list. */
.academy-topiclist{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; align-content:start; }
.academy-topicrow{ background:var(--sb-surface); border:1px solid var(--sb-border); border-radius:10px; padding:14px 16px;
    min-height:54px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; text-align:left;
    transition:border-color .15s; }
.academy-topicrow:hover{ border-color:var(--sb-gold); }
.academy-topicrow .ttl{ color:var(--sb-ink); font-weight:500; }
.academy-topicrow .check{ color:var(--sb-taupe); font-size:18px; }
.academy-topicrow.done{ background:var(--sb-surface-2); }
.academy-topicrow.done .check{ color:#4a7c59; }

/* ----- reader overlay (global; lives at body level in _Layout for reliable fixed positioning;
   also opened from the Vaults product modal via LevianAcademy.openReaderBySlug) ----- */
.academy-reader-backdrop{ position:fixed; inset:0; background:rgba(42,29,20,.5); z-index:1080; }
.academy-reader{ position:fixed; z-index:1090; background:var(--sb-cream); display:flex; flex-direction:column;
    box-shadow:0 0 40px rgba(42,29,20,.35);
    top:0; right:0; bottom:0; width:min(560px,92vw); border-left:1px solid var(--sb-border); }
/* [hidden] must beat the display:flex above */
.academy-reader[hidden], .academy-reader-backdrop[hidden]{ display:none !important; }
.academy-reader__close{ position:absolute; top:8px; right:12px; width:44px; height:44px; border:none; background:none;
    font-size:1.8rem; line-height:1; color:var(--sb-taupe); cursor:pointer; z-index:2; }
.academy-reader__body{ overflow-y:auto; -webkit-overflow-scrolling:touch; flex:1 1 auto; min-height:0;
    padding:24px clamp(16px,3vw,32px) 32px; }
.academy-reader__hero{ font-family:var(--sb-serif); font-size:30px; line-height:1.15; color:var(--sb-cocoa);
    padding:8px 40px 16px 0; border-bottom:1px solid var(--sb-border); margin-bottom:18px; }
.academy-reader__body h4{ font-family:var(--sb-sans); font-size:12px; letter-spacing:.1em; text-transform:uppercase;
    color:var(--sb-taupe); margin:22px 0 8px; }
.academy-reader__body .points{ margin:0; padding-left:20px; }
.academy-reader__body .points li{ margin:6px 0; color:var(--sb-ink); }
.academy-reader__body .about{ color:var(--sb-body); line-height:1.6; }
.academy-reader__body .about img{ max-width:100%; height:auto; border-radius:8px; }
.academy-mark{ width:100%; min-height:52px; border:none; border-radius:26px; background:var(--sb-espresso);
    color:#f3e9dc; font-weight:700; margin-top:24px; cursor:pointer; }
.academy-mark[disabled]{ opacity:.6; cursor:default; }
/* Completed state: still tappable (un-toggle), shown as a quiet "done" pill. */
.academy-mark.is-done{ background:var(--sb-surface-2); color:#4a7c59; border:1px solid var(--sb-border); }

/* Portrait iPad: reader becomes a bottom sheet. */
@media (max-width:834px){
  .academy-reader{ top:auto; left:0; right:0; bottom:0; width:auto; max-height:90vh;
      border-left:none; border-top:1px solid var(--sb-border); border-radius:18px 18px 0 0; }
}

/* "Learn about this piece" contextual hook on the Vaults product modal (Phase 3). */
.product-learn-hook{ margin:0 0 12px; }
.product-learn-hook .lbl{ font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--sb-taupe); font-weight:700; margin-bottom:6px; }
.product-learn-hook .chip.tap{ background:var(--sb-surface-2); color:var(--sb-cocoa); border:1px solid var(--sb-border);
    border-radius:16px; padding:8px 12px; font-weight:600; min-height:40px; margin:0 6px 6px 0; cursor:pointer; }
.product-learn-hook .chip.tap:hover{ border-color:var(--sb-gold); }

/* ---- Quiz (in-reader) ---- */
.academy-quizbtn{ width:100%; min-height:52px; border:1px solid var(--sb-gold); border-radius:26px;
    background:transparent; color:var(--sb-cocoa); font-weight:700; margin-top:12px; cursor:pointer; }
.academy-quiz-q{ margin:0 0 18px; }
.academy-quiz-prompt{ font-weight:600; color:var(--sb-ink); margin-bottom:10px; }
.academy-quiz-opt{ display:flex; align-items:center; gap:12px; min-height:48px; padding:10px 14px; margin:8px 0;
    border:1px solid var(--sb-border); border-radius:12px; cursor:pointer; color:var(--sb-ink); }
.academy-quiz-opt input{ width:20px; height:20px; }
.academy-quiz-cancel{ width:100%; min-height:48px; border:none; background:transparent; color:var(--sb-taupe);
    margin-top:10px; cursor:pointer; }
.academy-quiz-pct{ color:var(--sb-cocoa); font-size:18px; }
.academy-quiz-review{ margin-top:8px; }
.academy-quiz-rq{ border-left:4px solid var(--sb-border); padding:8px 0 8px 14px; margin:0 0 14px; }
.academy-quiz-rq.ok{ border-left-color:#4a7c59; }
.academy-quiz-rq.no{ border-left-color:#9b3b3b; }
.academy-quiz-ans{ color:var(--sb-ink); }
.academy-quiz-correct{ color:#4a7c59; margin-top:4px; }
.academy-quiz-expl{ color:var(--sb-taupe); margin-top:6px; font-style:italic; }
.academy-row-best{ color:var(--sb-cocoa); font-size:13px; margin-left:auto; padding-right:10px; }
