/* hyperai.energy - site design system (v2, 2026-10-01).
 *
 * Light, editorial, one typeface. Replaces the v1 look (cream paper, Fraunces
 * serif headings, JetBrains Mono eyebrows, rust accent), which is a pattern
 * commonly produced by AI page generators and did not read as this site's own.
 *
 * Everything is scoped under .hx- classes or the site-* custom elements, so the
 * stylesheet can be injected into an application page without restyling it.
 * The only globals are custom properties prefixed --hx-.
 */

:root {
  --hx-bg: #FFFFFF;
  --hx-surface: #F5F7F8;
  --hx-surface-2: #EDF1F3;
  --hx-card: #FFFFFF;
  --hx-ink: #101828;
  --hx-ink-2: #344054;
  --hx-muted: #5D6B7A;
  --hx-line: #E2E7EB;
  --hx-line-strong: #CBD3DA;
  --hx-accent: #0B7A63;       /* deep green-teal: energy without the amber */
  --hx-accent-ink: #075C4A;
  --hx-accent-soft: #E3F3EE;
  --hx-accent-2: #2F5BD3;     /* secondary: links inside prose, focus */
  --hx-warn: #B42318;
  --hx-radius: 12px;
  --hx-radius-sm: 8px;
  --hx-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
  --hx-shadow-lg: 0 12px 32px rgba(16,24,40,.12);
  --hx-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hx-max: 1200px;
  /* v1 names kept as aliases so injected pages and older markup still resolve */
  --hx-navy: var(--hx-ink);
  --hx-paper: var(--hx-surface);
  --hx-grid: var(--hx-line);
  --hx-sans: var(--hx-font);
  --hx-serif: var(--hx-font);
  --hx-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---- header ------------------------------------------------------------ */
site-header { display: block; }
.hx-bar {
  background: var(--hx-bg); color: var(--hx-ink); font-family: var(--hx-font);
  border-bottom: 1px solid var(--hx-line); position: relative; z-index: 50;
  -webkit-font-smoothing: antialiased;
}
.hx-bar-inner {
  max-width: var(--hx-max); margin: 0 auto; padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 18px;
}
.hx-drawer-btn {
  width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer; color: var(--hx-ink);
}
.hx-drawer-btn:hover { background: var(--hx-surface); }
.hx-drawer-btn svg { width: 22px; height: 22px; }
.hx-logo {
  font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--hx-ink);
  text-decoration: none; white-space: nowrap;
}
.hx-logo span { color: var(--hx-accent); }
.hx-nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.hx-nav a {
  color: var(--hx-ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap;
  padding: 8px 12px; border-radius: 8px;
}
.hx-nav a:hover { background: var(--hx-surface); color: var(--hx-ink); }
.hx-nav a[aria-current="page"] { color: var(--hx-accent-ink); background: var(--hx-accent-soft); }
.hx-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hx-search-btn {
  display: flex; align-items: center; gap: 8px; background: var(--hx-surface);
  border: 1px solid var(--hx-line); color: var(--hx-muted); border-radius: 999px;
  padding: 7px 12px; font: 500 13.5px var(--hx-font); cursor: pointer; min-width: 170px;
}
.hx-search-btn:hover { border-color: var(--hx-line-strong); color: var(--hx-ink); }
.hx-search-btn svg { width: 15px; height: 15px; }
.hx-search-btn kbd {
  margin-left: auto; font: 500 11px var(--hx-font); border: 1px solid var(--hx-line);
  border-radius: 5px; padding: 1px 5px; color: var(--hx-muted); background: #fff;
}
.hx-auth { font-size: 14px; color: var(--hx-ink-2); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.hx-auth a, .hx-auth button {
  color: var(--hx-ink); text-decoration: none; background: none; border: 0; font: 500 14px var(--hx-font);
  cursor: pointer; padding: 8px 4px;
}
.hx-auth a:hover, .hx-auth button:hover { color: var(--hx-accent-ink); }
.hx-auth .hx-email { color: var(--hx-muted); font-size: 13px; }
.hx-btn, .hx-auth a.hx-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--hx-accent); color: #fff;
  border: 0; border-radius: 999px; padding: 9px 16px; font: 600 14px var(--hx-font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.hx-btn:hover, .hx-auth a.hx-btn:hover { background: var(--hx-accent-ink); color: #fff; }
.hx-btn.hx-ghost { background: #fff; color: var(--hx-ink); border: 1px solid var(--hx-line-strong); }
.hx-btn.hx-ghost:hover { border-color: var(--hx-ink); color: var(--hx-ink); background: #fff; }
.hx-bar :focus-visible, .hx-foot :focus-visible, .hx-page :focus-visible, .hx-drawer :focus-visible {
  outline: 2px solid var(--hx-accent-2); outline-offset: 2px;
}

@media (max-width: 900px) {
  .hx-nav { display: none; }
  .hx-search-btn { min-width: 0; }
  .hx-search-btn .hx-label, .hx-search-btn kbd { display: none; }
  .hx-auth .hx-email { display: none; }
}
@media (max-width: 520px) {
  .hx-bar-inner { gap: 10px; padding: 0 14px; }
  .hx-auth a.hx-signin { display: none; }
}

/* ---- isolation from host pages ------------------------------------------
   Injected pages bring their own global CSS. Two kinds leaked in:
   - `*{box-sizing:border-box}` made the 1200px bar include its 20px padding,
     so the menu button and logo sat 20px further in than on the home page;
   - bare `nav{position:fixed...}` / `footer{display:flex...}` rules restyled
     the chrome's own nav and footer.
   Pin what the chrome depends on, so it renders the same on every page. */
.hx-bar-inner, .hx-foot-inner { box-sizing: content-box; }
.hx-bar nav.hx-nav, .hx-foot nav {
  position: static; inset: auto; height: auto; width: auto; padding: 0; margin: 0;
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  z-index: auto; transform: none; justify-content: flex-start;
}
footer.hx-foot { display: block; padding: 0; margin: 0; gap: 0; max-width: none; }
.hx-bar, .hx-foot { line-height: 1.5; text-align: left; }
.hx-bar .hx-drawer-btn { padding: 0; min-width: 0; }
.hx-bar button, .hx-drawer button { width: auto; letter-spacing: normal; text-transform: none; }
/* Buttons styled as links inside prose keep their button colours. */
.hx-prose a.hx-btn, .hx-page main a.hx-btn { color: #fff; text-decoration: none; }
.hx-prose a.hx-btn.hx-ghost, .hx-page main a.hx-btn.hx-ghost { color: var(--hx-ink); }

/* ---- left drawer (site index) ------------------------------------------ */
.hx-drawer-scrim {
  position: fixed; inset: 0; background: rgba(16,24,40,.35); opacity: 0; pointer-events: none;
  transition: opacity .2s ease; z-index: 900;
}
.hx-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--hx-bg);
  box-shadow: var(--hx-shadow-lg); transform: translateX(-102%); transition: transform .22s ease;
  z-index: 901; display: flex; flex-direction: column; font-family: var(--hx-font); color: var(--hx-ink);
}
.hx-drawer-open .hx-drawer-scrim { opacity: 1; pointer-events: auto; }
.hx-drawer-open .hx-drawer { transform: none; }
.hx-drawer-head {
  display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--hx-line); flex: none;
}
.hx-drawer-close { width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 22px; color: var(--hx-muted); }
.hx-drawer-close:hover { background: var(--hx-surface); color: var(--hx-ink); }
.hx-drawer-body { overflow-y: auto; padding: 12px 12px 28px; }
.hx-drawer-group { padding: 10px 8px 6px; }
.hx-drawer .hx-drawer-group h2 {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); margin: 6px 8px 6px; line-height: 1.4;
}
.hx-drawer-body a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; border-radius: 8px;
  color: var(--hx-ink); text-decoration: none; font-size: 15px;
}
.hx-drawer-body a:hover { background: var(--hx-surface); }
.hx-drawer-body a[aria-current="page"] { background: var(--hx-accent-soft); color: var(--hx-accent-ink); font-weight: 600; }
.hx-drawer .hx-count { font-size: 12px; color: var(--hx-muted); background: var(--hx-surface); border-radius: 999px; padding: 1px 8px; }
.hx-drawer .hx-count.zero { opacity: .55; }
.hx-drawer-links { border-top: 1px solid var(--hx-line); margin-top: 8px; padding-top: 8px; }
@media (prefers-reduced-motion: reduce) { .hx-drawer, .hx-drawer-scrim { transition: none; } }

/* ---- search dialog ------------------------------------------------------ */
.hx-search {
  position: fixed; inset: 0; background: rgba(16,24,40,.35); display: none;
  align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; z-index: 1000; font-family: var(--hx-font);
}
.hx-search.open { display: flex; }
.hx-search-panel { width: 100%; max-width: 640px; background: var(--hx-card); border-radius: var(--hx-radius); box-shadow: var(--hx-shadow-lg); overflow: hidden; }
.hx-search-panel input {
  width: 100%; border: 0; border-bottom: 1px solid var(--hx-line); padding: 16px 18px;
  font: 17px var(--hx-font); outline: none; color: var(--hx-ink); box-sizing: border-box;
}
.hx-search-results { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.hx-search-results li a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--hx-ink); }
.hx-search-results li a[aria-selected="true"], .hx-search-results li a:hover { background: var(--hx-surface); }
.hx-search-results .hx-r-title { font-weight: 600; }
.hx-search-results .hx-r-sum { font-size: 13px; color: var(--hx-muted); }
.hx-search-results .hx-r-meta { font-size: 11.5px; font-weight: 600; color: var(--hx-accent-ink); }
.hx-search-empty { padding: 18px; color: var(--hx-muted); font-size: 14px; }
.hx-search-group {
  padding: 10px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hx-muted);
}
.hx-search-results .hx-r-full { font-weight: 400; color: var(--hx-muted); margin-left: 8px; font-size: 13.5px; }
.hx-search-results .hx-r-more a { font-size: 13.5px; font-weight: 500; color: var(--hx-accent-2); padding-top: 6px; padding-bottom: 8px; }

