:root {
  --accent: #E57E24;
  --bg: #2F385C;
  --surface: #131F23;
  --surface-strong: #1A282D;
  --surface-hover: #22343A;
  --ink: #F2F2F2;
  --muted: #82959B;
  --line: #2A3C42;
  --line-strong: #465A61;
  --base-size: 15px;
  --metadata-size: calc(var(--base-size) - 2px);
  --footer-size: 0.75rem;
  --label-width: 74px;
  --timeline-day-width: 54px;
  --dot-size: 36px;
  --article-logo-size: 36px;
  --controls-bottom-gap: 18px;
  --month-select-width: 100px;
  --year-select-width: 100px;
  --scrollbar-thickness: 88px;
  --page-bg: var(--bg);
}

html[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F6F8F9;
  --surface-strong: #EEF2F3;
  --surface-hover: #E8EFF1;
  --ink: #0F1A1C;
  --muted: #576F76;
  --line: #D6DFE2;
  --line-strong: #B6C3C7;
}

* { box-sizing: border-box; }
html { background: var(--page-bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--base-size);
  line-height: 1.25;
}
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

.page-shell,
footer {
  width: min(1220px, calc(100% - 24px));
  margin-inline: auto;
}

.site-header {
  min-height: 42px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.daily-summary {
  padding: 13px 0 16px;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}
.summary-copy { min-width: 0; }
.changed-summary { margin-top: 6px; }
.home-button {
  min-height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 9px 6px 7px;
  color: var(--ink);
  font-weight: 700;
}
.home-button:hover { background: var(--surface-hover); }
.home-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: currentColor;
}
.summary-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  margin: 0 2px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: var(--base-size);
  line-height: 1;
  vertical-align: middle;
}


