:root {
  --blue: #214197;
  --blue-dark: #16306f;
  --blue-light: #3d63c9;
  --ink: #1b1d21;
  --muted: #6a7180;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --sidebar-w: 260px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .brand-mark, .btn, .chip, .eyebrow, .footer-mark {
  font-family: Oswald, 'Source Sans 3', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 .6rem; text-transform: uppercase; }
h2 { font-size: 1.6rem; margin: 0 0 .5rem; text-transform: uppercase; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: #fff; color: var(--blue); padding: .5rem .9rem; border: 2px solid var(--blue);
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--blue);
  color: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 40;
  overflow-y: auto;
}

.brand { display: block; color: #fff; text-decoration: none; }
.brand-mark { display: block; font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: .06em; }
.brand-name {
  display: block; margin-top: .35rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85;
}

.sidebar-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sidebar-nav a {
  display: block;
  padding: .55rem 0;
  color: rgba(255, 255, 255, .82);
  font-family: Oswald, sans-serif;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.sidebar-nav a:hover { color: #fff; text-decoration: none; }
.sidebar-nav a.is-active { color: #fff; border-bottom-color: #fff; }

.sidebar-foot { margin-top: auto; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.sidebar-tagline { margin: 0 0 .4rem; }
.copyright { margin: 0; }

.sidebar-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 35; }

.shell { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 2.5rem;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar-brand { display: none; font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .1em; }
.topbar-links { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.topbar-links a {
  font-family: Oswald, sans-serif; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.topbar-links a:hover, .topbar-links a.is-active { color: var(--blue); text-decoration: none; }
.topbar-links .btn.is-active { color: #fff; }

.menu-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 22px; height: 2px; background: var(--blue); content: '';
}
.menu-bars { position: relative; }
.menu-bars::before { position: absolute; top: -7px; }
.menu-bars::after { position: absolute; top: 7px; }

.main { flex: 1; padding: 3rem 2.5rem 0; max-width: 1240px; width: 100%; }

/* Blocks */
.eyebrow {
  margin: 0 0 .5rem; color: var(--blue);
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
}
.lede { max-width: 62ch; font-size: 1.08rem; color: var(--muted); margin: 0; }

.hero { padding: 1rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head { padding-bottom: 1.75rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  background: var(--blue); color: #fff;
  padding: .7rem 1.4rem; border: 2px solid var(--blue); border-radius: var(--radius);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-invert { background: #fff; color: var(--blue); border-color: #fff; }
.btn-invert:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-sm { padding: .45rem 1rem; font-size: .72rem; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2.5rem 0;
}
.stats div { background: #fff; padding: 1.4rem 1.2rem; }
.stats strong { display: block; font-family: Oswald, sans-serif; font-size: 2rem; color: var(--blue); line-height: 1; }
.stats span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.link-more { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.link-back { display: inline-block; margin-bottom: 1rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.link-reset { font-size: .8rem; color: var(--muted); }

/* Filters */
.filter-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin-bottom: 1.5rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #fff;
}
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.filter-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.field select, .field input, .field-block input, .field-block select, .field-block textarea {
  font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit;
}
.field-search input { min-width: 240px; }
.field select:focus, .field input:focus, .field-block :is(input, select, textarea):focus {
  outline: 2px solid var(--blue-light); outline-offset: 1px;
}

.result-count { color: var(--muted); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.25rem; }
.empty { color: var(--muted); padding: 3rem 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.company-card { background: #fff; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; transition: background .15s ease; }
.company-card:hover { background: var(--bg-soft); }
.card-link { display: flex; flex-direction: column; gap: .6rem; height: 100%; text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; }
.logo-wrap { height: 96px; display: flex; align-items: center; justify-content: center; }
.logo-wrap img { max-height: 96px; width: auto; object-fit: contain; }
.card-title { font-size: 1rem; margin: 0; text-transform: none; text-align: center; }
.card-body { margin: 0; color: var(--muted); font-size: .92rem; word-break: break-word; overflow-wrap: break-word; }

.tag-list { list-style: none; display: flex; flex-wrap: nowrap; gap: .35rem; margin: auto 0 0; padding: .6rem 0 0; overflow: hidden; }
.tag-list a { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.tag-list a:hover { color: var(--blue); text-decoration: none; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card { border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 1.4rem; }
.feature-card p { color: var(--muted); margin: 0 0 .75rem; }

.criteria-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.criteria-list li { display: flex; gap: 1rem; }
.criteria-num { font-family: Oswald, sans-serif; font-size: 1.5rem; color: var(--blue); opacity: .5; }
.criteria-list p { margin: 0; color: var(--muted); }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-card { background: #fff; padding: 1.4rem; }
.process-step { font-family: Oswald, sans-serif; color: var(--blue); letter-spacing: .2em; }
.process-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.cta-band { background: var(--blue); color: #fff; padding: 3rem 2rem; margin: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 55ch; margin: 0 auto 1.5rem; color: rgba(255, 255, 255, .85); }

/* Posts */
.post-list { display: grid; gap: 1.75rem; }
.post-row { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.post-row h2, .post-row h3 { text-transform: none; margin: .25rem 0 .5rem; }
.post-row h2 a, .post-row h3 a { color: var(--ink); }
.post-row h2 a:hover, .post-row h3 a:hover { color: var(--blue); text-decoration: none; }
.post-meta { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.article { max-width: 72ch; padding-bottom: 1rem; }
.article-body { font-size: 1.05rem; }
.article-body p { margin: 0 0 1.2rem; }
.article-body img { height: auto; margin: 1rem 0; }
.article-body blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--blue); color: var(--muted); }
.article-source { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* Media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.media-card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.media-card:hover { box-shadow: 0 6px 20px rgba(33, 65, 151, .12); }
.media-thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-fallback { font-family: Oswald, sans-serif; font-size: 2.5rem; color: var(--blue); opacity: .35; }
.media-meta { padding: 1rem 1.1rem 1.2rem; }
.media-role { margin: .25rem 0 .35rem; color: var(--blue); font-size: .85rem; }
.media-cat { margin: 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .9fr); gap: 2.5rem; align-items: start; }
.contact-form { display: grid; gap: 1.1rem; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-block { display: grid; gap: .35rem; }
.field-block > span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field-block textarea { resize: vertical; }
.field-block.has-error :is(input, select, textarea) { border-color: #c0392b; }
.error { color: #c0392b; font-size: .82rem; font-style: normal; }

.alert { padding: 1.25rem 1.4rem; margin-bottom: 1.75rem; border-left: 4px solid var(--blue); background: var(--bg-soft); }
.alert h2 { margin-bottom: .25rem; }
.alert p { margin: 0 0 .5rem; color: var(--muted); }

.contact-side { display: grid; gap: 1.25rem; }
.side-card { border: 1px solid var(--line); padding: 1.25rem; }
.side-card h2 { font-size: 1rem; }
.side-card p { margin: 0 0 .6rem; color: var(--muted); font-size: .92rem; }
.plain-list { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; }

/* Footer */
.footer { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-mark { font-size: 1.6rem; color: var(--blue); margin: 0 0 .4rem; }
.footer-note { color: var(--muted); margin: 0; max-width: 42ch; }
.footer-heading { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.footer-legal { margin: 2rem 0 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 260px; }
  body.nav-open .sidebar { transform: none; }
  .menu-toggle, .topbar-brand { display: block; }
  .topbar { padding: .75rem 1.25rem; }
  .topbar-links a:not(.btn) { display: none; }
  .main { padding: 2rem 1.25rem 0; }
  .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
