/* ==========================================================================
   Tango Lima Professional Services
   Single stylesheet. No build step.

   Contents
     1.  Tokens
     2.  Base
     3.  Header + navigation
     4.  Footer
     5.  Section shell
     6.  Buttons
     7.  Homepage — hero
     8.  Homepage — where we work
     9.  Homepage — the platform
     10. Homepage — published works
     11. Homepage — companion resources
     12. Homepage — why CBE
     13. Homepage — start the conversation
     14. Forms
     15. Intake pages
     16. Responsive
   ========================================================================== */


/* 1. Tokens ---------------------------------------------------------------- */

:root {
  --navy-deep:    #0A1628;
  --navy:         #0D1B2A;
  --navy-mid:     #132A3F;
  --navy-line:    #24384D;
  --field-bd:     #33475B;

  --teal:         #2ED8DD;
  --teal-dim:     #1FB6BB;
  --teal-deep:    #0E7C80;

  --bg:           #F4F6F8;
  --white:        #FFFFFF;

  --text:         #1A2A3A;
  --text-muted:   #3A4D5E;
  --rule-light:   #C9D6E2;

  --on-dark:      #FFFFFF;
  --on-dark-mid:  #DCE6EF;
  --on-dark-mut:  #C9D6E2;
  --on-dark-dim:  #A8B8C4;
  --on-dark-faint:#8FA6BA;

  --error:        #FF8A7A;
  --error-dark:   #B03A2E;

  --shell:        1240px;
  --shell-narrow: 1000px;
  --shell-wide:   1200px;

  --cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
}


/* 2. Base ------------------------------------------------------------------ */

* { box-sizing: border-box; }

html {
  /* Sticky header is 118px tall. Without this, in-page anchors land beneath
     it and the section's teal rule is hidden. */
  scroll-padding-top: 145px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy); }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

.shell--narrow { max-width: var(--shell-narrow); }

/* Honeypot. Positioned offscreen rather than display:none, which bots
   detect and skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 3. Header + navigation --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
}

.site-header--static { position: static; }

.site-header__bar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header--static .site-header__bar { max-width: var(--shell-narrow); }

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-header__logo img {
  height: 64px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  text-decoration: none;
}

.nav a:hover { color: var(--on-dark); }

.nav a[aria-current="page"] { color: var(--on-dark); }

.nav__cta {
  font-weight: 700;
  color: var(--navy);
  background: var(--teal);
  padding: 10px 20px;
}

.nav__cta:hover {
  color: var(--navy);
  background: var(--teal-dim);
}

.nav-back {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  text-decoration: none;
}

.nav-back:hover { color: var(--teal); }

/* Checkbox toggle keeps the mobile menu JS-free. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  cursor: pointer;
}

.nav-btn span {
  display: block;
  height: 3px;
  background: var(--teal);
}

.nav-toggle:focus-visible + .nav-btn {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}


/* 4. Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-mut);
  border-top: 3px solid var(--teal);
  padding: 56px 0 40px;
}

.site-footer__cols {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.6fr));
  gap: 48px;
  align-items: start;
}

.site-footer__logo {
  height: 88px;
  width: auto;
  display: block;
  margin-bottom: 22px;
}

.site-footer__tagline {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 12px;
}

.site-footer__place {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.site-footer__heading {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.site-footer__links {
  display: grid;
  gap: 10px;
}

.site-footer__links a {
  font-size: 17px;
  color: var(--on-dark-mut);
  text-decoration: none;
}

.site-footer__links a:hover { color: var(--teal); }

.site-footer__links a.is-strong { color: var(--on-dark); }

.site-footer__legal {
  max-width: var(--shell);
  margin: 36px auto 0;
  padding: 22px 32px 0;
  border-top: 1px solid #1C3049;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__legal span {
  font-size: 15px;
  color: var(--on-dark-faint);
}

/* Compact variant — intake pages */
.site-footer--compact { padding: 44px 0 36px; }

.site-footer__compact {
  max-width: var(--shell-narrow);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer__contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__contact a {
  font-size: 17px;
  color: var(--on-dark-mut);
  text-decoration: none;
}

.site-footer__contact a:hover { color: var(--teal); }

.site-footer__contact a.is-strong { color: var(--on-dark); }


/* 5. Section shell --------------------------------------------------------- */

.section { padding: 96px 0; }

.section--light { background: var(--bg); }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); color: var(--on-dark); }

