/* UNIWIRE — news as a live telegraph.
   Center spine. Stories dock left / right. Type cools with age.
   Not a card grid. Headlines are always block text. Last stylesheet wins. */

html[data-layout="wire"] #frontpage-grid,
html[data-layout="press"] #frontpage-grid,
html[data-layout="wire"] #ssr-frontpage-fallback,
html[data-layout="press"] #ssr-frontpage-fallback,
#frontpage-grid.uw,
#ssr-frontpage-fallback.uw {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  max-width: min(78rem, calc(100vw - 2rem)) !important;
  margin: 0 auto !important;
  padding: 0.6rem 1rem 5.5rem !important;
  background: transparent !important;
  gap: 0 !important;
}

html[data-layout="wire"] #frontpage-grid > .ed-card,
html[data-layout="press"] #frontpage-grid > .ed-card,
html[data-layout="wire"] #ssr-frontpage-fallback > .ed-card,
html[data-layout="press"] #ssr-frontpage-fallback > .ed-card,
.uw-lead.ed-card,
.uw-now,
.uw-wire {
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

html[data-layout="wire"] .tape-line,
html[data-layout="press"] .tape-line,
html[data-layout="wire"] .tape-next,
html[data-layout="press"] .tape-next,
html[data-layout="wire"] .tape-now-count,
html[data-layout="press"] .tape-now-count,
html:not([data-layout="magazine"]) .ws-sponsor-card,
html:not([data-layout="magazine"]) [data-ad],
html:not([data-layout="magazine"]) .house-ad,
html:not([data-layout="magazine"]) #ws-house-bar,
html:not([data-layout="magazine"]) [class*="house-bar"],
html:not([data-layout="magazine"]) [class*="promo-bar"],
html:not([data-layout="magazine"]) [id*="house-bar"],
html:not([data-layout="magazine"]) [class*="founding"] {
  display: none !important;
}

.uw-now {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C8302C;
  padding: 0.35rem 0 1rem;
}
.uw-pulse {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #C8302C;
  box-shadow: 0 0 0 0 rgba(200, 48, 44, 0.55);
  animation: uw-pulse 1.6s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes uw-pulse {
  70% { box-shadow: 0 0 0 9px rgba(200, 48, 44, 0); }
}

/* Poster lead — still is a background plate; type is in-flow so it cannot clip. */
html:not([data-layout="magazine"]) #frontpage-grid::before,
html:not([data-layout="magazine"]) #community-spotlight-home {
  display: none !important;
}

/* —— custom nav: desktop top + mobile dock —— */
html:not([data-layout="magazine"]) #site-header.uw-head,
html:not([data-layout="magazine"]) header.uw-head {
  position: sticky !important;
  top: 0;
  z-index: 50;
  display: block !important;
  background: #0B0C0B !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(232, 228, 216, 0.12) !important;
  padding-top: env(safe-area-inset-top, 0) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}
html:not([data-layout="magazine"]) .uw-nav {
  display: grid !important;
  grid-template-columns: auto auto minmax(10rem, 1fr) auto auto;
  align-items: center;
  column-gap: 1.1rem;
  max-width: min(86rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0 0.25rem;
  min-height: 3.15rem;
}
.uw-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none !important;
  color: #E8E4D8 !important;
  min-width: 0;
}
.uw-mark-node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8302C;
  box-shadow: 0 0 0 3px #0B0C0B, 0 0 0 4px #C8302C;
  flex: 0 0 auto;
}
.uw-mark-word {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
}
.uw-rail {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}
.uw-rail a {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 228, 216, 0.55) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.uw-rail a:hover,
.uw-rail a[aria-current="page"] {
  color: #E8E4D8 !important;
}
.uw-find {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  max-width: none !important;
}
.uw-find .search-input,
html:not([data-layout="magazine"]) #search-input {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(232, 228, 216, 0.18) !important;
  border-radius: 0 !important;
  color: #E8E4D8 !important;
  font-family: "Inter Tight", system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  padding: 0.35rem 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.uw-find .search-input::placeholder {
  color: rgba(232, 228, 216, 0.38);
  letter-spacing: 0.02em;
}
.uw-find .search-input:focus {
  border-bottom-color: #C8302C !important;
}
#search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 60;
  background: #0B0C0B;
  border-top: 1px solid rgba(232, 228, 216, 0.12);
  max-height: 70vh;
  overflow-y: auto;
}
.uw-day {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 228, 216, 0.5);
  white-space: nowrap;
}
.uw-ops {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
html:not([data-layout="magazine"]) .uw-ops #settings-btn {
  display: inline-flex !important;
  visibility: visible !important;
}
@media (min-width: 800px) {
  html:not([data-layout="magazine"]) .uw-ops #bell-btn,
  html:not([data-layout="magazine"]) .uw-ops #refresh-btn,
  html:not([data-layout="magazine"]) .uw-ops .ws-globe {
    display: inline-flex !important;
    visibility: visible !important;
  }
}
.uw-gear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: 0;
  color: rgba(232, 228, 216, 0.7);
  cursor: pointer;
}
.uw-gear svg { width: 1.1rem; height: 1.1rem; }
.uw-ico,
.uw-globe > summary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: rgba(232, 228, 216, 0.62) !important;
  cursor: pointer;
  list-style: none;
}
.uw-globe > summary::-webkit-details-marker { display: none; }
.uw-ico svg,
.uw-globe svg {
  width: 1.05rem;
  height: 1.05rem;
}
.uw-ico:hover,
.uw-globe[open] > summary {
  color: #E8E4D8 !important;
}
#bell-badge:not([hidden]) {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 0.9rem;
  height: 0.9rem;
  padding: 0 0.2rem;
  border-radius: 99px;
  background: #C8302C;
  color: #fff;
  font-size: 0.55rem;
  line-height: 0.9rem;
  text-align: center;
}
.uw-globe { position: relative; }
.uw-globe-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 70;
  width: 13.5rem;
  max-height: 72vh;
  overflow-y: auto;
  padding: 0.45rem 0.35rem;
  background: #0B0C0B;
  border: 1px solid rgba(232, 228, 216, 0.14);
}
.uw-globe-lab {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C8302C;
  padding: 0.45rem 0.65rem 0.25rem;
}
.uw-globe-panel .ws-rgn {
  display: block;
  padding: 0.4rem 0.65rem;
  color: #E8E4D8;
  text-decoration: none;
  font-size: 0.88rem;
}
.uw-globe-panel .ws-rgn:hover { color: #C8302C; }

html:not([data-layout="magazine"]) .uw-dock { display: none; }

@media (min-width: 800px) {
  html:not([data-layout="magazine"]) .uw-head::after {
    content: "";
    display: block;
    height: 2px;
    width: 3.4rem;
    margin-left: max(0.25rem, calc((100vw - min(86rem, calc(100vw - 2rem))) / 2));
    background: #C8302C;
  }
}

@media (max-width: 799px) {
  html:not([data-layout="magazine"]) .uw-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.65rem;
    padding: 0 0.85rem;
    min-height: 3rem;
  }
  html:not([data-layout="magazine"]) .uw-rail,
  html:not([data-layout="magazine"]) .uw-day,
  html:not([data-layout="magazine"]) .uw-nav #bs-date,
  html:not([data-layout="magazine"]) .uw-ops .uw-globe,
  html:not([data-layout="magazine"]) .uw-ops #bell-btn,
  html:not([data-layout="magazine"]) .uw-ops #refresh-btn {
    display: none !important;
  }
  html:not([data-layout="magazine"]) .uw-ops { display: none !important; }
  html:not([data-layout="magazine"]) .uw-nav {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.55rem;
  }
  html:not([data-layout="magazine"]) .uw-find { flex: 1 1 auto; }
  html:not([data-layout="magazine"]) .uw-gear {
    display: inline-flex !important;
    flex: 0 0 2rem;
    margin-left: auto;
  }
  html:not([data-layout="magazine"]) #search-input {
    font-size: 16px !important;
  }
  html:not([data-layout="magazine"]) .uw-dock {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: #0B0C0B;
    border-top: 1px solid rgba(232, 228, 216, 0.12);
    padding: 0.35rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
  }
  html:not([data-layout="magazine"]) .uw-dock::before {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #C8302C;
    pointer-events: none;
  }
  html:not([data-layout="magazine"]) .uw-dock > * {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 0;
    color: rgba(232, 228, 216, 0.5);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.55rem 0 0.15rem;
    cursor: pointer;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
  html:not([data-layout="magazine"]) .uw-dock > *.is-on,
  html:not([data-layout="magazine"]) .uw-dock > *:hover {
    color: #E8E4D8;
  }
  html:not([data-layout="magazine"]) .uw-dock #uw-more,
  html:not([data-layout="magazine"]) .uw-dock #uw-menu,
  html:not([data-layout="magazine"]) .uw-dock .uw-dock-go {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html:not([data-layout="magazine"]) .uw-dock > * > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C8302C;
    box-shadow: 0 0 0 3px #0B0C0B;
  }
  html:not([data-layout="magazine"]) body {
    padding-bottom: calc(3.8rem + env(safe-area-inset-bottom)) !important;
  }
}

