/*
Theme Name: X-Tough Guide
Theme URI: https://www.x-tough.com/
Author: X-Tough Recovery Project
Description: A lean buying-guide theme for X-Tough's independent XTRATUF and waterproof work-boot coverage.
Version: 0.2.5
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: x-tough-guide
*/

:root {
  --color-sea-950: #071113;
  --color-sea-900: #0b1719;
  --color-sea-800: #102326;
  --color-sea-700: #18373b;
  --color-charcoal-900: #111111;
  --color-rain-300: #b9c4c3;
  --color-rain-500: #6c7878;
  --color-parchment-100: #f7f1e3;
  --color-parchment-200: #efe4cc;
  --color-parchment-300: #d8c8a7;
  --color-yellow-500: #d7a928;
  --color-yellow-600: #b98912;
  --color-orange-600: #c94b32;
  --color-white-warm: #fff8e8;
  --color-link-dark: #f0c84b;
  --color-link-light: #7a3a24;
  --text-on-dark: var(--color-white-warm);
  --text-muted-dark: var(--color-rain-300);
  --text-on-light: var(--color-sea-800);
  --text-muted-light: #4d5a5a;
  --border-on-dark: rgba(185, 196, 195, 0.28);
  --border-on-dark-strong: rgba(185, 196, 195, 0.4);
  --border-on-light: var(--color-parchment-300);
  --shadow-low: 0 8px 20px rgba(7, 17, 19, 0.18);
  --shadow-medium: 0 16px 36px rgba(7, 17, 19, 0.24);
  --shadow-focus: 0 0 0 3px rgba(240, 200, 75, 0.36);
  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-large: 8px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --width-content: 1200px;
  --width-reading: 760px;
  --container-padding: 16px;
  --header-height: 64px;
}

@media (min-width: 768px) {
  :root {
    --container-padding: 32px;
    --header-height: 72px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 48px;
    --header-height: 88px;
  }
}

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

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

body {
  margin: 0;
  background: var(--color-sea-950);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

@media (min-width: 1024px) {
  body {
    font-size: 17px;
  }
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--color-link-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-link-dark);
  outline-offset: 3px;
  box-shadow: var(--shadow-focus);
}

.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;
}

.skip-link:focus {
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--color-yellow-500);
  color: var(--color-sea-950);
  border: 2px solid var(--color-sea-950);
}

.wrap,
.site-header__inner,
.site-footer__inner {
  width: min(calc(100% - (var(--container-padding) * 2)), var(--width-content));
  margin-inline: auto;
}

.reading-wrap {
  width: min(calc(100% - (var(--container-padding) * 2)), var(--width-reading));
  margin-inline: auto;
}

.disclosure-strip {
  background: var(--color-sea-800);
  border-bottom: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.disclosure-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  min-height: 38px;
  padding-block: 8px;
  text-align: center;
}

.disclosure-strip a {
  color: var(--color-link-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  background: rgba(7, 17, 19, 0.96);
  border-bottom: 1px solid var(--border-on-dark);
  backdrop-filter: blur(12px);
}

.admin-bar .site-header {
  top: 32px;
}

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

.brand {
  display: grid;
  gap: 2px;
  color: var(--text-on-dark);
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: var(--text-on-dark);
}

.brand strong {
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.brand span {
  color: var(--text-muted-dark);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.brand--footer strong {
  color: var(--color-yellow-500);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-medium);
  background: var(--color-sea-800);
  color: var(--text-on-dark);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-small);
  color: var(--text-on-dark);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: var(--color-sea-800);
  color: var(--color-link-dark);
}

.site-main {
  min-height: 60vh;
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: var(--color-sea-950);
  color: var(--text-on-dark);
}

.page-hero {
  min-height: 360px;
}

.page-hero--compact {
  min-height: 300px;
}

.home-hero__media,
.page-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(215, 169, 40, 0.22), transparent 23%),
    radial-gradient(circle at 78% 45%, rgba(24, 55, 59, 0.86), transparent 26%),
    linear-gradient(160deg, rgba(185, 196, 195, 0.16) 0 1%, transparent 1% 58%, rgba(215, 169, 40, 0.2) 58% 60%, transparent 60%),
    var(--color-sea-950);
}

.home-hero__media::before,
.page-hero__media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 19, 0.96) 0%, rgba(7, 17, 19, 0.78) 48%, rgba(7, 17, 19, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 17, 19, 0.16), rgba(7, 17, 19, 0.72));
  content: "";
  pointer-events: none;
}

.home-hero__media::after,
.page-hero__media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(215, 169, 40, 0.18), transparent 24%),
    linear-gradient(160deg, rgba(185, 196, 195, 0.12) 0 1%, transparent 1% 58%, rgba(215, 169, 40, 0.18) 58% 60%, transparent 60%);
  content: "";
  pointer-events: none;
}

