/* =========================================================
   SteadyRetire Custom CSS
   Includes: Tristan's existing table styles + Resources/Guides/Calculator pages
   Paste into Appearance > Customize > Additional CSS.
   Header nav separator CSS should stay in theme style.css, not here.
   ========================================================= */

/* Tristan's styles */
.api-field {
  color: #818a96;
}

@media screen and (max-width: 767px) {
  .mobile-scroll-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: #b8b8b8 #f1f1f1;
  }

  .mobile-scroll-table table {
    width: 850px;
    min-width: 850px;
    table-layout: auto;
  }

  .mobile-scroll-table th,
  .mobile-scroll-table td {
    min-width: 130px;
    padding: 12px 10px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .mobile-scroll-table th:first-child,
  .mobile-scroll-table td:first-child {
    min-width: 105px;
  }

  .mobile-scroll-table::before {
    content: "Swipe to view more →";
    display: block;
    width: 100%;
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
    padding-right: 4px;
    box-sizing: border-box;
  }

  .mobile-scroll-table::-webkit-scrollbar {
    height: 8px;
  }

  .mobile-scroll-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 999px;
  }

  .mobile-scroll-table::-webkit-scrollbar-thumb {
    background: #b8b8b8;
    border-radius: 999px;
  }
}

/* =========================================================
   SteadyRetire Resources / Guides / Calculators
   ========================================================= */

.srg-page {
  --srg-navy: #0d314f;
  --srg-navy-dark: #071d33;
  --srg-blue: #70b6d5;
  --srg-blue-soft: #d9eef6;
  --srg-blue-pale: #f3f9fc;
  --srg-ink: #101828;
  --srg-muted: #667085;
  --srg-border: #d7e5ec;
  --srg-white: #ffffff;
  --srg-shadow: 0 18px 45px rgba(13, 49, 79, 0.08);

  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 22px 76px;
  color: var(--srg-ink);
  font-family: inherit;
}

.srg-page p,
.srg-page li {
  color: var(--srg-muted);
  font-size: 17px;
  line-height: 1.72;
}

/* Breadcrumbs */
.srg-page .srg-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--srg-muted);
  font-size: 14px;
  line-height: 1.4;
}

.srg-page .srg-breadcrumbs a {
  color: var(--srg-navy);
  text-decoration: none;
  font-weight: 700;
}

.srg-page .srg-breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.srg-page .srg-breadcrumbs span {
  color: var(--srg-muted);
}

.srg-page .srg-breadcrumb-separator {
  color: #98a2b3;
}

/* Shared sections */
.srg-page .srg-section {
  margin: 64px 0;
}

.srg-page .srg-section-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.srg-page .srg-section-header h2 {
  margin: 0 0 10px;
  color: var(--srg-navy-dark);
  font-family: inherit;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.srg-page .srg-section-header p {
  margin: 0;
  color: var(--srg-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* Main hub hero */
.srg-page .srg-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(112, 182, 213, 0.22), transparent 32%),
    linear-gradient(135deg, var(--srg-navy-dark) 0%, var(--srg-navy) 64%, #174f73 100%);
  color: var(--srg-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 54px 48px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.srg-page .srg-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--srg-blue-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.srg-page .srg-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--srg-white);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.srg-page .srg-hero p {
  max-width: 710px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.65;
}

/* Buttons used in heroes/CTAs */
.srg-page .srg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.srg-page .srg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.srg-page .srg-button-primary {
  background: var(--srg-blue-soft);
  color: var(--srg-navy-dark);
}

.srg-page .srg-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--srg-white);
  border-color: rgba(255, 255, 255, 0.28);
}

/* General grids/cards still used on Resources page and helper sections */
.srg-page .srg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.srg-page .srg-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.srg-page .srg-card {
  background: var(--srg-white);
  border: 1px solid #d8e6ed;
  border-radius: 10px;
  padding: 30px;
  box-shadow: none;
  position: relative;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.srg-page .srg-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--srg-blue);
}

.srg-page .srg-card:hover {
  border-color: rgba(112, 182, 213, 0.65);
  box-shadow: 0 12px 32px rgba(13, 49, 79, 0.06);
}

