/* ============================================================
   Ánmut × EduNexus — How-To Guide Shared Stylesheet
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --green:#006020;--green-d:#003D12;--green-l:#00842A;
  --green-xl:#E8F5ED;--green-xll:#F2FAF5;
  --gold:#9ABA00;--gold-l:#B8D800;--gold-xl:#F3FAD0;
  --ink:#0D1F14;--ink2:#2D4A37;--ink3:#5A7A63;
  --white:#fff;--cream:#F8FCF9;--border:#D4E8DB;
  --r:10px;--r-lg:16px;--r-xl:24px;
  --shadow:0 2px 12px rgba(0,60,20,.07);
  --shadow-lg:0 8px 32px rgba(0,60,20,.13);
  --font-display:'Fraunces',Georgia,serif;
  --font-body:'Inter',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',monospace;
  /* Role colour — overridden per page */
  --role:#006020;--role-light:#E8F5ED;--role-dark:#003D12;
}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);background:var(--cream);color:var(--ink);line-height:1.65;font-size:15px}

/* ── NAV ──────────────────────────────────────────────────── */
.guide-nav{position:sticky;top:0;z-index:200;background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--border);
  padding:.7rem 0;transition:box-shadow .25s}
.guide-nav.shadowed{box-shadow:0 4px 24px rgba(0,60,20,.1)}
.nav-inner{max-width:1140px;margin:auto;padding:0 1.5rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.nav-logo{display:flex;align-items:center;gap:.6rem;text-decoration:none}
.nav-logo-mark{width:34px;height:34px;border-radius:50%;background:var(--role);
  display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0}
.nav-logo-text{font-family:var(--font-display);font-weight:700;font-size:1rem;color:var(--ink)}
.nav-logo-sub{font-size:.72rem;color:var(--ink3)}
.nav-role-badge{background:var(--role);color:white;font-size:.72rem;font-weight:600;
  padding:.28rem .85rem;border-radius:99px;font-family:var(--font-mono);white-space:nowrap}
.nav-back{display:flex;align-items:center;gap:.4rem;font-size:.84rem;color:var(--ink3);
  text-decoration:none;transition:color .2s}
.nav-back:hover{color:var(--role)}
.nav-back svg{flex-shrink:0}
.nav-progress{display:flex;align-items:center;gap:.5rem;flex:1;max-width:300px}
.nav-progress-bar{flex:1;height:4px;background:var(--border);border-radius:2px;overflow:hidden}
.nav-progress-fill{height:100%;background:var(--role);border-radius:2px;
  transition:width .5s ease;width:0%}
.nav-progress-label{font-size:.72rem;color:var(--ink3);font-family:var(--font-mono);white-space:nowrap}

/* ── HERO ─────────────────────────────────────────────────── */
.guide-hero{background:linear-gradient(150deg,var(--role-dark) 0%,var(--role) 65%,var(--green-l) 100%);
  padding:5rem 1.5rem 4rem;position:relative;overflow:hidden}
.guide-hero::after{content:'';position:absolute;right:-60px;top:-40px;
  width:400px;height:400px;border-radius:50%;
  background:rgba(255,255,255,.04);pointer-events:none}
.hero-inner{max-width:1140px;margin:auto;display:grid;grid-template-columns:1fr auto;
  gap:3rem;align-items:center}
.hero-text .eyebrow{display:inline-flex;align-items:center;gap:.5rem;
  background:rgba(255,255,255,.12);color:rgba(255,255,255,.8);
  font-family:var(--font-mono);font-size:.72rem;font-weight:500;letter-spacing:.1em;
  text-transform:uppercase;padding:.3rem .85rem;border-radius:99px;
  border:1px solid rgba(255,255,255,.15);margin-bottom:1.25rem}
.hero-text h1{font-family:var(--font-display);font-size:clamp(2rem,5vw,3.2rem);
  font-weight:700;color:white;line-height:1.1;margin-bottom:1rem}
.hero-text h1 em{font-style:italic;color:var(--gold-l)}
.hero-text p{color:rgba(255,255,255,.72);font-size:1rem;max-width:480px;line-height:1.7}
.hero-meta{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.75rem}
.hero-badge{display:inline-flex;align-items:center;gap:.4rem;background:rgba(255,255,255,.1);
  color:rgba(255,255,255,.85);font-size:.8rem;padding:.3rem .85rem;border-radius:99px;
  border:1px solid rgba(255,255,255,.15)}
.hero-stat-box{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-xl);padding:2rem 1.75rem;backdrop-filter:blur(8px);flex-shrink:0}
.hero-stat-box .stat-num{font-family:var(--font-display);font-size:2.4rem;font-weight:700;
  color:var(--gold-l);line-height:1}