/* ---- footer ------------------------------------------------------------- */
site-footer { display: block; }
.hx-foot { border-top: 1px solid var(--hx-line); background: var(--hx-surface); color: var(--hx-muted); font: 13.5px var(--hx-font); }
.hx-foot-inner {
  max-width: var(--hx-max); margin: 0 auto; padding: 28px 20px 36px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.hx-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hx-foot a { color: var(--hx-ink-2); text-decoration: none; }
.hx-foot a:hover { color: var(--hx-accent-ink); }

/* ---- page layout (site pages only) ------------------------------------- */
body.hx-page {
  margin: 0; background: var(--hx-bg); color: var(--hx-ink); font-family: var(--hx-font);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.hx-page main { max-width: var(--hx-max); margin: 0 auto; padding: 40px 20px 72px; }
.hx-eyebrow { font-size: 13px; font-weight: 600; color: var(--hx-accent-ink); letter-spacing: .01em; }
.hx-page h1 { font-weight: 700; font-size: 44px; line-height: 1.12; letter-spacing: -.025em; margin: 10px 0 14px; color: var(--hx-ink); max-width: 900px; }
.hx-page h2 { font-weight: 700; font-size: 24px; letter-spacing: -.015em; margin: 44px 0 16px; color: var(--hx-ink); }
.hx-page h3 { font-weight: 600; font-size: 17px; line-height: 1.35; margin: 0; color: var(--hx-ink); }
.hx-lede { font-size: 18px; color: var(--hx-muted); max-width: 760px; margin: 0; }
.hx-prose > p, .hx-prose > ul, .hx-prose > ol, .hx-prose > form, .hx-prose > .hx-callout, .hx-prose > .hx-lede { max-width: 760px; }
.hx-prose > table { max-width: 1000px; }
.hx-page main a:not([class]) { color: var(--hx-accent-2); }
.hx-prose p, .hx-prose li { font-size: 16px; color: var(--hx-ink-2); }
.hx-prose h2 { font-size: 21px; margin-top: 36px; }
.hx-prose a { color: var(--hx-accent-2); }
.hx-prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
.hx-prose th, .hx-prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hx-line); vertical-align: top; }
.hx-prose th { font-weight: 600; color: var(--hx-ink); background: var(--hx-surface); }
.hx-note { font-size: 13.5px; color: var(--hx-muted); }
.hx-note a { color: var(--hx-accent-2); }

