/* The Wire Room's promotions (the owner, 13 Oct 2026), loaded on The Lead and
   the State front only, after custom.css.
   ---------------------------------------------------------------------------
   1. The strip across the top of The Lead: very thin, "a graphic that teases
      the senses but doesn't give too much away". No headlines.
   2. The State front: a smaller masthead, as the Local front has (scoped to
      .section-edition-main--state), and under it the band -- the state with
      its wires running into Guthrie, and the latest statewide copy turning.
   Every motion here is decoration: nothing waits on an animation to finish,
   and with reduced motion everything is drawn still.
   NOT ON A PHONE (the owner, 13 Oct 2026: "on mobile, we just want them to
   read the osc news"): below 768px neither promotion is shown. */
@media (max-width: 767px) {
    .wire-strip-wrap, .wire-promo-wrap { display: none !important; }
}

/* ------------------------------------------------------- 1. the strip ---- */
.wire-strip-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 4px;
}
@media (min-width: 1600px) { .wire-strip-wrap { width: min(92vw, 2400px); } }
@media (max-width: 720px) { .wire-strip-wrap { width: min(100% - 24px, 1180px); } }

.wire-strip {
    --ws-amber: #ffb627;
    --ws-cyan: #7dd3fc;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 34px;
    padding: 0 14px;
    overflow: hidden;
    border-radius: 4px;
    color: #f7f3ea;
    text-decoration: none;
    background:
        radial-gradient(circle at 0 50%, rgba(255, 75, 62, 0.22), rgba(255, 75, 62, 0) 140px),
        linear-gradient(100deg, #070d19 0%, #0d1a33 60%, #121a3d 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 3px 10px rgba(7, 13, 25, 0.18);
}
.wire-strip:focus-visible { outline: 3px solid var(--ws-amber); outline-offset: 2px; }
.wire-strip-live {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    font: 800 0.62rem/1 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
}
.wire-strip-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ff4b3e;
    animation: ws-live 1.6s ease-out infinite;
}
.wire-strip-name {
    flex: none;
    font: 800 0.98rem/1 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.01em; color: #fff;
}
/* Copy running down the wire, toward the room. */
.wire-strip-signal {
    position: relative; flex: 1 1 60px; min-width: 40px; height: 12px;
}
.wire-strip-signal::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0), rgba(125, 211, 252, 0.45) 12%, rgba(125, 211, 252, 0.45) 88%, rgba(125, 211, 252, 0));
}
.wire-strip-signal span {
    position: absolute; top: 50%; left: 0;
    width: 22px; height: 3px; margin-top: -1.5px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 182, 39, 0), var(--ws-amber));
    box-shadow: 0 0 8px rgba(255, 182, 39, 0.8);
    opacity: 0;
    animation: ws-run 3.6s cubic-bezier(.45, .05, .55, .95) infinite;
}
.wire-strip-signal .p2 { animation-delay: 1.2s; background: linear-gradient(90deg, rgba(125, 211, 252, 0), var(--ws-cyan)); box-shadow: 0 0 8px rgba(125, 211, 252, 0.8); }
.wire-strip-signal .p3 { animation-delay: 2.4s; }
.wire-strip-line {
    flex: none;
    font: italic 0.84rem/1 Georgia, 'Times New Roman', serif; color: #c9d3e6;
    white-space: nowrap;
}
.wire-strip-count {
    flex: none;
    font: 700 0.64rem/1 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ws-amber);
    white-space: nowrap;
}
.wire-strip-go {
    flex: none;
    font: 800 0.74rem/1 Arial, Helvetica, sans-serif; color: var(--ws-amber);
    letter-spacing: 0.04em; white-space: nowrap;
}
.wire-strip-go span { display: inline-block; transition: transform 0.18s ease; }
.wire-strip:hover .wire-strip-go span, .wire-strip:focus-visible .wire-strip-go span { transform: translateX(3px); }
.wire-strip:hover .wire-strip-name { color: var(--ws-amber); }
@media (max-width: 1080px) { .wire-strip-line { display: none; } }
@media (max-width: 640px) {
    .wire-strip { gap: 10px; padding: 0 10px; }
    .wire-strip-count { display: none; }
}

