/* Team SK — teamsk.org
   Shared stylesheet. No external fonts, no CDN. System stacks only. */

:root {
  /* Green tier system */
  --green-brand: #006241;   /* headings, brand signal */
  --green-accent: #00754A;  /* filled CTAs, links */
  --green-house: #1E3932;   /* deep bands, footer */
  --green-uplift: #2b5148;  /* decorative */
  --green-light: #d4e9e2;   /* pale wash */

  /* Ceremony accent — used ONLY for placement-letter / outcome moments */
  --gold: #cba258;
  --gold-light: #dfc49d;
  --gold-lightest: #faf6ee;

  /* Surfaces */
  --white: #ffffff;
  --neutral-cool: #f9f9f9;
  --neutral-warm: #f2f0eb;
  --ceramic: #edebe9;

  /* Text */
  --text: rgba(0, 0, 0, 0.87);
  --text-soft: rgba(0, 0, 0, 0.58);
  --text-white: #ffffff;
  --text-white-soft: rgba(255, 255, 255, 0.70);
  --slate: #33433d;
  --red: #c82014;
  --hairline: #e7e7e7;
  --input-border: #d6dbde;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 48px;
  --space-8: 56px;
  --space-9: 64px;

  --gutter: 16px;
  --radius-card: 12px;
  --radius-pill: 50px;

  --shadow-card: 0 0 0.5px 0 rgba(0,0,0,0.14), 0 1px 1px 0 rgba(0,0,0,0.24);
  --shadow-nav: 0 1px 3px rgba(0,0,0,0.1), 0 2px 2px rgba(0,0,0,0.06), 0 0 2px rgba(0,0,0,0.07);
  --shadow-lift: 0 0 6px rgba(0,0,0,0.24), 0 8px 12px rgba(0,0,0,0.14);

  --sans: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--neutral-warm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }

a { color: var(--green-accent); }
a:hover { color: var(--green-brand); }

h1, h2, h3, h4 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 var(--space-3) 0;
}

h1 { font-size: 40px; font-weight: 600; color: var(--green-brand); }
h2 { font-size: 26px; font-weight: 600; color: var(--text); }
h3 { font-size: 19px; font-weight: 600; color: var(--text); }
h4 { font-size: 16px; font-weight: 600; color: var(--text); }

