/*
Theme Name: Astra Child - The Financial Compass
Theme URI: https://tfcompass.com/
Description: Child theme for The Financial Compass. Carries the TFC Ledger Blue design system: navy and medium blue over warm off-white, serif headlines, generous whitespace, flexbox layout.
Author: The Financial Compass
Template: astra
Version: 1.5.0
Text Domain: astra-child
*/

/* ------------------------------------------------------------------
   1. Design tokens. Every colour, font, size, and spacing value used
      anywhere on the site is defined once here and referenced with var().
   ------------------------------------------------------------------ */
:root {
  /* Colour */
  --color-bg: #F8F6F1;
  --color-surface: #FFFFFF;
  --color-ink: #232B33;
  --color-ink-soft: #5A6673;
  --color-accent: #1E5FA8;
  --color-navy: #0E3A66;
  --color-blue-pale: #EDF3FA;
  --color-blue-light: #A9CBEA;
  --color-line: #E3E7ED;
  --color-focus: #1E5FA8;
  --color-error: #A83A2E;
  --color-error-bg: #FBEDEC;
  --shadow-card-hover: 0 4px 14px rgba(14, 58, 102, 0.10);

  /* Typography */
  --font-heading: "Source Serif 4", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", "Arial", sans-serif;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;
  --tracking-wide: 0.06em;

  /* Font size scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 1.9rem);
  --text-3xl: clamp(1.9rem, 1.5rem + 1.8vw, 2.4rem);
  --text-4xl: clamp(2.2rem, 1.7rem + 2.6vw, 3rem);

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;

  /* Widths */
  --width-container: 1200px;
  --width-narrow: 760px;
  --width-lede: 640px;

  /* Component sizes */
  --size-logo: 110px;
  --size-logo-footer: 72px;
  --size-touch: 44px;
  --border-hairline: 1px;
  --border-emphasis: 3px;
  --search-width: 170px;
}

/* ------------------------------------------------------------------
   2. Self-hosted fonts.
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
}

/* ------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------ */
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}
#content,
.site-content,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  background: transparent;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-navy);
}
a {
  color: var(--color-accent);
}
a:hover {
  color: var(--color-navy);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  max-width: var(--width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* ------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------ */
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-touch);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-primary {
  background: var(--color-accent);
  color: var(--color-surface);
  border: var(--border-hairline) solid var(--color-accent);
}
.button-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-surface);
}
.button-secondary {
  background: transparent;
  color: var(--color-navy);
  border: var(--border-hairline) solid var(--color-navy);
}
.button-secondary:hover {
  background: var(--color-blue-pale);
  color: var(--color-navy);
}

/* ------------------------------------------------------------------
   5. Utility bar and header
   ------------------------------------------------------------------ */
.utility-bar {
  background: var(--color-navy);
}
.utility-inner {
  display: flex;
  justify-content: flex-end;
}
.utility-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: var(--space-2xs) 0;
}
.utility-list a {
  color: var(--color-blue-light);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
}
.utility-list a:hover {
  color: var(--color-surface);
}
.site-header {
  background: var(--color-surface);
  border-bottom: var(--border-hairline) solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: calc(var(--size-logo) + var(--space-sm) + var(--space-sm));
  flex-wrap: wrap;
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}
.brand-logo {
  width: var(--size-logo);
  height: var(--size-logo);
}
.brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-width: var(--size-touch);
  min-height: var(--size-touch);
  margin-left: auto;
  background: transparent;
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: var(--space-2xs);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
}
.nav-toggle-label {
  font-size: var(--text-xs);
  color: var(--color-navy);
  line-height: 1;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch);
  padding: 0 var(--space-2xs);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-bottom: var(--border-emphasis) solid transparent;
}
.nav-list a:hover,
.nav-list .current-menu-item a {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.search-form {
  display: flex;
  gap: var(--space-2xs);
}
.search-input {
  width: var(--search-width);
  min-height: var(--size-touch);
  padding: var(--space-2xs) var(--space-xs);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink);
  background: var(--color-surface);
}
.search-submit {
  min-height: var(--size-touch);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-accent);
  color: var(--color-surface);
  border: var(--border-hairline) solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.search-submit:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

