/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --navy:      #0B1F66;
  --navy-dark: #071244;
  --navy-mid:  #142e8c;
  --link:      #0075F2;
  --blue:      #0075F2;
  --accent:    #0075F2;
  --golden:    #FDB322;
  --white:     #ffffff;
  --bg:        #E5E7EB;
  --bg-warm:   #dcdfe6;
  --text:      #1e2030;
  --text-mid:  #4a4e6a;
  --text-light:#5c6078;
  --border:    #d8daea;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(7,10,97,.07);
  --shadow-lg: 0 6px 24px rgba(7,10,97,.14);
  --max:       1400px;
  --font:      "Sofia Pro", system-ui, sans-serif;

  /* Category colors — Deep Professional */
  --cat-community:  #2563EB;  /* locked */
  --cat-advocacy:   #7C3AED;  /* locked */
  --cat-programs:   #047857;  /* locked */
  --cat-technology: #4338CA;
  --cat-people:     #B45309;
  --cat-events:     #BE123C;
  --cat-updates:    #0E7490;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
button { font-family: var(--font); border: none; cursor: pointer; background: none; }

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .556rem 1.333rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(7,10,97,.05);
}
.breadcrumb-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: .333rem;
  font-size: .722rem;
  color: var(--text-light);
}
.breadcrumb-trail a { color: var(--text-mid); font-weight: 600; }
.breadcrumb-trail a:hover { color: var(--navy); text-decoration: none; }
.breadcrumb-trail .sep { opacity: .4; }
.breadcrumb-trail .current { color: var(--text-light); }
.breadcrumb-actions { display: flex; gap: 1rem; }
.bc-link { font-size: .7rem; font-weight: 600; color: var(--text-light); }
.bc-link:hover { color: var(--navy); text-decoration: none; }

/* ─── Home header ─────────────────────────────────────────────────────────── */
.home-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .556rem 1.333rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(7,10,97,.05);
}
.home-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .889rem;
}
.home-title {
  font-size: .889rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.home-title-light {
  font-weight: 400;
  color: var(--text-mid);
}
.home-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .111rem .667rem;
}
.home-nav a {
  font-size: .667rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: color .12s;
}
.home-nav a:hover { color: var(--navy); text-decoration: none; }
.home-nav-all { color: var(--navy) !important; font-weight: 700; }
.home-nav-sep {
  color: var(--border);
  font-size: .667rem;
  user-select: none;
}
.home-nav-ext {
  font-size: .667rem;
  font-weight: 600;
  color: var(--text-light) !important;
}
.home-nav-ext:hover { color: var(--navy) !important; }

/* ─── Top bar ─────────────────────────────────────────────────────────────── */
.home-topbar {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.333rem 1.333rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .667rem 0;
  border-bottom: 2px solid var(--navy);
  gap: 1rem;
}
.topbar-brand { display: flex; align-items: center; gap: .667rem; flex-shrink: 0; }
.topbar-logo {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.topbar-logo:hover { text-decoration: none; }
.topbar-center { display: flex; align-items: center; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: .667rem; flex-shrink: 0; }
.topbar-date { font-size: .778rem; font-weight: 600; color: var(--text-mid); white-space: nowrap; }
.topbar-date-short { display: none; }
.topbar-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.topbar-search-input {
  font-family: var(--font);
  font-size: .75rem;
  border: none;
  outline: none;
  padding: .333rem .556rem;
  width: 140px;
  background: transparent;
  color: var(--text);
}
.topbar-search-input::placeholder { color: var(--text-light); }
.topbar-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--navy);
  color: var(--white);
  padding: .333rem .444rem;
  cursor: pointer;
}
.topbar-search-btn:hover { opacity: .85; }
.topbar-search-toggle { display: none; }
.topbar-search-submit { display: flex; }
.topbar-weather {
  display: inline-flex;
  align-items: center;
  gap: .333rem;
}
.weather-temp {
  font-size: .889rem;
  font-weight: 800;
  color: var(--navy);
}
.weather-desc {
  font-size: .722rem;
  font-weight: 600;
  color: var(--text-light);
}
.topbar-rss {
  font-size: .694rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: .222rem .556rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: .02em;
}
.topbar-rss:hover { opacity: .85; text-decoration: none; }

