/* HERA guide components (pillar hubs and chapters). One cached file for every guide page.
   Built for phones first: icons on headings, icon lists, card grids, side-by-side comparisons,
   stat tiles, chapter maps, real-install strips, diagram frames. Light theme only (the site has no dark mode).
   Markup reference: tools/guides/README.md. Tokens come from shared/guide-chrome.css. */

.gi { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -0.14em; }
main.g { background: var(--warm-white); }

/* Hero */
.g-hero { background: var(--soft-black); color: var(--ivory); padding: 150px 24px 0; }
.g-hero-inner { max-width: 1100px; margin: 0 auto; }
.g-crumbs { font-size: 0.82rem; color: var(--stone); margin-bottom: 22px; }
.g-crumbs a { color: var(--ivory); text-decoration: none; opacity: 0.85; }
.g-crumbs a:hover { opacity: 1; text-decoration: underline; }
.g-crumbs .sep { margin: 0 8px; opacity: 0.5; }
.g-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.g-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 400; line-height: 1.08; max-width: 860px; margin-bottom: 18px; }
.g-hero .g-lede { font-size: 1.15rem; line-height: 1.65; color: #cfe3e8; max-width: 760px; margin-bottom: 22px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.86rem; color: var(--stone); margin-bottom: 26px; }
.g-meta span { display: inline-flex; align-items: center; gap: 6px; }
.g-meta a { color: var(--ivory); }
.g-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font: 600 0.9rem 'DM Sans', sans-serif; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.g-btn .gi { width: 18px; height: 18px; }
.g-btn-wa { background: #1fa855; color: #fff; }
.g-btn-wa:hover { background: #178a45; }
.g-btn-teal { background: var(--hera-teal-dark); color: #fff; }
.g-btn-teal:hover { background: #2f7385; }
.g-btn-ghost { background: transparent; color: var(--ivory); border: 1px solid rgba(255,255,255,0.35); }
.g-btn-ghost:hover { border-color: #fff; }
.g-btn-line { background: #fff; color: var(--hera-teal-dark); border: 1px solid var(--hera-teal-dark); }
.g-hero-media { margin: 0 -24px; }
.g-hero-media img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.g-hero-media figcaption { background: var(--soft-black); color: var(--stone); font-size: 0.82rem; padding: 10px 24px 18px; max-width: 1100px; margin: 0 auto; }

/* Part-of banner on chapters */
.g-partof { background: #fff; border-bottom: 1px solid var(--mist); }
.g-partof-inner { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.9rem; color: var(--clay); }
.g-partof a { color: var(--hera-teal-dark); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.g-partof .g-progress { flex: 1 1 160px; height: 6px; background: var(--ivory); border-radius: 999px; overflow: hidden; min-width: 120px; }
.g-partof .g-progress i { display: block; height: 100%; background: var(--hera-teal-dark); border-radius: 999px; }

/* Layout: sticky contents beside the article */
.g-layout { max-width: 1100px; margin: 0 auto; padding: 48px 24px 64px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.g-toc { position: sticky; top: 96px; font-size: 0.9rem; max-height: calc(100vh - 120px); overflow: auto; }
.g-toc summary { list-style: none; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--mist); }
.g-toc li { margin: 0; }
.g-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--clay); text-decoration: none; line-height: 1.4; }
.g-toc a:hover { color: var(--charcoal); }
.g-toc a.is-active { color: var(--hera-teal-dark); border-left-color: var(--hera-teal-dark); font-weight: 600; }
.g-article { max-width: 740px; min-width: 0; }

/* Body text */
.g-article > p, .g-article li { font-size: 1.07rem; line-height: 1.75; color: var(--charcoal); }
.g-article > p { margin: 0 0 20px; }
.g-article a:not(.g-btn):not(.g-card):not(.g-chapter) { color: var(--hera-teal-dark); text-decoration: underline; text-decoration-color: rgba(61,139,158,0.4); text-underline-offset: 3px; }
.g-article strong { font-weight: 600; }
.g-article h2 { display: flex; align-items: center; gap: 14px; font-family: 'Cormorant Garamond', serif; font-size: clamp(1.75rem, 3.4vw, 2.35rem); font-weight: 500; line-height: 1.15; color: var(--charcoal); margin: 64px 0 20px; scroll-margin-top: 96px; }
.g-article h2:first-child { margin-top: 0; }
.g-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ivory); color: var(--hera-teal-dark); flex-shrink: 0; }
.g-ico .gi { width: 24px; height: 24px; }
.g-article h3 { font-size: 1.15rem; font-weight: 600; color: var(--charcoal); margin: 32px 0 12px; scroll-margin-top: 96px; }
.g-article > ul, .g-article > ol { margin: 0 0 24px; padding-left: 22px; }
.g-article > ul li, .g-article > ol li { margin-bottom: 8px; }

/* Key points */
.g-keypoints { background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 22px 24px; margin: 0 0 36px; box-shadow: 0 2px 14px rgba(0,0,0,0.04); }
.g-label { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hera-teal-dark); font-weight: 700; margin-bottom: 12px; }
.g-keypoints p { font-size: 1.1rem; line-height: 1.6; margin: 0 0 14px; font-weight: 500; }

/* Icon list: every parallel list of 3+ items */
.g-iconlist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.g-iconlist li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 1.02rem; line-height: 1.6; margin: 0; }
.g-iconlist .gi { width: 22px; height: 22px; margin-top: 3px; color: var(--hera-teal-dark); justify-self: center; }
.g-iconlist li.is-no .gi { color: #b04a3a; }
.g-keypoints .g-iconlist { margin: 0; }

/* Card grid */
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 32px; }
.g-card { display: block; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 18px 18px 16px; color: inherit; text-decoration: none; }
a.g-card:hover { border-color: var(--hera-teal); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.g-card .g-ico { width: 40px; height: 40px; margin-bottom: 10px; }
.g-card .g-ico .gi { width: 21px; height: 21px; }
.g-card h3, .g-card .g-card-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 6px; color: var(--charcoal); }
.g-card p { font-size: 0.95rem; line-height: 1.55; color: var(--clay); margin: 0; }
.g-card img { display: block; width: calc(100% + 36px); margin: -18px -18px 14px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 13px 13px 0 0; }

/* Stat tiles */
.g-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 36px; }
.g-stat { background: var(--ivory); border-radius: 14px; padding: 16px; }
.g-stat .gi { width: 22px; height: 22px; color: var(--hera-teal-dark); }
.g-stat b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; line-height: 1.05; color: var(--soft-black); margin: 6px 0 4px; }
.g-stat span { display: block; font-size: 0.88rem; line-height: 1.4; color: var(--clay); }

/* Side-by-side comparison with tick and cross */
.g-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 32px; }
.g-compare > div { background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 18px; }
.g-compare h3 { margin: 0 0 4px; font-size: 1.08rem; }
.g-compare .g-sub { font-size: 0.88rem; color: var(--clay); margin: 0 0 12px; }
.g-compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.g-compare li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 0.97rem; line-height: 1.5; margin: 0; }
.g-compare li .gi { width: 18px; height: 18px; margin-top: 3px; }
.g-compare li.y .gi { color: #1f8a4c; }
.g-compare li.n .gi { color: #b04a3a; }
.g-compare .g-pick { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--mist); font-size: 0.93rem; color: var(--charcoal); }

/* Tables */
.g-table { overflow-x: auto; margin: 8px 0 10px; border: 1px solid var(--mist); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 520px; }
.g-table th, .g-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--mist); vertical-align: top; line-height: 1.5; }
.g-table th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); font-weight: 700; background: var(--warm-white); }
.g-table tr:last-child td { border-bottom: 0; }
.g-note { font-size: 0.86rem; color: var(--clay); margin: 0 0 32px; }

