/* ==========================================================================
   JurisEd — stylesheet
   --------------------------------------------------------------------------
   Palette sampled from the app splash screen.
   Type: Lora (display) + Inter (body/utility), per the build spec.
   Visual signature: the engraved certificate plate — hairline guilloche,
   double rule, bronze corner ticks. It appears in every image slot and its
   corner-tick motif is echoed in section headings and card accents.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* colour */
  --teal:        #018376;
  --teal-deep:   #014f47;
  --teal-light:  #1fb1a3;
  --teal-wash:   #ecf2f2;
  --gold:        #8a5a0b;
  --gold-light:  #b8912f;
  --ivory:       #f2f1ee;
  --paper:       #f8f9fa;
  --white:       #ffffff;
  --ink:         #10231f;
  --gray:        #5c6b68;
  --gray-soft:   #8a9694;
  --rule:        #dfe5e3;

  /* type */
  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* scale */
  --step--1: 13.5px;
  --step-0:  16px;
  --step-1:  clamp(19px, 1.4vw, 21px);
  --step-2:  clamp(24px, 2.2vw, 30px);
  --step-3:  clamp(30px, 3.2vw, 42px);
  --step-4:  clamp(38px, 5vw, 60px);

  /* layout */
  --wrap:    1180px;
  --gutter:  clamp(20px, 4vw, 40px);
  --radius:  10px;
  --radius-lg: 16px;

  /* depth */
  --shadow-sm: 0 1px 2px rgba(1, 79, 71, .05), 0 2px 8px rgba(1, 79, 71, .04);
  --shadow-md: 0 2px 6px rgba(1, 79, 71, .06), 0 12px 32px rgba(1, 79, 71, .07);
  --shadow-lg: 0 4px 12px rgba(1, 79, 71, .08), 0 28px 60px rgba(1, 79, 71, .10);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .55em;
}

h1 { font-size: var(--step-4); letter-spacing: -0.028em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
h4 { font-size: var(--step-0); letter-spacing: 0; }

p { margin: 0 0 1.1em; color: var(--gray); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

ul { margin: 0; padding: 0; list-style: none; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 8vw, 96px) 0; }

.section-center {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.section-center p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   3. IMAGE PLATES
   The engraved artwork. .art is the frame; .art img fills it.
   -------------------------------------------------------------------------- */
.art {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-wash), var(--ivory));
  color: var(--teal);
}

.art img,
.art > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legacy support: any .art still holding a bare icon centres it. */
.art > svg:not(:only-child),
.art:not(:has(img)) > svg {
  margin: auto;
  opacity: .5;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .005em;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}

.btn svg { flex: none; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-wash); }

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 249, 250, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.logo {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.logo:hover { color: var(--teal-deep); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: auto;
}

.main-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray);
  padding: 6px 0;
}
.main-nav a:hover { color: var(--teal-deep); }

