/*
Theme Name:  HenAcre
Theme URI:   https://henacre.com
Author:      The HenAcre team
Author URI:  https://henacre.com/about/
Description: Backyard chickens content theme — warm-organic design, full CSS in one file.
Version:     1.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: henacre
Tags:        custom-background, custom-logo, featured-images, full-width-template
*/

/* ==========================================================================
   RESET + ROOT TOKENS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* palette */
  --cream:       #fdf6ea;
  --cream-deep:  #f6ecd8;
  --terra:       #d98452;
  --terra-deep:  #bd6838;
  --terra-soft:  #f6dcc7;
  --leaf:        #6c9a5f;
  --leaf-deep:   #527a48;
  --leaf-soft:   #dceacf;
  --sky:         #7fb0c4;
  --sky-deep:    #5f93a8;
  --sky-soft:    #d9eaf0;
  --amber:       #f0a93a;
  --cocoa:       #3a2c22;
  --cocoa-70:    rgba(58,44,34,0.70);
  --cocoa-55:    rgba(58,44,34,0.55);
  --cocoa-12:    rgba(58,44,34,0.12);
  --cocoa-08:    rgba(58,44,34,0.08);
  --white:       #fffdf8;

  /* radii */
  --r-sm:   14px;
  --r-md:   22px;
  --r-lg:   34px;
  --r-xl:   48px;
  --r-pill: 999px;

  /* shadows */
  --sh-sm: 0 4px 14px rgba(58,44,34,0.06);
  --sh-md: 0 14px 34px rgba(58,44,34,0.10);
  --sh-lg: 0 24px 60px rgba(58,44,34,0.13);

  /* layout */
  --maxw: 1180px;

  /* typography — used by enqueue (Baloo 2 = display, Nunito Sans = body) */
  --display: 'Baloo 2', sans-serif;
  --body:    'Nunito Sans', sans-serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, .display {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--terra-soft); color: var(--cocoa); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(58,44,34,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ==========================================================================
   ANIMATION — rise (load-in, CSS-only, no JS needed)
   ========================================================================== */
.rise { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; }
.d5 { animation-delay: .42s; }
.d6 { animation-delay: .52s; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
header { position: sticky; top: 0; z-index: 50; }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px auto; max-width: var(--maxw); width: calc(100% - 56px);
  background: rgba(253,246,234,0.85); backdrop-filter: blur(14px);
  border: 1.5px solid var(--cocoa-08); border-radius: var(--r-pill);
  padding: 11px 16px 11px 20px; box-shadow: var(--sh-sm);
}

.brand {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--display); font-weight: 800; font-size: 1.78rem;
  color: var(--cocoa); line-height: 1;
}
.brand .mark { width: 60px; height: 60px; flex: none; object-fit: contain; }
.brand .wm-acre { color: var(--terra-deep); }
.foot-brand .brand .wm-acre { color: var(--terra); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 800; font-size: 1.2rem; color: var(--cocoa);
  font-family: var(--display);
  padding: 11px 20px; border-radius: var(--r-pill); transition: .2s;
}
.nav-links a:hover { color: var(--terra-deep); background: var(--cream-deep); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  background: var(--cocoa); color: var(--cream);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: 1.02rem; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--cocoa);
}

/* mobile nav-open state */
.navbar.nav-open .nav-links {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 60;
  background: rgba(253,246,234,0.97); backdrop-filter: blur(14px);
  border: 1.5px solid var(--cocoa-08); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 12px;
}
.navbar.nav-open .nav-links a { padding: 14px 18px; border-radius: var(--r-md); font-size: 1.15rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem;
  background: var(--terra); color: var(--white);
  padding: 16px 28px; border-radius: var(--r-pill);
  box-shadow: 0 10px 24px rgba(217,132,82,0.34); transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(217,132,82,0.42); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem;
  background: var(--cream); color: var(--cocoa);
  padding: 16px 26px; border-radius: var(--r-pill);
  border: 1.5px solid var(--cocoa-12); transition: .2s;
}
.btn-ghost:hover { background: var(--cream-deep); transform: translateY(-3px); }
.btn-ghost .egg-i { color: var(--terra-deep); }

.arrow-i { width: 18px; height: 18px; }

/* ==========================================================================
   SECTION HELPERS
   ========================================================================== */
.sec { padding: 30px 0; }
.sec-head { max-width: 680px; margin-bottom: 38px; }
.sec-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; margin: 16px 0 0; }
.sec-head p { color: var(--cocoa-70); font-size: 1.1rem; margin: 12px 0 0; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--terra-deep); background: var(--terra-soft);
  padding: 7px 15px; border-radius: var(--r-pill);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--leaf-deep); background: var(--leaf-soft);
  padding: 8px 16px; border-radius: var(--r-pill);
}

/* ==========================================================================
   HOMEPAGE — HERO POD
   ========================================================================== */
.hero { padding: 30px 0 56px; position: relative; }

.hero-pod {
  position: relative; background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
}

