/* Shared layer for every page (spec 015 · FR-7, spec 016 · FR-5–FR-8).
 * Loaded right after remix.css on every page. On 7d the later layers remix-2…5 still
 * come after it, so 7d keeps its own look; every value here is 7d's value, taken
 * from how 7d draws (review-013/01, §2). The colour tokens themselves stay in
 * colors_and_type.css and remix.css (tests read them there); this file adds the
 * rhythm, the type scale, the component recipes and the shared header and footer.
 * Raw colours are allowed only in the :root block below (a token file).
 */

/* ── 1 · TOKENS ─────────────────────────────────────────── */
:root {
  /* 7d's lines: hairline 0.07, strong 0.15 (remix-3-premium.css) */
  --hairline:        rgba(246, 244, 240, 0.07);
  --hairline-strong: rgba(246, 244, 240, 0.15);
  /* the readable small red under a second name some rules use (bug: it never existed) */
  --tv-accent-text:  var(--accent-text);
  /* white label on the bright red: 4.8:1 (spec 012 · FR-1) */
  --on-accent:       #FFFFFF;
  /* paper colours, only for printing a lesson */
  --paper:           #FFFFFF;
  --paper-ink:       #111111;
  --paper-ink-soft:  #333333;
  --paper-line:      #CCCCCC;
  /* the opaque end of a mask-image (only its alpha counts) */
  --mask:            #000000;

  /* rhythm: section breathing, head → content, side margins, widths */
  --sect-y:    clamp(72px, 11vw, 152px);
  --head-gap:  clamp(36px, 6vw, 72px);
  --container: 1240px;
  --measure:   62ch;

  /* type scale (7d): H1 of a first screen, H2 of a section, H3 of a card, running text */
  --h1-size:   clamp(34px, 3.4vw, 50px);
  --h2-size:   clamp(38px, 9vw, 92px);
  --h2-lh:     0.94;
  --h3-size:   clamp(20px, 4.6vw, 26px);
  --text-size: 15.5px;
  --text-lh:   1.7;

  /* one smoky-glass card (spec 014): tint + blur from remix.css, one edge, one shadow */
  --glass-border:      var(--hairline-strong);   /* the 7d glass edge (tv-hero-offer, tv-sticky) */
  --nav-tint:          rgba(6, 6, 7, 0.72);      /* the 7d header glass (remix-2.css .tv-nav) */
  --card-shadow:       var(--glass-edge), 0 8px 24px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: var(--glass-edge), 0 12px 32px rgba(0, 0, 0, 0.45);
  --card-edge:         3px;

  /* keyboard focus: 2 px red, 3 px away */
  --focus-ring:   2px solid var(--accent);
  --focus-offset: 3px;

  /* texture strengths (7d): grain 0.038, red ink 0.028 */
  --grain: 0.038;
  --ink:   0.028;
}
@media (max-width: 719px) {
  :root { --safe-x: 20px; --sect-y: 64px; --head-gap: 32px; --h2-size: clamp(30px, 9vw, 46px); --h1-size: clamp(26px, 8vw, 38px); }
}
@media (min-width: 900px) {
  :root { --sect-y: clamp(130px, 13vw, 200px); }
}

/* ── 2 · TEXTURE — grain felt, not seen ─────────────────── */
body::before { opacity: var(--grain) !important; }
body::after  { opacity: var(--ink); }

/* ── 3 · FOCUS — visible, on-brand, the same everywhere ─── */
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* ── 4 · TYPE — headings, labels, running text ──────────── */
.tv-h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: var(--h1-size); line-height: 1.02; letter-spacing: -0.005em; color: var(--fg);
}
/* the section number «001», a 28 px line, then the eyebrow (7d .tv-sh) */
.tv-sec-num {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: 0.22em; font-variant-numeric: tabular-nums; color: var(--accent-text);
}
.tv-sec-num::after { content: ''; width: 28px; height: 1px; background: var(--hairline-strong); }
.tv-text { font-family: var(--font-body); font-size: var(--text-size); line-height: var(--text-lh); color: var(--fg-muted); max-width: var(--measure); }

