/* First Signal Wire design level-up v1 (Nov 28 2026). Additive overrides only.
   Does not replace the logo, og-square, or core brand CSS file. GA4 unchanged. */

/* Wordmark gold: AA contrast on white (5.74:1). Dark theme gold is already fine. */
:root, [data-theme=light] { --wire: #7A6414; }

/* Story / edition kickers: drop uppercase + opacity that failed WCAG AA at 3.91:1. */
.sp .kick,
.edp .kick,
.art .kick {
  font-size: var(--s-meta, 15px);
  line-height: var(--lh-meta, 1.5);
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 1;
  color: var(--muted);
}

/* Cookie banner: corner card on desktop; compact bar on small screens; follows theme.
   Accept/Reject behavior is unchanged (see fsw-consent-v1.js). */
#fsw-consent {
  left: auto;
  right: 24px;
  bottom: 24px;
  width: min(22rem, calc(100vw - 32px));
  border: 1px solid var(--line, #E3E5E9);
  border-radius: 16px;
  border-top: 1px solid var(--line, #E3E5E9);
  background: var(--bg, #0E1013);
  color: var(--text, #ECEDEF);
  box-shadow: 0 12px 40px rgba(14, 16, 19, 0.18);
}
#fsw-consent .fsw-consent-in {
  max-width: none;
  margin: 0;
  padding: 14px 16px 14px;
  gap: 12px;
}
#fsw-consent h2 { color: var(--text, #ECEDEF); font-size: 14px; margin: 0 0 4px; }
#fsw-consent p { color: var(--muted, #9DA1AA); font-size: 13px; line-height: 1.45; }
#fsw-consent p a { color: var(--text, #ECEDEF); }
#fsw-consent .fsw-consent-actions { width: 100%; }
#fsw-consent .fsw-consent-actions button,
[data-theme=light] #fsw-consent .fsw-consent-actions button,
[data-theme=dark] #fsw-consent .fsw-consent-actions button,
:root:not([data-theme]) #fsw-consent .fsw-consent-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #9DA1AA;
  background: transparent;
  color: #ECEDEF;
}
#fsw-consent .fsw-consent-actions button:hover,
[data-theme=light] #fsw-consent .fsw-consent-actions button:hover,
[data-theme=dark] #fsw-consent .fsw-consent-actions button:hover,
:root:not([data-theme]) #fsw-consent .fsw-consent-actions button:hover {
  background: #1B1D22;
}
#fsw-consent .fsw-consent-actions button:last-child,
#fsw-consent .fsw-consent-actions button[data-choice="accept"],
#fsw-consent .fsw-consent-actions button:nth-child(2),
[data-theme=light] #fsw-consent .fsw-consent-actions button:last-child,
[data-theme=light] #fsw-consent .fsw-consent-actions button[data-choice="accept"],
[data-theme=dark] #fsw-consent .fsw-consent-actions button:last-child,
[data-theme=dark] #fsw-consent .fsw-consent-actions button[data-choice="accept"],
:root:not([data-theme]) #fsw-consent .fsw-consent-actions button:last-child,
:root:not([data-theme]) #fsw-consent .fsw-consent-actions button[data-choice="accept"] {
  background: #ECEDEF;
  color: #0B0C0E;
  border-color: #ECEDEF;
}
#fsw-consent .fsw-consent-actions button:last-child:hover,
#fsw-consent .fsw-consent-actions button[data-choice="accept"]:hover,
[data-theme=light] #fsw-consent .fsw-consent-actions button:last-child:hover,
[data-theme=light] #fsw-consent .fsw-consent-actions button[data-choice="accept"]:hover {
  background: #FFFFFF;
  color: #0B0C0E;
}
#fsw-consent .fsw-consent-actions button:focus-visible {
  outline: 2px solid #ECEDEF;
  outline-offset: 2px;
}
[data-theme=light] #fsw-consent,
:root:not([data-theme]) #fsw-consent {
  background: #0E1013;
  color: #ECEDEF;
  border-color: #25272D;
}
[data-theme=light] #fsw-consent h2,
:root:not([data-theme]) #fsw-consent h2 { color: #ECEDEF; }
[data-theme=light] #fsw-consent p,
:root:not([data-theme]) #fsw-consent p { color: #C5C8CE; }
[data-theme=light] #fsw-consent p a,
:root:not([data-theme]) #fsw-consent p a { color: #ECEDEF; }
body.fsw-consent-on { padding-bottom: 1.5rem; }

@media (max-width: 640px) {
  #fsw-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    border-radius: 16px;
  }
  #fsw-consent .fsw-consent-in { padding: 12px 14px; }
  #fsw-consent p { font-size: 12px; }
  body.fsw-consent-on { padding-bottom: 1.5rem; }
}

/* Premium / trial cards: keep actions at the bottom, equal stretched height. */
.pm-tiers { align-items: stretch; }
.pm-card { min-height: 0; }
.pm-list { flex: 1 1 auto; }
.pm-cta, .pm-card [id^="paypal"], .pm-card .paypal-buttons,
.tr-card .pm-cta, .trial .pm-cta { margin-top: auto; }

/* News-first homepage: desk video sits in the right rail; lead story starts at the top. */
@media (min-width: 861px) {
  .xrail-in > .vdesk {
    display: block;
    margin: 0 0 var(--sp-6, 24px);
    padding: 0 0 var(--sp-5, 20px);
    border-bottom: 1px solid var(--line, #E3E5E9);
    grid-template-columns: none;
  }
  .xrail-in > .vdesk .vd-media {
    margin-bottom: var(--sp-3, 12px);
  }
  .xrail-in > .vdesk .vd-t { font-size: 18px; }
  .xrail-in > .vdesk .vd-d { font-size: 14px; max-width: none; }
  main#main > .status.upd { margin-top: var(--sp-4, 16px); }
}
@media (max-width: 860px) {
  .xrail-in > .vdesk {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 0 var(--sp-6, 24px);
    padding: 0 0 var(--sp-5, 20px);
    border-bottom: 1px solid var(--line, #E3E5E9);
  }
}

/* Newsletter landing: keep the form exact; give the product a clearer lead. */
.nlp .dek { max-width: 36em; }
.nlp .nl-points { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 36em; }
.nlp .nl-points li {
  position: relative;
  padding: 0 0 0.45rem 1.35rem;
  font-size: var(--s-meta, 15px);
  line-height: 1.5;
  color: var(--text);
}
.nlp .nl-points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.nlp .nlt { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line, #E3E5E9); }
.nlp .nlt h2 { font-size: 1.15rem; }
.nlp .nlt h3, .nlp .nlt p, .nlp .nlt li, .nlp .nlt .ver { font-size: 14px; color: var(--muted); }

/* 404: keep the footer from floating in empty space. */
.nf-next { margin-top: 1.25rem; max-width: 36em; font-size: var(--s-meta, 15px); line-height: 1.5; }
