/*
 * HUNTER×HUNTER Wiki v2 theme source
 * G2 selection: A, Nocturne Archive
 * Selected: 2026-07-16
 * Generated public target: public/hunterhunter/assets/hh-theme.css in Phase 7
 */

:root {
  color-scheme: dark;

  --hh-color-canvas: #050807;
  --hh-color-surface: #0a100d;
  --hh-color-surface-raised: #101913;
  --hh-color-hunter-green: #173c2a;
  --hh-color-hunter-green-light: #2e5b43;
  --hh-color-line: #526b5a;
  --hh-color-line-soft: #1c2b22;
  --hh-color-old-gold: #b89a58;
  --hh-color-old-gold-muted: #a58f5c;
  --hh-color-warm-ivory: #e8e0cd;
  --hh-color-muted: #9dab9f;
  --hh-color-muted-strong: #89988e;
  --hh-color-analysis: #b66b58;

  --hh-confidence-confirmed: #7fb294;
  --hh-confidence-inference: #d2b86d;
  --hh-confidence-analysis: #d78d79;

  --hh-font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --hh-font-sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --hh-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --hh-font-size-body: 1rem;
  --hh-line-height-body: 1.75;
  --hh-measure: 68ch;
  --hh-layout-max: 90rem;

  --hh-space-1: 0.25rem;
  --hh-space-2: 0.5rem;
  --hh-space-3: 0.75rem;
  --hh-space-4: 1rem;
  --hh-space-6: 1.5rem;
  --hh-space-8: 2rem;
  --hh-space-12: 3rem;

  --hh-radius-sm: 0.125rem;
  --hh-radius-md: 0.25rem;
  --hh-line-thin: 1px;

  --hh-duration-fast: 140ms;
  --hh-duration-ui: 180ms;
  --hh-ease-out: cubic-bezier(.23, 1, .32, 1);

  /* Aliases used by the selected Phase 2 specimen. */
  --canvas: var(--hh-color-canvas);
  --surface: var(--hh-color-surface);
  --surface-raised: var(--hh-color-surface-raised);
  --green: var(--hh-color-hunter-green);
  --green-light: var(--hh-color-hunter-green-light);
  --line: var(--hh-color-line);
  --line-soft: var(--hh-color-line-soft);
  --gold: var(--hh-color-old-gold);
  --gold-dim: var(--hh-color-old-gold-muted);
  --ivory: var(--hh-color-warm-ivory);
  --muted: var(--hh-color-muted);
  --muted-2: var(--hh-color-muted-strong);
  --danger: var(--hh-color-analysis);
  --serif: var(--hh-font-serif);
  --sans: var(--hh-font-sans);
}

html {
  color-scheme: dark;
  background: var(--hh-color-canvas);
}

body {
  background: var(--hh-color-canvas);
  color: var(--hh-color-warm-ivory);
  font-family: var(--hh-font-sans);
  font-size: var(--hh-font-size-body);
  line-height: var(--hh-line-height-body);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--hh-color-old-gold);
  outline-offset: 3px;
}

.hh-skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--hh-space-2);
  left: var(--hh-space-2);
  padding: var(--hh-space-2) var(--hh-space-3);
  background: var(--hh-color-warm-ivory);
  color: var(--hh-color-canvas);
  transform: translateY(-150%);
}

.hh-skip-link:focus {
  transform: translateY(0);
}

.hh-surface {
  background: var(--hh-color-surface);
  color: var(--hh-color-warm-ivory);
}

.hh-panel {
  border: var(--hh-line-thin) solid var(--hh-color-line);
  border-radius: var(--hh-radius-md);
  background: var(--hh-color-surface-raised);
}

.hh-reading-measure {
  max-width: var(--hh-measure);
}