html[data-theme="light"] .uw-mark,
html[data-theme="journalist"] .uw-mark { color: #161614 !important; }
html[data-theme="light"] .uw-mark-node,
html[data-theme="journalist"] .uw-mark-node {
  box-shadow: 0 0 0 3px #F3F0E6, 0 0 0 4px #B32622;
}
html[data-theme="light"] .uw-dock,
html[data-theme="journalist"] .uw-dock,
html[data-theme="light"] #site-header.uw-head,
html[data-theme="journalist"] #site-header.uw-head {
  background: #F3F0E6 !important;
}
html[data-theme="light"] .uw-dock > * > i,
html[data-theme="journalist"] .uw-dock > * > i {
  box-shadow: 0 0 0 3px #F3F0E6;
}

.uw-lead {
  display: block !important;
  position: relative;
  margin: 0 0 2.4rem !important;
  background: #141210 !important;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(17rem, 38vw, 28rem);
  content-visibility: visible !important;
  contain: none !important;
}
.uw-still {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background: #141210;
  z-index: 0;
}
.uw-still img {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}
.uw-lead-body {
  position: relative;
  z-index: 1;
  min-height: clamp(17rem, 38vw, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3.2rem, 10vw, 6.5rem) clamp(1rem, 3vw, 2.1rem) 1.2rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(11, 12, 11, 0.08) 22%,
    rgba(11, 12, 11, 0.78) 68%,
    #0B0C0B 100%
  );
}
.uw-lead:not(:has(.uw-still)) {
  min-height: 0;
  background: transparent !important;
}
.uw-lead:not(:has(.uw-still)) .uw-lead-body {
  min-height: 0;
  padding: 1.4rem 0.2rem 0.4rem;
  background: none;
}
.uw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: baseline;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C8302C;
  margin-bottom: 0.4rem;
}
.uw-meta time { color: #C8302C; }
.uw-lead .uw-src { color: rgba(232, 228, 216, 0.7); }
.uw-lead .uw-hed,
.uw-lead .ed-title {
  display: block !important;
  width: 100% !important;
  max-width: 22em;
  font-family: "Inter Tight", Inter, system-ui, sans-serif !important;
  font-size: clamp(1.7rem, 1.55rem + 2.6vw, 3.55rem) !important;
  font-weight: 650 !important;
  line-height: 1.03 !important;
  letter-spacing: -0.034em;
  color: #F3EFE4 !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.uw-dek {
  margin: 0.55rem 0 0;
  max-width: 38rem;
  font-family: "Source Serif 4", Charter, Georgia, serif;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.14rem);
  line-height: 1.45;
  color: rgba(232, 228, 216, 0.78);
}