.srg-page .srg-card h3 {
  margin: 0 0 12px;
  color: var(--srg-navy-dark);
  font-family: inherit;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.srg-page .srg-card p {
  margin: 0 0 18px;
  color: var(--srg-muted);
  font-size: 16.5px;
  line-height: 1.62;
}

.srg-page .srg-card ul {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--srg-muted);
}

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

.srg-page .srg-card-link {
  color: var(--srg-navy);
  font-weight: 800;
  text-decoration: none;
}

.srg-page .srg-card-link:hover {
  color: #174f73;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Topic labels */
.srg-page .srg-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 22px;
}

.srg-page .srg-pill {
  color: var(--srg-navy);
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.srg-page .srg-pill:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--srg-blue);
}

/* Feature / resource list / CTA */
.srg-page .srg-feature {
  background: var(--srg-blue-pale);
  border: 1px solid var(--srg-border);
  border-radius: 16px;
  padding: 32px;
}

.srg-page .srg-feature h2 {
  margin-top: 0;
  color: var(--srg-navy-dark);
}

.srg-page .srg-resource-list {
  display: grid;
  gap: 16px;
}

.srg-page .srg-resource-item {
  background: var(--srg-white);
  border: 1px solid var(--srg-border);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 8px 24px rgba(13, 49, 79, 0.04);
}

.srg-page .srg-resource-item h3 {
  margin: 0 0 8px;
  color: var(--srg-navy-dark);
}

.srg-page .srg-resource-item p {
  margin: 0 0 12px;
  color: var(--srg-muted);
  line-height: 1.6;
}

.srg-page .srg-cta {
  background:
    radial-gradient(circle at 92% 10%, rgba(112, 182, 213, 0.26), transparent 28%),
    var(--srg-navy-dark);
  color: var(--srg-white);
  border-radius: 18px;
  padding: 40px;
  margin-top: 56px;
}

.srg-page .srg-cta h2 {
  margin-top: 0;
  color: var(--srg-white);
  letter-spacing: -0.025em;
}

.srg-page .srg-cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.srg-page .srg-disclaimer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--srg-border);
  color: var(--srg-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   Individual guide pages
   ========================================================= */

/* Guide cover hero */
.srg-page .srg-guide-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 182, 213, 0.24), transparent 36%),
    linear-gradient(180deg, #f6fbfd 0%, #ffffff 100%);
  border: 1px solid var(--srg-border);
  border-radius: 18px;
  padding: 68px 44px 62px;
  margin-bottom: 56px;
  text-align: center;
  box-shadow: 0 16px 46px rgba(13, 49, 79, 0.07);
}

.srg-page .srg-guide-eyebrow,
.srg-page .srg-calculator-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 9px 15px;
  color: var(--srg-navy);
  background: #ffffff;
  border: 1px solid var(--srg-border);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(13, 49, 79, 0.05);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.srg-page .srg-guide-hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  color: var(--srg-navy-dark);
  font-family: inherit;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.srg-page .srg-guide-hero p {
  max-width: 780px;
  margin: 0 auto 30px;
  color: var(--srg-muted);
  font-size: 19px;
  line-height: 1.72;
}

.srg-page .srg-guide-meta,
.srg-page .srg-calculator-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 28px auto 34px;
  color: var(--srg-navy);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.srg-page .srg-guide-meta span,
.srg-page .srg-calculator-meta span {
  display: inline-flex;
  align-items: center;
}

.srg-page .srg-guide-meta span:not(:last-child)::after,
.srg-page .srg-calculator-meta span:not(:last-child)::after {
  content: "·";
  margin: 0 16px;
  color: var(--srg-blue);
}

.srg-page .srg-guide-hero .srg-actions {
  justify-content: center;
}

.srg-page .srg-guide-hero .srg-button-primary {
  background: var(--srg-navy-dark);
  color: #ffffff;
}

.srg-page .srg-guide-hero .srg-button-secondary {
  background: #ffffff;
  color: var(--srg-navy);
  border-color: var(--srg-border);
}

/* Editorial brief */
.srg-page .srg-brief {
  background: #ffffff;
  border: 1px solid var(--srg-border);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(13, 49, 79, 0.045);
  overflow: hidden;
}

