/* ============================================================================
   TX Law Advisor — Theme stylesheet
   Typography + chrome (header, footer, hero, content scaffolding).
   Plugin-specific UI lives in the plugin's own CSS; this file only styles the
   editorial wrapper around it.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Fonts
   ---------------------------------------------------------------------------- */
@font-face {
  font-family: "DeLaPaz";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/DeLaPaz-ExtraLight.otf") format("opentype");
}
@font-face {
  font-family: "DeLaPaz";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/DeLaPaz-Light.otf") format("opentype");
}
@font-face {
  font-family: "DeLaPaz";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DeLaPaz-Regular.otf") format("opentype");
}
@font-face {
  font-family: "DeLaPaz";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/DeLaPaz-SemiBold.otf") format("opentype");
}
@font-face {
  font-family: "DeLaPaz Caps";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DeLaPaz-Caps-Regular.otf") format("opentype");
}

/* ----------------------------------------------------------------------------
   Design tokens
   ---------------------------------------------------------------------------- */
:root {
  /* Brand */
  --tx-navy:           #243164;
  --tx-navy-deep:      #182246;
  --tx-navy-lifted:    #303F78;
  --tx-navy-soft:      #42518B;
  --tx-red:            #BF2336;
  --tx-red-deep:       #9F1D2D;
  --tx-red-signal:     #D43A4B;
  --tx-red-tint:       #F8D9DE;

  /* Surfaces */
  --tx-white:          #FFFFFF;
  --tx-paper:          #F5F6FA;
  --tx-paper-blue:     #E8EBF4;
  --tx-divider:        #D8DDEB;
  --tx-mist:           #F1F2F6;

  /* Ink */
  --tx-black:          #000000;
  --tx-ink:            #111111;
  --tx-charcoal:       #252A38;
  --tx-grey:           #34394D;
  --tx-slate:          #5E6478;
  --tx-slate-light:    #A7ADBF;
  --tx-slate-pale:     #CBD0DE;

  /* Typography */
  --tx-font-sans:      "DeLaPaz", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tx-font-display:   "DeLaPaz", "DeLaPaz Caps", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --tx-space-1:  0.25rem;
  --tx-space-2:  0.5rem;
  --tx-space-3:  0.75rem;
  --tx-space-4:  1rem;
  --tx-space-5:  1.5rem;
  --tx-space-6:  2rem;
  --tx-space-7:  3rem;
  --tx-space-8:  4rem;
  --tx-space-9:  6rem;
  --tx-space-10: 9rem;

  /* Radii + elevation */
  --tx-radius-sm:  6px;
  --tx-radius:     12px;
  --tx-radius-lg:  20px;
  --tx-radius-xl:  28px;

  --tx-shadow-sm: 0 1px 2px rgba(24, 34, 70, 0.06), 0 4px 12px rgba(24, 34, 70, 0.05);
  --tx-shadow:    0 8px 24px rgba(24, 34, 70, 0.10);
  --tx-shadow-lg: 0 24px 50px rgba(24, 34, 70, 0.18);

  /* Layout */
  --tx-container:      1240px;
  --tx-container-wide: 1440px;
  --tx-gutter:         clamp(1rem, 4vw, 2rem);
  --tx-header-h:       82px;
}

/* ----------------------------------------------------------------------------
   Base reset (kept gentle so the block editor can still drive layout)
   ---------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tx-paper);
  color: var(--tx-ink);
  font-family: var(--tx-font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tx-navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

a {
  color: var(--tx-red);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover,
a:focus-visible {
  color: var(--tx-red-deep);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: 0;
  border-top: 1px solid var(--tx-divider);
  margin: var(--tx-space-7) 0;
}

::selection {
  background: var(--tx-navy);
  color: #fff;
}

/* ----------------------------------------------------------------------------
   Typography (per brand rules: caps + 1px tracking on headings, no tracking on body)
   ---------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.tx-heading {
  font-family: var(--tx-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tx-navy);
  margin: 0 0 var(--tx-space-4);
  line-height: 1.1;
}

h1, .tx-h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: var(--tx-space-5);
}
h2, .tx-h2 { font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.1; }
h3, .tx-h3 { font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.2; font-weight: 400; }
h4, .tx-h4 { font-size: 1.375rem; line-height: 1.3; }
h5, .tx-h5 { font-size: 1.125rem; line-height: 1.35; }
h6, .tx-h6 { font-size: 0.875rem; line-height: 1.4; }

.tx-display {
  font-family: var(--tx-font-display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  color: var(--tx-navy);
}

.tx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tx-font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--tx-red);
  margin: 0 0 var(--tx-space-3);
}

.tx-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

p, ul, ol, blockquote, dl, table {
  margin: 0 0 var(--tx-space-4);
}

p {
  font-weight: 300;
  letter-spacing: 0;
}

.tx-lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--tx-grey);
  font-weight: 200;
}

blockquote {
  border-left: 3px solid var(--tx-red);
  padding: var(--tx-space-3) var(--tx-space-5);
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--tx-grey);
}

code, kbd, pre, samp {
  font-family: SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--tx-mist);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------------------
   Layout helpers
   ---------------------------------------------------------------------------- */