/* The spine: left column | time gutter | right column */
.uw-wire {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 5.4rem minmax(0, 1fr);
  column-gap: 0;
  row-gap: 0;
  padding: 0.25rem 0 2rem;
}
.uw-wire::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(#C8302C 0%, rgba(200, 48, 44, 0.55) 42%, rgba(200, 48, 44, 0.12) 100%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.uw-hour {
  grid-column: 1 / -1;
  position: relative;
  height: 3.4rem;
  margin: 0.15rem 0;
}
.uw-hour span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(232, 228, 216, 0.07);
  pointer-events: none;
  line-height: 1;
}

.uw-node {
  display: block !important;
  position: relative;
  z-index: 1;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-width: 0;
}
.uw-node[data-side="L"] {
  grid-column: 1;
  text-align: right;
  padding: 1.45rem 1.15rem 0.85rem 0.25rem !important;
}
.uw-node[data-side="R"] {
  grid-column: 3;
  text-align: left;
  padding: 1.45rem 0.25rem 0.85rem 1.15rem !important;
}

/* Hairline from copy to the wire, aligned with the headline */
.uw-node::before {
  content: "";
  position: absolute;
  top: 1.78rem;
  width: 1.05rem;
  height: 1px;
  background: #C8302C;
}
.uw-node[data-side="L"]::before { right: 0; }
.uw-node[data-side="R"]::before { left: 0; }

