/*
Theme Name: Chronicle
Theme URI:
Author: SteadyRetire
Author URI:
Description: Chronicle news portal theme for SteadyRetire — retirement planning editorial site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chronicle
*/

/* =========================================================
   Chronicle – Shared Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&display=swap');

/* ----- CSS Variables ----- */
:root {
  --primary: hsl(221, 83%, 53%);
  --primary-light: hsl(221, 83%, 93%);
  --primary-dark: hsl(221, 83%, 44%);
  --foreground: hsl(222, 47%, 11%);
  --muted: hsl(215, 16%, 47%);
  --border: hsl(214, 32%, 91%);
  --bg: hsl(0, 0%, 100%);
  --bg-gray: hsl(210, 17%, 98%);
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 0.5rem;
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

main { flex: 1; }

/* ----- Container ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Typography helpers ----- */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ----- Inputs ----- */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--foreground);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(221, 83%, 53%, 0.15);
}
textarea { resize: vertical; min-height: 120px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Logo left + right column (search top, nav bottom) */
.header-inner {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
}

.logo-img {
  height: 76px;
  width: auto;
  display: block;
}

.logo-img--mobile { display: none; }

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top sub-row: search pinned top-right */
.header-top-row {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.4rem;
}

/* Bottom sub-row: nav links */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.main-nav a {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #374151;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 5rem;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current-cat > a { color: var(--primary); }
.main-nav a.active::after,
.main-nav .current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--bg-gray); }

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Animate to × when open */
.site-header.menu-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header.menu-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile layout ───────────────────────────────────── */
@media (max-width: 900px) {
  .logo-img--desktop { display: none; }
  .logo-img--mobile { display: block; height: 26px; }

  .header-inner { align-items: center; gap: 0; }

  .header-right {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .header-top-row {
    flex: 0;
    padding-top: 0;
    gap: 0.25rem;
    align-items: center;
  }

  .hamburger { display: flex; }

  /* Hide desktop nav; show as absolute dropdown when open */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    z-index: 200;
  }

  .site-header.menu-open .main-nav { display: flex; }

  .main-nav a {
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    position: static;
    white-space: normal;
  }

  .main-nav-right {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .main-nav a {
    text-align: center;
  }

  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active::after,
  .main-nav .current-menu-item > a::after { display: none; }
  .main-nav a.active,
  .main-nav .current-menu-item > a { background: hsl(221, 83%, 97%); }
}

/* Search toggle */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--foreground);
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.search-toggle:hover { background: var(--bg-gray); }
.search-toggle svg { width: 20px; height: 20px; }

/* Search bar (shown / hidden) */
.search-bar {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  display: none;
}
.search-bar.open { display: block; }
.search-bar form {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto;
}
.search-bar input { flex: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: hsl(210, 17%, 98%);
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--foreground);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-links .dot {
  color: var(--muted);
  user-select: none;
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.footer-disclaimer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer a:hover { color: var(--primary); }

/* =========================================================
   CARDS & GRID
   ========================================================= */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.14); }
.article-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }

.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-gray);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .card-image img { transform: scale(1.05); }

.card-category {
  position: absolute;
  top: 10px; left: 10px;
  background: hsl(221, 83%, 53%, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: none;
}
.card-meta span { opacity: 0.5; }

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}
.article-card:hover .card-title { color: var(--primary); }

.card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author {
  display: none;
}
.author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.card-author span { font-size: 0.75rem; font-weight: 500; color: #374151; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* =========================================================
   FEATURED ARTICLE
   ========================================================= */
.featured-article {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: box-shadow 0.3s;
}
.featured-article:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.14); }

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .featured-inner { grid-template-columns: 1fr; }
}

.featured-image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: var(--bg-gray);
}
.featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.featured-article:hover .featured-image img { transform: scale(1.05); }

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cat-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.cat-badge-white {
  background: hsl(221, 83%, 53%, 0.9);
  color: #fff;
}

.featured-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.featured-article:hover .featured-title { color: var(--primary); }

.featured-excerpt { color: var(--muted); margin-bottom: 1.5rem; }

.featured-author { display: none; }
.featured-author img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.featured-author strong { display: block; font-size: 0.9rem; }
.featured-author small { font-size: 0.75rem; color: var(--muted); }

/* =========================================================
   MAIN LAYOUT (sidebar + content)
   ========================================================= */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* ----- Sidebar ----- */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}
.sidebar-widget h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Category list */
.cat-list li + li { margin-top: 0.5rem; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: #374151;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.cat-list a:hover { color: var(--primary); }
.cat-count {
  font-size: 0.75rem;
  background: var(--bg-gray);
  color: var(--muted);
  padding: 1px 8px;
  border-radius: 999px;
}

/* Popular articles */
.popular-list { display: flex; flex-direction: column; gap: 1rem; }
.popular-item { display: flex; gap: 0.85rem; }
.popular-thumb {
  width: 72px; height: 56px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  flex-shrink: 0;
}
.popular-info { flex: 1; }
.popular-info .card-title { font-size: 0.85rem; margin-bottom: 0.25rem; }
.popular-info .card-meta { margin-bottom: 0; font-size: 0.7rem; }

/* Newsletter widget */
.newsletter-form { display: flex; flex-direction: column; gap: 0.65rem; }
.newsletter-form p { font-size: 0.85rem; color: var(--muted); }

/* =========================================================
   PAGE SECTIONS
   ========================================================= */
.page-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.page-header h1, .page-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* WordPress pagination */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   ARTICLE DETAIL
   ========================================================= */
.article-detail { max-width: 820px; margin: 0 auto; }

.article-header { text-align: center; margin-bottom: 2.5rem; }

.article-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.article-cats a {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  transition: background 0.2s;
}
.article-cats a:hover { background: hsl(221, 83%, 87%); }

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) { .article-title { font-size: 1.8rem; } }