.tx-container {
  width: 100%;
  max-width: var(--tx-container);
  margin: 0 auto;
  padding-left: var(--tx-gutter);
  padding-right: var(--tx-gutter);
}

.tx-container--wide {
  max-width: var(--tx-container-wide);
}

.tx-section {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.tx-section--snug {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.tx-section--navy {
  /* Dark navy → lighter navy (no red gradients per brand guidance). */
  background: linear-gradient(180deg, var(--tx-navy-deep) 0%, var(--tx-navy) 100%);
  color: var(--tx-white);
}
.tx-section--navy h1,
.tx-section--navy h2,
.tx-section--navy h3,
.tx-section--navy h4,
.tx-section--navy .tx-eyebrow {
  color: var(--tx-white);
}
.tx-section--navy .tx-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}
.tx-section--navy p {
  color: rgba(255, 255, 255, 0.82);
}

.tx-section--paper {
  background: var(--tx-paper);
}

.tx-section--mist {
  background: var(--tx-mist);
}

.tx-section--white {
  background: var(--tx-white);
}

/* ----------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------------- */

/*
 * Shared button shell — every theme button (`.tx-btn*`) inherits these so
 * border-radius / padding / typography never drift between variants.
 */
.tx-btn,
.tx-btn-ghost,
.tx-btn-secondary,
.tx-btn-on-dark,
a.tx-btn,
a.tx-btn-ghost,
a.tx-btn-secondary,
a.tx-btn-on-dark,
button.tx-btn,
button.tx-btn-ghost,
button.tx-btn-secondary,
button.tx-btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--tx-font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

/* Primary — solid red CTA */
.tx-btn,
a.tx-btn,
button.tx-btn {
  background: var(--tx-red);
  color: var(--tx-white);
  box-shadow: 0 4px 18px rgba(191, 35, 54, 0.28);
}
.tx-btn:hover,
.tx-btn:focus-visible {
  background: var(--tx-red-deep);
  color: var(--tx-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(159, 29, 45, 0.34);
}

/* Secondary — solid navy */
.tx-btn-secondary,
a.tx-btn-secondary,
button.tx-btn-secondary {
  background: var(--tx-navy);
  color: var(--tx-white);
  box-shadow: 0 4px 18px rgba(36, 49, 100, 0.25);
}
.tx-btn-secondary:hover,
.tx-btn-secondary:focus-visible {
  background: var(--tx-navy-deep);
  color: var(--tx-white);
  transform: translateY(-1px);
}

/* Ghost — outlined, transparent */
.tx-btn-ghost,
a.tx-btn-ghost,
button.tx-btn-ghost {
  background: transparent;
  color: var(--tx-navy);
  border-color: var(--tx-divider);
  box-shadow: none;
}
.tx-btn-ghost:hover,
.tx-btn-ghost:focus-visible {
  background: var(--tx-paper-blue);
  border-color: var(--tx-navy);
  color: var(--tx-navy-deep);
}

/* On-dark — white pill that pops over hero/CTA backgrounds. Inherits all
   shape/typography from the shared shell so it's never accidentally square. */
.tx-btn-on-dark,
a.tx-btn-on-dark,
button.tx-btn-on-dark {
  background: var(--tx-white);
  color: var(--tx-navy-deep);
  border-color: var(--tx-white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.tx-btn-on-dark:hover,
.tx-btn-on-dark:focus-visible {
  background: var(--tx-paper-blue);
  color: var(--tx-navy-deep);
  border-color: var(--tx-paper-blue);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------------------
   Site header
   ---------------------------------------------------------------------------- */

.tx-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--tx-divider);
}

.tx-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tx-space-5);
  min-height: var(--tx-header-h);
}

.tx-site-header__brand {
  /* flex-shrink: 0 prevents the brand from getting squeezed when the rest of
     the header (hamburger + action buttons) competes for horizontal space on
     small viewports — that competition was distorting the logo aspect ratio. */
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--tx-navy);
}

.tx-site-header__brand img,
.tx-site-header__brand .tx-brand-mark {
  /* Override the global `img { max-width: 100%; height: auto }` reset so the
     mark keeps its intrinsic aspect ratio (horizontal logo ≈5.47:1). */
  display: block;
  height: 44px;
  width: auto;
  max-width: min(260px, 58vw);
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .tx-site-header__brand img,
  .tx-site-header__brand .tx-brand-mark {
    height: 34px;
    max-height: 34px;
    max-width: min(220px, 50vw);
  }

  .tx-site-header__inner {
    gap: 8px;
    min-width: 0;
  }
}

