:root {
  --ink: #10242b;
  --muted: #667780;
  --line: #dce7e6;
  --paper: #ffffff;
  --soft: #f5f8f7;
  --warm: #fff8ea;
  --brand: #0f3941;
  --brand-2: #256b74;
  --accent: #f5b82e;
  --danger: #b84a3c;
  --shadow: 0 22px 70px rgba(12, 38, 44, 0.14);
  --soft-shadow: 0 12px 34px rgba(12, 38, 44, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  width: min(220px, 62vw);
}

.primary-nav .menu,
.footer-grid .menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-nav a:hover {
  color: var(--brand);
  background: var(--soft);
  transform: translateY(-1px);
}

.primary-nav .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 30;
  min-width: 280px;
  display: grid;
  gap: 4px;
  padding: 10px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(12, 38, 44, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  width: 100%;
  justify-content: space-between;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
}

.primary-nav .sub-menu a:hover {
  background: var(--soft);
}

.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.legal-nav-bar {
  border-top: 1px solid rgba(220, 231, 230, 0.72);
  background: rgba(248, 251, 250, 0.92);
}

.legal-nav .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #526971;
  font-size: 12px;
  font-weight: 800;
}

.legal-nav a:hover {
  color: var(--brand);
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand);
}

.drawer-head,
.mobile-drawer-legal,
.nav-overlay {
  display: none !important;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(9, 35, 41, 0.98), rgba(24, 82, 88, 0.92)),
    radial-gradient(circle at 72% 18%, rgba(245, 184, 46, 0.25), transparent 30%),
    radial-gradient(circle at 8% 86%, rgba(255, 255, 255, 0.12), transparent 28%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='760' viewBox='0 0 1400 760'%3E%3Crect width='1400' height='760' fill='%23103941'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'%3E%3Cpath d='M190 540h220V350l-110-84-110 84v190Z'/%3E%3Cpath d='M970 560h260V315l-130-96-130 96v245Z'/%3E%3Cpath d='M520 610h300V290L670 178 520 290v320Z'/%3E%3Cpath d='M0 638h1400M0 514h1400M0 390h1400M0 266h1400M180 0v760M420 0v760M660 0v760M900 0v760M1140 0v760'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  content: "";
  background: linear-gradient(0deg, rgba(251, 253, 252, 0.12), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 72px;
  padding: 78px 0 88px;
}

.hero-copy {
  min-width: 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-strip span,
.single-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.eyebrow {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

.hero h1 {
  max-width: 760px;
  margin-top: 14px;
  color: #fffaf0;
  font-size: clamp(48px, 5.7vw, 78px);
  line-height: 0.98;
  text-wrap: balance;
}

.hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.55;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 620px;
  margin-top: 30px;
  padding: 7px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(4, 19, 23, 0.25);
}

.hero-search input {
  min-width: 0;
  border: 0;
  padding: 16px 18px;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.hero-search button,
.search-submit {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #231a05;
  font-weight: 800;
  padding: 0 24px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-search button:hover,
.search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(245, 184, 46, 0.32);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 142px));
  gap: 10px;
  margin-top: 18px;
}

.hero-metrics div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.estimate-console {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 35px 80px rgba(4, 19, 23, 0.28);
  backdrop-filter: blur(18px);
}

.console-row,
.cost-card,
.widget,
.guide-card-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

.console-header,
.console-row,
.console-note {
  padding: 20px;
  color: var(--ink);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.console-header {
  background: linear-gradient(135deg, #ffd568, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.console-header span,
.console-row span,
.cost-card span,
.ad-slot span,
.guide-category {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.console-header strong,
.console-row strong,
.cost-card strong {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-size: 24px;
  letter-spacing: 0;
}

.console-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.method-band {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.method-grid h2 {
  margin-top: 4px;
  font-size: 26px;
}

.method-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--soft));
  box-shadow: var(--soft-shadow);
}

.method-step strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--accent);
}

.method-step span {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.category-band,
.content-band {
  padding: 78px 0;
}

.category-band {
  background:
    linear-gradient(180deg, #f8fbfa, #eef5f3);
}

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

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  text-wrap: balance;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-tile::after {
  position: absolute;
  inset: auto -30px -44px auto;
  width: 110px;
  height: 110px;
  content: "";
  border-radius: 50%;
  background: color-mix(in srgb, var(--tile-accent, var(--accent)) 18%, transparent);
}

.category-tile:hover,
.guide-card-link:hover {
  border-color: color-mix(in srgb, var(--tile-accent, var(--brand-2)) 34%, var(--line));
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(12, 38, 44, 0.13);
}

.category-tile span {
  position: relative;
  z-index: 1;
  color: var(--brand);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.category-tile small {
  position: relative;
  z-index: 1;
  color: var(--tile-accent, var(--danger));
  font-weight: 800;
}

.tile-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--tile-accent, var(--brand-2));
}

.authority-band {
  padding: 78px 0;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.96), rgba(255, 255, 255, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%23f5b82e' stroke-opacity='.16'%3E%3Cpath d='M0 80h340M0 170h340M0 260h340M80 0v340M170 0v340M260 0v340'/%3E%3C/g%3E%3C/svg%3E");
  border-block: 1px solid #eadfca;
}

.authority-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.authority-copy h2 {
  max-width: 560px;
  margin-top: 8px;
  font-size: 38px;
}

.authority-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.authority-list {
  display: grid;
  gap: 12px;
}

.authority-list div {
  display: grid;
  gap: 3px;
  padding: 18px 20px;
  border: 1px solid #f0e1bd;
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(75, 61, 37, 0.08);
}

.authority-list strong {
  color: var(--brand);
  font-size: 18px;
}

.authority-list span {
  color: var(--muted);
}

.content-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 38px;
  align-items: start;
}

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

.content-layout .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card-link {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-color: var(--line);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.guide-card-link::before {
  display: none;
}

.guide-card h3 {
  margin-top: 10px;
  font-size: 24px;
  text-wrap: balance;
}

.rcg-post-visual {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  align-items: end;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at var(--visual-x, 70%) var(--visual-y, 20%), color-mix(in srgb, var(--visual-accent, var(--accent)) 60%, transparent), transparent 32%),
    linear-gradient(var(--visual-angle, 135deg), #08242b, color-mix(in srgb, var(--visual-accent, var(--brand-2)) 48%, #0f3941));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.rcg-post-visual.has-cover-image {
  padding: 0;
  background: #0e333b;
}

.rcg-post-visual.has-cover-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcg-post-visual.has-cover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 36, 43, 0.08), rgba(8, 36, 43, 0.88));
}

