/* NCST Main Feed — adapted from Figma node 4:2 */

:root {
  --bg: #f2f4f6;
  --bg-footer: #f2f4f6;
  --ink: #0c0c09;
  --muted: #554335;
  --muted-60: rgba(85, 67, 53, 0.6);
  --border: rgba(12, 12, 9, 0.1);
  --accent: #f7931e;
  --accent-deep: #8d4f00;
  --badge-fire: #ba1a1a;
  --badge-police: #8d4f00;
  --badge-ems: #16a34a;
  --facebook: #1877f2;
  --feed-width: 800px;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background-color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* —— Header —— */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 24px;
}

.nav-link {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.12px;
  line-height: 1.4;
  color: var(--muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.nav-link.is-active {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.nav-link--placeholder {
  cursor: default;
  opacity: 0.85;
}

.nav-chevron {
  width: 9px;
  height: 6px;
}

/* —— Brand (below header, above filters) —— */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 0;
  max-width: var(--feed-width);
  padding: 0 16px;
  min-height: 48px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__title {
  margin: 0;
  font-weight: 900;
  font-size: 32px;
  line-height: 48px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  text-align: center;
}

/* —— Filters —— */
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  max-width: var(--feed-width);
  margin: 16px auto 0;
  padding: 0 16px;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-60);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.12px;
  line-height: 1.4;
  padding: 9px 17px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.filter-btn:hover {
  border-color: color-mix(in srgb, var(--cat-color, var(--accent)) 45%, transparent);
  color: var(--muted);
}

.filter-btn.is-active {
  background: var(--cat-color, var(--accent));
  border-color: var(--cat-color, var(--accent));
  color: #fff;
}

.filter-btn:active {
  transform: scale(0.98);
}

/* —— Live clock (between filters and feed) —— */
.feed-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px auto 0;
  max-width: var(--feed-width);
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

.feed-now::after {
  content: "";
  display: block;
  width: 2px;
  height: 20px;
  margin: 5px 0;
  background: var(--border);
}

/* —— Chronological milestones between cards —— */
.feed-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  text-align: center;
}

.feed-milestone::before,
.feed-milestone::after {
  content: "";
  display: block;
  width: 2px;
  height: 20px;
  margin: 5px 0;
  background: var(--border);
}

.feed-milestone p {
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--muted);
  text-transform: uppercase;
}

/* —— Feed —— */
.feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--feed-width);
  margin: 0 auto;
  padding: 0 16px;
}

.feed > .post {
  margin-top: 16px;
}

.feed > .post:first-child {
  margin-top: 0;
}

.feed > .feed-milestone + .post {
  margin-top: 0;
}

.feed > .post + .feed-milestone {
  margin-top: 0;
}

.feed > .post + .post {
  margin-top: 16px;
}

.feed-empty {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  color: var(--muted-60);
  font-weight: 700;
  letter-spacing: 1.12px;
}

.post {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: post-in 0.45s ease both;
}

