/* ===================================================
   How To Bet On Golf — Aurora UI Theme
   Fredoka / Nunito — Red / Deep Pink / Dark Ink
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ---- Custom Properties ---- */
:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --ink-soft: #4a2e2e;
  --ink-mute: #7a5a5a;
  --surface: #fff8f8;
  --surface2: #ffeef5;
  --white: #ffffff;
  --radius: 10px;
  --nav-h: 64px;
  --max-prose: 720px;
  --max-layout: 1200px;
  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --gradient-aurora: radial-gradient(ellipse at 20% 50%, rgba(255,0,0,0.35) 0%, transparent 60%),
                     radial-gradient(ellipse at 80% 20%, rgba(255,20,147,0.30) 0%, transparent 55%),
                     radial-gradient(ellipse at 50% 90%, rgba(38,23,23,0.25) 0%, transparent 70%),
                     linear-gradient(135deg, #1a0a0a 0%, #261717 40%, #3d1020 100%);
  --shadow-glow: 0 0 32px rgba(255,20,147,0.25), 0 4px 16px rgba(0,0,0,0.3);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  padding-bottom: var(--nav-h);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: underline; }
a:hover { color: var(--pink); }

/* ---- Aurora Background ---- */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--gradient-aurora);
  overflow: hidden;
}
.aurora-bg--subtle { opacity: 0.08; }

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbDrift 10s ease-in-out infinite alternate;
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,0,0.55) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-duration: 9s;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,20,147,0.5) 0%, transparent 70%);
  bottom: 10%; right: 5%;
  animation-duration: 11s;
  animation-delay: -3s;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,80,80,0.4) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 8s;
  animation-delay: -5s;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-orb { animation: none; }
}

/* ---- Fixed Bottom Nav ---- */
.site-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(38,23,23,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,20,147,0.3);
  height: var(--nav-h);
  box-shadow: 0 -4px 24px rgba(255,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 1rem;
  gap: 0.5rem;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
  flex: 0 1 auto;
  background: linear-gradient(90deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-brand:hover { opacity: 0.85; }

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.nav-right { justify-content: flex-end; }

/* Nav details/summary (structure lottery) */
.nav-details { position: relative; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
  border: none;
  background: none;
}
.nav-hamburger::-webkit-details-marker { display: none; }

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-details[open] .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-details[open] .ham-bar:nth-child(2) { opacity: 0; }
.nav-details[open] .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: rgba(38,23,23,0.98);
  border: 1px solid rgba(255,20,147,0.25);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: var(--shadow-glow);
  animation: menuFadeIn 0.18s ease;
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.nav-menu li a:hover {
  background: rgba(255,20,147,0.15);
  color: var(--pink);
}

/* ---- CTA Buttons ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 6px;
  min-height: 44px;
  padding: 0 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.cta-signup {
  background: linear-gradient(135deg, var(--red) 0%, var(--pink) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 2px 12px rgba(255,20,147,0.4);
}
.cta-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,20,147,0.55);
  color: var(--white);
  opacity: 0.92;
}

.cta-login {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.cta-login:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255,20,147,0.08);
}

/* ---- Hero: Home (image left, copy right, 100vh) ---- */
.hero--home {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-aurora);
  background-size: 200% 200%;
  animation: auroraShift 12s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--home { animation: none; }
}

.hero-media {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: saturate(1.2);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(38,23,23,0.7) 100%),
              linear-gradient(to bottom, transparent 60%, rgba(38,23,23,0.5) 100%);
}

.hero-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  box-shadow: var(--shadow-glow);
  animation: badgeFloat 6s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
}

.hero-copy {
  padding: 3rem 3rem 3rem 2rem;
  text-align: right;
  position: relative;
  z-index: 1;
}

.eyebrow-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
  background: rgba(255,20,147,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255,20,147,0.3);
}

.hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 420px;
  margin: 0 0 1.75rem auto;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,20,147,0.5);
  color: var(--white);
}

