/* lhc-core.css
   Shared tokens, base typography, and components for every Legal Help Commons page.
   Link this on every page, after nav.css:
     <link rel="stylesheet" href="/nav.css">
     <link rel="stylesheet" href="/lhc-core.css">
     <link rel="stylesheet" href="/hub.css">   <- page-type file, only if the page needs one

   Nothing in this file is specific to one page type. If a rule is only used by one
   kind of page, it belongs in that page type's stylesheet instead.
*/

/* ===== TOKENS ===== */
:root{
  /* Canonical color names. Use these in new work. */
  --indigo:#2c2d72;
  --indigo-deep:#1e1f52;
  --indigo-light:#3d3e8a;
  --accent:#F4A06A;
  --accent-deep:#D98A4F;
  --peach-bright:#F6BE9C;
  --lav:#ECECF7;
  --lav-soft:#F4F4FB;
  --periwinkle:#C7C7EC;
  --text:#2a3040;
  --text-light:#5a6577;
  --text-muted:#8a8fa0;
  --border:#e0dce8;
  --white:#fff;
  --bg:#fafaf9;

  /* Status colors */
  --ready:#48bb78;
  --ready-text:#276749;
  --draft:#F4A06A;
  --draft-text:#92400e;
  --planned:#cccccc;

  /* Layout */
  --maxw:1000px;
  --readw:680px;
  --radius:14px;
  --shadow-hover:0 8px 28px rgba(44,45,114,.1);

  /* Deprecated aliases. Existing pages use these names. Do not use them in new work. */
  --navy:var(--indigo);
  --navy-deep:var(--indigo-deep);
  --navy-light:var(--indigo-light);
  --accent-dark:var(--accent-deep);
  --coral:var(--accent);
  --ink:var(--text);
  --muted:var(--text-light);
  --line:var(--border);
  --paper:var(--white);
}

/* ===== BASE ===== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:70px}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
}
body{
  font-family:'Source Serif 4',Georgia,serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.eyebrow,.pill,.hub-pill,.btns a,.hub-btns a,.asset-status,.asset-cta,.tag{
  font-family:'League Spartan',sans-serif;
}
a{color:var(--indigo);text-underline-offset:3px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}
img{max-width:100%;height:auto}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 2rem}

/* ===== DRAFT BANNER ===== */
.draft{
  background:var(--lav);color:var(--indigo);font-size:.84rem;letter-spacing:.02em;
  text-align:center;padding:.6rem 1rem;border-bottom:1px solid var(--border);
}
.draft strong{color:var(--accent-deep);font-weight:800}