.hh-confidence {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: var(--hh-space-2);
  padding: var(--hh-space-1) var(--hh-space-2);
  border: var(--hh-line-thin) solid currentColor;
  border-radius: var(--hh-radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.hh-confidence::before {
  width: 0.45rem;
  height: 0.45rem;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.hh-confidence[data-confidence="confirmed"] {
  color: var(--hh-confidence-confirmed);
}

.hh-confidence[data-confidence="inference"] {
  color: var(--hh-confidence-inference);
}

.hh-confidence[data-confidence="analysis"] {
  color: var(--hh-confidence-analysis);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a,
  button,
  summary,
  [role="tab"] {
    transition-duration: var(--hh-duration-fast);
    transition-property: color, background-color, border-color, opacity, transform;
    transition-timing-function: var(--hh-ease-out);
  }

  button:active,
  [role="button"]:active,
  [role="tab"]:active {
    transform: scale(.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Phase 4 production components */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 6rem;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(46, 91, 67, .2), transparent 34rem),
    linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .009) 1px, transparent 1px),
    var(--hh-color-canvas);
  background-size: auto, 4px 4px, 4px 4px, auto;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
summary {
  color: inherit;
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
ol,
ul {
  margin-top: 0;
}

::selection {
  background: var(--hh-color-old-gold);
  color: var(--hh-color-canvas);
}

.hh-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hh-page {
  position: relative;
  overflow-x: clip;
}

.hh-page::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 62%, rgba(23, 60, 42, .08));
  content: "";
  pointer-events: none;
}

.hh-panel {
  position: relative;
  border-color: color-mix(in srgb, var(--hh-color-line) 72%, transparent);
  background:
    linear-gradient(145deg, rgba(16, 25, 19, .98), rgba(7, 12, 9, .99));
  box-shadow:
    inset 0 0 0 1px rgba(184, 154, 88, .025),
    0 1.25rem 3.75rem rgba(0, 0, 0, .16);
}

.hh-panel::after {
  position: absolute;
  inset: .4rem;
  border: 1px solid rgba(184, 154, 88, .045);
  content: "";
  pointer-events: none;
}

.hh-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(82, 107, 90, .65);
  background: rgba(5, 8, 7, .92);
  box-shadow: 0 .7rem 2.2rem rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.hh-header-inner {
  display: grid;
  width: min(100% - 2rem, var(--hh-layout-max));
  min-height: 4.8rem;
  align-items: center;
  margin-inline: auto;
  grid-template-columns: minmax(13rem, 1fr) auto auto;
  gap: clamp(.75rem, 2vw, 1.75rem);
}

.hh-brand {
  display: grid;
  width: max-content;
  max-width: 100%;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-brand span,
.hh-footer-brand span {
  color: var(--hh-color-old-gold);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .19em;
}

.hh-brand strong,
.hh-footer-brand strong {
  font-family: var(--hh-font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.25;
}

.hh-brand small {
  color: var(--hh-color-muted-strong);
  font-size: .62rem;
  letter-spacing: .08em;
}

.hh-primary-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.hh-primary-nav a {
  display: grid;
  min-width: 3.25rem;
  min-height: 2.75rem;
  place-items: center;
  padding-inline: clamp(.5rem, 1vw, .85rem);
  border-bottom: 2px solid transparent;
  color: var(--hh-color-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}

.hh-primary-nav a[aria-current="page"] {
  border-color: var(--hh-color-old-gold);
  background: rgba(23, 60, 42, .25);
  color: var(--hh-color-warm-ivory);
}

.hh-search-open,
.hh-button,
.hh-icon-button {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid var(--hh-color-line);
  border-radius: var(--hh-radius-sm);
  background: rgba(23, 60, 42, .34);
  color: var(--hh-color-warm-ivory);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.hh-search-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

.hh-search-open span {
  color: var(--hh-color-old-gold);
  font-size: 1.2rem;
  line-height: 0;
}

.hh-mobile-nav {
  display: none;
}

.hh-layout-shell {
  width: min(100% - 3rem, var(--hh-layout-max));
  margin-inline: auto;
}

.hh-breadcrumbs {
  padding-block: 1rem;
  color: var(--hh-color-muted-strong);
  font-size: .74rem;
}

.hh-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hh-breadcrumbs li:not(:last-child)::after {
  margin-left: .35rem;
  color: var(--hh-color-line);
  content: "/";
}

.hh-breadcrumbs a {
  color: var(--hh-color-muted);
}

.hh-breadcrumbs [aria-current="page"] {
  color: var(--hh-color-warm-ivory);
}

.hh-article {
  padding-bottom: var(--hh-space-12);
}

.hh-article-hero {
  position: relative;
  display: grid;
  min-height: 16rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  border-block: 1px solid var(--hh-color-line);
  background:
    linear-gradient(90deg, rgba(16, 25, 19, .98) 0 68%, rgba(5, 8, 7, .78)),
    radial-gradient(circle at 100% 0, rgba(46, 91, 67, .24), transparent 42%);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
}

.hh-article-hero::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: 1px;
  background: linear-gradient(transparent, var(--hh-color-old-gold), transparent);
  content: "";
}

.hh-article-hero > * {
  min-width: 0;
}

.hh-eyebrow,
.hh-section-index,
.hh-panel-label {
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
}

.hh-eyebrow {
  display: flex;
  gap: .8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hh-eyebrow span {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
}

.hh-eyebrow span::before {
  width: 1.5rem;
  height: 1px;
  background: var(--hh-color-old-gold);
  content: "";
}

.hh-article-hero h1 {
  max-width: 24ch;
  margin-bottom: .8rem;
  font-family: var(--hh-font-serif);
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.24;
  text-wrap: balance;
}

.hh-deck {
  max-width: var(--hh-measure);
  margin-bottom: 1rem;
  color: var(--hh-color-muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hh-edition {
  min-width: 10rem;
  padding: 1rem 0 .8rem 1.25rem;
  border-left: 1px solid var(--hh-color-old-gold-muted);
  text-align: right;
}

.hh-edition strong,
.hh-edition small {
  display: block;
}

.hh-edition strong {
  font-family: var(--hh-font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.hh-edition small {
  margin-top: .45rem;
  color: var(--hh-color-muted-strong);
  font-family: var(--hh-font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
}

.hh-confidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}

.hh-confidence {
  background: rgba(20, 38, 27, .34);
  font-size: .72rem;
}

.hh-planned-notice {
  margin-block: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--hh-color-old-gold-muted);
  border-left-width: .25rem;
  background: rgba(86, 75, 40, .12);
}

.hh-planned-notice h2 {
  margin-bottom: .4rem;
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-planned-notice p:last-child {
  max-width: var(--hh-measure);
  margin-bottom: 0;
  color: var(--hh-color-muted);
}

.hh-article-grid {
  display: grid;
  align-items: start;
  padding-top: 1.75rem;
  grid-template-columns: 13.5rem minmax(0, 1fr) 18rem;
  grid-template-areas: "toc content info";
  gap: clamp(1rem, 2.4vw, 2rem);
}

.hh-toc {
  position: sticky;
  top: 6.3rem;
  grid-area: toc;
  padding: 1.25rem;
}

.hh-toc h2 {
  margin-bottom: .8rem;
  font-family: var(--hh-font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.hh-toc ol {
  margin: 0;
  padding: 0;
  counter-reset: toc;
  list-style: none;
}

.hh-toc li {
  border-top: 1px solid var(--hh-color-line-soft);
  counter-increment: toc;
}

.hh-toc a {
  display: grid;
  min-height: 2.75rem;
  align-items: center;
  padding-block: .45rem;
  color: var(--hh-color-muted);
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
  grid-template-columns: 1.8rem 1fr;
}

.hh-toc a::before {
  color: var(--hh-color-old-gold-muted);
  content: counter(toc, decimal-leading-zero);
  font-family: var(--hh-font-mono);
  font-size: .62rem;
}

.hh-article-content {
  min-width: 0;
  grid-area: content;
}

.hh-lead {
  margin-bottom: var(--hh-space-8);
  padding: 1.1rem 1.25rem 1.1rem 1.5rem;
  border-left: 2px solid var(--hh-color-old-gold);
  background: rgba(16, 25, 19, .55);
  font-size: 1.04rem;
}

.hh-lead p {
  max-width: var(--hh-measure);
  margin-bottom: .7rem;
}

.hh-lead p:last-child {
  margin-bottom: 0;
}

.hh-content-section,
.hh-hub-members,
.hh-directory,
.hh-related {
  margin-top: var(--hh-space-12);
  scroll-margin-top: 6rem;
}

.hh-content-section:first-child {
  margin-top: 0;
}

.hh-content-section > h2,
.hh-hub-members > h2,
.hh-directory > h2,
.hh-related > h2 {
  max-width: var(--hh-measure);
  margin-bottom: 1.3rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--hh-color-line);
  font-family: var(--hh-font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1.45;
}

.hh-content-section > p,
.hh-content-section > .hh-list-wrap,
.hh-content-section > .hh-definition-list,
.hh-content-section > .hh-box,
.hh-content-section > .hh-callout,
.hh-content-section > .hh-subheading {
  max-width: var(--hh-measure);
}

.hh-content-section p,
.hh-box p,
.hh-callout p {
  margin-bottom: 1.1rem;
  line-height: 1.85;
}

.hh-content-section a,
.hh-lead a {
  color: #d1bd84;
}

.hh-content-section a:hover,
.hh-lead a:hover {
  color: var(--hh-color-warm-ivory);
}

.hh-subheading {
  margin: 2rem 0 1rem;
  color: var(--hh-color-warm-ivory);
  font-family: var(--hh-font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.hh-subheading::before {
  margin-right: .6rem;
  color: var(--hh-color-old-gold);
  content: "◇";
  font-size: .7em;
}

.hh-accent {
  color: #ddc680;
  font-weight: 700;
}

.hh-inline-badge {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  margin-inline: .15rem;
  padding: .15rem .45rem;
  border: 1px solid var(--hh-color-line);
  background: rgba(23, 60, 42, .28);
  color: var(--hh-color-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.hh-inline-badge[data-confidence="confirmed"] {
  color: var(--hh-confidence-confirmed);
}

.hh-inline-badge[data-confidence="inference"] {
  color: var(--hh-confidence-inference);
}

.hh-inline-badge[data-confidence="analysis"] {
  color: var(--hh-confidence-analysis);
}

ruby rt {
  color: var(--hh-color-muted);
  font-size: .56em;
}

.hh-anchor {
  display: block;
  scroll-margin-top: 6rem;
}

.hh-figure {
  max-width: 100%;
  margin: 1.75rem 0;
  padding: clamp(.75rem, 2vw, 1.25rem);
  border: 1px solid var(--hh-color-line-soft);
  background: rgba(10, 16, 13, .72);
}

.hh-figure-media {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-start;
  justify-content: center;
}

.hh-content-image {
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(82, 107, 90, .55);
  background: #e8e0cd;
}

.hh-inline-image {
  display: inline-block;
  width: auto;
  max-width: min(100%, 34rem);
  height: auto;
  vertical-align: middle;
}

.hh-figure figcaption {
  max-width: var(--hh-measure);
  margin: .85rem auto 0;
  color: var(--hh-color-muted);
  font-size: .78rem;
  line-height: 1.65;
  text-align: center;
}

.hh-table-wrap {
  margin: 1.75rem 0;
}

.hh-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hh-color-line);
  background: rgba(10, 16, 13, .92);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--hh-color-line) var(--hh-color-canvas);
}

.hh-data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.65;
}

.hh-data-table caption {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--hh-color-line);
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-serif);
  font-weight: 500;
  text-align: left;
}

.hh-data-table th,
.hh-data-table td {
  min-width: 7rem;
  padding: .65rem .8rem;
  border: 1px solid var(--hh-color-line-soft);
  vertical-align: top;
}

.hh-data-table th {
  background: rgba(23, 60, 42, .48);
  color: var(--hh-color-warm-ivory);
  font-weight: 700;
  text-align: left;
}

.hh-data-table td {
  color: var(--hh-color-muted);
}

.hh-list-wrap ol,
.hh-list-wrap ul {
  padding-left: 1.35rem;
}

.hh-list-wrap li {
  margin-bottom: .6rem;
  padding-left: .25rem;
}

.hh-list-wrap li::marker {
  color: var(--hh-color-old-gold);
}

.hh-definition-list {
  border-top: 1px solid var(--hh-color-line);
}

.hh-definition {
  display: grid;
  padding: .8rem 0;
  border-bottom: 1px solid var(--hh-color-line-soft);
  grid-template-columns: minmax(8rem, .38fr) minmax(0, 1fr);
  gap: 1rem;
}

.hh-definition dt {
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-definition dd {
  margin: 0;
  color: var(--hh-color-muted);
}

.hh-box,
.hh-callout {
  margin: 1.4rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--hh-color-line-soft);
  background: rgba(16, 25, 19, .62);
}

.hh-callout {
  border-left: .22rem solid var(--hh-color-old-gold);
  background: rgba(86, 75, 40, .11);
}

.hh-box > :last-child,
.hh-callout > :last-child {
  margin-bottom: 0;
}

.hh-infobox {
  position: sticky;
  top: 6.3rem;
  overflow: hidden;
  grid-area: info;
}

.hh-infobox figure {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-bottom: 1px solid var(--hh-color-line);
  background: var(--hh-color-hunter-green);
}

.hh-infobox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.hh-infobox details {
  position: relative;
  z-index: 1;
}

.hh-infobox summary {
  min-height: 3rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--hh-color-line);
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-serif);
  font-weight: 500;
  list-style-position: inside;
}

.hh-infobox dl {
  margin: 0;
  padding: .25rem 1rem 1rem;
}

.hh-fact {
  display: grid;
  padding: .7rem 0;
  border-bottom: 1px solid var(--hh-color-line-soft);
  grid-template-columns: 5.3rem minmax(0, 1fr);
  gap: .65rem;
  font-size: .78rem;
  line-height: 1.55;
}

.hh-fact dt {
  color: var(--hh-color-muted-strong);
}

.hh-fact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.hh-feature {
  display: grid;
  min-height: 18rem;
  align-items: end;
  margin-bottom: var(--hh-space-12);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-top: .2rem solid var(--hh-color-old-gold);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
}

.hh-feature h2 {
  max-width: none;
  margin: .65rem 0 .85rem;
  font-family: var(--hh-font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}

.hh-feature h2 a {
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-feature-copy > p:not(.hh-section-index) {
  max-width: 54ch;
  color: var(--hh-color-muted);
}

.hh-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .65rem;
  color: var(--hh-color-old-gold);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.hh-text-link span {
  font-size: 1.1rem;
}

.hh-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.hh-portal-card {
  display: grid;
  min-height: 8rem;
  align-items: center;
  padding: 1.2rem;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: .9rem;
}

.hh-portal-number {
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-serif);
  font-size: 1.1rem;
}

.hh-portal-card strong,
.hh-portal-card small,
.hh-portal-meta,
.hh-portal-meta b {
  display: block;
}

.hh-portal-card strong {
  font-family: var(--hh-font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .06em;
}

.hh-portal-card small {
  margin-top: .3rem;
  color: var(--hh-color-muted);
  font-size: .72rem;
}

.hh-portal-meta {
  color: var(--hh-color-muted-strong);
  font-family: var(--hh-font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-align: right;
}

.hh-portal-meta b {
  margin-top: .35rem;
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.hh-home-secondary {
  display: grid;
  margin-top: var(--hh-space-8);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hh-recent,
.hh-random {
  padding: 1.4rem;
}

.hh-recent h2,
.hh-random h2 {
  margin-bottom: .9rem;
  font-family: var(--hh-font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.hh-recent ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hh-recent li {
  display: grid;
  min-height: 2.9rem;
  align-items: center;
  border-top: 1px solid var(--hh-color-line-soft);
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: .7rem;
  font-size: .8rem;
}

.hh-recent time {
  color: var(--hh-color-muted-strong);
  font-family: var(--hh-font-mono);
  font-size: .65rem;
}

.hh-recent a {
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-random-pillar {
  margin-bottom: .4rem;
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.hh-random-link {
  display: grid;
  min-height: 7rem;
  align-content: start;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-random-link strong {
  font-family: var(--hh-font-serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.hh-random-link span {
  display: -webkit-box;
  margin-top: .45rem;
  overflow: hidden;
  color: var(--hh-color-muted);
  font-size: .76rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hh-character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.hh-character-card {
  display: grid;
  min-height: 9.5rem;
  overflow: hidden;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
  grid-template-columns: 6.5rem minmax(0, 1fr);
}

.hh-card-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-right: 1px solid var(--hh-color-line-soft);
  background: var(--hh-color-hunter-green);
}

.hh-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hh-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: .85rem;
}

.hh-card-copy strong,
.hh-card-copy small {
  display: block;
}

.hh-card-copy strong {
  font-family: var(--hh-font-serif);
  font-size: 1rem;
  font-weight: 500;
}

.hh-card-copy small {
  display: -webkit-box;
  margin-top: .4rem;
  overflow: hidden;
  color: var(--hh-color-muted);
  font-size: .68rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.hh-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.hh-related-card {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 9rem;
  align-content: start;
  padding: 1rem;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-related-card small {
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-mono);
  font-size: .62rem;
  letter-spacing: .11em;
}

.hh-related-card strong {
  margin-top: .45rem;
  font-family: var(--hh-font-serif);
  font-size: 1rem;
  font-weight: 500;
}

.hh-related-card span {
  display: -webkit-box;
  margin-top: .45rem;
  overflow: hidden;
  color: var(--hh-color-muted);
  font-size: .7rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hh-prev-next {
  display: grid;
  margin-top: var(--hh-space-12);
  padding-top: 1rem;
  border-top: 1px solid var(--hh-color-line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hh-prev-next a {
  display: grid;
  min-height: 4.5rem;
  align-content: center;
  padding: .75rem 1rem;
  border: 1px solid var(--hh-color-line-soft);
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-prev-next a:last-child {
  text-align: right;
}

.hh-prev-next small,
.hh-prev-next strong {
  display: block;
}

.hh-prev-next small {
  color: var(--hh-color-old-gold-muted);
  font-size: .65rem;
}

.hh-prev-next strong {
  margin-top: .25rem;
  font-family: var(--hh-font-serif);
  font-size: .9rem;
  font-weight: 500;
}

.hh-site-footer {
  padding: 2.5rem max(1.5rem, calc((100% - var(--hh-layout-max)) / 2));
  border-top: 1px solid var(--hh-color-line);
  background: rgba(5, 8, 7, .9);
}

.hh-site-footer > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.hh-footer-brand {
  display: grid;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-category-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem 1rem;
}

.hh-category-footer a {
  color: var(--hh-color-muted);
  font-size: .75rem;
}

.hh-site-footer > p {
  margin: 1.5rem 0 0;
  color: var(--hh-color-muted-strong);
  font-size: .7rem;
}

.hh-search-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: min(44rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hh-color-line);
  border-radius: var(--hh-radius-md);
  background: var(--hh-color-surface);
  color: var(--hh-color-warm-ivory);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .62);
}

.hh-search-dialog::backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(8px);
}

.hh-search-shell {
  display: grid;
  max-height: min(44rem, calc(100dvh - 2rem));
  padding: clamp(1rem, 4vw, 2rem);
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.hh-search-shell header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hh-color-line);
}

.hh-search-shell h2 {
  margin: 0;
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-search-shell label {
  margin-top: 1rem;
  color: var(--hh-color-muted);
  font-size: .75rem;
  font-weight: 700;
}

.hh-search-shell input {
  width: 100%;
  min-height: 3.2rem;
  margin-top: .4rem;
  padding: .7rem .9rem;
  border: 1px solid var(--hh-color-line);
  border-radius: var(--hh-radius-sm);
  background: #070c09;
  color: var(--hh-color-warm-ivory);
  font-size: 1rem;
}

.hh-search-status {
  margin: .7rem 0;
  color: var(--hh-color-muted-strong);
  font-size: .72rem;
}

.hh-search-results {
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.hh-search-results li {
  border-top: 1px solid var(--hh-color-line-soft);
}

.hh-search-results a {
  display: grid;
  padding: .85rem .2rem;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-search-result__link {
  gap: .16rem;
}

.hh-search-result__title {
  color: var(--hh-color-warm-ivory);
  font-family: var(--hh-font-serif);
  font-size: 1rem;
  font-weight: 500;
}

.hh-search-result__category {
  order: -1;
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.hh-search-result__lead {
  color: var(--hh-color-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.hh-search-results small {
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.hh-search-results strong {
  margin-top: .2rem;
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-search-results span:not(.hh-search-result__title, .hh-search-result__category) {
  margin-top: .25rem;
  color: var(--hh-color-muted);
  font-size: .72rem;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hh-primary-nav a:hover,
  .hh-search-open:hover,
  .hh-button:hover,
  .hh-icon-button:hover,
  .hh-toc a:hover,
  .hh-portal-card:hover,
  .hh-character-card:hover,
  .hh-related-card:hover,
  .hh-prev-next a:hover {
    border-color: var(--hh-color-old-gold-muted);
    background-color: rgba(23, 60, 42, .34);
    color: var(--hh-color-warm-ivory);
  }

  .hh-portal-card:hover,
  .hh-character-card:hover,
  .hh-related-card:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 69.99rem) {
  .hh-primary-nav {
    display: none;
  }

  .hh-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .hh-mobile-nav {
    position: relative;
    display: block;
  }

  .hh-mobile-nav summary {
    display: grid;
    min-width: 5rem;
    min-height: 2.75rem;
    place-items: center;
    border: 1px solid var(--hh-color-line);
    background: rgba(23, 60, 42, .25);
    font-size: .78rem;
    font-weight: 700;
    list-style: none;
  }

  .hh-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .hh-mobile-nav summary::marker {
    content: "";
  }

  .hh-mobile-nav nav {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    display: grid;
    width: min(20rem, calc(100vw - 2rem));
    padding: .5rem;
    border: 1px solid var(--hh-color-line);
    background: var(--hh-color-surface);
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .5);
    grid-template-columns: repeat(2, 1fr);
  }

  .hh-mobile-nav nav a {
    display: grid;
    min-height: 2.75rem;
    place-items: center;
    color: var(--hh-color-muted);
    font-size: .8rem;
    text-decoration: none;
  }

  .hh-mobile-nav nav a[aria-current="page"] {
    background: var(--hh-color-hunter-green);
    color: var(--hh-color-warm-ivory);
  }

  .hh-article-grid {
    grid-template-columns: minmax(0, 1fr) 17rem;
    grid-template-areas:
      "toc toc"
      "content info";
  }

  .hh-toc {
    position: static;
    padding: 1rem 1.2rem;
  }

  .hh-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
  }

  .hh-toc li {
    min-width: min(13rem, 48%);
    flex: 1;
  }

  .hh-infobox {
    top: 6.3rem;
  }

  .hh-character-grid,
  .hh-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 47.99rem) {
  .hh-header-inner,
  .hh-layout-shell {
    width: min(100% - 1.25rem, var(--hh-layout-max));
  }

  .hh-header-inner {
    min-height: 4.35rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .5rem;
  }

  .hh-brand small {
    display: none;
  }

  .hh-brand strong {
    font-size: .88rem;
  }

  .hh-search-open {
    min-width: 3rem;
    padding-inline: .65rem;
    font-size: 0;
  }

  .hh-search-open span {
    font-size: 1.25rem;
  }

  .hh-mobile-nav {
    grid-column: 3;
    grid-row: 1;
  }

  .hh-mobile-nav summary {
    min-width: 4.4rem;
  }

  .hh-search-open {
    position: static;
    z-index: auto;
    right: auto;
    bottom: auto;
    width: 3rem;
    border-color: var(--hh-color-old-gold-muted);
    border-radius: var(--hh-radius-sm);
    box-shadow: none;
    grid-column: 2;
    grid-row: 1;
  }

  .hh-breadcrumbs {
    padding-block: .75rem;
    font-size: .68rem;
  }

  .hh-article-hero {
    min-height: 0;
    padding: 2rem 1rem 1.5rem 1.35rem;
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .hh-article-hero::before {
    left: .5rem;
  }

  .hh-article-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
    overflow-wrap: anywhere;
  }

  .hh-page--home_hub .hh-article-hero h1 {
    font-size: clamp(1.4rem, 7vw, 1.9rem);
    letter-spacing: .015em;
    white-space: nowrap;
  }

  .hh-deck {
    font-size: .92rem;
  }

  .hh-edition {
    min-width: 0;
    padding: .75rem 0 0;
    border-top: 1px solid var(--hh-color-line-soft);
    border-left: 0;
    text-align: left;
  }

  .hh-edition strong,
  .hh-edition small {
    display: inline;
    margin-right: .75rem;
  }

  .hh-article-grid {
    padding-top: 1rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "info"
      "toc"
      "content";
    gap: 1rem;
  }

  .hh-infobox {
    position: static;
    display: grid;
    grid-template-columns: minmax(7rem, .35fr) minmax(0, 1fr);
  }

  .hh-infobox:not(:has(figure)) {
    grid-template-columns: 1fr;
  }

  .hh-infobox figure {
    min-height: 10rem;
    border-right: 1px solid var(--hh-color-line);
    border-bottom: 0;
  }

  .hh-infobox details {
    display: grid;
    min-width: 0;
    align-content: center;
  }

  .hh-infobox details[open] {
    align-content: start;
  }

  .hh-fact {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    font-size: .72rem;
  }

  .hh-toc ol {
    display: block;
  }

  .hh-toc li {
    min-width: 0;
  }

  .hh-lead {
    padding: 1rem 1rem 1rem 1.15rem;
    font-size: 1rem;
  }

  .hh-content-section,
  .hh-hub-members,
  .hh-directory,
  .hh-related {
    margin-top: 2.5rem;
  }

  .hh-data-table {
    font-size: .82rem;
  }

  .hh-definition {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .hh-feature,
  .hh-portal-grid,
  .hh-home-secondary,
  .hh-related-grid,
  .hh-character-grid,
  .hh-prev-next {
    grid-template-columns: 1fr;
  }

  .hh-feature {
    min-height: 0;
    align-items: start;
    padding: 1.25rem;
    gap: .5rem;
  }

  .hh-feature .hh-text-link {
    justify-self: start;
  }

  .hh-portal-card {
    min-height: 7rem;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }

  .hh-character-card {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .hh-prev-next {
    gap: .5rem;
  }

  .hh-prev-next span[aria-hidden="true"] {
    display: none;
  }

  .hh-prev-next a:last-child {
    text-align: left;
  }

  .hh-site-footer {
    padding: 2rem 1rem 4.5rem;
  }

  .hh-site-footer > div {
    display: grid;
  }

  .hh-category-footer {
    justify-content: flex-start;
  }

  .hh-search-shell {
    padding: 1rem;
  }

  .hh-mobile-break {
    display: initial;
  }
}

@media (min-width: 48rem) {
  .hh-mobile-break {
    display: none;
  }
}

/* Phase 8 reference-parity discovery and editorial components */

:root {
  --hh-color-link: #d1bd84;
  --hh-color-accent-strong: #ddc680;
  --hh-theme-panel-start: rgba(16, 25, 19, .98);
  --hh-theme-panel-end: rgba(7, 12, 9, .99);
  --hh-theme-header: rgba(5, 8, 7, .92);
  --hh-theme-hero-start: rgba(16, 25, 19, .98);
  --hh-theme-hero-end: rgba(5, 8, 7, .78);
  --hh-theme-subtle: rgba(16, 25, 19, .62);
  --hh-theme-subtle-green: rgba(23, 60, 42, .34);
  --hh-theme-media: rgba(10, 16, 13, .72);
  --hh-theme-table: rgba(10, 16, 13, .92);
  --hh-theme-table-heading: rgba(23, 60, 42, .48);
  --hh-theme-field: #070c09;
  --hh-theme-footer: rgba(5, 8, 7, .9);
  --hh-theme-overlay: rgba(0, 0, 0, .76);
  --hh-theme-card-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, .16);
  --hh-theme-floating-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .42);
}

html[data-theme="light"] {
  color-scheme: light;

  --hh-color-canvas: #f2efe5;
  --hh-color-surface: #f8f5eb;
  --hh-color-surface-raised: #fffdf7;
  --hh-color-hunter-green: #dce8df;
  --hh-color-hunter-green-light: #bfd0c3;
  --hh-color-line: #66796c;
  --hh-color-line-soft: #d4ddd5;
  --hh-color-old-gold: #745c1f;
  --hh-color-old-gold-muted: #806d38;
  --hh-color-warm-ivory: #17231b;
  --hh-color-muted: #46584c;
  --hh-color-muted-strong: #5b685f;
  --hh-color-analysis: #8e493b;
  --hh-confidence-confirmed: #2f6646;
  --hh-confidence-inference: #705914;
  --hh-confidence-analysis: #884638;
  --hh-color-link: #665019;
  --hh-color-accent-strong: #74580d;
  --hh-theme-panel-start: rgba(255, 253, 247, .98);
  --hh-theme-panel-end: rgba(246, 243, 233, .99);
  --hh-theme-header: rgba(248, 245, 235, .94);
  --hh-theme-hero-start: rgba(255, 253, 247, .98);
  --hh-theme-hero-end: rgba(229, 236, 229, .9);
  --hh-theme-subtle: rgba(238, 241, 234, .9);
  --hh-theme-subtle-green: rgba(188, 211, 194, .46);
  --hh-theme-media: rgba(246, 243, 233, .92);
  --hh-theme-table: rgba(255, 253, 247, .96);
  --hh-theme-table-heading: rgba(205, 222, 210, .78);
  --hh-theme-field: #fffdf7;
  --hh-theme-footer: rgba(238, 235, 225, .96);
  --hh-theme-overlay: rgba(29, 40, 33, .5);
  --hh-theme-card-shadow: 0 1rem 2.6rem rgba(40, 52, 44, .1);
  --hh-theme-floating-shadow: 0 1.25rem 3.5rem rgba(40, 52, 44, .2);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% -8%, rgba(103, 139, 115, .18), transparent 34rem),
    linear-gradient(rgba(23, 35, 27, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 27, .02) 1px, transparent 1px),
    var(--hh-color-canvas);
  background-size: auto, 4px 4px, 4px 4px, auto;
}

html[data-theme="light"] .hh-page::after {
  background: linear-gradient(115deg, transparent 62%, rgba(47, 102, 70, .08));
}

/* Route existing surfaces through theme-aware values so the toggle is complete. */

.hh-panel {
  background: linear-gradient(145deg, var(--hh-theme-panel-start), var(--hh-theme-panel-end));
  box-shadow: inset 0 0 0 1px rgba(184, 154, 88, .025), var(--hh-theme-card-shadow);
}

.hh-site-header {
  background: var(--hh-theme-header);
}

.hh-article-hero {
  background:
    linear-gradient(90deg, var(--hh-theme-hero-start) 0 68%, var(--hh-theme-hero-end)),
    radial-gradient(circle at 100% 0, rgba(46, 91, 67, .24), transparent 42%);
}

.hh-confidence,
.hh-search-open,
.hh-button,
.hh-icon-button {
  background: var(--hh-theme-subtle-green);
}

.hh-lead,
.hh-box {
  background: var(--hh-theme-subtle);
}

.hh-figure {
  background: var(--hh-theme-media);
}

.hh-table-scroll {
  background: var(--hh-theme-table);
}

.hh-data-table th {
  background: var(--hh-theme-table-heading);
}

.hh-content-section a,
.hh-lead a {
  color: var(--hh-color-link);
}

.hh-accent {
  color: var(--hh-color-accent-strong);
}

.hh-site-footer {
  background: var(--hh-theme-footer);
}

.hh-search-dialog::backdrop {
  background: var(--hh-theme-overlay);
}

.hh-search-shell input {
  background: var(--hh-theme-field);
}

html[data-theme="light"] .hh-content-image {
  background: #fffdf7;
}

/* Hierarchical desktop navigation and the same details contract on mobile. */

.hh-mega-nav {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: stretch;
  align-self: stretch;
  gap: .1rem;
}

.hh-mega-nav > details {
  position: static;
}

.hh-mega-nav > details > summary {
  display: flex;
  min-width: 3.6rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(.5rem, 1vw, .85rem);
  border-bottom: 2px solid transparent;
  color: var(--hh-color-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  list-style: none;
  white-space: nowrap;
}

.hh-mega-nav > details > summary::-webkit-details-marker {
  display: none;
}

.hh-mega-nav > details > summary::marker {
  content: "";
}

.hh-mega-nav > details > summary::after {
  width: .42rem;
  height: .42rem;
  margin-left: .5rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-.12rem) rotate(45deg);
}

.hh-mega-nav > details[open] > summary {
  border-color: var(--hh-color-old-gold);
  background: var(--hh-theme-subtle-green);
  color: var(--hh-color-warm-ivory);
}

.hh-mega-nav > details[open] > summary::after {
  transform: translateY(.12rem) rotate(225deg);
}

.hh-mega-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + .55rem);
  left: 50%;
  display: grid;
  width: min(70rem, calc(100vw - 2rem));
  max-height: min(70dvh, 38rem);
  padding: clamp(1rem, 2.4vw, 1.75rem);
  overflow: auto;
  border: 1px solid var(--hh-color-line);
  background: color-mix(in srgb, var(--hh-color-surface) 94%, transparent);
  box-shadow: var(--hh-theme-floating-shadow);
  backdrop-filter: blur(22px) saturate(125%);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
  overscroll-behavior: contain;
  transform: translateX(-50%);
  transform-origin: 50% 0;
}

.hh-mega-menu > section,
.hh-mega-menu > div,
.hh-mega-menu > li {
  min-width: 0;
}

.hh-mega-menu h2,
.hh-mega-menu h3,
.hh-mega-menu strong {
  display: block;
  margin-bottom: .5rem;
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-serif);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}

.hh-mega-menu ul,
.hh-mega-menu ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hh-mega-menu li + li {
  border-top: 1px solid var(--hh-color-line-soft);
}

.hh-mega-menu a {
  display: flex;
  min-height: 2.6rem;
  align-items: center;
  padding: .4rem .25rem;
  color: var(--hh-color-muted);
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
}

.hh-mega-menu a[aria-current="page"] {
  color: var(--hh-color-warm-ivory);
  font-weight: 700;
}

.hh-theme-toggle {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem .75rem;
  border: 1px solid var(--hh-color-line);
  border-radius: var(--hh-radius-sm);
  background: var(--hh-theme-subtle-green);
  color: var(--hh-color-warm-ivory);
  font-size: .75rem;
  font-weight: 700;
}

.hh-theme-toggle [aria-hidden="true"] {
  color: var(--hh-color-old-gold);
  font-size: 1rem;
  line-height: 1;
}

.hh-theme-toggle[aria-pressed="true"] {
  border-color: var(--hh-color-old-gold-muted);
}

/* Homepage gateways, editorial modules, and generated statistics. */

.hh-home-gateways,
.hh-home-stats,
.hh-about-series,
.hh-feature-pair,
.hh-character-library,
.hh-all-articles,
.hh-media-guide,
.hh-official-links,
.hh-article-gallery {
  margin-top: var(--hh-space-8);
}

.hh-home-gateways,
.hh-feature-pair,
.hh-media-guide,
.hh-official-links,
.hh-article-gallery {
  display: grid;
  margin-bottom: 0;
  padding-left: 0;
  gap: 1rem;
  list-style: none;
}

.hh-home-gateways {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hh-home-gateways > :is(header, h2, p, .hh-section-index),
.hh-media-guide > :is(header, h2, p, .hh-section-index) {
  grid-column: 1 / -1;
}

.hh-home-gateways > :is(a, article, section),
.hh-feature-pair > :is(a, article, section),
.hh-media-guide > :is(a, article, section),
.hh-official-links > :is(a, article, section) {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--hh-color-line-soft);
  background: var(--hh-theme-subtle);
}

.hh-home-gateways > a,
.hh-feature-pair > a,
.hh-media-guide > a,
.hh-official-links > a {
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-home-gateways figure,
.hh-media-guide figure {
  aspect-ratio: 16 / 10;
  margin: -1rem -1rem 1rem;
  overflow: hidden;
  background: var(--hh-color-hunter-green);
}

.hh-home-gateways img,
.hh-media-guide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-home-gateways strong,
.hh-feature-pair h2,
.hh-feature-pair h3,
.hh-media-guide strong,
.hh-media-guide h3,
.hh-official-links strong {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--hh-font-serif);
  font-weight: 600;
  line-height: 1.45;
}

.hh-home-gateways small,
.hh-media-guide small,
.hh-official-links small {
  display: block;
  color: var(--hh-color-muted);
  font-size: .74rem;
  line-height: 1.6;
}

.hh-home-stats {
  display: grid;
  margin-bottom: 0;
  padding: 1px;
  border: 1px solid var(--hh-color-line);
  background: var(--hh-color-line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.hh-home-stats > :is(div, article, section) {
  min-width: 0;
  padding: 1rem 1.1rem;
  background: var(--hh-color-surface-raised);
}

.hh-home-stats :is(dt, small, span) {
  display: block;
  color: var(--hh-color-muted-strong);
  font-family: var(--hh-font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
}

.hh-home-stats :is(dd, strong, b) {
  display: block;
  margin: .35rem 0 0;
  color: var(--hh-color-warm-ivory);
  font-family: var(--hh-font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
}

.hh-about-series {
  display: grid;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--hh-color-line);
  background: var(--hh-theme-subtle);
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, .6fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.hh-about-series > * {
  min-width: 0;
}

.hh-about-series > :is(figure, aside) {
  margin: 0;
  padding: 1rem;
  border-left: 1px solid var(--hh-color-line);
}

.hh-about-series p:last-child {
  margin-bottom: 0;
}

.hh-feature-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hh-feature-pair > :is(a, article, section) {
  display: grid;
  align-content: start;
  gap: .65rem;
}

/* Character library and index controls. */

.hh-character-library {
  display: grid;
  margin-bottom: 0;
  padding-left: 0;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .85rem;
  list-style: none;
}

.hh-character-library > :is(header, h2, p, .hh-section-index, .hh-az-nav, .hh-index-controls) {
  grid-column: 1 / -1;
}

.hh-character-library > :is(a, article, li) {
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--hh-color-line-soft);
  background: var(--hh-theme-subtle);
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
}

.hh-character-library img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: .65rem;
  object-fit: cover;
  object-position: top center;
  background: var(--hh-color-hunter-green);
}

.hh-character-library strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--hh-font-serif);
  font-size: .88rem;
  line-height: 1.45;
}

.hh-character-library small {
  display: block;
  margin-top: .25rem;
  color: var(--hh-color-muted);
  font-size: .68rem;
}

.hh-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-block: 1rem;
}

.hh-az-nav a,
.hh-az-nav button {
  display: inline-grid;
  min-width: 2.65rem;
  min-height: 2.65rem;
  place-items: center;
  padding: .35rem .55rem;
  border: 1px solid var(--hh-color-line);
  background: var(--hh-color-surface-raised);
  color: var(--hh-color-muted);
  font-family: var(--hh-font-mono);
  font-size: .72rem;
  text-decoration: none;
}

.hh-az-nav :is(a, button)[aria-current="true"],
.hh-az-nav :is(a, button)[aria-pressed="true"] {
  border-color: var(--hh-color-old-gold);
  background: var(--hh-theme-subtle-green);
  color: var(--hh-color-warm-ivory);
}

.hh-index-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .65rem;
  margin-block: 1rem 1.5rem;
}

.hh-index-controls > :is(label, div, fieldset) {
  min-width: min(100%, 13rem);
  margin: 0;
}

.hh-index-controls > label:first-child,
.hh-index-controls > [data-index-search] {
  flex: 1 1 18rem;
}

.hh-index-controls label,
.hh-index-controls legend {
  color: var(--hh-color-muted);
  font-size: .72rem;
  font-weight: 700;
}

.hh-index-controls input,
.hh-index-controls select {
  width: 100%;
  min-height: 2.8rem;
  margin-top: .3rem;
  padding: .55rem .7rem;
  border: 1px solid var(--hh-color-line);
  border-radius: var(--hh-radius-sm);
  background: var(--hh-theme-field);
  color: var(--hh-color-warm-ivory);
}

.hh-filter-chip {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: .4rem .75rem;
  border: 1px solid var(--hh-color-line);
  border-radius: 999px;
  background: transparent;
  color: var(--hh-color-muted);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}

.hh-filter-chip:is([aria-pressed="true"], [aria-current="true"], [data-active="true"], .is-active) {
  border-color: var(--hh-color-old-gold);
  background: var(--hh-theme-subtle-green);
  color: var(--hh-color-warm-ivory);
}

.hh-all-articles {
  display: grid;
  gap: 1rem;
}

.hh-index-group {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--hh-color-line);
  background: var(--hh-theme-panel-start);
  scroll-margin-top: 6rem;
}

.hh-index-group > :is(h2, h3) {
  margin-bottom: .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--hh-color-line);
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-index-group > :is(ul, ol) {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0 1rem;
}

.hh-index-group li {
  min-width: 0;
  border-top: 1px solid var(--hh-color-line-soft);
}

.hh-index-group li a {
  display: grid;
  min-height: 3rem;
  align-content: center;
  padding-block: .5rem;
  color: var(--hh-color-muted);
  font-size: .8rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.hh-index-group li a small {
  color: var(--hh-color-muted-strong);
  font-size: .66rem;
}

/* Media cards, official destinations, quotations, volumes, and random media. */

.hh-media-guide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hh-official-links {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.hh-official-links > a {
  position: relative;
  display: grid;
  min-height: 5.5rem;
  align-content: center;
  padding-right: 3rem;
}

.hh-official-links > a::after {
  position: absolute;
  right: 1rem;
  color: var(--hh-color-old-gold);
  content: "↗";
  font-size: 1.1rem;
}

.hh-quote-card,
.hh-volume-card,
.hh-random-media {
  margin-top: var(--hh-space-8);
  border: 1px solid var(--hh-color-line);
  background: var(--hh-theme-subtle);
}

.hh-quote-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-left: .25rem solid var(--hh-color-old-gold);
}

.hh-quote-card::before {
  position: absolute;
  top: .2rem;
  left: .75rem;
  color: color-mix(in srgb, var(--hh-color-old-gold) 35%, transparent);
  content: "“";
  font-family: var(--hh-font-serif);
  font-size: 5rem;
  line-height: 1;
  pointer-events: none;
}

.hh-quote-card blockquote {
  position: relative;
  max-width: 46ch;
  margin: 0;
  font-family: var(--hh-font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.7;
}

.hh-quote-card cite,
.hh-quote-card footer {
  display: block;
  margin-top: 1rem;
  color: var(--hh-color-muted);
  font-size: .76rem;
  font-style: normal;
}

.hh-volume-card {
  display: grid;
  align-items: center;
  padding: 1rem;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: 1.25rem;
}

.hh-volume-card > * {
  min-width: 0;
}

.hh-volume-card img {
  width: 100%;
  max-height: 17rem;
  object-fit: contain;
  background: var(--hh-color-surface-raised);
}

.hh-volume-card h2,
.hh-volume-card h3 {
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-random-media {
  display: grid;
  align-items: center;
  padding: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, .8fr);
  gap: 1.25rem;
}

.hh-random-media figure {
  margin: 0;
}

.hh-random-media img {
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  background: var(--hh-color-surface-raised);
}

.hh-random-media figcaption {
  margin-top: .55rem;
  color: var(--hh-color-muted);
  font-size: .72rem;
  line-height: 1.55;
}

/* Article taxonomy, utility controls, galleries, sources, and updates. */

.hh-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-block: 1.25rem;
}

.hh-taxonomy > :is(ul, ol) {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hh-taxonomy li {
  display: flex;
}

.hh-taxonomy a,
.hh-taxonomy span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: .25rem .6rem;
  border: 1px solid var(--hh-color-line-soft);
  background: var(--hh-theme-subtle);
  color: var(--hh-color-muted);
  font-size: .68rem;
  line-height: 1.3;
  text-decoration: none;
}

.hh-page-tools {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
  margin-block: 1rem;
}

.hh-page-tools :is(a, button, summary) {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding: .4rem .7rem;
  border: 1px solid var(--hh-color-line);
  background: var(--hh-theme-subtle);
  color: var(--hh-color-muted);
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
}

.hh-page-tools details {
  position: relative;
}

.hh-page-tools summary {
  list-style: none;
}

.hh-page-tools summary::-webkit-details-marker {
  display: none;
}

.hh-page-tools details > :not(summary) {
  position: absolute;
  z-index: 20;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 13rem;
  padding: .5rem;
  border: 1px solid var(--hh-color-line);
  background: var(--hh-color-surface-raised);
  box-shadow: var(--hh-theme-floating-shadow);
}

.hh-article-gallery {
  display: block;
}

.hh-article-gallery .hh-gallery-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
}

.hh-article-gallery > figure,
.hh-article-gallery .hh-gallery-grid > figure {
  min-width: 0;
  margin: 0;
  padding: .6rem;
  border: 1px solid var(--hh-color-line-soft);
  background: var(--hh-theme-media);
}

.hh-article-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--hh-color-surface-raised);
}

.hh-article-gallery figcaption {
  margin-top: .55rem;
  color: var(--hh-color-muted);
  font-size: .7rem;
  line-height: 1.55;
}

.hh-source-list {
  max-width: var(--hh-measure);
  margin-block: 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.hh-source-list li {
  display: grid;
  min-width: 0;
  padding: .8rem 0;
  border-top: 1px solid var(--hh-color-line-soft);
  color: var(--hh-color-muted);
  font-size: .78rem;
  line-height: 1.65;
  counter-increment: source;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .5rem;
}

.hh-source-list li::before {
  color: var(--hh-color-old-gold-muted);
  content: counter(source, decimal-leading-zero);
  font-family: var(--hh-font-mono);
  font-size: .65rem;
}

.hh-source-list li:has(> .hh-source-number)::before {
  display: none;
}

.hh-source-number {
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-mono);
  font-size: .65rem;
}

.hh-source-list small {
  display: block;
  margin-top: .25rem;
  color: var(--hh-color-muted-strong);
  font-size: .68rem;
}

.hh-source-list a {
  color: var(--hh-color-link);
  overflow-wrap: anywhere;
}

.hh-update-feed {
  max-width: var(--hh-measure);
  margin-block: 1.5rem;
  padding: 0;
  list-style: none;
}

.hh-update-feed > :is(li, article) {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 1px solid var(--hh-color-line);
  grid-template-columns: minmax(6.5rem, .25fr) minmax(0, 1fr);
  gap: 1rem;
}

.hh-update-feed > :is(li, article)::before {
  position: absolute;
  top: 1.45rem;
  left: -.31rem;
  width: .55rem;
  height: .55rem;
  border: 1px solid var(--hh-color-old-gold);
  background: var(--hh-color-canvas);
  content: "";
  transform: rotate(45deg);
}

.hh-update-feed time {
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
}

.hh-update-feed h2,
.hh-update-feed h3 {
  margin-bottom: .3rem;
  font-family: var(--hh-font-serif);
  font-size: 1rem;
  font-weight: 500;
}

.hh-update-feed p:last-child {
  margin-bottom: 0;
  color: var(--hh-color-muted);
  font-size: .78rem;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hh-home-gateways > :is(a, article, section),
  .hh-feature-pair > :is(a, article, section),
  .hh-character-library > :is(a, article, li),
  .hh-media-guide > :is(a, article, section),
  .hh-official-links > :is(a, article, section),
  .hh-az-nav :is(a, button),
  .hh-filter-chip,
  .hh-taxonomy a {
    transition: border-color var(--hh-duration-ui) var(--hh-ease-out),
      background-color var(--hh-duration-ui) var(--hh-ease-out),
      color var(--hh-duration-ui) var(--hh-ease-out),
      transform var(--hh-duration-ui) var(--hh-ease-out);
  }

  .hh-home-gateways > :is(a, article, section):hover,
  .hh-feature-pair > :is(a, article, section):hover,
  .hh-character-library > :is(a, article, li):hover,
  .hh-media-guide > :is(a, article, section):hover,
  .hh-official-links > :is(a, article, section):hover {
    border-color: var(--hh-color-old-gold-muted);
    transform: translateY(-2px);
  }

  .hh-mega-menu a:hover,
  .hh-index-group li a:hover,
  .hh-az-nav :is(a, button):hover,
  .hh-filter-chip:hover,
  .hh-taxonomy a:hover {
    color: var(--hh-color-warm-ivory);
  }
}

@media (max-width: 69.99rem) {
  .hh-header-inner > .hh-mega-nav {
    display: none;
  }

  .hh-mobile-nav .hh-mega-nav {
    position: static;
    display: grid;
    width: 100%;
    align-self: auto;
    gap: 0;
  }

  .hh-mobile-nav .hh-mega-nav > details {
    border-top: 1px solid var(--hh-color-line-soft);
  }

  .hh-mobile-nav .hh-mega-nav > details > summary {
    justify-content: space-between;
    padding: .6rem .75rem;
    border-bottom: 0;
  }

  .hh-mobile-nav .hh-mega-menu {
    position: static;
    width: 100%;
    max-height: min(58dvh, 32rem);
    padding: .75rem;
    border-width: 1px 0 0;
    box-shadow: none;
    backdrop-filter: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    transform: none;
  }

  .hh-home-gateways,
  .hh-media-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hh-feature-pair,
  .hh-about-series,
  .hh-random-media {
    grid-template-columns: 1fr;
  }

  .hh-about-series > :is(figure, aside) {
    padding: 1rem 0 0;
    border-top: 1px solid var(--hh-color-line);
    border-left: 0;
  }

  .hh-random-media {
    align-items: start;
  }
}

@media (max-width: 47.99rem) {
  .hh-theme-toggle {
    min-width: 2.75rem;
    padding-inline: .55rem;
  }

  .hh-theme-toggle .hh-theme-toggle__label {
    display: none;
  }

  .hh-mobile-nav .hh-mega-menu,
  .hh-home-gateways,
  .hh-media-guide,
  .hh-official-links {
    grid-template-columns: 1fr;
  }

  .hh-home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hh-character-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .hh-index-controls {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hh-index-controls > :is(label, div, fieldset) {
    min-width: 0;
  }

  .hh-index-group > :is(ul, ol) {
    grid-template-columns: 1fr;
  }

  .hh-volume-card {
    grid-template-columns: 1fr;
  }

  .hh-volume-card img {
    max-width: 12rem;
    justify-self: center;
  }

  .hh-page-tools {
    justify-content: flex-start;
  }

  .hh-page-tools details > :not(summary) {
    right: auto;
    left: 0;
    max-width: calc(100vw - 2rem);
  }

  .hh-article-gallery .hh-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .hh-article-gallery > figure,
  .hh-article-gallery .hh-gallery-grid > figure {
    padding: .4rem;
  }

  .hh-update-feed > :is(li, article) {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hh-home-gateways > :is(a, article, section),
  .hh-feature-pair > :is(a, article, section),
  .hh-character-library > :is(a, article, li),
  .hh-media-guide > :is(a, article, section),
  .hh-official-links > :is(a, article, section) {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hh-site-header,
  .hh-mega-menu,
  .hh-search-dialog,
  .hh-page-tools details > :not(summary) {
    background: var(--hh-color-surface);
    backdrop-filter: none;
  }

  .hh-search-dialog::backdrop {
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --hh-color-line: #92aa9a;
    --hh-color-line-soft: #526b5a;
  }

  html[data-theme="light"] {
    --hh-color-line: #31483a;
    --hh-color-line-soft: #788b7d;
  }

  .hh-panel,
  .hh-mega-menu,
  .hh-home-gateways > :is(a, article, section),
  .hh-feature-pair > :is(a, article, section),
  .hh-character-library > :is(a, article, li),
  .hh-media-guide > :is(a, article, section),
  .hh-official-links > :is(a, article, section),
  .hh-index-group,
  .hh-quote-card,
  .hh-volume-card,
  .hh-random-media {
    box-shadow: none;
  }

  :focus-visible {
    outline-width: 3px;
  }
}

@media (forced-colors: active) {
  .hh-mega-menu,
  .hh-filter-chip,
  .hh-taxonomy a,
  .hh-page-tools :is(a, button, summary) {
    border-color: CanvasText;
    forced-color-adjust: auto;
  }
}

/* Generated reference-parity markup refinements. */

.hh-header-inner {
  grid-template-columns: minmax(12rem, 1fr) auto auto auto;
  gap: clamp(.45rem, 1vw, .9rem);
}

.hh-mega-panel > strong {
  grid-column: 1 / -1;
  margin: 0;
}

.hh-mega-root[data-current] > summary {
  color: var(--hh-color-warm-ivory);
}

.hh-gateway-card {
  display: grid;
  overflow: hidden;
  padding: 0 !important;
  grid-template-rows: auto 1fr;
}

.hh-gateway-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hh-color-hunter-green);
}

.hh-gateway-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hh-gateway-copy {
  display: grid;
  align-content: start;
  padding: 1rem;
  gap: .3rem;
}

.hh-home-stats > li {
  min-width: 0;
  padding: 1rem 1.1rem;
  background: var(--hh-color-surface-raised);
  list-style: none;
}

.hh-about-series {
  grid-template-columns: 1fr;
}

.hh-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.hh-section-heading output {
  flex: 0 0 auto;
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-mono);
  font-size: .74rem;
}

.hh-character-library {
  display: block;
}

.hh-character-rows {
  display: grid;
  gap: 1rem;
}

.hh-character-row {
  padding: 1rem;
  border: 1px solid var(--hh-color-line);
  background: var(--hh-theme-panel-start);
  scroll-margin-top: 6rem;
}

.hh-character-row > h3 {
  margin-bottom: .8rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--hh-color-line-soft);
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-character-row > ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: .65rem;
}

.hh-character-row [data-character-item] {
  min-width: 0;
  border: 1px solid var(--hh-color-line-soft);
  background: var(--hh-theme-subtle);
}

.hh-character-row [data-character-item] > a {
  display: grid;
  min-height: 3.4rem;
  align-items: center;
  padding: .6rem;
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .6rem;
}

.hh-character-index-media {
  width: 2.8rem;
  height: 2.8rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--hh-color-hunter-green);
}

.hh-character-index-image {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: top center;
}

.hh-category-index {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.hh-category-index .hh-filter-chip {
  justify-content: space-between;
  gap: .6rem;
}

.hh-category-index .hh-filter-chip strong {
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-mono);
}

.hh-index-groups {
  display: grid;
  gap: 1rem;
}

.hh-index-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--hh-color-line);
}

.hh-index-group > header h3 {
  margin: 0;
  color: var(--hh-color-old-gold);
  font-family: var(--hh-font-serif);
  font-weight: 500;
}

.hh-index-group > header span {
  color: var(--hh-color-muted);
  font-family: var(--hh-font-mono);
  font-size: .68rem;
}

.hh-latest-anime {
  display: grid;
  align-items: center;
  margin-top: var(--hh-space-8);
  grid-template-columns: minmax(0, .85fr) minmax(18rem, 1.15fr);
  gap: 1.25rem;
}

.hh-latest-anime time,
.hh-volume-card time {
  display: block;
  margin-block: .5rem;
  color: var(--hh-color-old-gold-muted);
  font-family: var(--hh-font-mono);
  font-size: .68rem;
}

.hh-anime-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}

.hh-anime-preview figure {
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: var(--hh-color-hunter-green);
}

.hh-anime-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hh-media-guide > div,
.hh-official-links > ul {
  display: grid;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .75rem;
}

.hh-media-guide > div > a,
.hh-official-links li > a {
  display: grid;
  min-height: 5.5rem;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--hh-color-line-soft);
  background: var(--hh-theme-subtle);
  color: var(--hh-color-warm-ivory);
  text-decoration: none;
  gap: .25rem;
}

.hh-media-guide > div > a span,
.hh-official-links li > a span,
.hh-official-links li > a small {
  color: var(--hh-color-muted);
  font-size: .7rem;
}

.hh-editorial-pair {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.hh-quote-card figcaption {
  margin-top: 1rem;
  color: var(--hh-color-muted);
  font-size: .76rem;
}

.hh-random-media > .hh-section-index,
.hh-random-media > h2 {
  grid-column: 1 / -1;
}

.hh-random-media > a {
  grid-column: 1;
  grid-row: 3 / span 3;
}

.hh-random-media > button {
  align-self: start;
  justify-self: start;
  grid-column: 2;
}

.hh-sources {
  margin-top: var(--hh-space-12);
}

.hh-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, .3fr);
  gap: .75rem;
}

.hh-search-controls label {
  color: var(--hh-color-muted);
  font-size: .75rem;
}

.hh-search-controls select {
  width: 100%;
  min-height: 3rem;
  margin-top: .35rem;
  padding: .7rem .8rem;
  border: 1px solid var(--hh-color-line);
  border-radius: var(--hh-radius-sm);
  background: var(--hh-theme-field);
  color: var(--hh-color-warm-ivory);
}

@media (max-width: 69.99rem) {
  .hh-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .hh-mobile-nav .hh-mega-nav {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    width: min(22rem, calc(100vw - 1rem));
    max-height: min(76dvh, 42rem);
    overflow: auto;
    background: var(--hh-color-surface);
    box-shadow: var(--hh-theme-floating-shadow);
  }

  .hh-latest-anime,
  .hh-editorial-pair {
    grid-template-columns: 1fr;
  }

  .hh-random-media > a,
  .hh-random-media > button {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 47.99rem) {
  .hh-search-open,
  .hh-theme-toggle {
    width: 2.75rem;
    min-width: 2.75rem;
    padding-inline: .45rem;
  }

  .hh-search-open__label,
  .hh-theme-toggle__label {
    display: none;
  }

  .hh-brand small {
    display: none;
  }

  .hh-section-heading,
  .hh-search-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hh-character-row > ul,
  .hh-media-guide > div,
  .hh-official-links > ul {
    grid-template-columns: 1fr;
  }

  .hh-anime-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