.floating-label {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  pointer-events: none;
}
.fl-odds {
  bottom: 6rem;
  right: 2.5rem;
  animation: badgeFloat 8s ease-in-out infinite;
}
.fl-ev {
  bottom: 3.5rem;
  right: 5rem;
  animation: badgeFloat 10s ease-in-out infinite reverse;
  animation-delay: -4s;
}

@media (prefers-reduced-motion: reduce) {
  .floating-label { animation: none; }
}

/* ---- Inner Hero (non-home pages) ---- */
.inner-hero {
  background: var(--gradient-aurora);
  background-size: 200% 200%;
  animation: auroraShift 12s ease-in-out infinite alternate;
  padding: 5rem 2rem 3rem;
  text-align: center;
  position: relative;
}
.inner-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.inner-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.guide-hero {
  background: var(--gradient-aurora);
  background-size: 200% 200%;
  animation: auroraShift 12s ease-in-out infinite alternate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.guide-hero-media {
  height: 55vh;
  overflow: hidden;
}
.guide-hero-media .guide-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: saturate(1.15);
}
.guide-hero-copy {
  padding: 3rem 2.5rem;
  text-align: right;
}
.guide-hero-copy--full {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem 3rem;
}
.guide-hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.guide-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 400px;
  margin-left: auto;
  line-height: 1.7;
}
.guide-hero-copy--full .guide-desc {
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .inner-hero, .guide-hero { animation: none; }
}

/* ---- Byline ---- */
.byline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  margin: 0.4rem 0 0.8rem;
  font-weight: 500;
}
.byline time {
  font-variant-numeric: tabular-nums;
}

/* ---- Stage Badge ---- */
.stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  color: var(--white);
}
.stage-awareness  { background: rgba(255,0,0,0.5); }
.stage-consideration { background: rgba(255,20,147,0.5); }
.stage-decision   { background: rgba(120,0,60,0.6); }

/* ---- Main Layout ---- */
main {
  position: relative;
  z-index: 1;
}

/* Body container: main > section.wrap > div > article */
.wrap {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.wrap div {
  min-width: 0;
}

/* ---- Sidebar ---- */
.sidebar-global {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.sidebar-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(38,23,23,0.08);
  border-left: 3px solid var(--red);
}

.sidebar-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.sidebar-inner hr {
  border: none;
  border-top: 2px solid var(--surface2);
  margin: 0.5rem 0 0.75rem;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-links li a {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  line-height: 1.4;
  transition: color 0.15s, padding-left 0.15s;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.sidebar-links li a:hover {
  color: var(--red);
  padding-left: 4px;
}

.sidebar-cta-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface2);
  text-align: center;
}
.sidebar-cta-label {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
.sidebar-cta-btn {
  width: 100%;
  font-size: 0.85rem;
}

/* ---- Content Article / Prose ---- */
.content-article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 20px rgba(38,23,23,0.07);
}

.prose {
  max-width: var(--max-prose);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.25rem;
}
.prose h2 + hr {
  border: none;
  border-top: 2px solid var(--red);
  margin: 0 0 1rem;
  width: 60px;
  opacity: 0.6;
}
.prose h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
.prose h3 + hr {
  border: none;
  border-top: 1px solid var(--pink);
  margin: 0 0 0.75rem;
  width: 40px;
  opacity: 0.5;
}
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose a {
  color: var(--red);
  text-decoration: underline;
  font-weight: 600;
}
.prose a:hover { color: var(--pink); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose blockquote {
  border-left: 4px solid var(--pink);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--surface2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-soft);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.prose th {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  text-align: left;
}
.prose td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--surface2);
  color: var(--ink-soft);
}
.prose tr:nth-child(even) td { background: var(--surface); }
.prose hr {
  border: none;
  border-top: 1px solid var(--surface2);
  margin: 2rem 0;
}
.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.prose code {
  background: var(--surface2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--pink);
}