.srg-page .srg-brief-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--srg-border);
}

.srg-page .srg-brief-row:last-child {
  border-bottom: none;
}

.srg-page .srg-brief-number {
  color: var(--srg-blue);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.srg-page .srg-brief-row h3 {
  margin: 0 0 6px;
  color: var(--srg-navy-dark);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.srg-page .srg-brief-row p {
  margin: 0;
  color: var(--srg-muted);
  font-size: 16.5px;
  line-height: 1.62;
}

/* Guide roadmap */
.srg-page .srg-guide-nav {
  display: grid;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--srg-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(13, 49, 79, 0.04);
}

.srg-page .srg-guide-nav a {
  color: var(--srg-navy);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 0;
  border-bottom: 1px solid var(--srg-border);
}

.srg-page .srg-guide-nav a:last-child {
  border-bottom: none;
}

.srg-page .srg-guide-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Chapter blocks */
.srg-page .srg-guide-chapter {
  background: #ffffff;
  border: 1px solid var(--srg-border);
  border-radius: 12px;
  padding: 38px;
  margin-bottom: 26px;
  box-shadow: none;
  position: relative;
}

.srg-page .srg-guide-chapter::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--srg-blue);
}

.srg-page .srg-chapter-media {
  margin: -6px 0 30px;
  border: 1px solid #d8e6ed;
  border-radius: 10px;
  overflow: hidden;
  background: var(--srg-blue-pale);
}

.srg-page .srg-chapter-media img {
  display: block;
  width: 100%;
  height: auto;
}

.srg-page .srg-chapter-media figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--srg-muted);
  background: #ffffff;
  border-top: 1px solid var(--srg-border);
}

.srg-page .srg-chapter-label {
  display: block;
  margin-bottom: 10px;
  color: var(--srg-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.srg-page .srg-guide-chapter h2 {
  margin: 0 0 16px;
  color: var(--srg-navy-dark);
  font-family: inherit;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.srg-page .srg-guide-chapter h3 {
  margin: 24px 0 8px;
  color: var(--srg-navy-dark);
  font-family: inherit;
  font-size: 20px;
  line-height: 1.25;
}

.srg-page .srg-guide-chapter p {
  color: var(--srg-muted);
  font-size: 17px;
  line-height: 1.65;
}

.srg-page .srg-guide-chapter ul {
  color: var(--srg-muted);
  line-height: 1.6;
  padding-left: 20px;
}

.srg-page .srg-guide-chapter li {
  margin-bottom: 9px;
}

.srg-page .srg-chapter-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--srg-border);
  padding-top: 18px;
  margin-top: 24px;
}

.srg-page .srg-best-for {
  max-width: 620px;
  color: var(--srg-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   Calculator page wrappers
   ========================================================= */

.srg-page .srg-calculator-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 182, 213, 0.20), transparent 34%),
    linear-gradient(180deg, #f6fbfd 0%, #ffffff 100%);
  border: 1px solid var(--srg-border);
  border-radius: 24px;
  padding: 60px 44px 52px;
  margin-bottom: 34px;
  text-align: center;
  box-shadow: 0 16px 46px rgba(13, 49, 79, 0.06);
}

.srg-page .srg-calculator-eyebrow {
  margin-bottom: 22px;
}

.srg-page .srg-calculator-hero h1 {
  max-width: 900px;
  margin: 0 auto 18px;
  color: var(--srg-navy-dark);
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.srg-page .srg-calculator-hero p {
  max-width: 780px;
  margin: 0 auto 26px;
  color: var(--srg-muted);
  font-size: 19px;
  line-height: 1.7;
}

.srg-page .srg-calculator-meta {
  margin: 26px auto 0;
}

/* Do not alter calculator logic; only hide duplicate built-in title panels */
.srg-page #rtCalcApp {
  margin-top: 0;
}

.srg-page #rtCalcApp .rt-hero,
.srg-page #ss-benefit-calculator .sscalc-hero,
.srg-page #state-tax-calculator .tax-header {
  display: none;
}

.srg-page #ss-benefit-calculator.sscalc {
  margin-top: 0;
  padding: 0;
}

.srg-page #state-tax-calculator {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.srg-page #state-tax-calculator .tax-wrap {
  margin-top: 0;
}