.tx-site-header__nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--tx-space-5);
  align-items: center;
}

.tx-nav-list a {
  font-family: var(--tx-font-display);
  font-weight: 600;
  font-size: 0.78125rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tx-grey);
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color 0.15s ease;
}

.tx-nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: var(--tx-red);
  transition: width 0.18s ease;
}

.tx-nav-list a:hover,
.tx-nav-list a:focus-visible,
.tx-nav-list .current-menu-item > a,
.tx-nav-list .current_page_item > a {
  color: var(--tx-navy);
}

.tx-nav-list a:hover::after,
.tx-nav-list .current-menu-item > a::after,
.tx-nav-list .current_page_item > a::after {
  width: 100%;
}

.tx-site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tx-site-header__actions .tx-btn,
.tx-site-header__actions .tx-btn-ghost,
.tx-site-header__actions .tx-btn-secondary {
  padding: 10px 18px;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  border-radius: 999px;
}

/* Mobile nav toggle */
.tx-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--tx-divider);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--tx-navy);
}

.tx-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 960px) {
  .tx-nav-toggle { display: inline-flex; flex-direction: column; }

  .tx-site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--tx-divider);
    padding: 18px var(--tx-gutter);
    box-shadow: var(--tx-shadow);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .tx-site-header.is-nav-open .tx-site-header__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .tx-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--tx-space-3);
    width: 100%;
  }

  .tx-nav-list a {
    padding: 10px 0;
    border-bottom: 1px solid var(--tx-divider);
  }

  .tx-nav-list a::after { display: none; }

  .tx-site-header__actions .tx-btn,
  .tx-site-header__actions .tx-btn-ghost {
    padding: 8px 14px;
    font-size: 0.7rem;
  }
}

/* ----------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------------- */

.tx-hero {
  position: relative;
  overflow: hidden;
  /* Dark navy → mid navy → lighter navy. No red gradients, no purple bleed. */
  background: linear-gradient(180deg, var(--tx-navy-deep) 0%, var(--tx-navy) 55%, var(--tx-navy-lifted) 100%);
  color: #fff;
  padding: clamp(4rem, 9vw, 8rem) 0 calc(clamp(4rem, 9vw, 7rem) + env(safe-area-inset-bottom, 0px));
}

.tx-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 60vmin;
  height: 60vmin;
  /* Subtle blue lift instead of red bleed. */
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.tx-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 0;
  width: 70vmin;
  height: 70vmin;
  background: radial-gradient(circle at 60% 60%, rgba(48, 63, 120, 0.5) 0%, rgba(48, 63, 120, 0) 60%);
  pointer-events: none;
}

.tx-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.tx-hero h1,
.tx-hero .tx-display {
  color: #fff;
  margin-bottom: var(--tx-space-5);
}

.tx-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 60ch;
  font-weight: 200;
  margin-bottom: var(--tx-space-6);
}

.tx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-space-3);
  margin-bottom: var(--tx-space-6);
}

.tx-hero__meta {
  display: flex;
  gap: var(--tx-space-5);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 300;
  flex-wrap: wrap;
}

.tx-hero__meta strong {
  color: #fff;
  font-weight: 600;
}

.tx-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tx-hero__mark {
  width: min(440px, 100%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

@media (max-width: 880px) {
  .tx-hero__inner {
    grid-template-columns: 1fr;
  }
  .tx-hero__visual {
    order: -1;
  }
  .tx-hero__mark {
    width: 220px;
  }
}

/* ----------------------------------------------------------------------------
   Value props / feature row
   ---------------------------------------------------------------------------- */

.tx-feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.tx-feature {
  background: #fff;
  border: 1px solid var(--tx-divider);
  border-radius: var(--tx-radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  box-shadow: var(--tx-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tx-feature:hover {
  transform: translateY(-4px);
  border-color: var(--tx-navy-soft);
  box-shadow: var(--tx-shadow);
}

.tx-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tx-paper-blue);
  color: var(--tx-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tx-space-4);
  font-size: 1.5rem;
}

.tx-feature h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--tx-space-2);
  color: var(--tx-navy);
}

.tx-feature p {
  margin: 0;
  color: var(--tx-grey);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   Stat band
   ---------------------------------------------------------------------------- */

.tx-stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--tx-space-5);
  padding: var(--tx-space-5) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--tx-navy-deep);
  border-radius: var(--tx-radius-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tx-stat-band::after {
  /* Subtle blue lift, no red. */
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.tx-stat {
  position: relative;
  z-index: 1;
}

.tx-stat__num {
  display: block;
  font-family: var(--tx-font-display);
  font-weight: 200;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
}

.tx-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.78125rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------------------------------------------
   Pre-footer CTA module
   ---------------------------------------------------------------------------- */

.tx-cta-module {
  position: relative;
  overflow: hidden;
  /* Solid navy — no gradient, no red glow per brand guidance. */
  background: var(--tx-navy);
  color: #fff;
  border-radius: var(--tx-radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}

.tx-cta-module::before {
  content: none;
}

.tx-cta-module > * {
  position: relative;
  z-index: 1;
}

.tx-cta-module h2 {
  color: #fff;
  margin-bottom: var(--tx-space-4);
}

.tx-cta-module p {
  max-width: 56ch;
  margin: 0 auto var(--tx-space-6);
  color: rgba(255, 255, 255, 0.78);
}

.tx-cta-module__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--tx-space-3);
  justify-content: center;
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */

.tx-site-footer {
  background: var(--tx-navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3rem, 6vw, 5rem) 0 var(--tx-space-5);
  font-size: 0.9375rem;
}

.tx-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.tx-footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: var(--tx-space-4);
}

.tx-footer-brand p {
  max-width: 36ch;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 200;
}

.tx-footer-col h6 {
  color: #fff;
  font-size: 0.78125rem;
  letter-spacing: 1.5px;
  margin: 0 0 var(--tx-space-3);
}

.tx-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tx-footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 300;
}