p { margin: 0 0 var(--space-3) 0; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.narrow { max-width: 780px; }

.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-ceramic { background: var(--ceramic); }
.section-white { background: var(--white); }

.lede { font-size: 19px; line-height: 1.75; color: var(--slate); }
.muted { color: var(--text-soft); }
.small { font-size: 14px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-accent);
  margin: 0 0 var(--space-2) 0;
}
.eyebrow-light { color: var(--text-white-soft); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-house); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-nav);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name {
  font-size: 19px; font-weight: 600; color: var(--green-brand);
  letter-spacing: -0.01em; line-height: 1.1;
}
.brand-sub { display: block; font-size: 11px; font-weight: 400; color: var(--text-soft); letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
}
.site-nav a {
  text-decoration: none; color: var(--text); font-size: 15px; font-weight: 400;
  padding: 6px 0; border-bottom: 2px solid transparent; display: inline-block;
}
.site-nav a:hover { color: var(--green-accent); border-bottom-color: var(--green-accent); }
.site-nav a[aria-current="page"] { color: var(--green-brand); font-weight: 600; border-bottom-color: var(--green-brand); }
.site-nav .nav-cta { margin-left: var(--space-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--green-accent); border-color: var(--green-accent); color: #fff; }
.btn-primary:hover { background: var(--green-brand); border-color: var(--green-brand); color: #fff; }
.btn-outline { background: transparent; border-color: var(--green-accent); color: var(--green-accent); }
.btn-outline:hover { background: var(--green-light); color: var(--green-brand); }
.btn-dark { background: #000; border-color: #000; color: #fff; font-size: 14px; }
.btn-dark:hover { background: #222; border-color: #222; color: #fff; }
.btn-on-dark-filled { background: #fff; border-color: #fff; color: var(--green-accent); }
.btn-on-dark-filled:hover { background: var(--green-light); color: var(--green-brand); }
.btn-on-dark { background: transparent; border-color: #fff; color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* ---------- Hero ---------- */
.hero { background: var(--neutral-warm); padding: var(--space-9) 0; }
.hero-split { display: grid; grid-template-columns: 60% 40%; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: 46px; }
.hero .lede { max-width: 42em; }

.hero-panel {
  background: var(--green-house); color: #fff;
  border-radius: var(--radius-card); padding: var(--space-5);
  box-shadow: var(--shadow-card);
}
.hero-panel h2 { color: #fff; font-size: 19px; }
.hero-panel p { color: var(--text-white-soft); font-size: 15px; }
.hero-panel dl { margin: 0; }
.hero-panel dt { font-size: 13px; color: var(--text-white-soft); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-panel dd { margin: 0 0 var(--space-3) 0; font-size: 19px; font-weight: 600; color: #fff; }

/* ---------- Bands ---------- */
.band { background: var(--green-house); color: #fff; padding: var(--space-7) 0; }
.band h2, .band h3 { color: #fff; }
.band p { color: var(--text-white-soft); }
.band a { color: #fff; }
.band-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }

.band-uplift { background: var(--green-uplift); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 0 0.5px rgba(0,0,0,0.14), 0 6px 12px rgba(0,0,0,0.12); color: inherit; }
.card-link .more { color: var(--green-accent); font-weight: 600; font-size: 14px; }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Course card meta strip */
.course-meta {
  list-style: none; margin: var(--space-3) 0; padding: 0;
  font-size: 14px; color: var(--text-soft);
}
.course-meta li { padding: 6px 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 12px; }
.course-meta li:last-child { border-bottom: 0; }
.course-meta strong { color: var(--text); font-weight: 600; text-align: right; }

/* Eligibility / callout boxes */
.box {
  background: var(--white);
  border-left: 4px solid var(--green-accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  margin: var(--space-4) 0;
}
.box h3 { color: var(--green-brand); }
.box ul { margin: 0; padding-left: 20px; }
.box li { margin-bottom: 6px; }

.box-warn { border-left-color: var(--red); }
.box-warn h3 { color: var(--red); }

/* Placement-letter ceremony card — gold is reserved for this */
.letter-card {
  background: var(--gold-lightest);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}
.letter-card h3 { color: var(--green-house); }
.pill-gold {
  display: inline-block;
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.stat { background: var(--green-house); color: #fff; border-radius: var(--radius-card); padding: var(--space-4); }
.stat .num { font-size: 36px; font-weight: 600; line-height: 1.1; display: block; }
.stat .lbl { font-size: 14px; color: var(--text-white-soft); display: block; margin-top: 6px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: var(--space-4) 0; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); font-size: 15px;
  min-width: 560px;
}
table.data caption { text-align: left; font-size: 14px; color: var(--text-soft); padding-bottom: var(--space-2); caption-side: top; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.data thead th { background: var(--ceramic); color: var(--text); font-weight: 600; font-size: 14px; }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-4) var(--space-4) 68px;
  position: relative; margin-bottom: var(--space-3);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-accent); color: #fff;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Definition rows ---------- */
.facts { margin: 0; }
.facts div { display: flex; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { flex: 0 0 42%; color: var(--text-soft); font-size: 14px; margin: 0; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 14px; color: var(--text-soft); padding: var(--space-3) 0 0 0; }
.crumb a { color: var(--green-accent); }
.crumb span { padding: 0 6px; }

/* ---------- Quote ---------- */
blockquote.q {
  margin: var(--space-4) 0; padding: var(--space-4);
  background: var(--green-light);
  border-radius: var(--radius-card);
  font-size: 17px; color: var(--slate);
}
blockquote.q cite { display: block; margin-top: var(--space-2); font-size: 14px; font-style: normal; color: var(--text-soft); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; color: var(--green-brand); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+ "; font-weight: 700; }
details.faq[open] summary::before { content: "\2212 "; }
details.faq p { margin-top: var(--space-3); }
details.faq p:last-child { margin-bottom: var(--space-2); }

/* ---------- Form ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: var(--space-5);
}
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px;
  border: 1px solid var(--input-border); border-radius: 4px;
  font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green-accent); outline-offset: 1px;
  border-color: var(--green-accent);
}
.field .hint { font-size: 13px; color: var(--text-soft); margin-top: 4px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-house); color: var(--text-white-soft); padding: var(--space-7) 0 var(--space-5) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5); }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 15px; }
.site-footer a { color: var(--text-white-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: 15px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-3); }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { color: #fff; font-weight: 600; font-size: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: var(--space-6); padding-top: var(--space-4);
  font-size: 14px; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
}

/* ---------- Utility ---------- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.tag-list { list-style: none; margin: var(--space-3) 0 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); padding: 5px 14px; font-size: 14px; color: var(--slate);
}
.band .tag-list li { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--text-white-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  h1 { font-size: 30px; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .lede { font-size: 17px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .band-split { grid-template-columns: 1fr; gap: var(--space-5); }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: var(--space-6) 0; }
  .section { padding: var(--space-6) 0; }
  .header-inner { min-height: 64px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: var(--space-3); }
  .site-nav a { font-size: 14px; }
  .btn { display: block; width: 100%; padding: 13px 22px; }
  .site-nav .btn { display: inline-block; width: auto; padding: 9px 18px; }
  .btn-row { flex-direction: column; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dt { flex: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* fix: inside dark bands the white "on-dark" pill must keep its green label,
   and the white data table must keep dark text (band colour was inherited) */
.band .btn.btn-on-dark-filled,
.section-dark .btn.btn-on-dark-filled { color: var(--green-accent); }
.band .btn.btn-on-dark-filled:hover,
.section-dark .btn.btn-on-dark-filled:hover { color: var(--green-brand); }
.band table.data td, .band table.data th,
.band table.data caption { color: var(--text); }

/* fix: primary pill was rendering green-on-green (label colour was being
   inherited from the section instead of the button) */
.btn.btn-primary { color: var(--text-white); }
.btn.btn-primary:hover { color: var(--text-white); }
/* fix: on /contact the nav CTA also matches a[aria-current="page"], whose colour
   rule outranked .btn-primary and made it green-on-green */
.site-nav a[aria-current="page"].btn-primary { color: var(--text-white); }