/* =========================================================
   Guides + Calculators hub compact rows
   ========================================================= */

.srg-page .srg-tool-list,
.srg-page .srg-guide-list {
  display: grid;
  gap: 14px;
}

.srg-page .srg-tool-card,
.srg-page .srg-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--srg-border);
  border-left: 4px solid var(--srg-blue);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: none;
}

.srg-page .srg-tool-card:hover,
.srg-page .srg-guide-row:hover {
  box-shadow: 0 10px 28px rgba(13, 49, 79, 0.05);
}

.srg-page .srg-tool-card h3,
.srg-page .srg-guide-row h3 {
  margin: 0 0 8px;
  color: var(--srg-navy-dark);
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.srg-page .srg-tool-card p,
.srg-page .srg-guide-row p {
  max-width: 760px;
  margin: 0;
  color: var(--srg-muted);
  font-size: 16.5px;
  line-height: 1.58;
}

.srg-page .srg-tool-note,
.srg-page .srg-guide-note {
  margin-top: 9px;
  color: var(--srg-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.srg-page .srg-tool-note strong,
.srg-page .srg-guide-note strong {
  color: var(--srg-navy-dark);
}

.srg-page .srg-tool-side,
.srg-page .srg-guide-side {
  min-width: 285px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.srg-page .srg-tool-side .srg-pill-row,
.srg-page .srg-guide-side .srg-pill-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  white-space: nowrap;
}

.srg-page .srg-tool-side .srg-pill,
.srg-page .srg-guide-side .srg-pill {
  font-size: 10.5px;
  letter-spacing: 0.07em;
}

.srg-page .srg-tool-side .srg-pill:not(:last-child)::after,
.srg-page .srg-guide-side .srg-pill:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: var(--srg-blue);
}

/* Editorial row links, replacing bubbly CTA pills */
.srg-page .srg-tool-side .srg-card-link,
.srg-page .srg-guide-side .srg-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(112, 182, 213, 0.65);
  border-radius: 0;
  padding: 0 0 4px;
  color: var(--srg-navy-dark);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.srg-page .srg-tool-side .srg-card-link:hover,
.srg-page .srg-guide-side .srg-card-link:hover {
  color: var(--srg-navy);
  border-bottom-color: var(--srg-blue);
  text-decoration: none;
}

/* =========================================================
   Legacy fallback for older takeaway markup, if still present
   ========================================================= */

.srg-page .srg-takeaway-grid {
  display: block;
}

.srg-page .srg-takeaway {
  background: #ffffff;
  border: none;
  border-top: 1px solid #d8e6ed;
  border-radius: 0;
  padding: 22px 0;
  color: var(--srg-muted);
}

.srg-page .srg-takeaway:last-child {
  border-bottom: 1px solid #d8e6ed;
}

.srg-page .srg-takeaway strong {
  display: block;
  color: var(--srg-navy-dark);
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 5px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .srg-page .srg-grid,
  .srg-page .srg-grid-2 {
    grid-template-columns: 1fr;
  }

  .srg-page .srg-hero {
    padding: 42px 28px;
  }

  .srg-page .srg-guide-hero,
  .srg-page .srg-calculator-hero {
    padding: 48px 24px 44px;
    text-align: left;
  }

  .srg-page .srg-guide-hero h1,
  .srg-page .srg-guide-hero p,
  .srg-page .srg-calculator-hero h1,
  .srg-page .srg-calculator-hero p {
    margin-left: 0;
    margin-right: 0;
  }

  .srg-page .srg-guide-meta,
  .srg-page .srg-calculator-meta,
  .srg-page .srg-guide-hero .srg-actions {
    justify-content: flex-start;
  }

  .srg-page .srg-guide-chapter {
    padding: 28px 22px;
  }

  .srg-page .srg-tool-card,
  .srg-page .srg-guide-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .srg-page .srg-tool-side,
  .srg-page .srg-guide-side {
    min-width: 0;
    text-align: left;
    align-items: flex-start;
  }

  .srg-page .srg-tool-side .srg-pill-row,
  .srg-page .srg-guide-side .srg-pill-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .srg-page .srg-brief-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
}

/* Individual guide overview: compact brief + roadmap */

.srg-page .srg-guide-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.srg-page .srg-overview-panel {
  background: #ffffff;
  border: 1px solid var(--srg-border);
  border-left: 4px solid var(--srg-blue);
  border-radius: 12px;
  padding: 24px;
  box-shadow: none;
}

.srg-page .srg-overview-panel h2 {
  margin: 0 0 8px;
  color: var(--srg-navy-dark);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.srg-page .srg-overview-intro {
  margin: 0 0 18px;
  color: var(--srg-muted);
  font-size: 16px;
  line-height: 1.55;
}

.srg-page .srg-brief-compact {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--srg-border);
}

.srg-page .srg-brief-compact-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--srg-border);
}