.hero-copy { padding: 64px 30px 64px 60px; position: relative; z-index: 2; align-self: center; }

.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 800; margin: 22px 0 0; max-width: 13ch; }
.hero h1 .swoosh { color: var(--terra-deep); position: relative; white-space: nowrap; }
.hero h1 .swoosh svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .3em; }
.hero .lead { font-size: 1.16rem; color: var(--cocoa-70); margin: 26px 0 0; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-media { position: relative; min-height: 540px; }
.hero-media .photo-mask {
  position: absolute; inset: 26px 30px 26px 0; overflow: hidden;
  border-radius: 46% 46% 42% 42% / 14% 14% 10% 10%; box-shadow: var(--sh-md);
}
.hero-media .photo-mask img { width: 100%; height: 100%; object-fit: cover; }

.hero-sun { position: absolute; top: -46px; right: -34px; width: 216px; height: 216px; z-index: 3; }

/* ==========================================================================
   HOMEPAGE — MARQUEE FACT RIBBON
   ========================================================================== */
.ribbon { overflow: hidden; padding: 4px 0 50px; }
.ribbon-track { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.rb-item {
  display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-weight: 700;
  color: var(--cocoa-70); background: var(--white); border: 1.5px solid var(--cocoa-08);
  padding: 12px 22px; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
}
.rb-item .pip { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ==========================================================================
   HOMEPAGE — HUB GRID (category tiles)
   ========================================================================== */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.hub {
  position: relative; background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); border: 1.5px solid var(--cocoa-08); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.hub:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.hub-photo { position: relative; height: 152px; overflow: hidden; }
.hub-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.hub:hover .hub-photo img { transform: scale(1.07); }
.hub-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,44,34,0) 42%, rgba(58,44,34,.30));
}

.hub .ico {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  color: var(--white); position: absolute; left: 18px; bottom: -22px; z-index: 2;
  box-shadow: var(--sh-md); border: 3px solid var(--white);
}
.hub.leaf .ico { background: var(--leaf); }
.hub.terra .ico { background: var(--terra); }
.hub.sky  .ico { background: var(--sky); }

.hub-num {
  position: absolute; top: 12px; right: 13px; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: .86rem;
  color: var(--white); background: rgba(58,44,34,.40); backdrop-filter: blur(2px);
  padding: 4px 11px; border-radius: 999px; letter-spacing: .05em;
}

.hub-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.hub h3 { font-size: 1.32rem; font-weight: 700; }
.hub p { color: var(--cocoa-70); font-size: .96rem; margin-top: 7px; flex: 1; }
.hub .go { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--terra-deep); font-size: .95rem; }
.hub:hover .go .arrow-i { transform: translateX(4px); }
.hub .go .arrow-i { transition: transform .25s; }

/* ==========================================================================
   HOMEPAGE — FLOCK PLANNER
   ========================================================================== */
.planner-wrap { position: relative; }

.planner {
  position: relative;
  background: linear-gradient(160deg, #46342a 0%, #3a2c22 60%);
  border-radius: var(--r-xl); padding: 50px; color: var(--cream);
  overflow: hidden; box-shadow: var(--sh-lg);
}
.planner .pblob { position: absolute; pointer-events: none; opacity: .14; }

.planner-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.planner-inner > .hen-yard { grid-column: 1 / -1; margin-top: 20px; }
.planner-inner > .pnote  { grid-column: 1 / -1; margin-top: 14px; }

.planner-tag {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: #ffd9b8;
  background: rgba(217,132,82,0.22); padding: 7px 15px; border-radius: var(--r-pill);
}

.planner h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; margin: 18px 0 0; color: var(--cream); }
.planner .pdesc { color: rgba(253,246,234,0.78); font-size: 1.06rem; margin: 14px 0 28px; max-width: 42ch; }

.flock-readout { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.flock-readout .big { font-family: var(--display); font-weight: 800; font-size: 3.4rem; color: #ffc79a; line-height: 1; }
.flock-readout .lbl { font-weight: 700; font-size: 1.05rem; color: rgba(253,246,234,0.82); }

/* range slider */
.slider-rail { position: relative; }
input[type="range"]#flock {
  -webkit-appearance: none; appearance: none; width: 100%; height: 16px;
  border-radius: var(--r-pill); background: rgba(253,246,234,0.16);
  outline: none; cursor: pointer;
}
input[type="range"]#flock::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 38px; height: 38px; border-radius: 50%; background: var(--terra);
  border: 4px solid var(--cream); box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  cursor: grab; transition: transform .15s;
}
input[type="range"]#flock::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
input[type="range"]#flock::-moz-range-thumb {
  width: 38px; height: 38px; border-radius: 50%; background: var(--terra);
  border: 4px solid var(--cream); box-shadow: 0 6px 16px rgba(0,0,0,0.35); cursor: grab;
}
input[type="range"]#flock::-moz-range-track {
  height: 16px; border-radius: var(--r-pill); background: rgba(253,246,234,0.16);
}
.scale-row {
  display: flex; justify-content: space-between; font-weight: 700; font-size: .82rem;
  color: rgba(253,246,234,0.5); margin-top: 12px;
}

