/*
Theme Name: HealthierSelf
Theme URI: https://www.healthierself.net/
Author: Paul Tracey – HealthierSelf
Description: Calm, personal one-page theme for Paul Tracey's HealthierSelf. Practical brain training techniques to support physical health. Help areas, resources (posts), workshops and contact are all editable from the WordPress dashboard and Customizer.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthierself
*/

/* ==========================================================
   Tokens (warm cream + sage palette from the original site)
   ========================================================== */
:root {
  --background: hsl(42 35% 96%);
  --foreground: hsl(200 15% 20%);
  --card: hsl(42 30% 94%);
  --primary: hsl(158 28% 42%);
  --primary-fg: hsl(42 35% 98%);
  --accent: hsl(172 35% 42%);
  --border: hsl(42 18% 85%);
  --cream-dark: hsl(42 25% 91%);
  --sage-light: hsl(158 25% 88%);
  --teal-light: hsl(172 30% 85%);
  --text-secondary: hsl(200 10% 34%);
  --text-muted: hsl(200 8% 44%);
  --primary-soft: hsl(158 28% 42% / 0.1);
  --primary-soft-hover: hsl(158 28% 42% / 0.2);
  --gradient-sage: linear-gradient(135deg, hsl(158 28% 42%), hsl(172 35% 42%));
  --shadow-soft: 0 4px 20px -4px hsl(200 15% 20% / 0.08);
  --shadow-card: 0 8px 32px -8px hsl(200 15% 20% / 0.1);
  --shadow-elevated: 0 16px 48px -12px hsl(200 15% 20% / 0.15);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --font-body: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --header-h: 4.5rem;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--accent); }
::selection { background: hsl(158 28% 42% / 0.2); color: var(--foreground); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000;
  top: 8px; left: 8px; padding: 12px 20px; background: var(--card); color: var(--foreground);
  border-radius: 8px; box-shadow: var(--shadow-card);
}

/* ==========================================================
   Layout helpers
   ========================================================== */