/* Node sitting on the wire — below the clock so they never collide */
.uw-node::after {
  content: "";
  position: absolute;
  top: 1.58rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C8302C;
  box-shadow: 0 0 0 3px #0B0C0B;
  z-index: 2;
}
.uw-node[data-side="L"]::after {
  left: 100%;
  margin-left: calc(2.7rem - 4px);
}
.uw-node[data-side="R"]::after {
  right: 100%;
  margin-right: calc(2.7rem - 4px);
}
.uw-node[data-age="hot"]::after {
  box-shadow: 0 0 0 3px #0B0C0B, 0 0 0 6px rgba(200, 48, 44, 0.28);
}
.uw-node[data-age="cool"]::after {
  background: rgba(200, 48, 44, 0.45);
}

/* Clocks live in the story column, not on top of each other in the gutter. */
.uw-node time {
  position: absolute;
  top: 0.18rem;
  width: auto;
  z-index: 3;
  color: #C8302C;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: transparent;
  line-height: 1.2;
}
.uw-node[data-side="L"] time {
  left: auto;
  right: 1.15rem;
  text-align: right;
}
.uw-node[data-side="R"] time {
  right: auto;
  left: 1.15rem;
  text-align: left;
}

.uw-node .uw-src {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 228, 216, 0.48);
  margin-bottom: 0.22rem;
}
.uw-node .uw-hed,
.uw-node .ed-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: "Inter Tight", Inter, system-ui, sans-serif !important;
  font-weight: 560 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.016em;
  color: #E8E4D8 !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.uw-node[data-age="hot"] .uw-hed {
  font-size: clamp(1.12rem, 1rem + 0.45vw, 1.32rem) !important;
  color: #F4F0E6 !important;
  font-weight: 620 !important;
}
.uw-node[data-age="warm"] .uw-hed {
  font-size: clamp(1.02rem, 0.94rem + 0.28vw, 1.14rem) !important;
}
.uw-node[data-age="cool"] .uw-hed {
  font-size: 0.98rem !important;
  color: rgba(232, 228, 216, 0.7) !important;
  font-weight: 500 !important;
}
.uw-node:hover .uw-hed {
  text-decoration: underline !important;
  text-decoration-color: #C8302C !important;
  text-underline-offset: 3px;
}

/* Phone: spine on the left. Stories only to the right. Full-width type. */
@media (max-width: 799px) {
  html[data-layout="wire"] #frontpage-grid,
  html[data-layout="press"] #frontpage-grid,
  html[data-layout="wire"] #ssr-frontpage-fallback,
  html[data-layout="press"] #ssr-frontpage-fallback,
  #frontpage-grid.uw,
  #ssr-frontpage-fallback.uw {
    padding: 0.45rem max(0.95rem, env(safe-area-inset-left)) 4.6rem max(0.95rem, env(safe-area-inset-right)) !important;
    max-width: 100% !important;
  }
  .uw-lead,
  .uw-lead-body { min-height: 19.5rem; }
  .uw-lead { margin-bottom: 1.5rem !important; }
  .uw-lead-body { padding: 5.2rem 1.05rem 0.95rem 0.85rem; }
  .uw-lead .uw-hed {
    font-size: clamp(1.5rem, 7.1vw, 2.15rem) !important;
    max-width: none;
  }
  .uw-wire {
    grid-template-columns: 3.15rem minmax(0, 1fr);
  }
  .uw-wire::before {
    left: 1.575rem;
    transform: translateX(-50%);
  }
  .uw-hour span {
    left: 1.575rem;
    transform: translate(-18%, -50%);
    font-size: 2rem;
  }
  .uw-node[data-side="L"],
  .uw-node[data-side="R"] {
    grid-column: 2;
    text-align: left !important;
    padding: 0.68rem 0.4rem 0.74rem 0.85rem !important;
  }
  .uw-node::before {
    left: 0;
    right: auto;
    width: 0.75rem;
  }
  .uw-node::after,
  .uw-node[data-side="L"]::after,
  .uw-node[data-side="R"]::after {
    left: auto;
    right: 100%;
    margin: 0 -4px 0 0;
  }
  .uw-node time,
  .uw-node[data-side="L"] time,
  .uw-node[data-side="R"] time {
    left: auto;
    right: 100%;
    width: 3.15rem;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }
  .uw-node .uw-hed { font-size: 1.05rem !important; }
  .uw-node[data-age="hot"] .uw-hed { font-size: 1.16rem !important; }
  .uw-node[data-age="warm"] .uw-hed { font-size: 1.06rem !important; }
  html:not([data-layout="magazine"]) .uw-lead .uw-hed,
  html:not([data-layout="magazine"]) .uw-lead .ed-title,
  .uw-lead .uw-hed,
  .uw-node .uw-hed {
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
  }
}