.rcg-post-visual.has-cover-image figcaption {
  position: relative;
  z-index: 1;
  max-width: 82%;
  padding: 22px;
}

.card-visual {
  min-height: 172px;
  margin: -8px -8px 18px;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.visual-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.visual-svg {
  width: 48px;
  height: 48px;
  color: #fff;
}

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 78%;
}

.visual-copy span,
.visual-copy small,
.rcg-post-visual figcaption span,
.rcg-post-visual figcaption small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-copy strong,
.rcg-post-visual figcaption strong {
  display: block;
  margin: 7px 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  text-wrap: balance;
}

.guide-card p {
  color: var(--muted);
}

.guide-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-card-footer strong {
  color: var(--brand);
}

.guide-card-footer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sticky {
  position: sticky;
  top: 104px;
}

.widget {
  padding: 24px;
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.widget h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.check-list {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.ad-slot {
  min-height: 250px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 20px;
  border: 1px dashed #b9c8cb;
  border-radius: 18px;
  background: #f7faf9;
  color: var(--muted);
  text-align: center;
}

.archive-header,
.single-hero {
  padding: 76px 0;
  background:
    linear-gradient(135deg, #f7fbfa, #edf5f3);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: 74px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(9, 35, 41, 0.96), rgba(15, 57, 65, 0.88)),
    radial-gradient(circle at 80% 16%, rgba(245, 184, 46, 0.26), transparent 34%),
    var(--brand);
}

.page-hero h1 {
  max-width: 860px;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  text-wrap: balance;
}

.page-shell {
  padding: 58px 0 78px;
  background: #fbfdfc;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 44px;
  align-items: start;
}

.page-body {
  max-width: none;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.page-body .rcg-page-lead {
  margin-top: 0;
  padding: 22px 24px;
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  color: var(--ink);
  background: var(--warm);
  font-size: 20px;
  line-height: 1.55;
}

.page-body .rcg-quote-checklist,
.page-body .rcg-source-box,
.page-body .rcg-faq-block {
  border-radius: 16px;
}

.page-body a {
  color: var(--brand-2);
  font-weight: 800;
}

.page-body strong {
  color: var(--brand);
}

.page-body h2 {
  padding-top: 8px;
  color: var(--brand);
}

.page-body ul {
  padding-left: 22px;
}

.page-body li {
  margin-bottom: 8px;
}

.page-sidebar {
  position: sticky;
  top: 98px;
}

.archive-header h1,
.single-hero h1 {
  max-width: 900px;
  margin-top: 10px;
  font-size: clamp(34px, 6vw, 62px);
}

.archive-header p,
.single-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.single-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: center;
}

.single-hero-themed {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(9, 35, 41, 0.96), rgba(9, 35, 41, 0.72)),
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--category-accent) 62%, transparent), transparent 34%),
    var(--brand);
}