.container-calm { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.container-mid { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) {
  .container-calm, .container-narrow, .container-mid { padding: 0 2.5rem; }
}
.section { padding: 5rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section--tint { background: var(--cream-dark); }
.section--fade { background: linear-gradient(to bottom, var(--background), hsl(42 25% 91% / 0.5), var(--background)); }
.text-gentle { color: var(--text-secondary); }
.text-quiet { color: var(--text-muted); }
.text-gradient {
  background-image: var(--gradient-sage);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.prose-lg { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.8; }
.prose-lg p { margin-bottom: 1.1rem; }

/* Section heading */
.section-heading { text-align: center; margin-bottom: 3rem; }
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: hsl(158 28% 42% / 0.4); }
.section-heading h1, .section-heading h2 { font-size: clamp(1.875rem, 4vw, 3rem); margin-bottom: 1rem; text-wrap: balance; }
.section-heading .intro { font-size: 1.125rem; color: var(--text-secondary); max-width: 42rem; margin: 0 auto; }
.section-heading .intro p { margin-bottom: 0.75rem; }

/* Cards */
.card-elegant {
  position: relative; background: var(--card); border-radius: var(--radius-xl);
  padding: 2rem; border: 1px solid hsl(42 18% 85% / 0.6); box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .card-elegant { padding: 2.5rem; } }
@media (min-width: 1024px) { .card-elegant { padding: 3rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 2rem; border-radius: var(--radius-lg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.3;
  text-decoration: none; border: 0; cursor: pointer; transition: all 0.3s ease;
}
.btn-primary { background: var(--gradient-sage); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
.btn-primary:hover { color: var(--primary-fg); box-shadow: var(--shadow-elevated); transform: translateY(-1px); }
.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { color: var(--foreground); }
.btn-soft {
  background: var(--primary-soft); color: var(--primary); border-radius: 999px;
  padding: 0.6rem 1.4rem; min-height: 44px;
}
.btn-soft:hover { background: var(--primary-soft-hover); color: var(--primary); }
.link-quiet { color: var(--text-secondary); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; }
.link-quiet:hover { color: var(--foreground); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(42 35% 96% / 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(42 18% 85% / 0.4);
}
.admin-bar .site-header { top: 32px; }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-h) + 3rem); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--foreground); }
.brand:hover { color: var(--foreground); }
.brand img { height: 44px; width: auto; object-fit: contain; }
.brand .wordmark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
@media (min-width: 768px) {
  :root { --header-h: 5.5rem; }
  .brand img { height: 52px; }
  .brand .wordmark { font-size: 1.65rem; }
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.primary-nav a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 0.6rem; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); transition: all 0.3s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--foreground); background: var(--card); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--foreground);
  align-items: center; justify-content: center; cursor: pointer; border-radius: 10px;
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
.menu-open .menu-toggle .icon-open { display: none; }
@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: hsl(42 35% 96% / 0.98); border-bottom: 1px solid hsl(42 18% 85% / 0.5);
    padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow-card);
  }
  .menu-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0.25rem; }
  .primary-nav a { font-size: 1.1rem; padding: 0.8rem 1rem; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; min-height: min(90vh, 52rem); display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; overflow: hidden; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.hero .blob-1 { top: 25%; right: -8rem; width: 24rem; height: 24rem; background: hsl(158 25% 88% / 0.45); }
.hero .blob-2 { bottom: 20%; left: -8rem; width: 20rem; height: 20rem; background: hsl(172 30% 85% / 0.3); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .hero-inner { flex-direction: row; gap: 5rem; } }
.hero-photo { position: relative; flex-shrink: 0; animation: hs-fade-in 0.8s ease-out both; }
.hero-photo::before {
  content: ''; position: absolute; inset: -0.25rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--teal-light));
}
.hero-photo .frame {
  position: relative; width: 13rem; height: 13rem; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 40px -10px hsl(158 28% 42% / 0.3);
}
@media (min-width: 768px) { .hero-photo .frame { width: 16rem; height: 16rem; } }
@media (min-width: 1024px) { .hero-photo .frame { width: 18rem; height: 18rem; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.hero-content { text-align: center; max-width: 42rem; animation: hs-fade-in 0.8s 0.15s ease-out both; }
@media (min-width: 1024px) { .hero-content { text-align: left; } }
.hero .kicker {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
}
@media (min-width: 1024px) { .hero .kicker { justify-content: flex-start; } }
.hero .kicker::before, .hero .kicker::after {
  content: ''; width: 4rem; height: 1px; background: linear-gradient(to right, transparent, hsl(158 28% 42% / 0.4), transparent);
}
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.1; margin-bottom: 1.5rem; text-wrap: balance; }
.hero .subtitle { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--text-secondary); font-weight: 400; line-height: 1.6; margin-bottom: 2.5rem; text-wrap: balance; }
.hero .actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .hero .actions { flex-direction: row; justify-content: center; } }
@media (min-width: 1024px) { .hero .actions { justify-content: flex-start; } }
@keyframes hs-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   Audience
   ========================================================== */
.audience { padding: 4rem 0; background: hsl(42 25% 91% / 0.6); text-align: center; }
@media (min-width: 768px) { .audience { padding: 5rem 0; } }
.audience h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); margin-bottom: 1.25rem; text-wrap: balance; }
.audience .text { font-size: 1.125rem; color: var(--text-secondary); max-width: 42rem; margin: 0 auto; }

/* ==========================================================
   Help area cards
   ========================================================== */
.help-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
.help-card { display: flex; flex-direction: column; transition: border-color 0.3s ease; }
@media (min-width: 1024px) { .help-card.card-elegant { padding: 2.5rem; } }
.help-card:hover { border-color: hsl(158 28% 42% / 0.3); }
@media (min-width: 640px) {
  /* odd card count: let the last one span both columns so the grid stays balanced */
  .help-grid .help-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.help-card .row { display: flex; align-items: flex-start; gap: 1rem; flex: 1; }
.icon-badge {
  width: 3rem; height: 3rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(158 28% 42% / 0.2), hsl(172 35% 42% / 0.2)); color: var(--primary);
}
.icon-badge svg { width: 1.5rem; height: 1.5rem; }
.help-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.help-card p { color: var(--text-secondary); }
.help-card .cta { margin-top: 1.25rem; padding-left: 4rem; }
@media (max-width: 420px) { .help-card .cta { padding-left: 0; } }