/* ── 5 · SECTION — rhythm and the line between sections ── */
.tv-sec { padding-top: var(--sect-y); border-top: 1px solid var(--hairline); }
.tv-divider { height: 1px; border: 0; margin: 0; background: var(--hairline); }
.tv-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--safe-x); padding-right: var(--safe-x); box-sizing: border-box; }

/* ── 6 · CARD — Dark Smoked Liquid Glass recipe ──────────── */
.tv-card {
  position: relative;
  overflow: hidden;
  background: var(--liquid-bg, var(--glass-tint));
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  box-shadow: var(--liquid-rim, var(--glass-edge)), var(--liquid-shadow, var(--card-shadow));
  transition: border-color 420ms var(--ease-liquid, var(--ease-power)), transform 420ms var(--ease-liquid, var(--ease-power)), box-shadow 420ms var(--ease-liquid, var(--ease-power));
}
.tv-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--liquid-sheen, none); opacity: 0.45;
  transition: opacity 420ms var(--ease-liquid, var(--ease-power));
}
.tv-card--edge-top  { border-top: var(--card-edge) solid var(--accent); }
.tv-card--edge-left { border-left: var(--card-edge) solid var(--accent); }
.tv-card--lift:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--liquid-rim-active, var(--glass-edge)), var(--liquid-shadow, var(--card-shadow-hover)); }
.tv-card--lift:hover::after { opacity: 0.85; }

/* ── 7 · LISTS — a 5 px red square, no browser marker ───── */
.tv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tv-list > li { position: relative; padding-left: 20px; }
.tv-list > li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; background: var(--accent); }

/* ── 8 · HEADER — section links, actions, the menu button ─ */
/* The bar itself (.pg-nav, .pg-logo, .pg-nav-cta) stays in pages.css, which every
   page but 7d loads; these are the parts home, 28d and the lessons share with it. */
.pg-nav-links { display: none; align-items: center; gap: clamp(14px, 2vw, 24px); }
.pg-nav-links a {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; align-items: center;
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); text-decoration: none;
  transition: color 180ms ease;
}
.pg-nav-links a:hover { color: var(--fg); }
/* the numbers as on 7d: quiet grey, 5.3:1 on the header glass (spec 016 · FR-8) */
.pg-nav-links .idx { font-family: var(--font-body); font-size: 10px; font-weight: 500; color: var(--fg-faint); }
.pg-nav-actions { display: inline-flex; align-items: center; gap: 10px; }
.pg-nav-link {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  padding: 0 13px;
  border: 1px solid var(--hairline-strong); border-radius: 0;
  transition: color 180ms ease, border-color 180ms ease;
}
.pg-nav-link:hover { border-color: var(--fg-faint); }
/* the link's own display would beat .tv-hide-narrow (styles.css, 900 px): keep that breakpoint */
.pg-nav-link.tv-hide-narrow { display: none; }
@media (min-width: 900px) { .pg-nav-link.tv-hide-narrow { display: inline-flex; } }

/* the menu button and the drawer below 920 px (7d .tv-burger / .tv-drawer) */
.pg-burger {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0; background: transparent; border: 1px solid var(--hairline-strong); border-radius: 0;
  cursor: pointer;
}
.pg-burger span { width: 16px; height: 1px; background: var(--fg); transition: transform 240ms var(--ease-power), opacity 240ms; }
.pg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.pg-drawer {
  position: fixed; inset: 0; z-index: 19;
  display: flex; flex-direction: column;
  padding: 128px var(--safe-x) 48px; box-sizing: border-box;
  background: var(--glass-tint);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  overflow-y: auto; overscroll-behavior: contain;
}
.pg-drawer ol { list-style: none; margin: 0; padding: 0; }
.pg-drawer li { border-bottom: 1px solid var(--hairline); }
.pg-drawer a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 8vw, 40px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--fg); text-decoration: none;
}
.pg-drawer a .num { font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: 0.28em; color: var(--fg-faint); }
@media (max-width: 480px) { .pg-nav-actions { gap: 8px; } }
@media (min-width: 920px) {
  .pg-nav-links { display: flex; }
  .pg-burger, .pg-drawer { display: none !important; }
}