.home-hero__image,
.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-image-position, center center);
}

.home-hero__media--slider {
  background: var(--color-sea-950);
}

.home-hero__image-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.home-hero__image-slide.is-active {
  opacity: 1;
}

.home-hero__content,
.page-hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  min-height: inherit;
  padding-block: 70px;
}

.home-hero__copy-stack {
  display: grid;
  max-width: 760px;
}

.home-hero__copy {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
  visibility: hidden;
}

.home-hero__copy.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.home-hero h1,
.page-hero h1,
.section-head h2,
.reading-wrap h2,
.entry-content h2,
.entry-content h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 720px;
  font-size: 44px;
}

.page-hero h1 {
  max-width: 880px;
  font-size: 38px;
}

.eyebrow,
.label-pill {
  margin: 0;
  color: var(--color-yellow-500);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 16px;
}

.intro {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--text-muted-dark);
  font-size: 18px;
  line-height: 1.55;
}

.status-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--color-yellow-500);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
}

.home-hero__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.home-hero__control {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 220, 141, 0.5);
  border-radius: var(--radius-small);
  background: rgba(7, 17, 19, 0.42);
  color: var(--text-on-dark);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.home-hero__control:hover,
.home-hero__control:focus,
.home-hero__control.is-active {
  border-color: var(--color-yellow-500);
  color: var(--color-yellow-500);
}

.home-hero__dot {
  width: 34px;
  padding: 0;
}

.home-hero__pause {
  padding: 0 12px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.card-cta,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: var(--radius-medium);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  border: 1px solid var(--color-yellow-500);
  background: var(--color-yellow-500);
  color: var(--color-sea-950);
}

.button-primary:hover,
.button-primary:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button[type="submit"]:hover,
button[type="submit"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--color-yellow-600);
  border-color: var(--color-yellow-600);
  color: var(--color-sea-950);
}

.button-secondary,
.card-cta {
  border: 1px solid var(--border-on-dark-strong);
  background: transparent;
  color: var(--text-on-dark);
}

.button-secondary:hover,
.button-secondary:focus,
.card-cta:hover,
.card-cta:focus {
  border-color: var(--color-yellow-500);
  color: var(--color-link-dark);
}

.surface-dark {
  background: var(--color-sea-900);
  color: var(--text-on-dark);
}

.surface-light {
  background: var(--color-parchment-100);
  color: var(--text-on-light);
}

.guide-section,
.comparison-section,
.related-guides {
  padding-block: 54px;
}

.reading-section {
  padding-block: 48px;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-head h2,
.reading-wrap h2 {
  max-width: 620px;
  font-size: 30px;
}

.section-head p {
  max-width: 700px;
  margin: 0;
  color: var(--text-muted-dark);
}

.surface-light .section-head p,
.reading-wrap p,
.entry-content p,
.entry-content li {
  color: var(--text-muted-light);
}

.guide-grid {
  display: grid;
  gap: 16px;
}

.guide-grid--three,
.guide-grid--four {
  grid-template-columns: 1fr;
}

.guide-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-large);
  background: var(--color-charcoal-900);
  color: var(--text-on-dark);
  text-decoration: none;
  box-shadow: var(--shadow-low);
}

.guide-card:hover,
.guide-card:focus-within {
  border-color: var(--color-yellow-500);
  box-shadow: var(--shadow-medium);
}

.guide-card > .label-pill,
.guide-card .card-body {
  padding: 20px;
}

.guide-card > .label-pill + h3,
.guide-card h3 {
  margin: 10px 20px 0;
  color: var(--text-on-dark);
  font-size: 20px;
  line-height: 1.15;
  text-transform: none;
}

.guide-card .card-body h3 {
  margin-inline: 0;
}

.guide-card h3 a {
  color: inherit;
  text-decoration: none;
}

.guide-card p {
  margin: 14px 20px 0;
  color: var(--text-muted-dark);
  font-size: 15px;
  line-height: 1.5;
}

.guide-card .card-body p {
  margin-inline: 0;
}

.guide-card .card-cta {
  width: calc(100% - 40px);
  margin: auto 20px 20px;
}

.guide-card--decision {
  gap: 0;
}

.guide-card--decision .finder-card__kicker,
.guide-card--decision .finder-card__check {
  color: var(--text-muted-dark);
  font-size: 14px;
  line-height: 1.45;
}

.guide-card--decision .finder-card__kicker strong,
.guide-card--decision .finder-card__check strong {
  color: var(--color-yellow-500);
}

.finder-card__list {
  display: grid;
  gap: 8px;
  padding: 0 20px 0 38px;
  margin: 14px 0 0;
  color: var(--text-muted-dark);
  font-size: 14px;
  line-height: 1.4;
}

.finder-card__list li::marker {
  color: var(--color-yellow-500);
}

