/* ==========================================================================
   Dancan Odhiambo, Public Health Data Analyst
   Design system + site-wide styles

   Fonts are loaded in the HTML head with preconnect, not with @import here.
   @import blocks rendering until the font CSS downloads, so moving it to the
   head lets the stylesheet and the fonts download in parallel.
   ========================================================================== */

:root {
  /* Color tokens, derived from one accent: deep teal */
  --ink: #12232A;
  --accent: #0F6B72;
  --accent-deep: #0A4A50;
  --tint: #E3EFEE;
  --soft-tint: #F6FAFA;
  --line: #D7E3E2;
  --white: #FFFFFF;
  --muted: #5B6B6D;

  /* Type */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1120px;
  --gutter: 24px;
  --section-space: 80px;
  --radius: 10px;
  --header-h: 76px;

  /* Motion */
  --ease: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--ink); }

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0; color: var(--muted); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
section { padding: var(--section-space) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 1.05rem; }
.section-head--tight { margin-bottom: 28px; }

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

/* ---------- Focus & accessibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-deep);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-align: center;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-deep); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--accent-deep);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent-deep); background: var(--soft-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  z-index: 2;
  /* inline-flex only matters once js/assets.js inserts a .logo-mark
     image before the text for a Published site_logo asset; with no
     image present (the default), a single text-node child renders
     identically to plain inline, so this changes nothing visually
     until an asset actually exists. */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent-deep); }
.logo-mark {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a[aria-current="page"] { color: var(--accent-deep); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent-deep);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
  z-index: 2;
}
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), transform var(--ease), visibility 0.2s;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1.1rem; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { order: 99; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 var(--section-space); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-greeting {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 22px; }
.hero-lede {
  font-size: 1.1rem;
  max-width: 52ch;
  line-height: 1.7;
}
.hero-credibility {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--tint);
  font-size: 0.95rem;
  max-width: 54ch;
  color: var(--muted);
}
.hero-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-creds li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--tint);
  padding: 5px 12px;
  border-radius: 20px;
}

.hero-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--tint);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  text-align: center;
  color: var(--accent-deep);
  padding: 24px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.photo-placeholder strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo-frame { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ---------- Numbered service grid ---------- */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.numbered-item {
  background: var(--white);
  padding: 32px;
  transition: background var(--ease);
}
.numbered-item:hover { background: var(--soft-tint); }
.numbered-item .num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
.numbered-item h3 { margin-bottom: 8px; }
.numbered-item p { font-size: 0.95rem; }

@media (max-width: 880px) {
  .numbered-grid { grid-template-columns: 1fr; }
  .numbered-item { padding: 26px 22px; }
}

/* ---------- Section footer link ---------- */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }
.section-link--flush { margin-top: 0; }

/* ---------- Experience feature cards ---------- */
.experience-feature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.experience-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
  transition: border-color var(--ease), background var(--ease);
}
.experience-card:hover { background: var(--soft-tint); }
.experience-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.experience-meta span { color: var(--line); margin: 0 4px; }
.experience-card h3 { margin-bottom: 4px; }
.experience-org {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.experience-impact { font-size: 0.95rem; }
.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.experience-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 20px;
}
.experience-earlier {
  margin-top: 26px;
  font-size: 0.92rem;
  padding-left: 18px;
  border-left: 3px solid var(--line);
}

@media (max-width: 880px) {
  .experience-feature { grid-template-columns: 1fr; }
  .experience-card { padding: 26px 22px; }
}

/* ---------- Section: tinted background variant ---------- */
.section-tint { background: var(--soft-tint); }

/* ---------- Project showcase ---------- */
.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), transform var(--ease);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.project-card .num {
  font-family: var(--font-heading);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.project-card .tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
}
.project-card h3 { margin-bottom: 18px; }