/* section header row: title left, action right */
.hx-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 48px 0 16px; }
.hx-section-head h2 { margin: 0; }
.hx-section-head .hx-head-actions { display: flex; align-items: center; gap: 8px; }
.hx-round {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hx-line-strong); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--hx-ink);
}
.hx-round:hover:not([disabled]) { border-color: var(--hx-ink); }
.hx-round[disabled] { opacity: .35; cursor: default; }
.hx-round svg { width: 18px; height: 18px; }

/* cards */
.hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hx-card {
  background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: var(--hx-radius);
  text-decoration: none; color: inherit; display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.hx-card:hover { box-shadow: var(--hx-shadow-lg); border-color: var(--hx-line-strong); transform: translateY(-2px); }
.hx-card-img { aspect-ratio: 16 / 9; background: var(--hx-surface-2); overflow: hidden; border-bottom: 1px solid var(--hx-line); }
.hx-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.hx-card-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hx-card p {
  margin: 0; font-size: 14px; color: var(--hx-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hx-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--hx-muted); }
.hx-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--hx-accent-ink); background: var(--hx-accent-soft);
  border-radius: 999px; padding: 2px 9px;
}
.hx-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--hx-ink-2); }
.hx-lock svg { width: 12px; height: 12px; }

/* latest row: 4 across, paged with arrows */
.hx-row { position: relative; }
.hx-row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 8px;
}
.hx-row-track::-webkit-scrollbar { display: none; }
.hx-row-track > * { scroll-snap-align: start; }
@media (max-width: 1000px) { .hx-row-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .hx-row-track { grid-auto-columns: 85%; } }
@media (prefers-reduced-motion: reduce) { .hx-row-track { scroll-behavior: auto; } .hx-card { transition: none; } }

