/* Nhất Niệm Khai Tâm — v1.3 canonical public design system, Bai Jamjuree. */
:root { color-scheme:light;--jade:#0d735b;--jade-strong:#075642;--deep:#103c35;--ink:#183e34;--muted:#638075;--gold:#bb934f;--paper:#edf5ef;--white:#fff;--surface:rgba(255,255,255,.82);--surface-solid:#fdfefd;--line:#d6e7dc;--shadow:0 12px 40px rgba(17,77,55,.075);--radius:24px;--font:"Bai Jamjuree",system-ui,-apple-system,Arial,sans-serif;--container:680px;--hub-shell-max: 680px;
  --hub-shell-gutter: max(10px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --hub-shell-width: min(calc(100% - (2 * var(--hub-shell-gutter))), var(--hub-shell-max));
  --hub-safe-bottom: env(safe-area-inset-bottom, 0px);--hub-font-ui: "Bai Jamjuree", system-ui, sans-serif;
  --hub-font-scale: 1;
  --hub-fz-body: 16px;
  --hub-fz-heading: 20px;
  --hub-fz-brand: 15px;
  --hub-fz-tagline: 11px;
  --hub-fz-label: 13px;
  --hub-fz-sm: 14px;
  --hub-fz-caption: 12px;
  --hub-fz-micro: 11px;
  --hub-fz-nav: 12px;
  --hub-icon-stroke: 1.95;
  --hub-icon-size: 21px;
  --hub-action-size: 44px;
  --hub-action-radius: 13px; }
:root[data-theme=dark] { color-scheme:dark;--jade:#51cfab;--jade-strong:#84e3c2;--deep:#edf8f1;--ink:#e7f6ed;--muted:#a7c3b3;--gold:#dfb975;--paper:#0c231e;--white:#12382e;--surface:rgba(24,63,50,.9);--surface-solid:#183e33;--line:#315f4c;--shadow:0 10px 40px rgba(0,0,0,.2); }
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth;scroll-padding-top:90px;scroll-padding-bottom: calc(95px + var(--hub-safe-bottom)); }
body { margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 4% -4%,rgba(86,163,115,.12),transparent 35%),radial-gradient(ellipse at 100% 26%,rgba(219,181,103,.08),transparent 29%),var(--paper);color:var(--ink);font:400 15px/1.65 var(--font);-webkit-font-smoothing:antialiased;min-width:0; overflow-x:clip;font-size:14px;line-height:1.62; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
a { color:inherit;text-decoration:none; }
img { max-width:100%;display:block; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { line-height:1.28;letter-spacing:-.025em; }
h1 { font-size:clamp(30px,4vw,54px); }
h2 { font-size:clamp(22px,2.6vw,30px); }
strong { font-weight:700; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid #d5ac67;outline-offset:3px; }
.brand { display:flex;gap:11px;align-items:center;min-width:0;gap:10px; }
.brand-mark { display:grid;place-items:center;flex-shrink:0;background:linear-gradient(135deg,#0c7054,#084a3e);border:1px solid rgba(238,206,146,.55);color:#f5d89c;border-radius:17px;width:49px;height:49px;font-size:32px;box-shadow:0 5px 20px rgba(16,90,67,.15); }
.brand-copy { display:flex;flex-direction:column;min-width:0;line-height:1.3; }
.brand-copy strong { font-size:16px;letter-spacing:.035em;color:var(--deep);font-weight:700;color:var(--deep); }
.brand-copy small { font-size:11px;color:var(--muted);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px; }
.header-actions { display:flex;gap:8px;margin-left:auto;flex-shrink:0;gap:6px;gap:7px; }
.icon-button { display:grid;place-items:center;border:1px solid var(--line);border-radius:13px;min-width:40px;height:40px;background:var(--surface);color:var(--deep);font-size:20px;padding:0;border-radius:12px;background:rgba(255,255,255,.72);box-shadow:inset 0 0 0 1px rgba(255,255,255,.38); }
.icon-button:hover { border-color:var(--jade); }
.eyebrow { font-size:11px;font-weight:700;letter-spacing:.16em;color:var(--gold);text-transform:uppercase;margin-bottom:8px; }
.hero-stage { position:relative;isolation:isolate;margin-top:2px; }
.hero-slides { position:relative;min-height:350px;background:#0b644f;border-radius:30px;box-shadow:0 24px 50px rgba(16,77,58,.13);overflow:hidden;border-radius:28px;min-height:330px; }
.hero-slide { position:absolute;inset:0;display:flex;align-items:center;pointer-events:none;opacity:0;transition:opacity .55s ease;background:radial-gradient(ellipse at 86% 23%,#3f9975 0,transparent 43%),linear-gradient(116deg,#075242,#14715a 82%);color:#fff;padding:clamp(26px,5vw,65px);padding:clamp(22px,4vw,34px);overflow:hidden; }
.hero-slide.is-active { opacity:1;pointer-events:auto; }
.hero-photo { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.29; }
.hero-copy { position:relative;z-index:2;max-width:710px; }
.hero-copy .eyebrow { color:#edce9a; }
.hero-copy h1 { max-width:660px;font-size:clamp(35px,5vw,62px);margin:0 0 13px;line-height:1.14;font-size:clamp(29px,4.5vw,40px);max-width:100%;font-size:clamp(31px,4.8vw,42px);max-width:420px;font-size: clamp(31px, calc(38px * var(--hub-font-scale)), 50px); line-height: 1.16; letter-spacing: -.035em; }
.hero-copy>p:not(.eyebrow) { font-size:16px;max-width:540px;color:#e6f2e9;line-height:1.7;margin-bottom:22px;font-size:14px;max-width:460px;font-size:14px;max-width:380px; }
.hero-star { font-size:21px;padding-left:4px;display:inline-flex;align-items:center;margin-left:4px;padding-left:0;font-size:0; }
.hero-art { position:absolute;font-size:330px;right:-45px;top:-150px;opacity:.1;line-height:1.1;transform:rotate(-14deg); }
.btn { display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;border:1px solid transparent;min-height:42px;padding:10px 17px;font-size:13px;font-weight:700;white-space:normal;text-align:center;transition:filter .16s,transform .16s;gap:8px;font-size: calc(var(--hub-fz-label) * var(--hub-font-scale)); font-weight: 700; }
.btn:hover { transform:translateY(-1px); }
.btn.primary { background:var(--jade);color:var(--white);border-color:var(--jade); }
:root[data-theme=dark] .btn.primary { color:#032c23; }
.btn.ivory { background:#f7e9cd;color:#105744; }
.btn.soft,.btn.secondary { background:var(--surface-solid);color:var(--deep);border-color:var(--line); }
.btn:disabled { opacity:.5;cursor:not-allowed; }
.section-block { margin-top:52px;margin-top:32px; }
.section-heading { display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:22px;gap:9px; }
.section-heading h2 { margin:0;color:var(--deep);font-size:clamp(19px,3vw,25px);font-size: calc(var(--hub-fz-heading) * var(--hub-font-scale)); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.section-link { font-weight:700;color:var(--jade);font-size:13px;white-space:nowrap;padding:7px 0;display:inline-flex;align-items:center;gap:5px;font-size: calc(var(--hub-fz-label) * var(--hub-font-scale)); font-weight: 700; line-height: 1.3; }
.section-link span { margin-left:3px; }
.app-tile { border:1px solid var(--line);background:var(--surface);min-width:0;min-height:184px;padding:20px 10px 18px;border-radius:22px;display:flex;align-items:center;flex-direction:column;gap:7px;box-shadow:var(--shadow);text-align:center;transition:transform .2s,box-shadow .2s,border-color .2s;min-height:170px;padding:15px 8px 13px;border-radius:18px;gap:8px; }
.app-tile:hover { transform:translateY(-4px);border-color:#8acfb0;box-shadow:0 18px 35px rgba(14,102,75,.12); }
.app-icon { height:72px;width:72px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#0c7c5d,#085b4c);box-shadow:0 7px 16px rgba(16,110,79,.18);color:#f9db9e;font-size:34px;overflow:hidden;margin-bottom:5px;width:60px;height:60px;border-radius:18px;margin-bottom:2px;color:#f7ddaa; }
.app-icon img { height:100%;width:100%;object-fit:cover; }
.app-tile strong { font-size:14px;line-height:1.35;max-width:100%;overflow-wrap:anywhere;font-size:13px;font-size: calc(var(--hub-fz-sm) * var(--hub-font-scale)); line-height: 1.35; font-weight: 700; }
.app-tile small { font-size:11px;color:var(--muted);font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); line-height: 1.4; font-weight: 500; }
.app-tile.disabled { opacity:.6; }
.editorial-band { position:relative;display:flex;align-items:center;gap:20px;margin-top:54px;background:linear-gradient(112deg,rgba(206,229,210,.8),rgba(245,236,211,.6));border:1px solid var(--line);border-radius:24px;padding:22px 30px;overflow:hidden;margin-top:36px;padding:18px 20px;border-radius:20px;gap:14px; }
:root[data-theme=dark] .editorial-band { background:linear-gradient(120deg,#1b4a3b,#3a432e); }
.band-mark { font-size:56px;color:#b28a4b;line-height:1;display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.5);font-size:0; }
.editorial-band>div:nth-child(2) { flex:1; }
.editorial-band h2 { font-size:22px;margin:0 0 5px;font-size: calc(18px * var(--hub-font-scale)); line-height: 1.3; }
.editorial-band p:last-child { margin:0;color:var(--muted);font-size:13px; }
.video-card,.article-card { background:var(--surface);border:1px solid var(--line);border-radius:21px;overflow:hidden;box-shadow:var(--shadow);min-width:0; }
.video-frame { height:auto;aspect-ratio:16/9;background:radial-gradient(circle at 65% 25%,#2d9876,#0b5749 70%);display:grid;place-items:center;position:relative;isolation:isolate;overflow:hidden; }
.video-frame iframe { width:100%;height:100%;border:0;position:absolute;inset:0;z-index:2; }
.tile-copy { padding:16px 18px 20px; }
.tile-copy strong { display:block;line-height:1.42;font-size:15px;font-size:14px; }
.tile-copy p { color:var(--muted);font-size:13px;line-height:1.55;margin:8px 0 0; }
.article-card { transition:transform .2s;border-radius:18px; }
.article-card:hover { transform:translateY(-3px); }
.article-cover { aspect-ratio:16/10;background:linear-gradient(125deg,#ccdfd0,#f1e9d2);display:grid;place-items:center;overflow:hidden;aspect-ratio:1/1;border-bottom:1px solid rgba(0,0,0,.03); }
.article-cover img { width:100%;height:100%;object-fit:cover; }
.article-cover span { color:#9f986f;font-size:80px; }
.tile-date { display:block;font-size:11px;color:var(--gold);font-weight:700;letter-spacing:.02em;margin-bottom:8px;font-size: calc(var(--hub-fz-micro) * var(--hub-font-scale)); font-weight: 650; }
.page-heading { padding:30px 0 33px; }
.page-heading h1 { margin:0 0 10px;font-size: clamp(25px, calc(29px * var(--hub-font-scale)), 39px); }
.page-heading p:last-child { color:var(--muted); }
.app-directory { margin-bottom:40px; }
.empty-state { color:var(--muted);padding:25px 0; }
.read-page { background:var(--surface);border:1px solid var(--line);border-radius:24px;max-width:900px;margin:18px auto;padding:clamp(22px,5vw,56px);max-width:100%; }
.read-page h1 { font-size:clamp(28px,4vw,44px); }
.read-page .lead { font-size:18px;color:var(--muted); }
.read-cover { width:100%;max-height:470px;object-fit:cover;border-radius:18px;margin:30px 0; }
.text-content { white-space:normal;font-size:16px;line-height:1.95;overflow-wrap:anywhere; }
.back-link { display:block;margin-bottom:26px;color:var(--jade);font-weight:700; }
.footer-brand { display:flex;align-items:center;gap:11px; }
.footer-brand .brand-mark { width:42px;height:42px;font-size:26px; }
.footer-brand strong { font-size:15px; }
.footer-brand p { font-size:12px;color:var(--muted);margin:0; }
.site-footer nav { display:flex;gap:12px 22px;flex-wrap:wrap;gap:9px 15px; }
.site-footer nav a,.site-footer nav button { font-size:12px;color:var(--muted);border:0;background:none;padding:0;text-align:left; }
.site-footer nav a:hover,.site-footer nav button:hover { color:var(--jade); }
.site-footer small { color:var(--muted);font-size:11px;font-size: calc(var(--hub-fz-micro) * var(--hub-font-scale)); }
.cookie-panel[hidden] { display:none; }
.cookie-top { display:flex;align-items:start;justify-content:space-between; }
.cookie-top h2 { font-size:22px;margin:0; }
.cookie-top>span { font-size:35px;color:var(--gold); }
.cookie-panel>p { font-size:13px;color:var(--muted); }
.cookie-actions { display:flex;gap:8px;flex-wrap:wrap; }
.cookie-actions .btn { font-size:12px;flex:1;padding:9px 6px;min-width:105px; }
.switch-row { display:flex;justify-content:space-between;gap:8px;font-size:13px;border-top:1px solid var(--line);padding:13px 0; }
.switch-row input { width:17px;height:17px;accent-color:var(--jade); }
.switch-row span { font-size:11px;color:var(--muted); }
.cookie-save { border:0;background:var(--jade);color:var(--white);padding:12px 18px;border-radius:12px;font-weight:700;width:100%;margin-top:12px; }
.cookie-save[hidden] { display:none; }
@media (max-width:1100px) {.brand-copy small{display:none}}
@media (max-width:820px) {.header-actions{margin-left:auto}.brand-copy strong{font-size:14px}.brand-mark{width:42px;height:42px;font-size:27px}.hero-slide{padding:27px}.hero-copy h1{font-size:clamp(31px,5.5vw,42px)}.hero-art{font-size:240px;top:-70px}.app-tile{min-height:160px;padding:15px 6px 12px;border-radius:17px}.app-icon{width:62px;height:62px;border-radius:18px}.section-block{margin-top:39px}.editorial-band{margin-top:40px}.site-footer nav{gap:14px 18px}}
@media (max-width:460px) {.brand-copy strong{font-size:12px;letter-spacing:0}.brand-mark{width:39px;height:39px;border-radius:13px}.icon-button{min-width:36px;height:36px;font-size:18px}.hero-slides{border-radius:23px}.hero-slide{padding:24px}.hero-copy h1{font-size:33px}.hero-copy>p:not(.eyebrow){font-size:13px}.hero-art{font-size:195px}.app-icon{width:clamp(48px,12.7vw,58px);height:clamp(48px,12.7vw,58px);border-radius:16px;font-size:27px}.app-tile{border-radius:15px;padding:12px 2px;min-height:140px;gap:6px}.app-tile strong{font-size:11px}.app-tile small{font-size:10px}.section-heading{margin-bottom:16px}.section-heading h2{font-size:22px}.section-link{font-size:11px}.tile-copy{padding:12px}.article-card .tile-copy strong{font-size:13px}.editorial-band{padding:18px;gap:10px;flex-wrap:wrap}.band-mark{font-size:42px}.editorial-band h2{font-size:17px}.editorial-band .btn{margin-left:auto}.read-page{border-radius:18px;padding:20px 16px}.page-heading{padding:22px 0}.site-footer .footer-inner{display:block}.footer-brand{margin-bottom:18px}.site-footer nav{margin-bottom:18px}.cookie-actions .btn{min-width:85px}}
@media (prefers-reduced-motion:reduce) {html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media (max-width:350px) {
  :root { --hub-shell-gutter: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
}
.app-shell { box-sizing:border-box;
  width:var(--hub-shell-width);
  max-width:var(--hub-shell-max);
  min-width:0;
  margin-inline:auto;
  padding-inline:0; }
.app-shell > * { min-width:0; max-width:100%; }
.app-header.app-shell { position:sticky;
  top:max(8px, env(safe-area-inset-top, 0px));
  z-index:35;
  margin-block:max(10px, env(safe-area-inset-top, 0px)) 0;
  padding:0;
  background:rgba(252,255,251,.94);
  border:1px solid var(--line);
  border-radius:19px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);position:sticky;top:max(8px,env(safe-area-inset-top,0px));overflow:visible;border-radius:18px;background:rgba(255,255,255,.88); }
:root[data-theme=dark] .app-header.app-shell { background:rgba(21,57,46,.95);background:rgba(20,52,43,.94); }
.header-inner { display:flex;align-items:center;gap:9px;min-height:63px;padding:8px 11px;min-height:62px;padding:7px 11px; }
.app-header .brand { flex:1;min-width:0;gap:9px;min-width: 0; flex: 1 1 auto; gap: 9px; }
.app-header .brand-mark { width:42px;height:42px;border-radius:14px;font-size:27px;width: 40px; height: 40px; border-radius: 12px; }
.app-header .brand-copy { min-width:0; }
.app-header .brand-copy strong { font-size:clamp(12px,2vw,15px);letter-spacing:0;line-height:1.25;overflow-wrap:anywhere;font-size: calc(var(--hub-fz-brand) * var(--hub-font-scale)); line-height: 1.25; font-weight: 700; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .brand-copy small { font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size: calc(var(--hub-fz-tagline) * var(--hub-font-scale)); line-height: 1.3; font-weight: 500; margin-top: 2px; }
.menu-trigger { display:grid; }
.mobile-menu:not([hidden]) { display:flex!important;flex-direction:column;gap:7px;padding:0 11px 11px;display:grid!important;gap:8px;padding:11px; }
.mobile-menu :is(a,button) { display:block;width:100%;padding:11px 13px;background:var(--surface-solid);border:1px solid var(--line);border-radius:12px;text-align:left;color:var(--deep);font-weight:600;font-size:14px; }
.main-content { padding-top:17px;padding-bottom:24px; }
/* v1.41: hero sizes now come from one responsive aspect-ratio contract below. */
.app-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px; }
.video-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
.article-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;grid-template-columns: repeat(3,minmax(0,1fr)); }
.app-grid > *, .video-grid > *, .article-grid > * { min-width:0;max-width:100%; }
.site-footer.app-shell { margin-block:15px 0;
  padding:18px 12px calc(105px + var(--hub-safe-bottom));
  background:none;
  border-top:1px solid var(--line);padding-top:16px; }
.footer-inner { display:flex;align-items:flex-start;flex-wrap:wrap;gap:14px; }
.mobile-bottom.app-shell { display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:stretch;
  position:fixed;
  inset:auto auto 0 50%;
  transform:translateX(-50%);
  z-index:60;
  width:var(--hub-shell-width);
  max-width:var(--hub-shell-max);
  padding:6px max(7px,env(safe-area-inset-right, 0px)) calc(7px + var(--hub-safe-bottom)) max(7px,env(safe-area-inset-left, 0px));
  background:var(--surface-solid);
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:19px 19px 0 0;
  box-shadow:0 -9px 26px rgba(7,44,29,.12);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);border-radius:18px 18px 0 0;background:rgba(252,255,251,.92); }
.mobile-bottom :is(a,button) { display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;min-width:0;min-height:54px;padding:5px 2px;
  color:var(--muted);background:none;border:0;border-radius:12px;
  font-weight:650;text-align:center;touch-action:manipulation;gap:4px;font-weight:600;min-height: 55px; gap: 4px; }
.mobile-bottom :is(a,button).active { color:var(--jade);background:rgba(48,157,113,.10);color: var(--jade); background: rgba(48,157,113,.13); }
.mobile-bottom span { font-size:23px;line-height:1.08;font-size:0; }
.mobile-bottom small { font-size:10px;line-height:1.25;white-space:nowrap;font-size:10px;font-size: clamp(10px, calc(var(--hub-fz-nav) * var(--hub-font-scale)), 15.6px); line-height: 1.25; font-weight: 600; white-space: normal; text-wrap: balance; }
.cookie-panel.app-shell { position:fixed;left:50%;right:auto;bottom:calc(83px + var(--hub-safe-bottom));
  transform:translateX(-50%);z-index:70;
  width:var(--hub-shell-width);max-width:var(--hub-shell-max);
  max-height:min(74dvh,620px);overflow-y:auto;overscroll-behavior:contain;
  padding:18px;
  background:var(--surface-solid);border:1px solid var(--line);
  border-radius:19px;box-shadow:0 22px 65px rgba(0,0,0,.2); }
@media (min-width:461px) {
  .app-tile { min-height:155px;padding:15px 6px 12px; }
  .app-icon { height:62px;width:62px;border-radius:18px; }
}
@media (max-width:520px) {
  .app-header .brand-copy small { display:none; }
  
  .hero-slide { padding:22px; }
  .section-block { margin-top:27px; }
}
@media (max-width:350px) {
  .app-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:7px; }
  .app-header .brand-mark { height:36px;width:36px;font-size:23px; }
  .header-inner { gap:6px;padding-inline:8px; }
  .cookie-panel.app-shell { padding:13px; }
}
@media print {
  .app-header, .mobile-bottom, .cookie-panel { display:none!important; }
  .app-shell { width:100%;max-width:none;padding:0; }
  .site-footer.app-shell { padding-bottom:0; }
}
.svg-icon { width:1.18rem;height:1.18rem;display:block;flex:none;stroke-width: var(--hub-icon-stroke); }
.inline-icon { width:1em;height:1em;vertical-align:-0.15em; }
.brand-logo { width:1.32rem;height:1.32rem; }
.app-svg,.nav-icon { width:1.34rem;height:1.34rem; }
.play-svg { width:1.55rem;height:1.55rem; }
.short-art { width:4.8rem;height:4.8rem; }
.brand-mark,.footer-brand .brand-mark { font-size:0; }
.icon-button .svg-icon { width:1.15rem;height:1.15rem; }
:root[data-theme=dark] .icon-button { background:rgba(24,63,50,.9);box-shadow:none; }
.mobile-menu { position:absolute;left:0;right:0;top:calc(100% + 8px);padding:0;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 22px 55px rgba(9,57,43,.14);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index: 41; }
:root[data-theme=dark] .mobile-menu { background:rgba(17,46,38,.98); }
.mobile-menu>a { display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon title" "icon sub";column-gap:10px;row-gap:1px;align-items:center;padding:12px;border-radius:14px;background:var(--surface);border:1px solid var(--line); }
.mobile-menu>a>span { grid-area:icon;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#0e7b60,#085747);color:#f5d594; }
.mobile-menu>a strong { grid-area:title;font-size:13px;line-height:1.3;color:var(--deep); }
.mobile-menu>a small { grid-area:sub;font-size:11px;line-height:1.45;color:var(--muted); }
.menu-links { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.mobile-menu .menu-links :is(a,button) { display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px 12px;background:var(--surface-solid);border:1px solid var(--line);border-radius:12px;text-align:center;color:var(--deep);font-weight:700;font-size:12px;font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); }
.hero-burst { position:absolute;right:-12px;top:-18px;width:162px;height:162px;opacity:.18;background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.68) 0 11deg,transparent 11deg 22deg);border-radius:50%;filter:blur(.2px); }
.btn-icon,.section-link span { display:inline-flex;align-items:center; }
.article-art { display:grid;place-items:center;color:#8d8d67; }
.article-svg { width:3rem;height:3rem; }
.short-card { border-radius:18px; }
.short-frame { aspect-ratio:9/16;background:radial-gradient(circle at 70% 18%,#32946f,#0a5647 68%); }
.band-mark .svg-icon { width:1.6rem;height:1.6rem; }
:root[data-theme=dark] .mobile-bottom.app-shell { background:rgba(18,46,38,.95); }
.mobile-bottom .nav-icon { width:1.28rem;height:1.28rem;width: 23px; height: 23px; }
.cookie-badge { display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:rgba(210,180,122,.16);color:var(--gold); }
.cookie-badge .svg-icon { width:1.35rem;height:1.35rem; }
@media (max-width:640px) {
  .article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mobile-menu{left:0;right:0}
  .menu-links{grid-template-columns:1fr 1fr}
  .app-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .hero-copy h1{max-width:100%}
}
@media (max-width:460px) {
  .header-inner{padding:7px 9px}
  
  .hero-copy h1{font-size:34px}
  .hero-burst{width:132px;height:132px;right:-10px;top:-12px}
  .app-tile{min-height:145px;padding:12px 5px 11px}
  .app-icon{width:52px;height:52px;border-radius:16px}
  .mobile-menu>a{padding:11px}
  .mobile-menu>a>span{width:34px;height:34px;border-radius:11px}
}
@media (max-width:350px) {
  .article-grid{grid-template-columns:1fr}
  .menu-links{grid-template-columns:1fr}
}
html, body { font-family: var(--hub-font-ui); font-synthesis: none; }
body :is(button, input, select, textarea, optgroup, option, label, summary, nav) { font-family: var(--hub-font-ui); }
body:not(.admin-body):not(.admin-auth):not(.installer-page) { font-size: calc(var(--hub-fz-body) * var(--hub-font-scale)); line-height: 1.65; }
.app-header .header-inner { min-height: 64px; padding: 8px 11px; gap: 10px; }
.app-header .brand-mark { flex: 0 0 39px; width:39px; height:39px; border-radius:12px; }
.app-header .brand { flex:1 1 auto; min-width:0; gap:10px; }
.app-header .brand-copy { min-width:0; gap:1px; }
.app-header .brand-copy strong { font-size:calc(15.5px * var(--hub-font-scale));
  line-height:1.28; letter-spacing:-.027em; font-weight:700; }
.app-header .brand-copy small { font-size:calc(10.5px * var(--hub-font-scale));
  line-height:1.35; font-weight:600; letter-spacing:.015em; margin-top:0; }
.brand-title-compact { display:none; }
.app-header .brand-mark .brand-logo { width: 23px; height: 23px; }
.app-header .header-actions { flex: 0 0 auto; gap: 6px; }
.app-header .header-actions .icon-button {
  box-sizing: border-box; flex: 0 0 44px; width: 44px; min-width: 44px; max-width: 44px;
  height: 44px; min-height: 44px; max-height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface-solid); color: var(--jade); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(7,70,50,.035);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.app-header .header-actions .icon-button:hover { background: rgba(211,237,225,.65); border-color: rgba(47,138,106,.45); box-shadow: 0 3px 10px rgba(5,70,52,.08); }
.app-header .header-actions .icon-button:active { transform: scale(.97); }
.app-header .header-actions .icon-button .svg-icon { width: 20px; height: 20px; }
:root[data-theme=dark] .app-header .header-actions .icon-button { color: #d3f0df; background: rgba(24,63,50,.92); border-color: #376957; }
:root[data-theme=dark] .app-header .header-actions .icon-button:hover { background: #275c4b; border-color: #6bad93; }
:root[data-theme=dark] .app-header .header-actions .icon-button:focus-visible { outline-color: #eccb86; }
.theme-icon-moon { display:flex; }
.theme-icon-sun { display:none; }
:root[data-theme=dark] .theme-icon-sun { display:flex; }
:root[data-theme=dark] .theme-icon-moon { display:none; }
/* App Hub header parity: Aa is 72x44; menu/theme remain 44x44.
   The visible Aa and percentage share ONE nonwrapping inline flex box. */
.app-header .header-actions .font-trigger {
  display: inline-flex; flex: 0 0 72px; width: 72px; min-width: 72px; max-width: 72px;
  height: 44px; min-height: 44px; max-height: 44px;
  padding: 0 5px; gap: 0; white-space: nowrap; overflow: hidden;
}
.font-trigger-inline { display: inline-flex; flex-flow: row nowrap; align-items: center;
  justify-content: center; gap: 5px; min-width: max-content; line-height: 1; }
.font-trigger-inline > span { display: inline-block; flex: none; white-space: nowrap; }
.font-trigger-a { font: 700 15px/1 var(--hub-font-ui); letter-spacing: -.045em; }
.font-trigger-percent { font: 600 11px/1 var(--hub-font-ui); letter-spacing: -.025em;
  font-variant-numeric: tabular-nums; opacity: .78; }
.app-header .font-trigger[aria-expanded=true],
:root[data-font-scale="115"] .app-header .font-trigger,
:root[data-font-scale="130"] .app-header .font-trigger { border-color:var(--jade); background:rgba(42,148,108,.13); }
.app-header .menu-trigger[aria-expanded=true] { border-color:var(--jade);background:rgba(42,148,108,.13); }
/* The reference theme button has a circular inset ring: jade moon on light,
   champagne sun on dark. Icon visibility is derived only from data-theme. */
.app-header .header-actions .theme-trigger { isolation:isolate; position:relative; overflow:hidden; }
.app-header .theme-trigger::before { content:""; position:absolute; z-index:0; inset:7px;
  border-radius:50%; background:rgba(52,153,114,.12); pointer-events:none;
  transition:background .16s ease,transform .16s ease; }
.app-header .theme-trigger:hover::before { transform:scale(1.08); }
.app-header .theme-trigger :is(.theme-icon-moon,.theme-icon-sun) {
  position:relative; z-index:1; align-items:center; justify-content:center;
  width:20px; height:20px; flex:none; line-height:0; }
.app-header .theme-trigger .svg-icon { width:20px; height:20px; stroke-width:1.8; }
:root[data-theme=dark] .app-header .header-actions .theme-trigger { color:#f1d48c; }
:root[data-theme=dark] .app-header .theme-trigger::before { background:rgba(239,192,101,.14); }
.font-panel[hidden] { display: none !important; }
.font-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45;
  width: min(352px, 100%); max-width: 100%; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface-solid); box-shadow: 0 20px 48px rgba(10,58,44,.16);
  padding: 15px; color: var(--deep); }
.font-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.font-panel-head > div { display: flex; flex-direction: column; gap: 2px; }
.font-panel-head strong { font-size: calc(var(--hub-fz-sm) * var(--hub-font-scale)); line-height: 1.3; }
.font-panel-head small { color: var(--muted); font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); }
.font-panel-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--deep); font-size: 22px; }
.font-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.font-options button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-height: 67px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--deep); font-size: 12px; }
.font-options button strong { font-size: 14px; line-height: 1.2; }
.font-options button[aria-pressed=true] { background: rgba(50,143,103,.12); color: var(--jade); border-color: var(--jade); box-shadow: inset 0 0 0 1px rgba(27,125,85,.18); }
.font-options button:hover { border-color: var(--jade); }
.mobile-menu > a strong { font-size: calc(var(--hub-fz-label) * var(--hub-font-scale)); }
.mobile-menu > a small { font-size: calc(var(--hub-fz-micro) * var(--hub-font-scale)); }
.hero-copy .eyebrow, .eyebrow { font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); font-weight: 700; letter-spacing: .07em; line-height: 1.4; }
.hero-copy > p:not(.eyebrow) { font-size: calc(var(--hub-fz-sm) * var(--hub-font-scale)); line-height: 1.65; }
.video-card .tile-copy strong, .article-card .tile-copy strong { font-size: calc(var(--hub-fz-sm) * var(--hub-font-scale)); line-height: 1.35; font-weight: 700; }
.video-card .tile-copy p, .article-card .tile-copy p { font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); line-height: 1.55; }
.editorial-band p:not(.eyebrow) { font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); }
.site-footer .footer-brand strong { font-size: calc(var(--hub-fz-sm) * var(--hub-font-scale)); font-weight: 700; }
.site-footer .footer-brand p, .site-footer nav a, .site-footer nav button { font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); }
.mobile-bottom :is(a,button).active small { font-weight: 700; }
.cookie-panel > p { font-size: calc(var(--hub-fz-label) * var(--hub-font-scale)); }
.cookie-panel h2 { font-size: calc(var(--hub-fz-heading) * var(--hub-font-scale)); }
.page-heading p:not(.eyebrow), .read-page .lead, .read-page .text-content { font-size: calc(var(--hub-fz-body) * var(--hub-font-scale)); }
@media (max-width:640px) {
  .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px) {
  .app-header .brand-copy small { display: block; }
}
@media (max-width:420px) {
  .app-header .header-inner { gap:6px; min-height:60px; padding:7px 8px; }
  .app-header .brand-mark { flex-basis:36px; width:36px; height:36px; border-radius:11px; }
  .app-header .brand { gap:7px; }
  .app-header .brand-copy strong { font-size:calc(13.5px * var(--hub-font-scale)); }
  .app-header .brand-copy small { font-size:calc(9px * var(--hub-font-scale)); }
  .app-header .header-actions { gap:5px; }

  .mobile-bottom .nav-icon { width:22px; height:22px; }
  .mobile-bottom small { font-size:clamp(10px,calc(11px * var(--hub-font-scale)),14.3px); }
}
@media (max-width:365px) {
  .app-header .header-inner { gap:5px; padding-inline:6px; }
  .app-header .brand-mark { flex-basis:32px; width:32px; height:32px; }
  .app-header .brand { gap:5px; }
  .brand-title-full { display:none; }
  .brand-title-compact { display:inline; }
  .app-header .brand-copy small { display:none; }
  .app-header .brand-copy strong { font-size:calc(14px * var(--hub-font-scale)); }
  .app-header .header-actions { gap:4px; }


  .mobile-bottom small { font-size:clamp(9px,calc(10px * var(--hub-font-scale)),13px); }
}

/* Banner must not squash text when 115%-130% font accessibility mode is active. */
@media(max-width:640px) {
  .editorial-band { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px 12px; align-items: center; padding: 18px 16px; }
  .editorial-band .band-mark { width: 44px; height: 44px; }
  .editorial-band > div:nth-child(2) { min-width: 0; }
  .editorial-band h2 { overflow-wrap: normal; word-break: normal; }
  .editorial-band .btn { grid-column: 1 / -1; justify-self: start; margin-left: 0; min-height: 42px; }
}
/* Keep readable hierarchy at both common and enlarged mobile typography scales. */
@media(max-width:640px) {
  .section-heading h2 { font-size: calc(var(--hub-fz-heading) * var(--hub-font-scale)); }
  .hero-copy h1 { font-size: clamp(30px, calc(34px * var(--hub-font-scale)), 48px); }
  .app-tile strong { font-size: calc(var(--hub-fz-sm) * var(--hub-font-scale)); }
  .app-tile small { font-size: calc(var(--hub-fz-caption) * var(--hub-font-scale)); }
  .article-card .tile-copy strong, .video-card .tile-copy strong { font-size: calc(var(--hub-fz-sm) * var(--hub-font-scale)); }
  .editorial-band h2 { font-size: calc(18px * var(--hub-font-scale)); }
}
@media(min-width:641px) {
  .hero-copy h1 { font-size: clamp(31px, calc(38px * var(--hub-font-scale)), 50px); }
}

/* v1.5 · YouTube Shorts native thumbnail / lazy private-first player */
.short-frame { position:relative; aspect-ratio:9/16; overflow:hidden; isolation:isolate; }
.short-frame .short-cover { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:center center; z-index:0; background:#126b53; }
.short-frame.has-thumbnail::after { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(180deg,rgba(4,28,21,.05) 45%,rgba(4,28,21,.32) 100%); }
/* v1.6.3: The whole short image is clickable, with NO visible Play overlay.
   Keyboard focus remains visible; thumbnails retain their full 9:16 artwork. */
.short-frame .short-cover-trigger,.shorts-detail-preview .short-cover-trigger {
  position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;display:block;
  border:0;border-radius:0;background:transparent;box-shadow:none;appearance:none;
  cursor:pointer;touch-action:manipulation;
}
.short-frame .short-cover-trigger:hover,.shorts-detail-preview .short-cover-trigger:hover {
  background:transparent;box-shadow:none;transform:none;
}
.short-frame .short-cover-trigger:focus-visible,.shorts-detail-preview .short-cover-trigger:focus-visible {
  outline:3px solid #f9d891;outline-offset:-5px;
  box-shadow:inset 0 0 0 5px rgba(5,42,33,.55);
}
.short-frame iframe { position:absolute; z-index:3; inset:0; width:100%; height:100%; background:#091d18; }
/* v1.9 — compact Shorts gallery. No nested card, title, or summary below the artwork. */
.video-card.short-card { border:0; background:transparent; box-shadow:none; border-radius:12px; overflow:hidden; }
.short-card .short-frame { border-radius:inherit; }
.short-card .short-cover-trigger .short-play-badge {
  position:absolute; left:8px; bottom:8px; z-index:1;
  width:27px; height:27px; display:grid; place-items:center;
  color:#fff5df; background:rgba(5,34,27,.76);
  border:1px solid rgba(255,255,255,.20); border-radius:9px;
  box-shadow:0 3px 12px rgba(0,0,0,.16);
  pointer-events:none;
}
.short-card .short-play-badge-icon { width:13px; height:13px; fill:currentColor; stroke:none; margin-left:1px; }
@media (max-width:640px) {
  .video-grid { gap:6px; }
  .video-card.short-card { border-radius:11px; }
  .short-card .short-cover-trigger .short-play-badge { left:7px; bottom:7px; width:25px; height:25px; border-radius:8px; }
}
@media (max-width:350px) {
  .video-grid { gap:5px; }
  .video-card.short-card { border-radius:9px; }
  .short-card .short-cover-trigger .short-play-badge { left:6px; bottom:6px; width:23px; height:23px; border-radius:7px; }
  .short-card .short-play-badge-icon { width:12px; height:12px; }
}

/* v1.6 Immersive Shorts — one overlay, one active iframe; app-shell stays 680px. */
.shorts-detail-page {padding:18px 0 32px;}
.shorts-detail-page h1 {font-size:clamp(24px,calc(27px * var(--hub-font-scale)),37px);margin:15px 0 8px;}
.shorts-detail-page>p {color:var(--muted);font-size:calc(14px * var(--hub-font-scale));}
.shorts-detail-breadcrumb {display:flex;gap:9px;align-items:center;color:var(--muted);font-size:12px;}
.shorts-detail-breadcrumb a{color:var(--jade);font-weight:700;}
.shorts-detail-preview {display:grid;place-items:center;position:relative;overflow:hidden;aspect-ratio:9/16;
  width:min(100%,380px);margin:18px auto;border-radius:22px;background:linear-gradient(150deg,#175e50,#092f29);}
.shorts-detail-preview img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
/* The detail preview uses the same full-bleed, transparent trigger. */
.shorts-detail-hint {text-align:center;}
.shorts-detail-page>.btn{display:flex;width:max-content;margin:12px auto 0;}
body.shorts-open {overflow:hidden;}
.shorts-viewer[hidden] {display:none!important;}
.shorts-viewer {position:fixed;inset:0;z-index:1000;display:flex;justify-content:center;align-items:center;
  background:rgba(3,17,14,.96);color:#f6fcf8;overscroll-behavior:contain;}
.shorts-viewer-shell {width:100%;height:100%;display:flex;justify-content:center;align-items:center;}
.shorts-viewer-stage {position:relative;isolation:isolate;width:min(100vw,calc(94dvh * 9 / 16));
  height:min(94dvh,900px);overflow:hidden;border-radius:22px;background:#0a221c;
  box-shadow:0 18px 65px rgba(0,0,0,.45);}
.shorts-viewer-poster,.shorts-viewer-player,.shorts-viewer-shade,.shorts-viewer-gesture {
  position:absolute;inset:0;width:100%;height:100%;}
.shorts-viewer-poster{z-index:0;object-fit:cover;}
.shorts-viewer-player {z-index:1;overflow:hidden;pointer-events:none;}
.shorts-viewer-player iframe {display:block;width:100%;height:100%;border:0;}
.shorts-viewer-shade {z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.32) 0%,transparent 26%,transparent 55%,rgba(0,0,0,.81) 100%);}
/* Video surface is its own accessible play/pause control, without a center icon. */
.shorts-viewer-gesture {z-index:3;touch-action:none;cursor:pointer;}
/* Safari installed PWA: pass one genuine activation tap to the YouTube iframe.
   Never leave this active after PLAYING, so vertical swipes still work. */
.shorts-viewer.shorts-native-activation .shorts-viewer-player {pointer-events:auto;}
.shorts-viewer.shorts-native-activation .shorts-viewer-player iframe {pointer-events:auto;}
.shorts-viewer.shorts-native-activation .shorts-viewer-gesture {pointer-events:none;}
.shorts-viewer-gesture:focus-visible {outline:3px solid #f9d891;outline-offset:-4px;border-radius:14px;}
.shorts-viewer-top {position:absolute;top:0;left:0;right:0;z-index:5;display:flex;justify-content:space-between;
  align-items:center;padding:calc(15px + env(safe-area-inset-top,0px)) 16px 12px;pointer-events:none;}
.shorts-viewer-label {font-size:11px;letter-spacing:.1em;font-weight:700;color:#fae3aa;
  padding:9px 12px;border-radius:12px;background:rgba(0,23,18,.48);border:1px solid rgba(255,255,255,.11);}
/* v1.6.2: one geometric system for every viewer action, including Close. */
.shorts-action {position:relative;flex:none;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;
  border:1px solid rgba(245,255,250,.33);border-radius:15px;
  background:rgba(8,31,25,.72);color:#f7fffa;display:grid;place-items:center;
  box-shadow:0 8px 20px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);pointer-events:auto;
  transition:background .18s,border-color .18s,transform .18s;cursor:pointer;}
.shorts-action:hover,.shorts-action:focus-visible{background:rgba(31,109,85,.91);border-color:#c1e5d5;}
.shorts-action:active{transform:scale(.96);}
.shorts-action:focus-visible{outline:2px solid #f7d891;outline-offset:3px;}
.shorts-action .svg-icon {display:block;width:20px;height:20px;stroke-width:2;}
.shorts-muted-icon,.shorts-volume-icon{display:grid;place-items:center;}
.shorts-volume-icon {display:none;}
.shorts-action.is-unmuted .shorts-volume-icon {display:grid;}
.shorts-action.is-unmuted .shorts-muted-icon {display:none;}
/* Muted is the safe default. Champagne ring + brief pulse makes audio discoverable. */
.shorts-audio-control{position:relative;width:48px;height:48px;flex:none;}
.shorts-action--audio.is-muted{color:#fff2c8;background:rgba(34,79,64,.84);
  border-color:rgba(248,221,157,.78);box-shadow:0 0 0 3px rgba(248,221,157,.10),0 8px 22px rgba(0,0,0,.24);}
.shorts-action--audio.is-unmuted{color:#f9e1a0;background:rgba(38,85,68,.86);
  border-color:rgba(249,225,160,.6);}
.shorts-action--audio.is-attention::after{content:"";position:absolute;inset:-3px;z-index:0;
  border:2px solid rgba(249,225,160,.88);border-radius:18px;pointer-events:none;
  animation:shorts-audio-pulse 1.2s ease-out 3;}
@keyframes shorts-audio-pulse{0%{transform:scale(1);opacity:.85}100%{transform:scale(1.35);opacity:0}}
.shorts-audio-hint{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);
  padding:8px 11px;white-space:nowrap;border-radius:999px;color:#fff8e9;font-size:12px;font-weight:700;
  background:rgba(9,47,37,.96);border:1px solid rgba(249,225,160,.6);
  box-shadow:0 6px 20px rgba(0,0,0,.24);pointer-events:none;}
.shorts-audio-hint[hidden]{display:none!important;}
@media(prefers-reduced-motion:reduce){.shorts-action--audio.is-attention::after{animation:none;opacity:.5;}}
.shorts-viewer-bottom {position:absolute;inset:auto 0 0;z-index:5;display:flex;align-items:end;gap:10px;
  padding:10px 14px calc(21px + env(safe-area-inset-bottom,0px));pointer-events:none;}
.shorts-viewer-copy{flex:1;min-width:0;overflow-wrap:anywhere;}
.shorts-viewer-brand {font-size:10px;color:#f7d891;font-weight:700;letter-spacing:.095em;}
.shorts-viewer-copy h2 {font-size:clamp(17px,calc(19px * var(--hub-font-scale)),25px);font-weight:700;
  color:#fff;line-height:1.32;margin:7px 0 6px;max-width:100%;}
.shorts-viewer-copy p {font-size:12px;color:#e4f0e8;margin:0 0 8px;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.shorts-viewer-copy a {font-size:12px;font-weight:700;color:#ffe1a7;border-bottom:1px solid rgba(255,225,167,.4);pointer-events:auto;}
.shorts-viewer-actions {display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:auto;}
.shorts-viewer-feedback {position:absolute;z-index:7;bottom:calc(150px + env(safe-area-inset-bottom,0px));
  left:50%;transform:translateX(-50%);width:min(90%,330px);padding:9px 12px;margin:0;text-align:center;
  color:#fff;border-radius:12px;background:rgba(3,25,20,.86);font-size:12px;pointer-events:none;}
.shorts-viewer-feedback:empty{display:none;}
/* Cookie choices must remain reachable over the fullscreen viewer. */
body.shorts-open .cookie-panel.app-shell {z-index:1100;bottom:calc(18px + env(safe-area-inset-bottom,0px));}
@media(max-width:640px){
  .shorts-viewer-stage {width:100%;height:100dvh;max-height:none;border-radius:0;box-shadow:none;}
  .shorts-viewer-top{padding:calc(14px + env(safe-area-inset-top,0px)) 14px 12px;}
  .shorts-viewer-bottom {padding:10px 12px calc(24px + env(safe-area-inset-bottom,0px));}
  .shorts-viewer-actions {gap:10px;}
}
@media(max-width:350px){
  .shorts-viewer-copy h2{font-size:17px;}
}
@media print { .shorts-viewer {display:none!important;} }

/* v1.8 — App Registry / Discovery. Shares the existing 680px native shell. */
.app-entry{min-width:0;min-height:0;display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden;transition:border-color .15s,transform .15s}
.app-entry:hover{border-color:var(--jade);transform:translateY(-2px)}
.app-entry .app-tile{flex:1;min-height:132px;padding:15px 7px 9px;background:transparent;border:0;border-radius:0;box-shadow:none;transform:none!important;gap:6px}
.app-entry .app-tile:hover{box-shadow:none;border:0}
.app-entry .app-tile.disabled{opacity:.6}
.app-detail-link{display:flex;align-items:center;justify-content:center;gap:5px;min-height:31px;padding:5px 4px;border-top:1px solid var(--line);color:var(--jade);font-size:clamp(10px,calc(11px * var(--hub-font-scale)),14px);font-weight:700;line-height:1.2}
.app-detail-link .inline-icon{width:14px;height:14px}
.app-detail-link:hover{background:rgba(51,150,107,.1)}
.app-discovery{margin-bottom:24px}
.app-search{display:flex;align-items:center;gap:10px;min-height:52px;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:0 14px;box-shadow:var(--shadow)}
.app-search-icon{color:var(--jade)}
.app-search input{border:0;outline:0;background:transparent;color:var(--ink);flex:1;min-width:0;font-size:calc(var(--hub-fz-sm) * var(--hub-font-scale));line-height:1.4;height:48px}
.app-search input::placeholder{color:var(--muted);opacity:.92}
.app-search:focus-within{border-color:var(--jade);box-shadow:0 0 0 3px rgba(42,150,108,.1)}
.app-category-filters{display:flex;gap:7px;margin:14px 0 12px;padding-bottom:4px;overflow-x:auto;scrollbar-width:thin}
.app-category-filters button{flex:none;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);min-height:38px;padding:8px 14px;font-weight:700;font-size:12px}
.app-category-filters button.is-active{background:var(--jade);border-color:var(--jade);color:var(--paper)}
.app-result-count{font-size:12px;color:var(--muted);margin:10px 0 15px}
.app-discovery-item{min-width:0;display:flex}
.app-discovery-item[hidden]{display:none!important}
.app-discovery-item>.app-entry{flex:1}
.app-detail-page{padding:18px 0 40px}
.breadcrumb{display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden;font-size:12px;color:var(--muted);margin-bottom:24px}
.breadcrumb a{color:var(--jade);font-weight:700;flex-shrink:0}
.breadcrumb [aria-current]{overflow:hidden;text-overflow:ellipsis}
.app-detail-hero{display:flex;align-items:center;flex-direction:column;text-align:center;padding:34px 19px 30px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}
.app-detail-icon{display:grid;place-items:center;width:92px;height:92px;border-radius:24px;background:linear-gradient(145deg,#0c7c5d,#085b4c);color:#f7ddaa;box-shadow:0 12px 24px rgba(6,80,57,.18);overflow:hidden;margin-bottom:20px}
.app-detail-icon img{width:100%;height:100%;object-fit:cover}
.app-detail-icon .svg-icon{width:38px;height:38px}
.app-detail-hero h1{font-size:clamp(24px,calc(29px * var(--hub-font-scale)),42px);margin:0 0 10px;overflow-wrap:anywhere}
.app-detail-description{font-size:calc(14px * var(--hub-font-scale));max-width:450px;color:var(--muted);line-height:1.7;margin:0 0 22px}
.app-detail-hero .app-open{gap:10px;min-width:175px}
.app-back-link{display:flex;align-items:center;gap:8px;justify-content:center;margin-top:24px;font-size:13px;color:var(--jade);font-weight:700}
.app-back-link .svg-icon{transform:rotate(180deg)}
@media(max-width:640px){.app-entry .app-tile{min-height:115px;padding:12px 5px 8px}.app-detail-link{min-height:32px}.app-detail-hero{padding:27px 16px}.app-detail-icon{width:80px;height:80px}}
@media(max-width:350px){.app-entry .app-tile{min-height:112px}.app-detail-link{font-size:10px}}

/* v1.6.5 — Persistent YouTube IFrame, poster during initialization, swipe lanes.
   The poster never captures clicks and disappears only when playback is
   confirmed or Safari needs a direct tap to the embedded player. */
.shorts-viewer-poster {z-index:2;pointer-events:none;opacity:1;transition:opacity .16s ease;}
.shorts-viewer.shorts-playing .shorts-viewer-poster,
.shorts-viewer.shorts-native-activation .shorts-viewer-poster,
.shorts-viewer.shorts-video-visible .shorts-viewer-poster {opacity:0;}
.shorts-viewer-shade {z-index:3;}
.shorts-viewer-gesture {z-index:4;}
.shorts-youtube-slot,.shorts-youtube-slot iframe {width:100%;height:100%;}
.shorts-swipe-rails {position:absolute;inset:0;z-index:4;pointer-events:none;}
.shorts-swipe-rail {position:absolute;top:12%;bottom:17%;width:22%;pointer-events:none;touch-action:none;}
.shorts-swipe-rail--left {left:0;}
.shorts-swipe-rail--right {right:0;}
.shorts-viewer.shorts-native-activation .shorts-swipe-rail {pointer-events:auto;}
@media(prefers-reduced-motion:reduce){.shorts-viewer-poster{transition:none;}}


/* v1.10 — infinite 3-column Shorts gallery: only the first 12 posters in SSR. */
.video-gallery { min-width:0; }
.video-gallery .short-card { content-visibility:auto; contain-intrinsic-size:auto 190px; }
.video-gallery-pagination { display:flex;flex-direction:column;align-items:center;gap:9px;padding:22px 0 4px; }
.video-gallery-more { display:inline-flex;justify-content:center;align-items:center;min-height:44px;min-width:160px;text-align:center; }
.video-gallery-more[aria-disabled="true"] { opacity:.65;pointer-events:none; }
.video-gallery-status { margin:0;min-height:20px;color:var(--muted);font-size:12px;text-align:center;line-height:1.5; }
.video-gallery-status:empty { min-height:0; }
.video-gallery-sentinel {height:1px;pointer-events:none;}
@media(max-width:350px) { .video-gallery-pagination {padding-top:17px;} }
.video-gallery-more[hidden] { display:none!important; }

/* v1.15 — compact playlist-driven video category chips, no nested cards */
.video-category-nav{display:flex;align-items:center;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 0 12px;margin-bottom:10px;-webkit-overflow-scrolling:touch}
.video-category-chip{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;white-space:nowrap;color:var(--muted);background:var(--surface-solid);font-size:12px;font-weight:700;text-decoration:none;flex:0 0 auto}
.video-category-chip:hover,.video-category-chip:focus-visible{border-color:var(--jade);color:var(--jade)}
.video-category-chip.is-active{color:#fff;background:var(--jade);border-color:var(--jade)}
@media(max-width:700px){.video-category-nav{gap:6px;margin-left:-2px;margin-right:-2px}.video-category-chip{padding:7px 11px;font-size:11px;min-height:34px}}

/* v1.25 — brand assets, notification center state system and opt-in inbox. */
.brand-mark .hub-brand-image{width:100%;height:100%;object-fit:contain;border-radius:inherit;display:block}
.hub-notice-bell{position:relative}
.hub-notice-unread{position:absolute;top:-5px;right:-4px;min-width:17px;height:17px;border-radius:9px;background:#ba7840;color:#fff;font-size:10px;display:grid;place-items:center;padding:0 3px;border:2px solid var(--surface-solid)}
.hub-notice-unread[hidden]{display:none!important}
.hub-notice-panel{position:absolute;z-index:85;right:9px;top:calc(100% + 8px);width:min(390px,calc(100vw - 20px));max-height:min(72vh,600px);overflow:auto;background:var(--surface-solid);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 58px rgba(0,30,22,.24);padding:15px}
.hub-notice-panel[hidden]{display:none!important}
.hub-notice-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.hub-notice-panel-header strong{display:block;font-size:16px;color:var(--deep)}
.hub-notice-panel-header small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.hub-notice-panel-header button{background:transparent;border:1px solid var(--line);border-radius:10px;padding:7px 10px;color:var(--deep);font:inherit}
.hub-notice-section{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:12px 13px}
.hub-notice-section+.hub-notice-section{margin-top:10px}
.hub-notice-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.hub-notice-section-head strong{font-size:13px;color:var(--deep)}
.hub-notice-chip{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface-solid);font-size:11px;font-weight:700;color:var(--jade)}
.hub-notice-chip[data-state="subscribed"]{background:rgba(14,115,82,.08);color:var(--jade-strong);border-color:rgba(14,115,82,.18)}
.hub-notice-chip[data-state="blocked"],.hub-notice-chip[data-state="error"]{background:rgba(186,120,64,.11);color:#9f5f2c;border-color:rgba(186,120,64,.22)}
.hub-notice-chip[data-state="disabled"],.hub-notice-chip[data-state="unsupported"],.hub-notice-chip[data-state="misconfigured"],.hub-notice-chip[data-state="insecure"]{color:var(--muted)}
.hub-notice-item{border-top:1px solid var(--line);padding:11px 1px}
.hub-notice-item:first-child{border-top:0;padding-top:0}
.hub-notice-item a{color:var(--deep);display:grid;gap:4px;font-size:13px;text-decoration:none}
.hub-notice-item strong{line-height:1.45}
.hub-notice-item span{font-size:12px;color:var(--muted);line-height:1.55}
.hub-notice-item:not(.is-read) strong:before{content:'• ';color:var(--jade)}
.hub-notice-item.is-read{opacity:.68}
.hub-notice-empty-state{display:grid;gap:4px;padding:2px 0}
.hub-notice-empty-state strong{font-size:13px;color:var(--deep)}
.hub-notice-empty-state p{margin:0;font-size:12px;color:var(--muted);line-height:1.6}
.hub-inline-action{margin-top:10px;font:inherit;font-size:12px;color:var(--jade);background:transparent;border:0;padding:0;text-align:left;font-weight:700}
.hub-push-lead{margin:0;font-size:12px;line-height:1.7;color:var(--muted)}
.hub-notice-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hub-notice-tools button{font:inherit;font-size:12px;font-weight:700;color:var(--jade);background:var(--surface-solid);border:1px solid var(--line);border-radius:10px;padding:9px 11px;min-height:38px}
.hub-notice-tools button[hidden]{display:none!important}
.hub-notice-tools button:disabled{opacity:.6;cursor:progress}
.hub-pwa-update{background:#f4e7bc!important;color:#1c4e3e!important;border-color:#d3b977!important}
@media(max-width:365px){.app-header .brand-copy{display:none}.app-header .header-actions{margin-left:auto}}
/* v1.23 — CMS public read & related posts, consistent with App Shell. */
.cms-public-body{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.cms-public-body h2,.cms-public-body h3{margin:20px 0 10px;color:var(--deep);letter-spacing:-.02em}.cms-public-body p{margin:0 0 13px}.cms-public-body ul,.cms-public-body ol{padding-left:22px;margin:10px 0}.cms-public-body blockquote{border-left:3px solid var(--jade);padding:4px 14px;margin:14px 0;background:var(--surface);border-radius:0 10px 10px 0}.cms-public-body img{max-width:100%;height:auto;border-radius:14px;display:block;margin:14px auto}.cms-public-body a{color:var(--jade);text-decoration:underline;text-underline-offset:3px}.cms-taxonomy-chips{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 18px}.cms-taxonomy-chips>a,.cms-taxonomy-chips>span{display:inline-flex;padding:5px 9px;border:1px solid var(--line);border-radius:100px;font-size:11px;font-weight:600;color:var(--jade);background:var(--surface)}.cms-public-related{border-top:1px solid var(--line);padding-top:22px;margin-top:30px}.cms-public-related h2{margin:0 0 16px;font-size:20px}.cms-public-related .article-grid{margin-top:14px}

/* v1.32 — native manual banners: a single quiet sponsored surface, no iframes or scripts. */
.manual-ad{margin:18px 0 22px;min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--surface-solid);overflow:hidden;box-shadow:0 7px 24px rgba(5,57,42,.055)}
.manual-ad-link{display:flex;align-items:center;min-width:0;gap:0;text-decoration:none;color:var(--deep);transition:background .18s ease}
.manual-ad-link:hover{background:var(--surface)}
.manual-ad-link:focus-visible{outline:2px solid var(--jade);outline-offset:-3px;border-radius:18px}
.manual-ad-image{flex:0 0 min(38%,210px);align-self:stretch;display:block;min-height:122px;background:var(--surface);overflow:hidden}
.manual-ad-image img{display:block;width:100%;height:100%;min-height:122px;max-height:230px;object-fit:cover}
.manual-ad-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;flex:1;gap:7px;padding:17px 18px}
.manual-ad-label{font-size:11px;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#a37d3c}
.manual-ad-copy strong{font-size:17px;line-height:1.35;color:var(--deep);letter-spacing:-.02em;overflow-wrap:anywhere}
.manual-ad-description{font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.manual-ad-cta{display:inline-flex;align-items:center;gap:7px;margin-top:3px;color:var(--jade);font-size:13px;line-height:1.45;font-weight:700}
.manual-ad-cta span{font-size:19px;line-height:1}
@media(max-width:700px){.manual-ad{margin:15px 0 19px;border-radius:15px}.manual-ad-image{flex-basis:33%;min-height:116px}.manual-ad-image img{min-height:116px}.manual-ad-copy{padding:13px 12px;gap:5px}.manual-ad-copy strong{font-size:15px}.manual-ad-description{font-size:12px;line-height:1.55}.manual-ad-label{font-size:10px}.manual-ad--desktop{display:none!important}}
@media(min-width:701px){.manual-ad--mobile{display:none!important}}
@media(max-width:365px){.manual-ad-image{flex-basis:31%}.manual-ad-copy{padding:12px 10px}.manual-ad-copy strong{font-size:14px}.manual-ad-description{font-size:12px}.manual-ad-cta{font-size:12px}}
@media(prefers-reduced-motion:reduce){.manual-ad-link{transition:none}}

/* v1.33 — native, separately labelled, instantly skippable in-feed ad screen. */
.shorts-feed-ad[hidden]{display:none!important}
.shorts-feed-ad{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;justify-content:space-between;
  color:#fff;background:#0b3028;overflow:hidden;pointer-events:none}
.shorts-feed-ad-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.shorts-feed-ad-gradient{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,22,18,.61),rgba(0,22,18,.1) 24%,rgba(0,22,18,.15) 40%,rgba(0,22,18,.95) 100%)}
.shorts-feed-ad-head{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(18px + env(safe-area-inset-top,0px)) 15px 0}
.shorts-feed-ad-disclosure{font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;color:#fff;background:rgba(6,48,37,.85);padding:10px 13px;border:1px solid rgba(255,255,255,.3);border-radius:12px}
.shorts-feed-ad-skip{pointer-events:auto;min-height:44px;border-radius:12px;padding:10px 16px;font:inherit;font-weight:700;font-size:13px;cursor:pointer;background:rgba(6,48,37,.85);color:#fff;border:1px solid rgba(255,255,255,.5)}
.shorts-feed-ad-skip:focus-visible,.shorts-feed-ad-cta:focus-visible{outline:3px solid #f9d891;outline-offset:3px}
.shorts-feed-ad-copy{position:relative;z-index:2;display:grid;gap:13px;padding:18px 22px calc(30px + env(safe-area-inset-bottom,0px));text-align:center}
.shorts-feed-ad-copy strong{display:block;font-size:clamp(21px,3vw,29px);line-height:1.25;color:#fff;font-weight:800;text-shadow:0 2px 16px rgba(0,0,0,.35)}
.shorts-feed-ad-copy p{font-size:14px;line-height:1.55;color:#edf8f0;margin:0;max-height:5em;overflow:hidden}
.shorts-feed-ad-copy .shorts-feed-ad-cta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 14px;border-radius:14px;pointer-events:auto;font-size:14px;font-weight:800;text-decoration:none;background:#f7e8c6;color:#084c3e;border:1px solid rgba(255,255,255,.55)}
.shorts-feed-ad-copy small{color:#e2f5ea;font-size:12px}
.shorts-viewer.shorts-ad-visible .shorts-viewer-player,.shorts-viewer.shorts-ad-visible .shorts-viewer-poster,.shorts-viewer.shorts-ad-visible .shorts-viewer-shade{visibility:hidden}
.shorts-viewer.shorts-ad-visible .shorts-viewer-bottom{display:none}
.shorts-viewer.shorts-ad-visible .shorts-viewer-label{visibility:hidden}
.shorts-viewer.shorts-ad-visible .shorts-viewer-gesture{cursor:ns-resize}
@media(max-width:640px){.shorts-feed-ad-copy{padding-inline:20px}.shorts-feed-ad-copy strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.shorts-feed-ad *{transition:none!important;animation:none!important}}

/* v1.35 — Slide presentation: keep legacy visuals; separate image-only clickable slide. */
.hero-slide.hero-with-copy.hero-background-soft .hero-photo{opacity:.29}
.hero-slide.hero-with-copy.hero-background-vivid .hero-photo{opacity:.78}
.hero-slide.hero-with-copy.hero-background-vivid:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,43,34,.84) 0%,rgba(0,50,40,.66) 51%,rgba(0,45,36,.24) 100%);z-index:1;pointer-events:none}
.hero-slide.hero-with-copy.hero-background-solid .hero-photo{display:none}
.hero-slide.hero-image-only{padding:0!important;background:#0b5645}
.hero-slide.hero-image-only .hero-full-image-link{position:absolute;inset:0;display:block;z-index:2;overflow:hidden;cursor:pointer;outline-offset:-4px;background:#0d5b49}
.hero-slide.hero-image-only .hero-full-image-link:focus-visible{outline:3px solid #f6d48f}
/* The backdrop is the same image resource as the foreground (browser cache reusable). */
.hero-slide.hero-image-only .hero-full-image-link { isolation:isolate; }
.hero-slide.hero-image-only .hero-photo-backdrop {
  position:absolute; inset:-12%; width:124%; height:124%;
  object-fit:cover; object-position:center;
  filter:blur(24px) brightness(.62) saturate(.82);
  transform:scale(1.06); opacity:.94; pointer-events:none;
  -webkit-user-select:none; user-select:none;
}
.hero-slide.hero-image-only .hero-full-image-link::after {
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(90deg,rgba(3,56,44,.19),transparent 30%,transparent 70%,rgba(3,56,44,.19));
}
.hero-slide.hero-image-only .hero-photo-image{position:relative;z-index:1;display:block;width:100%;height:100%;opacity:1!important;object-position:center;object-fit:contain}
.hero-slide.hero-image-only .hero-fit-cover .hero-photo-image{object-fit:cover}
.hero-slide.hero-image-only .hero-fit-cover::after{display:none}
.hero-image-gallery,.hero-image-gallery .hero-slide.is-active{aspect-ratio:16/9;min-height:0!important}
.hero-image-gallery .hero-slide{min-height:0}
.hero-image-gallery .hero-slide.is-active{width:100%}
@media(max-width:460px){.hero-image-gallery,.hero-image-gallery .hero-slide.is-active{aspect-ratio:16/9;min-height:0!important}.hero-slide.hero-image-only{padding:0!important}}


/* v1.41 — Authoritative responsive contract for public Header and Hero.
   Shared button dimensions across desktop/mobile; 16:9 for ALL slide modes.
   Long copy remains available in the mobile text section below the image frame. */
.app-header .header-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.app-header .header-actions .icon-button:not(.font-trigger) {
  box-sizing:border-box; flex:0 0 44px; width:44px; min-width:44px; max-width:44px;
  height:44px; min-height:44px; max-height:44px; padding:0; border-radius:13px;
  display:inline-flex; align-items:center; justify-content:center;
}
.app-header .header-actions .font-trigger {
  box-sizing:border-box; flex:0 0 72px; width:72px; min-width:72px; max-width:72px;
  height:44px; min-height:44px; max-height:44px; border-radius:13px;
}
.app-header .header-actions .icon-button .svg-icon{width:20px;height:20px;}
.app-header .brand { min-width:0; }
.app-header .brand-copy { min-width:0; overflow:hidden; }
.app-header .brand-copy strong, .app-header .brand-copy small { display:block; min-width:0; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
/* Fixed frame independent of slide text length and carousel presentation mode. */
.hero-stage .hero-slides, .hero-stage .hero-image-gallery {
  position:relative; width:100%; aspect-ratio:16 / 9;
  height:auto; min-height:0; overflow:hidden; border-radius:24px;
}
.hero-stage .hero-slides .hero-slide,
.hero-stage .hero-slides .hero-slide.is-active {
  position:absolute; inset:0; width:100%; height:100%; min-height:0; max-height:100%;
  overflow:hidden;
}
.hero-stage .hero-slide.hero-with-copy { padding:clamp(18px,4vw,32px); }
.hero-stage .hero-slide .hero-copy { max-width:min(100%,420px); min-width:0; }
.hero-stage .hero-slide .hero-copy h1 { overflow-wrap:break-word; }
/* v1.42 — One premium glass pager for content and image-only slides.
   All controls retain a fixed hit target: changing active dots cannot shift neighbors. */
.hero-stage .hero-pager {
  position:absolute; z-index:5; right:14px; bottom:14px;
  display:flex; align-items:center; justify-content:center; gap:0;
  padding:3px 6px; border-radius:999px;
  background:rgba(4,36,30,.32); border:1px solid rgba(255,255,255,.19);
  box-shadow:0 3px 12px rgba(0,25,21,.12);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  pointer-events:auto;
}
.hero-stage .hero-pager button {
  display:grid; place-items:center; flex:0 0 36px;
  width:36px; min-width:36px; height:36px; min-height:36px;
  border:0; padding:0; border-radius:999px;
  background:transparent; color:inherit; cursor:pointer;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
.hero-stage .hero-pager button::before {
  content:''; display:block; width:6px; height:6px;
  border-radius:999px; background:rgba(255,255,255,.80);
  transition:width .2s ease,background-color .2s ease,transform .2s ease;
}
.hero-stage .hero-pager button.active::before { width:18px; background:#efcb8b; }
@media(hover:hover){.hero-stage .hero-pager button:not(.active):hover::before { transform:scale(1.3);background:#fff; }}
.hero-stage .hero-pager button:focus-visible { outline:2px solid #efcb8b; outline-offset:-3px; }
.hero-mobile-summaries { display:none; }
@media (max-width:640px) {
  .hero-stage .hero-slides, .hero-stage .hero-image-gallery { border-radius:20px; }
  .hero-stage .hero-slide.hero-with-copy { padding:12px 14px 14px; }
  .hero-slide.hero-image-only .hero-photo-backdrop{filter:blur(17px) brightness(.62) saturate(.82)}
  .hero-stage .hero-slide .hero-copy { width:100%; max-width:100%; }
  .hero-stage .hero-copy .eyebrow { margin:0 0 5px; font-size:clamp(9px,calc(9px * var(--hub-font-scale)),12px); line-height:1.35; letter-spacing:.055em; }
  .hero-stage .hero-copy h1 {
    margin:0 0 9px; max-width:100%;
    font-size:clamp(18px,calc(19px * var(--hub-font-scale)),26px);
    line-height:1.18; letter-spacing:-.025em;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  }
  .hero-stage .hero-copy > p:not(.eyebrow) { display:none; }
  .hero-stage .hero-copy .btn.ivory { min-height:34px; padding:6px 11px; max-width:calc(100% - 82px);
    border-radius:10px; font-size:clamp(11px,calc(11px * var(--hub-font-scale)),15px);
    line-height:1.2; }
  .hero-stage .hero-copy .btn.ivory .btn-icon { flex:0 0 auto; }
  .hero-stage .hero-pager { right:10px; bottom:10px; }
  /* Keep the complete subtitle outside the 16:9 image so no text is lost. */
  .hero-mobile-summaries:not([hidden]) { display:block; }
  .hero-mobile-summary { font-size:calc(12px * var(--hub-font-scale));
    color:var(--muted); line-height:1.55; margin:9px 2px 0; overflow-wrap:anywhere; }
  .hero-mobile-summary p { margin:0; }
  .hero-mobile-summary strong { color:var(--deep); font-size:calc(13px * var(--hub-font-scale));
    font-weight:700; line-height:1.35; display:none; margin-bottom:4px; }
  .hero-mobile-summary.is-title-clipped strong { display:block; }
}
@media (max-width:420px) {
  .app-header .header-inner{padding-inline:7px;gap:6px;}
  .app-header .header-actions{gap:4px;}
  .app-header .brand{gap:6px;}
  .app-header .brand-mark{flex:0 0 34px;width:34px;height:34px;border-radius:10px;}
  .app-header .brand-copy small{display:block;font-size:calc(9px * var(--hub-font-scale));}
}
@media (max-width:365px) {
  .app-header .brand-copy{display:none;}
  .app-header .header-actions{gap:4px;}
  .app-header .brand-mark{flex-basis:34px;width:34px;height:34px;}
  .hero-stage .hero-slide.hero-with-copy{padding:10px 12px;}
  .hero-stage .hero-copy h1{font-size:clamp(17px,calc(18px * var(--hub-font-scale)),24px);margin-bottom:6px;}
  .hero-stage .hero-copy .eyebrow{margin-bottom:3px;}
  .hero-stage .hero-copy .btn.ivory{min-height:32px;padding:5px 9px;max-width:calc(100% - 82px);}
}
@media(prefers-reduced-motion:reduce){
  .hero-stage .hero-slide, .hero-stage .hero-pager button::before{transition:none;}
}