/* ==========================================================
   Approaches
   ========================================================== */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.rounded-img { width: 100%; border-radius: var(--radius-xl); border: 1px solid hsl(42 18% 85% / 0.5); object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.training h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; }
.dot-list li::before { content: ''; margin-top: 0.7rem; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.video-block { max-width: 48rem; margin: 3rem auto 0; }
.video-block h3 { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-xl); border: 1px solid hsl(42 18% 85% / 0.5); background: var(--card);
}
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block .below { margin-top: 1rem; text-align: center; }
.video-in-card {
  margin-top: 2.5rem; padding: 2rem 1.25rem 1.5rem; border-radius: var(--radius-xl);
  background: hsl(158 25% 88% / 0.55); border: 1px solid hsl(158 28% 42% / 0.25);
}
@media (min-width: 768px) { .video-in-card { padding: 2.5rem 2.5rem 1.75rem; } }
.video-in-card h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); text-wrap: balance; }
.video-in-card .video-embed { box-shadow: var(--shadow-elevated); border-color: hsl(158 28% 42% / 0.3); }
.video-label {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-bottom: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}
.video-label svg, .watch-link svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.watch-link { margin-top: 1.5rem; }

/* ==========================================================
   Health challenges / Teacher
   ========================================================== */
.story-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .story-grid { grid-template-columns: 3fr 2fr; } }
.story-grid h2, .teacher-grid h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.story-grid .photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 38% 50%; border-radius: var(--radius-lg); position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 767px) { .story-grid .photo { aspect-ratio: 4 / 3; position: static; } }
.teacher-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .teacher-grid { grid-template-columns: 2fr 3fr; } }
.teacher-grid .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-lg); }
.center-cta { text-align: center; margin-top: 2.5rem; }

/* ==========================================================
   Resources
   ========================================================== */
.resources-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .resources-layout { grid-template-columns: 1fr 2fr; } }
.resources-side { display: none; }
@media (min-width: 900px) { .resources-side { display: block; } }
.resources-side img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid hsl(42 18% 85% / 0.5); }
.resource-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
.resources-full .resource-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .resources-full .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .resources-full .resource-grid { grid-template-columns: repeat(3, 1fr); } }
.resource-card {
  background: var(--card); border-radius: var(--radius-xl); border: 1px solid hsl(42 18% 85% / 0.5);
  overflow: hidden; display: flex; flex-direction: column;
}
.resource-card .thumb { display: block; }
.resource-card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.resource-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.resource-card .meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.resource-card .cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.resource-card .badge { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--sage-light); color: hsl(158 30% 28%); }
.resource-card h3 { font-size: 1.25rem; margin: 0; }
.resource-card h3 a { color: var(--foreground); text-decoration: none; }
.resource-card h3 a:hover { color: var(--primary); }
.resource-card .excerpt { color: var(--text-secondary); flex: 1; font-size: 1rem; }
.resource-card .more { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.25rem; align-items: center; min-height: 44px; }
.resource-card .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.resources-all { text-align: center; margin-top: 2.5rem; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.cat-filter a { display: inline-block; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; }
.cat-filter a:hover, .cat-filter .is-active a { background: var(--primary-soft); color: var(--primary); border-color: hsl(158 28% 42% / 0.3); }

/* ==========================================================
   Workshops
   ========================================================== */
.workshop-card { padding: 0 !important; overflow: hidden; }
.workshop-card img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 639px) { .workshop-card img { aspect-ratio: 16 / 9; } }
.workshop-card .body { padding: 2rem; text-align: center; }
.workshop-card .text { font-size: 1.125rem; color: var(--text-secondary); max-width: 42rem; margin: 0 auto 1.5rem; }
.workshop-card .details { max-width: 36rem; margin: 0 auto 1.75rem; text-align: left; background: var(--background); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; border: 1px solid hsl(42 18% 85% / 0.6); }
.workshop-card .details h3 { font-size: 1.15rem; }

/* ==========================================================
   Contact
   ========================================================== */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 4rem; } }
