hirhanyo-header {
  display: contents;
  color: var(--color-text);
  font-family: var(--font-body);
}

hirhanyo-header .hh-header {
  display: contents;
}

hirhanyo-header .hh-system-bar,
hirhanyo-header .hh-system-identity,
hirhanyo-header .hh-system-readout,
hirhanyo-header .hh-clock,
hirhanyo-header .hh-online,
hirhanyo-header .hh-connection {
  display: flex;
  align-items: center;
}

hirhanyo-header .hh-system-bar {
  position: sticky;
  top: 0;
  z-index: 16;
  width: 100%;
  max-width: 1440px;
  min-height: 32px;
  margin-inline: auto;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  color: var(--color-muted);
  font-size: 9px;
  line-height: 1;
}

hirhanyo-header .hh-system-identity,
hirhanyo-header .hh-system-readout {
  min-width: 0;
  gap: 12px;
  white-space: nowrap;
}

hirhanyo-header .hh-system-identity strong {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: .08em;
}

hirhanyo-header .hh-system-divider,
hirhanyo-header .hh-version,
hirhanyo-header .hh-clock > span,
hirhanyo-header .hh-date {
  color: var(--color-primary);
}

hirhanyo-header .hh-system-descriptor {
  letter-spacing: .06em;
}

hirhanyo-header .hh-version {
  padding-left: 10px;
  border-left: 1px solid var(--color-border);
}

hirhanyo-header .hh-system-readout {
  gap: 18px;
}

hirhanyo-header .hh-online {
  color: var(--color-success);
}

hirhanyo-header .hh-online .status-dot {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 14%, transparent);
  animation: hh-signal-pulse 2.4s ease-in-out infinite;
}

hirhanyo-header .hh-clock {
  gap: 6px;
}

hirhanyo-header .hh-clock > span,
hirhanyo-header .hh-connection {
  font-size: 8px;
  letter-spacing: .08em;
}

hirhanyo-header .hh-clock .hh-time,
hirhanyo-header .hh-date {
  font-variant-numeric: tabular-nums;
}

hirhanyo-header .hh-calendar-readout {
  display: flex;
  align-items: center;
  min-width: 0;
}

hirhanyo-header .hh-calendar-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  padding: 0 9px;
  border-left: 1px solid var(--color-border);
}

hirhanyo-header .hh-calendar-item:first-child {
  padding-left: 0;
  border-left: 0;
}

hirhanyo-header .hh-calendar-label {
  color: var(--color-muted);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
}

hirhanyo-header .hh-calendar-value {
  display: block;
  min-width: 0;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

hirhanyo-header .hh-calendar-weekday {
  text-transform: capitalize;
}

hirhanyo-header .hh-calendar-names {
  max-width: 132px;
  overflow: hidden;
  color: var(--color-secondary);
  text-overflow: ellipsis;
}

hirhanyo-header .hh-connection {
  gap: 5px;
  color: var(--color-success);
}

hirhanyo-header .hh-connection .icon {
  width: 13px;
  height: 13px;
  font-size: 13px;
}

hirhanyo-header .hh-brand-telemetry {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1440px;
  min-height: 190px;
  margin-inline: auto;
  border-inline: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

hirhanyo-header .hh-brand-block {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
  min-width: 0;
  padding: 16px 34px;
  overflow: hidden;
  background: radial-gradient(ellipse at 18% 52%, color-mix(in srgb, var(--hud-active) 9%, transparent), transparent 60%);
}

hirhanyo-header .hh-brand-emblem {
  width: clamp(120px, 11vw, 150px);
}

@keyframes hh-brand-cursor {
  50% { opacity: 0; }
}

hirhanyo-header .hh-brand-divider {
  width: 1px;
  height: 132px;
  flex: 0 0 auto;
  background: linear-gradient(transparent, color-mix(in srgb, var(--color-primary) 60%, var(--color-border)), transparent);
}

hirhanyo-header .hh-brand-copy {
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

hirhanyo-header .hh-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 6px;
}

hirhanyo-header .hh-brand-kicker {
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: .18em;
  white-space: nowrap;
}

hirhanyo-header .hh-wordmark {
  display: block;
  margin: 0;
  font-family: var(--font-wordmark);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: var(--font-wordmark-weight);
  letter-spacing: var(--font-wordmark-tracking);
  line-height: 1.1;
  white-space: nowrap;
}

hirhanyo-header .hh-tagline {
  margin: 8px 0 0;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
  white-space: nowrap;
}

hirhanyo-header .hh-tagline-cursor {
  margin-left: 2px;
  animation: hh-brand-cursor 1.2s steps(1, end) infinite;
}

hirhanyo-header .hh-brand-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 9px;
  letter-spacing: .15em;
  white-space: nowrap;
}

hirhanyo-header .hh-brand-detail::before {
  content: "";
  width: 28px;
  height: 2px;
  margin-right: 5px;
  background: var(--color-secondary);
}

hirhanyo-header .hh-brand-detail span {
  color: var(--color-secondary);
}

hirhanyo-header .hh-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

hirhanyo-header .hh-telemetry-panel {
  min-width: 0;
  min-height: 146px;
  padding: 11px 10px 10px;
  overflow: hidden;
  clip-path: none;
  background: var(--color-surface);
}

hirhanyo-header .hh-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .035em;
  white-space: nowrap;
}