/* carousel: light, text left, image right */
.hx-carousel { position: relative; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 16px; overflow: hidden; margin-top: 32px; }
.hx-slides { display: flex; transition: transform .45s ease; }
.hx-slide {
  min-width: 100%; box-sizing: border-box; padding: 40px 56px 56px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
}
.hx-slide-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hx-slide h3 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.hx-slide p { color: var(--hx-muted); margin: 0; font-size: 16.5px; }
.hx-slide .hx-slide-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hx-slide-img {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--hx-line); background: #fff; box-shadow: var(--hx-shadow);
  aspect-ratio: 16 / 10;
}
.hx-slide-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.hx-slide.hx-register { background: linear-gradient(135deg, var(--hx-accent-soft), #F4FAF8 60%); }
.hx-slide.hx-register .hx-slide-img { background: transparent; border: 0; box-shadow: none; }
.hx-register-points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--hx-ink-2); font-size: 15px; }
.hx-register-points li::before { content: "\2713"; color: var(--hx-accent); font-weight: 700; margin-right: 8px; }
.hx-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: #fff; color: var(--hx-ink);
  border: 1px solid var(--hx-line-strong); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--hx-shadow);
}
.hx-car-btn:hover { border-color: var(--hx-ink); }
.hx-car-btn svg { width: 18px; height: 18px; }
.hx-car-prev { left: 12px; }
.hx-car-next { right: 12px; }
.hx-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hx-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--hx-line-strong); cursor: pointer; padding: 0; transition: width .2s; }
.hx-dots button[aria-current="true"] { background: var(--hx-accent); width: 22px; }
@media (max-width: 800px) {
  .hx-page h1 { font-size: 32px; }
  .hx-slide { grid-template-columns: 1fr; padding: 26px 22px 52px; gap: 20px; }
  .hx-slide h3 { font-size: 24px; }
  .hx-car-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hx-slides { transition: none; } }