.srg-page .srg-brief-compact-number {
  color: var(--srg-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.srg-page .srg-brief-compact-row p {
  margin: 0;
  color: var(--srg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.srg-page .srg-brief-compact-row strong {
  color: var(--srg-navy-dark);
}

.srg-page .srg-roadmap-compact {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--srg-border);
}

.srg-page .srg-roadmap-compact a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--srg-border);
  color: var(--srg-navy-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.srg-page .srg-roadmap-compact a:hover {
  color: var(--srg-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.srg-page .srg-guide-use-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--srg-border);
  color: var(--srg-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.srg-page .srg-guide-use-note strong {
  color: var(--srg-navy-dark);
}

@media (max-width: 900px) {
  .srg-page .srg-guide-overview {
    grid-template-columns: 1fr;
  }

  .srg-page .srg-overview-panel {
    padding: 22px;
  }
}

/* Helpful tools title highlight — hand-drawn marker style */

.srg-page #tools .srg-card h3 {
  display: inline-block;
  position: relative;
  z-index: 0;
  background: none;
}

.srg-page #tools .srg-card h3::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 54%;
  height: 0.42em;
  background: rgba(112, 182, 213, 0.26);
  border-radius: 999px 42% 999px 48%;
  transform: rotate(-0.7deg) skewX(-7deg);
  z-index: -1;
}

.srg-page #tools .srg-card h3::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.02em;
  top: 63%;
  height: 0.18em;
  background: rgba(112, 182, 213, 0.18);
  border-radius: 55% 999px 48% 999px;
  transform: rotate(0.6deg) skewX(4deg);
  z-index: -1;
}
@media (max-width: 700px) {
  .srg-page #tools .srg-card h3::before,
  .srg-page #tools .srg-card h3::after {
    display: none;
  }

  .srg-page #tools .srg-card h3 {
    border-bottom: 3px solid rgba(112, 182, 213, 0.32);
  }
}

/* Helpful tools title highlight — brighter marker style */

.srg-page #tools .srg-card h3 {
  display: inline-block;
  position: relative;
  z-index: 0;
  background: none;
}

.srg-page #tools .srg-card h3::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 52%;
  height: 0.46em;
  background: #d9eef6;
  border-radius: 999px 42% 999px 48%;
  transform: rotate(-0.7deg) skewX(-7deg);
  z-index: -1;
}

.srg-page #tools .srg-card h3::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: -0.02em;
  top: 62%;
  height: 0.2em;
  background: rgba(112, 182, 213, 0.34);
  border-radius: 55% 999px 48% 999px;
  transform: rotate(0.6deg) skewX(4deg);
  z-index: -1;
}

@media (max-width: 700px) {
  .srg-page #tools .srg-card h3::before,
  .srg-page #tools .srg-card h3::after {
    display: none;
  }

  .srg-page #tools .srg-card h3 {
    border-bottom: 3px solid #d9eef6;
  }
}

/* Individual guide body shell */

.srg-page .srg-guide-shell {
  position: relative;
  border: 1px solid rgba(112, 182, 213, 0.34);
  border-left: 5px solid var(--srg-blue);
  border-radius: 28px;
  padding: 30px 30px 12px;
  margin: 0 0 72px;
  background:
    radial-gradient(circle at 8% 6%, rgba(217, 238, 246, 0.9), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(246, 224, 176, 0.42), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
  box-shadow: 0 18px 54px rgba(13, 49, 79, 0.055);
  overflow: hidden;
}

.srg-page .srg-guide-shell::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 32px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(112, 182, 213, 0.08);
  pointer-events: none;
}