.hero-stat-box .stat-label{font-size:.8rem;color:rgba(255,255,255,.55);margin-top:.2rem;
  font-family:var(--font-mono)}

/* ── TAB NAV ──────────────────────────────────────────────── */
.tab-nav{background:white;border-bottom:1px solid var(--border);
  position:sticky;top:58px;z-index:190}
.tab-nav-inner{max-width:1140px;margin:auto;padding:0 1.5rem;
  display:flex;gap:0;overflow-x:auto;scrollbar-width:none}
.tab-nav-inner::-webkit-scrollbar{display:none}
.tab-btn{display:flex;align-items:center;gap:.5rem;padding:.85rem 1.35rem;
  font-size:.85rem;font-weight:600;color:var(--ink3);border-bottom:2.5px solid transparent;
  cursor:pointer;white-space:nowrap;transition:all .2s;background:none;border-top:none;
  border-left:none;border-right:none;font-family:var(--font-body)}
.tab-btn:hover{color:var(--role);background:var(--green-xll)}
.tab-btn.active{color:var(--role);border-bottom-color:var(--role)}
.tab-badge{background:var(--role-light);color:var(--role);font-size:.66rem;
  font-weight:700;padding:.1rem .5rem;border-radius:99px;font-family:var(--font-mono)}

/* ── LAYOUT ───────────────────────────────────────────────── */
.guide-main{max-width:1140px;margin:auto;padding:3rem 1.5rem 5rem;
  display:grid;grid-template-columns:230px 1fr;gap:3rem;align-items:start}
.sidebar{position:sticky;top:112px}
.sidebar-section{margin-bottom:2rem}
.sidebar-section h5{font-size:.7rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.1em;color:var(--ink3);font-family:var(--font-mono);
  margin-bottom:.65rem;padding-left:.5rem}
.sidebar-link{display:flex;align-items:center;gap:.5rem;padding:.45rem .65rem;
  border-radius:var(--r);font-size:.84rem;color:var(--ink2);text-decoration:none;
  transition:all .2s;border-left:2px solid transparent}
.sidebar-link:hover{background:var(--green-xl);color:var(--role);border-left-color:var(--role)}
.sidebar-link.active{background:var(--role-light);color:var(--role);
  border-left-color:var(--role);font-weight:600}
.sidebar-link .slink-num{font-family:var(--font-mono);font-size:.68rem;color:var(--ink3);
  margin-left:auto;flex-shrink:0}

/* ── SECTION ──────────────────────────────────────────────── */
.guide-section{margin-bottom:4rem;scroll-margin-top:130px}
.section-header{margin-bottom:2rem}
.section-eyebrow{display:inline-flex;align-items:center;gap:.4rem;
  font-family:var(--font-mono);font-size:.72rem;font-weight:500;letter-spacing:.08em;
  text-transform:uppercase;color:var(--role);margin-bottom:.6rem}
.section-title{font-family:var(--font-display);font-size:1.9rem;font-weight:700;
  color:var(--ink);line-height:1.2;margin-bottom:.5rem}
.section-desc{color:var(--ink3);font-size:.95rem;line-height:1.7;max-width:640px}