/* Active nav marked with a bronze rule, matching the plate corner ticks. */
.main-nav a.active { color: var(--ink); font-weight: 600; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 40px; height: 40px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. HOME — HERO
   -------------------------------------------------------------------------- */
.hero-home {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 460px at 12% 0%, var(--teal-wash), transparent 62%),
    radial-gradient(700px 420px at 92% 18%, #f4f1e9, transparent 60%);
}

.hero-home .wrap {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-home h1 { margin-bottom: 20px; }

.hero-home > .wrap > div:first-child > p {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 34ch;
  margin-bottom: 30px;
}

/* Phone frame: a hardware bezel holding the real splash screen. */
.phone-frame {
  justify-self: center;
  width: min(300px, 78vw);
  padding: 11px;
  background: linear-gradient(160deg, #ffffff, #e8eceb);
  border: 1px solid var(--rule);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 310 / 676;
  border-radius: 30px;
  background: var(--paper);
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   7. HOME — SPLIT, FEATURES, PROFICIENCY
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split p { font-size: 16.5px; margin-bottom: 0; }
.split .art { aspect-ratio: 5 / 4; }

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.feature-card,
.mini-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.feature-card:hover,
.mini-card:hover {
  border-color: #cbd8d5;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card p, .mini-card p, .info-card p {
  font-size: 14.8px;
  margin-bottom: 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  color: var(--teal);
  background: var(--teal-wash);
  border-radius: 11px;
}

.mini-card .feature-icon { width: 40px; height: 40px; margin-bottom: 15px; }

.proficiency { background: var(--ivory); }

/* --------------------------------------------------------------------------
   8. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  padding: clamp(56px, 8vw, 92px) 0;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(31, 177, 163, .28), transparent 70%),
    linear-gradient(150deg, var(--teal-deep), #013b35);
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: rgba(255, 255, 255, .78);
  max-width: 62ch;
  margin: 0 auto 28px;
  font-size: 15.8px;
}
.cta-band .btn-primary { background: var(--white); color: var(--teal-deep); }
.cta-band .btn-primary:hover { background: var(--ivory); color: var(--teal-deep); }

/* --------------------------------------------------------------------------
   9. ABOUT
   -------------------------------------------------------------------------- */
.hero-about .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero-about p { font-size: var(--step-1); line-height: 1.55; margin-bottom: 0; }

.framed-art {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.framed-art .art { border-radius: 7px; aspect-ratio: 4 / 3; }

.problem-solution {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ps-grid { display: grid; grid-template-columns: 1fr 1fr; }

.ps-col { padding: clamp(26px, 3.4vw, 42px); }
.ps-col h2 { font-size: var(--step-2); }
.ps-col p { font-size: 15px; }

/* The two columns are an argument, so they're divided by a rule and
   distinguished by the accent alone, not by heavy tinted panels. */
.ps-col.problem { border-right: 1px solid var(--rule); background: var(--paper); }
.ps-col.solution { background: var(--white); }

.ps-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
}
.problem .ps-icon { color: var(--gold); background: #f6f0e2; }
.solution .ps-icon { color: var(--teal); background: var(--teal-wash); }

.ps-list { display: grid; gap: 11px; margin-top: 22px; }
.ps-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.problem .ps-list svg { color: var(--gold); flex: none; }
.solution .ps-list svg { color: var(--teal); flex: none; }

.mv-section { background: var(--ivory); }
.mv-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 24px);
}

.mv-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 30px;
}
.mv-card p {
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin: 14px 0 0;
}

.mv-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 4px 10px;
  border-radius: 4px;
}
.mv-tag.mission { color: var(--teal-deep); background: var(--teal-wash); }
.mv-tag.vision  { color: var(--gold); background: #f6f0e2; }
.mv-card:has(.vision) { border-left-color: var(--gold); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

/* One person shouldn't sit stranded in a four-column grid. The solo variant
   centres a single card and lets it breathe at a readable width. */
.team-grid--solo {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}
.team-grid--solo .team-card { padding: 32px 28px 30px; }
.team-grid--solo .team-card .art { width: 124px; }
.team-grid--solo .team-card h3 { font-size: 20px; }
/* No bio paragraph follows the role, so drop its trailing margin. */
.team-grid--solo .team-role:last-child { margin-bottom: 0; }

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px 20px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.team-card .art {
  width: 104px;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 50%;
}
.team-card h3 { font-size: 17.5px; margin-bottom: 2px; }
.team-card p { font-size: 13.6px; margin-bottom: 0; }

.team-role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   10. CAREER SKILLS — LISTING
   -------------------------------------------------------------------------- */
.cs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(40px, 5vw, 64px) 0 26px;
  border-bottom: 1px solid var(--rule);
}
.cs-header h1 { font-size: var(--step-3); margin-bottom: 8px; }
.cs-header p { margin-bottom: 0; max-width: 52ch; font-size: 15.5px; }
.cs-header .btn { flex: none; }

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 18px;
}
.cat-tabs button {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 15px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: all .16s ease;
}
.cat-tabs button:hover { border-color: var(--teal-light); color: var(--teal-deep); }
.cat-tabs button.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 26px;
}

.pill-group { display: flex; gap: 4px; padding: 4px; background: var(--ivory); border-radius: 999px; }
.pill-group button {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  padding: 6px 15px;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all .16s ease;
}
.pill-group button.active {
  color: var(--teal-deep);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.result-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--gray-soft);
}