/* ------------------------------------------------------------------
   6. Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--color-navy);
  color: var(--color-blue-light);
  margin-top: var(--space-2xl);
}
.footer-top {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1 1 240px;
  max-width: 300px;
}
.footer-logo-tile {
  display: inline-flex;
  padding: var(--space-2xs);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.footer-logo {
  width: var(--size-logo-footer);
  height: var(--size-logo-footer);
}
.footer-statement {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-blue-light);
}
.footer-cols {
  flex: 3 1 560px;
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.footer-col {
  flex: 1 1 160px;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-surface);
  margin: 0 0 var(--space-sm);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-links a {
  color: var(--color-blue-light);
  font-size: var(--text-sm);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-surface);
  text-decoration: underline;
}
.footer-bottom {
  border-top: var(--border-hairline) solid var(--color-accent);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.footer-copyright,
.footer-note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-blue-light);
}

/* ------------------------------------------------------------------
   7. Page shells and sections
   ------------------------------------------------------------------ */
.page-head {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
}
.page-title {
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-sm);
}
.page-lede {
  max-width: var(--width-lede);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  font-weight: var(--weight-semibold);
  margin: 0;
}
/* A section directly after a page or hub header should not add its own top
   padding on top of the header's bottom padding, which created a large gap. */
.page-head + .section,
.hub-head + .section {
  padding-top: 0;
}
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.hub-head {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
  flex-wrap: wrap;
}
.hub-head-content {
  flex: 1 1 420px;
  max-width: var(--width-lede);
}
.hub-head-media {
  flex: 1 1 320px;
  display: flex;
}
.hub-image {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.topic-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: var(--space-md) 0 var(--space-xs);
}
.topic-list {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch);
  padding: 0 var(--space-sm);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.topic-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.section-band {
  background: var(--color-blue-pale);
}
.section-navy {
  background: var(--color-navy);
}
.section-navy .section-title,
.section-navy .section-lede {
  color: var(--color-surface);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.section-title {
  font-size: var(--text-2xl);
  margin: 0;
}
.section-lede {
  max-width: var(--width-lede);
  color: var(--color-ink-soft);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin: var(--space-xs) 0 0;
}
.section-more {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------------ */
.hero {
  background-color: var(--color-navy);
  background-image:
    linear-gradient(105deg, rgba(14, 58, 102, 0.94) 0%, rgba(14, 58, 102, 0.82) 28%, rgba(14, 58, 102, 0.45) 56%, rgba(14, 58, 102, 0.12) 100%),
    url("https://tfcompass.com/wp-content/uploads/2026/09/financial-compass-hero.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-md);
  min-height: 520px;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.hero-content {
  max-width: 600px;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-sm);
  color: var(--color-blue-light);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.hero-title {
  color: var(--color-surface);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  margin: 0 0 var(--space-sm);
}
.hero-lede {
  color: var(--color-blue-light);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-md);
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero .button-secondary {
  color: var(--color-surface);
  border-color: var(--color-blue-light);
}
.hero .button-secondary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-surface);
}
.hero-media {
  flex: 1 1 380px;
  display: flex;
}
.hero-image {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* ------------------------------------------------------------------
   9. Cards
   ------------------------------------------------------------------ */
.card-grid {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.card-category,
.card-article,
.card-tool {
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 100%;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.card-category:hover,
.card-article:hover,
.card-tool:hover {
  box-shadow: var(--shadow-card-hover);
}
.card-media-link {
  display: flex;
}
.card-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-md);
  flex: 1 1 auto;
}
.tag-category {
  display: inline-block;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-blue-pale);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
}
.tag-category:hover {
  background: var(--color-blue-light);
  color: var(--color-navy);
}
.card-title {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  margin: 0;
}
.card-title-link {
  color: var(--color-navy);
  text-decoration: none;
}
.card-title-link:hover {
  color: var(--color-accent);
}
.card-text {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}
.card-meta {
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  margin: 0;
  margin-top: auto;
}
.card-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  margin-top: auto;
}
.card-link:hover {
  text-decoration: underline;
}
.card-tool-status {
  display: inline-block;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* ------------------------------------------------------------------
   10. Callouts, boxes, panels
   ------------------------------------------------------------------ */
.box-disclosure,
.box-sources,
.box-note {
  background: var(--color-blue-pale);
  border-left: var(--border-emphasis) solid var(--color-navy);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.box-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0 0 var(--space-xs);
}
.box-sources ul,
.box-note ul {
  margin: 0;
  padding-left: var(--space-md);
}
.box-sources li {
  margin-bottom: var(--space-2xs);
}
.callout-newsletter {
  background: var(--color-navy);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}
.callout-newsletter-content {
  flex: 1 1 320px;
  max-width: var(--width-lede);
}
.callout-newsletter-title {
  color: var(--color-surface);
  font-size: var(--text-xl);
  margin: 0 0 var(--space-xs);
}
.callout-newsletter-text {
  color: var(--color-blue-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}
.callout-newsletter-action {
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------
   11. Forms (visual mockups)
   ------------------------------------------------------------------ */
.form-mockup,
.form-contact {
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  max-width: var(--width-narrow);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-status {
  max-width: var(--width-narrow);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.form-status-success {
  background: var(--color-blue-pale);
  border-left: var(--border-emphasis) solid var(--color-accent);
  color: var(--color-navy);
}
.form-status-error {
  background: var(--color-error-bg);
  border-left: var(--border-emphasis) solid var(--color-error);
  color: var(--color-error);
}
.form-hp {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: -1px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}
.form-input,
.form-select,
.form-textarea {
  min-height: var(--size-touch);
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-surface);
}
.form-textarea {
  min-height: calc(var(--size-touch) * 3);
  resize: vertical;
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  margin: 0;
}
.mockup-notice {
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  margin: 0;
}
.newsletter-inline {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.newsletter-inline .form-input {
  flex: 1 1 220px;
}

/* ------------------------------------------------------------------
   12. Pathways (Start Here)
   ------------------------------------------------------------------ */
.pathway-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: var(--width-narrow);
}
.pathway-item {
  display: flex;
}
.pathway-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}
.pathway-link:hover {
  box-shadow: var(--shadow-card-hover);
}
.pathway-question {
  color: var(--color-ink);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}
.pathway-destination {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   13. Article typography and single post layout
   ------------------------------------------------------------------ */
.single-post .site-main .ast-container {
  max-width: var(--width-narrow);
}
.entry-title {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}
.single-post .entry-content,
.prose {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}
.single-post .entry-content p,
.prose p {
  margin-bottom: var(--space-md);
}
.single-post .entry-content h2,
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.single-post .entry-content h3,
.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.single-post .entry-content ul,
.single-post .entry-content ol,
.prose ul,
.prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}
.single-post .entry-content li,
.prose li {
  margin-bottom: var(--space-2xs);
}
.single-post .entry-content a,
.prose a {
  text-decoration: underline;
}
.single-post .entry-content img,
.prose img {
  border-radius: var(--radius-md);
}
.link-external {
  text-decoration: underline;
}
.link-external-mark {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}
.breadcrumbs {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-sm);
}
.breadcrumbs a {
  color: var(--color-ink-soft);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs-separator {
  color: var(--color-line);
}
.meta-line {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-md);
}
.meta-item {
  display: inline-flex;
}
.toc-box {
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
}
.toc-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0 0 var(--space-xs);
}
.toc-box ol {
  margin: 0;
  padding-left: var(--space-md);
}
.toc-box li {
  margin-bottom: var(--space-2xs);
}
.related-articles {
  margin-top: var(--space-xl);
}
.related-title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-md);
}