@keyframes ws-live {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 62, 0.75); }
    100% { box-shadow: 0 0 0 8px rgba(255, 75, 62, 0); }
}
@keyframes ws-run {
    0% { left: 0; opacity: 0; }
    12% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: calc(100% - 22px); opacity: 0; }
}

/* --------------------------------------- 2. the State front's masthead ---- */
.section-edition-main--state .section-edition-masthead-inner { padding: 9px 0 8px; }
.section-edition-main--state .section-edition-kicker {
    min-height: 0; padding: 2px 8px; margin-bottom: 4px; font-size: 0.58rem;
}
.section-edition-main--state .section-edition-masthead h1 { font-size: 1.8rem; gap: 14px; }
.section-edition-main--state .section-edition-masthead h1::before,
.section-edition-main--state .section-edition-masthead h1::after { max-width: 120px; }
.section-edition-main--state .section-edition-masthead p { margin-top: 5px; font-size: 0.88rem; }
.section-edition-main--state .section-edition-masthead p::after { display: none; }
.section-edition-main--state .section-edition-date { margin-top: 5px; padding-top: 4px; font-size: 0.64rem; }
@media (min-width: 768px) {
    .section-edition-main--state .section-edition-masthead h1 { font-size: 2.2rem; }
}
@media (min-width: 1180px) {
    .section-edition-main--state .section-edition-masthead h1 { font-size: 2.5rem; }
}

/* ------------------------------------------------ 2. the State band ---- */
.wire-promo-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
}
@media (min-width: 1600px) { .wire-promo-wrap { width: min(92vw, 2400px); } }
@media (max-width: 720px) { .wire-promo-wrap { width: min(100% - 24px, 1180px); margin-top: 14px; } }

.wire-promo {
    --wp-amber: #ffb627;
    --wp-cyan: #7dd3fc;
    --wp-ink: #f7f3ea;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 6px 22px;
    padding: 10px 22px 10px 14px;
    overflow: hidden;
    border-radius: 6px;
    color: var(--wp-ink);
    text-decoration: none;
    background:
        radial-gradient(circle at 90px 50%, rgba(125, 211, 252, 0.16), rgba(125, 211, 252, 0) 170px),
        linear-gradient(110deg, #070d19 0%, #0d1a33 55%, #151c42 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 20px rgba(7, 13, 25, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* A faint grid, like the room's own floor. */
.wire-promo::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.2) 70%);
    mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.2) 70%);
}
.wire-promo:hover, .wire-promo:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 10px 26px rgba(7, 13, 25, 0.34);
}
.wire-promo:focus-visible { outline: 3px solid var(--wp-amber); outline-offset: 3px; }

/* The map. */
.wire-promo-map { position: relative; z-index: 1; display: block; width: 150px; flex: none; }
.wire-promo-map svg { display: block; width: 100%; height: auto; }
.wp-state { fill: rgba(125, 211, 252, 0.07); stroke: rgba(125, 211, 252, 0.6); stroke-width: 3; stroke-linejoin: round; }
.wp-wire { fill: none; stroke: rgba(125, 211, 252, 0.2); stroke-width: 2.5; }
.wp-pulse {
    fill: none; stroke: var(--wp-amber); stroke-width: 5; stroke-linecap: round;
    stroke-dasharray: 12 200; stroke-dashoffset: 12;
    animation: wp-run 2.8s linear infinite;
    animation-delay: var(--d, 0s);
}
.wp-town { fill: var(--wp-cyan); opacity: 0.9; }
.wp-hub { fill: var(--wp-amber); }
.wp-ring {
    fill: none; stroke: var(--wp-amber); stroke-width: 3;
    transform-box: fill-box; transform-origin: center;
    animation: wp-ring 2.2s ease-out infinite;
}