/* ── 9 · ON-AIR STRIP — text colours (its bar lives in pages.css / styles.css) ── */
.tv-nav-strip .live-tag { color: var(--accent-text); font-weight: 600; }
.tv-nav-strip .clock-val { font-variant-numeric: tabular-nums; color: var(--fg-muted); }
.tv-nav-strip .tv-strip-city { color: var(--fg-faint); }
.tv-nav-strip .tv-strip-l { display: inline-flex; align-items: center; gap: 10px; }

/* ── 10 · FOOTER — one component on every page ─────────── */
.tv-footer {
  padding: 56px clamp(20px, 5vw, 40px) calc(36px + env(safe-area-inset-bottom));
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  color: var(--fg);
  box-sizing: border-box; width: 100%;
  position: relative; z-index: 10;
}
.tv-footer-top { display: flex; flex-direction: column; gap: 36px; max-width: 1200px; margin: 0 auto; }
.tv-footer-top .brand > div:first-child { display: flex; align-items: center; gap: 12px; }
.tv-footer-name {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg);
}
.tv-footer-top .brand .tv-overline {
  margin-top: 4px; font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-faint);
}
.tv-footer-top .brand p {
  margin: 18px 0 0; max-width: 44ch;
  font-family: var(--font-body); font-size: 13px; line-height: 1.7; color: var(--fg-muted);
}
.tv-footer-onair {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-faint);
}
.tv-nav-strip .dot, .tv-footer-onair .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
  animation: tvPulse 1.6s ease-in-out infinite;
}
.tv-footer-onair .live-tag { color: var(--accent-text); font-weight: 700; letter-spacing: 0.16em; }
.tv-footer-onair .clock-val { color: var(--fg-muted); font-family: var(--font-display); font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.tv-footer-cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tv-footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .tv-footer-top { flex-direction: row; gap: 56px; }
  .tv-footer-top .brand { flex: 1.3; }
  .tv-footer-cols { flex: 2; grid-template-columns: repeat(3, 1fr); }
}
.tv-footer-cols .tv-footer-h {
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.30em; text-transform: uppercase; color: var(--fg-faint);
}
.tv-footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tv-footer-cols a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--fg-muted); text-decoration: none;
  transition: color 200ms ease;
}
.tv-footer-cols a:hover { color: var(--fg); }
.tv-footer-disclaimer {
  max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--hairline);
  font-family: var(--font-body); font-size: 11px; line-height: 1.55; color: var(--fg-faint);
}
.tv-footer-disclaimer p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.tv-footer-disclaimer strong { color: var(--fg-muted); }
.tv-footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-faint);
}
.tv-footer-bottom .tv-footer-set { color: var(--fg-muted); }
@media (min-width: 720px) {
  .tv-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── 11 · 3D STAGE (spec 015 · FR-9) ────────────────────── */
/* The stage sits behind the hero content and never takes clicks. Until the
 * 3D starts — and for ever with reduced motion or no WebGL — it shows a
 * still image of the same strings (FR-9). */
.tv-3d-stage {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 45%, rgba(230, 0, 18, 0.10), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(230, 0, 18, 0.16) 46px 47px, transparent 47px 92px);
  -webkit-mask-image: radial-gradient(75% 70% at 65% 50%, var(--mask) 35%, transparent 80%);
          mask-image: radial-gradient(75% 70% at 65% 50%, var(--mask) 35%, transparent 80%);
}
.tv-3d-stage.is-live { background: radial-gradient(60% 50% at 70% 45%, rgba(230, 0, 18, 0.08), transparent 70%); }
.tv-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tv-3d-host { position: relative; isolation: isolate; }
.tv-3d-host > :not(.tv-3d-stage) { position: relative; z-index: 1; }

/* 7d: the landing already has its own string wall inside the page, which would hide a stage
 * behind it. So on 7d the stage sits above the page but shows only the open band under the
 * hero, where the voice wave runs; it never covers text and never takes clicks. */
