/* home13: the front-door hero on / (partials/home_hero.html). Built on design/tokens.css + board.css: navy, amber for
   "shut", Archivo condensed for display, 1px rules, no shadows, no gradients. The live board continues right below.
   Collapsed ("Hide intro", <html data-kt-intro="min"> set before first paint by app.THEME_JS): one line. */
.hh { --hh-amber: var(--amber, #F5B041); --hh-navy: var(--navy, #0F1B2D);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  padding: 22px 0 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .hh { grid-template-columns: minmax(0, 12fr) minmax(0, 11fr); gap: clamp(28px, 3.2vw, 56px); align-items: center;
    padding: 30px 0 28px; }
}
.hh [hidden] { display: none !important; }
.hh-main { min-width: 0; }

/* ---- words ---------------------------------------------------------------------------------------------------------- */
.hh-kicker { display: flex; align-items: center; gap: 8px; font-size: var(--fs-12); font-weight: 600; color: var(--text-dim);
  max-width: calc(100% - 96px); }
.hh-kicker::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--hh-amber); }
.hh-h1 { margin: 10px 0 0; font-stretch: 75%; font-weight: 800; letter-spacing: -0.015em; line-height: 0.98;
  font-size: clamp(1.875rem, 1.05rem + 2.4vw, 3.25rem); color: var(--text); text-wrap: balance; max-width: 21ch; }
.hh-h1__em { color: var(--closed); }
.hh-lede { margin: 14px 0 0; font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); line-height: 1.55; color: var(--text-dim);
  max-width: 54ch; }

.hh-props { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px;
  max-width: 640px; }
.hh-props li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: var(--fs-13); line-height: 1.45; color: var(--text-dim); }
.hh-props li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.hh-props b { font-weight: 650; color: var(--text); }
.hh-props i { font-style: normal; }
.hh-props svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--closed); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---- calls to action -------------------------------------------------------------------------------------------------- */
.hh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.hh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: var(--radius-s); background: var(--hh-amber); color: var(--hh-navy); border: 1px solid var(--hh-amber);
  font-size: 0.9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hh-btn:hover { background: color-mix(in srgb, var(--hh-amber) 86%, #fff); text-decoration: none; }
.hh-alerts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.hh-alerts__l { font-size: var(--fs-13); color: var(--text-dim); margin-right: 2px; }
.hh-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text); font-size: var(--fs-13); font-weight: 600;
  text-decoration: none; white-space: nowrap; }
.hh-chip svg { width: 15px; height: 15px; flex: none; }
.hh-chip:hover { border-color: var(--closed); text-decoration: none; }
/* No terminal for this visitor (visitor.json said so): the Telegram alerts become the primary button */
.hh.is-data .hh-chip[data-alert="tg"] { background: var(--hh-amber); border-color: var(--hh-amber); color: var(--hh-navy); }
.hh.is-data .hh-chip[data-alert="tg"]:hover { background: color-mix(in srgb, var(--hh-amber) 86%, #fff); }
.hh-quiet { font-size: var(--fs-13); color: var(--text-dim); text-underline-offset: 4px; }
.hh-quiet:hover { color: var(--text); }
.hh-blocked { margin: 12px 0 0; padding: 2px 0 2px 10px; border-left: 2px solid var(--closed); font-size: var(--fs-13);
  line-height: 1.5; color: var(--text-dim); max-width: 60ch; }

/* ---- agentsui15: "Works with your AI assistant" (the MCP URL, copyable, and /ai) -------------------------------------- */
.hh-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 0; font-size: var(--fs-13); line-height: 1.4;
  color: var(--text-dim); max-width: 720px; }
.hh-ai svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--closed); stroke-width: 1.4; stroke-linejoin: round; }
.hh-ai__l { color: var(--text); font-weight: 600; }
.hh-ai__url { padding: 2px 7px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-12); overflow-wrap: anywhere; }
.hh-ai__copy { min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent;
  color: var(--text); font: inherit; font-size: var(--fs-12); font-weight: 600; cursor: pointer; }
.hh-ai__copy:hover { border-color: var(--closed); }
.hh-ai__copy.is-copied { color: var(--up); border-color: var(--up); }
.hh-ai__go { color: var(--text-dim); text-underline-offset: 3px; }
.hh-ai__go:hover { color: var(--text); }

/* ---- live figures (the board's own source) ---------------------------------------------------------------------------- */
.hh-live { display: flex; flex-wrap: wrap; margin: 20px 0 0; padding: 0; }
.hh-live > div { display: flex; flex-direction: column; padding: 0 22px 0 0; margin: 0 22px 0 0; border-right: 1px solid var(--line); }
.hh-live > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hh-live dt { order: 2; font-size: var(--fs-12); color: var(--text-dim); }
.hh-live dd { order: 1; margin: 0; font-stretch: 75%; font-weight: 750; font-size: 1.75rem; line-height: 1.05; color: var(--text); }
.hh-fine { margin: 12px 0 0; font-size: var(--fs-12); line-height: 1.5; color: var(--text-dim); max-width: 64ch; }

/* ---- the terminal, and the intro video (click to play) ---------------------------------------------------------------- */
.hh-shot { margin: 0; min-width: 0; }
.hh-shot__frame { position: relative; border: 1px solid var(--line); border-top: 2px solid var(--hh-amber);
  border-radius: var(--radius-m); overflow: hidden; background: var(--surface); aspect-ratio: 1200 / 750; }