.srg-page .srg-guide-shell::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: 120px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(246, 224, 176, 0.22);
  pointer-events: none;
}

.srg-page .srg-guide-shell > * {
  position: relative;
  z-index: 1;
}

.srg-page .srg-guide-shell .srg-guide-hero {
  margin-bottom: 48px;
}

.srg-page .srg-guide-shell .srg-section:last-child {
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .srg-page .srg-guide-shell {
    padding: 18px 16px 6px;
    border-radius: 22px;
    margin-bottom: 56px;
  }
}

/* Individual guide body shell — consistent horizontal wash */

.srg-page .srg-guide-shell {
  position: relative;
  border: 1px solid rgba(112, 182, 213, 0.34);
  border-left: 5px solid var(--srg-blue);
  border-radius: 28px;
  padding: 30px 30px 12px;
  margin: 0 0 72px;
  background:
   linear-gradient(
  90deg,
  rgba(217, 238, 246, 0.78) 0%,
  rgba(255, 255, 255, 0.98) 50%,
  rgba(250, 241, 219, 0.28) 100%
);
  box-shadow: 0 18px 54px rgba(13, 49, 79, 0.055);
  overflow: hidden;
}

/* Remove the big vertical/top-to-bottom color blobs */
.srg-page .srg-guide-shell::before,
.srg-page .srg-guide-shell::after {
  display: none;
}

/* Keep content above the background */
.srg-page .srg-guide-shell > * {
  position: relative;
  z-index: 1;
}

.srg-page .srg-guide-shell .srg-guide-hero {
  margin-bottom: 48px;
}

.srg-page .srg-guide-shell .srg-section:last-child {
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .srg-page .srg-guide-shell {
    padding: 18px 16px 6px;
    border-radius: 22px;
    margin-bottom: 56px;
  }
}

/* Guide chapter footer consistency */

.srg-page .srg-chapter-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  justify-content: initial;
}

.srg-page .srg-chapter-footer .srg-best-for {
  max-width: 760px;
}

.srg-page .srg-chapter-footer .srg-button {
  justify-self: end;
  white-space: nowrap;
}

/* Mobile: stack consistently */
@media (max-width: 800px) {
  .srg-page .srg-chapter-footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .srg-page .srg-chapter-footer .srg-button {
    justify-self: start;
    white-space: normal;
  }
}

/* Chapter cards can hold a small top-right illustration */
.srg-page .srg-guide-chapter .srg-chapter-media {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 96px;
  margin: 0;
  opacity: 0.92;
}

/* Only add this class on chapters that actually have an image */
.srg-page .srg-guide-chapter.has-chapter-icon {
  padding-right: 180px;
}

.srg-page .srg-guide-chapter .srg-chapter-media {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 110px;
  margin: 0;
}

.srg-page .srg-guide-chapter .srg-chapter-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Mobile: put it back into normal flow so it doesn't crowd text */
@media (max-width: 900px) {
  .srg-page .srg-guide-chapter.has-chapter-icon {
    padding-right: 20px;
  }

  .srg-page .srg-guide-chapter .srg-chapter-media {
    position: static;
    width: 92px;
    margin: 0 0 14px;
  }
}

/* Print / PDF version — only export the main guide shell */

@media print {
  @page {
    margin: 0.45in;
  }

  body * {
    visibility: hidden !important;
  }

  .srg-page .srg-guide-shell,
  .srg-page .srg-guide-shell * {
    visibility: visible !important;
  }

  .srg-page .srg-guide-shell {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid #d9eef6 !important;
    border-left: 5px solid #70b6d5 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .srg-page .srg-guide-shell::before,
  .srg-page .srg-guide-shell::after {
    display: none !important;
  }

  .srg-page .srg-guide-hero {
    margin-bottom: 28px !important;
  }

  .srg-page .srg-guide-hero .srg-actions {
    display: none !important;
  }

  .srg-page .srg-guide-chapter,
  .srg-page .srg-overview-panel {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  .srg-page .srg-chapter-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .srg-page a {
    color: inherit !important;
    text-decoration: none !important;
  }
}