hirhanyo-header .hh-panel-live,
hirhanyo-header .hh-panel-window {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-success);
  font-size: 7px;
}

hirhanyo-header .hh-panel-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: hh-signal-pulse 2.4s ease-in-out infinite;
}

@keyframes hh-signal-pulse {
  50% { opacity: .48; }
}

hirhanyo-header .hh-panel-window {
  color: var(--color-note);
}

hirhanyo-header .hh-stat-label {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .015em;
  white-space: nowrap;
}

hirhanyo-header .hh-mobile-metrics {
  display: none;
}

/* The look of the mobile row; shown below 800 px instead of the panels */
hirhanyo-header .hh-mobile-metrics {
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  overflow-x: auto;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 8px;
  line-height: 36px;
  scrollbar-width: none;
  white-space: nowrap;
}

hirhanyo-header .hh-mobile-metrics > span {
  flex: 0 0 auto;
}

hirhanyo-header .hh-mobile-metrics strong {
  color: var(--color-text);
  font-size: 10px;
}

hirhanyo-header .hh-mobile-metrics b {
  color: var(--color-success);
  font-size: 7px;
  font-weight: 500;
}

hirhanyo-header .hh-mobile-metrics > i {
  width: 1px;
  height: 13px;
  flex: 0 0 auto;
  background: var(--color-border);
}

hirhanyo-header .hh-information-strip {
  width: 100%;
  max-width: 1440px;
  height: 48px;
  margin-inline: auto;
  overflow: hidden;
  border-inline: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface-elevated) 64%, var(--color-surface));
}

hirhanyo-header .hh-info-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

hirhanyo-header .hh-info-cell {
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  gap: 8px;
  min-width: max-content;
  padding: 0 13px;
  border-right: 1px solid var(--color-border);
}

hirhanyo-header .hh-weather-cell {
  gap: 10px;
  padding-inline: 16px;
}

hirhanyo-header .hh-weather-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--color-cyan);
  font-size: 18px;
}

/* Also inside the city rotator, where it is not a direct child of the cell */
hirhanyo-header .hh-weather-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1.25;
}

hirhanyo-header .hh-weather-copy > small {
  color: var(--color-muted);
  text-transform: uppercase;
}

hirhanyo-header .hh-weather-reading {
  display: flex;
  align-items: center;
  gap: 5px;
}

hirhanyo-header .hh-weather-reading > strong {
  font-size: 10px;
}

hirhanyo-header .hh-weather-condition {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--color-cyan) 30%, var(--color-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-cyan) 10%, var(--color-surface-elevated));
  color: var(--color-cyan);
  font-size: 7px;
  line-height: 1;
}

hirhanyo-header .hh-solar-cell {
  gap: 12px;
  padding-inline: 16px;
}

/* Sunrise and sunset, then the length of the day and the night: one cell, a pipe between them */
hirhanyo-header .hh-solar-divider {
  align-self: center;
  width: 1px;
  height: 22px;
  background: var(--color-border);
}

hirhanyo-header .hh-currency-cell {
  display: grid;
  align-content: center;
  gap: 4px;
  padding-inline: 16px;
}

hirhanyo-header .hh-currency-row {
  display: grid;
  grid-template-columns: 17px auto auto;
  align-items: center;
  column-gap: 6px;
  line-height: 1;
}

hirhanyo-header .hh-currency-row > .icon {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  font-size: 14px;
}

/* The sources with the largest share of the last 24 hours: short name and share, separated by a pipe */
hirhanyo-header .hh-top-sources-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

hirhanyo-header .hh-top-sources-list > li {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

hirhanyo-header .hh-top-sources-list > li + li {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--color-border);
}