.guide-card--decision .card-cta {
  margin-top: 18px;
}

.guide-grid--light .guide-card {
  border-color: var(--border-on-light);
  background: var(--color-parchment-200);
  color: var(--text-on-light);
}

.guide-grid--light .guide-card h3 {
  color: var(--text-on-light);
}

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

.guide-grid--light .guide-card .card-cta {
  border-color: var(--border-on-light);
  color: var(--text-on-light);
}

.guide-grid--light .guide-card:hover,
.guide-grid--light .guide-card:focus-within {
  border-color: var(--color-yellow-600);
}

.guide-grid--light .guide-card .card-cta:hover,
.guide-grid--light .guide-card .card-cta:focus {
  color: var(--color-link-light);
}

.trust-map {
  margin-top: 24px;
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(7, 17, 19, 0) 34%, rgba(7, 17, 19, 0.75) 100%),
    linear-gradient(135deg, var(--color-sea-700), var(--color-sea-800));
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-large);
  background: var(--color-charcoal-900);
  color: var(--text-on-dark);
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-on-dark);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--color-yellow-500);
  font-size: 13px;
  text-transform: uppercase;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-panel + .comparison-panel {
  margin-top: 42px;
}

.comparison-table-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}

.comparison-table--wide {
  min-width: 1240px;
  font-size: 14px;
}

.buying-flow-section {
  padding-block: 48px;
}

.buying-flow-section .section-head {
  margin-bottom: 24px;
}

.quick-picks-table a {
  color: var(--color-link-dark);
  font-family: var(--font-ui);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.quick-picks-table a:hover,
.quick-picks-table a:focus {
  color: var(--color-yellow-500);
}

.disclosure-box,
.evidence-note,
.legacy-status,
.retailer-note {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-large);
  background: var(--color-parchment-200);
  color: var(--text-on-light);
}

.evidence-note strong,
.legacy-status strong,
.retailer-note strong {
  display: block;
  color: var(--text-on-light);
}

.evidence-note p,
.legacy-status p,
.retailer-note p {
  margin: 6px 0 0;
}

.legacy-link-replacement {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin: 6px 0;
  padding: 8px 12px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-small);
  background: var(--color-parchment-200);
  color: var(--text-on-light);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.reading-block + .reading-block {
  margin-top: 34px;
}

.check-list,
.reading-list,
.decision-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  margin: 18px 0 0;
}

.check-list li,
.reading-list li,
.decision-list li {
  color: var(--text-muted-light);
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.reading-wrap .action-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-small);
  background: var(--color-parchment-200);
  color: var(--text-on-light);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.reading-wrap .action-link:hover,
.reading-wrap .action-link:focus {
  border-color: var(--color-yellow-600);
  color: var(--color-link-light);
}

.reading-section--note {
  padding-block: 30px;
}

.commercial-guide-page {
  background: var(--color-parchment-100);
}

.commercial-guide-page .reading-wrap {
  width: min(calc(100% - (var(--container-padding) * 2)), 940px);
  margin-inline: auto;
}

.commercial-guide-page .section-head h2 {
  max-width: 760px;
}

.commercial-guide-page .guide-card[href^="https://"] .card-cta::after,
.commercial-guide-page .button-primary[href^="https://"]::after,
.commercial-guide-page .button-secondary[href^="https://"]::after {
  content: " ->";
}

.commercial-intro-grid {
  display: grid;
  gap: 20px;
}

.commercial-callout-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.commercial-callout-list li {
  padding: 16px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-large);
  background: var(--color-parchment-200);
}

.commercial-callout-list strong {
  display: block;
  color: var(--text-on-light);
}

.commercial-product-note {
  display: block;
  margin-top: 10px;
  color: var(--text-muted-dark);
  font-size: 14px;
  line-height: 1.45;
}

.surface-dark .commercial-product-note {
  color: var(--text-muted-dark);
}

.surface-dark .evidence-note {
  border-color: var(--border-on-dark);
  background: rgba(17, 17, 17, 0.86);
  color: var(--text-on-dark);
}

.surface-dark .evidence-note strong {
  color: var(--text-on-dark);
}

.surface-dark .evidence-note p {
  color: var(--text-muted-dark);
}

.commercial-retailer-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-large);
  background: var(--color-charcoal-900);
}

.commercial-retailer-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted-dark);
}

.faq-section {
  padding-block: 54px;
}

.faq-section .section-head {
  margin-bottom: 22px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-large);
  background: var(--color-charcoal-900);
  color: var(--text-on-dark);
}

.faq-item h3 {
  margin: 0;
  color: var(--text-on-dark);
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 1.2;
  text-transform: none;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted-dark);
  font-size: 15px;
  line-height: 1.55;
}

.route-map-section {
  padding-block: 52px;
}

.route-map-section .section-head p {
  color: var(--text-muted-light);
}