/* ── STEP CARDS ───────────────────────────────────────────── */
.steps{display:flex;flex-direction:column;gap:1.5rem}
.step-card{background:white;border:1px solid var(--border);border-radius:var(--r-xl);
  overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .25s}
.step-card:hover{box-shadow:var(--shadow-lg)}
.step-card.done{border-color:var(--green-l);background:var(--green-xll)}
.step-card.done .step-num{background:var(--green);color:white}
.step-header{display:flex;align-items:flex-start;gap:1.25rem;padding:1.5rem 1.75rem;cursor:pointer}
.step-num{width:38px;height:38px;border-radius:50%;background:var(--role-light);
  color:var(--role);font-family:var(--font-mono);font-size:.82rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:.1rem}
.step-info{flex:1}
.step-title{font-weight:700;font-size:1.05rem;color:var(--ink);margin-bottom:.2rem}
.step-where{font-size:.78rem;color:var(--ink3);font-family:var(--font-mono);
  display:flex;align-items:center;gap:.4rem}
.step-where svg{flex-shrink:0}
.step-toggle{width:28px;height:28px;border-radius:50%;border:1.5px solid var(--border);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:all .25s;color:var(--ink3);cursor:pointer;background:none;
  margin-top:.2rem;font-size:.85rem}
.step-card.open .step-toggle{background:var(--role);border-color:var(--role);color:white;transform:rotate(180deg)}
.step-body{display:none;padding:0 1.75rem 1.75rem;padding-left:calc(1.75rem + 38px + 1.25rem)}
.step-card.open .step-body{display:block}

/* Screen mockup */
.screen-mock{background:var(--ink);border-radius:var(--r-lg);overflow:hidden;
  margin-bottom:1.25rem;border:1px solid rgba(255,255,255,.06)}
.screen-bar{display:flex;align-items:center;gap:.4rem;padding:.55rem .75rem;
  background:rgba(255,255,255,.05)}
.screen-dot{width:10px;height:10px;border-radius:50%}
.screen-url{font-family:var(--font-mono);font-size:.7rem;color:rgba(255,255,255,.35);
  flex:1;text-align:center}
.screen-content{padding:1.25rem;min-height:100px}

/* Step instructions */
.step-instructions{list-style:none;display:flex;flex-direction:column;gap:.65rem;margin-bottom:1.25rem}
.step-instructions li{display:flex;align-items:flex-start;gap:.75rem;font-size:.9rem;color:var(--ink2);line-height:1.6}
.step-instructions li::before{content:'';width:6px;height:6px;border-radius:50%;
  background:var(--role);flex-shrink:0;margin-top:.5rem}
.step-instructions li strong{color:var(--ink);font-weight:600}
.step-instructions li code{font-family:var(--font-mono);font-size:.82rem;
  background:var(--green-xl);color:var(--role);padding:.1rem .4rem;border-radius:4px}

/* Info boxes */
.info-box{border-radius:var(--r-lg);padding:1.1rem 1.25rem;margin:1rem 0;display:flex;gap:.85rem;align-items:flex-start}
.info-box.tip{background:var(--green-xl);border:1px solid var(--border)}
.info-box.warn{background:#FEF3CD;border:1px solid #F5C842}
.info-box.note{background:var(--gold-xl);border:1px solid rgba(154,186,0,.3)}
.info-icon{font-size:1.1rem;flex-shrink:0;margin-top:.05rem}
.info-text{font-size:.88rem;color:var(--ink2);line-height:1.65}
.info-text strong{color:var(--ink);display:block;margin-bottom:.2rem}

/* Checklist */
.checklist{margin-top:2rem;background:var(--green-xll);border-radius:var(--r-xl);padding:1.5rem;
  border:1px solid var(--border)}
.checklist h4{font-family:var(--font-display);font-size:1.1rem;font-weight:600;
  color:var(--ink);margin-bottom:1rem}
.check-item{display:flex;align-items:center;gap:.75rem;padding:.55rem 0;
  border-bottom:1px solid var(--border);cursor:pointer;user-select:none}
.check-item:last-child{border-bottom:none}
.check-item input[type=checkbox]{width:18px;height:18px;accent-color:var(--role);
  border-radius:4px;cursor:pointer;flex-shrink:0}
.check-item label{font-size:.88rem;color:var(--ink2);cursor:pointer;transition:color .2s}
.check-item input:checked + label{text-decoration:line-through;color:var(--ink3)}
.checklist-progress{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}
.clist-bar{flex:1;height:6px;background:var(--border);border-radius:3px;overflow:hidden}
.clist-fill{height:100%;background:var(--role);border-radius:3px;transition:width .4s ease}
.clist-label{font-size:.78rem;font-family:var(--font-mono);color:var(--ink3)}

/* UI mockups inside steps */
.ui-mock{border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--border);
  margin:1rem 0;background:white}