.tx-footer-col a:hover,
.tx-footer-col a:focus-visible {
  color: #fff;
}

.tx-footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--tx-space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-space-3);
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.tx-footer-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-space-4);
}

.tx-footer-bottom__legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

@media (max-width: 880px) {
  .tx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tx-footer-brand {
    grid-column: 1 / -1;
  }
}

/* ----------------------------------------------------------------------------
   Page chrome
   ---------------------------------------------------------------------------- */

.tx-page-header {
  background: linear-gradient(180deg, var(--tx-navy-deep) 0%, var(--tx-navy) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.tx-page-header::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 60vmin;
  height: 60vmin;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.tx-page-header__inner {
  position: relative;
  z-index: 1;
}

.tx-page-header h1 {
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
}

.tx-page-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
  margin: var(--tx-space-3) 0 0;
  max-width: 70ch;
  font-weight: 200;
}

.tx-page-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--tx-paper);
}

.tx-page-content > .tx-container > article,
.tx-page-content > .tx-container > .tx-prose {
  background: #fff;
  border: 1px solid var(--tx-divider);
  border-radius: var(--tx-radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--tx-shadow-sm);
}

.tx-prose h2,
.tx-prose h3,
.tx-prose h4 {
  margin-top: var(--tx-space-6);
}

.tx-prose img {
  border-radius: var(--tx-radius);
  margin: var(--tx-space-5) 0;
}

/* ----------------------------------------------------------------------------
   Blog post card / list
   ---------------------------------------------------------------------------- */

.tx-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--tx-space-5);
}

.tx-post-card {
  background: #fff;
  border: 1px solid var(--tx-divider);
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tx-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tx-shadow);
}

.tx-post-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--tx-paper-blue);
  overflow: hidden;
}

.tx-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-post-card__body {
  padding: var(--tx-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--tx-space-3);
  flex: 1;
}

.tx-post-card__meta {
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tx-slate);
}

.tx-post-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.tx-post-card h3 a {
  color: var(--tx-navy);
  text-decoration: none;
}

.tx-post-card h3 a:hover {
  color: var(--tx-red);
}

.tx-post-card__excerpt {
  color: var(--tx-grey);
  font-size: 0.95rem;
  margin: 0;
}

/* ----------------------------------------------------------------------------
   404
   ---------------------------------------------------------------------------- */

.tx-404 {
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.tx-404__num {
  font-family: var(--tx-font-display);
  font-weight: 200;
  font-size: clamp(6rem, 18vw, 12rem);
  letter-spacing: 1px;
  line-height: 1;
  color: var(--tx-navy);
  margin: 0 0 var(--tx-space-4);
}

/* ----------------------------------------------------------------------------
   Search form
   ---------------------------------------------------------------------------- */

.tx-search-form {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--tx-divider);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--tx-shadow-sm);
  align-items: center;
}

.tx-search-form input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--tx-ink);
  padding: 8px 0;
  outline: none;
  font-weight: 300;
}

.tx-search-form button {
  border: 0;
  cursor: pointer;
  background: var(--tx-navy);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--tx-font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: background 0.15s ease;
}

.tx-search-form button:hover {
  background: var(--tx-navy-deep);
}

/* ----------------------------------------------------------------------------
   Block editor alignment overrides
   ---------------------------------------------------------------------------- */

.entry-content > * {
  margin-block: var(--tx-space-4);
}

.alignwide,
.alignfull {
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ----------------------------------------------------------------------------
   Print styles
   ---------------------------------------------------------------------------- */

@media print {
  .tx-site-header,
  .tx-site-footer,
  .tx-cta-module {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