.section--platform {
  background: linear-gradient(180deg, #0A1628 0%, #0D1B2A 100%);
  color: var(--on-dark);
}

/* The signature device: a 3px teal rule opening every section. */
.section-head {
  border-top: 3px solid var(--teal);
  padding-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 52px;
}

.section-head--tight { margin-bottom: 44px; }
.section-head--flush { margin-bottom: 20px; }

.section-head h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

.section--navy .section-head h2,
.section--platform .section-head h2 { color: var(--on-dark); }

.section-head p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 0 auto;
  max-width: 420px;
  line-height: 1.55;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eyebrow-row__bar {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--teal);
  flex: none;
}

.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}


/* 6. Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn--solid {
  color: var(--navy);
  background: var(--teal);
  padding: 16px 32px;
}

.btn--solid:hover {
  color: var(--navy);
  background: var(--teal-dim);
}

.btn--ghost {
  color: var(--on-dark);
  background: transparent;
  border: 2px solid var(--field-bd);
  padding: 14px 30px;
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--submit { padding: 16px 36px; }


/* 7. Homepage — hero ------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, #0D1B2A 0%, #0A1628 62%, #0D1B2A 100%);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 104px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 96px;
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.hero__lede {
  font-size: 21px;
  line-height: 1.6;
  color: var(--on-dark-mid);
  max-width: 600px;
  margin: 0 0 20px;
  text-wrap: pretty;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark-mut);
  max-width: 600px;
  margin: 0 0 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__facts {
  border-left: 3px solid var(--teal);
  padding-left: 32px;
}

.fact { padding: 22px 0; }
.fact + .fact { border-top: 1px solid var(--navy-line); }
.fact:first-child { padding-top: 0; }

.fact__label {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: 8px;
}

.fact__body {
  font-size: 17px;
  color: var(--on-dark-mut);
  line-height: 1.55;
}

.fact__body em {
  font-style: normal;
  color: var(--on-dark);
}


/* 8. Homepage — where we work ---------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pillar {
  background: var(--white);
  border-top: 4px solid var(--navy);
  padding: 34px 32px 36px;
}

/* Full-bleed image: pulled out past the card's own padding. */
.pillar__img {
  width: calc(100% + 64px);
  margin: -34px -32px 26px;
  height: 190px;
  object-fit: cover;
  display: block;
  max-width: none;
}

.pillar h3 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 14px;
}

.pillar p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 18px;
}

.pillar__tagline {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}


/* 9. Homepage — the platform ----------------------------------------------- */

/* The mark's dark half disappears on navy, so it sits on a white plate. */
.logo-plate {
  display: inline-block;
  background: var(--white);
  padding: 28px 36px;
  margin: 0 0 44px;
}

.logo-plate img {
  height: 150px;
  width: auto;
  display: block;
}

.platform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: start;
}

.platform__lede {
  font-size: 22px;
  line-height: 1.55;
  color: var(--on-dark);
  margin: 0 0 20px;
  max-width: 620px;
  text-wrap: pretty;
}

.platform__body {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-mid);
  margin: 0 0 20px;
  max-width: 620px;
}

.platform__note {
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-dark-mid);
  margin: 0 0 32px;
  max-width: 620px;
}

.terms { border-top: 1px solid var(--navy-line); }

.term {
  padding: 20px 0;
  border-bottom: 1px solid var(--navy-line);
}

.term__name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.term p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-mut);
  margin: 0;
}

.platform__figure { margin: 0; }

.platform__figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--navy-line);
}

.platform__figure figcaption {
  font-size: 15px;
  color: var(--on-dark-mut);
  margin-top: 12px;
  line-height: 1.5;
}


/* 10. Homepage — published works ------------------------------------------- */

.products__intro {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  max-width: 720px;
  margin: 0 0 56px;
}

.books { display: grid; gap: 24px; }

.book {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  background: var(--bg);
  border-top: 3px solid var(--navy);
  padding: 32px 36px;
}

.book__cover {
  display: block;
  text-decoration: none;
  position: relative;
}

.book__cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 14px 30px rgba(13, 27, 42, 0.28);
}

/* Selector must out-specify `.book__cover img`, which sets width:100%
   and the cover's drop shadow — a bare `.book__seal` loses to it. */