.project-detail { margin: 0; }
.project-detail dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 4px;
}
.project-detail dd {
  margin: 0 0 16px 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.project-detail dd:last-child { margin-bottom: 0; }
.project-detail dd em {
  font-style: normal;
  color: var(--accent-deep);
  font-weight: 600;
}
.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tools span {
  font-size: 0.78rem;
  color: var(--accent-deep);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

@media (max-width: 880px) {
  .project-showcase { grid-template-columns: 1fr; }
  .project-card { padding: 26px 22px; }
  .project-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .project-card .tag { text-align: left; }
}

/* ---------- Organizations band ---------- */
.org-band {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  padding-top: 8px;
}
.org-band li {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Two column teaser (training + resources) ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.teaser-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.teaser-card .eyebrow { margin-bottom: 16px; }
.teaser-card h3 { margin-bottom: 10px; }
.teaser-card p { margin-bottom: 20px; }
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  width: 100%;
}
.mini-list li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 880px) {.nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), transform var(--ease), visibility 0.2s;
    overflow-y: auto;
    z-index: 101;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--ink);
    visibility: visible;
    opacity: 1;
  }

  .nav-links .nav-cta {
    color: var(--white) !important;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 102;
  }

  .nav-cta {
    order: 99;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-details h3,
.contact-form-wrap h3 { margin-bottom: 22px; }
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.contact-list a,
.contact-list span:not(.contact-label) {
  font-size: 0.98rem;
  color: var(--ink);
  transition: color var(--ease);
  word-break: break-word;
}
.contact-list a:hover { color: var(--accent); }

.contact-form-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--white);
}
.optional { font-weight: 400; color: var(--muted); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 26px 22px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; display: block; }
.footer-brand .logo span { color: #7FD1CE; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); max-width: 36ch; font-size: 0.94rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reveal on scroll ----------
   Gated behind .js on <html> so that if JavaScript fails or is blocked,
   content stays visible instead of being stuck at opacity 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form-field input.has-error,
.form-field select.has-error,
.form-field textarea.has-error { border-color: #9C3B2E; }
.form-field textarea { min-height: 130px; resize: vertical; }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.83rem;
  color: #9C3B2E;
}
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: var(--tint); color: var(--accent-deep); }
.form-status.error { background: #FBE9E7; color: #9C3B2E; }
.form-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .btn-row, .contact-form-wrap, .site-footer { display: none; }
  body { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Inner page components
   Added for the About, Experience, Projects, Services, Resources, Training
   and Contact pages. Nothing above this line was changed, so the approved
   homepage renders exactly as before.
   ========================================================================== */

.wrap-narrow { max-width: 760px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--soft-tint);
}
.page-hero h1 { margin-bottom: 18px; max-width: 20ch; }
.page-lede {
  font-size: 1.08rem;
  max-width: 58ch;
  line-height: 1.7;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { font-size: 0.82rem; color: var(--muted); }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.breadcrumb a { color: var(--accent-deep); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { font-weight: 600; color: var(--ink); }

/* ---------- Placeholder markers ---------- */
.placeholder-block {
  border: 1px dashed var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--soft-tint);
  padding: 24px 26px;
}
.placeholder-block--inline { padding: 16px 18px; }
.placeholder-block p { font-size: 0.95rem; }
.placeholder-block strong { color: var(--ink); }
.placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  background: var(--tint);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.inline-placeholder {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}
.note {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

/* ---------- Timeline (experience) ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
}
.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.timeline-item h3 { margin-bottom: 4px; }
.timeline-org {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.timeline-org span { color: var(--line); }
.timeline-desc { font-size: 0.98rem; max-width: 62ch; }
.timeline-block { margin-top: 22px; }
.timeline-block h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.bullet-list { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.bullet-list li {
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 20px;
}

@media (max-width: 880px) {
  .timeline { padding-left: 22px; gap: 44px; }
  .timeline-item::before { left: -28px; }
}

/* ---------- Skills (about) ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill-group {
  background: var(--white);
  padding: 28px;
  transition: background var(--ease);
}
.skill-group:hover { background: var(--soft-tint); }
.skill-group h3 { font-size: 1.08rem; margin-bottom: 8px; }
.skill-group p { font-size: 0.93rem; }

.tool-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-list li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--tint);
  padding: 8px 16px;
  border-radius: 20px;
}

@media (max-width: 1000px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) {
  .skill-grid { grid-template-columns: 1fr; }
  .skill-group { padding: 24px 22px; }
}

/* ---------- Projects, single column full detail ---------- */
.project-showcase--single { grid-template-columns: 1fr; gap: 24px; }
.project-card--full { padding: 36px; }
.project-card--full h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.project-meta {
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 881px) {
  .project-card--full .project-detail {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 28px;
    row-gap: 14px;
    align-items: baseline;
  }
  .project-card--full .project-detail dt { margin-bottom: 0; min-width: 96px; }
  .project-card--full .project-detail dd { margin-bottom: 0; }
}
@media (max-width: 880px) { .project-card--full { padding: 26px 22px; } }

/* ---------- Project media (Link default, Visual only when explicit) ---------- */
.project-media {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.project-media-visuals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.project-media-visuals img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
}
.project-media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.project-media-links .btn { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- Services page ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card .num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card > p { font-size: 0.95rem; margin-bottom: 20px; }
.service-meta { margin: 0 0 22px 0; width: 100%; }
.service-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 4px;
}
.service-meta dd { margin: 0 0 14px 0; font-size: 0.92rem; color: var(--muted); }
.service-meta dd:last-child { margin-bottom: 0; }
.service-card .section-link { margin-top: auto; }

@media (max-width: 880px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px; }
}

/* ---------- Resources page ----------
   resources.html is populated at runtime by js/resources.js from the
   Resources Google Sheet (via the uploader's public read endpoint), not
   written by hand. One .resource-category section per category, stacked
   full width; each holds its own .resource-grid of individual
   .resource-card items, or an .inline-placeholder when that category
   has nothing Published yet. */
.resource-category { margin-bottom: 56px; }
.resource-category:last-child { margin-bottom: 0; }
.resource-category > h2 { margin-bottom: 8px; }
.resource-category > p { font-size: 0.95rem; margin-bottom: 24px; max-width: 68ch; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease);
}
.resource-card:hover { border-color: var(--accent); }
.resource-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.resource-card > p { font-size: 0.92rem; margin-bottom: 14px; }
.resource-card .btn { margin-top: auto; align-self: flex-start; }

.resource-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--tint);
  margin: -24px -24px 16px -24px;
}
.resource-thumb img { width: 100%; height: 100%; object-fit: cover; }