/* ─── Category nav ────────────────────────────────────────────────────────── */
.home-catnav {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.333rem;
}
.catnav-inner {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav-link {
  font-size: .778rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: .667rem 1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.catnav-link:hover {
  color: var(--navy);
  text-decoration: none;
}
.catnav-active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ─── Ticker ──────────────────────────────────────────────────────────────── */
.home-ticker {
  max-width: 960px;
  margin: 0 auto;
  padding: .667rem 1.333rem 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ticker-label {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: .722rem;
  font-weight: 800;
  color: var(--white);
  background: var(--navy);
  padding: .444rem .778rem;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  display: flex;
  align-items: center;
  position: relative;
}
.ticker-scroll {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 120s linear infinite;
}
.ticker-scroll:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .667rem;
  padding-right: .667rem;
}
.ticker-item a {
  font-size: .778rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.ticker-item a:hover { text-decoration: underline; }
.ticker-sep {
  color: var(--text-light);
  font-size: .667rem;
}
@keyframes ticker-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Latest news row ─────────────────────────────────────────────────────── */
.home-latest-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.333rem 0;
}
.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .667rem;
}
.latest-label {
  font-family: var(--font);
  font-size: .778rem;
  font-weight: 800;
  color: var(--white);
  background: var(--accent);
  padding: .222rem .667rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.latest-viewall {
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.latest-viewall:hover { text-decoration: underline; }
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.latest-card {
  display: flex;
  gap: .667rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s;
}
.latest-card:hover { transform: translateY(-2px); text-decoration: none; }
.latest-card-img {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}
.latest-card-body { flex: 1; min-width: 0; }
.latest-card-title {
  font-family: var(--font);
  font-size: .833rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .222rem;
}
.latest-card-date {
  font-size: .694rem;
  color: var(--text-light);
}
@media (max-width: 640px) {
  .latest-grid { grid-template-columns: 1fr; }
  .topbar-date-long { display: none; }
  .topbar-date-short { display: inline; }
  .topbar-search-input { display: none; }
  .topbar-search { border: none; background: transparent; }
  .topbar-search-toggle { display: flex; }
  .topbar-search-submit { display: none; }
  .topbar-search.open { border: 1px solid var(--border); background: var(--white); }
  .topbar-search.open .topbar-search-input { display: block; width: 100px; }
  .topbar-search.open .topbar-search-toggle { display: none; }
  .topbar-search.open .topbar-search-submit { display: flex; }
}

/* ─── Editorial gallery ───────────────────────────────────────────────────── */
.home-editorial-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.333rem 1.333rem 0;
}
.editorial-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.editorial-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editorial-slide {
  display: none;
  position: relative;
  width: 100%;
  min-height: 340px;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--white);
}
.editorial-slide.active {
  display: block;
  animation: editorialFade .5s ease;
}
@keyframes editorialFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.editorial-slide:hover { text-decoration: none; }
.editorial-overlay {
  position: relative;
  z-index: 1;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(7,10,97,.85) 0%, rgba(7,10,97,.35) 45%, rgba(7,10,97,.15) 100%);
  padding: 2rem 2.222rem;
}
.editorial-inner {
  width: 100%;
}
.editorial-title {
  font-size: 1.889rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 560px;
  margin-bottom: .556rem;
}
.editorial-desc {
  font-size: .833rem;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: .556rem;
}
.editorial-meta {
  font-size: .744rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

/* Dots */
.editorial-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.editorial-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.editorial-dot:hover { background: rgba(255,255,255,.6); }
.editorial-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ─── Section label ──────────────────────────────────────────────────────── */
.section-label {
  font-size: 1.111rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.222rem;
}

/* ─── Featured mosaic ─────────────────────────────────────────────────────── */
.home-featured-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.333rem 0;
}
.featured-mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1rem;
}
.mosaic-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background: var(--navy);
  background-size: cover;
  background-position: center;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.mosaic-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.mosaic-main.has-image .mosaic-overlay {
  background: linear-gradient(to top, rgba(7,10,97,.85) 0%, rgba(7,10,97,.3) 50%, transparent 100%);
}
.mosaic-overlay {
  padding: 1.444rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}
.mosaic-cat {
  font-size: .556rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--golden);
  margin-bottom: .333rem;
}
.mosaic-title {
  font-weight: 700;
  line-height: 1.25;
}
.mosaic-title-lg {
  font-size: 1.389rem;
  font-weight: 800;
  margin-bottom: .444rem;
}
.mosaic-desc {
  font-size: .778rem;
  line-height: 1.5;
  color: rgba(255,255,255,.65);
  margin-bottom: .444rem;
}
.mosaic-meta {
  font-size: .694rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
}

