.com-heroji {
  --heroji-surface: var(--surface, #fffefa);
  --heroji-surface-soft: var(--surface-soft, #f2f0ea);
  --heroji-surface-muted: var(--surface-muted, #e2e5dd);
  --heroji-text: var(--text, #242221);
  --heroji-muted: var(--text-muted, #625f5b);
  --heroji-accent: var(--accent, #4b111f);
  --heroji-accent-strong: var(--accent-strong, #250a10);
  --heroji-gold: var(--highlight, #c6a04b);
  --heroji-border: var(--border, rgba(52, 42, 37, 0.16));
  --heroji-shadow: 0 18px 44px rgba(38, 31, 28, 0.1);
  color: var(--heroji-text);
}

.com-heroji.heroji-explore {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.com-heroji .heroji-explore-header {
  max-width: 64rem;
}

.com-heroji .heroji-explore-header h1 {
  margin: 0;
  color: var(--heroji-accent-strong);
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.04;
}

.com-heroji .heroji-explore-header > p:not(.heroji-kicker) {
  max-width: 52rem;
  margin: 0.85rem 0 0;
  color: var(--heroji-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.com-heroji .heroji-explore-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-block-start: 1.25rem;
}

.com-heroji .heroji-explore-jump a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  padding: 0.45rem 0.85rem;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-explore-jump a:hover,
.com-heroji .heroji-explore-jump a:focus {
  color: #fff;
  background: var(--heroji-accent);
  border-color: var(--heroji-accent);
}

.com-heroji .heroji-explore-section {
  scroll-margin-top: 7rem;
}

.com-heroji .heroji-explore-section > .heroji-section-heading {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem 2rem;
  align-items: end;
  margin-block-end: 1.25rem;
  padding-block-end: 0.85rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-explore-section > .heroji-section-heading h2 {
  margin: 0;
  color: var(--heroji-accent-strong);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.com-heroji .heroji-explore-section > .heroji-section-heading > p {
  max-width: 50rem;
  margin: 0;
  color: var(--heroji-muted);
  line-height: 1.6;
}

.com-heroji .heroji-exhibition-list {
  display: grid;
  gap: 1rem;
}

.com-heroji .heroji-exhibition {
  overflow: hidden;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(38, 31, 28, 0.07);
}

.com-heroji .heroji-exhibition > header {
  display: grid;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  gap: 1rem 2rem;
  align-items: end;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--heroji-gold) 9%, var(--heroji-surface));
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-exhibition h3 {
  margin: 0.15rem 0 0;
  color: var(--heroji-accent-strong);
  font-size: 1.45rem;
}

.com-heroji .heroji-exhibition > header > p {
  margin: 0;
  color: var(--heroji-muted);
  line-height: 1.55;
}

.com-heroji .heroji-exhibition-count {
  margin: 0;
  color: var(--heroji-accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.com-heroji .heroji-exhibition-strip {
  display: grid;
  grid-auto-columns: minmax(11rem, 14rem);
  grid-auto-flow: column;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 1rem;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--heroji-gold) var(--heroji-surface-soft);
}

.com-heroji .heroji-memorial-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 1rem 1.15rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-memorial-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
  padding-inline: 1rem;
  border-inline-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-memorial-summary > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.com-heroji .heroji-memorial-summary dt {
  color: var(--heroji-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.com-heroji .heroji-memorial-summary dd {
  order: -1;
  margin: 0;
  color: var(--heroji-accent-strong);
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.com-heroji .heroji-memorial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-columns: auto;
  grid-auto-flow: row;
  overflow: visible;
}

.com-heroji .heroji-memorial-grid .heroji-exhibition-item {
  grid-template-rows: 10.5rem auto auto;
}

.com-heroji .heroji-exhibition-footer {
  display: flex;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem 1.1rem;
  background: var(--heroji-surface-soft);
  border-block-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-exhibition-footer p {
  max-width: 48rem;
  margin: 0;
  color: var(--heroji-muted);
  line-height: 1.5;
}

.com-heroji .heroji-exhibition-footer .button {
  flex: 0 0 auto;
}

.com-heroji .heroji-exhibition-item {
  display: grid;
  grid-template-rows: 9.5rem auto auto;
  gap: 0.35rem;
  min-width: 0;
  color: var(--heroji-accent-strong);
  text-decoration: none;
}

.com-heroji .heroji-exhibition-media {
  display: grid;
  overflow: hidden;
  place-items: center;
  color: var(--heroji-accent);
  background: var(--heroji-surface-soft);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 3rem;
  font-weight: 800;
}

.com-heroji .heroji-exhibition-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.com-heroji .heroji-exhibition-item strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.com-heroji .heroji-exhibition-item small {
  color: var(--heroji-muted);
}

.com-heroji .heroji-exhibition-item:hover strong,
.com-heroji .heroji-exhibition-item:focus strong {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-municipality-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.55rem;
}

.com-heroji .heroji-municipality-index a {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  text-decoration: none;
}

.com-heroji .heroji-municipality-index a span {
  color: var(--heroji-muted);
  font-size: 0.82rem;
}

.com-heroji .heroji-municipality-index a:hover,
.com-heroji .heroji-municipality-index a:focus,
.com-heroji .heroji-municipality-index a.is-active {
  color: #fff;
  background: var(--heroji-accent);
  border-color: var(--heroji-accent);
}

.com-heroji .heroji-municipality-index a:hover span,
.com-heroji .heroji-municipality-index a:focus span,
.com-heroji .heroji-municipality-index a.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.com-heroji .heroji-municipality-detail {
  margin-block-start: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: color-mix(in srgb, var(--heroji-surface) 92%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-municipality-detail > header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.com-heroji .heroji-municipality-detail h3 {
  margin: 0;
  color: var(--heroji-accent-strong);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.com-heroji .heroji-municipality-detail > header > a {
  color: var(--heroji-accent);
  font-weight: 800;
}

.com-heroji .heroji-municipality-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0 0;
  border-block: 1px solid var(--heroji-border);
}

.com-heroji .heroji-municipality-stats div {
  padding: 0.8rem;
  text-align: center;
}

.com-heroji .heroji-municipality-stats dt {
  color: var(--heroji-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.com-heroji .heroji-municipality-stats dd {
  margin: 0.15rem 0 0;
  color: var(--heroji-accent);
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.75rem;
  font-weight: 800;
}

.com-heroji .heroji-municipality-group {
  margin-block-start: 1.25rem;
}

.com-heroji .heroji-municipality-group h4,
.com-heroji .heroji-municipality-related h4 {
  margin: 0 0 0.7rem;
  color: var(--heroji-accent-strong);
  font-size: 1.2rem;
}

.com-heroji .heroji-municipality-heroes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.55rem;
}

.com-heroji .heroji-municipality-heroes a {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.15rem 0.65rem;
  align-items: center;
  padding: 0.55rem;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  text-decoration: none;
}

.com-heroji .heroji-municipality-heroes a > span {
  display: grid;
  grid-row: span 2;
  width: 3.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  color: var(--heroji-accent);
  background: var(--heroji-surface-soft);
  border-radius: 4px;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.5rem;
  font-weight: 800;
}

.com-heroji .heroji-municipality-heroes img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.com-heroji .heroji-municipality-heroes small {
  color: var(--heroji-muted);
  overflow-wrap: anywhere;
}

.com-heroji .heroji-municipality-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block-start: 1.25rem;
}

.com-heroji .heroji-municipality-related section {
  min-width: 0;
  padding: 0.85rem;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
}

.com-heroji .heroji-municipality-related ul,
.com-heroji .heroji-explore-popup ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.com-heroji .heroji-municipality-related li {
  display: grid;
  gap: 0.1rem;
}

.com-heroji .heroji-municipality-related a {
  color: var(--heroji-accent);
  font-weight: 800;
}

.com-heroji .heroji-municipality-related span {
  color: var(--heroji-muted);
  font-size: 0.85rem;
}

.com-heroji .heroji-explore-map-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
  min-height: 34rem;
  overflow: hidden;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-map-layers {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  margin: 0;
  padding: 1rem;
  border: 0;
  border-inline-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-map-layers legend {
  width: 100%;
  margin-block-end: 0.45rem;
  color: var(--heroji-accent-strong);
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 800;
}

.com-heroji .heroji-map-layers label {
  display: grid;
  grid-template-columns: auto 0.8rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  min-height: 2.25rem;
  cursor: pointer;
  font-weight: 750;
}

.com-heroji .heroji-map-layers label > span {
  width: 0.8rem;
  height: 0.8rem;
  background: var(--layer-color);
  border-radius: 50%;
}

.com-heroji .heroji-map-layers .is-birth { --layer-color: #2d6f62; }
.com-heroji .heroji-map-layers .is-death { --layer-color: #6b0f1d; }
.com-heroji .heroji-map-layers .is-monument { --layer-color: #b1842f; }
.com-heroji .heroji-map-layers .is-event { --layer-color: #315a82; }

.com-heroji .heroji-map-layers label small {
  color: var(--heroji-muted);
  font-weight: 700;
}

.com-heroji .heroji-map-layers > p {
  margin: 0.75rem 0 0;
  color: var(--heroji-muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.com-heroji .heroji-explore-map {
  position: relative;
  z-index: 0;
  min-height: 34rem;
}

.heroji-explore-marker-wrap {
  background: transparent;
  border: 0;
}

.heroji-explore-marker {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--marker-color);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 12px rgba(23, 20, 19, 0.3);
  font-size: 0.7rem;
  transform: rotate(-45deg);
}

.heroji-explore-marker strong {
  transform: rotate(45deg);
}

.heroji-explore-cluster-wrap {
  position: absolute;
  z-index: 1000 !important;
  background: transparent;
  border: 0;
}

.heroji-explore-cluster {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  background: var(--cluster-color, #4b5153);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--cluster-ring, #d5d2ca),
    0 6px 18px rgba(23, 20, 19, 0.32);
  font-family: var(--font-heading, Georgia, serif);
  line-height: 1;
}

.heroji-explore-cluster strong {
  font-size: 0.92rem;
}

.heroji-explore-cluster.is-medium strong {
  font-size: 1rem;
}

.heroji-explore-cluster.is-large strong,
.heroji-explore-cluster.is-xlarge strong {
  font-size: 1.08rem;
}

.heroji-explore-cluster-wrap:focus {
  outline: 3px solid #4b5153;
  outline-offset: 4px;
}

.heroji-explore-popup {
  min-width: min(18rem, 70vw);
}

.heroji-explore-popup li {
  display: grid;
  gap: 0.1rem;
  padding-block: 0.3rem;
  border-block-end: 1px solid rgba(52, 42, 37, 0.12);
}

.heroji-explore-popup a {
  color: #6b0f1d;
  font-weight: 800;
}

.heroji-explore-popup small,
.heroji-explore-popup span {
  color: #625f5b;
}

.heroji-explore-popup .is-warning {
  margin: 0 0 0.45rem;
  padding: 0.4rem;
  color: #6b0f1d;
  background: #f7edcf;
  border-inline-start: 3px solid #b1842f;
  font-size: 0.82rem;
}

@media (max-width: 800px) {
  .com-heroji .heroji-explore-section > .heroji-section-heading,
  .com-heroji .heroji-exhibition > header,
  .com-heroji .heroji-explore-map-layout,
  .com-heroji .heroji-municipality-related {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-map-layers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-inline-end: 0;
    border-block-end: 1px solid var(--heroji-border);
  }

  .com-heroji .heroji-map-layers legend,
  .com-heroji .heroji-map-layers > p {
    grid-column: 1 / -1;
  }

  .com-heroji .heroji-explore-map {
    min-height: 27rem;
  }

  .com-heroji .heroji-memorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .com-heroji .heroji-exhibition-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .com-heroji .heroji-memorial-summary {
    grid-template-columns: 1fr;
    padding-block: 0.35rem;
  }

  .com-heroji .heroji-memorial-summary > div,
  .com-heroji .heroji-memorial-summary > div:first-child {
    padding: 0.7rem 0;
    border-block-start: 1px solid var(--heroji-border);
    border-inline-start: 0;
  }

  .com-heroji .heroji-memorial-summary > div:first-child {
    border-block-start: 0;
  }

  .com-heroji .heroji-memorial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .com-heroji .heroji-municipality-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .com-heroji .heroji-map-layers {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-map-layers legend,
  .com-heroji .heroji-map-layers > p {
    grid-column: auto;
  }
}

.com-heroji .page-header {
  max-width: 54rem;
  margin-block-end: clamp(1.25rem, 3vw, 2rem);
}

.com-heroji .page-header h1,
.com-heroji .heroji-profile h1,
.com-heroji .heroji-section h2 {
  margin-block: 0;
}

.com-heroji .page-header h1,
.com-heroji .heroji-profile h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.com-heroji .heroji-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.com-heroji .heroji-kicker {
  margin: 0 0 0.45rem;
  color: var(--heroji-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.com-heroji .heroji-page-intro {
  max-width: 42rem;
  margin-block: 0.65rem 0;
  color: var(--heroji-muted);
  font-size: 1.05rem;
}

.com-heroji .heroji-archive-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-block-start: 1rem;
}

.com-heroji .heroji-result-count {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.25rem 0.7rem;
  color: var(--heroji-accent-strong);
  background: color-mix(in srgb, var(--heroji-gold) 18%, var(--heroji-surface));
  border: 1px solid color-mix(in srgb, var(--heroji-gold) 45%, transparent);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.com-heroji .heroji-archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.com-heroji .heroji-archive-stats div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.35rem;
  align-items: baseline;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  background: color-mix(in srgb, var(--heroji-surface) 78%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 999px;
}

.com-heroji .heroji-archive-stats dt {
  color: var(--heroji-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.com-heroji .heroji-archive-stats dd {
  margin: 0;
  color: var(--heroji-accent);
  font-weight: 900;
}

.com-heroji .heroji-muted {
  color: var(--heroji-muted);
}

.com-heroji .heroji-study-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  gap: clamp(1rem, 3vw, 1.45rem);
  align-items: start;
  margin-block: 0 1.2rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  background:
    linear-gradient(135deg, rgba(198, 160, 75, 0.12), rgba(75, 17, 31, 0.04)),
    var(--heroji-surface);
  border-block: 1px solid var(--heroji-border);
}

.com-heroji .heroji-archive-context {
  margin-block-start: clamp(2rem, 5vw, 4rem);
  padding-block-start: clamp(1.25rem, 3vw, 2rem);
  border-block-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-study-copy {
  min-width: 0;
}

.com-heroji .heroji-study-copy h2 {
  max-width: 42rem;
  margin-block: 0;
  color: var(--heroji-accent-strong);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.12;
}

.com-heroji .heroji-study-copy p:not(.heroji-kicker) {
  max-width: 46rem;
  margin-block: 0.7rem 0;
  color: var(--heroji-muted);
  font-size: 1rem;
}

.com-heroji .heroji-study-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.com-heroji .heroji-study-source strong {
  color: var(--heroji-accent-strong);
}

.com-heroji .heroji-study-source span {
  color: var(--heroji-muted);
}

.com-heroji .heroji-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 0.7rem;
  margin: 0;
}

.com-heroji .heroji-study-metrics div {
  min-width: 0;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--heroji-surface) 88%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-study-metrics dt {
  color: var(--heroji-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.com-heroji .heroji-study-metrics dd {
  margin: 0.15rem 0 0;
  color: var(--heroji-accent);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.com-heroji .heroji-study-metrics p {
  margin-block: 0.35rem 0;
  color: var(--heroji-muted);
  font-size: 0.9rem;
}

.com-heroji .heroji-study-notes {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.com-heroji .heroji-study-notes p {
  margin: 0;
  padding-inline-start: 0.85rem;
  color: var(--heroji-text);
  border-inline-start: 3px solid var(--heroji-gold);
}

.com-heroji.heroji-home {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.com-heroji .heroji-home-lead {
  display: grid;
  gap: 0.85rem;
  max-width: 56rem;
}

.com-heroji .heroji-home-lead h1 {
  margin: 0;
  color: var(--heroji-accent-strong);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.com-heroji .heroji-home-lead p:not(.heroji-kicker) {
  max-width: 48rem;
  margin: 0;
  color: var(--heroji-muted);
  font-size: 1.08rem;
}

.com-heroji .heroji-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.herojicg.is-homepage .com-heroji .heroji-home-lead {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
  max-width: none;
}

.herojicg.is-homepage .com-heroji .heroji-home-lead > .heroji-kicker,
.herojicg.is-homepage .com-heroji .heroji-home-lead > h1 {
  display: none;
}

.herojicg.is-homepage .com-heroji .heroji-home-lead > p:not(.heroji-kicker) {
  grid-column: 1;
}

.herojicg.is-homepage .com-heroji .heroji-home-actions {
  grid-row: 1;
  grid-column: 2;
  justify-content: flex-end;
}

.com-heroji .heroji-home-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.com-heroji .heroji-home-stats div {
  position: relative;
  min-width: 0;
  padding: 0.9rem 1rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--heroji-surface) 94%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-home-stats div::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  content: "";
  background: var(--heroji-gold);
}

.com-heroji .heroji-home-stats dt {
  color: var(--heroji-muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.com-heroji .heroji-home-stats dd {
  margin: 0.2rem 0 0;
  color: var(--heroji-accent);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 950;
  line-height: 1;
}

.com-heroji .heroji-home-current {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  gap: 0.9rem;
  align-items: start;
}

.com-heroji .heroji-home-panel {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.25rem);
  background: color-mix(in srgb, var(--heroji-surface) 90%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(38, 31, 28, 0.06);
}

.com-heroji .heroji-home-news {
  border-block-start: 3px solid var(--heroji-gold);
}

.com-heroji .heroji-home-today {
  border-block-start: 3px solid var(--heroji-accent);
}

.com-heroji .heroji-section-heading-compact {
  margin-block-end: 0.25rem;
}

.com-heroji .heroji-section-heading-compact h2,
.com-heroji .heroji-section-heading-compact p {
  margin-block-start: 0;
}

.com-heroji .heroji-news-list,
.com-heroji .heroji-today-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.com-heroji .heroji-news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
  padding-block: 1rem;
  border-block-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-news-item.has-image {
  grid-template-columns: minmax(8.5rem, 10.5rem) minmax(0, 1fr);
}

.com-heroji .heroji-news-item:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}

.com-heroji .heroji-news-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--heroji-surface-soft);
  border: 1px solid var(--heroji-border);
  border-radius: 7px;
}

.com-heroji .heroji-news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.3rem;
  background: var(--heroji-surface-soft, #f3f0e8);
}

.com-heroji .heroji-news-content {
  min-width: 0;
}

.com-heroji .heroji-news-item.no-image .heroji-news-content {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
}

.com-heroji .heroji-news-item.no-image time {
  grid-row: 1 / span 3;
  grid-column: 1;
  padding-block-start: 0.2rem;
}

.com-heroji .heroji-news-item.no-image h3,
.com-heroji .heroji-news-item.no-image p {
  grid-column: 2;
}

.com-heroji .heroji-news-item time {
  color: var(--heroji-accent);
  font-size: 0.8rem;
  font-weight: 850;
}

.com-heroji .heroji-news-item h3,
.com-heroji .heroji-news-item p {
  margin: 0;
}

.com-heroji .heroji-news-item h3 {
  margin-block-start: 0.15rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.com-heroji .heroji-news-item h3 a,
.com-heroji .heroji-today-list a {
  color: var(--heroji-text);
  text-decoration: none;
}

.com-heroji .heroji-news-item h3 a:hover,
.com-heroji .heroji-news-item h3 a:focus,
.com-heroji .heroji-today-list a:hover strong,
.com-heroji .heroji-today-list a:focus strong {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-news-item p {
  margin-block-start: 0.35rem;
  color: var(--heroji-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.com-heroji .heroji-today-list {
  padding: 0;
  list-style: none;
}

.com-heroji .heroji-today-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.72rem 0;
  border-block-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-today-list li:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}

.com-heroji .heroji-today-list a {
  display: grid;
  gap: 0.15rem;
}

.com-heroji .heroji-today-list a span {
  color: var(--heroji-accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.com-heroji .heroji-today-list a strong {
  color: var(--heroji-text);
  font-size: 1.02rem;
  line-height: 1.22;
}

.com-heroji .heroji-today-list p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin: 0;
  color: var(--heroji-muted);
  font-size: 0.92rem;
}

.com-heroji .heroji-today-list p span {
  color: var(--heroji-text);
}

.com-heroji .heroji-empty-inline {
  margin: 0;
  padding: 0.8rem;
  color: var(--heroji-muted);
  background: color-mix(in srgb, var(--heroji-surface) 76%, var(--heroji-surface-soft));
  border: 1px dashed var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-today-empty {
  display: grid;
  gap: 0.7rem;
}

.com-heroji .heroji-today-empty .heroji-card-action {
  justify-self: start;
}

.com-heroji .heroji-study-overview-home {
  margin-block: 0;
}

.com-heroji .heroji-home-heroines {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  background:
    linear-gradient(135deg, rgba(75, 17, 31, 0.08), rgba(198, 160, 75, 0.11)),
    var(--heroji-surface);
  border-block: 1px solid color-mix(in srgb, var(--heroji-gold) 48%, var(--heroji-border));
}

.com-heroji .heroji-heroines-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.com-heroji .heroji-heroines-heading h2,
.com-heroji .heroji-heroines-intro,
.com-heroji .heroji-heroine-card h3,
.com-heroji .heroji-heroine-card p {
  margin: 0;
}

.com-heroji .heroji-heroines-heading h2 {
  color: var(--heroji-accent-strong);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.com-heroji .heroji-heroines-count {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  color: var(--heroji-accent-strong);
  background: color-mix(in srgb, var(--heroji-gold) 22%, var(--heroji-surface));
  border: 1px solid color-mix(in srgb, var(--heroji-gold) 52%, transparent);
  border-radius: 999px;
  font-size: 0.86rem;
}

.com-heroji .heroji-heroines-intro {
  max-width: 54rem;
  color: var(--heroji-muted);
  line-height: 1.6;
}

.com-heroji .heroji-heroines-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.com-heroji .heroji-heroine-card {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--heroji-surface) 94%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(38, 31, 28, 0.06);
}

.com-heroji .heroji-heroine-portrait {
  display: grid;
  min-height: 7.8rem;
  overflow: hidden;
  place-items: center;
  color: var(--heroji-accent);
  background: var(--heroji-surface-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-heroine-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.com-heroji .heroji-heroine-card > div {
  display: grid;
  gap: 0.3rem;
  align-content: center;
  min-width: 0;
  padding: 0.7rem 0.7rem 0.7rem 0;
}

.com-heroji .heroji-heroine-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.com-heroji .heroji-heroine-card h3 a {
  color: var(--heroji-text);
  text-decoration: none;
}

.com-heroji .heroji-heroine-card h3 a:hover,
.com-heroji .heroji-heroine-card h3 a:focus {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-heroine-card p {
  overflow-wrap: anywhere;
  color: var(--heroji-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.com-heroji .heroji-heroine-card .heroji-card-action {
  font-size: 0.82rem;
}

.com-heroji .heroji-home-featured,
.com-heroji .heroji-home-discovery {
  display: grid;
  gap: 0.95rem;
}

.com-heroji .heroji-section-heading p:not(.heroji-kicker) {
  max-width: 42rem;
  margin-block: 0.45rem 0;
  color: var(--heroji-muted);
}

.com-heroji .heroji-home-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.com-heroji .heroji-home-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(38, 31, 28, 0.07);
}

.com-heroji .heroji-home-card.is-featured {
  border-color: color-mix(in srgb, var(--heroji-gold) 52%, var(--heroji-border));
}

.com-heroji .heroji-home-card-image {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3.45;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(198, 160, 75, 0.14), rgba(75, 17, 31, 0.08)),
    var(--heroji-surface-soft);
  text-decoration: none;
}

.com-heroji .heroji-home-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.com-heroji .heroji-home-card-fallback {
  color: var(--heroji-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 750;
}

.com-heroji .heroji-home-card-body {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
  padding: 0.85rem;
}

.com-heroji .heroji-home-card-body h3,
.com-heroji .heroji-home-card-body p {
  margin: 0;
}

.com-heroji .heroji-home-card-body h3 {
  font-size: 1.1rem;
  line-height: 1.22;
}

.com-heroji .heroji-home-card-body h3 a {
  color: var(--heroji-text);
  text-decoration: none;
}

.com-heroji .heroji-home-card-body h3 a:hover,
.com-heroji .heroji-home-card-body h3 a:focus {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-archive-dashboard {
  display: grid;
  gap: 0.95rem;
  margin-block: 0 1.25rem;
}

.com-heroji .heroji-dashboard-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding-block-end: 0.8rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-dashboard-heading h2,
.com-heroji .heroji-dashboard-heading p,
.com-heroji .heroji-dashboard-panel h3 {
  margin: 0;
}

.com-heroji .heroji-dashboard-heading h2 {
  color: var(--heroji-accent-strong);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.com-heroji .heroji-dashboard-heading > p {
  max-width: 28rem;
  color: var(--heroji-muted);
  font-size: 0.98rem;
  text-align: right;
}

.com-heroji .heroji-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
  gap: 0.8rem;
  align-items: stretch;
}

.com-heroji .heroji-dashboard-panel {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.95rem;
  background: color-mix(in srgb, var(--heroji-surface) 88%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-dashboard-panel-wide {
  grid-row: span 2;
}

.com-heroji .heroji-dashboard-panel h3 {
  color: var(--heroji-accent-strong);
  font-size: 1.02rem;
}

.com-heroji .heroji-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.com-heroji .heroji-discovery-summary {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-discovery-summary > header {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding-block-end: 0.7rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-discovery-summary > header p,
.com-heroji .heroji-discovery-summary > header h3,
.com-heroji .heroji-discovery-total strong,
.com-heroji .heroji-discovery-total small {
  margin: 0;
}

.com-heroji .heroji-discovery-summary > header p {
  color: var(--heroji-gold);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.com-heroji .heroji-discovery-summary > header h3 {
  margin-block-start: 0.18rem;
  color: var(--heroji-accent-strong);
  font-size: 1.1rem;
}

.com-heroji .heroji-discovery-total {
  display: grid;
  flex: 0 0 auto;
  text-align: right;
}

.com-heroji .heroji-discovery-total strong {
  color: var(--heroji-accent);
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.6rem;
  line-height: 1;
}

.com-heroji .heroji-discovery-total small {
  margin-block-start: 0.18rem;
  color: var(--heroji-muted);
  font-size: 0.7rem;
}

.com-heroji .heroji-discovery-ranking {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.com-heroji .heroji-discovery-ranking li + li {
  border-block-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-discovery-ranking a {
  display: grid;
  grid-template-columns: 1.75rem minmax(9rem, 1fr) minmax(4rem, 0.55fr) 2rem;
  gap: 0.65rem;
  align-items: center;
  min-height: 3rem;
  color: var(--heroji-text);
  text-decoration: none;
}

.com-heroji .heroji-discovery-ranking a:hover .heroji-discovery-name,
.com-heroji .heroji-discovery-ranking a:focus .heroji-discovery-name {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-discovery-rank {
  color: var(--heroji-gold);
  font-size: 0.7rem;
  font-weight: 850;
}

.com-heroji .heroji-discovery-name {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
}

.com-heroji .heroji-discovery-bar {
  display: block;
  height: 0.3rem;
  overflow: hidden;
  background: var(--heroji-surface-muted);
  border-radius: 2px;
}

.com-heroji .heroji-discovery-bar i {
  display: block;
  height: 100%;
  background: var(--heroji-gold);
}

.com-heroji .heroji-discovery-ranking strong {
  color: var(--heroji-accent-strong);
  font-size: 0.85rem;
  text-align: right;
}

.com-heroji .heroji-discovery-more {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-self: start;
  color: var(--heroji-accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-discovery-more:hover,
.com-heroji .heroji-discovery-more:focus {
  text-decoration: underline;
}

.com-heroji .heroji-dashboard-explore {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  color: #fffaf1;
  background: var(--heroji-accent-strong);
  border: 1px solid color-mix(in srgb, var(--heroji-gold) 55%, transparent);
  border-radius: 8px;
}

.com-heroji .heroji-dashboard-explore-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.com-heroji .heroji-dashboard-explore-heading h3,
.com-heroji .heroji-dashboard-explore-heading p {
  margin: 0;
}

.com-heroji .heroji-dashboard-explore-heading .heroji-kicker {
  margin-block-end: 0.45rem;
  color: var(--heroji-gold);
}

.com-heroji .heroji-dashboard-explore-heading h3 {
  max-width: 42rem;
  color: #fffaf1;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.08;
}

.com-heroji .heroji-dashboard-explore-heading h3 + p {
  max-width: 48rem;
  margin-block-start: 0.7rem;
  color: rgba(255, 250, 241, 0.78);
  line-height: 1.65;
}

.com-heroji .heroji-dashboard-explore-summary {
  display: grid;
  min-width: 9.5rem;
  padding-inline-start: 1.2rem;
  border-inline-start: 1px solid rgba(255, 250, 241, 0.24);
}

.com-heroji .heroji-dashboard-explore-summary strong {
  color: var(--heroji-gold);
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  line-height: 1;
}

.com-heroji .heroji-dashboard-explore-summary span {
  max-width: 10rem;
  margin-block-start: 0.35rem;
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.82rem;
  line-height: 1.3;
}

.com-heroji .heroji-dashboard-explore-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(255, 250, 241, 0.2);
}

.com-heroji .heroji-dashboard-explore-paths a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
  padding: 1.1rem;
  color: #fffaf1;
  text-decoration: none;
}

.com-heroji .heroji-dashboard-explore-paths a + a {
  border-inline-start: 1px solid rgba(255, 250, 241, 0.2);
}

.com-heroji .heroji-dashboard-explore-paths a:hover,
.com-heroji .heroji-dashboard-explore-paths a:focus-visible {
  background: rgba(255, 250, 241, 0.08);
}

.com-heroji .heroji-dashboard-explore-index {
  color: var(--heroji-gold);
  font-size: 0.75rem;
  font-weight: 850;
}

.com-heroji .heroji-dashboard-explore-paths strong,
.com-heroji .heroji-dashboard-explore-paths small {
  display: block;
}

.com-heroji .heroji-dashboard-explore-paths strong {
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.05rem;
  line-height: 1.2;
}

.com-heroji .heroji-dashboard-explore-paths small {
  margin-block-start: 0.45rem;
  color: rgba(255, 250, 241, 0.7);
  font-size: 0.82rem;
  line-height: 1.45;
}

.com-heroji .heroji-dashboard-explore-arrow {
  color: var(--heroji-gold);
  font-size: 1.15rem;
  line-height: 1;
}

.com-heroji .heroji-dashboard-explore-action {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-self: start;
  color: var(--heroji-gold);
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-dashboard-explore-action:hover,
.com-heroji .heroji-dashboard-explore-action:focus {
  color: #fffaf1;
  text-decoration: underline;
}

.com-heroji .heroji-link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-content: start;
}

.com-heroji .heroji-data-chip {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  min-width: min(100%, 13.5rem);
  min-height: 2.35rem;
  padding: 0.38rem 0.55rem 0.38rem 0.68rem;
  color: var(--heroji-text);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.com-heroji .heroji-data-chip-compact {
  min-width: min(100%, 9.6rem);
}

.com-heroji .heroji-data-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.com-heroji .heroji-data-chip strong {
  flex: 0 0 auto;
  display: inline-grid;
  min-width: 1.75rem;
  min-height: 1.55rem;
  place-items: center;
  color: var(--heroji-accent-strong);
  background: color-mix(in srgb, var(--heroji-gold) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--heroji-gold) 48%, transparent);
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
}

.com-heroji .heroji-data-chip:hover,
.com-heroji .heroji-data-chip:focus {
  color: var(--heroji-accent);
  border-color: color-mix(in srgb, var(--heroji-accent) 38%, var(--heroji-border));
  box-shadow: 0 0.45rem 1rem rgba(38, 31, 28, 0.08);
  text-decoration: none;
}

.com-heroji .heroji-dashboard-actions {
  align-content: start;
}

.com-heroji .heroji-stat-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.65rem 0.75rem;
  color: var(--heroji-text);
  background:
    linear-gradient(135deg, rgba(75, 17, 31, 0.06), rgba(198, 160, 75, 0.12)),
    var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  text-decoration: none;
}

.com-heroji .heroji-stat-link span {
  display: inline-grid;
  min-width: 3rem;
  min-height: 2.35rem;
  place-items: center;
  color: #fff;
  background: var(--heroji-accent);
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.com-heroji .heroji-stat-link strong {
  min-width: 0;
  font-size: 0.98rem;
}

.com-heroji .heroji-stat-link:hover,
.com-heroji .heroji-stat-link:focus {
  color: var(--heroji-accent);
  border-color: color-mix(in srgb, var(--heroji-accent) 38%, var(--heroji-border));
  text-decoration: none;
}

.com-heroji .heroji-alphabet-filter {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
  margin-block: 0 1rem;
  padding-block-end: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  border-block-end: 1px solid var(--heroji-border);
  scrollbar-width: thin;
}

.com-heroji .heroji-alphabet-filter a {
  flex: 0 0 auto;
  display: inline-grid;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0.25rem 0.52rem;
  place-items: center;
  color: var(--heroji-accent);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.com-heroji .heroji-alphabet-filter a:hover,
.com-heroji .heroji-alphabet-filter a:focus {
  color: var(--heroji-accent-strong);
  border-color: color-mix(in srgb, var(--heroji-accent) 42%, var(--heroji-border));
  box-shadow: 0 0.45rem 1rem rgba(38, 31, 28, 0.08);
}

.com-heroji .heroji-alphabet-filter a.is-active {
  color: #fff;
  background: var(--heroji-accent);
  border-color: var(--heroji-accent);
}

.com-heroji .heroji-filters {
  margin-block: 0 1.25rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: color-mix(in srgb, var(--heroji-surface) 88%, var(--heroji-surface-muted));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(38, 31, 28, 0.06);
}

.com-heroji .heroji-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.85rem;
  align-items: end;
}

.com-heroji .heroji-filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.com-heroji .heroji-filter-field label {
  color: var(--heroji-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.com-heroji .heroji-filter-field input,
.com-heroji .heroji-filter-field select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  color: var(--heroji-text);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
}

.com-heroji .heroji-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  align-self: end;
}

.com-heroji .heroji-reset-link {
  color: var(--heroji-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.com-heroji .heroji-reset-link:hover,
.com-heroji .heroji-reset-link:focus {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-block: -0.45rem 1.1rem;
}

.com-heroji .heroji-active-filters > span {
  color: var(--heroji-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.com-heroji .heroji-active-filters a {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 1.95rem;
  padding: 0.22rem 0.58rem;
  color: var(--heroji-accent-strong);
  background: color-mix(in srgb, var(--heroji-gold) 16%, var(--heroji-surface));
  border: 1px solid color-mix(in srgb, var(--heroji-gold) 42%, transparent);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-active-filters a:hover,
.com-heroji .heroji-active-filters a:focus {
  background: color-mix(in srgb, var(--heroji-gold) 28%, var(--heroji-surface));
  text-decoration: none;
}

.com-heroji .heroji-active-filters a span {
  display: inline-grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  color: #fff;
  background: var(--heroji-accent);
  border-radius: 50%;
  font-size: 0.74rem;
  line-height: 1;
}

.com-heroji .heroji-empty-state {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin-block: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: color-mix(in srgb, var(--heroji-surface) 82%, var(--heroji-surface-soft));
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-empty-state h2,
.com-heroji .heroji-empty-state p {
  margin: 0;
}

.com-heroji .heroji-empty-state h2 {
  color: var(--heroji-accent-strong);
  font-size: 1.35rem;
}

.com-heroji .heroji-empty-state .button {
  justify-self: start;
}

.com-heroji .heroji-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: 0.9rem;
  margin-block: 1.25rem;
}

.com-heroji .pagination__wrapper {
  display: flex;
  justify-content: center;
  margin-block: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.com-heroji .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.com-heroji .pagination .page-item {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.com-heroji .pagination .page-link {
  display: grid;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  place-items: center;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 7px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(38, 31, 28, 0.06);
}

.com-heroji .pagination .page-link:hover,
.com-heroji .pagination .page-link:focus-visible {
  color: #fff;
  background: var(--heroji-accent);
  border-color: var(--heroji-accent);
  outline: none;
}

.com-heroji .pagination .active .page-link,
.com-heroji .pagination .page-item.active .page-link {
  color: #fff;
  background: var(--heroji-accent-strong);
  border-color: var(--heroji-accent-strong);
}

.com-heroji .pagination .disabled .page-link,
.com-heroji .pagination .page-item.disabled .page-link {
  color: var(--heroji-muted);
  background: color-mix(in srgb, var(--heroji-surface-soft) 82%, var(--heroji-surface));
  pointer-events: none;
  opacity: 0.75;
}

.com-heroji .pagination [class^="icon-"],
.com-heroji .pagination [class*=" icon-"] {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
}

.com-heroji .heroji-category-item,
.com-heroji .heroji-gallery-item,
.com-heroji .heroji-map-card,
.com-heroji .heroji-reference-card {
  overflow: hidden;
  margin: 0;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(38, 31, 28, 0.07);
}

.com-heroji .heroji-category-item {
  position: relative;
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 1.05rem;
  align-items: start;
  padding: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.com-heroji .heroji-category-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: color-mix(in srgb, var(--heroji-accent) 72%, var(--heroji-gold));
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.com-heroji .heroji-category-item.is-featured::before,
.com-heroji .heroji-category-item:hover::before {
  opacity: 1;
}

.com-heroji .heroji-category-item:hover {
  border-color: color-mix(in srgb, var(--heroji-accent) 42%, var(--heroji-border));
  box-shadow: var(--heroji-shadow);
  transform: translateY(-1px);
}

.com-heroji .heroji-thumbnail-link {
  display: block;
  width: 7.25rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(198, 160, 75, 0.13), rgba(75, 17, 31, 0.08)),
    var(--heroji-surface-soft);
  text-decoration: none;
}

.com-heroji .heroji-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.com-heroji .heroji-thumbnail-fallback {
  display: grid;
  place-items: center;
  color: var(--heroji-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.com-heroji .heroji-item-body {
  min-width: 0;
}

.com-heroji .heroji-item-body h2 {
  margin-block: 0.15rem 0.25rem;
  font-size: 1.25rem;
  line-height: 1.22;
}

.com-heroji .heroji-item-body h2 a {
  color: var(--heroji-text);
  text-decoration: none;
}

.com-heroji .heroji-item-body h2 a:hover,
.com-heroji .heroji-item-body h2 a:focus {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-item-body p {
  margin-block: 0.2rem;
}

.com-heroji .heroji-life-range {
  color: var(--heroji-accent);
  font-weight: 700;
}

.com-heroji .heroji-item-body dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.2rem 0.65rem;
  margin-block: 0.55rem 0;
  font-size: 0.93rem;
}

.com-heroji .heroji-item-body dt {
  color: var(--heroji-muted);
  font-weight: 700;
}

.com-heroji .heroji-item-body dd {
  margin-inline-start: 0;
}

.com-heroji .heroji-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  margin-block-end: 0.35rem;
  padding: 0.12rem 0.5rem;
  color: var(--heroji-accent-strong);
  background: color-mix(in srgb, var(--heroji-gold) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--heroji-gold) 52%, transparent);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.com-heroji .heroji-card-action {
  display: inline-flex;
  margin-block-start: 0.55rem;
  color: var(--heroji-accent);
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-card-action:hover,
.com-heroji .heroji-card-action:focus {
  color: var(--heroji-accent-strong);
  text-decoration: underline;
}

.com-heroji .heroji-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.com-heroji .heroji-back-link {
  color: var(--heroji-accent);
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-back-link:hover,
.com-heroji .heroji-back-link:focus {
  color: var(--heroji-accent-strong);
  text-decoration: underline;
}

.com-heroji.hero-detail {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.com-heroji .heroji-profile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
  box-shadow: var(--heroji-shadow);
}

.com-heroji .heroji-profile::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.28rem;
  background: linear-gradient(90deg, var(--heroji-accent), var(--heroji-gold));
  content: "";
  opacity: 0.85;
}

.com-heroji .heroji-profile.is-featured::before {
  height: 0.36rem;
}

.com-heroji .heroji-profile-media {
  display: grid;
  align-items: stretch;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(198, 160, 75, 0.16), rgba(89, 99, 77, 0.12)),
    var(--heroji-surface-soft);
}

.com-heroji .heroji-profile-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.com-heroji .heroji-nickname {
  margin-block: 0.45rem 0;
  color: var(--heroji-muted);
  font-size: 1.08rem;
}

.com-heroji .heroji-profile .heroji-life-range {
  margin-block: 0.85rem 0;
  font-size: 1.02rem;
}

.com-heroji .heroji-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.com-heroji .heroji-profile-badges li {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.6rem;
  color: var(--heroji-accent-strong);
  background: color-mix(in srgb, var(--heroji-gold) 18%, var(--heroji-surface));
  border: 1px solid color-mix(in srgb, var(--heroji-gold) 45%, transparent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.com-heroji .heroji-main-image {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  margin: 0;
  place-items: center;
}

.com-heroji .heroji-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 34rem;
  object-fit: contain;
}

.com-heroji .heroji-main-image-fallback {
  color: var(--heroji-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
}

.com-heroji .heroji-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-block: 1.25rem 0;
  border-block-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-facts > div {
  min-width: 0;
  padding-block: 0.72rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-facts > div:nth-child(odd) {
  padding-inline-end: 0.8rem;
}

.com-heroji .heroji-facts > div:nth-child(even) {
  padding-inline-start: 0.8rem;
  border-inline-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-facts dt {
  color: var(--heroji-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.com-heroji .heroji-facts dd {
  margin: 0.15rem 0 0;
  font-weight: 650;
}

.com-heroji .heroji-section {
  min-width: 0;
}

.com-heroji .heroji-section-heading {
  margin-block-end: 0.9rem;
}

.com-heroji .heroji-biography {
  max-width: 78rem;
}

.com-heroji .heroji-biography > *:not(h2) {
  max-width: 72rem;
}

.com-heroji .heroji-biography p {
  font-size: 1.03rem;
}

.com-heroji .heroji-video {
  width: min(100%, 68rem);
  justify-self: center;
}

.com-heroji .heroji-video-frame {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #171210;
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  box-shadow: 0 0.8rem 2rem rgba(44, 22, 18, 0.14);
}

.com-heroji .heroji-video-frame iframe,
.com-heroji .heroji-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.com-heroji .heroji-monument-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 22rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.com-heroji .heroji-monument-image {
  overflow: hidden;
  margin: 0;
  background: var(--heroji-surface-soft);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-monument-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.com-heroji .heroji-monument-copy h3 {
  margin-block: 0 0.35rem;
  font-size: 1.35rem;
}

.com-heroji .heroji-linked-monuments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0.9rem;
}

.com-heroji .heroji-linked-monument {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  min-height: 7.25rem;
  overflow: hidden;
  color: var(--heroji-text);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  text-decoration: none;
}

.com-heroji .heroji-linked-monument:hover,
.com-heroji .heroji-linked-monument:focus-visible {
  border-color: var(--heroji-gold);
}

.com-heroji .heroji-linked-monument__media {
  display: grid;
  min-height: 7.25rem;
  place-items: center;
  color: var(--heroji-accent);
  background: var(--heroji-surface-soft);
  font-family: var(--font-heading, Georgia, serif);
  font-weight: 800;
}

.com-heroji .heroji-linked-monument__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.com-heroji .heroji-linked-monument__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0.8rem 0.9rem;
}

.com-heroji .heroji-linked-monument__copy small {
  color: var(--heroji-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.com-heroji .heroji-linked-monument__copy strong {
  margin-block: 0.2rem;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.08rem;
}

.com-heroji .heroji-linked-monument__copy span {
  color: var(--heroji-muted);
  font-size: 0.88rem;
}

.com-heroji .heroji-linked-events-list {
  border-block-start: 1px solid var(--heroji-border);
}

.com-heroji .heroji-linked-event {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
  gap: 0.35rem clamp(1rem, 4vw, 3rem);
  padding-block: 1rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-linked-event__meta {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  color: var(--heroji-muted);
  font-size: 0.82rem;
}

.com-heroji .heroji-linked-event__meta time {
  color: var(--heroji-accent);
  font-weight: 800;
}

.com-heroji .heroji-linked-event h3,
.com-heroji .heroji-linked-event p {
  grid-column: 2;
}

.com-heroji .heroji-linked-event h3 {
  margin: 0;
  font-size: 1.18rem;
}

.com-heroji .heroji-linked-event h3 a {
  color: var(--heroji-text);
  text-decoration: none;
}

.com-heroji .heroji-linked-event h3 a:hover,
.com-heroji .heroji-linked-event h3 a:focus-visible {
  color: var(--heroji-accent);
  text-decoration: underline;
}

.com-heroji .heroji-linked-event p {
  margin: 0.35rem 0 0;
  color: var(--heroji-muted);
}

@media (max-width: 700px) {
  .com-heroji .heroji-linked-event {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-linked-event h3,
  .com-heroji .heroji-linked-event p {
    grid-column: 1;
  }
}

.com-heroji .heroji-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  justify-content: start;
}

.com-heroji .heroji-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 14rem;
  object-fit: contain;
  background: var(--heroji-surface-soft);
}

.com-heroji .heroji-lightbox-trigger {
  display: block;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
}

.com-heroji .heroji-main-image .heroji-lightbox-trigger {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.com-heroji .heroji-lightbox-trigger:focus-visible {
  outline: 3px solid #0b6bcb;
  outline-offset: 4px;
}

.com-heroji .heroji-lightbox-trigger img {
  transition: filter 160ms ease, transform 160ms ease;
}

.com-heroji .heroji-lightbox-trigger:hover img,
.com-heroji .heroji-lightbox-trigger:focus-visible img {
  filter: brightness(0.96);
  transform: scale(1.01);
}

.com-heroji .heroji-gallery-caption {
  padding: 0.9rem;
}

.com-heroji .heroji-gallery-caption h3 {
  margin-block: 0 0.35rem;
  font-size: 1.05rem;
}

.com-heroji .heroji-gallery-caption p {
  margin-block: 0;
}

.com-heroji .heroji-image-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  color: var(--heroji-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.com-heroji .heroji-image-credit span + span::before {
  margin-inline-end: 0.75rem;
  color: var(--heroji-border);
  content: "|";
}

.com-heroji .heroji-image-credit a {
  color: var(--heroji-wine);
  text-underline-offset: 0.15em;
}

.com-heroji .heroji-gallery-caption .heroji-image-credit {
  margin-block-start: 0.65rem;
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--heroji-border);
}

.com-heroji .heroji-gallery-type {
  display: inline-block;
  margin-block-end: 0.35rem;
  color: var(--heroji-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.com-heroji .heroji-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.com-heroji .heroji-reference-card {
  padding: 1rem;
}

.com-heroji .heroji-reference-card h3 {
  margin-block: 0 0.4rem;
  font-size: 1.15rem;
}

.com-heroji .heroji-reference-card p {
  margin: 0;
}

.com-heroji .heroji-map-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.com-heroji .heroji-map-card h3,
.com-heroji .heroji-map-card p {
  margin: 0;
  padding: 1rem;
}

.com-heroji .heroji-map-card h3 + p {
  padding-block-start: 0;
}

.com-heroji .heroji-map-card .heroji-location-accuracy,
.com-heroji .heroji-map-card .heroji-location-radius {
  margin-inline: 1rem;
  padding: 0.5rem 0.7rem;
  color: var(--heroji-text);
  background: color-mix(in srgb, var(--heroji-gold) 14%, var(--heroji-surface-soft));
  border-inline-start: 3px solid var(--heroji-gold);
  font-size: 0.9rem;
}

.com-heroji .heroji-map-card .heroji-location-radius {
  margin-block-start: 0.45rem;
  color: var(--heroji-muted);
}

.com-heroji .heroji-map-canvas {
  min-height: 19rem;
  background: #eef1f3;
  border-block: 1px solid var(--heroji-border);
}

.com-heroji .heroji-map-canvas.is-unavailable {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--heroji-muted);
}

.com-heroji .heroji-map-meta {
  color: var(--heroji-muted);
  font-size: 0.92rem;
}

.com-heroji .heroji-map-card .heroji-location-source,
.com-heroji .heroji-map-card .heroji-location-note {
  padding-block-start: 0;
  color: var(--heroji-muted);
  font-size: 0.88rem;
}

.com-heroji .heroji-print-actions {
  margin-block: 0;
}

.heroji-lightbox[hidden] {
  display: none;
}

.heroji-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(11, 13, 16, 0.9);
}

.heroji-lightbox-open {
  overflow: hidden;
}

.heroji-lightbox-frame {
  display: grid;
  gap: 0.75rem;
  max-width: min(94vw, 72rem);
  max-height: 92vh;
  margin: 0;
}

.heroji-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  background: #f3f0e8;
  border-radius: 8px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.heroji-lightbox-caption {
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.heroji-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.heroji-lightbox-close:hover,
.heroji-lightbox-close:focus-visible {
  background: rgba(0, 0, 0, 0.78);
}

.com-heroji.heroji-timeline-page {
  max-width: 88rem;
  margin-inline: auto;
}

.com-heroji .heroji-timeline-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.72fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
  margin-block-end: 1.4rem;
  padding-block-end: 1.4rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-timeline-lead h1 {
  margin: 0;
  color: var(--heroji-accent-strong);
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 1;
}

.com-heroji .heroji-timeline-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.com-heroji .heroji-timeline-summary div {
  min-width: 0;
  padding: 0.8rem;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 8px;
}

.com-heroji .heroji-timeline-summary dt {
  color: var(--heroji-muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.com-heroji .heroji-timeline-summary dd {
  margin: 0.25rem 0 0;
  color: var(--heroji-accent);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.com-heroji .heroji-timeline-filters {
  display: grid;
  grid-template-columns: minmax(15rem, 1.4fr) minmax(12rem, 0.8fr) minmax(11rem, 0.7fr) auto;
  gap: 0.8rem;
  align-items: end;
  padding: 1rem;
  background: var(--heroji-surface-soft);
  border-block: 1px solid var(--heroji-border);
}

.com-heroji .heroji-timeline-filters .heroji-filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.com-heroji .heroji-timeline-filters label {
  color: var(--heroji-accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.com-heroji .heroji-timeline-filters small {
  color: var(--heroji-muted);
  font-size: 0.72rem;
}

.com-heroji .heroji-timeline-filters input,
.com-heroji .heroji-timeline-filters select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  color: var(--heroji-text);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
}

.com-heroji .heroji-timeline-filters .heroji-filter-actions {
  display: flex;
  gap: 0.45rem;
}

.com-heroji .heroji-decade-index {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-block: 1rem;
  padding-block-end: 0.35rem;
  scrollbar-width: thin;
}

.com-heroji .heroji-decade-index a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-decade-index a:hover,
.com-heroji .heroji-decade-index a:focus-visible,
.com-heroji .heroji-decade-index a.is-active {
  color: #fff;
  background: var(--heroji-accent);
  border-color: var(--heroji-accent);
}

.com-heroji .heroji-decade-index span {
  min-width: 1.5rem;
  padding: 0.12rem 0.3rem;
  color: inherit;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  font-size: 0.72rem;
  text-align: center;
}

.com-heroji .heroji-timeline-result-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
  margin-block: 1rem 1.4rem;
  color: var(--heroji-accent-strong);
  font-weight: 850;
}

.com-heroji .heroji-timeline-result-bar span {
  color: var(--heroji-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.com-heroji .heroji-timeline-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-block: 1.5rem 0.5rem;
}

.com-heroji .heroji-timeline-pagination a,
.com-heroji .heroji-timeline-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-timeline-pagination a:hover,
.com-heroji .heroji-timeline-pagination a:focus-visible,
.com-heroji .heroji-timeline-pagination span.is-active {
  color: #fff;
  background: var(--heroji-accent);
  border-color: var(--heroji-accent);
}

.com-heroji .heroji-timeline-page-status {
  margin: 0;
  color: var(--heroji-muted);
  font-size: 0.86rem;
  text-align: center;
}

.com-heroji .heroji-timeline {
  position: relative;
}

.com-heroji .heroji-timeline::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 6.9rem;
  width: 1px;
  background: color-mix(in srgb, var(--heroji-gold) 58%, var(--heroji-border));
  content: "";
}

.com-heroji .heroji-timeline-year {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  position: relative;
  padding-block-end: 1.7rem;
}

.com-heroji .heroji-timeline-year-heading {
  position: relative;
  z-index: 1;
  align-self: start;
  padding: 0.25rem 0.8rem 0.55rem 0;
  background: var(--heroji-surface-soft, #f2f0ea);
  text-align: right;
}

.com-heroji .heroji-timeline-year-heading time {
  display: block;
  color: var(--heroji-accent);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.com-heroji .heroji-timeline-year-heading span {
  display: block;
  margin-block-start: 0.25rem;
  color: var(--heroji-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.com-heroji .heroji-timeline-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.com-heroji .heroji-timeline-event {
  position: relative;
  min-width: 0;
  padding: 0.85rem;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-block-start: 3px solid var(--heroji-gold);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(38, 31, 28, 0.06);
}

.com-heroji .heroji-timeline-event.is-birth {
  border-block-start-color: #557660;
}

.com-heroji .heroji-timeline-event.is-death {
  border-block-start-color: var(--heroji-accent);
}

.com-heroji .heroji-timeline-event.is-proclaimed {
  border-block-start-color: var(--heroji-gold);
}

.com-heroji .heroji-timeline-event.is-historical {
  border-block-start-color: #38656a;
  background: color-mix(in srgb, var(--heroji-surface) 94%, #dce9e8);
}

.com-heroji .heroji-timeline-event.is-jubilee {
  border-block-start-color: #8a6a24;
  background: color-mix(in srgb, var(--heroji-surface) 94%, #f2e8cc);
}

.com-heroji .heroji-timeline-jubilee-label {
  margin: 0 0 0.2rem;
  color: #795918;
  font-size: 0.82rem;
  font-weight: 850;
}

.com-heroji .heroji-timeline-marker {
  position: absolute;
  top: 1.05rem;
  left: calc(-1 * clamp(1rem, 3vw, 2rem) - 5px);
  width: 9px;
  height: 9px;
  background: var(--heroji-gold);
  border: 2px solid var(--heroji-surface-soft);
  border-radius: 50%;
}

.com-heroji .heroji-timeline-event:nth-child(even) .heroji-timeline-marker {
  display: none;
}

.com-heroji .heroji-timeline-event-date {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
  margin-block-end: 0.65rem;
  color: var(--heroji-accent-strong);
}

.com-heroji .heroji-timeline-event-date time {
  font-size: 0.93rem;
  font-weight: 900;
}

.com-heroji .heroji-timeline-event-date span {
  color: var(--heroji-muted);
  font-size: 0.72rem;
}

.com-heroji .heroji-timeline-event-content {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.com-heroji .heroji-timeline-portrait {
  display: grid;
  width: 3.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: var(--heroji-accent);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

.com-heroji .heroji-timeline-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.com-heroji .heroji-timeline-event-type {
  margin: 0 0 0.15rem;
  color: var(--heroji-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.com-heroji .heroji-timeline-event h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

.com-heroji .heroji-timeline-event h2 a {
  color: var(--heroji-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.com-heroji .heroji-timeline-place {
  margin: 0.3rem 0 0;
  color: var(--heroji-muted);
  font-size: 0.86rem;
}

.com-heroji .heroji-timeline-editorial-summary {
  margin: 0.65rem 0 0;
  color: var(--heroji-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.com-heroji .heroji-timeline-editorial-links {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  padding-block-start: 0.55rem;
  border-block-start: 1px solid var(--heroji-border);
  font-size: 0.8rem;
}

.com-heroji .heroji-timeline-editorial-links div {
  display: grid;
  gap: 0.08rem;
}

.com-heroji .heroji-timeline-editorial-links dt {
  color: var(--heroji-muted);
  font-weight: 800;
}

.com-heroji .heroji-timeline-editorial-links dd {
  margin: 0;
}

.com-heroji .heroji-timeline-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.com-heroji .heroji-timeline-related-links a {
  padding: 0.2rem 0.4rem;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface-soft);
  border: 1px solid var(--heroji-border);
  border-radius: 4px;
  text-decoration: none;
}

.com-heroji .heroji-timeline-related-links a:hover,
.com-heroji .heroji-timeline-related-links a:focus-visible {
  border-color: var(--heroji-gold);
  text-decoration: underline;
}

.com-heroji .heroji-timeline-editorial-source {
  margin: 0.55rem 0 0;
  color: var(--heroji-muted);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .com-heroji .heroji-timeline-lead {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-timeline-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .com-heroji .heroji-timeline-filters .heroji-filter-field-wide,
  .com-heroji .heroji-timeline-filters .heroji-filter-actions {
    grid-column: 1 / -1;
  }

  .com-heroji .heroji-timeline-events {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-timeline-event:nth-child(even) .heroji-timeline-marker {
    display: block;
  }
}

@media (max-width: 640px) {
  .com-heroji .heroji-timeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .com-heroji .heroji-timeline-filters {
    grid-template-columns: 1fr;
    padding-inline: 0;
    background: transparent;
  }

  .com-heroji .heroji-timeline-filters .heroji-filter-field-wide,
  .com-heroji .heroji-timeline-filters .heroji-filter-actions {
    grid-column: auto;
  }

  .com-heroji .heroji-timeline-filters .heroji-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .com-heroji .heroji-timeline::before {
    inset-inline-start: 0.3rem;
  }

  .com-heroji .heroji-timeline-year {
    display: block;
    padding-inline-start: 1.45rem;
  }

  .com-heroji .heroji-timeline-year-heading {
    margin-block-end: 0.65rem;
    padding: 0;
    background: transparent;
    text-align: left;
  }

  .com-heroji .heroji-timeline-year-heading span {
    display: inline;
  }

  .com-heroji .heroji-timeline-marker {
    left: -1.42rem;
  }

  .com-heroji .heroji-timeline-event-content {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .com-heroji .heroji-timeline-portrait {
    width: 3.25rem;
  }
}

@media (max-width: 940px) {
  .com-heroji .heroji-study-overview {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-study-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .com-heroji .heroji-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-discovery-grid {
    grid-template-columns: 1fr;
  }

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

  .com-heroji .heroji-home-current {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-dashboard-panel-wide {
    grid-row: auto;
  }

  .com-heroji .heroji-dashboard-explore {
    padding: 1.2rem;
  }

  .com-heroji .heroji-dashboard-explore-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .com-heroji .heroji-dashboard-explore-summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: end;
    padding-block-start: 0.9rem;
    padding-inline-start: 0;
    border-block-start: 1px solid rgba(255, 250, 241, 0.24);
    border-inline-start: 0;
  }

  .com-heroji .heroji-dashboard-explore-summary span {
    max-width: none;
    margin: 0 0 0.25rem;
  }

  .com-heroji .heroji-dashboard-explore-paths {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-dashboard-explore-paths a + a {
    border-block-start: 1px solid rgba(255, 250, 241, 0.2);
    border-inline-start: 0;
  }

  .com-heroji .heroji-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .com-heroji .heroji-filter-field-wide,
  .com-heroji .heroji-filter-actions {
    grid-column: 1 / -1;
  }

  .com-heroji .heroji-profile {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-main-image {
    min-height: 18rem;
  }
}

@media (max-width: 640px) {
  .herojicg.is-homepage .com-heroji .heroji-home-lead {
    grid-template-columns: 1fr;
  }

  .herojicg.is-homepage .com-heroji .heroji-home-actions {
    grid-row: auto;
    grid-column: 1;
    justify-content: flex-start;
  }

  .com-heroji .heroji-filter-grid,
  .com-heroji .heroji-category-item,
  .com-heroji .heroji-monument-layout,
  .com-heroji .heroji-news-item,
  .com-heroji .heroji-home-stats,
  .com-heroji .heroji-home-featured-grid,
  .com-heroji .heroji-heroines-grid,
  .com-heroji .heroji-study-metrics {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-heroines-heading {
    display: grid;
    align-items: start;
  }

  .com-heroji .heroji-heroines-count {
    justify-self: start;
  }

  .com-heroji .heroji-study-overview {
    margin-inline: 0;
  }

  .com-heroji .heroji-news-item.no-image .heroji-news-content {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-news-item.no-image time,
  .com-heroji .heroji-news-item.no-image h3,
  .com-heroji .heroji-news-item.no-image p {
    grid-row: auto;
    grid-column: 1;
  }

  .com-heroji .heroji-dashboard-heading {
    display: grid;
    align-items: start;
  }

  .com-heroji .heroji-dashboard-heading > p {
    max-width: none;
    text-align: left;
  }

  .com-heroji .heroji-data-chip,
  .com-heroji .heroji-data-chip-compact {
    width: 100%;
  }

  .com-heroji .heroji-filter-field-wide,
  .com-heroji .heroji-filter-actions {
    grid-column: auto;
  }

  .com-heroji .heroji-filter-actions .button {
    width: 100%;
  }

  .com-heroji .heroji-thumbnail-link {
    width: 100%;
    max-width: 9rem;
    aspect-ratio: 1;
  }

  .com-heroji .heroji-item-body dl,
  .com-heroji .heroji-facts {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-item-body dd {
    margin-block-end: 0.35rem;
  }

  .com-heroji .heroji-facts > div:nth-child(odd),
  .com-heroji .heroji-facts > div:nth-child(even) {
    padding-inline: 0;
    border-inline-start: 0;
  }

  .com-heroji .heroji-profile-copy {
    padding: 1rem;
  }

  .com-heroji .heroji-main-image {
    min-height: 16rem;
  }
}

.com-heroji .heroji-home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.9rem;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-inline-start: 4px solid var(--heroji-gold);
  border-radius: 6px;
}

.com-heroji .heroji-home-search label,
.com-heroji .heroji-global-search-form label {
  display: block;
  margin-block-end: 0.35rem;
  color: var(--heroji-accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.com-heroji .heroji-home-search input,
.com-heroji .heroji-global-search-form input,
.com-heroji .heroji-global-search-form select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  color: var(--heroji-text);
  background: #fff;
  border: 1px solid var(--heroji-border);
  border-radius: 4px;
}

.com-heroji .heroji-global-search-form {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(11rem, 0.32fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  background: var(--heroji-surface-soft);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
}

.com-heroji .heroji-search-notice,
.com-heroji .heroji-search-empty {
  margin-block: 0.85rem 0;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--heroji-gold) 10%, var(--heroji-surface));
  border-inline-start: 4px solid var(--heroji-gold);
}

.com-heroji .heroji-search-empty h3,
.com-heroji .heroji-search-empty p {
  margin: 0;
}

.com-heroji .heroji-search-empty p {
  margin-block-start: 0.25rem;
  color: var(--heroji-muted);
}

.com-heroji .heroji-search-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  justify-content: space-between;
  margin-block-start: 1rem;
  padding-block-end: 0.7rem;
  border-block-end: 1px solid var(--heroji-border);
}

.com-heroji .heroji-search-summary span {
  color: var(--heroji-muted);
}

.com-heroji .heroji-search-groups {
  display: grid;
  gap: 1.35rem;
  margin-block-start: 1rem;
}

.com-heroji .heroji-search-group > header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 0.65rem;
}

.com-heroji .heroji-search-group h3 {
  margin: 0;
  color: var(--heroji-accent-strong);
  font-size: 1.25rem;
}

.com-heroji .heroji-search-group > header span {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  color: var(--heroji-accent-strong);
  background: color-mix(in srgb, var(--heroji-gold) 18%, #fff);
  border-radius: 50%;
  font-weight: 850;
}

.com-heroji .heroji-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.com-heroji .heroji-search-result {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  padding: 0.55rem;
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 6px;
}

.com-heroji .heroji-search-result-media {
  display: grid;
  width: 4.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  color: var(--heroji-accent);
  background: var(--heroji-surface-soft);
  border-radius: 4px;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.4rem;
  font-weight: 850;
  text-decoration: none;
}

.com-heroji .heroji-search-result-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.com-heroji .heroji-search-result p,
.com-heroji .heroji-search-result h4,
.com-heroji .heroji-search-result small {
  margin: 0;
}

.com-heroji .heroji-search-result p {
  color: var(--heroji-accent);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.com-heroji .heroji-search-result h4 {
  margin-block: 0.12rem;
  font-size: 1rem;
  line-height: 1.25;
}

.com-heroji .heroji-search-result h4 a {
  color: var(--heroji-accent-strong);
}

.com-heroji .heroji-search-result small {
  display: block;
  color: var(--heroji-muted);
  line-height: 1.35;
}

.com-heroji .heroji-archive-connections {
  padding: 1rem;
  background: color-mix(in srgb, var(--heroji-gold) 8%, var(--heroji-surface));
  border-block: 1px solid var(--heroji-border);
}

.com-heroji .heroji-connection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.com-heroji .heroji-connection-links a {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  color: var(--heroji-accent-strong);
  background: var(--heroji-surface);
  border: 1px solid var(--heroji-border);
  border-radius: 5px;
  font-weight: 750;
  text-decoration: none;
}

.com-heroji .heroji-connection-links a:hover,
.com-heroji .heroji-connection-links a:focus-visible {
  color: #fff;
  background: var(--heroji-accent);
  border-color: var(--heroji-accent);
}

.com-heroji .heroji-related-profile-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.com-heroji .heroji-related-profile-group h3 {
  margin-block-start: 0;
}

.com-heroji .heroji-related-profile-list {
  display: grid;
  gap: 0.5rem;
}

.com-heroji .heroji-related-profile-list a {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 4rem;
  padding: 0.4rem;
  color: var(--heroji-text);
  border: 1px solid var(--heroji-border);
  border-radius: 5px;
  text-decoration: none;
}

.com-heroji .heroji-related-profile-list span {
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  color: var(--heroji-accent);
  background: var(--heroji-surface-soft);
  border-radius: 4px;
  font-weight: 850;
}

.com-heroji .heroji-related-profile-list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 800px) {
  .com-heroji .heroji-global-search-form,
  .com-heroji .heroji-search-results,
  .com-heroji .heroji-related-profile-groups {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-global-search-form .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .com-heroji .heroji-home-search {
    grid-template-columns: 1fr;
  }

  .com-heroji .heroji-home-search .button {
    width: 100%;
  }

  .com-heroji .heroji-search-result {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .com-heroji .heroji-search-result-media {
    width: 3.75rem;
  }
}