.book__cover img.book__seal {
  position: absolute;
  top: -18px;
  left: -26px;
  width: 94px;
  height: auto;
  display: block;
  z-index: 2;
  box-shadow: none;
  filter: drop-shadow(0 4px 10px rgba(13, 27, 42, 0.35));
}

.book h3 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.03;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
}

.book__subtitle {
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.book__desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 18px;
  max-width: 720px;
}

.book__meta {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
}

.book__buy {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
}

.book__buy:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.book__format {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.products__note {
  font-size: 16px;
  color: var(--text-muted);
  margin: 34px 0 0;
}

.research {
  margin-top: 64px;
  border-top: 3px solid var(--teal);
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.research h3 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 12px;
}

.research__intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.research__body {
  border-left: 3px solid var(--rule-light);
  padding-left: 28px;
}

.research__eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 12px;
}

/* APA 7 hanging indent. The bare DOI is unbreakable, so allow it to wrap
   rather than push the page wide on phones. */
.research__ref {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 16px;
  padding-left: 32px;
  text-indent: -32px;
  overflow-wrap: break-word;
}

.research__ref a { color: var(--teal-deep); }


/* 11. Homepage — companion resources --------------------------------------- */

.companion {
  background: var(--navy-deep);
  border-top: 3px solid var(--teal);
  padding: 72px 0 80px;
  color: var(--on-dark);
}

.companion__inner {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}

.companion h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.companion__lede {
  font-size: 17px;
  line-height: 1.68;
  color: var(--on-dark-mid);
  margin: 0 0 20px;
}

.companion__note {
  font-size: 15px;
  line-height: 1.68;
  color: var(--on-dark-dim);
  margin: 0 0 32px;
}

.expect {
  border-top: 1px solid var(--field-bd);
  padding-top: 24px;
}

.expect__label {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}

.expect__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.expect__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-dim);
}

.expect__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

.expect__list strong {
  color: var(--on-dark);
  font-weight: 600;
}

.expect__list a { color: var(--teal); }


/* 12. Homepage — why CBE --------------------------------------------------- */

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
}

.why__claim {
  font-size: 21px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
  text-wrap: pretty;
}

/* Marks the turn from claim to argument. */
.why__rule {
  border: 0;
  border-top: 1px solid var(--rule-light);
  margin: 0 0 24px;
  max-width: 120px;
}

.why__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 20px;
}

.why__body:last-child { margin-bottom: 0; }

.founder {
  background: var(--white);
  border-left: 3px solid var(--teal);
  padding: 32px;
}

.founder img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

/* Deliberately not uppercased — "Ed.D." must keep its lowercase d. */
.founder__name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 6px;
}

.founder__role {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}

.founder p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}


/* 13. Homepage — start the conversation ------------------------------------ */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.contact__lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--on-dark-mid);
  margin: 0 0 32px;
}

.route {
  display: block;
  background: var(--navy-mid);
  border-left: 3px solid var(--teal);
  padding: 22px 26px;
  text-decoration: none;
  transition: background 140ms ease;
}

.route + .route { margin-top: 16px; }

.route:hover { background: #1A3550; }

.route__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 4px;
}

.route__desc {
  font-size: 16px;
  color: var(--on-dark-mut);
  line-height: 1.5;
}


/* 14. Forms ---------------------------------------------------------------- */

.form-card {
  background: var(--white);
  padding: 36px;
}

.field { display: block; margin-bottom: 20px; }

.field--last { margin-bottom: 24px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.label {
  display: block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 7px;
}

.req { color: var(--error-dark); }

.input,
.select,
.textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 0;
  padding: 12px 14px;
}

.textarea { resize: vertical; }

.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-repeat: no-repeat;
  background-position: right 16px center;
  /* No semicolon inside the data URI — it would terminate the declaration. */
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath fill=%27%233A4D5E%27 d=%27M1 1l5 5 5-5%27/%3E%3C/svg%3E');
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 216, 221, 0.22);
}

[aria-invalid="true"] { border-color: var(--error) !important; }

.status {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.55;
  padding: 16px 20px;
  border-left: 3px solid transparent;
}

.status:empty { display: none; }

.status[data-state="ok"] {
  border-left-color: var(--teal);
  background: #E7F8F9;
  color: #0D3F42;
}

.status[data-state="error"] {
  border-left-color: var(--error-dark);
  background: #FBECEA;
  color: #7B241C;
}