/* Mosaic side (right stacked white cards) */
.mosaic-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mosaic-side-item {
  flex: 1;
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.mosaic-side-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.mosaic-side-inner {
  padding: 1.222rem 1.333rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.mosaic-side-cat {
  font-size: .556rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .333rem;
}
.mosaic-side-cat[data-cat="community"]  { color: var(--cat-community); }
.mosaic-side-cat[data-cat="advocacy"]   { color: var(--cat-advocacy); }
.mosaic-side-cat[data-cat="programs"]   { color: var(--cat-programs); }
.mosaic-side-cat[data-cat="technology"] { color: var(--cat-technology); }
.mosaic-side-cat[data-cat="people"]     { color: var(--cat-people); }
.mosaic-side-cat[data-cat="events"]     { color: var(--cat-events); }
.mosaic-side-cat[data-cat="updates"]    { color: var(--cat-updates); }
.mosaic-side-title {
  font-size: .944rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .222rem;
}
.mosaic-side-date {
  font-size: .694rem;
  font-weight: 600;
  color: var(--text-light);
}

/* ─── Navy square cards ──────────────────────────────────────────────────── */
.home-squares-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.333rem 0;
}
.squares-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .889rem;
}
.square-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.square-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.square-card-inner {
  padding: 1rem;
  flex: 1;
}
.square-card-title {
  font-size: .778rem;
  font-weight: 700;
  line-height: 1.3;
}
.square-card-footer {
  padding: 0 1rem .778rem;
}
.square-card-cat {
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.square-card-cat[data-cat="community"]  { color: var(--cat-community); }
.square-card-cat[data-cat="advocacy"]   { color: var(--cat-advocacy); }
.square-card-cat[data-cat="programs"]   { color: var(--cat-programs); }
.square-card-cat[data-cat="technology"] { color: var(--cat-technology); }
.square-card-cat[data-cat="people"]     { color: var(--cat-people); }
.square-card-cat[data-cat="events"]     { color: var(--cat-events); }
.square-card-cat[data-cat="updates"]    { color: var(--cat-updates); }

/* ─── Category squares ────────────────────────────────────────────────────── */
.home-categories-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.333rem 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .667rem;
}
.cat-square {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  font-size: .667rem;
  font-weight: 700;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
  background: var(--navy);
}
.cat-square:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.cat-square[data-cat="community"]  { background: var(--cat-community); }
.cat-square[data-cat="advocacy"]   { background: var(--cat-advocacy); }
.cat-square[data-cat="programs"]   { background: var(--cat-programs); }
.cat-square[data-cat="technology"] { background: var(--cat-technology); }
.cat-square[data-cat="people"]     { background: var(--cat-people); }
.cat-square[data-cat="events"]     { background: var(--cat-events); }
.cat-square[data-cat="updates"]    { background: var(--cat-updates); }
.cat-square-all { background: var(--navy); }
.cat-square-name { letter-spacing: .02em; }

/* ─── Recent cards ────────────────────────────────────────────────────────── */
.home-recent-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.333rem 0;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.111rem;
}
.recent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.222rem 1.333rem;
  display: flex;
  flex-direction: column;
  gap: .278rem;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.recent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.recent-card-date {
  font-size: .694rem;
  color: var(--text-light);
}
.recent-card-title {
  font-size: .889rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.recent-card-desc {
  font-size: .722rem;
  color: var(--text-mid);
  line-height: 1.5;
  flex: 1;
}
.recent-card-cat {
  font-size: .556rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: .333rem;
  padding-top: .444rem;
  border-top: 1px solid var(--border);
}
.recent-card-cat[data-cat="community"]  { color: var(--cat-community); }
.recent-card-cat[data-cat="advocacy"]   { color: var(--cat-advocacy); }
.recent-card-cat[data-cat="programs"]   { color: var(--cat-programs); }
.recent-card-cat[data-cat="technology"] { color: var(--cat-technology); }
.recent-card-cat[data-cat="people"]     { color: var(--cat-people); }
.recent-card-cat[data-cat="events"]     { color: var(--cat-events); }
.recent-card-cat[data-cat="updates"]    { color: var(--cat-updates); }

/* ─── View all link ──────────────────────────────────────────────────────── */
.home-more {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.778rem 1.333rem 4rem;
}
.home-more a {
  font-size: .778rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
}
.home-more a:hover { color: var(--navy); }

/* ─── Shared post styles (category page, blog index) ────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.111rem;
}
.posts-empty-static {
  color: var(--text-light);
  font-size: .889rem;
  padding: 2rem 0;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.333rem 1.444rem;
  display: flex;
  flex-direction: column;
  gap: .444rem;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .222rem;
}
.post-category-pill {
  font-size: .578rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(196,113,59,.08);
  border-radius: 4px;
  padding: .15em .5em;
}
.post-date {
  font-size: .744rem;
  color: var(--text-light);
  white-space: nowrap;
}
.post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.post-desc {
  font-size: .833rem;
  color: var(--text-mid);
  line-height: 1.55;
  flex: 1;
}
.post-author {
  font-size: .667rem;
  color: var(--text-light);
  margin-top: .333rem;
  border-top: 1px solid var(--border);
  padding-top: .556rem;
}

/* ─── Category page ───────────────────────────────────────────────────────── */
.category-header {
  background: var(--navy);
  color: var(--white);
  padding: 2.222rem 1.333rem 2.667rem;
  position: relative;
  overflow: hidden;
}
.category-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 24px;
  background: var(--bg);
  border-radius: 50% 50% 0 0;
}
.category-header-inner { max-width: var(--max); margin: 0 auto; }
.category-eyebrow {
  font-size: .667rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .556rem;
}
.category-eyebrow a { color: rgba(255,255,255,.4); }
.category-eyebrow a:hover { color: rgba(255,255,255,.8); text-decoration: none; }
.category-header h1 {
  font-size: 1.778rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.category-desc {
  color: rgba(255,255,255,.65);
  font-size: .889rem;
  margin-top: .444rem;
  max-width: 560px;
}
.category-body {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 0 1.333rem 4rem;
}

/* ─── Post page ───────────────────────────────────────────────────────────── */
.post-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.333rem 4rem;
}
.post-main {}
.post-header {
  margin-bottom: 2rem;
}
.post-header-category {
  display: inline-block;
  font-size: .622rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .889rem;
  text-decoration: none;
}
.post-header-category:hover { color: var(--navy); text-decoration: none; }
.post-header h1 {
  font-size: 1.889rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: .667rem;
}
.post-description {
  font-size: 1.056rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.post-meta {
  font-size: .833rem;
  color: var(--text-light);
  margin-top: .778rem;
  padding-top: .778rem;
  border-top: 1px solid var(--border);
}
/* ─── Post hero image ─────────────────────────────────────────────────────── */
.post-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-body {
  font-size: 1.056rem;
  line-height: 1.85;
  color: #070A61;
}
.post-body h2, .post-body h3, .post-body h4 {
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: .556rem;
  line-height: 1.3;
}
.post-body h2 { font-size: 1.278rem; font-weight: 700; }
.post-body h3 { font-size: 1.056rem; font-weight: 700; }
.post-body p  { margin-bottom: 1rem; }
.post-body ul, .post-body ol { padding-left: 1.333rem; margin-bottom: 1rem; }
.post-body li { margin-bottom: .333rem; }
.post-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--navy); }
.post-body blockquote {
  border-left: 3px solid var(--border);
  margin: 1.333rem 0;
  padding: .556rem 1.222rem;
  color: var(--text-mid);
  font-style: italic;
}
.post-body strong { color: var(--text); }