.tv-3d-top {
  position: absolute; top: 0; left: 0; right: 0; bottom: auto; height: 100vh; height: 100svh; z-index: 2;
  background: none;
  -webkit-mask-image: linear-gradient(transparent 80%, var(--mask) 88%, var(--mask) 95%, transparent);
          mask-image: linear-gradient(transparent 80%, var(--mask) 88%, var(--mask) 95%, transparent);
}
.tv-3d-top.is-live { background: none; }
/* On phones the 7d first screen is filled to the bottom with the price and buy button,
 * so there is no open band: the wave is not drawn there (the button stays clear). */
@media (max-width: 899px) { .tv-3d-top { display: none; } }
/* The stage sits above the page, so it steps aside while the purchase window is open. */
body:has(.tv-popup-overlay) .tv-3d-top { visibility: hidden; }

/* ── Consent banner, EU/EEA only (spec 016 · FR-21; S3 tracking) ──────────
 * tv-pixel.js adds it for visitors marked tv_eu=1 until they answer, after
 * their first scroll, so it never covers the 7d first-screen buy button. A
 * low strip at the bottom: one line of text, the two buttons in one row. The 7d sticky
 * buy bar rides above it (--tv-consent-h from the script); it steps aside
 * while the purchase window is open. Focus ring from :focus-visible above. */
.tv-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  padding: 8px var(--safe-x) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  border-top: 1px solid var(--hairline-strong);
  font-family: var(--font-body); font-size: 12px; line-height: 1.35; color: var(--fg-muted);
}
.tv-consent__text { margin: 0; flex: 1 1 100%; text-align: center; }
.tv-consent__text a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.tv-consent__actions { display: flex; gap: 8px; flex: 1 1 100%; justify-content: center; }
.tv-consent__btn {
  flex: 0 1 170px; min-height: 44px; padding: 0 12px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--fg);
  border: 1px solid var(--hairline-strong); border-radius: 0;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.tv-consent__btn--yes { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body:has(.tv-consent) .tv-sticky { bottom: var(--tv-consent-h, 0px); }
body:has(.tv-popup-overlay) .tv-consent { display: none; }
@media (min-width: 640px) { .tv-consent__text, .tv-consent__actions { flex: 0 1 auto; } }

/* ── Program Architecture Explorer (shared across Main, 7D & 28D) ── */
@keyframes hmPanelEnter {
  from { opacity: 0.01; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hmWavePulse {
  0%, 100% { transform: scaleY(var(--h-min, 0.32)); opacity: 0.55; }
  50%      { transform: scaleY(var(--h-max, 0.92)); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hm-arch__panel:not([hidden]) {
    animation: hmPanelEnter 320ms var(--ease-liquid, cubic-bezier(0.16, 1, 0.3, 1)) both;
  }
  .hm-arch__bars i {
    animation: hmWavePulse calc(1.6s + var(--d, 0s)) ease-in-out infinite alternate;
  }
}

.hm-arch {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--liquid-bg, var(--glass-tint));
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-border);
  border-top: var(--card-edge, 3px) solid var(--accent);
  border-radius: 0;
  box-shadow: var(--liquid-rim, var(--glass-edge)), var(--liquid-shadow, var(--card-shadow));
}
.tv-program .hm-arch { margin: 26px 0 0; }
.atl-sale .hm-arch { margin: 18px 0 0; }
.hm-arch::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 18%),
    color-mix(in srgb, var(--accent) 16%, transparent) 0%,
    rgba(255, 255, 255, 0.05) 32%,
    transparent 70%
  );
  opacity: 0.8;
  transition: opacity 260ms ease;
}
.hm-arch > * { position: relative; z-index: 1; }