/* Claim form — white fields on navy */
.claim__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.claim .field { margin-bottom: 22px; }

.claim .label {
  color: var(--on-dark);
  font-size: 16px;
}

.claim .req { color: var(--teal); }

.claim .input,
.claim .select {
  border: 1px solid transparent;
  padding: 14px 16px;
}

#claim-submit { padding: 20px 40px; }

#claim-submit[disabled] {
  opacity: 0.55;
  cursor: default !important;
}

.claim__status {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  min-height: 1.5em;
  color: var(--on-dark-dim);
}

.claim__status[data-state="ok"]    { color: var(--teal); }
.claim__status[data-state="error"] { color: var(--error); }


/* 15. Intake pages --------------------------------------------------------- */

.intake-hero {
  background: linear-gradient(160deg, #0D1B2A 0%, #0A1628 70%, #0D1B2A 100%);
  color: var(--on-dark);
}

.intake-hero__inner {
  max-width: var(--shell-narrow);
  margin: 0 auto;
  padding: 72px 32px 64px;
}

.intake-hero .eyebrow-row { margin-bottom: 24px; }

.intake-hero h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.96;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.intake-hero p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-dark-mid);
  max-width: 640px;
  margin: 0;
}

.intake-main {
  max-width: var(--shell-narrow);
  margin: 0 auto;
  padding: 72px 32px 96px;
}

.intake-group { margin-bottom: 56px; }

.intake-group--last { margin-bottom: 44px; }

.intake-group__head {
  border-top: 3px solid var(--teal);
  padding-top: 18px;
  margin-bottom: 28px;
}

.intake-group__head h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

.intake-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.intake-main .input,
.intake-main .select,
.intake-main .textarea { padding: 13px 14px; }

.field--spaced { margin-top: 24px; }
.field--capped { max-width: 480px; }

.submit-row {
  border-top: 3px solid var(--navy);
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.submit-row__note {
  font-size: 16px;
  color: var(--text-muted);
}


/* 16. Responsive ----------------------------------------------------------- */

/* Book covers shrink before the layout changes. */
@media (max-width: 1240px) {
  .book { grid-template-columns: 240px minmax(0, 1fr); }
}

/* Wide grids drop to two columns before the nav collapses. */
@media (max-width: 1080px) and (min-width: 1021px) {
  .pillars,
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Main breakpoint. Load-bearing: the logo is 321px at 64px tall and the nav
   is 587px at min-content, so the header needs 1004px before it overflows. */
@media (min-width: 1021px) {
  .nav-btn { display: none; }
}

@media (max-width: 1020px) {
  .nav { display: none; }

  .nav-toggle:checked ~ .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    padding: 20px 0 8px;
  }

  .site-header__bar { flex-wrap: wrap; }

  .section { padding: 60px 0; }

  .section-head { flex-wrap: wrap; gap: 12px; }
  .section-head p { margin-left: 0; }
  .section-head h2 { font-size: 34px; }

  /* minmax(0,1fr) rather than 1fr: a bare 1fr track has an implicit
     min-content floor, which long unbreakable strings push past. */
  .hero__inner,
  .platform__grid,
  .why__grid,
  .contact__grid,
  .research,
  .pillars,
  .site-footer__cols,
  .field-row,
  .intake-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero h1 { font-size: 54px; }

  .hero__facts {
    border-left: 0;
    border-top: 3px solid var(--teal);
    padding-left: 0;
    padding-top: 8px;
  }

  .research__body {
    border-left: 0;
    border-top: 1px solid var(--rule-light);
    padding-left: 0;
    padding-top: 20px;
  }

  .book {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 22px;
  }

  .book__cover { max-width: 200px; }

  .field-row { gap: 0; }
}

@media (max-width: 900px) {
  .companion { padding: 56px 0 64px; }

  .companion__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 0 24px;
  }

  .companion h2 { font-size: 36px; }
}