.single-hero-themed .single-hero-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.single-hero-themed h1,
.single-hero-themed p {
  color: #fff;
}

.single-hero-themed p {
  color: rgba(255, 255, 255, 0.8);
}

.single-visual-stack {
  display: grid;
  gap: 14px;
}

.single-visual {
  min-height: 280px;
}

.single-visual .visual-copy strong {
  font-size: 30px;
}

.single-hero-themed .cost-card {
  background: rgba(255, 255, 255, 0.96);
}

.category-hero {
  color: #fff;
  background:
    linear-gradient(125deg, rgba(18, 52, 59, 0.96), rgba(18, 52, 59, 0.7)),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--category-accent) 65%, transparent), transparent 34%),
    var(--brand);
}

.category-hero-grid {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}

.category-hero h1 {
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 70px);
}

.category-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.category-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 26px;
}

.category-stat-row div,
.category-mark {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.category-stat-row div {
  padding: 16px;
}

.category-stat-row span,
.category-mark span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-stat-row strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 21px;
}

.category-mark {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.category-mark-icon {
  width: 138px;
  height: 138px;
  color: var(--accent);
}

.decision-band {
  padding: 34px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.decision-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 14px;
}

.decision-panel,
.decision-item {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.decision-panel h2 {
  margin-top: 8px;
  font-size: 26px;
}

.decision-item span {
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--category-accent, var(--accent));
}

.decision-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumbs a:hover {
  color: #fff;
}

.cost-card {
  padding: 24px;
  border-color: var(--line);
  border-radius: 18px;
}

.cost-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.article-layout {
  padding: 54px 0;
}

.single-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.single-hero .single-badges span {
  color: var(--brand);
  border-color: var(--line);
  background: #fff;
}

.article-note {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: var(--warm);
  color: #3d3a32;
}

.article-toc {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.article-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 20px;
}

.article-toc a {
  color: var(--ink);
  font-weight: 800;
}

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

.author-review-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 20px;
}

.author-review-box div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.author-review-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.author-review-box strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 18px;
}

.author-review-box a {
  color: inherit;
}

.author-review-box p {
  margin-bottom: 0;
}

.category-note {
  border-left-color: var(--category-accent, var(--accent));
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin: 34px 0 12px;
  font-size: 30px;
}

.article-body h3 {
  margin: 26px 0 10px;
  font-size: 23px;
}

.article-body p,
.article-body li {
  color: #33424a;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.article-body th,
.article-body td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-body th {
  background: var(--brand);
  color: #fff;
}

.rcg-source-box,
.rcg-quote-checklist,
.rcg-faq-block,
.rcg-pros-cons,
.rcg-cost-calculator,
.rcg-internal-links,
.rcg-editorial-warning {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.rcg-editorial-warning {
  border-left: 5px solid var(--danger);
  background: #fff8f3;
}

.rcg-editorial-warning h3 {
  margin: 0 0 10px;
  color: var(--brand);
}

.rcg-source-box {
  border-left: 5px solid var(--brand-2);
}

.rcg-internal-links {
  border-left: 5px solid var(--accent);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.rcg-internal-links h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 22px;
}

.rcg-internal-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rcg-internal-links li {
  margin: 0;
}

.rcg-internal-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand);
  background: var(--soft);
  font-weight: 800;
}