/* hen-yard (visual flock display) */
.hen-yard {
  margin-top: 26px; background: rgba(253,246,234,0.06); border-radius: var(--r-lg);
  padding: 13px 18px 0; border: 1.5px solid rgba(253,246,234,0.12);
  position: relative; overflow: hidden;
}
.hen-yard .yard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hen-yard .yard-lbl {
  font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(253,246,234,0.55);
}
.hen-yard .flock-chip { font-family: var(--display); font-weight: 700; font-size: .92rem; color: #ffc79a; white-space: nowrap; }
.yard-scene { position: relative; margin-top: 10px; padding: 6px 0 10px; }
.yard-scene .ground {
  position: absolute; left: -20px; right: -20px; bottom: 0; height: 38px;
  background: radial-gradient(120% 100% at 50% 100%, rgba(108,154,95,.40), rgba(108,154,95,0) 72%);
}
#henYard { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: flex-end; min-height: 40px; }

.flock-hen {
  width: 34px; height: 34px; object-fit: contain; transform-origin: 50% 100%;
  animation: pop .35s cubic-bezier(.2,1.4,.4,1) backwards;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.22));
}
@keyframes pop { from { transform: scale(0) rotate(-12deg); opacity: 0; } }

/* planner output cards */
.pcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pcard {
  background: rgba(253,246,234,0.96); color: var(--cocoa);
  border-radius: var(--r-md); padding: 18px 20px;
  position: relative; overflow: hidden; box-shadow: var(--sh-sm);
}
.pcard .pc-ico { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; opacity: .32; color: var(--terra-deep); }
.pcard .pc-lbl { font-weight: 700; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; color: var(--cocoa-55); }
.pcard .pc-val { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--cocoa); margin-top: 4px; line-height: 1.05; }
.pcard .pc-unit { font-weight: 700; font-size: .85rem; color: var(--cocoa-55); margin-top: 2px; }

.pcard.feature {
  grid-column: span 2; background: var(--leaf); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; min-height: 116px; gap: 8px;
}
.pcard.feature .pc-lbl { color: rgba(255,255,255,0.8); }
.pcard.feature .pc-val { color: var(--white); font-size: 2.1rem; white-space: nowrap; }
.pcard.feature .feat-side { text-align: right; }
.pcard.feature .feat-side .pc-unit { color: rgba(255,255,255,0.82); }
.pcard.feature.egg-pop { animation: eggpop .66s cubic-bezier(.2,.8,.3,1); }
@keyframes eggpop { 0%{transform:scale(1)} 26%{transform:scale(1.04)} 100%{transform:scale(1)} }

.pnote { font-size: .86rem; color: rgba(253,246,234,0.55); margin-top: 16px; }

/* animated hen in feature card */
.egg-hen {
  position: relative; width: 118px; height: 104px; flex: none; align-self: flex-end;
  margin-left: -4px; z-index: 2;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,.22));
  animation: henBreathe 3.4s ease-in-out infinite;
}
.egg-hen .ef { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; opacity: 0; }
.egg-hen .ef-on { opacity: 1; }
@keyframes henBreathe { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-2px)} }

/* ==========================================================================
   HOMEPAGE — ARTICLE GRID
   ========================================================================== */
.art-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }

.acard {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1.5px solid var(--cocoa-08);
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.acard:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.acard .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-deep); }
.acard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.acard:hover .thumb img { transform: scale(1.06); }

.cat-pill {
  position: absolute; left: 14px; top: 14px; font-weight: 700; font-size: .76rem;
  letter-spacing: .03em; text-transform: uppercase;
  background: var(--white); color: var(--cocoa);
  padding: 6px 13px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); z-index: 2;
}

.acard .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.acard h3 { font-size: 1.24rem; font-weight: 700; line-height: 1.18; }
.acard .excerpt { color: var(--cocoa-70); font-size: .94rem; margin-top: 8px; flex: 1; }
.acard .meta {
  display: flex; align-items: center; gap: 9px; margin-top: 16px;
  font-size: .85rem; color: var(--cocoa-55); font-weight: 700;
}
.acard .meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--cocoa-12); }

/* card layout variants */
.acard.lead-card { grid-column: span 6; grid-row: span 2; }
.acard.lead-card .thumb { aspect-ratio: auto; flex: 1; min-height: 240px; }
.acard.lead-card h3 { font-size: 1.72rem; }
.acard.std { grid-column: span 6; }
.acard.tri { grid-column: span 4; }

.more-row { display: flex; justify-content: center; margin-top: 36px; }

/* ==========================================================================
   HOMEPAGE — TRUST / HOW WE WORK
   ========================================================================== */
