/* brainhealth.php — The Four Legs of Brain Health (2026-11-27). Scoped .bh; Ao/tab styles live in beacon-framework.css. */
.bh { --rest: #4f6f93; --rest-t: #c9d7e6; --move: #c06a45; --move-t: #f2c5ac;
      --food: #5f8a5a; --food-t: #c8dabb; --mind: #b0821a; --mind-t: #f3dc9f; }
.bh section { padding: 0; background: transparent; z-index: auto; } /* main.css gives every <section> 140px + white */
.bh .bh-head h1 { font-size: clamp(34px, 5.6vw, 60px) !important; }

/* the Four Legs block: no own heading here (the page h1 says it) */
.bh .bh-legs .ff { padding: 44px 16px 36px; border-bottom: 1px solid var(--rule); }

/* Go deeper */
.bh .bh-deeper { padding: 56px 0 60px; background: #fff; }
.bh-sechead { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.bh-sechead h2, .bh-beacon h2 { font: 600 clamp(26px, 3.4vw, 36px)/1.15 var(--serif-d); color: var(--ink); margin: 0 0 8px !important; text-transform: none; letter-spacing: -.01em; }
.bh-sechead p, .bh-beacon p { font: 400 17px/1.6 var(--serif); color: var(--ink-2); margin: 0 !important; }

.bh-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bh-card { --c: var(--navy); --t: var(--paper-2); display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: 8px; padding: 20px 20px 18px; min-width: 0; }
.bh-card[data-ff="rest"] { --c: var(--rest); --t: var(--rest-t); }
.bh-card[data-ff="move"] { --c: var(--move); --t: var(--move-t); }
.bh-card[data-ff="food"] { --c: var(--food); --t: var(--food-t); }
.bh-card[data-ff="mind"] { --c: var(--mind); --t: var(--mind-t); }
.bh-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bh-card__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; height: 38px; border-radius: 50%;
  background: var(--t); color: var(--c); font-size: 21px; }
.bh-card h3 { font: 600 22px/1.15 var(--serif-d); color: var(--ink); margin: 0 !important; text-transform: none; letter-spacing: -.01em; }
.bh-card__line { font: italic 400 16px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 14px !important; }

.bh-links { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 8px; }
.bh-links a { display: flex; gap: 8px; align-items: flex-start; font: 500 14.5px/1.4 var(--sans); color: var(--ink); text-decoration: none;
  padding: 9px 10px; border-radius: 6px; background: var(--paper); border: 1px solid transparent; overflow-wrap: anywhere; }
.bh-links a:hover, .bh-links a:focus-visible { border-color: var(--c, var(--navy)); background: #fff; }
.bh-links a .mdi { flex: 0 0 auto; color: var(--c, var(--accent)); font-size: 17px; line-height: 1.2; }

/* the shell */
.bh-shell { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(240px, 340px); gap: 22px; align-items: center;
  margin-top: 22px; background: var(--navy); border-radius: 8px; padding: 24px 26px; }
.bh-shell .ff-shell__mark { flex: none; width: 56px; height: 64px; border-radius: 50%; border: 7px solid var(--gold);
  background: conic-gradient(from -90deg, var(--move-t) 0 25%, var(--food-t) 0 50%, var(--mind-t) 0 75%, var(--rest-t) 0 100%); }
.bh-shell .mag-sechead__over { color: var(--gold); }
.bh-shell h3 { font: 600 22px/1.2 var(--serif-d); color: #fff; margin: 4px 0 6px !important; text-transform: none; letter-spacing: -.01em; }
.bh-shell p { font: 400 16px/1.5 var(--serif); color: rgba(255,255,255,.82); margin: 0 !important; }
.bh-links--shell { margin: 0; }
.bh-links--shell a { background: rgba(255,255,255,.08); color: #fff; }
.bh-links--shell a .mdi { color: var(--gold); }
.bh-links--shell a:hover, .bh-links--shell a:focus-visible { background: rgba(255,255,255,.16); border-color: var(--gold); }

/* BEACON strip */
.bh .bh-beacon { padding: 44px 0; }
.bh-beacon__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.bh-beacon__in > div:first-child { max-width: 720px; }
.bh-beacon__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff !important;
  font: 600 14.5px/1 var(--sans); text-decoration: none; border: 1px solid var(--navy); }
.bh-btn .mdi { color: var(--gold); font-size: 18px; }
.bh-btn:hover { background: var(--navy-2); }
.bh-btn--ghost { background: transparent; color: var(--navy) !important; }
.bh-btn--ghost .mdi { color: var(--accent); }
.bh-btn--ghost:hover { background: #fff; }

@media (max-width: 1099.98px) {
  .bh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-shell { grid-template-columns: auto minmax(0, 1fr); }
  .bh-links--shell { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .bh .bh-deeper { padding: 40px 0 44px; }
  .bh-grid { grid-template-columns: 1fr; gap: 12px; }
  .bh-shell { grid-template-columns: 1fr; padding: 20px 18px; }
  .bh-beacon__btns, .bh-btn { width: 100%; justify-content: center; }
}

.bh [id] { scroll-margin-top: 90px; }

/* ---- Dyad of dyads (2026-11-28): two pairs, Re- (cool, restore) | Ex- (warm, activate). Backup _backup/four_steps_dyad_20261127/ ---- */
.bh .bh-motto { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font: italic 600 clamp(20px, 2.6vw, 26px)/1.25 var(--serif-d); margin: 0 0 10px !important; }
.bh .bh-motto span:nth-child(1) { color: var(--rest-t); } .bh .bh-motto span:nth-child(2) { color: var(--food-t); }
.bh .bh-motto span:nth-child(3) { color: var(--move-t); } .bh .bh-motto span:nth-child(4) { color: var(--mind-t); }
.bh-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bh-pair { --pc: var(--rest); border-radius: 12px; padding: 18px; background: linear-gradient(180deg, #f3f6fa, #fff 70%); border: 1px solid var(--rule); }
.bh-pair--out { --pc: var(--move); background: linear-gradient(180deg, #fbf4ee, #fff 70%); }
.bh-pair__head { display: flex; gap: 14px; align-items: center; margin: 2px 4px 16px; }
.bh-pair__pre { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--pc); color: #fff; font: 600 21px/1 var(--serif-d); }
.bh-pair__head h3 { font: 600 22px/1.15 var(--serif-d); color: var(--ink); margin: 0 0 2px !important; text-transform: none; }
.bh-pair__head p { font: 400 15px/1.45 var(--serif); color: var(--ink-2); margin: 0 !important; }
.bh-pair .bh-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.bh-card__top { flex-wrap: wrap; }
.bh-card h3 small { display: block; font: 500 12.5px/1.2 var(--sans); color: var(--ink-2); letter-spacing: .02em; margin-top: 2px; }
.bh-card__verb { margin-left: auto; font: italic 600 15px/1 var(--serif-d); color: var(--c); }
@media (max-width: 1099.98px) {
  .bh-pairs { grid-template-columns: 1fr; }
  .bh-pair .bh-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .bh-pair { padding: 14px 12px; }
  .bh-pair .bh-grid { grid-template-columns: 1fr; }
  .bh-pair__pre { width: 44px; height: 44px; font-size: 18px; }
}

/* ---- Title hero, redesigned 2026-11-28: light paper, big numeral left, step index right. Backup _backup/bh_title_20261128/ ---- */
.bh-hero { background: var(--paper); border-bottom: 1px solid var(--rule); padding: calc(var(--nav-h, 64px) + 44px) 16px 46px; }
.bh-hero__in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.bh-hero__kicker { display: block; font: 700 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.bh-hero__kicker i { font: italic 400 15px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 4px; }
.bh .bh-hero__title { display: flex; align-items: center; gap: 18px; margin: 0 !important; color: var(--ink); text-transform: none; letter-spacing: 0; }
.bh-hero__four { flex: 0 0 auto; font: 400 clamp(104px, 13vw, 168px)/.8 var(--serif); color: var(--navy); letter-spacing: -.04em;
  padding-right: 20px; border-right: 1px solid var(--rule); }
.bh-hero__words { display: block; font: 600 clamp(32px, 4.4vw, 54px)/1.02 var(--serif-d); letter-spacing: -.02em; }
.bh-hero__words em { display: block; font-style: italic; font-weight: 400; color: var(--accent); }
.bh .bh-hero__dek { font: 400 clamp(17px, 1.7vw, 19px)/1.55 var(--serif); color: var(--ink-2); max-width: 520px; margin: 24px 0 0 !important; }

.bh-hero__index { display: flex; flex-direction: column; }
.bh-hero__grp { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 16px 0 8px; }
.bh-hero__grp:first-child { padding-top: 0; }
.bh-hero__step { --c: var(--navy); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 13px 4px; border-top: 1px solid var(--rule); color: var(--ink) !important; text-decoration: none; transition: padding .2s ease, background .2s ease; }
.bh-hero__step + .bh-hero__grp { border-top: 1px solid var(--rule); }
.bh-hero__step[data-bh-go="rest"] { --c: var(--rest); } .bh-hero__step[data-bh-go="food"] { --c: var(--food); }
.bh-hero__step[data-bh-go="move"] { --c: var(--move); } .bh-hero__step[data-bh-go="mind"] { --c: var(--mind); }
.bh-hero__n { font: 600 12px/1 var(--sans); letter-spacing: .08em; color: var(--c); }
.bh-hero__name { font: 600 clamp(21px, 2.2vw, 25px)/1.1 var(--serif-d); letter-spacing: -.01em; }
.bh-hero__name small { font: 400 14px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.bh-hero__verb { font: italic 400 16px/1 var(--serif); color: var(--c); }
.bh-hero__step:hover, .bh-hero__step:focus-visible { padding-left: 12px; background: #fff; outline: none; }
.bh-hero__step:focus-visible { box-shadow: inset 2px 0 0 var(--c); }
.bh .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bh-hero__step { transition: none; } }
@media (max-width: 899.98px) {
  .bh-hero { padding-top: calc(var(--nav-h, 64px) + 30px); padding-bottom: 34px; }
  .bh-hero__in { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 575.98px) {
  .bh-hero__four { padding-right: 14px; }
  .bh .bh-hero__title { gap: 14px; }
  .bh-hero__name small { display: block; margin: 4px 0 0; }
  .bh-hero__step { padding: 11px 2px; }
}
.bh #four-legs { scroll-margin-top: calc(var(--nav-h, 64px) + 8px); }