/* ---- Child Cards (home / category) ---- */
.child-cards {
  max-width: var(--max-layout);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Structure lottery: div > article×n (direct children) */
.child-cards article.card {
  background: linear-gradient(145deg, var(--ink) 0%, #3d1020 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.child-cards article.card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,20,147,0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.child-cards article.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,20,147,0.25);
}

.card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  display: block;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.card h3 a {
  color: var(--white);
  text-decoration: none;
}
.card h3 a:hover { color: var(--pink); }

.card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.card-date {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.15s;
}
.read-more:hover { gap: 0.5rem; color: var(--red); }

/* ---- Author Card ---- */
.author-card {
  background: linear-gradient(135deg, var(--ink) 0%, #3d1020 100%);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.author-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.author-name + hr {
  border: none;
  border-top: 2px solid rgba(255,20,147,0.4);
  margin: 0.25rem 0 0.4rem;
  width: 40px;
}
.author-credentials {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.author-bio {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

/* ---- FAQ Layout tweaks ---- */
.faq-prose :is(h2, h3) {
  font-family: var(--font-head);
  font-weight: 700;
}
.faq-prose h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  color: var(--ink);
}
.faq-prose h2 + hr {
  border-top: 2px solid var(--pink);
  width: 50px;
  margin: 0.25rem 0 0.75rem;
}

/* ---- Changelog tweaks ---- */
.changelog-prose h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.changelog-prose h2::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
}

/* ---- Footer ---- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 100%;
  padding: 3rem var(--gap, 2rem) 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-col h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--pink); }

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer-bio {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 240px;
}

.rg-notice {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---- Wrap variants ---- */
.wrap--inner {
  grid-template-columns: 1fr 260px;
}
.wrap--guide {
  grid-template-columns: 1fr 280px;
}
.wrap--faq {
  grid-template-columns: 1fr 260px;
}

/* ---- FAQ hero ---- */
.faq-hero {
  background: var(--gradient-aurora);
  background-size: 200% 200%;
}
.changelog-hero {
  background: var(--gradient-aurora);
  background-size: 200% 200%;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero--home {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-media {
    height: 50vw;
    min-height: 220px;
  }
  .hero-copy {
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .hero-desc { margin: 0 0 1.5rem; }
  .floating-label { display: none; }

  .guide-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .guide-hero-media { height: 40vw; min-height: 180px; }
  .guide-hero-copy { text-align: center; padding: 2rem 1.5rem; }
  .guide-desc { margin: 0 auto; }

  .wrap, .wrap--inner, .wrap--guide, .wrap--faq {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  .sidebar-global {
    position: static;
    order: -1;
  }
  .sidebar-inner {
    border-left: none;
    border-top: 3px solid var(--red);
  }

  footer {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1rem 1.5rem;
  }
  .footer-about {
    grid-column: 1 / -1;
  }

  .child-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero--home { min-height: auto; }
  .hero-media { height: 60vw; }
  .hero-copy h1 { font-size: 1.8rem; }

  .nav-inner { padding: 0 0.75rem; }
  .nav-brand { font-size: 0.95rem; }
  .cta { font-size: 0.78rem; padding: 0 0.7rem; min-height: 40px; }
  .cta-login { display: none; }

  .inner-hero { padding: 4.5rem 1rem 2rem; }
  .inner-hero h1 { font-size: 1.6rem; }

  .content-article { padding: 1.5rem 1rem; }
  .prose h2 { font-size: 1.25rem; }
  .prose h3 { font-size: 1.05rem; }

  footer {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 1rem;
  }

  .child-cards {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .author-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-name + hr { margin: 0.25rem auto 0.4rem; }

  .guide-hero-media { height: 55vw; }
  .guide-hero-copy { padding: 1.5rem 1rem; }
  .guide-hero-copy h1 { font-size: 1.5rem; }
}

/* ---- Misc utility ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Ensure no horizontal overflow */
html, body { max-width: 100%; }
.wrap div { max-width: 100%; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}