.resource-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.resource-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.resource-card .inline-placeholder { font-size: 0.88rem; }

@media (max-width: 880px) {
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { padding: 20px; }
  .resource-thumb { margin: -20px -20px 14px -20px; }
}

/* ---------- Training page ---------- */
.numbered-item .inline-placeholder {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  transition: background var(--ease);
}
.cert-card:hover { background: var(--soft-tint); }
.cert-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.cert-issuer { font-size: 0.92rem; margin-bottom: 10px; }
.cert-card .inline-placeholder { font-size: 0.85rem; }

@media (max-width: 1000px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---------- Closing call to action band ---------- */
.cta-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.65); max-width: 52ch; }
.cta-band .btn-row { margin-top: 0; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: #12838B; }
.cta-band .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 880px) {
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ==========================================================================
   Admin resource uploader
   Appended only, for admin/upload.html. Not linked from public navigation,
   not part of the approved public page set. Reuses existing tokens,
   .form-field, .btn, .form-status, .placeholder-block and .note classes
   defined above, so this block only adds the few things those don't cover.
   ========================================================================== */

.mode-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  margin: 0 0 20px 0;
}
.mode-toggle legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0 4px;
}
.mode-option {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 10px;
  cursor: pointer;
}
.mode-option input { margin-top: 2px; }
.field-hint--inline {
  display: inline;
  margin: 0;
  font-weight: 400;
  color: var(--muted);
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
  background: var(--soft-tint);
}
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.admin-card h1 { margin-bottom: 14px; }
.admin-lede { margin-bottom: 28px; font-size: 0.98rem; }
.admin-config-note { margin-bottom: 28px; }
.admin-back-link { margin-top: 28px; }
.admin-back-link a { color: var(--accent-deep); font-weight: 600; }
.admin-back-link a:hover { color: var(--accent); }

.field-hint {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Indeterminate progress bar: a simple sliding block, no percentage
   tracking, consistent with the restrained motion used site-wide. */
.upload-progress {
  margin-top: 18px;
  height: 6px;
  border-radius: 4px;
  background: var(--tint);
  overflow: hidden;
}
.upload-progress-bar {
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  animation: upload-slide 1.1s ease-in-out infinite;
}
@keyframes upload-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .upload-progress-bar { animation: none; width: 100%; }
}

.upload-result {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft-tint);
}
.upload-result-list { margin: 0; }
.upload-result-list dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-top: 12px;
}
.upload-result-list dt:first-child { margin-top: 0; }
.upload-result-list dd {
  margin: 2px 0 0 0;
  font-size: 0.92rem;
  color: var(--ink);
  word-break: break-all;
}

@media (max-width: 880px) {
  .admin-shell { padding: 28px 0; }
  .admin-card { padding: 26px 22px; }
}
