/* FHP palette: charcoal #1C1C1A, gold #B8975A, cream #F5F0E8, stone #8C8278 (brand-fhp.md).
   Like the FHP site: text, links and buttons are charcoal; true gold is only for lines, icons and accents on charcoal
   (Jonathan, Telegram 1663: the deep brown-gold looked unprofessional). Muted is a dark stone. */
:root {
  --navy: #1C1C1A;
  --blue: #1C1C1A;
  --sky: #B8975A;
  --ink: #1C1C1A;
  --muted: #5E5850;
  --bg: #F5F0E8;
  --card: #ffffff;
  --line: #E3DACB;
  --tint: #EBE4D8;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; font-family: Rajdhani, "Trebuchet MS", sans-serif; letter-spacing: .01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; }
.brand img { height: 40px; width: auto; }
.brand span { font-size: .95rem; border-left: 2px solid var(--line); padding-left: 10px; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--navy); font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.top nav a[aria-current] { background: var(--tint); }
@media (max-width: 520px) { .brand span { display: none; } .brand img { height: 34px; } }

main { padding: 20px 16px 48px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #B8975A, #CFAE6E); color: var(--navy);
  border-radius: var(--radius); padding: 28px 24px; margin-bottom: 18px;
}
.hero h1 { color: #fff; }
.hero p { margin: 0; font-size: 1.05rem; opacity: .95; }
.hero.small { display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px; }
.hero.small .ico.big { color: #CFAE6E; background: var(--navy); }
.hero .meta { margin-top: 8px; font-weight: 700; color: #fff; }

/* 3 steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; }
.step b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; }
.step p { margin: 0; font-size: .95rem; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Search */
.searchbox { margin-bottom: 22px; }
.searchbox label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.searchbox input {
  width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
.searchbox input:focus { outline: none; border-color: var(--blue); }
.results { list-style: none; margin: 8px 0 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.results li a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.results li:last-child a { border-bottom: 0; }
.results li a:hover { background: var(--tint); }
.results small { display: block; color: var(--muted); }

/* Topic grid */
.h2 { margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--sky); transform: translateY(-2px); }
.card p { margin: 0; font-size: .95rem; color: var(--muted); flex: 1; }
.card h3 { margin: 4px 0 0; }
.meta { font-size: .85rem; color: var(--blue); font-weight: 700; }
.tag { font-size: .7rem; font-weight: 700; color: var(--navy); background: var(--tint); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.ico { width: 22px; height: 22px; flex: none; }
.ico.big { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--tint); color: var(--blue); }

/* Continue banner */
.continue { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 2px solid var(--sky); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; }
.continue p { margin: 0; }

/* Topic page */
.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 700; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.sec { margin-bottom: 28px; }
.sec > h2 { padding-top: 6px; border-top: 3px solid var(--sky); padding-top: 14px; }
.lesson { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; scroll-margin-top: 80px; }
.lesson .lead { font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.try { background: var(--tint); border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.try-h { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--blue); }
.try p { margin: 6px 0 10px; }
.btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--blue); color: #fff; cursor: pointer; min-height: 44px;
}
.btn:hover { background: var(--navy); }
.btn.added { background: #fff; color: var(--navy); border: 2px solid var(--sky); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; min-height: 36px; font-weight: 600; }
.done { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; cursor: pointer; }
.done input, .planitem input { width: 22px; height: 22px; accent-color: var(--blue); }
.faq { margin-top: 6px; }
.faq h4 { color: var(--navy); }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--blue); }
details[open] summary::after { content: "−"; }
details p { margin: 0 16px 14px; }
.note { background: #fff; border: 1px dashed var(--sky); border-radius: 12px; padding: 12px 16px; color: var(--muted); }
.prevnext { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pn { font-weight: 700; text-decoration: none; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pn.next { margin-left: auto; }

/* My plan */
.planitem { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.planitem .txt { flex: 1; }
.planitem p { margin: 0 0 4px; }
.planitem small a { font-weight: 600; }
.planitem.isdone .txt p { text-decoration: line-through; color: var(--muted); }
.empty { text-align: center; padding: 28px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .88rem; padding: 18px 0; }
.foot p { margin: 0 0 6px; }

/* Login */
.login { max-width: 420px; margin: 8vh auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.login img { height: 52px; width: auto; margin-bottom: 12px; }
.login input { width: 100%; font: inherit; font-size: 1.2rem; text-align: center; letter-spacing: .08em; padding: 14px; border: 2px solid var(--line); border-radius: 12px; margin: 12px 0; }
.login .btn { width: 100%; }
.err { color: #a12a2a; font-weight: 700; }

/* References */
.refs { margin-top: 8px; }
.refs > p { margin: 0 16px 10px; color: var(--muted); }
.refs ol { margin: 0 16px 16px; padding-left: 20px; }
.refs li { margin-bottom: 10px; }
.refs li a { font-weight: 600; }
.refs small { display: block; color: var(--muted); }

/* Four nav links: second row on phones */
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; gap: 4px; }
  .top nav { width: 100%; justify-content: space-between; }
  .top nav a { padding: 6px 10px; font-size: .92rem; }
}
.lesson h4 { margin-top: 14px; }

/* Progress report */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.progress { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
.progress th, .progress td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: middle; }
.progress thead th { background: var(--navy); color: #fff; font-weight: 700; }
.progress tr.grp th { background: var(--tint); color: var(--navy); font-weight: 800; }
.progress tbody th { font-weight: 600; min-width: 190px; }
.progress input { width: 100%; min-width: 80px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.progress .chg { font-weight: 800; color: var(--navy); white-space: nowrap; }
.rp-name { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-name label, .rp-free { display: block; font-weight: 700; color: var(--navy); }
.rp-name input, .rp-free textarea { display: block; width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; }
.rp-name label { flex: 1 1 200px; }
.rp-free { margin-top: 14px; }
.printonly { display: none; }
.rp-head { align-items: center; gap: 14px; margin-bottom: 10px; color: var(--navy); }

/* Exercise library, meals */
.ex video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; margin: 6px 0 10px; }
.vidsoon { background: var(--tint); color: var(--navy); padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
.grocgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.groc strong { display: block; color: var(--navy); margin-bottom: 4px; }
.groc label { display: block; padding: 3px 0; }

/* Six nav links on phones */
@media (max-width: 560px) { .top nav a { padding: 6px 6px; font-size: .86rem; } }

@media print {
  .top, .foot, .noprint, .searchbox, .vidsoon, .btn, .done, .toc, .prevnext, .back { display: none !important; }
  .printonly { display: flex; }
  body { background: #fff; }
  .tablewrap { border: 0; overflow: visible; }
  table.progress { min-width: 0; font-size: 10pt; }
  .progress input, .rp-name input, .rp-free textarea { border: 0; padding: 2px; }
  .lesson { break-inside: avoid; box-shadow: none; }
}
@media (max-width: 560px) {
  .top nav { flex-wrap: wrap; justify-content: flex-start; row-gap: 2px; }
  .top nav a { flex: 1 0 30%; text-align: center; }
}
.report, .tablewrap { max-width: 100%; min-width: 0; }
.tablewrap { max-width: calc(100vw - 32px); }

/* Community board */
.cform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.cform label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.cform input, .cform textarea, .creply textarea { display: block; width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; box-sizing: border-box; }
.cform .err:empty { display: none; }
.board { display: grid; gap: 12px; margin-bottom: 24px; }
.cpost { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.cpost.pinned { border-color: var(--blue); box-shadow: 0 0 0 2px var(--tint); }
.cpost.reply { border: 0; border-left: 3px solid var(--sky); border-radius: 0; padding: 6px 0 6px 12px; }
.chead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chead .meta { color: var(--muted); font-size: .88rem; margin-left: auto; }
.cbody { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.cbar { display: flex; gap: 14px; }
.linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; }
.linkbtn.on { color: var(--navy); }
.linkbtn.danger { color: #b3261e; }
.creplies { margin-top: 8px; display: grid; gap: 6px; }
.creply { display: flex; gap: 8px; margin-top: 8px; align-items: flex-end; }
.creply textarea { margin: 0; }

/* Lesson extras: lists, small headings and the "Bottom line" box (build.blocks). */
.lesson ul, details ul { margin: 8px 0 12px; padding-left: 22px; }
.lesson li, details li { margin: 4px 0; }
.lesson h4 { margin: 18px 0 6px; color: var(--blue); }
.keybox { background: #fff; border: 2px solid var(--blue); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.keybox strong { color: var(--blue); text-transform: uppercase; font-size: .85em; letter-spacing: .04em; }
.keybox p { margin: 6px 0 0; }

/* Book and print: long lessons may split across pages; headings stay with their text. */
@media print {
  .lesson, .sec { break-inside: auto; }
  h2, h3, h4, .lead { break-after: avoid; }
  .keybox, .try, details, li { break-inside: avoid; }
}
.deeper { margin: 10px 0 4px; font-weight: 700; }
.card.start { border: 2px solid var(--blue); }
.score { border: 0; padding: 0; margin: 0 0 12px; }
.score legend { font-weight: 700; margin-bottom: 8px; }
.scores { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scores label { display: block; margin: 0; position: relative; }
.scores input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scores span { display: block; text-align: center; padding: 8px 0; border: 1px solid var(--blue); border-radius: 8px; font-weight: 700; cursor: pointer; }
.scores input:checked + span { background: var(--blue); color: #fff; }
.scores input:focus-visible + span { outline: 3px solid var(--navy, #1C1C1A); }
.cform label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
@media (max-width: 400px) { .scores { grid-template-columns: repeat(6, 1fr); } }

/* Daily mobility flow (flow.html, static/flow.js) — added 2026-11-07 */
.flow-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; }
.flow-card > label { display: block; font-weight: 700; color: var(--navy); margin: 10px 0 6px; }
.flow-card > label input:not([type=checkbox]) { display: block; width: 100%; font: inherit; padding: 9px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; }
.flow-card label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .95rem; }
.flow-msg { font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.flow-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.flow-stats div { background: var(--tint); border-radius: 12px; padding: 10px 6px; text-align: center; }
.flow-stats b { display: block; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.flow-stats b.sm { font-size: .95rem; padding: 7px 0 4px; }
.flow-stats span { font-size: .8rem; color: var(--muted); }
.flow-plan:empty { display: none; }
.flow-plan { color: var(--blue); font-weight: 700; margin: 0 0 10px; }
.flow-go { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.btn.big { font-size: 1.15rem; padding: 14px 20px; min-height: 56px; background: var(--navy); }
.flow-go .btn.ghost { font-size: 1rem; min-height: 44px; }
.flow-pdf { margin: 0 0 8px; }
.stars { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stars li { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px 3px 6px; }
.stars li span { color: #D6CBB8; margin-right: 3px; }
.stars li.got { color: var(--navy); border-color: #f2c94c; background: #fff8e1; font-weight: 700; }
.stars li.got span { color: #f2b705; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head h2 { margin: 0; }
.cal-head button { font: inherit; font-size: 1.6rem; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
.cal-dow, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-dow { font-size: .78rem; font-weight: 800; color: var(--muted); margin: 12px 0 6px; }
.cd { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; padding: 0; }
.cd.blank { border: 0; background: none; cursor: default; }
.cd.miss { background: #EFE9DF; color: #8C8278; }
.cd.done { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 800; }
.cd.done.mini { background: var(--sky); border-color: var(--sky); }
.cd.today { box-shadow: 0 0 0 3px var(--sky); }
.flow-card .note { margin: 12px 0; font-size: .92rem; }
.due { font-weight: 700; color: var(--navy); }
.due.now { color: #b25e00; }
.cform fieldset.zone { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 8px 12px; }
.cform fieldset.zone legend { font-weight: 800; color: var(--navy); padding: 0 6px; }
.hist table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 8px; }
.hist th, .hist td { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; }
.hist td.pass { color: var(--navy); font-weight: 800; }
.pain { background: var(--tint); border-left: 4px solid var(--navy); border-radius: 8px; padding: 10px 14px; margin-top: 12px; font-size: .92rem; }
.pain b { color: var(--navy); }
body.noscroll { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 50; background: #F5F0E8; overflow-y: auto; padding: 12px 16px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.player[hidden], .celebrate[hidden] { display: none; }
.p-top { width: 100%; max-width: 560px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 700; font-size: .9rem; }
.p-top button { font-size: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.p-bar { width: 100%; max-width: 560px; height: 6px; background: var(--line); border-radius: 3px; margin: 8px 0 12px; overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .4s; }
.player img { width: 100%; max-width: 560px; border-radius: 12px; aspect-ratio: 3/2; object-fit: cover; background: #EFE9DF; }
.player h2 { margin: 12px 0 2px; }
.p-how { color: var(--muted); max-width: 560px; margin: 0 0 6px; font-size: .95rem; }
.p-stage { position: relative; width: 220px; height: 220px; display: grid; place-items: center; margin: 6px 0; flex: none; }
.circle { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--sky), var(--blue) 60%, var(--navy)); box-shadow: 0 10px 40px rgba(184,151,90,.35); transition-property: transform; transition-timing-function: ease-in-out; }
.circle.small { transform: scale(.45); }
.circle.big { transform: scale(1); }
.circle.rest { transform: scale(.6); opacity: .55; }
.p-words { position: relative; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); max-width: 190px; }
.p-words b { display: block; font-size: 1.35rem; }
.p-words span { display: block; font-size: .85rem; line-height: 1.3; }
.p-count { font-weight: 800; color: var(--navy); margin: 4px 0 10px; }
.p-ctrl { display: flex; gap: 8px; }
.p-ctrl button { font: inherit; font-weight: 700; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.p-ctrl #pPause { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-height: 700px) { .p-stage, .circle { width: 170px; height: 170px; } .player img { max-height: 30vh; } }
.celebrate { position: fixed; inset: 0; z-index: 60; background: rgba(28,28,26,.55); display: grid; place-items: center; padding: 16px; overflow: hidden; }
.c-box { position: relative; background: #fff; border-radius: 20px; padding: 26px 22px; max-width: 380px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .45s ease-out; }
.c-big { font-size: 4rem; color: #f2b705; line-height: 1; animation: spin 1.2s ease-out; }
.c-stars { position: absolute; inset: 0; pointer-events: none; }
.burst { position: absolute; top: -40px; color: #f2c94c; animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); opacity: .2; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { from { transform: rotate(-180deg) scale(.3); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .burst, .c-box, .c-big { animation: none; } .burst { display: none; } }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { font: inherit; font-size: .92rem; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.c-box .anchors { justify-content: center; }
details.flow-card summary { cursor: pointer; color: var(--navy); min-height: 32px; }
.cd { width: 100%; display: grid; place-items: center; }
.cform label.check input { display: inline-block; width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.cform fieldset.zone label.check { margin-bottom: 6px; color: var(--ink); }
details.selfcheck > summary { cursor: pointer; margin: 8px 0; }
.p-opts { justify-content: center; margin: 0 0 8px; }
.why { font-size: .88rem; color: var(--muted); margin: 4px 0 0 30px; }
.p-feel { color: var(--navy); font-weight: 700; font-size: .9rem; max-width: 560px; margin: 0 0 6px; }
/* [hidden] must win over .anchors display:flex (option tabs showed on drills without options). */
.anchors[hidden] { display: none; }

/* ---------- One-year vision board (vision.html, static/vision.js) ---------- */
.vb-prog { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 0 0 6px; }
.vb-prog i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.vb-stepno { color: var(--muted); font-size: .9rem; font-weight: 700; margin: 0 0 8px; min-height: 1.2em; }
.vb-msg { background: #fff6e0; border: 1px solid #f0d58a; border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.vb-step[hidden] { display: none; }
.vb-step .h2 { margin-top: 0; }
.vb-intro { color: var(--muted); }
.vb-q { font-weight: 800; color: var(--navy); margin: 18px 0 4px; font-size: 1rem; }
.vb-field { display: block; margin: 14px 0 0; }
.vb-field > span { display: block; font-weight: 700; color: var(--navy); }
.vb-hint { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.vb-field input, .vb-field textarea, .vb-habit input { display: block; width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; background: #fff; }
.vb-field input:focus, .vb-field textarea:focus, .vb-habit input:focus { outline: 2px solid var(--sky); border-color: var(--blue); }
.vb-prompts { color: var(--muted); font-size: .92rem; margin: 6px 0 0; padding-left: 18px; }
.vb-prompts:empty { display: none; }
.vb-habits { display: grid; gap: 12px; margin: 12px 0; }
.vb-habit { background: var(--tint); border-radius: 12px; padding: 12px 14px; }
.vb-habit label { display: block; font-weight: 700; color: var(--navy); font-size: .92rem; margin-top: 8px; }
.vb-hh { display: flex; justify-content: space-between; align-items: center; }
.vb-nav { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 24px; }
.vb-nav .btn:not(.ghost) { margin-left: auto; min-width: 140px; }
.vb-start { display: flex; gap: 22px; align-items: flex-start; }
.vb-example { width: 180px; height: auto; border-radius: 22px; box-shadow: 0 8px 24px rgba(28,28,26,.25); flex: none; }
.vb-list { padding-left: 20px; }
.vb-list li { margin: 4px 0; }
.vb-why-link { margin: 12px 0 0; font-size: .92rem; }
.vb-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.vb-swatch { font: inherit; font-weight: 700; font-size: .9rem; min-height: 48px; padding: 6px 14px; border-radius: 12px; border: 3px solid transparent; cursor: pointer; }
.vb-swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.vb-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.vb-photos:empty { display: none; }
.vb-photos figure { margin: 0; text-align: center; }
.vb-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; display: block; }
.vb-fmts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.vb-missing { color: #8a5a00; background: #fff6e0; border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.vb-preview { display: flex; gap: 12px; justify-content: center; margin: 12px 0 16px; min-height: 120px; }
.vb-preview canvas { display: block; height: auto; border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.18); background: #fff; }
.vb-preview.phone canvas { width: min(260px, 70%); border-radius: 26px; }
.vb-preview.desktop canvas { width: 100%; }
.vb-preview.pdf canvas { width: calc(50% - 6px); max-width: 300px; border: 1px solid var(--line); border-radius: 4px; }
.vb-howto { color: var(--muted); font-size: .92rem; margin: 12px 0; }
.vb-howto[hidden], .vb-missing[hidden], #vbDone[hidden], .vb-msg[hidden] { display: none; }
@media (max-width: 560px) {
  .vb-start { flex-direction: column; align-items: center; }
  .vb-example { width: 160px; }
}
.vb-own { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 48px; padding: 4px 14px 4px 6px; border-radius: 12px; border: 3px solid transparent; font-weight: 700; cursor: pointer; }
.vb-own.on { border-color: var(--ink); }
.vb-own input[type="color"] { width: 44px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer; }
.vb-verse { margin: 0 0 14px; padding: 12px 16px; border-left: 4px solid var(--accent, #1C1C1A); background: rgba(28,28,26,.06); border-radius: 0 10px 10px 0; font-style: italic; font-size: 1.05rem; }
.vb-verse cite { display: block; margin-top: 4px; font-style: normal; font-weight: 700; font-size: .9rem; }
.vb-more { margin: 12px 0; } .vb-more summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.vb-more ul { margin: 6px 0; padding-left: 20px; } .vb-more li { margin: 6px 0; }
.vb-layers { margin: 8px auto 12px; max-width: 260px; text-align: center; }
.vb-layers svg { width: 100%; height: auto; }
.vb-layers .l3 { fill: rgba(28,28,26,.08); } .vb-layers .l2 { fill: rgba(28,28,26,.16); } .vb-layers .l1 { fill: #1C1C1A; }
.vb-layers text { text-anchor: middle; font-family: inherit; } .vb-layers .t { font-weight: 800; font-size: 14px; letter-spacing: .08em; fill: #1C1C1A; } .vb-layers .s { font-size: 12px; fill: #4A453F; }
.vb-layers text:nth-of-type(5), .vb-layers text:nth-of-type(6) { fill: #fff; }
.vb-layers figcaption { font-size: .85rem; color: #5E5850; }
.vb-two p { margin: 6px 0; }
textarea.vbWhy, #vbWhyLine { resize: vertical; }
label.vb-own { display: inline-flex !important; flex-direction: row; width: auto; }
label.vb-own input[type="color"] { width: 48px !important; min-width: 48px; height: 40px; flex: none; margin: 0; border-radius: 8px; }
.vb-chart { margin: 10px auto 14px; max-width: 340px; text-align: center; }
.vb-chart svg { width: 100%; height: auto; }
.vb-chart .bn { fill: #1C1C1A; } .vb-chart .bv { fill: #C9B48A; }
.vb-chart text { font-family: inherit; text-anchor: middle; } .vb-chart .v { font-size: 11px; font-weight: 800; fill: #1C1C1A; }
.vb-chart .c { font-size: 11px; font-weight: 700; fill: #4A453F; } .vb-chart .k { font-size: 11px; text-anchor: start; fill: #1C1C1A; }
.vb-chart figcaption { font-size: .85rem; color: #5E5850; }
.card.my-board { display: flex; gap: 14px; align-items: flex-start; }
.card.my-board[hidden] { display: none; }
.card.my-board img { width: 90px; height: auto; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); flex: none; }
.card.my-board .mb-word { font-weight: 800; color: var(--ink); margin: 2px 0 6px; }
.vb-see { margin: 14px 0 10px; padding: 12px 14px; border-radius: 12px; background: rgba(28,28,26,.07); }

/* FHP accents (Telegram 1663): gold underlines, gold icons on charcoal tiles, gold-on-hover buttons. */
a { text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ico.big { background: var(--navy); color: var(--sky); }
.btn:hover { background: var(--sky); color: var(--navy); }
.step b { color: var(--navy); }
.try { border-left-color: var(--sky); }
.meta, .try-h, .lesson h4, .keybox strong { color: var(--navy); }
.keybox { border-color: var(--sky); }
.card.start { border-color: var(--sky); }

/* Gold look (Jonathan, Telegram 1669: "goldish, more professional"). Brand gold #B8975A with the FHP site's
   --gold-bright #CFAE6E; charcoal text on gold for contrast. */
.hero h1, .hero p, .hero .meta { color: var(--navy); }
.hero .ico.big { background: var(--navy); color: #CFAE6E; }
.ico.big { background: linear-gradient(135deg, #B8975A, #CFAE6E); color: var(--navy); }
.btn, .btn.big { background: linear-gradient(135deg, #B8975A, #CFAE6E); color: var(--navy); }
.btn:hover { background: var(--navy); color: #CFAE6E; }
.step b { background: linear-gradient(135deg, #B8975A, #CFAE6E); }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); }