/* ─── Post footer (related content) ──────────────────────────────────────── */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.333rem;
}
.post-footer-section {}
.post-footer-label {
  font-size: .622rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: .444rem;
}
.post-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .333rem .667rem;
}
.post-footer-links li { font-size: .833rem; }
.post-footer-links a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color .12s;
}
.post-footer-links a:hover { color: var(--navy); text-decoration: none; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.778rem 1.333rem;
  margin-top: 3.556rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.333rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .778rem;
  font-weight: 600;
  color: var(--navy);
  opacity: .8;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: 1; text-decoration: none; }
.footer-copy { font-size: .778rem; font-weight: 600; color: var(--navy); opacity: .8; }

/* ─── Blog index page ────────────────────────────────────────────────────── */
.blog-index-header {
  background: var(--navy);
  color: var(--white);
  padding: 2.222rem 1.333rem 2.667rem;
  position: relative;
  overflow: hidden;
}
.blog-index-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 24px;
  background: var(--bg);
  border-radius: 50% 50% 0 0;
}
.blog-index-header-inner { max-width: var(--max); margin: 0 auto; }
.blog-index-eyebrow {
  font-size: .667rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .556rem;
}
.blog-index-eyebrow a { color: rgba(255,255,255,.4); }
.blog-index-eyebrow a:hover { color: rgba(255,255,255,.8); text-decoration: none; }
.blog-index-header h1 {
  font-size: 1.778rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.blog-index-desc {
  color: rgba(255,255,255,.65);
  font-size: .889rem;
  margin-top: .444rem;
  max-width: 560px;
}
.blog-index-body {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 0 1.333rem 4rem;
}

/* ─── 404 page ───────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1.333rem;
}
.error-inner {
  text-align: center;
  max-width: 480px;
}
.error-code {
  font-size: 4rem;
  font-weight: 900;
  color: var(--navy);
  opacity: .15;
  line-height: 1;
  margin-bottom: .333rem;
}
.error-inner h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .667rem;
}
.error-desc {
  font-size: .889rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}
.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-link {
  font-size: .778rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}
.error-link:hover { background: var(--navy-mid); text-decoration: none; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .featured-mosaic { grid-template-columns: 1fr; }
  .mosaic-main { min-height: 260px; }
  .mosaic-side { flex-direction: row; }
  .squares-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mosaic-side { flex-direction: column; }
  .squares-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .category-body { padding: 0 1rem 3rem; }
}