.trust {
  background: var(--leaf-soft); border-radius: var(--r-xl); overflow: hidden;
  position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; box-shadow: var(--sh-md);
}
.trust-media { position: relative; min-height: 320px; padding: 24px; }
.trust-media .photo-mask {
  position: absolute; inset: 24px; overflow: hidden;
  border-radius: 42% 42% 46% 46% / 12% 12% 16% 16%; box-shadow: var(--sh-md);
}
.trust-media .photo-mask img { width: 100%; height: 100%; object-fit: cover; }
.trust-copy { padding: 36px 44px 36px 14px; align-self: center; }
.trust-copy h2 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); font-weight: 800; }
.trust-copy p { color: var(--cocoa-70); font-size: 1rem; margin-top: 12px; max-width: 54ch; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.tstat { background: var(--white); border-radius: var(--r-md); padding: 13px 10px; text-align: center; box-shadow: var(--sh-sm); }
.tstat .n { font-family: var(--display); font-weight: 800; font-size: 1.42rem; color: var(--leaf-deep); line-height: 1; }
.tstat .t { font-weight: 600; font-size: .78rem; color: var(--cocoa-70); margin-top: 5px; }
.egg-badge { position: absolute; right: 12px; bottom: 12px; width: 92px; height: 92px; z-index: 3; }

/* ==========================================================================
   ARTICLE — BREADCRUMB
   ========================================================================== */
.crumb-row { padding: 8px 0 0; }
.crumb {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; font-weight: 700;
  font-size: .9rem; color: var(--cocoa-55); background: var(--white);
  border: 1.5px solid var(--cocoa-08); padding: 9px 18px;
  border-radius: var(--r-pill); box-shadow: var(--sh-sm);
}
.crumb a { color: var(--cocoa-70); transition: color .2s; }
.crumb a:hover { color: var(--terra-deep); }
.crumb .csep { width: 14px; height: 14px; color: var(--cocoa-12); }
.crumb .here { color: var(--cocoa); }

/* ==========================================================================
   ARTICLE — HEAD
   ========================================================================== */
.art-head { padding: 22px 0 8px; }
.art-head-inner { max-width: 880px; }

.cat-pill-inline {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--leaf-deep); background: var(--leaf-soft);
  padding: 8px 16px; border-radius: var(--r-pill);
}

.art-head h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 800; margin: 20px 0 0; max-width: 19ch; }

.art-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px;
  font-weight: 700; font-size: .96rem; color: var(--cocoa-55);
}
.art-meta .av { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: var(--sh-sm); }
.art-meta .by { color: var(--cocoa-70); }
.art-meta .msep { width: 5px; height: 5px; border-radius: 50%; background: var(--cocoa-12); }
.art-meta .clock { width: 16px; height: 16px; color: var(--terra-deep); }

.art-hero-mask {
  margin: 30px 0 6px; overflow: hidden;
  border-radius: 40% 40% 38% 38% / 11% 11% 9% 9%;
  box-shadow: var(--sh-md); border: 1.5px solid var(--cocoa-08); position: relative;
}
.art-hero-mask img { width: 100%; height: clamp(280px, 42vw, 520px); object-fit: cover; }
.art-hero-cap { font-size: .85rem; color: var(--cocoa-55); font-weight: 600; margin: 12px 4px 0; font-style: italic; }

/* ==========================================================================
   ARTICLE — TWO-COLUMN READING LAYOUT
   ========================================================================== */
.read-grid {
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  gap: 48px; align-items: start; padding: 30px 0 10px;
}

/* sidebar */
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }

.toc {
  background: var(--white); border: 1.5px solid var(--cocoa-08); border-radius: var(--r-lg);
  padding: 22px 22px 18px; box-shadow: var(--sh-sm);
}
.toc .toc-lbl {
  display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700;
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--cocoa-55);
  margin-bottom: 14px;
}
.toc .toc-lbl svg { width: 17px; height: 17px; color: var(--leaf-deep); }

.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 11px; align-items: baseline; padding: 8px 10px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; color: var(--cocoa-70); line-height: 1.35; transition: .2s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero); font-family: var(--display); font-weight: 700;
  font-size: .78rem; color: var(--terra-deep); flex: none;
}
.toc a:hover { background: var(--cream-deep); color: var(--cocoa); }
.toc a.active { background: var(--leaf-soft); color: var(--leaf-deep); }
.toc a.active::before { color: var(--leaf-deep); }

.toc-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  color: #fff; background: var(--terra-deep); border-radius: var(--r-pill);
  padding: 14px 20px; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s;
}
.toc-cta:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.toc-cta .arrow-i { width: 18px; height: 18px; }