/* Astra single-post meta refinements */
.single-post .entry-meta,
.single-post .posted-on,
.ast-blog-meta-container {
  color: var(--color-ink-soft);
  font-size: var(--text-xs);
  text-transform: none;
}

/* ------------------------------------------------------------------
   14. Blog archive / category archive / search results
   ------------------------------------------------------------------ */
.archive .ast-article-post,
.blog .ast-article-post,
.search .ast-article-post {
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.archive .entry-title,
.blog .entry-title,
.search .entry-title {
  font-size: var(--text-xl);
}
.archive-description {
  max-width: var(--width-lede);
  color: var(--color-ink-soft);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}
.ast-pagination {
  font-family: var(--font-body);
}

/* ------------------------------------------------------------------
   15. Tables
   ------------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
}
.single-post .entry-content table,
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-sm);
}
.single-post .entry-content th,
.prose th {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  text-align: left;
  color: var(--color-navy);
  border-bottom: var(--border-emphasis) solid var(--color-line);
  padding: var(--space-xs) var(--space-sm);
}
.single-post .entry-content td,
.prose td {
  border-bottom: var(--border-hairline) solid var(--color-line);
  padding: var(--space-xs) var(--space-sm);
  vertical-align: top;
}

/* ------------------------------------------------------------------
   16. Calculator page structure
   ------------------------------------------------------------------ */
.calc-panel {
  display: flex;
  gap: var(--space-lg);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  flex-wrap: wrap;
}
.calc-inputs {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.calc-results {
  flex: 1 1 280px;
  background: var(--color-blue-pale);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.calc-result-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0;
}
.calc-result-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-navy);
  margin: 0;
}
.form-unit {
  font-weight: var(--weight-regular);
  color: var(--color-ink-soft);
}
.calc-headline {
  padding-bottom: var(--space-sm);
  border-bottom: var(--border-hairline) solid var(--color-blue-light);
}
.calc-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-ink);
}
.calc-row-value {
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
}
.calc-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: var(--border-hairline) solid var(--color-blue-light);
}
.calc-summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.calc-summary-row span:last-child {
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
}
.calc-note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}

