/* ==========================================================================
   SolutionsTeams — main stylesheet
   Independent educational publication about workplace collaboration technology.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #172554;
  --navy-soft: #1E2F5C;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --teal: #0F766E;
  --teal-dark: #0B5A54;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text: #172033;
  --text-soft: #64748B;
  --border: #E2E8F0;
  --border-soft: #EEF2F6;

  --note-bg: #EFF6FF;
  --note-accent: #2563EB;
  --tip-bg: #F0FDFA;
  --tip-accent: #0F766E;
  --warn-bg: #FFFBEB;
  --warn-accent: #B45309;

  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(23, 32, 51, 0.06);
  --shadow-md: 0 6px 22px rgba(23, 32, 51, 0.10);
  --shadow-lg: 0 14px 44px rgba(23, 37, 84, 0.16);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { background-color: var(--bg-alt); }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--navy); font-weight: 700; overflow-wrap: break-word; }
p, li { overflow-wrap: break-word; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
ul, ol { padding-left: 1.35em; }
button { cursor: pointer; background: none; border: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; border-radius: 2px; }
::selection { background: #C7D7FE; color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; line-height: 1.2;
  padding: 12px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-alt); }
.btn--light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.section { padding-block: 72px; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.01em; }
.section-lede { margin-top: 12px; font-size: 16.5px; color: var(--text-soft); }
.section-more { margin-top: 32px; text-align: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-size: 20.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy);
  white-space: nowrap;
}
.brand-name .accent { color: var(--teal); }
.brand:hover .brand-name { color: var(--navy); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav > ul { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.site-nav > ul a {
  font-size: 15px; font-weight: 600; color: var(--text-soft);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav > ul a:hover { color: var(--navy); }
.site-nav > ul a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }

.header-search { position: relative; }
.header-search input {
  width: 190px; padding: 9px 14px 9px 36px;
  font-size: 14px; color: var(--text);
  background: var(--bg-alt) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="%2364748B" stroke-width="2.4" stroke-linecap="round"%3E%3Ccircle cx="11" cy="11" r="7"%3E%3C/circle%3E%3Cline x1="21" y1="21" x2="16.2" y2="16.2"%3E%3C/line%3E%3C/svg%3E') 12px center no-repeat;
  border: 1px solid var(--border); border-radius: 999px;
  transition: width 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.header-search input:focus { width: 240px; border-color: var(--blue); background-color: #fff; outline-offset: 0; }
.header-search input::placeholder { color: var(--text-soft); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--radius); color: var(--navy);
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 18px 24px 24px;
    flex-direction: column; align-items: stretch; gap: 6px;
  }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav > ul a { display: block; font-size: 16px; padding: 11px 4px; border-bottom: none; }
  .site-nav > ul a[aria-current="page"] { border-left: 3px solid var(--teal); padding-left: 10px; }
  .header-search { margin-top: 10px; }
  .header-search input { width: 100%; }
  .header-search input:focus { width: 100%; }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero { padding-block: 56px 72px; background:
  radial-gradient(1100px 420px at 85% -10%, #EEF4FF 0%, rgba(238, 244, 255, 0) 60%), var(--bg);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--teal); background: var(--tip-bg);
  border: 1px solid #CCF3EC; border-radius: 999px; padding: 7px 14px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(31px, 4.6vw, 47px); font-weight: 800; letter-spacing: -0.022em; line-height: 1.12; }
.hero__lede { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--text-soft); max-width: 34em; }
.hero-search { margin-top: 28px; display: flex; gap: 10px; max-width: 540px; }
.hero-search input {
  flex: 1; min-width: 0; padding: 13px 18px; font-size: 15.5px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hero-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); outline: none; }
.hero-search input::placeholder { color: var(--text-soft); }
.hero__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 26px; font-size: 14px; color: var(--text-soft); }
.hero__meta strong { color: var(--navy); font-weight: 700; }
.hero__image { position: relative; }
.hero__image img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.hero__badge svg { flex-shrink: 0; }
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__badge { left: 10px; }
}

/* ==========================================================================
   Article cards
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
.article-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.article-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.article-card__cat { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.article-card__cat a { color: var(--teal); text-decoration: none; }
.article-card__cat a:hover { color: var(--teal-dark); text-decoration: underline; }
.article-card__title { font-size: 18.5px; line-height: 1.3; letter-spacing: -0.01em; }
.article-card__title a { color: var(--navy); text-decoration: none; }
.article-card__title a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-card__desc {
  font-size: 14.5px; line-height: 1.6; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--text-soft); }

.article-card--featured { flex-direction: row; min-height: 300px; }
.article-card--featured .article-card__media { width: 52%; aspect-ratio: auto; flex-shrink: 0; }
.article-card--featured .article-card__body { width: 48%; padding: 30px 34px; justify-content: center; gap: 10px; }
.article-card--featured .article-card__title { font-size: 25px; line-height: 1.22; letter-spacing: -0.015em; }
.article-card--featured .article-card__desc { font-size: 15.5px; -webkit-line-clamp: 4; }
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-card--featured { flex-direction: column; }
  .article-card--featured .article-card__media { width: 100%; aspect-ratio: 16 / 9; }
  .article-card--featured .article-card__body { width: 100%; padding: 22px; }
}

/* ---------- Topic cards ---------- */
.topic-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.topic-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.topic-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.topic-card:hover .topic-card__media img { transform: scale(1.03); }
.topic-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; }
.topic-card__title { font-size: 17.5px; }
.topic-card__title a { color: var(--navy); text-decoration: none; }
.topic-card__title a::after { content: ""; }
.topic-card__title a:hover { color: var(--blue-dark); }
.topic-card__desc { font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.topic-card__meta { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--teal); }