.entity-summary {
  min-width: 0;
  flex: 1 1 auto;
}
.entity-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.entity-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #FFFFFF;
  object-fit: contain;
  padding: 2px;
}
.entity-title {
  font-weight: 800;
  font-size: var(--base-size);
}
.entity-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--metadata-size);
  font-weight: 600;
}
.outlet-logo-link {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}
.article-outlet-identity {
  width: 46px;
  min-width: 46px;
  height: 24px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.country-flag {
  width: 17px;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  font-size: 14px;
  line-height: 1;
  border-radius: 2px;
  user-select: none;
}
.outlet-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(260px, calc(100vw - 20px));
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
  font-size: var(--metadata-size);
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}
.outlet-tooltip[hidden] { display: none; }
.entity-link {
  text-decoration: none;
}
.entity-link:hover,
.person-link:hover,
.outlet-logo-link:hover + .outlet-name {
  color: var(--accent);
}
.person-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.calendar-panel {
  margin-top: 8px;
  border: 0;
  background: var(--page-bg);
  overflow: hidden;
  border-radius: 0;
}
.calendar-controls {
  min-height: 42px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px var(--label-width);
}
.calendar-search-wrap {
  width: min(330px, 42vw);
  margin-left: auto;
}
.article-search {
  width: 100%;
  min-height: 31px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  border-radius: 4px;
  padding: 5px 9px;
  color: var(--ink);
}
.article-search::placeholder { color: var(--muted); }
.calendar-selectors {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.calendar-controls select,
.footer-controls select {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  border-radius: 4px;
  padding: 5px 25px 5px 7px;
}
.calendar-controls select { min-width: 106px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.calendar-layout {
  display: grid;
  grid-template-columns: var(--label-width) minmax(0, 1fr);
  position: relative;
}
.calendar-row-labels {
  position: relative;
  z-index: 3;
  background: var(--page-bg);
  font-weight: 700;
}
.calendar-row-labels > div {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding: 0 7px;
  white-space: nowrap;
}
.calendar-row-labels .month-label-spacer { height: 20px; }

.calendar-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-gutter: stable;
  scroll-behavior: auto;
}
.calendar-scroll::-webkit-scrollbar { height: var(--scrollbar-thickness); }
.calendar-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
.calendar-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 6px solid var(--page-bg);
}
.calendar-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.calendar-track {
  width: max-content;
  min-width: max-content;
}
.month-row,
.day-row,
.count-row,
.plot-row {
  display: grid;
  grid-template-columns: repeat(var(--timeline-days, 1), var(--timeline-day-width));
  width: max-content;
}
.month-row { height: 20px; }
.month-cell {
  width: var(--timeline-day-width);
  min-width: var(--timeline-day-width);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  position: relative;
  z-index: 1;
  text-align: center;
  user-select: none;
}
.day-row,
.count-row { height: 44px; }
.day-cell,
.count-cell {
  width: var(--timeline-day-width);
  min-width: var(--timeline-day-width);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  scroll-snap-align: start;
}
.day-circle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--base-size);
  font-weight: 700;
  background: transparent;
}
.count-cell {
  align-items: flex-start;
  padding-top: 2px;
}
.count-circle {
  appearance: none;
  border: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  color: #111111;
  font-size: var(--base-size);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.count-circle:hover,
.count-circle:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.day-cell.today .day-circle {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  border-width: 2px;
}
.day-cell.selected .day-circle {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.day-cell.today.selected .day-circle {
  background: #FFFFFF;
  color: #000000;
  border-color: var(--accent);
  border-width: 3px;
}
.count-cell.selected .count-circle {
  filter: brightness(1.12);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.count-circle > span {
  display: block;
  min-width: 16px;
  text-align: center;
}

.plot-row {
  height: 0;
  min-height: 0;
  overflow: hidden;
  align-items: start;
}
.calendar-panel.expanded .plot-row { height: var(--plot-height, 248px); }
.plot-column {
  width: var(--timeline-day-width);
  min-width: var(--timeline-day-width);
  height: var(--plot-height, 248px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 7px 2px;
  overflow: visible;
}
.plot-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  min-width: var(--dot-size);
  min-height: var(--dot-size);
  border: 0.5px solid var(--line-strong);
  border-radius: 50%;
  background: #FFFFFF;
  padding: 1px;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: manipulation;
}
.plot-dot:hover,
.plot-dot:focus-visible { outline: 1px solid var(--accent); outline-offset: 1px; }
.plot-row.outlet-highlight-active .plot-dot {
  opacity: 0.18;
  filter: grayscale(0.72);
}
.plot-row.outlet-highlight-active .plot-dot.outlet-match {
  opacity: 1;
  filter: none;
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}
.plot-dot img,
.plot-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.plot-dot .logo-fallback,
.plot-logo.logo-fallback {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: #111111;
}

.calendar-handle {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: var(--page-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  letter-spacing: 0.035em;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  touch-action: pan-x;
}
.calendar-handle:hover { background: var(--page-bg); }

.records { margin-top: 14px; }
.records-filter-label {
  padding: 0 8px 7px;
  color: var(--muted);
  font-size: var(--metadata-size);
  font-weight: 700;
}
.article-list { background: transparent; }
.article-card {
  min-width: 0;
  padding: 8px 8px 7px;
  border: 0;
  border-radius: 4px;
}
.article-card + .article-card { margin-top: 2px; }
.article-card:hover { background: var(--surface-hover); }
.article-card-source { cursor: pointer; }
.article-primary,
.article-secondary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
}
.article-primary { font-weight: 700; }
.outlet-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #FFFFFF;
  object-fit: contain;
  padding: 2px;
}
.outlet-name {
  flex: 0 0 auto;
  font-size: var(--base-size);
}
.article-divider { color: var(--muted); }
.new-tag,
.updated-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #000000;
  font-size: calc(var(--base-size) - 3px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}
.new-tag { background: var(--accent); }
.updated-tag { background: #E5C724; }
.republish-summary {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: var(--metadata-size);
  font-weight: 700;
}
.republish-group {
  margin: 4px 0 0 46px;
  color: var(--muted);
  font-size: var(--metadata-size);
}
.republish-group summary {
  cursor: pointer;
  user-select: none;
  font-weight: 700;
}
.republish-list {
  margin-top: 4px;
  display: grid;
  gap: 4px;
}
.republish-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.republish-item .headline-link { font-size: var(--metadata-size); }
.headline-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  font-size: var(--base-size);
  font-weight: 700;
}
.headline-link:hover { color: var(--accent); }
.headline-unavailable { cursor: default; }
.status-code {
  appearance: none;
  margin-left: auto;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.status-code:hover,
.status-code:focus-visible {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.article-secondary {
  margin-top: 3px;
  padding-left: 53px;
  font-size: var(--metadata-size);
  color: var(--muted);
  text-overflow: ellipsis;
}
.article-secondary > span { flex: 0 0 auto; }
.article-secondary .secondary-tail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-separator { opacity: 0.72; }
.empty { padding: 20px 8px; }

.demo-panel {
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.demo-panel summary { padding: 9px; font-weight: 700; }
.demo-actions {
  padding: 0 9px 9px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.demo-actions button {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-strong);
  padding: 6px 8px;
}
.demo-actions button:hover { background: var(--surface-hover); }
.demo-message { padding: 0 9px 9px; min-height: 15px; }

footer {
  border-top: 1px solid var(--line);
  padding: 14px 0 28px;
  font-size: var(--footer-size);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.status-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.status-legend b {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.footer-version {
  margin-top: 10px;
  text-align: right;
  color: var(--muted);
  font-size: inherit;
  font-weight: 700;
}
.footer-controls {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.theme-toggle,
.custom-background-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.theme-toggle input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.background-swatch {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}
.background-swatch[data-background-colour="#000000"] { background: #000000; }
.background-swatch[data-background-colour="#2F385C"] { background: #2F385C; }
.background-swatch[aria-pressed="true"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.custom-background-control input[type="color"] {
  width: 30px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-strong);
}
.custom-background-control input[type="text"] {
  width: 82px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: inherit;
  text-transform: uppercase;
}
.custom-background-control input[type="text"].invalid {
  border-color: #D93900;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Record detail */
dialog {
  width: min(820px, calc(100% - 24px));
  max-height: 88vh;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--base-size);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.68); }
.dialog-shell { position: relative; padding: 18px; }
.close-button {
  position: sticky;
  float: right;
  top: 7px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  border-radius: 4px;
}
.detail-title { margin: 0 40px 10px 0; font-size: var(--base-size); }
.detail-status { font-weight: 700; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin: 14px 0;
}
.detail-cell {
  padding: 7px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  overflow-wrap: anywhere;
}
.detail-cell b { display: block; }
.detail-section { margin-top: 14px; }
.detail-section h3 { margin: 0 0 5px; font-size: var(--base-size); }
.people-list,
.history-list { list-style: none; margin: 0; padding: 0; }
.people-list li,
.history-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.detail-links { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-links a { color: var(--accent); }
.muted { color: var(--muted); }

@media (max-width: 800px) {
  :root {
    --label-width: 72px;
    --timeline-day-width: 60px;
    --dot-size: 36px;
  }
  .page-shell, footer { width: calc(100% - 14px); }
  .site-header { min-height: 38px; padding-top: 5px; }
  .daily-summary { padding-top: 10px; }
  .home-button { min-height: 34px; padding-left: 3px; }
  .calendar-controls {
    padding-left: 6px;
    flex-wrap: wrap;
  }
  .calendar-search-wrap {
    width: 100%;
    order: 1;
  }
  .calendar-selectors {
    width: 100%;
    order: 2;
    justify-content: flex-end;
  }
  .calendar-controls select { min-width: 96px; }
  .calendar-scroll { scroll-snap-type: x proximity; }
  .article-card { padding-inline: 6px; }
  .article-secondary { padding-left: 53px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .plot-row,
  .calendar-scroll { transition: none; scroll-behavior: auto; }
}

/* v0.20 responsive controls, fixed production sizing, static dot plot and report form */
.calendar-controls {
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: var(--controls-bottom-gap);
  flex-wrap: nowrap;
}
.calendar-controls .home-button {
  flex: 0 0 auto;
  justify-content: flex-start;
  margin: 0;
}
.calendar-search-wrap {
  flex: 1 1 auto;
  width: auto;
  min-width: 90px;
  margin-left: 0;
}
.calendar-selectors {
  flex: 0 0 auto;
  gap: 6px;
}
.calendar-controls select {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
}
#monthSelect {
  width: var(--month-select-width);
  min-width: var(--month-select-width);
  padding-left: 10px;
  padding-right: 34px;
}
#yearSelect {
  width: var(--year-select-width);
  min-width: var(--year-select-width);
  padding-left: 10px;
  padding-right: 34px;
}
.month-cell {
  font-size: 11px;
  letter-spacing: 0.025em;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
}

/* Article-list logos and plot dots use the agreed 36px size. */
.outlet-logo-link {
  width: var(--article-logo-size);
  height: var(--article-logo-size);
  flex: 0 0 var(--article-logo-size);
}
.outlet-logo {
  width: var(--article-logo-size);
  height: var(--article-logo-size);
  flex: 0 0 var(--article-logo-size);
  border: 0.25px solid var(--line-strong);
  padding: 0.5px;
}
.article-outlet-identity {
  width: calc(var(--article-logo-size) + 22px);
  min-width: calc(var(--article-logo-size) + 22px);
  height: var(--article-logo-size);
  flex: 0 0 calc(var(--article-logo-size) + 22px);
  gap: 5px;
  overflow: visible;
}
.country-flag {
  display: inline-grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 17px;
}
.article-secondary {
  padding-left: calc(var(--article-logo-size) + 29px);
}
.republish-group {
  margin-left: calc(var(--article-logo-size) + 22px);
}

/* Let more of each outlet logo show through the ring. */
.plot-dot {
  border-width: 0.25px;
  padding: 0.5px;
}
.plot-dot:hover,
.plot-dot:focus-visible {
  outline-width: 0.5px;
  outline-offset: 0.5px;
}
.plot-row.outlet-highlight-active .plot-dot.outlet-match {
  outline-width: 0.5px;
  outline-offset: 0.5px;
}

.footer-support {
  margin-top: 10px;
}
.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-link-button:hover { color: var(--accent); }

.report-form {
  display: grid;
  gap: 12px;
}
.report-form label {
  display: grid;
  gap: 5px;
  font-weight: 700;
}
.report-form select,
.report-form input,
.report-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 7px 8px;
}
.report-form textarea {
  min-height: 120px;
  resize: vertical;
  font: inherit;
}
.report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.report-actions button {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-strong);
  padding: 7px 10px;
  font-weight: 700;
}
.report-actions button:hover { background: var(--surface-hover); }
#reportStatus { color: var(--muted); }

@media (max-width: 800px) {
  .calendar-controls {
    padding-left: 3px;
    padding-right: 3px;
    flex-wrap: nowrap;
  }
  .calendar-search-wrap {
    width: auto;
    min-width: 70px;
    order: initial;
  }
  .calendar-selectors {
    width: auto;
    order: initial;
    justify-content: flex-end;
  }
  .calendar-controls select { flex-shrink: 0; }
  #monthSelect { width: var(--month-select-width); min-width: var(--month-select-width); }
  #yearSelect { width: var(--year-select-width); min-width: var(--year-select-width); }
}

@media (max-width: 520px) {
  .home-button .home-label { display: none; }
  .calendar-controls .home-button {
    width: 34px;
    min-width: 34px;
    padding: 6px;
  }
  .calendar-search-wrap { min-width: 60px; }
  .article-search { padding-inline: 7px; }
  #monthSelect { width: var(--month-select-width); min-width: var(--month-select-width); padding-left: 7px; padding-right: 30px; }
  #yearSelect { width: var(--year-select-width); min-width: var(--year-select-width); padding-left: 7px; padding-right: 30px; }
}


/* v0.20 policy: no animations or animated transitions anywhere on the site. */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