.featured-article {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(22px, 3.5vw, 44px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px);
  margin-bottom: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.featured-article .art { aspect-ratio: 4 / 3; }
.featured-article h2 { font-size: var(--step-2); margin: 12px 0 12px; }
.featured-article h2 a { color: var(--ink); }
.featured-article h2 a:hover { color: var(--teal); }
.featured-article p { font-size: 15.2px; }

.tag, .tag-sm {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-wash);
  padding: 5px 11px;
  border-radius: 5px;
}
.tag-sm { font-size: 10.5px; padding: 4px 9px; }

.byline, .article-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.2px;
  color: var(--gray-soft);
}
.byline b { color: var(--ink); font-weight: 600; margin-right: 4px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 16px 16px 20px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.article-card:hover {
  border-color: #cbd8d5;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.article-card .art { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.article-card h3 { margin: 11px 0 8px; font-size: 18px; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--teal); }
.article-card p { font-size: 14.2px; flex: 1; }
.article-card .tag { align-self: flex-start; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: clamp(36px, 5vw, 60px) 0 clamp(48px, 6vw, 80px);
}
.pagination button {
  min-width: 38px; height: 38px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  transition: all .16s ease;
}
.pagination button:hover { border-color: var(--teal-light); color: var(--teal-deep); }
.pagination button.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}
.pagination span { color: var(--gray-soft); padding: 0 3px; }

/* --------------------------------------------------------------------------
   11. ARTICLE DETAIL
   -------------------------------------------------------------------------- */
.article-hero {
  max-width: 760px;
  padding: clamp(40px, 5vw, 68px) var(--gutter) 26px;
  text-align: center;
}
.article-hero h1 { font-size: var(--step-3); margin: 16px 0 18px; }
.article-byline { justify-content: center; font-size: 13.8px; }

.avatar-dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  color: var(--teal);
  background: var(--teal-wash);
  border-radius: 50%;
}

.article-hero-img { max-width: 940px; }
.article-hero-img .art {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
}

.article-body {
  max-width: 700px;
  margin: clamp(34px, 4.5vw, 56px) auto 0;
}
.article-body h2 {
  font-size: var(--step-2);
  margin: 1.7em 0 .6em;
  padding-top: .5em;
  border-top: 1px solid var(--rule);
}
.article-body h3 { font-size: var(--step-1); margin: 1.5em 0 .5em; }
.article-body p { font-size: 17px; line-height: 1.78; color: #33443f; }

/* The lede is set in the display face — it's the argument in miniature. */
.article-body .lede {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--ink);
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.callout-list {
  display: grid;
  gap: 13px;
  margin: 26px 0 30px;
  padding: 24px;
  background: var(--ivory);
  border-radius: var(--radius);
}
.callout-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #33443f;
}
.callout-list svg { flex: none; margin-top: 3px; color: var(--teal); }

.author-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.author-card .art {
  flex: none;
  width: 66px; height: 66px;
  border-radius: 50%;
}
.author-card h4 { margin-bottom: 3px; font-size: 16.5px; }
.author-card p { margin-bottom: 0; font-size: 14px; }

.related-section {
  max-width: 940px;
  margin: clamp(50px, 7vw, 86px) auto;
  padding-top: clamp(34px, 4vw, 50px);
  border-top: 1px solid var(--rule);
}
.related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.related-head h2 { font-size: var(--step-2); margin: 0; }