/* ==========================================================================
   Home editorial / stats / insights / resources
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__text h2 { font-size: clamp(24px, 3vw, 31px); font-weight: 800; letter-spacing: -0.015em; }
.split__text p { margin-top: 16px; font-size: 16.5px; color: var(--text-soft); max-width: 38em; }
.split__text p + p { margin-top: 12px; }
.stat-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 36px; }
.stat { display: flex; flex-direction: column; }
.stat__value { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.stat__label { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.insights__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; }
.insight {
  display: flex; gap: 16px; padding: 22px 24px;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}
.insight__num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; font-size: 15px; font-weight: 700;
}
.insight__title { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.insight__text { margin-top: 5px; color: #C7D2E4; font-size: 14.5px; line-height: 1.6; }
.section--navy .section-kicker { color: #5EEAD4; }
.section--navy .section-title { color: #fff; }
.section--navy .section-lede { color: #B7C2D8; }
@media (max-width: 780px) { .insights__grid { grid-template-columns: 1fr; } }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.resource-card {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 28px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.resource-card__icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--tip-bg); color: var(--teal); margin-bottom: 6px;
}
.resource-card__title { color: var(--navy); font-size: 17px; font-weight: 700; }
.resource-card__desc { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.resource-card__more { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue); }
.resource-card:hover .resource-card__more { text-decoration: underline; }
@media (max-width: 780px) { .resource-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Generic page header (guides, articles, topics, static pages)
   ========================================================================== */
.page-header { padding-block: 44px 8px; }
.page-header .section-kicker { margin-bottom: 8px; }
.page-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.page-header .page-lede { margin-top: 14px; font-size: 17px; color: var(--text-soft); max-width: 46em; }
.page-header--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 44px 24px; }
.page-header--split .page-header__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.page-header--center { text-align: center; }
.page-header--center .page-lede { margin-inline: auto; }
@media (max-width: 880px) { .page-header--split { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 18px 6px; font-size: 13.5px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--text-soft); }
.breadcrumbs li + li::before { content: "/"; color: var(--border); }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ==========================================================================
   Guides page controls
   ========================================================================== */