.route-map-section .eyebrow,
.route-map__item .label-pill {
  color: var(--color-link-light);
}

.route-map {
  display: grid;
  gap: 12px;
}

.route-map__item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-large);
  background: var(--color-parchment-200);
  color: var(--text-on-light);
}

.route-map__item h3 {
  margin: 0;
  color: var(--text-on-light);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.route-map__item h3 a {
  color: inherit;
  text-decoration-thickness: 0.07em;
}

.route-map__item p {
  margin: 0;
  color: var(--text-muted-light);
  font-size: 15px;
  line-height: 1.5;
}

.route-map__checks strong {
  color: var(--text-on-light);
}

.reading-wrap a,
.entry-content a,
.sidebar a {
  color: var(--color-link-light);
  font-weight: 800;
}

.entry-content {
  max-width: var(--width-reading);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin-top: 36px;
  font-size: 26px;
}

.entry-content h3 {
  margin-top: 28px;
  font-size: 21px;
}

.entry-content img {
  border-radius: var(--radius-large);
}

.entry-content blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 20px;
  border-left: 4px solid var(--color-yellow-500);
  color: var(--text-on-light);
  font-size: 20px;
  font-weight: 700;
}

.content-layout {
  width: min(calc(100% - (var(--container-padding) * 2)), var(--width-content));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.sidebar {
  align-self: start;
  display: grid;
  gap: 16px;
}

.sidebar-box {
  padding: 18px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-large);
  background: var(--color-parchment-200);
  color: var(--text-on-light);
}

.sidebar-box h2,
.sidebar-box h3 {
  margin: 0 0 8px;
  color: var(--text-on-light);
  font-size: 18px;
  font-weight: 900;
}

.sidebar-box p,
.sidebar-box li {
  color: var(--text-muted-light);
  font-size: 15px;
}

.sidebar-box ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

form.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-medium);
  background: #ffffff;
  color: var(--text-on-light);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__image-slide,
  .home-hero__copy {
    transition: none;
  }
}

.pagination {
  margin-top: 30px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-medium);
  color: var(--text-on-dark);
  text-align: center;
  text-decoration: none;
}

.site-footer {
  background: var(--color-sea-950);
  border-top: 1px solid var(--border-on-dark);
  color: var(--text-muted-dark);
}

.site-footer__inner {
  display: grid;
  gap: 32px;
  padding-block: 44px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 10px;
  color: var(--text-on-dark);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer p {
  margin: 14px 0 0;
  font-size: 15px;
}

.site-footer a {
  color: var(--color-link-dark);
}

.footer-disclosure {
  color: var(--text-muted-dark);
  font-size: 14px;
}

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

@media (min-width: 700px) {
  .guide-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .commercial-intro-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    align-items: start;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .home-hero h1 {
    font-size: 68px;
  }

  .page-hero h1 {
    font-size: 56px;
  }

  .section-head h2,
  .reading-wrap h2 {
    font-size: 38px;
  }

  .guide-section,
  .buying-flow-section,
  .comparison-section,
  .related-guides,
  .faq-section,
  .route-map-section {
    padding-block: 76px;
  }

  .reading-section {
    padding-block: 64px;
  }

  .guide-grid--four {
    grid-template-columns: repeat(4, 1fr);
  }

  .route-map {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.85fr));
  }

  .footer-about {
    grid-column: auto;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }

  .sidebar {
    position: sticky;
    top: 120px;
  }
}

@media (max-width: 900px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-navigation {
    position: absolute;
    inset: var(--header-height) 0 auto;
    display: none;
    background: var(--color-sea-950);
    border-bottom: 1px solid var(--border-on-dark);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    width: min(calc(100% - (var(--container-padding) * 2)), var(--width-content));
    margin-inline: auto;
    display: grid;
    padding: 10px 0 18px;
  }

  .main-navigation a {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 620px;
  }

  .home-hero__content {
    padding-block: 48px;
  }

  .home-hero__media::before,
  .page-hero__media::before {
    background:
      linear-gradient(180deg, rgba(7, 17, 19, 0.88) 0%, rgba(7, 17, 19, 0.84) 56%, rgba(7, 17, 19, 0.72) 100%),
      linear-gradient(90deg, rgba(7, 17, 19, 0.9), rgba(7, 17, 19, 0.58));
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .intro {
    font-size: 16px;
  }

  .home-hero__controls {
    margin-top: 18px;
  }

  .button-group,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
  }

  .comparison-table-scroll {
    overflow-x: visible;
  }

  .comparison-table--wide {
    min-width: 0;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr {
    border-bottom: 1px solid var(--border-on-dark);
  }

  .comparison-table tr:last-child {
    border-bottom: 0;
  }

  .comparison-table td {
    border-bottom: 0;
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--color-yellow-500);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }
}