@media (max-width: 860px) {
  .intake-hero h1 { font-size: 44px; }
  .intake-hero__inner,
  .intake-main,
  .site-footer__compact,
  .site-header--static .site-header__bar { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 560px) {
  .shell { padding: 0 20px; }
  .hero__inner { padding: 72px 20px 64px; }
  .hero h1 { font-size: 44px; }
  .site-header__bar { padding: 14px 20px; }
  .site-footer__cols { padding: 0 20px; }
  .site-footer__legal { padding: 22px 20px 0; }
  .book { padding: 22px 20px; }
  .pillar { padding: 30px 22px 32px; }
  .pillar__img { width: calc(100% + 44px); margin: -30px -22px 24px; }
  .form-card { padding: 26px 22px; }
  .claim__row { grid-template-columns: 1fr; gap: 0; }
  #claim-submit { width: 100%; padding: 20px 24px; }
  .btn--submit { width: 100%; text-align: center; }
}

/* 320px — iPhone SE (1st gen) and similar. Long uppercase headings in a
   condensed face still exceed the column here, so step the scale down. */
@media (max-width: 400px) {
  .section-head h2 { font-size: 28px; }
  .intake-group__head h2 { font-size: 28px; }
  .companion h2 { font-size: 30px; }
  .hero h1 { font-size: 38px; }
  .intake-hero h1 { font-size: 36px; }
  .book h3 { font-size: 26px; }
  .research h3 { font-size: 28px; }
  .term__name { font-size: 22px; }
  .route__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* 14. Paper — long-form scholarly article -----------------------------------
   Scoped entirely under .paper. No bare element selectors, so nothing here
   reaches index.html, about.html, or the two intake pages.
   Measure is 720px, narrower than --shell-narrow, which is a reading width
   rather than a layout width. */

.paper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

/* --- Masthead ------------------------------------------------------------ */

.paper__head {
  padding: 56px 0 32px;
  border-bottom: 3px solid var(--teal);
  margin-bottom: 40px;
}

.paper__title {
  font-family: var(--cond);
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0 0 20px;
}

.paper__byline {
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 4px;
}

.paper__affil {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.paper__date {
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

/* --- Abstract ------------------------------------------------------------ */

.paper__abstract {
  background: var(--white);
  border-left: 4px solid var(--teal);
  padding: 28px 32px;
  margin: 0 0 40px;
}

.paper__abstract h2 {
  font-family: var(--cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.paper__abstract p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.paper__abstract p:last-child { margin-bottom: 0; }

.paper__keywords {
  font-size: 15px !important;
  color: var(--text-muted);
  border-top: 1px solid var(--rule-light);
  padding-top: 14px;
  margin-top: 20px !important;
}

.paper__keywords strong {
  font-weight: 600;
  color: var(--text);
}

/* --- Contents ------------------------------------------------------------ */
/* html already carries scroll-padding-top: 145px, so anchors clear the
   sticky header without further work. */

.paper__toc {
  border: 1px solid var(--rule-light);
  padding: 24px 28px;
  margin: 0 0 48px;
}

.paper__toc h2 {
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.paper__toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
}

.paper__toc li {
  counter-increment: toc;
  margin: 0 0 7px;
  padding-left: 30px;
  position: relative;
  font-size: 16px;
}

.paper__toc li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  font-family: var(--cond);
  font-weight: 600;
  color: var(--teal-deep);
}

.paper__toc li:last-child { margin-bottom: 0; }
.paper__toc a { text-decoration: none; }
.paper__toc a:hover { text-decoration: underline; }

/* --- Headings ------------------------------------------------------------ */

.paper h2 {
  font-family: var(--cond);
  font-size: clamp(25px, 3.2vw, 31px);
  font-weight: 600;
  line-height: 1.16;
  color: var(--navy);
  margin: 56px 0 18px;
  padding-top: 22px;
  border-top: 2px solid var(--rule-light);
}

.paper h3 {
  font-family: var(--cond);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--navy);
  margin: 38px 0 12px;
}

.paper h4 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin: 26px 0 8px;
}

/* --- Body ---------------------------------------------------------------- */

.paper p {
  font-size: 17px;
  line-height: 1.72;
  margin: 0 0 20px;
}

.paper strong { font-weight: 600; }
.paper em { font-style: italic; }

.paper ul,
.paper ol {
  margin: 0 0 20px;
  padding-left: 26px;
}

.paper li {
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 9px;
}

/* --- Callouts ------------------------------------------------------------ */
/* Used twice: the concise statement of the model in the introduction, and
   the scaffold-not-ladder assertion in Principle 2. Both are load-bearing
   claims that readers skim for. */

.paper__callout {
  background: var(--navy);
  color: var(--on-dark);
  padding: 28px 32px;
  margin: 32px 0 34px;
}

.paper__callout p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark);
  margin: 0;
}

.paper__callout strong { color: var(--teal); font-weight: 600; }

.paper__callout--light {
  background: var(--white);
  color: var(--text);
  border-left: 4px solid var(--teal);
  padding: 24px 28px;
}

.paper__callout--light p {
  color: var(--text);
  font-size: 19px;
  font-family: var(--cond);
  font-weight: 500;
  line-height: 1.4;
}

.paper__callout--light strong { color: var(--navy); }

/* --- Principle blocks ---------------------------------------------------- */

.paper__principle {
  margin-top: 40px;
}

.paper__principle h3 {
  margin-top: 0;
  padding-left: 54px;
  position: relative;
  min-height: 40px;
}

.paper__principle h3 .paper__num {
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
}

/* --- Disclosure ---------------------------------------------------------- */

.paper__disclosure {
  border: 1px solid var(--rule-light);
  background: var(--white);
  padding: 22px 26px;
  margin: 48px 0 0;
}

.paper__disclosure p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.paper__disclosure strong { color: var(--text); }

/* --- References ---------------------------------------------------------- */

.paper__refs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.paper__refs li {
  font-size: 15.5px;
  line-height: 1.6;
  padding-left: 2.2em;
  text-indent: -2.2em;
  margin-bottom: 15px;
  overflow-wrap: break-word;
}

.paper__refs a {
  color: var(--teal-deep);
  overflow-wrap: break-word;
}

/* --- Citation box -------------------------------------------------------- */

.paper__cite {
  border: 1px solid var(--rule-light);
  background: var(--white);
  padding: 22px 26px;
  margin: 40px 0 0;
}

.paper__cite h2 {
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.paper__cite p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.paper__cite p:last-child { margin-bottom: 0; }

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 640px) {
  .paper { padding: 0 20px 64px; }
  .paper__abstract { padding: 22px 20px; }
  .paper__callout { padding: 22px 20px; }
  .paper__toc { padding: 20px 20px; }
  .paper__principle h3 { padding-left: 46px; }
  .paper__principle h3 .paper__num {
    width: 34px; height: 34px; line-height: 34px; font-size: 18px;
  }
  .paper__refs li { padding-left: 1.6em; text-indent: -1.6em; }
}

/* --- Print --------------------------------------------------------------- */

@media print {
  .paper { max-width: none; padding: 0; }
  .paper__toc,
  .site-header,
  .site-footer { display: none; }
  .paper__callout {
    background: none;
    color: var(--text);
    border-left: 3px solid #000;
  }
  .paper__callout p { color: var(--text); }
  .paper__callout strong { color: var(--text); }
  .paper h2 { page-break-after: avoid; }
  .paper h3 { page-break-after: avoid; }
  .paper p { orphans: 3; widows: 3; }
}

/* 15. Reference page — framework definitions --------------------------------
   Scoped under .ref. Everything else on competency-architecture.html reuses
   existing section, shell, why__grid, fact and route components. */

.ref__def {
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--navy);
  border-left: 4px solid var(--teal);
  padding: 4px 0 4px 22px;
  margin: 0 0 26px;
  max-width: 760px;
}

.section--navy .ref__def,
.section--platform .ref__def {
  color: var(--on-dark);
  border-left-color: var(--teal);
}

.ref__meta {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.section--navy .ref__meta,
.section--platform .ref__meta { color: var(--on-dark-dim); }

.ref__domains {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.ref__domains li {
  border-top: 2px solid var(--rule-light);
  padding-top: 12px;
  font-size: 16px;
  line-height: 1.55;
}

.section--platform .ref__domains li { border-top-color: var(--navy-line); }

.ref__domains b {
  display: block;
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.section--platform .ref__domains b { color: var(--teal); }

.ref__source {
  border-top: 2px solid var(--rule-light);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
}

.ref__source a { font-weight: 600; }

@media (max-width: 700px) {
  .ref__domains { grid-template-columns: 1fr; gap: 14px; }
  .ref__def { font-size: 19px; padding-left: 16px; }
}

/* 16. Links on dark sections ------------------------------------------------
   Global a{color:var(--navy)} is correct on light backgrounds but renders
   invisible on section--platform and section--navy. Scoped override only. */

.section--platform a,
.section--navy a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--platform a:hover,
.section--navy a:hover { color: var(--on-dark); }
