/* ---------------------------------------------------------------
   news-docket.css -- news.php, the Wire as a page of the docket.

   Same sheet as the other docket pages: docket.css and docket-dark.css load
   first. This file holds the category tabs, the story on air, the rundown
   beside it and the pager. It replaces wire.css for this page.

   Everything is under .docket.is-news, a class only news.php puts on the
   article, so nothing here can reach any other page.

   The site's link rule (design2.css, four :not()s) is stronger than a single
   class, so every link below restates it behind the same chain.
   --------------------------------------------------------------- */

.docket.is-news .reg-title { margin-top: 22px; }
.docket.is-news h1 { font-size: clamp(2.7rem, 6vw, 4.2rem); }
.docket.is-news .aka { margin-top: 8px; max-width: 46ch; }
.docket.is-news .n-empty { margin-top: 26px; font-size: 1.05rem; }

/* ---- The category tabs ---- */
.docket.is-news .n-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  margin-top: 24px;
  border-bottom: 1px solid var(--rule);
}
.docket.is-news a.n-tab:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 12px 14px;
  font: 600 0.74rem "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.docket.is-news a.n-tab:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover { color: var(--ink); text-decoration: none; }
.docket.is-news a.n-tab.is-on:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) { color: var(--ink); border-bottom-color: var(--moral); }
.docket.is-news .n-tab:focus-visible { outline: 2px solid var(--moral); outline-offset: -2px; }

/* ---- The grid: the story on air, and the rundown beside it ---- */
.docket.is-news .n-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 22px;
}

/* ---- On air ----
   The hero has no height of its own: it stretches to whatever the rundown
   beside it comes to, so the two columns always finish level. min-height only
   covers the case of a very short stack. */
.docket.is-news .n-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(20rem, 34vw, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Reserves the badge's corner, so a long headline cannot ride up under it. */
  padding-top: 3.75rem;
  background: #060306;
  border: 1px solid var(--rule);
}
.docket.is-news .n-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.04);
}
/* Two stops: the copy sits in the bottom third and needs real cover there,
   while the badge at the top needs the picture to still read as a picture. */
.docket.is-news .n-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 21, 0.97) 0%, rgba(28, 25, 21, 0.76) 36%, rgba(28, 25, 21, 0.25) 72%, rgba(28, 25, 21, 0.4) 100%);
}
/* The badge is a stamp, with a live dot. */
.docket.is-news .n-badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moral);
  background: rgba(28, 25, 21, 0.94);
  border: 2px solid var(--moral);
  transform: rotate(-3deg);
}
.docket.is-news .n-badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--moral); flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .docket.is-news .n-badge .dot { animation: n-live 2s ease-out 3; }
}
@keyframes n-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 47, 175, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 47, 175, 0.35); }
}

.docket.is-news .n-copy { position: relative; z-index: 1; padding: clamp(1.25rem, 3vw, 2.25rem); }
.docket.is-news .n-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.docket.is-news .n-title {
  margin: 0.5rem 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.docket.is-news .n-dek {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #b9b4c2;
}
/* The one filled control on the page. */
.docket.is-news a.n-pull:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.75rem 1.2rem;
  font: 600 0.74rem "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.docket.is-news a.n-pull:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover { color: var(--ink); background: transparent; text-decoration: none; }
.docket.is-news .n-pull:focus-visible { outline: 2px solid var(--moral); outline-offset: 2px; }

/* ---- The rundown ---- */
.docket.is-news .n-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #060306;
  border: 1px solid var(--rule);
}
.docket.is-news .n-stack-head {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.docket.is-news a.n-row:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.9rem 1.1rem 0.9rem 0.95rem;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.docket.is-news a.n-row:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):last-child { border-bottom: 0; }
.docket.is-news a.n-row:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover,
.docket.is-news a.n-row.is-on:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  background: color-mix(in srgb, var(--moral) 8%, transparent);
  text-decoration: none;
}
.docket.is-news a.n-row.is-on:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) { border-left-color: var(--moral); }
.docket.is-news .n-row:focus-visible { outline: 2px solid var(--moral); outline-offset: -2px; }
.docket.is-news .n-no {
  padding-top: 0.15rem;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--muted);
}
.docket.is-news .n-row.is-on .n-no { color: var(--moral); }
/* Both are spans inside one grid cell, so they are told to stack: left inline
   they run the date onto the end of the headline. */
.docket.is-news .n-row-title,
.docket.is-news .n-row-meta { display: block; }
.docket.is-news .n-row-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.docket.is-news .n-row-meta {
  margin-top: 0.35rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- The page links ---- */
.docket.is-news .n-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.docket.is-news .pg { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.docket.is-news a.pg:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
}
.docket.is-news a.pg:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover { border-color: var(--moral); text-decoration: none; }
.docket.is-news .pg.is-off { padding: 9px 14px; color: var(--muted); opacity: 0.45; }
.docket.is-news .pg-count { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.docket.is-news .pg-count strong { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 1.2rem; letter-spacing: 0.08em; color: var(--ink); }

/* ---- Narrow ---- */
@media (max-width: 56rem) {
  .docket.is-news .n-grid { grid-template-columns: minmax(0, 1fr); }
  .docket.is-news .n-hero { min-height: clamp(17rem, 52vw, 24rem); }
}
@media (max-width: 800px) {
  .docket.is-news a.n-tab:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) { padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .docket.is-news a.n-tab, .docket.is-news a.n-row, .docket.is-news a.n-pull { transition: none; }
}