/* Figures, diagrams */
.g-fig { margin: 32px 0; }
.g-fig img { display: block; width: 100%; height: auto; border-radius: 14px; }
.g-fig figcaption, .g-diagram figcaption { margin-top: 10px; font-size: 0.9rem; line-height: 1.5; color: var(--clay); }
.g-fig figcaption b { color: var(--charcoal); }
.g-diagram { margin: 32px 0; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 18px; }
.g-diagram svg { display: block; width: 100%; height: auto; font-family: 'DM Sans', sans-serif; }
.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.g-pair .g-fig { margin: 0; }

/* Steps */
.g-steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 32px; display: grid; gap: 12px; }
.g-steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 16px 18px 16px 64px; font-size: 1rem; line-height: 1.6; margin: 0; }
.g-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--hera-teal-dark); color: #fff; display: grid; place-items: center; font-weight: 700; }
.g-steps li b { display: block; color: var(--charcoal); }

/* Callouts */
.g-callout { display: grid; grid-template-columns: 30px 1fr; gap: 12px; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 16px 18px; margin: 24px 0 30px; }
.g-callout .gi { width: 24px; height: 24px; color: var(--hera-teal-dark); margin-top: 2px; }
.g-callout.warn { background: #fff8ec; border-color: #f0d9a8; }
.g-callout.warn .gi { color: #a26a00; }
.g-callout p { margin: 0; font-size: 1rem; line-height: 1.6; }
.g-callout p + p { margin-top: 8px; }

/* Chapter map (hub) */
.g-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 36px; counter-reset: ch; }
@media (min-width: 700px) { .g-chapters { grid-template-columns: repeat(2, 1fr); } } /* 10 chapters and 6 related cards fill even rows */
.g-chapter { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mist); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; }
.g-chapter:hover { border-color: var(--hera-teal); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.g-chapter img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ivory); }
.g-chapter div { padding: 14px 16px 16px; }
.g-chapter small { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hera-teal-dark); font-weight: 700; margin-bottom: 6px; }
.g-chapter b { display: block; font-size: 1.05rem; line-height: 1.35; color: var(--charcoal); margin-bottom: 6px; }
.g-chapter span { font-size: 1rem; line-height: 1.5; color: var(--clay); }