.ui-mock-header{background:var(--green);padding:.75rem 1.1rem;display:flex;
  align-items:center;gap:.6rem}
.ui-mock-header span{font-family:var(--font-mono);font-size:.75rem;color:rgba(255,255,255,.8)}
.ui-mock-body{padding:1.1rem}
.mock-field{margin-bottom:.75rem}
.mock-label{font-size:.72rem;font-weight:600;color:var(--ink3);margin-bottom:.3rem;
  font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em}
.mock-input{background:var(--cream);border:1.5px solid var(--border);border-radius:8px;
  padding:.55rem .85rem;font-size:.88rem;color:var(--ink);width:100%;display:block}
.mock-btn{display:inline-flex;align-items:center;gap:.4rem;background:var(--role);color:white;
  border:none;border-radius:99px;padding:.55rem 1.4rem;font-size:.85rem;font-weight:600;
  cursor:pointer;font-family:var(--font-body);margin-top:.5rem}
.mock-table{width:100%;border-collapse:collapse;font-size:.84rem}
.mock-table th{background:var(--green-xl);color:var(--ink2);font-weight:600;
  padding:.5rem .85rem;text-align:left;font-size:.75rem;text-transform:uppercase;
  letter-spacing:.04em}
.mock-table td{padding:.55rem .85rem;border-bottom:1px solid var(--border);color:var(--ink2)}
.mock-table tr:last-child td{border-bottom:none}
.status-pill{display:inline-flex;align-items:center;gap:.3rem;font-size:.72rem;
  font-weight:600;padding:.18rem .65rem;border-radius:99px;font-family:var(--font-mono)}
.status-green{background:#DCFCE7;color:#166534}
.status-gold{background:var(--gold-xl);color:#92400E}
.status-blue{background:#DBEAFE;color:#1E40AF}
.status-red{background:#FEE2E2;color:#991B1B}
.status-grey{background:var(--green-xl);color:var(--ink3)}

/* Quick links grid */
.link-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin:1rem 0}
.link-card{background:white;border:1.5px solid var(--border);border-radius:var(--r-lg);
  padding:1.1rem;text-decoration:none;transition:all .2s;display:block}
.link-card:hover{border-color:var(--role);box-shadow:var(--shadow);transform:translateY(-2px)}
.link-card .lc-icon{font-size:1.4rem;margin-bottom:.5rem}
.link-card .lc-title{font-weight:700;font-size:.9rem;color:var(--ink);margin-bottom:.2rem}
.link-card .lc-desc{font-size:.8rem;color:var(--ink3)}
.link-card .lc-url{font-family:var(--font-mono);font-size:.7rem;color:var(--role);
  margin-top:.4rem;display:block}

/* Responsive */
@media(max-width:900px){
  .guide-main{grid-template-columns:1fr}
  .sidebar{position:static;display:none}
  .hero-inner{grid-template-columns:1fr}
  .hero-stat-box{display:none}
  .link-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .step-body{padding-left:1.75rem}
}

/* Utility */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