/* sidebar mini planner */
.mini-planner {
  background: linear-gradient(160deg, #46342a 0%, #3a2c22 60%); color: var(--cream);
  border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--sh-md);
  position: relative; overflow: hidden;
}
.mini-planner .mp-blob { position: absolute; pointer-events: none; opacity: .15; }
.mini-planner .mp-tag {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase;
  color: #ffd9b8; background: rgba(217,132,82,0.22); padding: 6px 13px; border-radius: var(--r-pill);
}
.mini-planner h3 { position: relative; z-index: 2; font-size: 1.34rem; font-weight: 800; margin: 14px 0 0; color: var(--cream); }
.mini-planner .mp-read { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; }
.mini-planner .mp-read .big { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: #ffc79a; line-height: 1; }
.mini-planner .mp-read .lbl { font-weight: 700; font-size: .92rem; color: rgba(253,246,234,0.82); }
.mini-planner input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 12px;
  border-radius: var(--r-pill); background: rgba(253,246,234,0.16); outline: none; cursor: pointer;
  position: relative; z-index: 2;
}
.mini-planner input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px;
  border-radius: 50%; background: var(--terra); border: 4px solid var(--cream);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35); cursor: grab; transition: transform .15s;
}
.mini-planner input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.mini-planner input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--terra);
  border: 4px solid var(--cream); box-shadow: 0 6px 16px rgba(0,0,0,0.35); cursor: grab;
}
.mini-planner input[type="range"]::-moz-range-track {
  height: 12px; border-radius: var(--r-pill); background: rgba(253,246,234,0.16);
}
.mp-stats { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mp-stat {
  background: rgba(253,246,234,0.08); border: 1.5px solid rgba(253,246,234,0.12);
  border-radius: var(--r-md); padding: 12px 14px;
}
.mp-stat .s-lbl { font-weight: 700; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; color: rgba(253,246,234,0.6); }
.mp-stat .s-val { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--cream); margin-top: 3px; line-height: 1.05; }
.mp-stat .s-unit { font-weight: 700; font-size: .72rem; color: rgba(253,246,234,0.6); }
.mp-cta {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 700; font-size: .92rem; background: var(--terra); color: var(--white);
  padding: 12px 20px; border-radius: var(--r-pill); box-shadow: 0 8px 20px rgba(217,132,82,0.34);
  transition: transform .2s, box-shadow .2s;
}
.mp-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(217,132,82,0.42); }

/* ==========================================================================
   ARTICLE — BODY TYPOGRAPHY (.article)
   ========================================================================== */
.article { max-width: 68ch; }
.article > p { font-size: 1.1rem; color: var(--cocoa); margin: 20px 0; }
.article > p:first-child { font-size: 1.22rem; color: var(--cocoa); }

.article h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin: 52px 0 6px;
  scroll-margin-top: 100px; position: relative; padding-top: 8px;
}
.article h2::before {
  content: ""; display: block; width: 56px; height: 5px; border-radius: var(--r-pill);
  background: var(--terra); margin-bottom: 18px;
}

.article h3 { font-size: 1.25rem; font-weight: 800; margin: 30px 0 6px; }
.article h4 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 4px; }

.article a {
  color: var(--terra-deep); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--terra-soft); text-decoration-thickness: 2px;
  text-underline-offset: 3px; transition: .2s;
}
.article a:hover { color: var(--terra); text-decoration-color: var(--terra); }
.article strong { font-weight: 800; color: var(--cocoa); }

/* lists */
.article ul { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.article ul li { position: relative; padding-left: 34px; font-size: 1.06rem; color: var(--cocoa); line-height: 1.6; }
.article ul li::before {
  content: ""; position: absolute; left: 6px; top: .62em; width: 11px; height: 11px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft);
}
.article ol { margin: 22px 0; padding-left: 30px; display: flex; flex-direction: column; gap: 10px; }
.article ol li { font-size: 1.06rem; color: var(--cocoa); line-height: 1.6; }

/* answer callout card */
.answer-card {
  background: var(--leaf-soft); border: 1.5px solid var(--cocoa-08); border-radius: var(--r-lg);
  padding: 24px 26px; margin: 22px 0 26px; position: relative; overflow: hidden; box-shadow: var(--sh-sm);
}
.answer-card::after {
  content: ""; position: absolute; right: -34px; bottom: -34px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(108,154,95,0.18);
}
.answer-card .ac-lbl {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display);
  font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--leaf-deep); margin-bottom: 10px; position: relative; z-index: 2;
}
.answer-card .ac-lbl svg { width: 16px; height: 16px; }
.answer-card p { margin: 0; font-size: 1.08rem; color: var(--cocoa); position: relative; z-index: 2; }
.answer-card .accent { font-family: var(--display); font-weight: 800; color: var(--terra-deep); }

/* in-article figure */
.art-fig { margin: 34px 0; }
.art-fig .fig-mask {
  overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--sh-md);
  border: 1.5px solid var(--cocoa-08);
}
.art-fig img { width: 100%; height: clamp(240px, 36vw, 420px); object-fit: cover; }
.art-fig figcaption { font-size: .85rem; color: var(--cocoa-55); font-weight: 600; margin: 12px 4px 0; font-style: italic; }

/* table pod */
.table-pod {
  margin: 26px 0 30px; background: var(--white); border: 1.5px solid var(--cocoa-08);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.table-wrap { overflow-x: auto; margin: 26px 0 30px; }

.article table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .96rem; }
.article thead th {
  background: var(--leaf); color: var(--white); font-family: var(--display); font-weight: 700;
  text-align: left; padding: 15px 18px; font-size: .9rem; letter-spacing: .01em;
}
.article tbody td {
  padding: 14px 18px; border-top: 1.5px solid var(--cocoa-08);
  color: var(--cocoa); vertical-align: top;
}
.article tbody tr:nth-child(even) { background: var(--cream); }
.article tbody td:first-child { font-weight: 700; color: var(--cocoa); }

