/* =========================================================
   EMERALD TEACHING — SHARED DESIGN SYSTEM
   Every page should link this file so colours, type, and
   components stay identical site-wide. Page-specific CSS
   goes in a <style> block AFTER this file, and should only
   add new things — not redefine tokens or core components.
   ========================================================= */

:root{
  --paper: #FAF6EC;
  --paper-line: #CFE0D3;
  --margin-line: #E2694B;
  --ink: #2B2620;
  --ink-soft: #5B564C;
  --emerald-deep: #1F4B3F;
  --emerald-mid: #2F6B52;
  --emerald-pale: #E7EFE8;
  --honey: #E3A23C;
  --honey-deep: #C97F1F;
  --coral: #E2694B;
  --radius: 10px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  line-height:1.5;
}
h1,h2,h3,.display{
  font-family:'Fraunces',serif;
  font-weight:600;
  color:var(--emerald-deep);
  margin:0;
}
.note{
  font-family:'Caveat',cursive;
  color:var(--coral);
  font-weight:600;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.wrap{max-width:1160px;margin:0 auto;padding:0 28px;}

/* ---- Header (identical on every page) ---- */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(250,246,236,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--paper-line);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 28px;max-width:1160px;margin:0 auto;
}
.logo{
  display:flex;align-items:center;gap:10px;
  font-family:'Fraunces',serif;font-weight:700;font-size:1.3rem;
  color:var(--emerald-deep);
}
.logo-mark{
  width:34px;height:34px;border-radius:50%;
  background:var(--emerald-deep);
  display:flex;align-items:center;justify-content:center;
  color:var(--paper);font-family:'Fraunces',serif;font-weight:700;font-size:1.1rem;
}
nav{display:flex;gap:30px;align-items:center;}
nav a{
  font-size:0.95rem;font-weight:500;color:var(--ink-soft);
  padding:6px 0;border-bottom:2px solid transparent;
  transition:color .2s, border-color .2s;
}
nav a:hover, nav a.active{color:var(--emerald-deep);border-color:var(--honey);}

.menu-btn{
  display:none;background:none;border:1.5px solid var(--emerald-deep);
  border-radius:8px;width:42px;height:42px;align-items:center;justify-content:center;
  cursor:pointer;color:var(--emerald-deep);
}
.menu-btn svg{width:20px;height:20px;}
.mobile-nav{
  display:none;flex-direction:column;background:var(--paper);
  border-bottom:1px solid var(--paper-line);padding:8px 28px 18px;
}
.mobile-nav.open{display:flex;}
.mobile-nav a{
  padding:12px 0;font-weight:500;color:var(--ink-soft);
  border-bottom:1px solid var(--paper-line);
}
.mobile-nav a:last-child{border-bottom:none;}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 22px;border-radius:30px;
  font-weight:600;font-size:0.95rem;
  cursor:pointer;border:none;transition:transform .15s, box-shadow .15s;
}
.btn:hover{transform:translateY(-1px);}
.btn:focus-visible{outline:3px solid var(--honey-deep);outline-offset:2px;}
.btn-primary{background:var(--honey);color:var(--emerald-deep);box-shadow:0 3px 0 var(--honey-deep);}
.btn-primary:hover{box-shadow:0 4px 0 var(--honey-deep);}
.btn-ghost{background:transparent;color:var(--emerald-deep);border:1.5px solid var(--emerald-deep);}
.btn-ghost:hover{background:var(--emerald-deep);color:var(--paper);}

/* ---- Page header band (used on every inner page) ---- */
.page-hero{
  padding:52px 0 40px;
  background-image: repeating-linear-gradient(var(--paper) 0 37px, var(--paper-line) 37px 38px);
  position:relative;
}
.page-hero::before{
  content:"";position:absolute;left:64px;top:0;bottom:0;width:2px;background:var(--margin-line);opacity:.55;
}
.page-hero-inner{position:relative;max-width:1160px;margin:0 auto;padding:0 28px 0 100px;}
.eyebrow{
  font-size:.8rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--emerald-mid);font-weight:700;margin-bottom:14px;display:block;
}
.page-hero h1{font-size:clamp(2rem,4vw,2.8rem);line-height:1.1;max-width:20ch;}
.page-hero p.lede{margin-top:16px;font-size:1.08rem;color:var(--ink-soft);max-width:56ch;}