.rcg-internal-links a:hover {
  border-color: var(--accent);
  background: var(--warm);
}

.rcg-quote-checklist {
  border-left: 5px solid var(--accent);
  background: var(--warm);
}

.rcg-source-box h3,
.rcg-quote-checklist h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 22px;
}

.rcg-faq-block h2 {
  margin-top: 0;
}

.rcg-faq-block details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.rcg-faq-block summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 800;
}

.rcg-faq-block p {
  margin-bottom: 0;
}

.rcg-pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: #fff;
}

.rcg-pros-cons div {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--soft);
}

.rcg-pros-cons div:last-child {
  background: #fff6f1;
}

.rcg-pros-cons h3,
.rcg-cost-calculator h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 22px;
}

.rcg-cost-calculator {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-left: 5px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(244, 191, 58, 0.12), rgba(255, 255, 255, 0.94)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.rcg-calc-head {
  grid-column: 1 / -1;
}

.rcg-calc-head p {
  margin: 0;
  color: var(--muted);
}

.rcg-cost-calculator label {
  display: grid;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
}

.rcg-cost-calculator select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
}

.rcg-cost-calculator select:focus,
.rcg-state-modifier select:focus,
.rcg-project-calculator select:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}

.rcg-cost-calculator output {
  grid-column: 1 / -1;
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--accent) 38%, var(--brand)));
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.rcg-cost-calculator small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.rcg-state-modifier,
.rcg-project-calculator {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 248, 0.92)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.rcg-state-modifier {
  border-left: 5px solid var(--brand-2);
}

.rcg-project-calculator {
  border-left: 5px solid var(--accent);
}

.rcg-state-modifier h3,
.rcg-project-calculator h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 22px;
}

.rcg-state-modifier p,
.rcg-project-calculator p {
  color: var(--muted);
}

.rcg-state-modifier label,
.rcg-project-calculator label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 800;
}

.rcg-state-modifier select,
.rcg-project-calculator select,
.rcg-project-calculator input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
}

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

.rcg-state-modifier output,
.rcg-project-calculator output {
  display: block;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 55%, var(--brand)));
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.rcg-state-modifier small,
.rcg-project-calculator small,
.rcg-cost-calculator small[data-rcg-output-note] {
  display: block;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 800;
}

.company-directory-table table {
  font-size: 15px;
}

.company-directory-table td:first-child {
  color: var(--brand);
}

.sidebar-cost-widget {
  color: #fff;
  background:
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--accent) 35%, var(--brand)));
}

.sidebar-cost-widget span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-cost-widget strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 25px;
}

.sidebar-cost-widget p {
  color: rgba(255, 255, 255, 0.82);
}

.widget-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 900;
}

.sidebar-link-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-link-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-link-list a,
.check-list a {
  color: var(--brand);
  font-weight: 850;
}

.sidebar-link-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 46px 0 26px;
  color: #e8f1ef;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 191, 58, 0.16), transparent 25%),
    linear-gradient(135deg, #09282f, var(--brand));
}

.footer-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-topline h2 {
  max-width: 620px;
  margin: 8px 0 0;
  color: #fff;
  font-size: 34px;
}

.footer-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--accent);
  font-weight: 900;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1fr;
  gap: 32px;
  padding-top: 34px;
}

.footer-brand-panel,
.footer-editorial-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.site-footer .site-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.footer-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid h2 {
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: #c9d8d5;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-grid .menu {
  align-items: start;
  flex-direction: column;
  gap: 8px;
}

.footer-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.footer-mini-stats span {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfecea;
  font-size: 12px;
}

.footer-mini-stats strong {
  display: block;
  color: var(--accent);
  font-size: 20px;
}

