/* Story colours may change. The masthead, reading controls and focus states stay shared. */
@font-face {
  font-family: "Horizons Archivo";
  src: url("assets/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --soc-header-bg: #faf9f6;
  --soc-header-fg: #202722;
  --soc-header-muted: #545f58;
  --soc-header-border: #b7c0b9;
  --soc-header-active-bg: #202722;
  --soc-header-active-fg: #ffffff;
  --soc-header-focus: #1a6cbd;
}

.soc-reading-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px clamp(16px, 4vw, 48px);
  background: var(--soc-header-bg);
  color: var(--soc-header-fg);
  border-bottom: 1px solid var(--soc-header-border);
  font: 500 14px/1.4 system-ui, sans-serif;
}

.soc-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.soc-brand img { flex: none; width: 28px; height: 28px; border-radius: 6px; }
.soc-brand-word {
  font-family: "Horizons Archivo", Archivo, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -.02em;
  line-height: 1;
}
.soc-brand-i { position: relative; display: inline-block; }
.soc-brand-i::after {
  content: "";
  position: absolute;
  top: .08em;
  left: 50%;
  transform: translateX(-50%);
  width: .22em;
  height: .22em;
  border-radius: 50%;
  background: #ef7c00;
  forced-color-adjust: none;
}
.soc-brand:focus-visible { outline: 3px solid var(--soc-header-focus); outline-offset: 3px; }
.soc-article-header .soc-dek { text-wrap: pretty; }
.soc-publication-date { font-variant-numeric: tabular-nums; }
.soc-reading-options { display: flex; align-items: center; gap: 14px; }
.soc-reading-time { color: var(--soc-header-muted); white-space: nowrap; }
.soc-reading-depth {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--soc-header-border);
  border-radius: 999px;
}
.soc-reading-depth a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--soc-header-fg);
  text-decoration: none;
  white-space: nowrap;
}
.soc-reading-depth a[aria-current="page"] {
  background: var(--soc-header-active-bg);
  color: var(--soc-header-active-fg);
}
.soc-reading-depth a:focus-visible {
  outline: 3px solid var(--soc-header-focus);
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .soc-reading-header { align-items: flex-start; padding: 12px 16px; }
  .soc-reading-options { flex-direction: column-reverse; align-items: flex-end; gap: 5px; }
  .soc-reading-time { font-size: 12px; }
  .soc-reading-depth a { padding: 9px 12px; }
}
@media (max-width: 360px) {
  .soc-reading-header { gap: 8px; padding-inline: 12px; }
  .soc-reading-depth a { padding-inline: 8px; }
}