/* ------------------------------------------------------------------
   17. 404 page
   ------------------------------------------------------------------ */
.error-page {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  max-width: var(--width-narrow);
}
.error-title {
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-sm);
}
.error-lede {
  color: var(--color-ink-soft);
  font-size: var(--text-md);
  margin: 0 0 var(--space-md);
}
.error-search {
  margin-bottom: var(--space-lg);
}
.error-links-heading {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-sm);
}
.error-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch);
  padding: 0 var(--space-sm);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
.error-links a:hover {
  border-color: var(--color-accent);
}

/* ------------------------------------------------------------------
   18. Accessibility helpers
   ------------------------------------------------------------------ */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  width: 1px;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-navy);
  color: var(--color-surface);
  text-decoration: none;
}

/* ------------------------------------------------------------------
   19. Responsive: tablet (max 1024px) and mobile (max 640px).
       Mobile layouts are deliberate single-column stacks.
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .nav-primary {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
  .tfc-js .nav-primary {
    display: none;
  }
  .tfc-js .nav-primary.is-open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a {
    border-bottom: var(--border-hairline) solid var(--color-line);
    width: 100%;
  }
  .nav-list a:hover,
  .nav-list .current-menu-item a {
    border-bottom-color: var(--color-line);
    background: var(--color-blue-pale);
  }
  .search-form {
    width: 100%;
  }
  .search-input {
    flex: 1 1 auto;
    width: auto;
  }
  .hero-inner {
    gap: var(--space-lg);
  }
  .footer-cols {
    gap: var(--space-md);
  }
}
@media (max-width: 640px) {
  :root {
    --size-logo: 60px;
  }
  .utility-bar {
    display: none;
  }
  .header-inner {
    gap: var(--space-xs);
  }
  .brand-name {
    font-size: var(--text-md);
  }
  .page-head {
    padding-top: var(--space-lg);
  }
  .section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(14, 58, 102, 0.88) 0%, rgba(14, 58, 102, 0.72) 55%, rgba(14, 58, 102, 0.6) 100%),
      url("https://tfcompass.com/wp-content/uploads/2026/09/financial-compass-hero.jpg");
    background-position: center;
  }
  .hero-inner {
    align-items: flex-start;
    min-height: 440px;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
  .hub-head {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding-top: var(--space-lg);
  }
  .hub-head-content,
  .hub-head-media {
    flex: 1 1 auto;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    flex: 1 1 auto;
  }
  .card-grid {
    flex-direction: column;
  }
  .card-category,
  .card-article,
  .card-tool {
    flex-basis: auto;
  }
  .callout-newsletter {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
  }
  .callout-newsletter-action .button-primary {
    width: 100%;
  }
  .footer-top {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .footer-cols {
    flex-direction: column;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--space-2xs);
  }
  .pathway-link {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  .calc-panel {
    padding: var(--space-md);
  }
}

/* ------------------------------------------------------------------
   20. Context refinements: these follow Astra's entry-content rules
       in the cascade so component styling wins inside page content.
   ------------------------------------------------------------------ */
html,
body {
  overflow-x: clip;
}
.page #primary {
  margin-top: 0;
  margin-bottom: 0;
}
.entry-content > .hero,
.entry-content > .section-band,
.entry-content > .section-navy {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  color: var(--color-navy);
}
.hero .hero-title,
.callout-newsletter .callout-newsletter-title {
  color: var(--color-surface);
}
.callout-newsletter .callout-newsletter-text {
  color: var(--color-blue-light);
}
.entry-content a.button-primary,
.entry-content a.button-secondary,
.entry-content a.card-link,
.entry-content a.card-title-link,
.entry-content a.tag-category,
.entry-content a.topic-chip,
.entry-content a.pathway-link,
.entry-content a.section-more,
.entry-content a.card-media-link {
  text-decoration: none;
}
.entry-content a.button-primary,
.entry-content a.button-primary:hover {
  color: var(--color-surface);
}
.entry-content a.button-secondary {
  color: var(--color-navy);
}
.hero .button-secondary {
  color: var(--color-surface);
}
.entry-content .hero a.button-secondary {
  color: var(--color-surface);
}
.entry-content .hero a.button-secondary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-surface);
}
.entry-content a.card-title-link {
  color: var(--color-navy);
}
.entry-content a.card-title-link:hover {
  color: var(--color-accent);
}
.entry-content a.tag-category,
.entry-content a.topic-chip {
  color: var(--color-navy);
}
.entry-content a.topic-chip:hover {
  color: var(--color-accent);
}