.table-src { font-size: .86rem; color: var(--cocoa-55); margin: -6px 0 26px; line-height: 1.55; }

/* references block */
.refs {
  margin: 48px 0 10px; background: var(--white); border: 1.5px solid var(--cocoa-08);
  border-radius: var(--r-lg); padding: 28px 30px 24px; box-shadow: var(--sh-sm);
}
.refs h2 { margin: 0 0 16px; padding: 0; font-size: 1.3rem; font-weight: 800; }
.refs h2::before { display: none; }
.refs .refs-lbl {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cocoa-55); margin-bottom: 16px;
}
.refs .refs-lbl svg { width: 17px; height: 17px; color: var(--leaf-deep); }
.refs ol { list-style: none; counter-reset: ref; display: flex; flex-direction: column; gap: 14px; }
.refs li {
  counter-increment: ref; position: relative; padding-left: 38px;
  font-size: .92rem; color: var(--cocoa-70); line-height: 1.55;
}
.refs li::before {
  content: counter(ref); position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--cream-deep); color: var(--cocoa-70);
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  display: grid; place-items: center; border: 1.5px solid var(--cocoa-08);
}
.refs a { color: var(--terra-deep); font-weight: 700; word-break: break-word; }
.refs a:hover { color: var(--terra); text-decoration: underline; }

/* Sources block (from _ha_sources meta) */
.sources { margin: 40px 0 10px; }
.sources h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.sources ol { list-style: none; counter-reset: src; display: flex; flex-direction: column; gap: 10px; }
.sources li { counter-increment: src; padding-left: 34px; position: relative; font-size: .92rem; color: var(--cocoa-70); line-height: 1.5; }
.sources li::before {
  content: counter(src); position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  border-radius: 50%; background: var(--cream-deep); color: var(--cocoa-55);
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  display: grid; place-items: center; border: 1.5px solid var(--cocoa-08);
}
.sources a b { color: var(--terra-deep); }
.sources .desc { display: block; font-size: .88rem; color: var(--cocoa-55); margin-top: 2px; }

/* ==========================================================================
   ARTICLE — READ NEXT (related guides strip)
   ========================================================================== */
.related, .readnext { padding: 16px 0 30px; }
.related .sec-head-c, .readnext .sec-head-c { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.related .sec-head-c h2, .readnext .sec-head-c h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; margin: 14px 0 0; }
.related .sec-head-c p, .readnext .sec-head-c p { color: var(--cocoa-70); font-size: 1.05rem; margin: 10px 0 0; }

.rel-grid, .rn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.rcard, .rn-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1.5px solid var(--cocoa-08);
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.rcard:hover, .rn-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.rcard .thumb, .rn-card .rn-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.rcard .thumb img, .rn-card .rn-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rcard:hover .thumb img, .rn-card:hover .rn-photo img { transform: scale(1.06); }
.rcard .cat-pill { position: absolute; left: 14px; top: 14px; z-index: 2; }

.rcard .body, .rn-card .rn-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.rcard h3, .rn-card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.rn-card .rn-tag { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 6px; display: block; }
.rcard .excerpt { color: var(--cocoa-70); font-size: .92rem; margin-top: 8px; flex: 1; }
.rcard .go, .rn-card .rn-read {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--terra-deep); font-size: .92rem;
}
.rcard:hover .go .arrow-i, .rn-card:hover .rn-read .arrow-i { transform: translateX(4px); }
.rcard .go .arrow-i, .rn-card .rn-read .arrow-i { transition: transform .25s; width: 16px; height: 16px; }

/* section-head (used in readnext PHP output) */
.section-head { margin-bottom: 32px; }
.section-head .eyebrow .dot { width: 10px; height: 10px; background: var(--terra); border-radius: 50%; display: inline-block; margin-right: 8px; }

/* ==========================================================================
   ARTICLE — FAQ ACCORDION (native <details>)
   ========================================================================== */
.faq-section { padding: 30px 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }

.faq-item {
  background: var(--white); border: 1.5px solid var(--cocoa-08);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
}
.faq-item summary {
  width: 100%; cursor: pointer; font-family: var(--display);
  font-weight: 700; font-size: 1.12rem; color: var(--cocoa);
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  list-style: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 28px; height: 28px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf-deep); display: grid; place-items: center; flex: none; transition: transform .25s; }
.faq-item[open] summary .chev { transform: rotate(180deg); background: var(--terra-soft); color: var(--terra-deep); }
.faq-item .chev svg { width: 16px; height: 16px; }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--cocoa-70); font-size: 1.02rem; }

