/* WVClassroom public theme (Clean/Academic + Warm/Teacher-friendly) */

/* ---------- Tokens ---------- */
:root{
  --bg: #e6ebe9;
  --panel: #ffffff;
  --panel-2: #eef3ee;
  --text: #0f172a;
  --muted: rgba(15,23,42,.70);

  --border: rgba(15,23,42,.12);
  --shadow: 0 10px 22px rgba(15,23,42,.08);

  --accent: #1f8f4a;
  --accent-2: #146c38;

  --gold: #e3bf63;
  --gold-2: #cfa63f;

  --radius: 18px;
  --radius-pill: 999px;

  --maxw: 1080px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.45;
}

h1,h2,h3,.big,.site-title{
  font-family:"Plus Jakarta Sans","Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  letter-spacing:-.015em;
}

a{color:inherit}
a:hover{opacity:.92}

/* ---------- Layout ---------- */
.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:18px 16px 28px;
}

/* ---------- Header ---------- */
.top{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px 14px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:linear-gradient(180deg,#ffffff 0%,#f9fbf9 100%);
  box-shadow:var(--shadow);
}

.top > *{position:relative;z-index:1}
.top > div:first-child{flex:1;width:100%;}

.top::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("/assets/brand/wv-outline.svg");
  background-repeat:no-repeat;
  background-position:right 8% center;
  background-size:min(520px,70%);
  opacity:.045;
  pointer-events:none;
}

@media (max-width:860px){
  .top{flex-direction:column}
}

/* ---------- Brand ---------- */
.site-brand-wrap{
  display:flex;
  justify-content:center;
  width:100%;
  margin-bottom:12px;
  padding-bottom:12px;
  position:relative;
}

.site-brand-wrap::after{
  content:"";
  position:absolute;
  bottom:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
}

.site-brand{
  display:flex;
  align-items:center;
  gap:12px;
  width:fit-content;
  margin:0 auto;
  text-align:center;
}

.site-brand-text{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.site-logo{
  width:150px;
  height:150px;
  object-fit:contain;
  border-radius:14px;
  background:var(--panel-2);
  border:1px solid var(--border);
  padding:8px;
}

.site-title{
  margin:0;
  font-size:50px;
  line-height:1.1;
  font-weight:800;
}

.site-subtitle{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

.top a{
  text-decoration:none;
  color:rgba(15,23,42,.78);
}

/* ---------- Nav ---------- */
.site-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  justify-content:center;
}

.site-nav a{
  padding:9px 16px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(31,143,74,.55);
  text-decoration:none;
  color:#0b2f1f;
  background:rgba(31,143,74,.18);
  font-weight:700;
}

.site-nav a:hover{
  background:rgba(31,143,74,.30);
  border-color:rgba(31,143,74,.75);
}

.site-nav a.active{
  background:linear-gradient(180deg,rgba(227,191,99,.85),rgba(207,166,63,.85));
  border-color:var(--gold-2);
  color:#3a2a00;
  box-shadow:0 4px 10px rgba(207,166,63,.35);
}

/* ---------- Cards ---------- */
.card{
  position:relative;
  background:var(--panel);
  border:1px solid rgba(15,23,42,.18);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:
    0 10px 24px rgba(15,23,42,.10),
    0 2px 6px rgba(15,23,42,.06);
}

.card.featured{border-color:rgba(31,143,74,.35);}

.card::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}

.big{font-size:18px;font-weight:800;margin-bottom:6px;}
.muted{color:var(--muted);}

/* ---------- Layout Helpers ---------- */
.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:860px){.two{grid-template-columns:1fr}}

/* ---------- Buttons ---------- */
.btnrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;}
.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center;}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(15,23,42,.25);
  background:#ffffff;
  color:#0f172a;
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
}

.btn:hover{background:rgba(31,143,74,.12);}

.btn.primary{
  background:var(--accent);
  border-color:var(--accent-2);
  color:#ffffff;
  font-weight:700;
}

.btn.primary:hover{background:var(--accent-2);}

/* ---------- Tags ---------- */
.tag,.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(207,166,63,.70);
  background:rgba(227,191,99,.45);
  color:#3a2a00;
  font-size:12px;
  font-weight:650;
}

/* ---------- Inputs ---------- */
.input,textarea.input,select.input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--border);
  padding:10px 12px;
  background:#ffffff;
  color:var(--text);
}

.input:focus,textarea.input:focus,select.input:focus{
  border-color:rgba(31,143,74,.70);
  box-shadow:0 0 0 4px rgba(31,143,74,.22);
}

/* ---------- Tables ---------- */
.table{width:100%;border-collapse:collapse;}
.table td{padding:10px;border-top:1px solid var(--border);vertical-align:top;}
.table thead td{
  border-top:none;
  color:rgba(15,23,42,.72);
  font-size:12px;
  text-transform:uppercase;
}
.table tbody tr:hover{background:rgba(127,191,155,.08);}

/* ---------- Footer ---------- */
.site-footer{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--border);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
}
.site-footer a{color:rgba(15,23,42,.70);text-decoration:none;}
.site-footer a:hover{text-decoration:underline;}
.tiny{font-size:12px;color:var(--muted);}

/* ---------- Mission ---------- */
.site-mission{
  margin-top:10px;
  padding:12px 16px;
  max-width:820px;
  margin-inline:auto;
  text-align:center;
  font-size:15px;
  line-height:1.5;
  background:rgba(227,191,99,.15);
  border-left:5px solid var(--gold-2);
  border-radius:12px;
}

/* ---------- Home ---------- */
.home-hero{text-align:center;}

.home-hero-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.hero-split{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.home-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:320px 1fr;
  gap:14px;
}
@media (max-width:980px){.home-grid{grid-template-columns:1fr;}}

/* ---------- Lists ---------- */
.resource-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.resource-links a{font-weight:800;text-decoration:none;}
.resource-links a:hover{text-decoration:underline;}

.list{margin-top:10px;display:flex;flex-direction:column;gap:10px;}

.list-item{
  display:block;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.55);
  text-decoration:none;
}

.list-item:hover{
  border-color:rgba(0,0,0,.14);
  background:rgba(255,255,255,.75);
}

.list-title{font-weight:900;margin-bottom:3px;}
