/* REYES base for Reyes Dental Arts websites (shared by Omak and Phoenix).
   Source of truth: ~/Projects/reyes/docs/design-system.md. Edit here, then run apply_reyes_theme.py,
   which copies this file into each site as /reyes-base.css. */

:root,body[data-theme]{  /* body[data-theme] too: some education pages set per-location colors there */
  --r-bg:#000;--r-surface:#0b0a08;--r-field:#151410;
  --r-line:#2f281e;--r-line-2:#3a3226;
  --r-text:#f8f4eb;--r-text-2:#c7bfae;--r-hint:#8f8878;
  --r-gold:#e8c67d;
  --r-font:"Avenir Next",Avenir,"DM Sans","Segoe UI",system-ui,sans-serif;
  /* remap the site's own variables */
  --cream:#000;--ink:#f8f4eb;--gold:#e8c67d;--muted:#c7bfae;--line:#2f281e;
  --dark:#000;--ivory:#f8f4eb;
  --paper:#000;--sage:#0b0a08;--copper:#e8c67d;  /* Phoenix variable names */
  --serif:var(--r-font);--sans:var(--r-font);
  color-scheme:dark;
}

html,body{background:var(--r-bg)!important;color:var(--r-text)}
body{font-family:var(--r-font);font-size:16px;-webkit-font-smoothing:antialiased}
::selection{background:#e8c67d40}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--r-gold)!important;outline-offset:3px}
.skip{background:var(--r-surface);color:var(--r-text);border:1px solid var(--r-line-2);border-radius:12px}

/* ---------- Type ---------- */
h1,h2,h3,h4{font-family:var(--r-font)!important;font-weight:500!important;font-style:normal!important;color:var(--r-text);letter-spacing:-.01em}
h2{font-size:clamp(2rem,3.4vw,3rem)!important;line-height:1.08!important}
h3{font-size:22px;line-height:1.25}
p,li{color:var(--r-text-2)}
strong{color:var(--r-text);font-weight:500}
.eyebrow,.section-heading .eyebrow,.contact .eyebrow,.why-reyes .eyebrow,.technology-section .eyebrow,.art-note .eyebrow,.detail-main .eyebrow{
  font-size:10px!important;font-weight:500;letter-spacing:.22em!important;text-transform:uppercase;color:var(--r-gold)!important;margin-bottom:14px}
.subtle-note,.provider-disclosure,footer>span{color:var(--r-hint)!important;font-size:13px!important}
.section-heading p{color:var(--r-text-2)}

/* ---------- Buttons: one gold pill, everything else outline ---------- */
.button{border-radius:999px!important;min-height:44px!important;padding:11px 22px!important;font:500 15px/1.2 var(--r-font)!important;box-shadow:none!important}
.button:hover{transform:none!important}
.gold,.button.gold{background:var(--r-gold)!important;color:#1a1408!important;border:1px solid var(--r-gold)!important}
.gold:hover,.button.gold:hover{background:#f0d394!important}
.outline,.button.outline,.button:not(.gold){background:transparent!important;color:var(--r-text)!important;border:1px solid var(--r-line-2)!important}
.button:not(.gold):hover{border-color:var(--r-hint)!important}
/* Text links: gold words with a chevron instead of underlined caps */
.text-link,.service-text>span,.directions{color:var(--r-gold)!important;border:0!important;text-decoration:none!important;text-transform:none!important;letter-spacing:0!important;font-size:15px!important;font-weight:500}
.text-link:after,.service-text>span:after{content:" ›"}
.text-link:hover,.directions:hover{color:#f0d394!important}


/* Brand: ring-R emblem before the wordmark */
.brand .reyes-emblem{width:40px;height:40px;flex:none;display:block}
*{text-shadow:none!important}

/* One font everywhere (both sites ship older serif/Arial/Georgia rules) */
body :is(h1,h2,h3,h4,h5,h6,p,span,a,button,li,strong,small,b,em,i,label,summary,input,select,textarea,figcaption,blockquote,td,th,div,dt,dd){font-family:var(--r-font)!important}

/* Severe-periodontitis education page: Avenir is slightly wider than the old font, so let the
   narrow three-step treatment diagram wrap long words instead of spilling past the screen edge */
.icon-strip .icon-node strong,.icon-strip .icon-node span{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere}
.cell-treatment-path .icon-node strong{font-size:12px}

/* About-page story paintings (orchard, ladder, collage tooth, scaffolded tooth, stairway): bright painterly
   color clashed with the black-and-gold artwork. Shown as warm gold monochrome with deep blacks so they sit
   with the rest. Display-only: the original image files are unchanged (remove this rule to undo). */
.orchard-art img{filter:grayscale(1) contrast(1.45) brightness(.6) sepia(1) saturate(1.35) hue-rotate(-4deg)}

/* ================= Futuristic, quietly (owner, 2026-11-22) =================
   Apple-style "new" without clutter: a glass header content slides under, precise large type
   on big screens, and sections that ease in on scroll. No glows or gradients (REYES rule);
   motion is off for people who ask for reduced motion. */
body>header,body>.site-header,body header:first-of-type{position:sticky!important;top:0;z-index:50;
  background:rgba(0,0,0,.72)!important;-webkit-backdrop-filter:saturate(1.4) blur(18px);backdrop-filter:saturate(1.4) blur(18px);
  border-bottom:1px solid rgba(58,50,38,.6)!important}
@media(min-width:900px){
  .hero-content h1,.hero-content h1 span,.hero-reyes,.hero-arts{font-size:clamp(44px,4.6vw,64px)!important;letter-spacing:.02em!important;line-height:1.02!important}
  .hero-content h2,.hero-subtitle{font-size:21px!important}
}
@media(prefers-reduced-motion:no-preference){
  @supports(animation-timeline:view()){
    main section,.service,.feature-cards>article,.location-band{animation:reyes-rise linear both;animation-timeline:view();animation-range:entry 0% entry 28%}
  }
}
@keyframes reyes-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
html body{background:#000!important}

/* ================= REYES home screen (owner, 2026-11-22) =================
   App grid in the REYES software's Home style (HomeAppGrid.css): glossy rounded squares colored
   by kind of app, white line drawings, short labels. 3 per row on phones, 5 on tablets, 9 on desktop.
   App icons are the one place REYES allows a sheen and a soft shadow. */
.reyes-apps{padding:20px 20px 8px!important;max-width:980px;margin:0 auto;border:0!important;background:transparent!important}
.reyes-springboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 8px}
@media(min-width:600px){.reyes-springboard{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:900px){.reyes-springboard{grid-template-columns:repeat(9,minmax(0,1fr));gap:28px 8px}}
.reyes-app{display:flex!important;flex-direction:column;align-items:center;gap:8px;text-decoration:none!important;color:var(--r-text)!important;-webkit-tap-highlight-color:transparent}
.reyes-app strong{font:500 12.5px/1.25 var(--r-font)!important;color:var(--r-text)!important;text-align:center;letter-spacing:.01em;max-width:100%}
.reyes-app-icon{position:relative;overflow:hidden;isolation:isolate;width:64px;height:64px;border-radius:17px;display:grid;place-items:center;color:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.55),0 2px 4px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.45),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -2px 6px rgba(0,0,0,.25)!important;transition:transform .12s ease,filter .15s ease}
.reyes-app-icon:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background:radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.55) 0%,rgba(255,255,255,.18) 45%,rgba(255,255,255,0) 70%)}
.reyes-app-icon svg{position:relative;z-index:1;width:30px;height:30px;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.28))}
.reyes-app-icon[data-app-color=patients]{background:linear-gradient(180deg,#5aa2ff 0%,#2a6cf0 55%,#1a4fc4 100%)}
.reyes-app-icon[data-app-color=clinical]{background:linear-gradient(180deg,#45d58f 0%,#1fa463 55%,#127a47 100%)}
.reyes-app-icon[data-app-color=specialty]{background:linear-gradient(180deg,#3fd0d2 0%,#1a9ea3 55%,#0f7177 100%)}
.reyes-app-icon[data-app-color=money]{background:linear-gradient(180deg,#ffc95a 0%,#f0a020 55%,#cc7a08 100%)}
.reyes-app-icon[data-app-color=practice]{background:linear-gradient(180deg,#b1b7bf 0%,#848a93 55%,#5a6069 100%)}
.reyes-app:hover .reyes-app-icon{filter:brightness(1.08)}
.reyes-app:active .reyes-app-icon{transform:scale(.94);filter:brightness(.92)}
.reyes-app:focus-visible{outline:none!important}
.reyes-app:focus-visible .reyes-app-icon{outline:2px solid var(--r-gold);outline-offset:3px}
@media(min-width:1200px){.reyes-app-icon{width:76px;height:76px;border-radius:20px}.reyes-app-icon svg{width:36px;height:36px}.reyes-app strong{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.reyes-app:active .reyes-app-icon{transform:none}}

/* 3D demo pages: gold "‹ Home" at the top-left, like every REYES app */
.demo-home{color:var(--r-gold)!important;font:500 15px/1 var(--r-font)!important;text-decoration:none!important;margin-right:14px;white-space:nowrap}
.reyes-springboard a.reyes-app{border:0!important;padding:0!important;min-height:0!important;background:none!important}
.reyes-springboard{align-items:start!important}.reyes-app{justify-content:flex-start!important}

/* ================= Calm About page (owner, 2026-11-22) =================
   REYES "one thing open at a time": the story chapters are tap-to-open rows in one group;
   the three summary cards are rows that open their chapter. No text removed. */
.photo-slot{display:none!important}                         /* name chip repeated the title; a portrait will go here */
.personal-art .artwork{display:none!important}
.art-heading{display:block!important;margin-bottom:14px!important}
.art-heading .eyebrow{display:none!important}
.art-heading h2{font-size:28px!important;margin:0 0 4px!important}
.art-deck{font-size:15px!important;color:var(--r-text-2)!important;text-align:left!important;max-width:none!important;margin:0!important}
.art-chapters{display:block!important;background:var(--r-surface)!important;border:1px solid var(--r-line)!important;border-radius:16px!important;overflow:hidden;padding:0!important;margin-top:16px!important}
.art-chapters a.chapter{display:block!important;position:relative;padding:14px 44px 14px 18px!important;background:none!important;border:0!important;border-radius:0!important;min-height:0!important;color:var(--r-text)!important}
.art-chapters a.chapter+a.chapter:before{content:"";position:absolute;top:0;left:18px;right:0;border-top:1px solid var(--r-line)}
.art-chapters a.chapter:after{content:"›";position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--r-hint);font-size:22px}
.art-chapters .chapter-number,.art-chapters .chapter-link{display:none!important}
.art-chapters h3{font-size:17px!important;margin:0 0 2px!important;color:var(--r-text)!important}
.art-chapters p{font-size:14px!important;margin:0!important;color:var(--r-text-2)!important}

/* Chapters: one grouped list of rows */
.orchard-chapter{background:var(--r-surface)!important;border:1px solid var(--r-line)!important;border-top:0!important;border-radius:0!important;margin:0 auto!important;padding:0!important;max-width:980px}
.orchard-chapter:has(+ .orchard-chapter),.orchard-chapter + .orchard-chapter{border-radius:0!important}
:not(.orchard-chapter)+.orchard-chapter{border-top:1px solid var(--r-line)!important;border-radius:16px 16px 0 0!important;margin-top:28px!important}
.orchard-chapter:not(:has(+ .orchard-chapter)){border-radius:0 0 16px 16px!important;margin-bottom:28px!important}
.chapter-fold>summary{list-style:none;cursor:pointer;display:block!important;position:relative;padding:14px 44px 14px 18px!important;margin:0!important;text-align:left!important}
.chapter-fold>summary::-webkit-details-marker{display:none}
.chapter-fold>summary .eyebrow{display:block!important;font-size:11px!important;letter-spacing:.08em!important;color:var(--r-hint)!important;margin:0 0 2px!important}
.chapter-fold>summary h2{font-size:19px!important;line-height:1.3!important;margin:0!important;color:var(--r-text)!important}
.fold-chevron{position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--r-hint);font-size:22px;transition:transform .2s ease}
.chapter-fold[open] .fold-chevron{transform:translateY(-50%) rotate(90deg)}
.chapter-fold[open]>summary h2{color:var(--r-gold)!important}
.chapter-body{padding:0 18px 18px!important}
.chapter-body .orchard-art{margin:4px 0 14px!important;border-radius:14px;overflow:hidden}
.chapter-body .orchard-reflection{display:block!important;padding:0!important;margin:0!important}
.chapter-body .reflection-mark{display:none!important}
.chapter-body blockquote{margin:0!important;padding:0!important;border:0!important}
.chapter-body blockquote p{font-size:16px!important;line-height:1.6!important;color:var(--r-text-2)!important}
.chapter-body .reflection-credit{font-size:12px!important;color:var(--r-hint)!important;margin:8px 0 0!important}
.orchard-chapter+.orchard-chapter .chapter-fold>summary:before{content:"";position:absolute;top:0;left:18px;right:0;border-top:1px solid var(--r-line)}
@media(prefers-reduced-motion:reduce){.fold-chevron{transition:none}}
/* About title: the large name + one gray line; no gold label stacked above it */
.detail-main>.eyebrow:first-child,.introduction>.eyebrow:first-child,.introduction .intro-eyebrow{display:none!important}
.chapter-body .orchard-art{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding:0!important;min-height:0!important;height:auto!important;aspect-ratio:3/2}.chapter-body .orchard-art img{width:100%!important;height:100%!important;object-fit:cover;position:static!important;transform:none!important}
/* Phoenix shipped ".art-deck br{display:none}", which glued "began,and" together on the live site */
.art-deck br{display:inline!important}

/* ================= REYES header: apps instead of a text menu (owner, 2026-11-22) =================
   Logo · EN|ES · one Apps button that opens the app icons as a sheet; gold "‹ Home" on every page but home.
   Browsers without popover support keep the original text menu. */
@supports selector(:popover-open){
  header>nav#navigation,header>nav#site-nav,header>.menu,header>.menu-toggle{display:none!important}
}
@supports not selector(:popover-open){.apps-button{display:none!important}}
header:has(.apps-button){display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important}
header:has(.apps-button)>.header-actions,header:has(.apps-button)>.language-switch{margin-left:auto!important}
header:has(.apps-button):not(:has(>.header-actions)):not(:has(>.language-switch))>.apps-button{margin-left:auto}
.reyes-back{color:var(--r-gold)!important;font:500 16px/1 var(--r-font)!important;text-decoration:none!important;white-space:nowrap;padding:10px 4px 10px 0;flex:none}
.reyes-back span{font-size:22px;vertical-align:-2px;margin-right:2px}
.apps-button{flex:none;width:42px;height:42px;border-radius:12px!important;padding:0!important;display:grid!important;place-items:center;
  background:var(--r-field)!important;border:1px solid var(--r-line-2)!important;color:var(--r-text)!important;cursor:pointer}
.apps-button:hover{border-color:var(--r-hint)!important}
@media(max-width:480px){header:is(:has(.reyes-back),:has(.demo-home)) .brand-words,header:is(:has(.reyes-back),:has(.demo-home)) .brand>span{display:none!important}}

/* The sheet: a dark card (radius 20) that rises from the bottom on phones, centered on larger screens */
.apps-sheet{inset:auto 0 0 0;margin:0 auto;width:min(100%,720px);max-height:86vh;overflow:auto;padding:14px 18px 26px;
  background:var(--r-surface);color:var(--r-text);border:1px solid var(--r-line-2);border-radius:20px 20px 0 0;
  box-shadow:0 -10px 40px rgba(0,0,0,.6)}
.apps-sheet::backdrop{background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media(min-width:760px){.apps-sheet{inset:0;margin:auto;height:fit-content;border-radius:20px;padding:18px 24px 28px}}
.apps-sheet-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
.apps-sheet-head strong{font:500 17px/1 var(--r-font)!important;color:var(--r-text)}
.apps-sheet-done{background:none!important;border:0!important;color:var(--r-gold)!important;font:500 16px/1 var(--r-font)!important;padding:8px 0!important;cursor:pointer;min-height:0!important}
.apps-sheet .reyes-springboard{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px 8px!important}
@media(min-width:480px){.apps-sheet .reyes-springboard{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:760px){.apps-sheet .reyes-springboard{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:no-preference){
  .apps-sheet:popover-open{animation:reyes-sheet-up .22s ease-out}
}
@keyframes reyes-sheet-up{from{transform:translateY(24px)}to{transform:none}}   /* slide only: never invisible if animations pause */
/* 10 apps (About me added 2026-11-22): REYES rule of 4 per row on phones; 5 per row (two even rows) above */
.reyes-springboard{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(min-width:600px){.reyes-springboard{grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:720px;margin:0 auto}}
@media(max-width:420px){.reyes-app-icon{width:58px;height:58px;border-radius:15px}.reyes-app-icon svg{width:27px;height:27px}.reyes-app strong{font-size:12px!important}}
.apps-sheet .reyes-springboard{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(min-width:600px){.apps-sheet .reyes-springboard{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:359px){.reyes-springboard,.apps-sheet .reyes-springboard{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
.reyes-app strong{overflow-wrap:normal;hyphens:none}

/* ================= 3D demos, REYES pass (owner, 2026-11-22) =================
   Pure black, no gradient panels; large title + one gray line; steps as a segmented control;
   one hint (drag/rotate) with the slider kept for keyboard and screen-reader users. */
body:has(#smile),body:has(#scene){background:#000!important}
body:has(#smile) :is(.experience,.intro,.visual,.controls),body:has(#scene) :is(.experience,.intro,.stage,#controls,.journey){background:#000!important;background-image:none!important}
body:has(#smile) header>.eyebrow,body:has(#smile) .intro>.eyebrow,body:has(#scene) .intro>.eyebrow,body:has(#scene) .preview{display:none!important}
body:has(#smile) .intro h1,body:has(#scene) .intro h1{font:500 clamp(32px,3.6vw,48px)/1.08 var(--r-font)!important;letter-spacing:-.01em!important;margin:8px 0 12px!important;color:var(--r-text)!important}
body:has(#smile) #explanation,body:has(#scene) .lead{font-size:17px!important;line-height:1.5!important;color:var(--r-text-2)!important;max-width:34ch}
body:has(#smile) .disclosure{font-size:12px!important;color:var(--r-hint)!important;margin-top:20px!important}
body:has(#smile) .intro,body:has(#scene) .intro{border-right:1px solid var(--r-line)}
body:has(#smile) .label,body:has(#scene) .stage-top{color:var(--r-hint)!important;font-size:10px!important}
body:has(#smile) .controls{border-top:1px solid var(--r-line)!important}
/* Segmented control for the four stages */
body:has(#smile) .steps,body:has(#scene) .steps{display:flex!important;gap:4px!important;padding:4px!important;max-width:620px;margin:0 auto;background:var(--r-field);border:1px solid var(--r-line-2);border-radius:999px}
body:has(#smile) .steps button,body:has(#scene) .steps button{flex:1 1 0;min-width:0;border:0!important;border-radius:999px!important;padding:10px 6px!important;text-align:center!important;font:500 15px/1.2 var(--r-font)!important;color:var(--r-text-2)!important;background:transparent!important}
body:has(#smile) .steps button[aria-pressed=true],body:has(#scene) .steps button[aria-pressed=true]{background:var(--r-surface)!important;color:var(--r-text)!important;box-shadow:inset 0 0 0 1px var(--r-gold)!important;padding-top:10px!important}
body:has(#smile) .steps small,body:has(#scene) .steps small{display:none!important}
/* One hint: keep "drag to explore" with its arrows; the scroll/slider caption becomes screen-reader only */
body:has(#smile) .controls>label,body:has(#scene) .slider-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body:has(#smile) #progress,body:has(#scene) #assembly{accent-color:var(--r-gold);max-width:620px;display:block;margin:10px auto 0}
body:has(#scene) .rotations>span{display:none!important}
body:has(#smile) .rotate span,body:has(#scene) .stage-bottom>span{color:var(--r-hint)!important}
body:has(#smile) footer,body:has(#scene) .notice{color:var(--r-hint)!important;border-color:var(--r-line)!important}
/* The demo's phone stylesheet injects its disclaimer in English; give Spanish pages the Spanish sentence */
@media(max-width:700px){html[lang=es] body:has(#smile) footer:before{content:'La atención de ortodoncia la proporciona el Dr. Ruben Reyes, dentista general con especial interés en el tratamiento de ortodoncia.'!important}}
/* Demo phone fixes: the demo hid the title's line break (gluing "smile.Carefully"); segments fit Spanish */
body:has(#smile) .intro h1 br,body:has(#scene) .intro h1 br{display:inline!important}
@media(max-width:700px){
  body:has(#smile) .steps button,body:has(#scene) .steps button{font-size:12.5px!important;padding:9px 2px!important;letter-spacing:-.01em}
  body:has(#smile) .intro h1,body:has(#scene) .intro h1{font-size:28px!important}
  body:has(#smile) #explanation{font-size:15px!important}
}
/* 9 apps ("See it in 3D" removed 2026-11-22): 3 × 3 on phones, 5 per row on tablets, one row of 9 on desktop */
.reyes-springboard{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(min-width:600px){.reyes-springboard{grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:720px}}
@media(min-width:900px){.reyes-apps .reyes-springboard{grid-template-columns:repeat(9,minmax(0,1fr))!important;max-width:1000px}}
/* ten apps (Omak, with Request): two even rows of five on wide screens instead of nine plus one */
@media(min-width:900px){.reyes-apps .reyes-springboard:has(>.reyes-app:nth-child(10)){grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:720px}}
/* twelve apps (Omak): 3×4 on phones, 4×3 on tablets, 6×2 on wide screens */
@media(min-width:600px){.reyes-apps .reyes-springboard:has(>.reyes-app:nth-child(12)){grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:560px}}
@media(min-width:900px){.reyes-apps .reyes-springboard:has(>.reyes-app:nth-child(12)){grid-template-columns:repeat(6,minmax(0,1fr))!important;max-width:860px}}
.apps-sheet .reyes-springboard{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(min-width:600px){.apps-sheet .reyes-springboard{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
html.embedded body:has(#smile)>header,html.embedded body:has(#scene)>header{display:none!important}

/* ================= Calm education modules (owner, 2026-11-22: "It's super busy") =================
   One title + one gray line + one teaching image; six chapters as tap-to-open rows; slim header. */
body:has(.edu-fold) .review-badge,body:has(.edu-fold) #motion,body:has(.edu-fold) .chapter-nav,body:has(.edu-fold) .hero .eyebrow{display:none!important}
body:has(.edu-fold) #present{font-size:13px!important;padding:8px 14px!important;min-height:36px!important}
body:has(.edu-fold) .hero{min-height:0!important;padding-bottom:12px!important}
body:has(.edu-fold) .hero h1{font:500 clamp(30px,4vw,46px)/1.1 var(--r-font)!important;letter-spacing:-.01em!important}
body:has(.edu-fold) .hero .lead{font-size:17px!important;color:var(--r-text-2)!important}
body:has(.edu-fold) .educational-label{font-size:12px!important;color:var(--r-hint)!important}
body:has(.edu-fold) .reading-intro{padding:8px 20px 0!important;max-width:820px;margin:0 auto;background:none!important;border:0!important}
body:has(.edu-fold) .reading-intro>span{display:none!important}
body:has(.edu-fold) .reading-intro p{font-size:13px!important;color:var(--r-hint)!important}
/* the six chapters: one grouped list */
body:has(.edu-fold) section.chapter{max-width:820px;margin:0 auto!important;padding:0!important;min-height:0!important;background:var(--r-surface)!important;border:1px solid var(--r-line)!important;border-top:0!important;border-radius:0!important}
body:has(.edu-fold) :not(section.chapter)+section.chapter{border-top:1px solid var(--r-line)!important;border-radius:16px 16px 0 0!important;margin-top:20px!important}
body:has(.edu-fold) section.chapter:not(:has(+section.chapter)){border-radius:0 0 16px 16px!important;margin-bottom:28px!important}
.edu-fold>summary{list-style:none;cursor:pointer;display:block!important;position:relative;padding:14px 44px 14px 18px!important}
.edu-fold>summary::-webkit-details-marker{display:none}
.edu-fold>summary .eyebrow{display:block!important;font-size:11px!important;letter-spacing:.08em!important;color:var(--r-hint)!important;margin:0 0 2px!important}
.edu-fold>summary h2{font:500 19px/1.3 var(--r-font)!important;margin:0!important;color:var(--r-text)!important}
.edu-fold>summary .takeaway{font-size:14px!important;color:var(--r-text-2)!important;margin:3px 0 0!important}
.edu-fold[open]>summary h2{color:var(--r-gold)!important}
.edu-fold[open] .fold-chevron{transform:translateY(-50%) rotate(90deg)}
section.chapter+section.chapter .edu-fold>summary:before{content:"";position:absolute;top:0;left:18px;right:0;border-top:1px solid var(--r-line)}
.edu-fold>.chapter-inner{display:block!important;padding:0 18px 18px!important;min-height:0!important;grid-template-columns:none!important}
.edu-fold .chapter-copy{padding:0!important;max-width:none!important}
.edu-fold .explanation{font-size:16px!important;line-height:1.6!important}
.edu-fold figure.rendering{margin:14px 0 0!important;border-radius:14px;overflow:hidden;max-width:none!important}
/* presentation mode keeps its own full-screen look */
body.presenting .edu-fold>summary .fold-chevron{display:none}
@media(max-width:700px){body:has(.edu-fold) #present{display:none!important}}   /* chairside presenting is for tablets and larger screens */
section.chapter .edu-fold>summary h2,body:has(.edu-fold) section.chapter .edu-fold>summary h2{font-size:19px!important;line-height:1.3!important;letter-spacing:-.005em!important}
@media(max-width:700px){section.chapter .edu-fold>summary h2{font-size:17px!important}}
/* Education FAQ: the same calm grouped list as the chapters */
body:has(.edu-fold) section.faq{max-width:820px;margin:0 auto!important;padding:8px 0 28px!important;background:none!important}
body:has(.edu-fold) section.faq>h2{font:500 22px/1.2 var(--r-font)!important;margin:0 0 12px!important;padding:0 2px}
body:has(.edu-fold) section.faq>details{background:var(--r-surface)!important;border:1px solid var(--r-line)!important;border-top:0!important;margin:0!important;padding:0!important;border-radius:0!important}
body:has(.edu-fold) section.faq>h2+details{border-top:1px solid var(--r-line)!important;border-radius:16px 16px 0 0!important}
body:has(.edu-fold) section.faq>details:not(:has(+details)){border-radius:0 0 16px 16px!important}
body:has(.edu-fold) section.faq>details>summary{display:flex!important;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px!important;font:400 16px/1.35 var(--r-font)!important;color:var(--r-text)!important;border:0!important;list-style:none;cursor:pointer}
body:has(.edu-fold) section.faq>details>summary span{font-size:16px!important;color:var(--r-text)!important}
body:has(.edu-fold) section.faq>details>summary b{color:var(--r-hint)!important;font-weight:400}
body:has(.edu-fold) section.faq>details>p{padding:0 18px 14px!important;margin:0!important;font-size:15px!important;color:var(--r-text-2)!important}
/* Advanced gum disease module: its header is a fixed grid; use the REYES flex header so Apps fits */
body:has(.edu-fold)>header{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important}
body:has(.edu-fold)>header>.controls{margin-left:auto!important;display:flex!important;min-width:0}
body:has(.edu-fold)>header>.apps-button{margin-left:0}

/* Education index: a REYES grouped list instead of a gallery of image cards (owner, 2026-11-22) */
main.education-index>.eyebrow{display:none!important}
main.education-index h1{font:500 34px/1.1 var(--r-font)!important;margin:0 0 6px!important}
main.education-index .index-intro{font-size:17px!important;color:var(--r-text-2)!important;margin:0 0 20px!important}
main.education-index .education-resources{display:block!important;max-width:820px;background:var(--r-surface);border:1px solid var(--r-line);border-radius:16px;overflow:hidden;padding:0!important}
main.education-index .education-resource{display:block!important;position:relative;padding:14px 44px 14px 18px!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important;min-height:0!important}
main.education-index .education-resource+.education-resource:before{content:"";position:absolute;top:0;left:18px;right:0;border-top:1px solid var(--r-line)}
main.education-index .education-resource:after{content:"›";position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--r-hint);font-size:22px}
main.education-index .resource-art,main.education-index .resource-copy>.eyebrow,main.education-index .resource-copy>.text-link{display:none!important}
main.education-index .resource-copy{padding:0!important}
main.education-index .resource-copy h2{font:500 17px/1.3 var(--r-font)!important;margin:0 0 2px!important}
main.education-index .resource-copy h2 a{color:var(--r-text)!important;text-decoration:none!important}
main.education-index .resource-copy h2 a:after{content:"";position:absolute;inset:0}          /* whole row is tappable */
main.education-index .resource-copy p{font-size:14px!important;color:var(--r-text-2)!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ================= Education without visuals (owner, 2026-11-22: "Let's just get rid of the visuals") =================
   Only the pictures go (images, figures, canvases, diagram panels and the sliders that only moved them).
   Text containers that sit beside them (habit lists, treatment options, urgent-care box) stay. */
body:has(.edu-fold) main :is(img,canvas,figure,.hero-art,.rendering,.diagram,.diagram-tools,.range-control,.image-stage,.enlarge,.gallery-heading,.gallery-bottom),
body:has(.edu-fold) dialog,
.education-view :is(.paired-art,.diagram-panel,.mini-explorer,.bone-card-art,.range-labels,figure,img,canvas),
.education-view label[for="assembly"],.education-view #assembly{display:none!important}
body:has(.edu-fold) .hero{grid-template-columns:1fr!important}
body:has(.edu-fold) main .diagram-note{display:none!important}   /* caption for pictures that are no longer shown */

/* App-style page transitions (owner, 2026-11-24): moving between pages feels like opening an app on an iPhone.
   Built into modern browsers (others simply navigate as before); off for people who ask for reduced motion. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:reyes-vt-out .2s ease both}
::view-transition-new(root){animation:reyes-vt-in .34s cubic-bezier(.2,.8,.2,1) both}
@keyframes reyes-vt-out{to{opacity:0;transform:scale(1.015)}}
@keyframes reyes-vt-in{from{opacity:0;transform:scale(.965)}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}