.guides-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block: 26px 10px; }
.guides-search { position: relative; flex: 1 1 300px; max-width: 460px; }
.guides-search input {
  width: 100%; padding: 11px 16px 11px 42px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.guides-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); outline: none; }
.guides-search input::placeholder { color: var(--text-soft); }
.guides-search::before {
  content: ""; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748B" stroke-width="2.4" stroke-linecap="round"%3E%3Ccircle cx="11" cy="11" r="7"%3E%3C/circle%3E%3Cline x1="21" y1="21" x2="16.2" y2="16.2"%3E%3C/line%3E%3C/svg%3E') center / contain no-repeat;
  pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--text); background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 15px;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip .chip__count { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-current="true"] .chip__count { color: #A5B4D4; }
.guides-count { font-size: 14px; color: var(--text-soft); margin-bottom: 22px; }
.load-more { margin-block: 34px 6px; text-align: center; }
.guides-empty {
  margin-block: 26px; padding: 56px 24px; text-align: center;
  border: 1.5px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg-alt);
}
.guides-empty__title { font-size: 19px; font-weight: 700; color: var(--navy); }
.guides-empty p { margin-top: 8px; color: var(--text-soft); font-size: 15px; }
.guides-empty .btn { margin-top: 20px; }

/* ==========================================================================
   Articles index (compact rows)
   ========================================================================== */
.article-rows { border-top: 1px solid var(--border); margin-top: 30px; }
.article-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center;
  padding-block: 22px; border-bottom: 1px solid var(--border);
}
.article-row__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.article-row__media img { width: 100%; height: 100%; object-fit: cover; }
.article-row__body { display: flex; flex-direction: column; gap: 5px; }
.article-row__title { font-size: 18px; letter-spacing: -0.01em; }
.article-row__title a { color: var(--navy); text-decoration: none; }
.article-row__title a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-row__desc { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
.article-row__meta { font-size: 13px; color: var(--text-soft); }
.article-row__meta a { color: var(--teal); font-weight: 600; text-decoration: none; }
.article-row__meta a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .article-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
}

/* ==========================================================================
   Article page
   ========================================================================== */
.article-layout { padding-block: 0 60px; }
.article-header { max-width: 780px; padding-block: 18px 26px; }
.article-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.article-kicker a { color: var(--teal); text-decoration: none; }
.article-kicker a:hover { color: var(--teal-dark); text-decoration: underline; }
.article-header h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.022em; line-height: 1.14; }
.article-lede { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--text-soft); }
.article-meta { margin-top: 18px; font-size: 13.5px; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: 6px 0; }
.article-meta > span { display: inline-flex; align-items: center; }
.article-meta > span + span::before { content: "·"; margin: 0 9px; color: var(--border); }
.article-cover { margin-bottom: 44px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article-body-wrap {
  display: grid; grid-template-columns: 212px minmax(0, 740px); gap: 56px;
  justify-content: center; align-items: start;
}
@media (max-width: 1080px) {
  .article-body-wrap { grid-template-columns: minmax(0, 740px); gap: 0; }
}

/* ---------- Table of contents ---------- */
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding-block: 6px; }
.toc h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li { position: relative; }
.toc a {
  display: block; padding: 6px 0 6px 16px; font-size: 13.5px; line-height: 1.45;
  color: var(--text-soft); text-decoration: none;
}
.toc a::before {
  content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 2px;
  background: transparent; transition: background-color 0.15s ease;
}
.toc a:hover { color: var(--navy); }
.toc a:hover::before, .toc a.active::before { background: var(--teal); }
@media (max-width: 1080px) {
  .toc { position: static; margin-bottom: 26px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: var(--bg-alt); }
  .toc ol { border-left: none; }
  .toc a { padding: 5px 0; }
}