@keyframes post-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post__media {
  background: #d8dadc;
  height: 256px;
  overflow: hidden;
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__body {
  padding: 32px 33px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post__meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.badge {
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 1.1px;
  line-height: 1.5;
  text-transform: uppercase;
}

.badge--fire {
  color: var(--badge-fire);
}

.badge--police {
  color: var(--badge-police);
}

.badge--ems {
  color: var(--badge-ems);
}

.badge--default {
  color: var(--muted);
}

.badge--category {
  color: var(--cat-color, var(--muted));
}

.post__time {
  margin-left: auto;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: none;
  white-space: nowrap;
}

.post__title {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  color: var(--ink);
}

.post__text {
  margin: 0;
  padding-bottom: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
}

.post__read-more-wrap {
  margin: -8px 0 0;
  padding-bottom: 16px;
}

.post__read-more {
  display: inline;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post__read-more:hover {
  color: var(--accent);
}

.post__update {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post__update-latest {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post__update-label {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-60);
}

.post__update-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-60);
}

.post__update-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-align: left;
}

.post__update-toggle:hover {
  color: var(--accent);
}

.post__update-toggle-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.post__update-toggle[aria-expanded="true"] .post__update-toggle-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.post__update-timeline[hidden] {
  display: none !important;
}

.update-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-timeline__item {
  position: relative;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-timeline__item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
}

.post__agency {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

.post__agency p {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--muted-60);
}

.post__share {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.share-btn:hover {
  transform: scale(1.06);
  opacity: 0.92;
}

.share-btn--facebook {
  background: var(--facebook);
}

.share-btn--x {
  background: var(--ink);
}

.share-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

/* —— Infinite-scroll sentinel + loader —— */
.feed-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.feed-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: var(--feed-width);
  margin: 0 auto;
  padding: 32px 16px;
}

.feed-loader.is-loading {
  display: flex;
}

.feed-loader[hidden] {
  display: none !important;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 9999px;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.feed-loader p {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.12px;
  color: var(--muted);
}

/* —— Article pages (news / weather) —— */
.article-wrap {
  width: 100%;
  max-width: none;
  margin: 24px auto 0;
  padding: 0 16px;
}

@media (min-width: 721px) {
  .article-wrap {
    width: 65%;
  }
}

.article {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: post-in 0.45s ease both;
}

.article--missing {
  padding: 32px;
  text-align: center;
}

.article__media {
  background: #d8dadc;
  height: 256px;
  overflow: hidden;
}

.article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  padding: 32px 33px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article__meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.article__title {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  color: var(--ink);
}

.article__dateline {
  margin: 0;
}

.article__time {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.article__text {
  margin: 0;
  padding-bottom: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  white-space: pre-wrap;
}

.article__text--html {
  white-space: normal;
}

.article__text--html img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.article__text--html img.float-left {
  float: left;
  margin: 0 16px 12px 0;
  max-width: 48%;
}

.article__text--html img.float-right {
  float: right;
  margin: 0 0 12px 16px;
  max-width: 48%;
}

.article__text--html img.block {
  display: block;
  float: none;
  margin: 16px auto;
}

.article__text--html a {
  color: var(--accent-deep);
  text-decoration: underline;
}

.article-fnref a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.article-footnotes {
  clear: both;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-footnotes__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.article-footnotes ol {
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.article-footnotes li {
  margin-bottom: 8px;
}

.article-fnback {
  margin-left: 4px;
  color: var(--accent-deep);
  text-decoration: none;
}

.article__valid {
  margin-top: 4px;
}

.article-gallery,
.article-playlist {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-gallery__title,
.article-playlist__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.article-gallery__description,
.article-playlist__description {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.article-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-gallery__item figure {
  margin: 0;
}

.article-gallery__trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 4px;
  line-height: 0;
}

.article-gallery__trigger:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.article-gallery__trigger img,
.article-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.article-gallery__item figcaption {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* —— Article gallery lightbox —— */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 9, 0.72);
  cursor: pointer;
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(12, 12, 9, 0.28);
  overflow: hidden;
}

.gallery-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.gallery-lightbox__counter {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.gallery-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.gallery-lightbox__close:hover {
  background: rgba(12, 12, 9, 0.06);
}

.gallery-lightbox__close:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.gallery-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 16px;
  background: #f8fafc;
}

.gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(12, 12, 9, 0.12);
}

.gallery-lightbox__nav:hover {
  background: var(--bg);
}

.gallery-lightbox__nav:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.gallery-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-lightbox__nav--prev {
  left: 12px;
}

.gallery-lightbox__nav--next {
  right: 12px;
}

.gallery-lightbox__caption {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  flex-shrink: 0;
}

.gallery-lightbox__caption:empty {
  display: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 8px;
  }

  .gallery-lightbox__stage {
    padding: 12px 48px;
  }

  .gallery-lightbox__image {
    max-height: min(62vh, 560px);
  }

  .gallery-lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .gallery-lightbox__nav--prev {
    left: 6px;
  }

  .gallery-lightbox__nav--next {
    right: 6px;
  }
}

.article-playlist__player {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.article-playlist__audio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-playlist__now-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-60);
}

.article-playlist__now-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.article-playlist__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.article-playlist__play,
.article-playlist__mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.article-playlist__play {
  background: var(--accent-deep);
  color: #fff;
}

.article-playlist__play:hover:not(:disabled) {
  background: var(--accent);
}

.article-playlist__play:focus-visible,
.article-playlist__mute:focus-visible,
.article-playlist__seek:focus-visible,
.article-playlist__track:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.article-playlist__play:disabled,
.article-playlist__mute:disabled,
.article-playlist__seek:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.article-playlist__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}

.article-playlist__play.is-playing .article-playlist__play-icon {
  width: 10px;
  height: 12px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right / 3px 100% no-repeat;
}

.article-playlist__mute {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.article-playlist__mute:hover:not(:disabled) {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.article-playlist__mute-icon {
  display: block;
  width: 16px;
  height: 14px;
  position: relative;
  background:
    linear-gradient(currentColor, currentColor) 0 4px / 4px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 2px / 3px 10px no-repeat;
}

.article-playlist__mute-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 7px;
  height: 12px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  opacity: 0.85;
}

.article-playlist__mute.is-muted .article-playlist__mute-icon::after {
  opacity: 0;
}

.article-playlist__mute.is-muted .article-playlist__mute-icon::before {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  background: currentColor;
  transform: rotate(-28deg);
}

.article-playlist__timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.article-playlist__time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 2.5em;
}

.article-playlist__time--duration {
  text-align: right;
}

.article-playlist__seek {
  width: 100%;
  min-width: 0;
  height: 6px;
  margin: 0;
  accent-color: var(--accent-deep);
  cursor: pointer;
}

.article-playlist__tracks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.article-playlist__item {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.article-playlist__item:last-child {
  border-bottom: 0;
}

.article-playlist__track {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.article-playlist__track:hover {
  background: rgba(247, 147, 30, 0.08);
}

.article-playlist__track.is-active {
  background: rgba(141, 79, 0, 0.1);
}

.article-playlist__track-num {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted-60);
}

.article-playlist__track.is-active .article-playlist__track-num {
  color: var(--accent-deep);
}

.article-playlist__track-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}

.article-playlist__track.is-active .article-playlist__track-title {
  color: var(--accent-deep);
}

@media (max-width: 560px) {
  .article-playlist__controls {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "play mute"
      "timeline timeline";
    gap: 10px 12px;
  }

  .article-playlist__play {
    grid-area: play;
  }

  .article-playlist__mute {
    grid-area: mute;
    justify-self: end;
  }

  .article-playlist__timeline {
    grid-area: timeline;
  }
}

.article__missing {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.article__back-wrap {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article--missing .article__back-wrap {
  border-top: 0;
  padding-top: 0;
}

.article__back {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.article__back:hover {
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer__copy,
.footer-links a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.12px;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

/* —— Admin (simple, matches tokens) —— */
.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
}

.admin-card h1 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-flash {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: #fff8ee;
  color: var(--muted);
  font-weight: 600;
}

.admin-flash--error {
  background: #fff1f1;
  color: var(--badge-fire);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted-60);
  font-size: 12px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-danger {
  color: var(--badge-fire);
  border-color: rgba(186, 26, 26, 0.35);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-60);
  margin-bottom: 6px;
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="url"],
.form-row input[type="datetime-local"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.admin-update-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-update-list__item {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid var(--border);
  padding: 12px;
  background: #fafbfc;
}

.admin-update-list__item p {
  margin: 6px 0;
  color: var(--muted);
}

.admin-update-list__item small {
  color: var(--muted-60);
}

@media (max-width: 720px) {
  .filters {
    flex-wrap: wrap;
  }

  .brand__title {
    font-size: 22px;
    letter-spacing: 2px;
    line-height: 1.2;
  }

  .post__title,
  .article__title {
    font-size: 22px;
  }

  .site-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
