/*
Theme Name: HealthTechTonic
Theme URI: https://healthtechtonic.com/
Author: HealthTechTonic
Description: Ink and teal block theme for practical HTM learning (HTT-REDESIGN-1101).
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: healthtechtonic
*/

:root {
  --htt-graphite: #151e26;
  --htt-panel: #10384a;
  --htt-elevated: #1a5066;
  --htt-edge: #91b0b6;
  --htt-text: #e5ebea;
  --htt-subtle: #e7d9c0;
  --htt-green: #f2c230;
  --htt-cyan: #91b0b6;
  --htt-yellow: #f2c230;
  --htt-paper: #e5ebea;
  --htt-light-subtle: #3a4651;
  --htt-deep-green: #1a5066;
  --htt-deep-cyan: #1a5066;
  --htt-deep-yellow: #8a3f06;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-size: 1.0625rem; line-height: 1.6; }
a, button, input, label { -webkit-tap-highlight-color: transparent; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
.htt-option:focus-within {
  outline: 3px solid var(--htt-yellow);
  outline-offset: 4px;
  box-shadow: 0 0 0 1px var(--htt-ink);
}
.htt-section a:focus-visible, .htt-values a:focus-visible, .htt-content-page a:focus-visible { outline-color: var(--htt-deep-teal); box-shadow: 0 0 0 1px var(--htt-page); }
.htt-dark a:focus-visible, .htt-hero a:focus-visible { outline-color: var(--htt-yellow); box-shadow: 0 0 0 1px var(--htt-ink); }
.wp-site-blocks { overflow: clip; }
.htt-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.htt-hero {
  position: relative;
  margin-block: 0 !important;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: center;
  color: var(--htt-text);
  background-color: var(--htt-panel);
  /* Scene H1 is the picture element in patterns/hero.php; this gradient is the fallback. */
  background-image: linear-gradient(115deg, #10384a 0%, #1a5066 55%, #151e26 100%);
  overflow: hidden;
}
/* Scene H1: picture fills the hero; a deep-teal wash keeps the headline at AA (computed in plans/2026-11-01/htt-redesign/contrast_scenes.py: 6.03 worst). */
.htt-hero-pic, .htt-hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; margin: 0 !important; }
.htt-hero-pic img { object-fit: cover; object-position: 78% center; }
.htt-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,56,74,0.92) 0%, rgba(16,56,74,0.82) 38%, rgba(16,56,74,0.25) 68%, rgba(16,56,74,0) 100%); pointer-events: none; }
.htt-hero > .htt-shell { position: relative; z-index: 2; }
.htt-hero > .htt-hero-pic { z-index: 0; }
@media (max-width: 767px) {
  /* Phone: the picture sits above the copy as a clear 1:1 crop so the figure is never covered; text stays on flat deep teal. */
  .htt-hero { display: block; min-height: auto !important; padding-block: 0 !important; background: var(--htt-deep-teal); }
  .htt-hero::before { display: none; }
  .htt-hero-pic, .htt-hero-pic img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .htt-hero-pic img { object-position: 72% 72%; }
  .htt-hero-copy { padding-block: 1.75rem 2.25rem !important; }
  .htt-hero .htt-motion-toggle { top: 12px; bottom: auto; right: 12px; }
}
/* Scene F1: lab floor strip under a 70 percent deep-teal wash behind the shared footer. */
footer[data-htt-chrome="footer"] { background-image: linear-gradient(rgba(16,56,74,0.7), rgba(16,56,74,0.7)), url("assets/scenes/f1-footer.webp"); background-size: cover; background-position: center bottom; }
.htt-hero-copy { padding-block: 4rem; }
.htt-hero-copy > * { max-width: 40rem; }
.htt-eyebrow { color: var(--htt-teal); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8125rem; margin: 0; }
.htt-dark .htt-eyebrow, .htt-hero .htt-eyebrow { color: var(--htt-brick-yellow); }
.htt-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); letter-spacing: -0.03em; line-height: 1.04; margin: 0.12em 0 0.3em; color: var(--htt-page, #fff); text-wrap: balance; }
.htt-lead { max-width: 620px; color: var(--htt-text); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.htt-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.htt-button .wp-block-button__link { min-height: 50px; display: inline-flex; align-items: center; padding: 0.65rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background var(--htt-ease), color var(--htt-ease); }
.htt-button-primary .wp-block-button__link { color: var(--htt-graphite); background: var(--htt-green); border: 2px solid var(--htt-green); }
.htt-button-primary .wp-block-button__link:hover { background: var(--htt-page); border-color: var(--htt-page); }
.htt-button-teal .wp-block-button__link { color: var(--htt-mist); background: var(--htt-teal); border: 2px solid var(--htt-teal); }
.htt-button-teal .wp-block-button__link:hover { background: var(--htt-deep-teal); border-color: var(--htt-deep-teal); color: var(--htt-page); }
.htt-button-secondary .wp-block-button__link { color: var(--htt-ink); background-color: var(--htt-mist); border: 2px solid var(--htt-teal); border-color: var(--htt-teal); }
.htt-button-secondary .wp-block-button__link:hover { background: var(--htt-teal); color: var(--htt-mist); }
.htt-hero .htt-button-secondary .wp-block-button__link { color: var(--htt-page); background-color: var(--htt-deep-teal); border-color: var(--htt-steel); }
.htt-hero .htt-button-secondary .wp-block-button__link:hover { background: var(--htt-page); color: var(--htt-ink); }
.htt-dark .htt-button-secondary .wp-block-button__link { color: var(--htt-page); background-color: var(--htt-deep-teal); border-color: var(--htt-steel); }
.htt-dark .htt-button-secondary .wp-block-button__link:hover { background: var(--htt-page); color: var(--htt-ink); }

/* Scene slots: owner-supplied images only; each falls back to the brand gradient. Image names are in assets/scenes/README.md. */
.htt-scene { position: relative; overflow: hidden; border-radius: var(--htt-radius-card); min-height: 320px; background-color: var(--htt-deep-teal); background-image: var(--htt-scene-image, none), linear-gradient(135deg, #10384a 0%, #1a5066 60%, #91b0b6 140%); background-size: cover; background-position: center; box-shadow: var(--htt-shadow); }
.htt-scene-h2 { --htt-scene-image: url("assets/scenes/h2-problem.webp"); }
.htt-scene-h3 { --htt-scene-image: url("assets/scenes/h3-built.webp"); }
.htt-scene-c1 { --htt-scene-image: url("assets/scenes/c1-cohort1.webp"); }
.htt-scene::after { content: ""; position: absolute; inset: auto 0 0 auto; width: 38%; height: 14px; background: var(--htt-brick-yellow); border-top-left-radius: 14px; }
.htt-scene-h3::after { background: var(--htt-brick-orange); }
.htt-scene-c1::after { background: var(--htt-steel); }

.htt-values { margin-block: 0 !important; background-color: var(--htt-mist); color: var(--htt-ink); padding-block: clamp(2.5rem, 5vw, 4rem); }
.htt-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.htt-value { position: relative; min-height: 170px; padding: 1.75rem 1.75rem 1.5rem; background-color: var(--htt-page); border-radius: var(--htt-radius-card); box-shadow: var(--htt-shadow); overflow: hidden; }
.htt-value::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--htt-teal); }
.htt-value:nth-child(2)::before { background: var(--htt-brick-yellow); }
.htt-value:nth-child(3)::before { background: var(--htt-brick-orange); }
.htt-value h2 { color: var(--htt-teal); font-size: 1.55rem; margin: 0.4rem 0 0.4rem; }
.htt-value p { color: var(--htt-slate); margin: 0; }

.htt-section { padding-block: clamp(4rem, 8vw, 7rem); }
.htt-beat { background-color: var(--htt-page); color: var(--htt-ink); }
.htt-beat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.htt-beat-flip .htt-scene { order: -1; }
.htt-beat h2 { color: var(--htt-teal); font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0.25em 0 0.45em; text-wrap: balance; }
.htt-beat p { max-width: 36rem; color: var(--htt-ink); }
.htt-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; counter-reset: htt-step; }
.htt-steps li { counter-increment: htt-step; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.htt-steps li::before { content: counter(htt-step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--htt-radius-pill); background-color: var(--htt-brick-yellow); color: var(--htt-ink); font-weight: 800; }
.htt-dark { background-color: var(--htt-deep-teal); color: var(--htt-page); }
.htt-dark h2 { color: var(--htt-page); font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; margin: 0.25em 0 0.9em; max-width: 32rem; text-wrap: balance; }
.htt-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.htt-facts li { padding: 1.4rem 1.5rem; border-radius: var(--htt-radius-card); background-color: var(--htt-teal); color: var(--htt-page); border-top: 6px solid var(--htt-brick-yellow); }
.htt-facts li:nth-child(2) { border-top-color: var(--htt-brick-orange); }
.htt-facts li:nth-child(3) { border-top-color: var(--htt-steel); }
.htt-facts strong { display: block; font-size: 1.2rem; margin-bottom: 0.35rem; }
.htt-cta { background-color: var(--htt-cream); color: var(--htt-ink); text-align: center; }
.htt-cta h2 { color: var(--htt-deep-teal); font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0 0 1.25rem; text-wrap: balance; }
.htt-cta .htt-actions { justify-content: center; }
.htt-cta .htt-button-primary .wp-block-button__link { color: var(--htt-mist); background: var(--htt-teal); border-color: var(--htt-teal); }
.htt-cta .htt-button-primary .wp-block-button__link:hover { background: var(--htt-deep-teal); border-color: var(--htt-deep-teal); color: var(--htt-page); }

/* Scroll story: fade-up only when motion is allowed. The htt-motion class is set by script and removed by the Pause motion toggle or prefers-reduced-motion. */
.htt-motion .htt-reveal { opacity: 0; transform: translateY(18px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
.htt-motion .htt-reveal.htt-in { opacity: 1; transform: none; }
.htt-motion-toggle { position: absolute; right: 14px; bottom: 12px; z-index: 5; min-height: 44px; padding: 0 16px; border-radius: var(--htt-radius-pill); border: 2px solid var(--htt-teal); background-color: var(--htt-page); color: var(--htt-ink); font: 700 0.875rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; box-shadow: var(--htt-shadow); }
.htt-motion-toggle:focus-visible { outline: 3px solid var(--htt-yellow); outline-offset: 2px; box-shadow: 0 0 0 1px var(--htt-ink); }
.htt-motion-toggle:hover { background-color: var(--htt-mist); }

.htt-content-page { padding-inline: 24px; }
.htt-content-page { background-color: var(--htt-mist); }
.htt-content-page .wp-block-post-title { color: var(--htt-deep-teal); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.htt-content-page h2, .htt-content-page h3 { color: var(--htt-teal); }
.htt-content-page .htt-catalog-section { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw) !important; }
@media (min-width: 901px) {
  .htt-content-page:has(.htt-wide-page) > .wp-block-post-title, .htt-content-page:has(.htt-catalog-section) > .wp-block-post-title { width: min(1280px, calc(100vw - 48px)); max-width: none; }
}
.htt-content-page:has(.htt-wide-page) > .wp-block-post-content, .htt-content-page:has(.htt-wide-page) > .wp-block-post-title { max-width: 1280px !important; width: 100%; }
.htt-content-page:has(.htt-wide-page) .htt-wide-page { max-width: none; width: 100%; }
.htt-content-page a { color: var(--htt-teal); text-underline-offset: 4px; }
.htt-content-page .htt-lede { font-size: 1.25rem; max-width: 46rem; color: var(--htt-ink); }
.htt-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; }
.htt-note { padding: 1.4rem 1.5rem; background-color: var(--htt-page); border-radius: var(--htt-radius-card); border-left: 6px solid var(--htt-brick-yellow); box-shadow: var(--htt-shadow); }
.htt-note + .htt-note { border-left-color: var(--htt-teal); }
.htt-note p { margin: 0.3rem 0 0; }
.htt-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.htt-section-head h2, .htt-copy h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 0.15em 0; }
.htt-section-head p, .htt-copy p { color: inherit; }
.htt-catalog-section { background-color: var(--htt-mist); color: var(--htt-ink); padding-block: 1rem 3rem; }
.htt-catalog-section .htt-section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--htt-teal); }
.htt-catalog-section .htt-eyebrow { color: var(--htt-teal); }
.has-paper-background-color a, .htt-catalog-section a { color: var(--htt-teal); }
.has-paper-background-color a:focus-visible, .htt-catalog-section a:focus-visible { outline-color: var(--htt-deep-teal); }
.htt-catalog-intro { color: var(--htt-slate); }
.htt-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.htt-course { display: flex; flex-direction: column; position: relative; overflow: hidden; background-color: var(--htt-page); border-radius: var(--htt-radius-card); box-shadow: var(--htt-shadow); transition: transform var(--htt-ease); }
.htt-course:hover { transform: translateY(-3px); }
.htt-course-scene { height: 150px; background-color: var(--htt-deep-teal); background-image: url("assets/scenes/c1-cohort1.webp"), linear-gradient(135deg, #10384a 0%, #1a5066 65%, #91b0b6 150%); background-size: cover; background-position: center; border-bottom: 6px solid var(--htt-brick-yellow); }
.htt-course:nth-child(3n + 2) .htt-course-scene { border-bottom-color: var(--htt-brick-orange); }
.htt-course:nth-child(3n + 3) .htt-course-scene { border-bottom-color: var(--htt-steel); }
.htt-course-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.htt-course-track { color: var(--htt-teal); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; }
.htt-course h3 { color: var(--htt-ink); font-size: 1.45rem; margin: 0.5rem 0 0.5rem; }
.htt-course-summary { color: var(--htt-slate); margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.htt-course-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.htt-course-meta { color: var(--htt-slate); font-weight: 700; margin: 0; font-size: 0.9375rem; }
.htt-course a { color: var(--htt-mist); background-color: var(--htt-teal); display: inline-flex; min-height: 44px; align-items: center; padding: 0 22px; border-radius: var(--htt-radius-pill); font-weight: 700; text-decoration: none; transition: background var(--htt-ease); }
.htt-course a:hover { background-color: var(--htt-deep-teal); color: var(--htt-page); }
.htt-content-page .htt-course a { color: var(--htt-mist); }

.htt-cohort-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 1.5rem; }
.htt-cohort-main { max-width: 46rem; }
.htt-cohort-main h2 { font-size: 1.6rem; margin: 2.2rem 0 0.6rem; }
.htt-cohort-main h2:first-child { margin-top: 0; }
.htt-cohort-main ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.htt-cohort-main p, .htt-cohort-main li { max-width: 68ch; }
.htt-enroll { position: sticky; top: 100px; background-color: var(--htt-deep-teal); color: var(--htt-page); padding: 1.6rem; border-radius: var(--htt-radius-card); box-shadow: var(--htt-shadow); border-top: 6px solid var(--htt-brick-yellow); }
.admin-bar .htt-enroll { top: 132px; }
.htt-enroll .htt-scene { min-height: 150px; margin-bottom: 1.25rem; }
.htt-content-page .htt-enroll h2 { color: var(--htt-page); font-size: 1.5rem; margin: 0 0 0.4rem; }
.htt-enroll p { color: var(--htt-page); margin: 0 0 1.1rem; }
.htt-enroll .htt-button .wp-block-button__link { width: 100%; justify-content: center; }
.htt-content-page .htt-enroll a:focus-visible { outline-color: var(--htt-brick-yellow); }
.htt-content-page .htt-enroll .htt-button-primary a { color: var(--htt-ink); }
.htt-practice { background-color: var(--htt-panel); border-block: 1px solid var(--htt-edge); }
.htt-practice-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.htt-question { background-color: var(--htt-graphite); border: 1px solid var(--htt-edge); box-shadow: 9px 9px 0 var(--htt-elevated); padding: clamp(1.25rem, 3vw, 2rem); }
.htt-question fieldset { border: 0; margin: 0; padding: 0; }
.htt-question legend { font: 400 1.3rem/1.45 var(--wp--preset--font-family--serif); margin-bottom: 1rem; }
.htt-option { min-height: 50px; display: flex; gap: 0.8rem; align-items: center; border: 1px solid var(--htt-edge); padding: 0.75rem; margin: 0.65rem 0; cursor: pointer; }
.htt-option:hover { border-color: var(--htt-green); background-color: var(--htt-panel); }
.htt-option input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; accent-color: var(--htt-green); }
.htt-quiz-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }
.htt-quiz-actions button { min-height: 46px; padding: 0.55rem 0.9rem; border: 2px solid var(--htt-cyan); background-color: var(--htt-graphite); color: var(--htt-text); font: 800 0.9rem/1.2 var(--wp--preset--font-family--sans); cursor: pointer; }
.htt-quiz-actions .htt-check { background-color: var(--htt-green); border-color: var(--htt-green); color: var(--htt-graphite); }
.htt-feedback { border-left: 4px solid var(--htt-yellow); background-color: var(--htt-elevated); padding: 0.9rem; }
.htt-feedback:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }

.htt-cohort { background: var(--htt-mist); color: var(--htt-ink); }
.htt-cohort-grid, .htt-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.htt-cohort h2 { color: var(--htt-teal); font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; margin: 0.25em 0 0.45em; }
.htt-cohort p { color: var(--htt-ink); }
.htt-about { background-color: var(--htt-elevated); border-block: 1px solid var(--htt-edge); }
.htt-byline { color: var(--htt-green); font-weight: 800; }

@media (max-width: 900px) {
  .htt-hero-grid, .htt-practice-grid, .htt-cohort-grid, .htt-about-grid, .htt-section-head, .htt-beat-grid, .htt-cohort-layout, .htt-notes { grid-template-columns: 1fr; }
  .htt-beat-flip .htt-scene { order: 0; }
  .htt-scene { min-height: 220px; }
  .htt-catalog { grid-template-columns: 1fr; }
  .htt-values-grid, .htt-facts { grid-template-columns: 1fr; }
  .htt-enroll { position: static; }
}
@media (max-width: 640px) {
  .htt-shell { width: calc(100% - 28px); }
  .htt-content-page { padding-inline: 16px; }
  .htt-hero { min-height: auto; padding-block: 3.5rem; }
  .htt-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .htt-hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .htt-actions { display: grid; }
  .htt-actions .wp-block-button, .htt-actions .wp-block-button__link { width: 100%; }
  .htt-motion-toggle { right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .htt-wave { animation: none; stroke-dashoffset: 0; }
  .htt-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .htt-course { transition: none; }
}

/* HTT-SHARED:BEGIN (generated by scripts/build_shared_chrome.py, do not edit) */
/* HTT design tokens (HTT-REDESIGN-1101 SPEC section 2). Single source: edited here only, copied by scripts/build_shared_chrome.py. */
:root {
  --htt-ink: #151e26;
  --htt-teal: #1a5066;
  --htt-deep-teal: #10384a;
  --htt-steel: #91b0b6;
  --htt-cream: #e7d9c0;
  --htt-mist: #e5ebea;
  --htt-page: #ffffff;
  --htt-brick-yellow: #f2c230;
  --htt-brick-orange: #e8731a;
  --htt-burnt-orange: #b4510a;
  --htt-slate: #3a4651;
  --htt-rust: #8a3f06;
  --htt-radius-card: 14px;
  --htt-radius-pill: 999px;
  --htt-shadow: 0 1px 2px rgba(21, 30, 38, 0.08), 0 8px 24px rgba(21, 30, 38, 0.12);
  --htt-ease: 240ms ease-out;
}

/* Shared header and footer (WordPress and Moodle). Pairs: ink on page 16.86, page on deep teal 12.45, mist on teal 7.30. */
.htt-site-header { position: sticky; top: 0; z-index: 40; background: var(--htt-page); color: var(--htt-ink); border-bottom: 1px solid var(--htt-mist); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.admin-bar .htt-site-header { top: 32px; }
.htt-site-header .htt-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.htt-site-header .htt-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.htt-site-header .htt-brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--htt-ink); text-decoration: none; }
.htt-site-header .htt-brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.htt-site-header .htt-brand { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--htt-ink); }
.htt-site-header .htt-nav { display: flex; align-items: center; gap: 8px; }
.htt-site-header .htt-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--htt-ink); font-weight: 600; text-decoration: none; border-radius: var(--htt-radius-pill); transition: background var(--htt-ease), color var(--htt-ease); }
.htt-site-header .htt-nav a:hover { background: var(--htt-mist); }
.htt-site-header .htt-nav a.htt-login { background: var(--htt-teal); color: var(--htt-mist); }
.htt-site-header .htt-nav a.htt-login:hover { background: var(--htt-deep-teal); color: var(--htt-page); }
.htt-site-header .htt-menu { display: none; position: relative; }
.htt-site-header .htt-menu summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border: 2px solid var(--htt-teal); border-radius: var(--htt-radius-pill); color: var(--htt-ink); font-weight: 700; cursor: pointer; list-style: none; }
.htt-site-header .htt-menu summary::-webkit-details-marker { display: none; }
.htt-site-header .htt-menu nav { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 220px; padding: 12px; background: var(--htt-page); border: 1px solid var(--htt-steel); border-radius: var(--htt-radius-card); box-shadow: var(--htt-shadow); display: flex; flex-direction: column; gap: 4px; }
.htt-site-header .htt-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--htt-ink); font-weight: 600; text-decoration: none; border-radius: 10px; }
.htt-site-header .htt-menu nav a.htt-login { background: var(--htt-teal); color: var(--htt-mist); }
.htt-site-header a:focus-visible, .htt-site-header summary:focus-visible { outline: 3px solid var(--htt-deep-teal); outline-offset: 3px; box-shadow: 0 0 0 1px var(--htt-page); }
.htt-footer-shared { background: var(--htt-deep-teal); color: var(--htt-page); padding-block: 40px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.htt-footer-shared .htt-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.htt-footer-shared .htt-footer-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--htt-page); }
.htt-footer-shared .htt-footer-line { margin: 4px 0 0; color: var(--htt-page); }
.htt-footer-shared nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.htt-footer-shared nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--htt-page); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.htt-footer-shared nav a:hover { color: var(--htt-brick-yellow); }
.htt-footer-shared a:focus-visible { outline: 3px solid var(--htt-brick-yellow); outline-offset: 3px; box-shadow: 0 0 0 1px var(--htt-ink); }
@media (max-width: 760px) {
  .htt-site-header .htt-shell, .htt-footer-shared .htt-shell { width: calc(100% - 28px); }
  .htt-site-header .htt-header-row { min-height: 68px; gap: 12px; }
  .admin-bar .htt-site-header { top: 46px; }
  .htt-site-header .htt-nav { display: none; }
  .htt-site-header .htt-menu { display: block; }
}
/* HTT-SHARED:END */
.wp-site-blocks > main.wp-block-group, .wp-site-blocks > * + * { margin-block-start: 0; }
.htt-values { margin-block: 0 !important; }
.wp-site-blocks main.wp-block-group > * { margin-block: 0 !important; }
.htt-hero, .htt-values, .htt-section { margin-block: 0 !important; }

/* Batch 2 photos (owner-approved HTT-IMAGES-1101): real img elements with alt text, 3:2 */
.htt-photo { margin: 0; }
.htt-photo img, .htt-value-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--htt-radius-card); }
.htt-photo img { box-shadow: var(--htt-shadow); }
.htt-photo-one, .htt-photo-pair { margin: 1.75rem 0; }
.htt-photo-one { max-width: 640px; }
.htt-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.htt-value-photo { margin: -1.75rem -1.75rem 1.1rem; }
.htt-value-photo img { border-radius: 0; }
@media (max-width: 767px) { .htt-photo-pair { grid-template-columns: 1fr; } }