/* ---------- Prose (article body) ---------- */
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose p { margin-block: 16px; max-width: none; }
.prose h2 { font-size: 25px; letter-spacing: -0.015em; margin: 46px 0 6px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 19px; margin: 32px 0 4px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul, .prose h2 + ol, .prose h3 + ol, .prose h2 + .callout, .prose h3 + .callout, .prose h2 + table, .prose h2 + figure { margin-top: 12px; }
.prose ul, .prose ol { margin-block: 14px; }
.prose li { margin-block: 6px; padding-left: 4px; }
.prose ul > li::marker { color: var(--teal); }
.prose ol > li::marker { color: var(--teal); font-weight: 700; }
.prose a { font-weight: 600; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose code {
  font-family: var(--mono); font-size: 0.86em; background: var(--bg-alt);
  border: 1px solid var(--border-soft); border-radius: 5px; padding: 1.5px 6px; color: var(--navy);
}
.prose hr { border: none; border-top: 1px solid var(--border); margin-block: 40px; }
.prose table { margin-block: 20px; font-size: 14.5px; line-height: 1.55; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prose thead th { background: var(--bg-alt); text-align: left; padding: 11px 16px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); }
.prose tbody td, .prose tbody th { padding: 11px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: none; }
.prose tbody th { text-align: left; font-weight: 700; color: var(--navy); }
.prose blockquote {
  margin: 22px 0; padding: 14px 22px; border-left: 3px solid var(--teal);
  background: var(--tip-bg); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy-soft); font-style: italic;
}

/* ---------- Callouts ---------- */
.callout { margin: 22px 0; padding: 16px 20px 14px; border-radius: var(--radius); border: 1px solid; }
.callout__title { font-size: 12.5px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 6px; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.callout p + p { margin-top: 8px; }
.callout a { font-weight: 600; }
.callout--note { background: var(--note-bg); border-color: #BFDBFE; }
.callout--note .callout__title { color: var(--note-accent); }
.callout--tip { background: var(--tip-bg); border-color: #CCF3EC; }
.callout--tip .callout__title { color: var(--tip-accent); }
.callout--warning { background: var(--warn-bg); border-color: #FDE68A; }
.callout--warning .callout__title { color: var(--warn-accent); }

/* ---------- Related ---------- */
.related { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 40px; }
.related h2 { font-size: 22px; letter-spacing: -0.01em; }
.related .card-grid { margin-top: 24px; }
.related-more { margin-top: 26px; font-weight: 600; }
.related-more a { text-decoration: none; }
.related-more a:hover { text-decoration: underline; }

/* ==========================================================================
   Topic page
   ========================================================================== */
.topic-articles { margin-top: 42px; }
.topic-related { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 34px; }
.topic-related h2 { font-size: 19px; }
.topic-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.topic-related a {
  display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; color: var(--text);
}
.topic-related a:hover { border-color: var(--navy); color: var(--navy); }

/* ==========================================================================
   About / contact / legal
   ========================================================================== */
.about-layout { max-width: 780px; }
.about-layout .split { margin-block: 44px; }
.about-hero { padding-block: 40px 10px; max-width: 780px; }
.about-hero img { margin-top: 30px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-sections { max-width: 780px; padding-block: 10px 60px; }
.about-sections h2 { font-size: 23px; margin-top: 44px; letter-spacing: -0.01em; }
.about-sections h2 + p, .about-sections h2 + ul { margin-top: 14px; }
.about-sections p { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.about-sections p + p { margin-top: 14px; }
.about-sections ul, .about-sections ol { margin-block: 14px; }
.about-sections li { margin-block: 7px; font-size: 16.5px; line-height: 1.7; }
.about-sections ul > li::marker { color: var(--teal); }

.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-block: 34px; max-width: 860px; }
.info-card { padding: 28px 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.info-card__value { margin-top: 14px; font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.info-card__value a { color: var(--navy); text-decoration: none; }
.info-card__value a:hover { color: var(--blue-dark); text-decoration: underline; }
.info-card address { margin-top: 14px; font-style: normal; font-size: 16px; line-height: 1.75; color: var(--text); }
.info-card p { margin-top: 10px; font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }

.legal-layout { max-width: 760px; padding-block: 0 64px; }
.legal-layout .article-lede { font-size: 16px; }
.legal-updated { margin-top: 10px; font-size: 13.5px; color: var(--text-soft); }
.legal-body { margin-top: 34px; }
.legal-body h2 { font-size: 21px; margin-top: 38px; letter-spacing: -0.01em; }
.legal-body h2 + p, .legal-body h2 + ul { margin-top: 12px; }
.legal-body p { font-size: 15.5px; line-height: 1.75; }
.legal-body p + p { margin-top: 13px; }
.legal-body ul, .legal-body ol { margin-block: 13px; }
.legal-body li { margin-block: 6px; font-size: 15.5px; }
.legal-body ul > li::marker { color: var(--teal); }
.legal-body a { font-weight: 600; }

/* ==========================================================================
   Search page
   ========================================================================== */
.search-form { display: flex; gap: 10px; max-width: 620px; margin-block: 28px; }
.search-form input {
  flex: 1; min-width: 0; padding: 14px 20px; font-size: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff;
}
.search-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); outline: none; }
.search-status { font-size: 15px; color: var(--text-soft); min-height: 24px; }
.search-results { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--border); }
.search-result { padding-block: 24px; border-bottom: 1px solid var(--border); }
.search-result__meta { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.search-result__meta a { color: var(--teal); text-decoration: none; }
.search-result__meta a:hover { text-decoration: underline; }
.search-result__title { margin-top: 7px; font-size: 19px; letter-spacing: -0.01em; }
.search-result__title a { color: var(--navy); text-decoration: none; }
.search-result__title a:hover { color: var(--blue-dark); text-decoration: underline; }
.search-result__snippet { margin-top: 8px; font-size: 14.5px; color: var(--text-soft); line-height: 1.65; }
.search-result__snippet mark { background: #C7F0E9; color: var(--teal-dark); border-radius: 3px; padding: 0 2px; }
.search-hint { margin-top: 10px; font-size: 14.5px; color: var(--text-soft); }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { text-align: center; padding-block: 90px 110px; }
.notfound__code { font-size: 88px; font-weight: 800; letter-spacing: -0.04em; color: var(--navy); line-height: 1; }
.notfound__code span { color: var(--teal); }
.notfound h1 { margin-top: 14px; font-size: 26px; letter-spacing: -0.01em; }
.notfound p { margin-top: 12px; color: var(--text-soft); font-size: 16px; }
.notfound__links { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #C4CEE0; margin-top: 72px; }
.footer-grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 1.1fr; gap: 40px;
  padding-block: 60px 40px;
}
.footer-brand .brand-name { color: #fff; }
.insight__text code {
  font-family: var(--mono); font-size: 0.88em; color: #5EEAD4;
  background: rgba(255, 255, 255, 0.10); border-radius: 5px; padding: 1px 6px;
}
.footer-tagline { margin-top: 14px; font-size: 14px; line-height: 1.65; color: #97A5C2; max-width: 26em; }
.footer-col h2 { color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #C4CEE0; font-size: 14.5px; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col address { font-style: normal; font-size: 14.5px; line-height: 1.8; color: #C4CEE0; }
.footer-col address a { color: #fff; font-weight: 600; }
.footer-col address a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 26px 34px; }
.footer-independence { font-size: 12.5px; line-height: 1.7; color: #8896B5; max-width: 62em; }
.footer-copy { margin-top: 10px; font-size: 12.5px; color: #8896B5; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 44px 28px; } }

/* ---------- Image fallback state ---------- */
img.img-fallback { object-fit: cover; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .related, .hero-search, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}