.article-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.article-byline { display: none; }
.article-byline img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.article-byline strong { display: block; font-size: 0.95rem; }
.article-byline small { font-size: 0.8rem; color: var(--muted); }

.article-hero {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 2.5rem;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--muted);
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }

/* =========================================================
   PROSE CONTENT (about, gdpr)
   ========================================================= */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--foreground);
}
.prose p { margin-bottom: 1.1rem; color: #374151; line-height: 1.75; }
.prose ul, .prose ol {
  margin: 0 0 1.1rem 1.5rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; line-height: 1.7; color: #374151; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--foreground); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.contact-detail { margin-bottom: 1rem; }
.contact-detail h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.contact-detail p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.contact-form-col h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1rem; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */
.search-results-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.no-results {
  background: #fff;
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.no-results h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.no-results p { color: var(--muted); }

/* =========================================================
   NOT FOUND
   ========================================================= */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem;
}
.not-found .big-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.not-found p { color: var(--muted); margin-bottom: 2rem; }

/* =========================================================
   EXPERT AUTHORS SECTION
   ========================================================= */
.authors-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.authors-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) { .authors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .authors-grid { grid-template-columns: 1fr; } }

.author-card {
  display: flex;
  flex-direction: column;
}

.author-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--bg-gray);
}

.author-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--foreground);
}

.author-card .author-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.65rem;
}

.author-card .author-bio {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   HERO — SteadyRetire retirement quiz (scoped with .sr-)
   ========================================================= */
.sr-hero-outer {
  background: linear-gradient(135deg, #0d1b2e 0%, #163451 45%, #1f5072 100%);
  padding: 0.5rem 2rem;
  overflow: hidden;
}

.sr-hero-page {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  max-width: 1240px;
  margin: 0 auto;
}

.sr-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  margin: 0 70px;
}

/* Left column gets padding; right column (.sr-card) handles its own */
.sr-hero > div:first-child {
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
}

.sr-kicker {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 6px;
}

.sr-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #111;
}

.sr-highlight {
  display: inline-block;
  padding: 2px 10px 4px;
  border-radius: 10px;
  background: rgba(159,205,219,.55);
}

.sr-subcopy {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  max-width: 68ch;
}

.sr-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #111;
}

.sr-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sr-check {
  color: #82CAE1;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}

/* Quiz card (right column) */
.sr-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.sr-progress {
  display: flex;
  gap: 18px;
  padding: 0.5rem 16px 0;
  background: #fff;
}

.sr-prog-seg {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  flex: 1;
}

.sr-prog-seg.active { background: #82CAE1; }

.sr-quiz-body {
  padding: 12px 30px 10px;
  text-align: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sr-quiz-title {
  margin: 2px 0 0;
  font-size: clamp(17px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 900;
  color: #111;
}

.sr-quiz-q {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #111;
}

.sr-req {
  color: #e11d48;
  font-weight: 900;
  margin-left: 6px;
}

.sr-row-choices {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.sr-pill {
  border: 2px solid #d1d5db;
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  user-select: none;
  text-transform: uppercase;
  color: #111;
  min-width: 160px;
}

.sr-pill:hover {
  background: rgba(130,202,225,.22);
  border-color: #82CAE1;
}

.sr-pill:active { transform: translateY(1px); }

.sr-pill[aria-pressed="true"] {
  border-color: #82CAE1;
  background: rgba(130,202,225,.15);
  box-shadow: 0 0 0 3px rgba(130,202,225,.22);
}

.sr-quiz-sub {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.5;
  margin: 4px auto 0;
  max-width: 60ch;
}

.sr-mobile-cta {
  display: none;
  margin-top: 20px;
  padding: 14px 24px;
  background: var(--primary, hsl(221, 83%, 53%));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.sr-mobile-cta:hover { opacity: 0.9; }

.sr-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 20px 12px;
  border-top: 1px solid rgba(0,0,0,.04);
}

.sr-btn-next {
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 15px;
  background: #cfd3da;
  color: #7b8190;
  cursor: not-allowed;
  min-width: 170px;
  transition: transform .05s, filter .15s, background .15s;
}

.sr-btn-next.enabled {
  background: #38729F;
  color: #fff;
  cursor: pointer;
}

.sr-btn-next.enabled:hover { filter: brightness(.95); }
.sr-btn-next:active { transform: translateY(1px); }

@media (max-width: 980px) {
  .sr-hero { grid-template-columns: 1fr; margin: 0; }
  .sr-quiz-body { padding: 28px 18px 18px; }
  .sr-pill { min-width: 220px; }
}

@media (max-width: 700px) {
  .sr-hero-outer { padding: 2rem 1rem; }
  .sr-hero h1 { font-size: 34px; margin: 0 0 10px; }
  .sr-subcopy { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
  .sr-bullets { gap: 8px; margin: 12px 0 0; font-size: 16px; }
  .sr-mobile-cta { display: inline-block; }
  .sr-quiz-body { padding: 22px 16px 14px; min-height: unset; gap: 12px; }
  .sr-quiz-title { font-size: 26px; }
  .sr-quiz-q { font-size: 16px; }
  .sr-row-choices { gap: 10px; }
  .sr-pill { min-width: 100%; padding: 14px 16px; }
  .sr-card-footer { padding: 14px 16px 16px; }
  .sr-btn-next { min-width: 100%; }
  .sr-card { display: none; }
}

/* =========================================================
   PAGE WRAPPERS
   ========================================================= */
.page-bg { background: var(--bg-gray); padding: 2.5rem 0 4rem; }
.page-white { background: #fff; padding: 2.5rem 0 4rem; }
.page-inner { padding: 3rem 0; }