.contact-info .eyebrow { justify-content: flex-start; }
.contact-info .eyebrow::after { display: none; }
.contact-info h2 { font-size: clamp(1.875rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.contact-info .lead { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2.5rem; }
.contact-line { display: flex; align-items: center; gap: 1rem; color: var(--text-secondary); margin-bottom: 1rem; }
.contact-line .ico { width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--sage-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line .ico svg { width: 1.25rem; height: 1.25rem; }
.contact-line a { color: var(--text-secondary); word-break: break-word; }
.contact-form .fields-2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .contact-form .fields-2 { grid-template-columns: 1fr 1fr; } }
.contact-form .field { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--foreground);
  background: var(--background); border: 1px solid hsl(42 18% 85% / 0.9); border-radius: 0.75rem;
  padding: 0.75rem 1rem; min-height: 48px;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid hsl(158 28% 42% / 0.35); border-color: var(--primary); }
.contact-form .btn { width: 100%; min-height: 3.5rem; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 1rem; }
.notice-success { background: var(--sage-light); color: hsl(158 35% 22%); }
.notice-error { background: hsl(0 60% 94%); color: hsl(0 50% 30%); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { position: relative; padding: 4rem 0; border-top: 1px solid hsl(42 18% 85% / 0.5); background: linear-gradient(to top, hsl(42 25% 91% / 0.5), transparent); text-align: center; }
@media (min-width: 768px) { .site-footer { padding: 5rem 0; } }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--foreground); margin-bottom: 1.25rem; }
.footer-brand img { height: 56px; width: auto; opacity: 0.9; }
.footer-brand .wordmark { font-family: var(--font-display); font-size: 1.5rem; }
.site-footer .tagline { color: var(--text-secondary); max-width: 28rem; margin: 0 auto 2rem; }
.footer-social { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: 999px; border: 1px solid hsl(42 18% 85% / 0.6); color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-bottom: 2.5rem; }
.footer-social:hover { color: var(--foreground); background: var(--card); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); margin-bottom: 2rem; }
.disclaimer { font-size: 0.875rem; color: var(--text-muted); max-width: 46rem; margin: 0 auto 1.5rem; line-height: 1.65; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.5rem 1rem; font-size: 0.875rem; color: var(--text-muted); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: center; } .footer-bottom .sep { display: inline; } }
.footer-bottom .sep { display: none; }
.footer-bottom .care { color: hsl(158 28% 42% / 0.8); }
.footer-menu ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; }
.footer-menu a { color: var(--text-muted); font-size: 0.875rem; }

/* ==========================================================
   Long-form pages (help areas, resources, pages)
   ========================================================== */
.page-main { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 5rem; }
@media (min-width: 768px) { .page-main { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 7rem; } }
.back-link { font-size: 0.9rem; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.back-link:hover { color: var(--foreground); }
.entry-title { font-size: clamp(2rem, 5vw, 3rem); margin: 1rem 0 2rem; text-wrap: balance; }
.entry-meta { color: var(--text-muted); font-size: 0.95rem; margin: -1rem 0 2rem; }
.entry-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid hsl(42 18% 85% / 0.5); margin-bottom: 2.5rem; }
.entry-content { max-width: 42rem; margin: 0 auto; font-size: 1.125rem; color: var(--text-secondary); line-height: 1.85; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.6rem; margin: 2.75rem 0 0.75rem; color: var(--foreground); }
.entry-content h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; color: var(--foreground); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid hsl(158 28% 42% / 0.4); font-style: italic; }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content .wp-block-embed iframe, .entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius-lg); }
.entry-content .coming-soon { font-style: italic; }
.entry-extras { max-width: 42rem; margin: 2.5rem auto 0; }
.entry-extras > * + * { margin-top: 1.5rem; }
.entry-extras audio { width: 100%; }
.disclaimer-box { max-width: 42rem; margin: 3rem auto 0; border-radius: var(--radius-lg); border: 1px solid hsl(42 18% 85% / 0.6); background: var(--card); padding: 1.5rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.entry-footer-cta { text-align: center; margin-top: 2.5rem; }
.post-nav { max-width: 42rem; margin: 3rem auto 0; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.pagination { margin-top: 3rem; text-align: center; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 0.75rem; border-radius: 999px; text-decoration: none; color: var(--text-secondary); }
.pagination .page-numbers.current { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.not-found { text-align: center; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