/* The short name of a source: a value like the others of the info strip, linked or not */
hirhanyo-header .hh-top-source-name {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

hirhanyo-header a.hh-top-source-name:hover,
hirhanyo-header a.hh-top-source-name:focus-visible {
  text-decoration: underline;
}

/* One color per rank */
hirhanyo-header .hh-top-sources-list > li:nth-child(1) strong { color: var(--color-cyan); }
hirhanyo-header .hh-top-sources-list > li:nth-child(2) strong { color: var(--color-green); }
hirhanyo-header .hh-top-sources-list > li:nth-child(3) strong { color: var(--color-amber); }

hirhanyo-header .hh-solar-times {
  display: grid;
  gap: 4px;
}

hirhanyo-header .hh-solar-row {
  display: grid;
  grid-template-columns: 15px 57px auto;
  align-items: center;
  column-gap: 5px;
  line-height: 1;
}

hirhanyo-header .hh-solar-row small {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .035em;
  white-space: nowrap;
}

hirhanyo-header .hh-solar-row .hh-time {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

hirhanyo-header .hh-solar-symbol {
  display: inline-grid;
  width: 13px;
  height: 13px;
  place-items: center;
  font-size: 11px;
}

/* What the icon represents: warm for the sun, cool for the night */
hirhanyo-header .hh-solar-icon--rise { --solar-color: var(--color-amber); }
hirhanyo-header .hh-solar-icon--set { --solar-color: var(--color-orange); }
hirhanyo-header .hh-solar-icon--day { --solar-color: var(--color-yellow); }
hirhanyo-header .hh-solar-icon--night { --solar-color: var(--color-indigo); }

hirhanyo-header .hh-solar-symbol[class*="hh-solar-icon--"] {
  color: var(--solar-color);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--solar-color) 45%, transparent));
}

hirhanyo-header .hh-info-cell > .icon {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
  font-size: 17px;
}

hirhanyo-header .hh-info-cell > span,
hirhanyo-header .hh-top-sources-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}

hirhanyo-header .hh-info-cell small {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .035em;
  white-space: nowrap;
}

hirhanyo-header .hh-info-cell strong {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

hirhanyo-header a.hh-info-cell {
  color: inherit;
  text-decoration: none;
}

hirhanyo-header a.hh-info-cell:hover strong,
hirhanyo-header a.hh-info-cell:focus-visible strong {
  color: var(--color-primary);
}

/* The incoming news strip: time, source and title, scrolling; paused on hover, focus or the button */
hirhanyo-header .hh-breaking-ticker {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1440px;
  min-height: 42px;
  margin-inline: auto;
  overflow: hidden;
  border-inline: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

hirhanyo-header .hh-ticker-label {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  padding: 0 18px 0 14px;
  border-right: 1px solid var(--color-border);
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-danger) 10%, transparent), transparent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
}

hirhanyo-header .hh-ticker-label strong {
  color: var(--color-text);
  font-weight: 600;
}

hirhanyo-header .hh-ticker-label > span:last-child {
  color: var(--color-muted);
  font-size: 8px;
}

hirhanyo-header .hh-ticker-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-danger);
}

hirhanyo-header .hh-ticker-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--color-danger);
  border-radius: 50%;
  animation: hh-ticker-ping 2s ease-out infinite;
}

@keyframes hh-ticker-ping {
  from { opacity: .8; transform: scale(.5); }
  to { opacity: 0; transform: scale(1.4); }
}