.browse-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
.browse-all:hover svg { transform: translateX(3px); }
.browse-all svg { transition: transform .18s ease; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.related-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.related-card:hover {
  border-color: #cbd8d5;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-card h3 { margin: 12px 0 8px; font-size: 17px; }
.related-card p { font-size: 13.8px; margin-bottom: 16px; }

.credits {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold);
  padding-top: 13px;
  border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   12. SUBMIT ARTICLE
   -------------------------------------------------------------------------- */
.submit-hero {
  max-width: 620px;
  margin: 0 auto clamp(30px, 4vw, 46px);
  text-align: center;
}
.submit-hero h1 { font-size: var(--step-3); }
.submit-hero p { font-size: 16.5px; margin-bottom: 0; }

.form-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}

.field input,
.field select {
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder { color: var(--gray-soft); }
.field input:focus,
.field select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(31, 177, 163, .15);
}

.editor {
  margin-bottom: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.editor:focus-within { border-color: var(--teal-light); }

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 9px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.editor-toolbar button {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--gray);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all .14s ease;
}
.editor-toolbar button:hover { color: var(--teal-deep); background: var(--teal-wash); }
.editor-toolbar .sep {
  width: 1px; height: 18px;
  margin: 0 5px;
  background: var(--rule);
}

.editor textarea {
  display: block;
  width: 100%;
  min-height: 260px;
  padding: 16px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  resize: vertical;
}
.editor textarea:focus { outline: none; }
.editor textarea::placeholder { color: var(--gray-soft); }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.form-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.4px;
  color: var(--gray-soft);
}
.form-note svg { flex: none; color: var(--teal); }

.submit-btn { letter-spacing: .08em; font-size: 13px; padding: 13px 26px; }
.submit-btn:disabled { opacity: .75; cursor: default; transform: none; }

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 24px auto 0;
}
.info-card svg { color: var(--teal); margin-bottom: 13px; }
.info-card h4 { margin-bottom: 6px; font-size: 15.5px; }

/* --- validation, status and empty states --------------------------------- */

/* Errors sit directly under the control they belong to and name the fix,
   rather than reporting that something is generically invalid. */
.field-error {
  display: block;
  margin-top: -1px;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.4;
  color: #a4302a;
}
.editor + .field-error { display: block; margin: -14px 0 20px; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #d38c87;
  background: #fdf7f6;
}

.form-status {
  margin: 0 0 18px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
}
.form-status[data-tone="ok"] {
  color: var(--teal-deep);
  background: var(--teal-wash);
  border: 1px solid #bcdcd8;
}
.form-status[data-tone="error"] {
  color: #8a2820;
  background: #fdf3f2;
  border: 1px solid #eccbc8;
}

/* An empty filter result is an invitation to act, not a dead end. */
.no-results {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 40px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--gray);
  background: var(--ivory);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  color: rgba(255, 255, 255, .72);
  background: linear-gradient(160deg, #012e2a, #011f1c);
}
.site-footer .logo { color: var(--white); display: inline-block; margin-bottom: 12px; }
.site-footer p { color: rgba(255, 255, 255, .62); font-size: 14px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr .7fr;
  gap: clamp(24px, 4vw, 52px);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.footer-brand p { max-width: 34ch; margin-bottom: 0; }

.footer-col h4 {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, .66);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--white); }

.footer-contact { display: grid; gap: 13px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.6px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
}
.footer-contact svg { flex: none; margin-top: 2px; color: var(--teal-light); }
.footer-contact a { color: rgba(255, 255, 255, .66); }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  transition: all .18s ease;
}
.social-icon:hover {
  color: var(--white);
  background: rgba(31, 177, 163, .28);
  border-color: rgba(31, 177, 163, .5);
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid--solo { grid-template-columns: minmax(0, 340px); }
  .article-grid, .related-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a.active::after { display: none; }

  .hero-home .wrap,
  .hero-about .wrap,
  .split,
  .featured-article,
  .ps-grid,
  .mv-stack,
  .form-row,
  .info-cards { grid-template-columns: 1fr; }

  .hero-home > .wrap > div:first-child > p { max-width: none; }
  .phone-frame { grid-row: 1; width: min(252px, 66vw); margin-bottom: 12px; }

  .ps-col.problem { border-right: 0; border-bottom: 1px solid var(--rule); }

  .card-grid-2 { grid-template-columns: 1fr; }

  .cs-header { flex-direction: column; align-items: flex-start; }

  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .submit-btn { justify-content: center; }
}

@media (max-width: 600px) {
  .article-grid, .related-grid, .card-grid-3,
  .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .team-grid--solo { grid-template-columns: minmax(0, 340px); }

  .filter-row { flex-direction: column; align-items: flex-start; }
  .article-hero-img .art { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   15. MOTION / PRINT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .cta-band, .site-footer, .pagination { display: none; }
  body { background: #fff; }
  .article-body { max-width: none; }
}