/* Real installs strip */
.g-installs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 12px; overflow-x: auto; padding: 4px 2px 14px; margin: 8px 0 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.g-installs a { scroll-snap-align: start; text-decoration: none; color: inherit; }
.g-installs img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--ivory); }
.g-installs span { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--clay); margin-top: 8px; }
.g-installs b { display: block; color: var(--charcoal); font-weight: 600; }

/* Video (loads on tap) */
.g-video { margin: 32px 0; }
.g-video-frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft-black); aspect-ratio: 16 / 9; }
.g-video-frame img, .g-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-video-play { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 52%; background: transparent; border: 0; cursor: pointer; } /* over the photo half, clear of the poster headline */
@media (max-width: 640px) { .g-video-play i { width: 60px; height: 60px; } }
.g-video-play i { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,0.94); color: var(--soft-black); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.g-video-play .gi { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.g-video details { margin-top: 10px; font-size: 0.92rem; color: var(--clay); }
.g-video summary { cursor: pointer; font-weight: 600; color: var(--hera-teal-dark); min-height: 44px; display: flex; align-items: center; }
.g-video details p { font-size: 1rem; line-height: 1.65; margin: 0 0 10px; }

/* FAQ */
.g-faq { margin: 8px 0 32px; border-top: 1px solid var(--mist); }
.g-faq details { border-bottom: 1px solid var(--mist); }
.g-faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 26px 1fr 22px; gap: 10px; align-items: start; padding: 16px 0; font-weight: 600; font-size: 1.03rem; line-height: 1.45; color: var(--charcoal); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary .gi { width: 20px; height: 20px; color: var(--hera-teal-dark); margin-top: 2px; }
.g-faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; line-height: 1; color: var(--hera-teal-dark); transition: transform 0.2s; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details > div { padding: 0 0 16px 36px; }
.g-faq details p { font-size: 1rem; line-height: 1.7; margin: 0 0 10px; }

/* Inline CTA */
.g-cta { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--soft-black); color: var(--ivory); border-radius: 16px; padding: 22px 24px; margin: 36px 0; }
.g-cta p { margin: 0; font-size: 1.05rem; line-height: 1.5; color: #e2eef1; }
.g-cta p b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: #fff; margin-bottom: 2px; }
.g-cta .g-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Prev / next chapter */
.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0 0; }
.g-pager a { display: block; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: inherit; min-height: 44px; }
.g-pager a:hover { border-color: var(--hera-teal); }
.g-pager small { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 4px; }
.g-pager b { font-size: 1rem; color: var(--charcoal); line-height: 1.4; }
.g-pager .next { text-align: right; grid-column: 2; }