hirhanyo-header .hh-ticker-viewport {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

hirhanyo-header .hh-ticker-track {
  position: relative;
  width: 100%;
  height: 100%;
}

hirhanyo-header .hh-ticker-list {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* One headline at a time: the outgoing one fades out first, then the incoming one fades in, so
   two headlines never overlap */
hirhanyo-header .hh-ticker-list li {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

hirhanyo-header .hh-ticker-list li.is-active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .4s ease .3s;
}

hirhanyo-header .hh-ticker-list li::after {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-inline: 4px;
  background: var(--color-border);
  transform: rotate(45deg);
}

hirhanyo-header .hh-ticker-item {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 18px;
  color: var(--color-text);
  white-space: nowrap;
}

hirhanyo-header .hh-ticker-item time {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

hirhanyo-header .hh-ticker-source {
  flex: 0 1 auto;
  max-width: 25%;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

hirhanyo-header .hh-ticker-headline {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}

hirhanyo-header .hh-ticker-item:hover .hh-ticker-headline,
hirhanyo-header .hh-ticker-item:focus-visible .hh-ticker-headline {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

hirhanyo-header .hh-ticker-item:focus-visible {
  outline-offset: -3px;
}

hirhanyo-header .hh-ticker-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 0 8px 0 10px;
  border-left: 1px solid var(--color-border);
}

hirhanyo-header .hh-ticker-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  color: var(--color-muted);
}

hirhanyo-header .hh-ticker-controls button:hover,
hirhanyo-header .hh-ticker-controls button[aria-pressed="true"] {
  border-color: var(--color-border);
  color: var(--color-primary);
  background: var(--color-surface-elevated);
}

hirhanyo-header .hh-ticker-controls .icon {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

hirhanyo-header .hh-ticker-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
}

hirhanyo-header .hh-ticker-all .icon {
  width: 13px;
  height: 13px;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  hirhanyo-header .hh-ticker-pulse::after {
    animation: none;
  }

  /* Still one headline at a time and rotating (it can be paused), only without the fade */
  hirhanyo-header .hh-ticker-list li,
  hirhanyo-header .hh-ticker-list li.is-active {
    transition: none;
  }
}

@media (max-width: 1100px) {
  hirhanyo-header .hh-brand-telemetry {
    grid-template-columns: minmax(210px, .75fr) minmax(0, 1.25fr);
  }

  hirhanyo-header .hh-brand-block {
    gap: 12px;
    padding: 16px 18px;
  }

  hirhanyo-header .hh-brand-emblem {
    width: clamp(72px, 8.6vw, 96px);
  }

  hirhanyo-header .hh-brand-divider {
    height: 96px;
  }

  hirhanyo-header .hh-brand-kicker {
    font-size: 8px;
    letter-spacing: .12em;
  }

  hirhanyo-header .hh-wordmark {
    font-size: clamp(25px, 2.7vw, 30px);
  }

  hirhanyo-header .hh-tagline {
    font-size: clamp(11px, 1.15vw, 12.5px);
  }

  hirhanyo-header .hh-brand-detail {
    gap: 5px;
    font-size: 7px;
    letter-spacing: .1em;
  }

  hirhanyo-header .hh-brand-detail::before {
    display: none;
  }

  hirhanyo-header .hh-brand-detail {
    margin-top: 9px;
  }

  hirhanyo-header .hh-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  hirhanyo-header .hh-telemetry-panel:last-child {
    grid-column: 1 / -1;
    min-height: 92px;
  }

  hirhanyo-header .hh-telemetry-panel:last-child .hh-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 800px) {
  hirhanyo-header .hh-system-bar {
    padding-inline: 10px;
  }

  hirhanyo-header .hh-system-readout {
    gap: 10px;
  }

  hirhanyo-header .hh-calendar-item {
    padding-inline: 7px;
  }

  hirhanyo-header .hh-calendar-names {
    max-width: 110px;
  }

  hirhanyo-header .hh-brand-telemetry {
    grid-template-columns: minmax(0, 1fr);
  }

  hirhanyo-header .hh-brand-emblem {
    width: 112px;
  }

  hirhanyo-header .hh-brand-divider {
    height: 104px;
  }

  hirhanyo-header .hh-brand-kicker {
    font-size: 10px;
    letter-spacing: .18em;
  }

  hirhanyo-header .hh-wordmark {
    font-size: 38px;
  }

  hirhanyo-header .hh-tagline {
    font-size: 15px;
  }

  hirhanyo-header .hh-brand-detail {
    gap: 7px;
    font-size: 9px;
    letter-spacing: .15em;
  }

  hirhanyo-header .hh-brand-detail::before {
    display: block;
  }

  hirhanyo-header .hh-brand-block {
    min-height: 136px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  hirhanyo-header .hh-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  hirhanyo-header .hh-telemetry-panel:last-child {
    grid-column: auto;
    min-height: 146px;
  }

  hirhanyo-header .hh-telemetry-panel:last-child .hh-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  hirhanyo-header .hh-information-strip {
    height: 48px;
  }

  hirhanyo-header .hh-info-cell {
    flex: 0 0 auto;
    min-width: max-content;
  }
}

@media (max-width: 620px) {
  hirhanyo-header .hh-system-descriptor,
  hirhanyo-header .hh-system-divider,
  hirhanyo-header .hh-clock:not(.hh-cet-clock),
  hirhanyo-header .hh-connection > span,
  hirhanyo-header .hh-calendar-readout {
    display: none;
  }

  hirhanyo-header .hh-system-bar {
    min-height: 32px;
  }

  hirhanyo-header .hh-system-identity,
  hirhanyo-header .hh-system-readout {
    gap: 8px;
  }

  hirhanyo-header .hh-system-readout {
    font-size: 8px;
  }

  hirhanyo-header .hh-brand-telemetry {
    min-height: 0;
  }

  hirhanyo-header .hh-brand-block {
    min-height: 112px;
    gap: 12px;
    padding: 15px 16px 18px;
  }

  hirhanyo-header .hh-brand-emblem {
    width: 84px;
  }

  hirhanyo-header .hh-brand-divider {
    height: 76px;
  }

  hirhanyo-header .hh-brand-top {
    justify-content: flex-start;
    margin-bottom: 3px;
  }

  hirhanyo-header .hh-brand-detail {
    display: none;
  }

  hirhanyo-header .hh-brand-kicker {
    font-size: 8px;
    letter-spacing: .12em;
  }

  hirhanyo-header .hh-wordmark {
    margin-top: 0;
    font-size: 30px;
  }

  hirhanyo-header .hh-tagline {
    margin-top: 4px;
    font-size: 13px;
  }

  hirhanyo-header .hh-telemetry {
    display: none;
  }

  hirhanyo-header .hh-mobile-metrics {
    display: flex;
  }

  hirhanyo-header .hh-info-cell {
    padding-inline: 10px;
  }

  hirhanyo-header .hh-ticker-label {
    padding-inline: 10px 12px;
  }

  hirhanyo-header .hh-ticker-label > span:last-child,
  hirhanyo-header .hh-ticker-all {
    display: none;
  }

  hirhanyo-header .hh-ticker-headline {
    font-size: 11px;
  }

  /* The headline gets the room of the source chip; the source is on the news itself */
  hirhanyo-header .hh-ticker-source {
    display: none;
  }

  hirhanyo-header .hh-ticker-item {
    gap: 8px;
    padding-inline: 12px;
  }
}

@media (max-width: 370px) {
  hirhanyo-header .hh-system-identity strong {
    font-size: 9px;
  }

  hirhanyo-header .hh-system-readout {
    gap: 6px;
  }

  hirhanyo-header .hh-online {
    font-size: 7px;
  }

  hirhanyo-header .hh-cet-clock > span {
    display: none;
  }

  hirhanyo-header .hh-brand-block {
    gap: 9px;
    padding-inline: 11px;
  }

  hirhanyo-header .hh-brand-emblem {
    width: 62px;
  }

  hirhanyo-header .hh-brand-divider {
    height: 60px;
  }

  hirhanyo-header .hh-wordmark {
    font-size: 25px;
  }

  hirhanyo-header .hh-tagline {
    font-size: 11px;
  }

}

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

/* Without the telemetry panels (the Django shell until they have data) the brand fills the row */
hirhanyo-header .hh-brand-telemetry:not(:has(.hh-telemetry)) {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Header metric panels (Django: the metric selectors of ADR 0016; variants in components/frame.html) ----------
 * Three panels of numbers the site really computes: the news of today (news.published today, last
 * hour, rolling 24 hours, the daily buckets of 7 days; sources.active of sources.total;
 * news.last_collected), the trending topics (tags.trending: three at most, the news count and the
 * momentum as a bar relative to the first; the score itself is in the title), and what to read
 * of the last 24 hours (the story of the most independent sources from stories.multi_source with
 * the number of such stories, news.copies, dossiers.updated; the analysed news of
 * analysis.objectivity_avg in the heading). A change is shown against the same time yesterday,
 * without a judgement colour. A missing value is "—" with its reason; a stale panel says so. */
hirhanyo-header .hh-panel-heading .hh-panel-state { color: var(--color-warning-text); }
hirhanyo-header .hh-metric-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding-top: 9px; }
hirhanyo-header .hh-metric-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; min-width: 0; }
hirhanyo-header .hh-metric-big .hh-metric-delta { flex-basis: 100%; }
hirhanyo-header .hh-metric-big strong { color: var(--color-text); font-family: var(--font-mono); font-size: 24px; font-weight: 600; line-height: 1; }
hirhanyo-header .hh-metric-big small { color: var(--color-muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; }
hirhanyo-header .hh-metric-delta { display: block; margin-top: 3px; color: var(--color-muted); font-family: var(--font-mono); font-size: 7px; letter-spacing: .03em; white-space: nowrap; }
hirhanyo-header .hh-metric-delta b { color: var(--color-text); font-weight: 600; }
hirhanyo-header .hh-week { display: grid; grid-template-columns: repeat(7, 6px); gap: 3px; align-items: end; height: 30px; }
hirhanyo-header .hh-week i { display: block; min-height: 2px; height: calc(var(--n) / var(--max) * 100%); border-radius: 1px 1px 0 0; background: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); }
hirhanyo-header .hh-week i:last-child { background: var(--color-primary); }
hirhanyo-header .hh-week i.is-gap { height: 2px; background: var(--color-border); }
hirhanyo-header .hh-metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--color-border); }
hirhanyo-header .hh-metric-row > div, hirhanyo-header .hh-metric-grid > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
hirhanyo-header .hh-metric-row strong, hirhanyo-header .hh-metric-grid strong { overflow: hidden; color: var(--color-text); font-family: var(--font-mono); font-size: 13px; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
hirhanyo-header .hh-metric-row strong small, hirhanyo-header .hh-metric-grid strong small { color: var(--color-muted); font-size: 8px; font-weight: 500; }
hirhanyo-header .hh-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; padding-top: 10px; }
hirhanyo-header .hh-metric-grid .hh-metric-delta { margin-top: 0; }
hirhanyo-header .hh-metric-none { color: var(--color-muted) !important; }
hirhanyo-header .hh-metric-note { margin: 8px 0 0; color: var(--color-muted); font-family: var(--font-mono); font-size: 7px; letter-spacing: .03em; line-height: 1.5; }
hirhanyo-header .hh-topics { display: grid; gap: 7px; margin: 0; padding: 10px 0 0; list-style: none; }
hirhanyo-header .hh-topic { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 1px 10px; align-items: center; }
hirhanyo-header .hh-topic a { overflow: hidden; color: var(--color-text); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
hirhanyo-header .hh-topic a:hover { color: var(--color-primary); }
hirhanyo-header .hh-topic small { grid-column: 1; color: var(--color-muted); font-family: var(--font-mono); font-size: 7px; letter-spacing: .03em; white-space: nowrap; }
hirhanyo-header .hh-topic-meter { grid-row: 1 / span 2; grid-column: 2; height: 4px; overflow: hidden; border-radius: 2px; background: var(--color-border); }
hirhanyo-header .hh-topic-meter i { display: block; height: 100%; width: calc(var(--g) / var(--gmax) * 100%); background: var(--color-primary); }
hirhanyo-header .hh-topics-empty { margin: 0; padding-top: 14px; color: var(--color-muted); font-size: 10px; line-height: 1.5; }
hirhanyo-header .hh-lead-story { display: grid; gap: 3px; padding-top: 9px; color: inherit; text-decoration: none; }
hirhanyo-header .hh-lead-story > b { display: -webkit-box; overflow: hidden; color: var(--color-text); font-size: 11px; font-weight: 600; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
hirhanyo-header .hh-lead-story:hover > b, hirhanyo-header .hh-lead-story:focus-visible > b { color: var(--color-primary); }
hirhanyo-header .hh-lead-story .hh-metric-delta { margin-top: 0; }
/* Without a lead story (a quiet day) the row follows the heading, which has its own line */
hirhanyo-header .hh-panel-heading + .hh-metric-row { margin-top: 0; border-top: 0; }

/* ---------- Weather cell: the cities take turns (variants in components/frame.html) ----------
 * One city at a time: the icon of its weather code (the PNG set of the weather app, day or night),
 * the city, the temperature and the condition. The cities are stacked in one grid cell, so the
 * cell keeps the width of the longest and nothing moves; the active one fades in (header.js). */
hirhanyo-header .hh-weather-cities { display: grid; margin: 0; padding: 0; list-style: none; }
hirhanyo-header .hh-weather-city { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
hirhanyo-header .hh-weather-city.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
/* The icons are drawn on 64 px with transparent margins: the drawing takes 53-61% of it, every side
 * keeps at least 17%. The box stays 30 px (the strip keeps its height); the icon is scaled from
 * its centre, so the largest drawing fills about 98% of the box. The file is not cropped. */
hirhanyo-header .hh-weather-png { --weather-icon-scale: 1.6; display: block; width: 30px; height: 30px; flex: none; transform: scale(var(--weather-icon-scale)); transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  hirhanyo-header .hh-weather-city, hirhanyo-header .hh-weather-city.is-active { transition: none; }
}