/* ---- Register / list rows (job cards etc.) ---- */
.register{
  border:1px solid var(--paper-line);border-radius:14px;overflow:hidden;
  background:#fff;
}
.register-row{
  display:grid;grid-template-columns:auto 1fr auto auto auto;
  gap:20px;align-items:center;
  padding:20px 24px;border-bottom:1px solid var(--paper-line);
  transition:background .15s;
}
.register-row:last-child{border-bottom:none;}
.register-row:hover{background:var(--emerald-pale);}
.tab-chip{
  width:44px;height:44px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;font-weight:700;color:#fff;font-size:1rem;
  flex-shrink:0;
}
.row-title h3{font-size:1.08rem;font-weight:600;}
.row-title .meta{font-size:.86rem;color:var(--ink-soft);margin-top:3px;}
.badge{
  font-size:.76rem;font-weight:700;padding:5px 12px;border-radius:20px;
  background:var(--emerald-pale);color:var(--emerald-deep);white-space:nowrap;
}
.badge-honey{background:#FBEFDA;color:var(--honey-deep);}
.row-arrow{
  width:36px;height:36px;border-radius:50%;border:1.5px solid var(--paper-line);
  display:flex;align-items:center;justify-content:center;color:var(--emerald-deep);
  transition:background .15s, border-color .15s;flex-shrink:0;
}
.register-row:hover .row-arrow{background:var(--honey);border-color:var(--honey);}

/* ---- Cards (why-us, filters, generic panels) ---- */
.panel{
  background:#fff;border-radius:14px;padding:24px;
  border:1px solid #DCE8DF;
}
.panel h4{
  font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;
  color:var(--emerald-mid);margin-bottom:14px;font-weight:700;font-family:'Inter',sans-serif;
}

/* ---- Sections ---- */
.section{padding:64px 0;}
.section-head{
  display:flex;justify-content:space-between;align-items:flex-end;
  margin-bottom:32px;flex-wrap:wrap;gap:16px;
}
.section-head h2{font-size:clamp(1.6rem,3vw,2.1rem);}
.section-head p{color:var(--ink-soft);margin-top:8px;max-width:50ch;}

/* ---- CTA band ---- */
.cta{
  background:var(--emerald-deep);color:var(--paper);
  border-radius:20px;padding:52px 40px;
  display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  margin:0 28px;
}
.cta h2{color:var(--paper);font-size:clamp(1.5rem,3vw,2rem);max-width:20ch;}
.cta p{color:#D9E6DD;margin-top:8px;}

/* ---- Footer ---- */
footer{padding:56px 0 36px;border-top:1px solid var(--paper-line);margin-top:40px;}
.footer-grid{display:flex;justify-content:space-between;flex-wrap:wrap;gap:30px;}
footer h4{font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:var(--emerald-mid);margin-bottom:12px;}
footer a{display:block;font-size:.92rem;color:var(--ink-soft);margin-bottom:8px;}
footer a:hover{color:var(--emerald-deep);}
.foot-bottom{
  margin-top:40px;padding-top:20px;border-top:1px solid var(--paper-line);
  font-size:.82rem;color:var(--ink-soft);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
}

/* ---- Form controls (search, filters) ---- */
.field{display:flex;flex-direction:column;gap:4px;}
.field label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--emerald-mid);}
.field select, .field input{
  border:1.5px solid var(--paper-line);border-radius:8px;padding:10px 12px;
  font-family:inherit;font-size:.95rem;color:var(--ink);background:var(--paper);
  width:100%;
}
.checkbox-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:7px 0;font-size:.92rem;color:var(--ink-soft);cursor:pointer;
}
.checkbox-row:hover{color:var(--emerald-deep);}
.checkbox-row .count{color:var(--ink-soft);font-size:.85rem;}

@media (max-width:760px){
  nav{display:none;}
  .desktop-only{display:none;}
  .menu-btn{display:flex;}
  .page-hero::before{left:20px;}
  .page-hero-inner{padding-left:44px;}
  .register-row{grid-template-columns:auto 1fr;grid-template-areas:"chip title" "chip badge";}
  .row-arrow{display:none;}
  .cta{padding:36px 24px;}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .btn, .register-row, .row-arrow{transition:none;}
}