/* Author and updated */
.g-byline { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 16px 18px; margin: 40px 0 0; }
.g-byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; background: var(--ivory); padding: 6px; }
.g-byline p { margin: 0; font-size: 0.94rem; line-height: 1.55; color: var(--clay); }
.g-byline b { color: var(--charcoal); }

/* Final CTA band and related */
.g-final { background: var(--soft-black); color: var(--ivory); padding: 64px 24px; }
.g-final-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.g-final h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; line-height: 1.15; margin-bottom: 12px; }
.g-final p { color: #cfe3e8; line-height: 1.65; margin-bottom: 18px; }
.g-final .g-hours { font-size: 1rem; color: var(--stone); }
.g-final .g-hours a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.g-final ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.g-final li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 0.98rem; line-height: 1.5; color: #e2eef1; }
.g-final li .gi { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.g-related { max-width: 1100px; margin: 0 auto; padding: 56px 24px 72px; }
.g-related h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 500; margin-bottom: 18px; color: var(--charcoal); }

/* Phone sticky bar: body.has-sticky lifts the showroom card and video bubble above it */
.g-sticky { display: none; }
@media (max-width: 760px) {
  .g-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 86; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.97); border-top: 1px solid var(--mist); box-shadow: 0 -6px 20px rgba(0,0,0,0.06); transform: translateY(110%); transition: transform 0.3s; }
  body.has-sticky .g-sticky { transform: none; }
  .g-sticky .g-btn { min-height: 48px; padding: 10px 12px; font-size: 0.86rem; }
}

/* Small screens */
@media (max-width: 960px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .g-toc { position: static; max-height: none; margin: 0 0 28px; background: #fff; border: 1px solid var(--mist); border-radius: 14px; padding: 4px 16px; }
  .g-toc summary { margin: 0; min-height: 48px; cursor: pointer; }
  .g-toc summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--hera-teal-dark); }
  .g-toc[open] summary::after { content: '\2212'; }
  .g-toc ol { margin-bottom: 12px; }
  .g-toc a { padding: 12px 0 12px 14px; }
  .g-partof a { min-height: 44px; }
  .g-crumbs a, .g-meta a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .g-sources summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
  .g-final-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g-hero { padding-top: 112px; }
  .g-hero .g-lede { font-size: 1.04rem; }
  .g-hero-ctas .g-btn { flex: 1 1 100%; }
  .g-compare, .g-pair { grid-template-columns: 1fr; }
  .g-cta { grid-template-columns: 1fr; }
  .g-cta .g-cta-btns { justify-content: stretch; }
  .g-cta .g-btn { flex: 1 1 100%; }
  .g-pager { grid-template-columns: 1fr; }
  .g-pager .next { grid-column: 1; }
  .g-article h2 { gap: 12px; margin-top: 52px; }
  .g-ico { width: 40px; height: 40px; }
  .g-ico .gi { width: 21px; height: 21px; }
  .g-stat b { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .g-sticky { transition: none; } html { scroll-behavior: auto; } }
