/* ============================================================
   getMattressDeals — Design System
   ============================================================ */

/* 1. CUSTOM PROPERTIES
   ============================================================ */

:root {
  --navy:           #1B2B4B;
  --navy-light:     #2A3F66;
  --orange-accent:  #E8621A;
  --warm-white:     #FAFAF7;
  --off-white:      #F5F1EB;
  --border:         #E8E4DC;
  --text-primary:   #1A1A18;
  --text-secondary: #6B6860;
  --text-muted:     #6E6B66;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --radius:         6px;
  --radius-lg:      12px;
  --max-width:      1200px;
  --transition:     0.2s ease;
}

/* 2. RESET
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input {
  font: inherit;
}

/* 3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(36px, 5vw, 48px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
  color: var(--text-secondary);
  max-width: 68ch;
}

/* 4. LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  padding: 0 24px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

/* 5. HEADER + NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img,
.site-logo svg {
  height: 32px;
  width: auto;
}

.logo-wordmark {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--navy);
  line-height: 1;
}

.logo-wordmark .logo-get {
  font-weight: 300;
}

.logo-wordmark .logo-name {
  font-weight: 500;
}

.logo-wordmark .logo-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--orange-accent);
  border-radius: 50%;
  margin-left: 1px;
  vertical-align: super;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--navy);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--navy-light) !important;
  color: #fff !important;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* 6. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}

.hero-content h1 {
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-content .hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--navy-light);
}

.hero-proof {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

/* 7. TOP PICKS
   ============================================================ */

.top-picks {
  background: var(--warm-white);
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Card */
.pick-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.pick-card:hover {
  border-color: #c8c4bc;
}

.card-rank-bar {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-rank-bar.rank-1 { background: var(--navy); }
.card-rank-bar.rank-2 { background: #4A5568; }
.card-rank-bar.rank-3 { background: #8B8278; }

.rank-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rank-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-left: auto;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--off-white);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.pick-card:hover .card-image img {
  transform: scale(1.02);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 100%;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.card-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--navy);
}

.card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deal-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #FEF3EC;
  color: var(--orange-accent);
  border: 1px solid #F9D4BB;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--navy);
  color: #ffffff;
}

/* 8. HOW WE PICK
   ============================================================ */

.how-we-pick {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.how-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  flex-shrink: 0;
}

.how-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.how-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 100%;
}

/* 9. TRUST BAR
   ============================================================ */

.trust-bar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--navy);
}

/* 10. FROM THE BLOG
   ============================================================ */

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

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  transition: border-color var(--transition);
}

.article-card:hover {
  border-color: #c8c4bc;
}

.article-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--off-white);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.03);
}

.article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange-accent);
  margin-bottom: 10px;
}

.article-body h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.article-body h3 a {
  color: inherit;
  text-decoration: none;
}

.article-body h3 a:hover {
  color: var(--navy);
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 100%;
}

.article-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-body);
  flex-shrink: 0;
}

/* 11. EMAIL CAPTURE
   ============================================================ */

.email-capture {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.email-capture-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.email-capture h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 12px;
}

.email-capture .subtext {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 100%;
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.email-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.btn-email {
  padding: 14px 24px;
  background: var(--navy);
  color: #ffffff;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-email:hover {
  background: var(--navy-light);
}

.email-fine-print {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 12. FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  font-family: var(--font-body);
  font-size: 18px;
  color: #ffffff;
  line-height: 1;
}

.footer-logo .logo-get { font-weight: 300; }
.footer-logo .logo-name { font-weight: 500; }
.footer-logo .logo-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--orange-accent);
  border-radius: 50%;
  margin-left: 1px;
  vertical-align: super;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.70);
  max-width: 280px;
}

.footer-links-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclosure {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 100%;
}

.footer-disclosure a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* 13. UTILITY
   ============================================================ */

.visually-hidden {
  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 {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 18px;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 16px;
}

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

/* 14. INNER PAGE LAYOUT
   ============================================================ */

.gmd-inner-page .site-content {
  padding: 0 0 80px;
}

/* Constrain the whole article to reading width, centered */
.gmd-article {
  max-width: 760px;
  margin: 0 auto;
}

.gmd-page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.gmd-page-header .entry-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25em;
  max-width: 65ch;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5em 0 0.6em;
  line-height: 1.25;
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2em 0 0.5em;
}