/* pillar hub FAQ (JS accordion variant in organic-pillar.html) */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.qa { background: var(--white); border: 1.5px solid var(--cocoa-08); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.qa button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.16rem; color: var(--cocoa);
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.qa button .pm {
  width: 30px; height: 30px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf-deep);
  display: grid; place-items: center; flex: none; transition: transform .25s; font-size: 1.2rem; line-height: 1;
}
.qa.open button .pm { transform: rotate(45deg); background: var(--terra-soft); color: var(--terra-deep); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qa .ans p { padding: 0 24px 22px; color: var(--cocoa-70); font-size: 1.02rem; }
.qa .ans p .accent { font-weight: 800; color: var(--terra-deep); }

/* ==========================================================================
   PILLAR / HUB PAGE
   ========================================================================== */
/* topic hero */
.thero { padding: 20px 0 50px; }
.thero-pod {
  position: relative; background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden; display: grid; grid-template-columns: 1.08fr 0.92fr;
}
.thero-copy { padding: 56px 30px 56px 56px; align-self: center; position: relative; z-index: 2; }
.thero h1 { font-size: clamp(2.5rem, 4.4vw, 3.8rem); font-weight: 800; margin: 20px 0 0; }
.thero h1 .swoosh { color: var(--terra-deep); position: relative; white-space: nowrap; }
.thero h1 .swoosh svg { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .3em; }
.thero .lead { font-size: 1.16rem; color: var(--cocoa-70); margin: 22px 0 0; max-width: 48ch; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .92rem;
  color: var(--cocoa); background: var(--cream); border: 1.5px solid var(--cocoa-08);
  padding: 10px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
}
.chip .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.thero-actions { margin-top: 28px; }
.thero-media { position: relative; min-height: 460px; }
.thero-media .photo-mask { position: absolute; inset: 26px 30px 26px 0; overflow: hidden; border-radius: 46% 46% 42% 42% / 14% 14% 10% 10%; box-shadow: var(--sh-md); }
.thero-media .photo-mask img { width: 100%; height: 100%; object-fit: cover; }
.thero-sun { position: absolute; top: -36px; right: -24px; width: 168px; height: 168px; z-index: 3; }

/* feature (full-bleed start-here card on hub) */
.feature {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  background: var(--leaf-soft); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md);
}
.feature .f-media { position: relative; min-height: 300px; }
.feature .f-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .f-body { padding: 44px 46px; align-self: center; }
.feature .f-tag {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--leaf-deep);
}
.feature .f-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin: 12px 0 0; }
.feature .f-body p { color: var(--cocoa-70); font-size: 1.06rem; margin: 12px 0 24px; max-width: 44ch; }

/* guide groups */
.group { margin-top: 40px; }
.group-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.group-head .gi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--white); flex: none; box-shadow: var(--sh-sm); }
.group-head h3 { font-size: 1.4rem; font-weight: 800; }
.group-head .gcount { font-weight: 700; font-size: .86rem; color: var(--cocoa-55); margin-left: 2px; }
.g-leaf .gi { background: var(--leaf); }
.g-terra .gi { background: var(--terra); }
.g-sky .gi { background: var(--sky); }
.g-amber .gi { background: var(--amber); }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1.5px solid var(--cocoa-08); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
}
.guide:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--cocoa-12); }
.guide .gphoto { position: relative; height: 134px; overflow: hidden; }
.guide .gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.guide:hover .gphoto img { transform: scale(1.06); }
.guide .gphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58,44,34,0) 55%, rgba(58,44,34,.22)); }
.guide .gdot { position: absolute; left: 14px; bottom: 12px; z-index: 2; width: 16px; height: 16px; border-radius: 6px; border: 2.5px solid var(--white); box-shadow: var(--sh-sm); }
.guide .g-c { display: flex; flex-direction: column; padding: 15px 17px 18px; flex: 1; }
.guide h4 { font-size: 1.08rem; font-weight: 700; line-height: 1.22; color: var(--cocoa); }
.guide p { font-size: .9rem; color: var(--cocoa-70); margin-top: 5px; flex: 1; }
.guide .read { margin-top: 12px; font-weight: 700; font-size: .82rem; color: var(--cocoa-55); display: inline-flex; align-items: center; gap: 7px; }
.guide .read::after { content: "\2192"; color: var(--terra-deep); font-size: .98rem; transition: transform .2s; }
.guide:hover .read::after { transform: translateX(4px); }
.t-leaf { background: var(--leaf); } .t-terra { background: var(--terra); } .t-sky { background: var(--sky); } .t-amber { background: var(--amber); }