.hh-shot__frame picture, .hh-shot__img { display: block; width: 100%; height: 100%; }
.hh-shot__img { object-fit: cover; object-position: left top; }
.hh-shot figcaption { margin-top: 8px; font-size: var(--fs-12); line-height: 1.45; color: var(--text-dim); }
.hh-watch { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 0 16px 0 10px; border-radius: 999px; background: color-mix(in srgb, #0B1422 88%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.16); color: #F3F6FA; font-size: var(--fs-13); font-weight: 600; text-decoration: none; }
.hh-watch svg { width: 24px; height: 24px; flex: none; }
.hh-watch svg circle { fill: var(--hh-amber); stroke: none; }
.hh-watch svg path { fill: var(--hh-navy); }
.hh-watch__dur { color: rgba(243, 246, 250, 0.7); font-weight: 500; }
.hh-watch:hover { background: #0B1422; border-color: var(--hh-amber); text-decoration: none; }
.hh-shot.is-playing .hh-shot__frame { aspect-ratio: 16 / 9; background: #000; }
.hh-shot.is-playing picture, .hh-shot.is-playing .hh-watch { display: none; }
.hh-video { margin: 0; max-width: none; }
.hh-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.hh-shot.is-playing > figcaption { display: none; }
.hh-video figcaption { margin-top: 8px; font-size: var(--fs-12); color: var(--text-dim); }

/* ---- hide / show intro ------------------------------------------------------------------------------------------------ */
.hh-toggle { position: absolute; top: 18px; right: 0; min-height: 32px; padding: 0 10px; border: 1px solid transparent;
  border-radius: var(--radius-s); background: transparent; color: var(--text-dim); font: inherit; font-size: var(--fs-12);
  cursor: pointer; }
.hh-toggle:hover { color: var(--text); border-color: var(--line); }
.hh-toggle__show { display: none; }
@media (min-width: 960px) { .hh-toggle { top: 22px; } }

:root[data-kt-intro="min"] .hh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0;
  margin-bottom: 2px; }
:root[data-kt-intro="min"] .hh-main { display: contents; }
:root[data-kt-intro="min"] .hh-kicker, :root[data-kt-intro="min"] .hh-lede, :root[data-kt-intro="min"] .hh-props,
:root[data-kt-intro="min"] .hh-live, :root[data-kt-intro="min"] .hh-fine, :root[data-kt-intro="min"] .hh-shot,
:root[data-kt-intro="min"] .hh-alerts__l, :root[data-kt-intro="min"] .hh-quiet,
:root[data-kt-intro="min"] .hh-blocked, :root[data-kt-intro="min"] .hh-ai { display: none !important; }
:root[data-kt-intro="min"] .hh-h1 { margin: 0; font-size: var(--fs-16); font-stretch: 100%; font-weight: 650;
  letter-spacing: 0; line-height: 1.35; max-width: none; flex: 1 1 320px; }
:root[data-kt-intro="min"] .hh-cta { margin: 0; gap: 8px; }
:root[data-kt-intro="min"] .hh-btn { min-height: 34px; padding: 0 14px; font-size: var(--fs-13); }
:root[data-kt-intro="min"] .hh-chip { min-height: 34px; padding: 0 11px; }
:root[data-kt-intro="min"] .hh-toggle { position: static; }
:root[data-kt-intro="min"] .hh-toggle__hide { display: none; }
:root[data-kt-intro="min"] .hh-toggle__show { display: inline; }

/* ---- below the desktop layout: no screenshot; the intro video is one button ------------------------------------------- */
@media (max-width: 959.98px) {
  .hh-shot__frame { border: 0; border-radius: 0; background: transparent; aspect-ratio: auto; overflow: visible; }
  .hh-shot__frame picture, .hh-shot figcaption { display: none; }
  .hh-watch { position: static; background: transparent; color: var(--text); border-color: var(--line); }
  .hh-watch__dur { color: var(--text-dim); }
  .hh-watch:hover { background: transparent; }
  .hh-shot.is-playing .hh-shot__frame { overflow: hidden; border-radius: var(--radius-s); }
  .hh { gap: 14px; }
}
@media (max-width: 639px) {
  .hh { padding: 16px 0 18px; }
  .hh-lede__more, .hh-props .hh-more { display: none; }
  .hh-props { gap: 0 14px; margin-top: 14px; }
  .hh-props li { padding: 8px 0; }
  .hh-cta { gap: 10px 12px; margin-top: 16px; }
  .hh-btn { flex: 1 1 100%; }
  .hh-live { margin-top: 16px; }
  .hh-ai { margin-top: 12px; }
  .hh-ai__url, .hh-ai__copy { display: none; }     /* phones: one short line; /ai has the URL and copy buttons */
  .hh-live > div { padding-right: 14px; margin-right: 14px; }
  .hh-live dd { font-size: 1.5rem; }
  .hh-toggle { top: 10px; }
  :root[data-kt-intro="min"] .hh-h1 { font-size: var(--fs-14); flex-basis: 100%; padding-right: 0; }
  :root[data-kt-intro="min"] .hh-btn { flex: 0 0 auto; }
  :root[data-kt-intro="min"] .hh-alerts { display: none; }
}
@media (max-width: 379px) { .hh-props { grid-template-columns: 1fr; } }

/* the live board's anchor sits below the sticky header */
#board-live { scroll-margin-top: calc(var(--head-h, 48px) + 8px); }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