.entry-content a:not(.gmd-btn):not(.gmd-btn-outline) {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:not(.gmd-btn):not(.gmd-btn-outline):hover {
  color: var(--navy-light);
}

/* Page content components — scoped to .entry-content so they never affect nav
   ============================================================ */

.gmd-timestamp {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: block;
}

/* Deal card */
.gmd-deal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  background: #fff;
  transition: border-color var(--transition);
}
.gmd-deal-card:hover { border-color: #c8c4bc; }
.gmd-deal-card h3 { margin-top: 0; font-size: 20px; font-family: var(--font-display); }
.gmd-deal-card p { font-size: 15px; margin-bottom: 16px; max-width: 100%; }
.gmd-deal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #FEF3EC;
  color: var(--orange-accent);
  border: 1px solid #F9D4BB;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  text-decoration: none;
}

/* Buttons inside content — high specificity to beat .entry-content a rules */
a.gmd-btn,
.gmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: var(--navy);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background var(--transition);
}
a.gmd-btn:hover,
.gmd-btn:hover {
  background: var(--navy-light);
  color: #ffffff !important;
  text-decoration: none !important;
}
a.gmd-btn-outline,
.gmd-btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy) !important;
}
a.gmd-btn-outline:hover,
.gmd-btn-outline:hover {
  background: var(--navy);
  color: #ffffff !important;
}

/* Quick picks / info box */
.gmd-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.gmd-box h3 {
  margin-top: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.gmd-box ul { margin: 0; padding: 0; list-style: none; }
.gmd-box ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}
.gmd-box ul li:last-child { border-bottom: none; padding-bottom: 0; }
.gmd-box ul li strong { color: var(--text-primary); font-weight: 500; }

/* Verdict two-col */
.gmd-verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.gmd-verdict-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: #fff;
}
.gmd-verdict-col h3 {
  margin-top: 0;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.gmd-verdict-col ul { margin: 0; padding: 0 0 0 16px; }
.gmd-verdict-col ul li { font-size: 14px; color: var(--text-secondary); padding: 5px 0; line-height: 1.55; }

/* Comparison table */
.gmd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.gmd-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
}
.gmd-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  font-size: 14px;
}
.gmd-table tr:last-child td { border-bottom: none; }
.gmd-table tr:nth-child(even) td { background: var(--off-white); }
.gmd-table td:first-child { font-weight: 500; color: var(--text-primary); }

/* FAQ */
.gmd-faq { margin: 32px 0; }
.gmd-faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.gmd-faq-item:first-child { border-top: 1px solid var(--border); }
.gmd-faq-item h3 { margin: 0 0 10px; font-size: 17px; font-family: var(--font-display); }
.gmd-faq-item p { margin: 0; font-size: 15px; max-width: 100%; }

/* Footer note + CTA block */
.gmd-footer-note {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 48px;
  max-width: 100%;
}
.gmd-cta-section {
  margin: 48px 0 0;
  padding: 32px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.gmd-cta-section h2 { margin: 0 0 12px; font-size: 22px; }
.gmd-cta-section p { font-size: 15px; margin: 0 auto 20px; max-width: 52ch; }

/* 14b. SINGLE POST
   ============================================================ */

.gmd-post-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange-accent);
  margin-bottom: 14px;
}

.gmd-post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 0;
  max-width: 100%;
}

.gmd-post-hero-image {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gmd-post-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gmd-post-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.gmd-back-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.gmd-back-link:hover {
  color: var(--navy);
}

/* 14c. BLOG INDEX
   ============================================================ */

.gmd-page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 60ch;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-bottom: 56px;
}

.article-title {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--navy);
}

.blog-pagination {
  padding: 16px 0 48px;
  text-align: center;
}

.blog-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* 15. RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .how-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .how-icon {
    flex-shrink: 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .section {
    padding: 48px 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero-content h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .picks-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .blog-index-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .email-form {
    flex-direction: column;
    border-radius: var(--radius);
    border: none;
    gap: 8px;
    background: transparent;
  }

  .email-input {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 13px 16px;
  }

  .btn-email {
    border-radius: var(--radius);
    padding: 13px 24px;
    text-align: center;
  }

  .trust-bar-inner {
    gap: 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* 15. FOCUS STYLES (accessibility)
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
