:root {
  --knowledge-navy: #122033;
  --knowledge-slate: #2a3f59;
  --knowledge-cream: #fbf8f1;
  --knowledge-gold: #d1a54c;
}

.knowledge-page {
  background: #f2f5f9;
}

.knowledge-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(209, 165, 76, 0.2), transparent 26%),
    linear-gradient(135deg, #101b2a 0%, #1f3857 100%);
}

.knowledge-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255, 255, 255, 0.035), 0 0 0 124px rgba(255, 255, 255, 0.02);
}

.knowledge-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 64px;
  align-items: end;
}

.knowledge-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f0cc7c;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knowledge-hero h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.knowledge-hero__lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.knowledge-hero__lead + .btn {
  margin-top: 8px;
}

.knowledge-hero__stats {
  display: grid;
  gap: 10px;
}

.knowledge-stat {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.knowledge-stat strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 19px;
}

.knowledge-stat span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.knowledge-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.knowledge-nav__inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}

.knowledge-nav__inner::-webkit-scrollbar {
  display: none;
}

.knowledge-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

.knowledge-section {
  padding: 72px 0;
}

.knowledge-section--white {
  background: #fff;
}

.knowledge-section--dark {
  color: #fff;
  background: var(--knowledge-navy);
}

.knowledge-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.knowledge-heading h2 {
  max-width: 760px;
  margin: 6px 0 0;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.knowledge-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.knowledge-section--dark .knowledge-heading p {
  color: rgba(255, 255, 255, 0.66);
}

.feature-article {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 32, 51, 0.1);
}

.feature-article__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.feature-article__visual {
  position: relative;
  min-height: 300px;
  background:
    linear-gradient(155deg, rgba(120, 31, 37, 0.94), rgba(31, 58, 95, 0.9)),
    url("../images/tild3237-6333-4132-a163-373564313237__lawyer-gavel-judge-h.webp") center/cover;
}

.feature-article__visual::before,
.feature-article__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.feature-article__visual::before {
  inset: 15% 18%;
}

.feature-article__visual::after {
  inset: 27% 30%;
}

.article-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feature-article h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.feature-article p {
  max-width: 690px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.article-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(16, 32, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 58, 95, 0.28);
  box-shadow: 0 20px 50px rgba(16, 32, 51, 0.11);
}

.article-card h3 {
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.article-card p {
  color: var(--muted);
  font-size: 15px;
}

.article-card__link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--burgundy);
  font-weight: 850;
}

.article-card__link::after {
  content: "  →";
}

.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.column-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.column-card::after {
  content: "“";
  position: absolute;
  right: 18px;
  bottom: -52px;
  color: rgba(255, 255, 255, 0.07);
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 1;
}

.column-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  border-radius: 50%;
  background: rgba(209, 165, 76, 0.16);
  color: #f0cc7c;
  font-weight: 900;
}

.column-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: 25px;
}

.column-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.66);
}

.news-digest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-digest article {
  padding: 23px;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.news-digest time {
  display: block;
  margin-bottom: 12px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 850;
}

.news-digest h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.news-digest p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.knowledge-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(125deg, var(--burgundy), #9b343c);
}

.knowledge-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(27px, 4vw, 42px);
}

.knowledge-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.knowledge-cta .btn {
  color: var(--ink);
  background: #fff;
}

/* Article pages */
.article-page {
  background: #f3f6fa;
}

.article-hero {
  padding: 72px 0 56px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(209, 165, 76, 0.2), transparent 24%),
    linear-gradient(135deg, #101b2a, #244362);
}

.article-hero__inner {
  max-width: 920px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.article-breadcrumbs a {
  color: #f0cc7c;
}

.article-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.article-hero__lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.6;
}

.article-hero .article-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 44px;
  align-items: start;
  padding: 56px 0 84px;
}

.article-body {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(16, 32, 51, 0.08);
}

.article-body h2 {
  margin: 42px 0 16px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 30px 0 10px;
  font-size: 23px;
  line-height: 1.2;
}

.article-body p,
.article-body li {
  color: #34455a;
  font-size: 17px;
  line-height: 1.74;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body a {
  color: var(--blue-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-note,
.article-warning,
.article-summary {
  margin: 30px 0;
  padding: 22px 24px;
  border-radius: 14px;
}

.article-note {
  border-left: 4px solid var(--blue-2);
  background: #eef4fa;
}

.article-warning {
  border-left: 4px solid var(--burgundy);
  background: #fbf0f0;
}

.article-summary {
  border: 1px solid #ead7ad;
  background: var(--knowledge-cream);
}

.article-note p,
.article-warning p,
.article-summary p {
  margin-bottom: 0;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.article-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.article-table th,
.article-table td {
  padding: 15px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--ink);
  background: #eef3f8;
}

.article-help {
  margin: 34px 0;
  padding: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f3a5f, #294f78);
  color: #fff;
}

.article-help h2 {
  margin-top: 0;
  color: #fff;
}

.article-help p {
  color: rgba(255, 255, 255, 0.82);
}

.article-body .article-help .btn {
  color: #fff;
  text-decoration: none;
}

.article-sources {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-sources h2 {
  margin-top: 0;
  font-size: 27px;
}

.article-disclaimer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.article-toc {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.article-toc strong {
  display: block;
  margin-bottom: 13px;
}

.article-toc nav {
  display: grid;
  gap: 10px;
}

.article-toc a {
  color: var(--muted);
  font-size: 14px;
}

.article-toc a:hover {
  color: var(--burgundy);
}

@media (max-width: 900px) {
  .knowledge-hero__grid,
  .feature-article,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .knowledge-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-article__visual {
    min-height: 220px;
  }

  .columns-grid,
  .news-digest {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .knowledge-hero,
  .article-hero {
    padding: 58px 0 46px;
  }

  .knowledge-hero__stats,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-heading,
  .knowledge-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .knowledge-section {
    padding: 54px 0;
  }

  .article-card {
    min-height: 0;
  }

  .article-shell {
    gap: 20px;
    padding: 28px 0 60px;
  }
}

/* Keep the knowledge base inside the same human, light editorial world as the home page. */
.knowledge-page { background: #f7f7f3; }
.knowledge-hero { color: var(--ink); background: #eef2ee; }
.knowledge-hero::after { border-color: rgba(49,112,96,.15); box-shadow: 0 0 0 62px rgba(49,112,96,.04), 0 0 0 124px rgba(49,112,96,.025); }
.knowledge-kicker { border-color: rgba(161,63,75,.2); color: var(--burgundy); background: rgba(255,255,255,.7); }
.knowledge-hero__lead { color: #5b6972; }
.knowledge-stat { border-color: rgba(24,35,51,.1); background: rgba(255,255,255,.72); box-shadow: 0 9px 22px rgba(24,35,51,.045); }
.knowledge-stat strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.knowledge-stat span { color: var(--muted); }
.knowledge-nav { background: rgba(255,255,255,.76); }
.feature-article { border-radius: 28px 8px 28px 8px; }
.feature-article__visual { background: url("../images/afzr-route-clarity-20260814.png") center/cover; }
.feature-article__visual::before, .feature-article__visual::after { display: none; }
.article-card { border-radius: 18px 7px 18px 7px; }

/* Compact reading rhythm. */
.knowledge-hero { padding: 64px 0 56px; }
.knowledge-section { padding: 58px 0; }
.feature-article__body { padding: clamp(25px, 4vw, 42px); }
.article-card { min-height: 250px; padding: 23px; }