@media print {
  header, nav, .g-sticky, .g-toc, .g-cta, .g-final, .g-video-play, #hera-footer, .hsn, .vb { display: none !important; }
  .g-hero { background: none; color: #000; padding: 0; }
  .g-hero h1, .g-hero .g-lede, .g-crumbs a { color: #000; }
  .g-layout { display: block; padding: 0; }
  .g-faq details { display: block; }
  .g-faq details > div { display: block; }
  a { color: #000 !important; }
}
/* Body-size floor: reading text never under 16px (pass 0 check). */
.g-compare li, .g-card p, .g-byline p { font-size: 1rem; }
.g-compare .g-sub { font-size: 1rem; }
/* Phones: diagrams fit the screen whole; "See it bigger" (guide.js) shows them at 860px, scrolling sideways. */
.g-zoom { display: none; }
.g-diagram svg.g-narrow { max-width: 460px; margin: 0 auto; } /* small viewBox diagrams stay at reading size on wide screens */
@media (max-width: 640px) {
  .g-diagram { padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .g-diagram.is-zoom svg { min-width: 860px; }
  .g-zoom { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 8px; padding: 8px 16px; border: 1.5px solid var(--hera-teal); border-radius: 999px; background: #fff; color: var(--hera-teal-dark); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
  .g-zoom .gi { width: 18px; height: 18px; }
  /* simple tables stack: one card per row, each cell labelled */
  .g-stack { border: 0; background: none; overflow: visible; }
  .g-stack table { min-width: 0; }
  .g-stack thead { display: none; }
  .g-stack tbody, .g-stack tr, .g-stack td, .g-stack tbody th { display: block; }
  .g-stack tr { margin: 0 0 12px; border: 1px solid var(--mist); border-radius: 14px; background: #fff; overflow: hidden; }
  .g-stack tbody th, .g-stack td { border: 0; padding: 8px 14px; }
  .g-stack tr > :first-child { background: var(--warm-white); font-weight: 700; padding-top: 12px; padding-bottom: 12px; }
  .g-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin-bottom: 2px; }
  .g-stack tr > :first-child[data-label]::before { display: none; }
  .g-stack tr > th:first-child { font-size: 1rem; letter-spacing: 0; text-transform: none; color: inherit; }
}
.g-sources { margin: -12px 0 28px; font-size: 1rem; color: var(--clay); }
.g-sources summary { cursor: pointer; font-weight: 600; color: var(--hera-teal-dark); }
.g-sources ul { margin: 10px 0 0 18px; }
.g-sources li { margin-bottom: 6px; line-height: 1.55; }
.g-reel { max-width: 340px; margin-left: auto; margin-right: auto; }
.g-reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
/* Swipe cue for tables and diagrams wider than the phone (added by guide.js when they overflow). */
.g-swipe { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--hera-teal-dark); }
.g-swipe .gi { width: 18px; height: 18px; }
.is-scroll { box-shadow: inset -18px 0 14px -12px rgba(46,50,53,0.18); }
.g-more { margin: 8px 0 12px; }
.g-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--hera-teal); border-radius: 999px; color: var(--hera-teal-dark); font-weight: 600; cursor: pointer; list-style: none; }
.g-more > summary::-webkit-details-marker { display: none; }
.g-more[open] > summary { margin-bottom: 14px; }

/* Even grids: four cards sit 2 x 2, never 3 + 1; an odd last stat on a two-column phone grid spans the row */
@media (min-width: 700px) { .g-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .g-stats > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Portrait (9:16) photos: never taller than 80% of the screen. Width-based, so lazy images keep their box before loading */
.g-fig > img[width="720"][height="1280"], .g-fig > img[width="901"][height="1600"] { max-width: calc(80vh * 0.5625); margin: 0 auto; }
.g-fig > img[width="901"][height="1070"] { max-width: calc(75vh * 0.842); margin: 0 auto; }
@media (min-width: 700px) { .g-diagram svg:not(.g-narrow) { max-height: 75vh; } }
.g-fig > img[width="619"][height="1100"] { max-width: calc(80vh * 0.5625); margin: 0 auto; }
.g-cta p b, .g-callout h3, .g-cta h3 { text-wrap: balance; }
.g-diagram svg.g-narrow.g-left { margin: 0; }
details > summary .g-hide { display: none; }
details[open] > summary .g-show { display: none; }
details[open] > summary .g-hide { display: inline; }
/* Headings never leave one word alone */
.g-article h2, .g-article h3, main h2, main h3 { text-wrap: balance; }
.g-crumb { white-space: nowrap; }
.g-stat b { white-space: nowrap; }
@media (min-width: 700px) { .g-stats:has(> :nth-child(4)) .g-stat b { font-size: 1.6rem; } }
.nw { white-space: nowrap; }
.g-ht { text-wrap: balance; }
/* Photo pairs line up: same box for both, drawings shown whole on white */
.g-pair .g-fig > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-width: none; }
.g-pair .g-fig > img[src*="dimensions"] { object-fit: contain; background: #fff; }
.g-toc a, .g-card h3, .g-card .g-card-title { text-wrap: balance; }

/* lettered key under a measuring diagram */
.g-diagram figcaption.g-mkey { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 18px; font-size: 1.05rem; line-height: 1.45; color: #2E3235; }
.g-mkey span { display: flex; gap: 12px; align-items: flex-start; }
.g-mkey b { flex: none; width: 30px; height: 30px; margin-top: -2px; border-radius: 50%; background: #C8A96E; color: #fff; display: grid; place-items: center; font-size: 0.95rem; }
@media (max-width: 560px) { .g-diagram figcaption.g-mkey { grid-template-columns: 1fr; } }