html[data-theme="light"] .uw-lead,
html[data-theme="journalist"] .uw-lead {
  background: #161614 !important;
}
html[data-theme="light"] .uw-node time,
html[data-theme="journalist"] .uw-node time {
  background: #F3F0E6;
}
html[data-theme="light"] .uw-node::after,
html[data-theme="journalist"] .uw-node::after {
  box-shadow: 0 0 0 3px #F3F0E6;
}
html[data-theme="light"] .uw-node[data-age="hot"]::after,
html[data-theme="journalist"] .uw-node[data-age="hot"]::after {
  box-shadow: 0 0 0 3px #F3F0E6, 0 0 0 6px rgba(179, 38, 34, 0.22);
}
html[data-theme="light"] .uw-node .uw-hed,
html[data-theme="journalist"] .uw-node .uw-hed {
  color: #161614 !important;
}
html[data-theme="light"] .uw-node[data-age="hot"] .uw-hed,
html[data-theme="journalist"] .uw-node[data-age="hot"] .uw-hed {
  color: #111110 !important;
}
html[data-theme="light"] .uw-node[data-age="cool"] .uw-hed,
html[data-theme="journalist"] .uw-node[data-age="cool"] .uw-hed {
  color: rgba(22, 22, 20, 0.62) !important;
}
html[data-theme="light"] .uw-node .uw-src,
html[data-theme="journalist"] .uw-node .uw-src {
  color: rgba(22, 22, 20, 0.45);
}
html[data-theme="light"] .uw-hour span,
html[data-theme="journalist"] .uw-hour span {
  color: rgba(22, 22, 20, 0.07);
}

/* Beat wireface `#… > .ed-card:not(.tape-lead) { display:grid }` so the
   lead can never collapse to a one-letter column. */
html:not([data-layout="magazine"]) #frontpage-grid > article.ed-card.uw-lead,
html:not([data-layout="magazine"]) #ssr-frontpage-fallback > article.ed-card.uw-lead,
html[data-layout="wire"] #frontpage-grid > article.uw-lead,
html[data-layout="press"] #frontpage-grid > article.uw-lead,
html[data-layout="wire"] #ssr-frontpage-fallback > article.uw-lead,
html[data-layout="press"] #ssr-frontpage-fallback > article.uw-lead {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
html:not([data-layout="magazine"]) .uw-lead > .uw-still,
html:not([data-layout="magazine"]) .uw-lead > .uw-lead-body,
html:not([data-layout="magazine"]) .uw-lead .uw-hed,
html:not([data-layout="magazine"]) .uw-lead .ed-title,
html:not([data-layout="magazine"]) .uw-lead .uw-dek,
html:not([data-layout="magazine"]) .uw-lead .uw-meta {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
html:not([data-layout="magazine"]) .uw-lead > .uw-lead-body {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
}
html:not([data-layout="magazine"]) .uw-lead .uw-hed,
html:not([data-layout="magazine"]) .uw-lead .ed-title {
  display: block !important;
  width: 100% !important;
  max-width: 22em !important;
}
@media (max-width: 799px) {
  html:not([data-layout="magazine"]) .uw-lead,
  html:not([data-layout="magazine"]) .uw-lead-body,
  html:not([data-layout="magazine"]) .uw-wire,
  html:not([data-layout="magazine"]) .uw-node {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html:not([data-layout="magazine"]) .uw-lead .uw-hed,
  html:not([data-layout="magazine"]) .uw-lead .ed-title,
  html:not([data-layout="magazine"]) .uw-lead .uw-dek,
  html:not([data-layout="magazine"]) .uw-node .uw-hed,
  html:not([data-layout="magazine"]) .uw-node .ed-title {
    display: block !important;
    width: auto !important;
    max-width: calc(100vw - 4.6rem) !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uw-pulse { animation: none; }
}