/* ===== HERO =====
   Set the illustration per page on the section element:
   <section class="lhc-hero" style="--hero-image:url(/images/hero/voice-intake.png)">
   Omit the variable and the hero renders as flat indigo.
*/
.lhc-hero,.hub-hero{
  background:var(--indigo);color:#fff;padding:5rem 2rem 4rem;text-align:center;
  position:relative;overflow:hidden;isolation:isolate;
}
.lhc-hero::before,.hub-hero::before{
  content:'';position:absolute;inset:0;
  background-image:var(--hero-image,none);
  background-size:cover;background-position:center;
  mix-blend-mode:screen;opacity:.5;pointer-events:none;
}
.lhc-hero::after,.hub-hero::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(44,45,114,.4),rgba(44,45,114,.5));
  pointer-events:none;
}
.lhc-hero-inner,.hub-hero-inner{
  max-width:var(--readw);margin:0 auto;position:relative;z-index:1;
  background:var(--indigo-deep);border:1px solid rgba(255,255,255,.1);
  border-radius:22px;padding:2.5rem 2.5rem 2.75rem;
  box-shadow:0 24px 60px rgba(15,16,45,.4);
}
.lhc-hero h1,.hub-hero h1{
  font-weight:800;font-size:clamp(2rem,4.5vw,3rem);line-height:1.08;
  letter-spacing:-.02em;margin-bottom:1rem;
}
.lhc-hero h1 span,.hub-hero h1 span{color:var(--accent)}
.lhc-hero p,.hub-hero p{
  font-size:1.05rem;line-height:1.65;color:rgba(255,255,255,.75);
  max-width:540px;margin:0 auto 2rem;
}
.hero-breadcrumb{
  font-family:'League Spartan',sans-serif;font-size:.8rem;font-weight:600;
  color:rgba(255,255,255,.6);margin-bottom:1rem;
}
.hero-breadcrumb a{color:rgba(255,255,255,.75);text-decoration:none}
.hero-breadcrumb a:hover{color:#fff}

/* ===== PILL BADGE ===== */
.pill,.hub-pill{
  display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.1em;border:1.5px solid rgba(255,255,255,.3);
  padding:.3rem .9rem;border-radius:100px;margin-bottom:1.25rem;
  color:rgba(255,255,255,.7);
}

/* ===== BUTTONS ===== */
.btns,.hub-btns{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
.btns a,.hub-btns a{
  font-weight:700;font-size:.9rem;padding:.65rem 1.5rem;
  border-radius:8px;text-decoration:none;transition:background .25s,color .25s,border-color .25s;
}
.btn-accent{background:var(--accent);color:var(--indigo)}
.btn-accent:hover{background:var(--white);color:var(--indigo)}
.btn-ghost{border:1.5px solid rgba(255,255,255,.3);color:#fff}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn-solid{background:var(--indigo);color:#fff}
.btn-solid:hover{background:var(--indigo-light);color:#fff}

/* ===== BACK LINK ===== */
.back{max-width:var(--maxw);margin:0 auto;padding:1.25rem 2rem 0}
.back a{
  font-family:'League Spartan',sans-serif;font-size:.8rem;font-weight:600;
  color:var(--text-muted);text-decoration:none;
}
.back a:hover{color:var(--indigo)}

/* ===== SECTION HEADINGS ===== */
.eyebrow{
  text-transform:uppercase;letter-spacing:.12em;font-weight:700;
  font-size:.7rem;color:var(--text-muted);margin-bottom:.35rem;
}
.section-head{max-width:64ch;margin-bottom:1.5rem}
.section-head h2{font-weight:800;font-size:1.6rem;color:var(--indigo);margin-bottom:.5rem}
.section-head p{color:var(--text-light);font-size:.95rem;line-height:1.65}

/* ===== CARD GRID ===== */
.card-grid,.asset-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:1rem;margin:1.5rem 0 2.5rem;
}
.card-grid-2{grid-template-columns:repeat(auto-fill,minmax(420px,1fr))}

/* ===== CARDS WITH STATUS =====
   Used for package assets, courses, modules, and cohorts.
   Status classes: is-ready, is-draft, is-planned.
*/
.asset-card{
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.5rem 1.5rem 1.25rem;display:flex;flex-direction:column;
  transition:box-shadow .25s,transform .25s;text-decoration:none;color:inherit;
}
.asset-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.asset-card.is-ready{border-left:4px solid var(--ready)}
.asset-card.is-draft{border-left:4px solid var(--draft)}
.asset-card.is-planned{border-left:4px solid var(--border);opacity:.7}
.asset-card h3{font-weight:700;font-size:1.1rem;color:var(--indigo);margin-bottom:.4rem;line-height:1.2}
.asset-card p{font-size:.88rem;line-height:1.55;color:var(--text-light);flex:1}
.asset-card .card-icon{
  width:40px;height:40px;border-radius:10px;background:var(--indigo);
  display:flex;align-items:center;justify-content:center;margin-bottom:.65rem;flex-shrink:0;
}
.asset-card .card-icon svg{width:22px;height:22px}
.is-planned .card-icon{background:var(--border)}

.asset-status{
  font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:.5rem;display:inline-flex;align-items:center;gap:.35rem;
}
.dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.is-ready .asset-status{color:var(--ready-text)}
.is-ready .dot{background:var(--ready)}
.is-draft .asset-status{color:var(--draft-text)}
.is-draft .dot{background:var(--draft)}
.is-planned .asset-status{color:var(--text-muted)}
.is-planned .dot{background:var(--planned)}

.asset-cta{
  font-size:.82rem;font-weight:700;color:var(--indigo);margin-top:.75rem;
  display:inline-block;border-bottom:2px solid var(--accent);padding-bottom:2px;
}
.is-planned .asset-cta{border-color:var(--border);color:var(--text-muted)}

/* ===== TAG ===== */
.tag{
  display:inline-block;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  font-size:.65rem;color:var(--indigo);background:var(--lav);
  padding:.3rem .7rem;border-radius:100px;
}

/* ===== READING COLUMN ===== */
.prose,.overview{max-width:var(--readw);margin:0 auto;padding:2rem 2rem 3rem}
.prose h2,.overview h2{font-weight:800;font-size:1.5rem;color:var(--indigo);margin-bottom:1rem}
.prose h3,.overview h3{font-weight:700;font-size:1.15rem;color:var(--indigo);margin:1.5rem 0 .5rem}
.prose p,.overview p{font-size:1rem;line-height:1.72;color:var(--text);margin-bottom:1rem}
.prose ul,.prose ol{margin:0 0 1rem 1.25rem}
.prose li{font-size:1rem;line-height:1.72;margin-bottom:.4rem}
.prose strong,.overview strong{color:var(--indigo)}

/* ===== CALLOUT ===== */
.callout{
  border-left:4px solid var(--accent);background:var(--lav-soft);
  border-radius:0 10px 10px 0;padding:1.25rem 1.5rem;margin:1.5rem 0;
}
.callout h4{font-weight:700;font-size:.95rem;color:var(--indigo);margin-bottom:.5rem}
.callout p{font-size:.95rem;line-height:1.65;margin-bottom:.6rem}
.callout p:last-child{margin-bottom:0}

/* ===== TABLE ===== */
.lhc-table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.9rem}
.lhc-table th{
  font-family:'League Spartan',sans-serif;font-weight:700;font-size:.75rem;
  text-transform:uppercase;letter-spacing:.06em;color:var(--indigo);
  text-align:left;padding:.6rem .75rem;border-bottom:2px solid var(--border);
}
.lhc-table td{padding:.7rem .75rem;border-bottom:1px solid var(--border);line-height:1.5;vertical-align:top}
.lhc-table tr:hover td{background:var(--lav-soft)}

/* ===== JOIN BAND ===== */
.join-band{
  background:var(--indigo);color:#fff;padding:3.5rem 2rem;
  text-align:center;margin-top:2rem;
}
.join-band h2{font-weight:800;font-size:1.5rem;margin-bottom:.75rem}
.join-band p{
  font-size:1rem;color:rgba(255,255,255,.7);max-width:540px;
  margin:0 auto 1.5rem;line-height:1.6;
}

/* ===== RESPONSIVE ===== */
@media(max-width:640px){
  .lhc-hero,.hub-hero{padding:4rem 1.25rem 3rem}
  .lhc-hero-inner,.hub-hero-inner{padding:2rem 1.5rem;border-radius:16px}
  .lhc-hero h1,.hub-hero h1{font-size:1.8rem}
  .card-grid,.asset-grid,.card-grid-2{grid-template-columns:1fr}
  .wrap,.back,.prose,.overview{padding-left:1.25rem;padding-right:1.25rem}
}