/* filters (/apps) */
.hx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; align-items: center; }
.hx-filters input {
  flex: 1; min-width: 220px; font: 15px var(--hx-font); padding: 10px 14px; border: 1px solid var(--hx-line-strong); border-radius: 999px;
}
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; align-items: center; }
.hx-chips .hx-chip-label { font-size: 12px; font-weight: 600; color: var(--hx-muted); text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.hx-chip {
  font: 500 13.5px var(--hx-font); border: 1px solid var(--hx-line-strong); background: #fff; color: var(--hx-ink-2);
  border-radius: 999px; padding: 6px 13px; cursor: pointer; text-decoration: none;
}
.hx-chip:hover { border-color: var(--hx-ink); }
.hx-chip[aria-pressed="true"] { background: var(--hx-accent); border-color: var(--hx-accent); color: #fff; }

/* forms (register, contact) */
.hx-form { display: grid; gap: 14px; max-width: 520px; margin-top: 18px; }
.hx-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--hx-ink); }
.hx-form input, .hx-form select, .hx-form textarea {
  font: 15px var(--hx-font); padding: 10px 12px; border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm); background: #fff; color: var(--hx-ink);
}
.hx-form input:focus, .hx-form select:focus, .hx-form textarea:focus { outline: 2px solid var(--hx-accent-2); outline-offset: 0; border-color: transparent; }
.hx-form button { justify-self: start; }
.hx-form button[disabled] { opacity: .6; cursor: default; }
.hx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hx-callout { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 16px 18px; font-size: 14.5px; color: var(--hx-ink-2); }
.hx-callout strong { color: var(--hx-ink); }
/* Form outcome: a success panel replaces the form; errors read as errors. */
.hx-page [hidden] { display: none !important; }
.hx-google { justify-self: stretch; justify-content: center; gap: 10px; }
.hx-google svg { flex: none; }
.hx-or { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 22px 0 4px; color: var(--hx-muted); font-size: 13.5px; }
.hx-or::before, .hx-or::after { content: ''; flex: 1; height: 1px; background: var(--hx-line); }
.hx-done { max-width: 520px; margin-top: 18px; background: var(--hx-accent-soft); border: 1px solid #BFE3D6; border-radius: var(--hx-radius); padding: 22px 24px; }
.hx-done h2 { margin: 0 0 6px; font-size: 20px; color: var(--hx-accent-ink); }
.hx-done p { margin: 0 0 14px; color: var(--hx-ink-2); font-size: 15.5px; }
.hx-status { min-height: 1.4em; margin: 0; font-size: 14.5px; }
.hx-status.hx-err { color: var(--hx-warn); font-weight: 500; }

/* consent banner */
.hx-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 2000;
  background: var(--hx-card); color: var(--hx-ink); border: 1px solid var(--hx-line); border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow-lg); padding: 16px 18px; font: 14px/1.5 var(--hx-font);
}
.hx-consent p { margin: 0 0 12px; }
.hx-consent a { color: var(--hx-accent-2); }
.hx-consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.hx-consent button {
  font: 500 13.5px var(--hx-font); border-radius: 999px; padding: 8px 16px; cursor: pointer; border: 1px solid var(--hx-line-strong);
  background: #fff; color: var(--hx-ink);
}
.hx-consent button.hx-yes { background: var(--hx-accent); color: #fff; border-color: var(--hx-accent); }

/* dictionary (/dictionary, DICTIONARY_V1) */
.hx-az { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 12px; }
.hx-az a, .hx-az span {
  min-width: 28px; text-align: center; padding: 4px 0; border-radius: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.hx-page main .hx-az a { color: var(--hx-accent-ink); }
.hx-az a:hover { background: var(--hx-accent-soft); }
.hx-az span { color: var(--hx-line-strong); }
.hx-dict { display: grid; gap: 0; margin-top: 8px; }
.hx-dict-letter { scroll-margin-top: 16px; }
.hx-page h2.hx-dict-l {
  font-size: 15px; font-weight: 700; color: var(--hx-muted); margin: 28px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--hx-line);
}
.hx-term {
  padding: 18px 16px 16px; margin: 0 -16px; border-radius: var(--hx-radius); scroll-margin-top: 16px; max-width: 880px;
  transition: background .3s ease;
}
.hx-term + .hx-term { border-top: 1px solid var(--hx-line); border-top-left-radius: 0; border-top-right-radius: 0; }
.hx-term.hx-on, .hx-term:target { background: var(--hx-accent-soft); }
.hx-term-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.hx-page .hx-term-head h3 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.hx-page main a.hx-term-name { color: var(--hx-ink); text-decoration: none; }
.hx-page main a.hx-term-name:hover { color: var(--hx-accent-ink); }
.hx-term-full { font-size: 15px; color: var(--hx-ink-2); }
.hx-term-copy {
  margin-left: auto; font: 500 12.5px var(--hx-font); color: var(--hx-muted); background: none; border: 1px solid var(--hx-line);
  border-radius: 999px; padding: 3px 10px; cursor: pointer;
}
.hx-term-copy:hover { color: var(--hx-ink); border-color: var(--hx-line-strong); }
.hx-term-def { margin: 10px 0 0; font-size: 16px; color: var(--hx-ink); max-width: 760px; }
.hx-term-ctx { margin: 8px 0 0; font-size: 14.5px; color: var(--hx-ink-2); max-width: 760px; }
.hx-term-ctx strong { color: var(--hx-ink); font-weight: 600; }
.hx-term-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: 13.5px; color: var(--hx-muted); }
.hx-term-meta dt { font-weight: 600; color: var(--hx-ink-2); }
.hx-term-meta dd { margin: 0; }
@media (max-width: 600px) {
  .hx-term-copy { margin-left: 0; }
  .hx-term-meta { grid-template-columns: 1fr; gap: 0; }
  .hx-term-meta dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { .hx-term { transition: none; } }