.wire-promo-text, .wire-promo-latest { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.wire-promo-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font: 800 0.66rem/1.2 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp-amber);
}
.wire-promo-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ff4b3e;
    animation: ws-live 1.6s ease-out infinite;
}
.wire-promo-title {
    margin-top: 3px;
    font: 800 clamp(1.2rem, 2.1vw, 1.55rem)/1.1 Georgia, 'Times New Roman', serif;
    color: #fff;
}
.wire-promo-dek { margin-top: 3px; font: italic 0.9rem/1.35 Georgia, 'Times New Roman', serif; color: #c9d3e6; }
.wire-promo-facts {
    margin-top: 6px;
    font: 700 0.66rem/1.3 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: 0.06em; text-transform: uppercase; color: #8fb6d6;
}

/* The latest statewide copy, one headline after another. */
.wire-promo-latest {
    padding: 7px 12px 8px;
    border-left: 3px solid var(--wp-cyan);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 4px 4px 0;
}
.wire-promo-latest-label {
    font: 700 0.62rem/1.2 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: 0.12em; text-transform: uppercase; color: #9fb0cf;
}
.wire-promo-turn { position: relative; display: block; min-height: 3.55rem; margin-top: 4px; }
.wire-promo-head { display: flex; flex-direction: column; }
.wire-promo-turn.is-turning .wire-promo-head {
    position: absolute; inset: 0 0 auto 0;
    opacity: 0;
    animation: wp-turn 20s ease-in-out infinite;
    animation-delay: calc(var(--n) * 5s);
}
.wire-promo-head-title {
    font: 700 0.96rem/1.25 Georgia, 'Times New Roman', serif; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wire-promo-head-src { margin-top: 3px; font: 700 0.74rem/1.3 Arial, Helvetica, sans-serif; color: var(--wp-cyan); }
.wire-promo-must {
    display: inline-block; padding: 1px 6px; margin-right: 2px; border-radius: 3px; vertical-align: 2px;
    background: linear-gradient(135deg, #b91c1c, #ef4444); color: #fff;
    font: 900 0.56rem/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}

.wire-promo-cta {
    position: relative; z-index: 1;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--wp-amber);
    color: #070d19;
    font: 800 0.85rem/1 Arial, Helvetica, sans-serif;
    white-space: nowrap;
    transition: background 0.18s ease;
}
.wire-promo:hover .wire-promo-cta { background: #ffc85a; }

@media (max-width: 1040px) {
    .wire-promo { grid-template-columns: auto minmax(0, 1fr); padding: 12px 16px 14px 12px; }
    .wire-promo-latest { grid-column: 1 / -1; }
    .wire-promo-cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
    .wire-promo-map { width: 104px; }
    .wire-promo { gap: 10px 12px; }
}

@keyframes wp-run {
    0% { stroke-dashoffset: 12; }
    100% { stroke-dashoffset: -100; }
}
@keyframes wp-ring {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.1); opacity: 0; }
}
@keyframes wp-turn {
    0% { opacity: 0; transform: translateY(6px); }
    3% { opacity: 1; transform: none; }
    22% { opacity: 1; transform: none; }
    25% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 0; }
}

/* Still, for readers who ask for less motion: the first headline, the wires drawn. */
@media (prefers-reduced-motion: reduce) {
    .wire-strip-dot, .wire-strip-signal span, .wire-promo-live, .wp-pulse, .wp-ring, .wire-promo { animation: none; transition: none; }
    .wire-strip-signal span, .wp-pulse, .wp-ring { display: none; }
    .wire-promo-turn.is-turning .wire-promo-head { animation: none; }
    .wire-promo-turn.is-turning .wire-promo-head:first-child { opacity: 1; }
}

/* On the home page the strip sits inside the page's own container, the width of its grid. */
.frontpage-v3 .wire-strip-wrap { width: 100%; margin: 0 0 14px; }

/* On a news budget notice (/assignment/...): the room introduced, above the notice. */
.assignment-wire { margin: 0 0 24px; }
.assignment-wire .wire-promo-wrap { width: 100%; margin: 0; }
.assignment-wire-intro {
    margin: 0 0 10px; max-width: 62ch;
    font: italic 1rem/1.5 Georgia, 'Times New Roman', serif; color: #3c3c3c;
}