.hm-arch__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-strong);
}
.hm-arch__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hm-arch__status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hm-arch__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
@media (min-width: 720px) {
  .hm-arch__tabs { width: auto; min-width: 390px; }
}
.hm-arch__tabs--5 {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .hm-arch__tabs--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-arch__tabs--5 .hm-arch__tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hm-arch__tabs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hm-arch__tabs--5 .hm-arch__tab:last-child:nth-child(odd) { grid-column: auto; }
}
.hm-arch__tab {
  min-height: 44px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: rgba(6, 6, 7, 0.55);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.hm-arch__tab:hover { color: var(--fg); border-color: var(--fg-faint); }
.hm-arch__tab[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--fg);
  box-shadow: inset 0 2px 0 0 var(--accent);
}
@media (max-width: 480px) {
  .hm-arch__tabs { grid-template-columns: 1fr; }
  .hm-arch__tab { justify-content: flex-start; padding: 10px 14px; }
}

.hm-arch__grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
@media (min-width: 860px) {
  .hm-arch__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 26px; }
}

.hm-arch__heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--fg);
}
.hm-arch .hm-arch__intro {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 58ch;
}

.hm-arch__days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
@media (min-width: 600px) {
  .hm-arch__days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hm-arch__days li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: rgba(6, 6, 7, 0.56);
  border: 1px solid var(--hairline);
}
.hm-arch__days li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hm-arch__days--pick li {
  display: block;
  padding: 0;
  background: none;
  border: 0;
}
.hm-arch__day {
  width: 100%;
  height: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  background: rgba(6, 6, 7, 0.56);
  border: 1px solid var(--hairline);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease;
}
.hm-arch__day:hover { border-color: var(--fg-faint); }
.hm-arch__day[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 0 var(--accent);
}
.hm-arch__days .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.hm-arch__days strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 3px;
}
.hm-arch .hm-arch__days span {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-muted);
}
.hm-arch .hm-arch__days .hm-arch__day-out {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--hairline);
  font-size: 13px;
  color: var(--fg);
}

.hm-arch__weeks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
@media (min-width: 600px) {
  .hm-arch__weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hm-arch__wbtn {
  min-height: 44px;
  padding: 10px 10px;
  text-align: left;
  background: rgba(6, 6, 7, 0.56);
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  cursor: pointer;
  color: var(--fg-muted);
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}
.hm-arch__wbtn:hover { border-color: var(--fg-faint); color: var(--fg); }
.hm-arch__wbtn[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--fg);
}
.hm-arch__wbtn b {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hm-arch__wbtn span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: inherit;
}

.hm-arch__wcard {
  margin-top: 14px;
  padding: 18px;
  background: rgba(6, 6, 7, 0.62);
  border: 1px solid var(--hairline-strong);
  border-left: var(--card-edge, 3px) solid var(--accent);
}
.hm-arch__wcard h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg);
}
.hm-arch .hm-arch__wcard p {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.hm-arch__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hm-arch__tags span {
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-strong);
}

.hm-arch__telemetry {
  padding: 18px;
  background: rgba(6, 6, 7, 0.68);
  border: 1px solid var(--hairline-strong);
  display: grid;
  gap: 14px;
}
.hm-arch__bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 44px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.hm-arch__bars i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: bottom;
  transform: scaleY(var(--h-max, 0.6));
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 30%, transparent) 100%);
}
.hm-arch__focus {
  padding: 14px;
  background: rgba(6, 6, 7, 0.6);
  border: 1px solid var(--hairline);
  border-left: var(--card-edge, 3px) solid var(--accent);
  display: grid;
  gap: 8px;
}
.hm-arch__focus-kicker {
  margin: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hm-arch__focus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--fg);
}
.hm-arch__focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.hm-arch__focus-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-muted);
}
.hm-arch__focus-list .b {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-text);
}
.hm-arch .hm-arch__focus-out {
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg);
}
.hm-arch__specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.hm-arch__specs dt {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 2px;
}
.hm-arch .hm-arch__specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}
.hm-arch__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.hm-arch .hm-arch__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
}
.hm-arch .hm-arch__note {
  margin: -4px 0 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-muted);
}
@media (min-width: 641px) {
  .hm-arch__cta .tv-btn { min-height: 46px; padding: 12px 18px; font-size: 13px; letter-spacing: 0.08em; }
}
@media (max-width: 480px) {
  .hm-arch__cta .pg-btn { width: 100%; }
}