/* hub planner band */
.planband {
  margin-top: 46px; position: relative;
  background: linear-gradient(160deg, #46342a 0%, #3a2c22 60%);
  border-radius: var(--r-xl); padding: 44px 48px; color: var(--cream);
  overflow: hidden; box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 30px;
}
.planband .pblob { position: absolute; pointer-events: none; opacity: .14; }
.planband .pb-copy { position: relative; z-index: 2; }
.planband .pb-tag {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase; color: #ffd9b8;
  background: rgba(217,132,82,0.22); padding: 6px 14px; border-radius: var(--r-pill);
}
.planband h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--cream); margin: 12px 0 8px; }
.planband p { color: rgba(253,246,234,0.78); font-size: 1.04rem; max-width: 46ch; }
.planband .pb-cta { position: relative; z-index: 2; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  margin-top: 70px; background: var(--cocoa); color: var(--cream);
  position: relative; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.foot-blob { position: absolute; pointer-events: none; opacity: .1; }

.foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding: 64px 0 44px; position: relative; z-index: 2;
}
.foot-brand .brand { color: var(--cream); }
.foot-brand p { color: rgba(253,246,234,0.62); font-size: .96rem; margin-top: 16px; max-width: 32ch; }

.foot-col h4 {
  font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .06em;
  text-transform: uppercase; color: #ffc79a; margin-bottom: 14px;
}
.foot-col a { display: block; color: rgba(253,246,234,0.74); font-weight: 600; font-size: .95rem; padding: 5px 0; transition: color .2s, transform .2s; }
.foot-col a:hover { color: var(--cream); transform: translateX(4px); }

.foot-bottom {
  border-top: 1.5px solid rgba(253,246,234,0.12); padding: 22px 0 34px; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  color: rgba(253,246,234,0.55); font-size: .9rem; font-weight: 600;
}
.foot-bottom .disc { max-width: 60ch; }

/* ==========================================================================
   PAGE TEMPLATE (About / Privacy / Contact)
   ========================================================================== */
.page-content {
  max-width: 72ch; margin: 40px auto; padding: 0 28px 60px;
  font-size: 1.08rem; line-height: 1.75; color: var(--cocoa);
}
.page-content h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 24px; }
.page-content h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 12px; }
.page-content h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 8px; }
.page-content p { margin: 14px 0; }
.page-content a { color: var(--terra-deep); text-decoration: underline; }
.page-content ul, .page-content ol { padding-left: 24px; margin: 14px 0; }
.page-content li { margin: 6px 0; }

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 40px 28px;
}
.not-found h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; color: var(--terra); line-height: 1; }
.not-found p { font-size: 1.2rem; color: var(--cocoa-70); margin: 16px 0 32px; max-width: 40ch; }

/* ==========================================================================
   COLOUR TILE HELPERS (for hub thumbnail placeholders)
   ========================================================================== */
.tile-leaf { background: var(--leaf-soft); }
.tile-terra { background: var(--terra-soft); }
.tile-sky { background: var(--sky-soft); }
.tile-art { position: absolute; inset: 0; display: grid; place-items: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 921px) {
  .acard.std { flex-direction: row; }
  .acard.std .thumb { width: 42%; aspect-ratio: auto; flex: none; }
  .acard.std .body { width: 58%; }
}

@media (max-width: 980px) {
  .read-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .side { position: static; flex-direction: column; min-width: 0; }
  .toc, .toc-cta { display: none; }
  .mini-planner { max-width: 440px; margin: 8px auto 22px; }
  .article { max-width: 100%; min-width: 0; }
  .thero-pod { grid-template-columns: 1fr; } .thero-copy { padding: 44px 30px 24px; }
  .thero-media { min-height: 320px; } .thero-media .photo-mask { inset: 0 26px 26px; }
  .feature { grid-template-columns: 1fr; } .feature .f-media { min-height: 240px; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .planband { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .navbar { width: calc(100% - 32px); padding: 10px 14px 10px 16px; position: relative; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .hero-pod { grid-template-columns: 1fr; }
  .hero-copy { padding: 46px 30px 30px; text-align: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { min-height: 380px; }
  .hero-media .photo-mask { inset: 0 26px 26px; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .planner { padding: 36px 28px; } .planner-inner { grid-template-columns: 1fr; gap: 32px; }
  .trust { grid-template-columns: 1fr; } .trust-media { min-height: 320px; }
  .trust-copy { padding: 14px 36px 50px; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .acard.lead-card, .acard.std, .acard.tri { grid-column: span 12; }
  .acard.lead-card { grid-row: auto; }
  .acard.std { flex-direction: column; }
  .acard.std .thumb { width: 100%; aspect-ratio: 16/10; } .acard.std .body { width: 100%; }
  .rel-grid, .rn-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero-copy { padding: 36px 22px 26px; }
  .hub-grid { grid-template-columns: 1fr; }
  .pcards { grid-template-columns: 1fr; }
  .pcard.feature { grid-column: span 1; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .trust-copy { padding: 14px 24px 44px; }
  .foot-top { grid-template-columns: 1fr; }
  .flock-readout .big { font-size: 2.8rem; }
  .planner { padding: 30px 20px; }
  .art-head h1 { font-size: 2rem; }
  .article > p:first-child { font-size: 1.12rem; }
  .refs { padding: 24px 20px 20px; }
  .answer-card { padding: 20px 20px; }
  .guides { grid-template-columns: 1fr; }
  .thero-copy { padding: 34px 22px 22px; }
  .feature .f-body { padding: 30px 24px; }
  .planband { padding: 32px 24px; }
}