.footer-editorial-panel ul {
  padding-left: 18px;
  color: #c9d8d5;
}

.footer-bottom a {
  color: #e8f1ef;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #c9d8d5;
  font-size: 14px;
}

.pagination-wrap {
  margin-top: 34px;
}

.pagination-wrap .navigation {
  display: flex;
  justify-content: center;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.pagination-wrap .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pagination-wrap a.page-numbers:hover {
  border-color: var(--line);
  background: var(--soft);
  transform: translateY(-1px);
}

.pagination-wrap .page-numbers.current {
  color: #1f1603;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(245, 184, 46, 0.22);
}

.pagination-wrap .prev,
.pagination-wrap .next {
  min-width: auto;
  padding-inline: 16px;
  color: #fff;
  background: var(--brand);
}

.pagination-wrap .prev:hover,
.pagination-wrap .next:hover {
  color: #fff;
  background: var(--brand-2);
}

.pagination-wrap .dots {
  color: var(--muted);
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

@media (max-width: 980px) {
  body.nav-drawer-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 70;
  }

  .primary-nav {
    position: fixed !important;
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    z-index: 1000;
    width: min(84vw, 360px);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: 24px 0 70px rgba(12, 38, 44, 0.2);
    transform: translateX(-105%);
    transition: transform 220ms ease;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 990;
    display: block !important;
    border: 0;
    background: rgba(7, 28, 34, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-head {
    display: grid !important;
    gap: 4px;
    flex: 0 0 auto;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .drawer-head strong {
    color: var(--brand);
    font-size: 24px;
  }

  .drawer-head span,
  .mobile-drawer-legal strong {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .primary-nav .menu {
    align-items: start;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    gap: 6px;
  }

  .primary-nav li,
  .primary-nav a {
    width: 100%;
  }

  .primary-nav a {
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--soft);
    font-size: 15px;
  }

  .primary-nav .sub-menu {
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 12px;
    background: var(--soft);
    padding: 8px;
    margin-top: 6px;
  }

  .primary-nav .sub-menu a {
    min-height: 40px;
    background: #fff;
    font-size: 14px;
  }

  .mobile-drawer-legal {
    display: grid !important;
    gap: 10px;
    flex: 0 0 auto;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .mobile-drawer-legal .menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .mobile-drawer-legal a {
    display: flex;
    min-height: 38px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--brand);
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
  }

  .legal-nav-bar {
    display: none;
  }

  .hero-grid,
  .single-hero-grid,
  .category-hero-grid,
  .single-hero-themed .single-hero-grid,
  .content-layout,
  .article-layout,
  .page-layout,
  .footer-grid,
  .footer-link-columns,
  .method-grid,
  .authority-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .footer-topline {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .post-grid,
  .content-layout .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 34px;
    min-height: auto;
  }

  .estimate-console {
    max-width: 560px;
  }

  .single-visual-stack {
    max-width: 620px;
  }

  .sticky {
    position: static;
  }

  .page-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-grid {
    min-height: auto;
    padding: 44px 0 56px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .hero p {
    font-size: 18px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    min-height: 48px;
  }

  .category-grid,
  .post-grid,
  .content-layout .post-grid,
  .hero-metrics,
  .author-review-box,
  .rcg-internal-links ul,
  .rcg-pros-cons,
  .rcg-cost-calculator {
    grid-template-columns: 1fr;
  }

  .article-toc ol,
  .rcg-state-grid,
  .rcg-project-grid {
    grid-template-columns: 1fr;
  }

  .category-band,
  .content-band,
  .authority-band {
    padding: 54px 0;
  }

  .method-step,
  .category-tile,
  .guide-card-link,
  .rcg-post-visual,
  .widget,
  .ad-slot {
    border-radius: 14px;
  }

  .card-visual {
    min-height: 150px;
  }

  .single-visual {
    min-height: 230px;
  }

  .visual-copy {
    max-width: 100%;
  }

  .visual-icon {
    opacity: 0.46;
  }

  .section-heading,
  .footer-bottom,
  .category-stat-row {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .pagination-wrap .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
