/* Redesign (VH_REDESIGN=1): direction A (navy, amber watch dot) with a big verdict card and a phone tab
   bar. Loads after site.css and only styles pages with body.rd. Status color means recency only, never
   safety, so there is no green anywhere. */
.rd { --bar: #0b2a4a; --bar-ink: #e8eef8; --bar-soft: #123a63; --card: #0b2a4a; --card-ink: #ffffff; --card-soft: #c9d8ee; --alert: #e5484d; --watch: #f59e0b; --neutral: #7c93b3; }
@media (prefers-color-scheme: dark) { .rd { --bar: #0d1a2e; --bar-soft: #1a2c47; --card: #13294a; --card-soft: #b5c7e3; } }

/* Header */
.rd .bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 10px max(16px, calc((100% - 1000px) / 2)); background: var(--bar); color: var(--bar-ink); }
.rd .logo { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 750; font-size: 1.08rem; text-decoration: none; white-space: nowrap; }
.rd .logo img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.rd .nav { display: flex; gap: 4px; }
.rd .nav a { color: var(--bar-ink); text-decoration: none; font-weight: 550; font-size: 0.96rem; padding: 8px 12px; border-radius: 8px; }
.rd .nav a:hover { background: var(--bar-soft); }
.rd .nav a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--watch); border-radius: 8px 8px 0 0; }
.rd .hsearch { margin-left: auto; }
.rd .hsearch input { font: inherit; font-size: 0.95rem; width: 230px; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--bar-soft); color: #fff; }
.rd .hsearch input::placeholder { color: #a9bfdc; }
.rd .hsearch input:focus-visible, .rd .bar a:focus-visible { outline: 3px solid var(--watch); outline-offset: 2px; }
.rd .sr { position: absolute; left: -9999px; }
.rd header.site { display: none; }

/* Vendor verdict card */
.rd .vh1 { font-size: clamp(1.8rem, 4.6vw, 2.5rem); margin: 0.35em 0 0.5em; }
.rd .verdict { position: relative; background: var(--card); color: var(--card-ink); border-radius: 18px; padding: 22px 22px 20px; margin: 0 0 8px; box-shadow: 0 20px 44px -26px rgba(11, 42, 74, 0.7); overflow: hidden; }
.rd .verdict::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--neutral); }
.rd .verdict.tone-alert::before { background: var(--alert); }
.rd .verdict.tone-watch::before { background: var(--watch); }
.rd .verdict .tone { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--card-soft); }
.rd .verdict .tone::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--neutral); }
.rd .verdict.tone-alert .tone::before { background: var(--alert); }
.rd .verdict.tone-watch .tone::before { background: var(--watch); }
.rd .verdict .say { font-size: clamp(1.15rem, 2.6vw, 1.42rem); font-weight: 700; line-height: 1.35; margin: 0 0 14px; }
.rd .verdict .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.rd .verdict .chip { font-size: 0.8rem; font-weight: 650; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.rd .verdict .chip.c-ransomware-claim { border: 1px dashed rgba(255, 255, 255, 0.55); background: transparent; }
.rd .verdict .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rd .verdict .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 11px; background: var(--watch); color: #1f1300; font-weight: 700; text-decoration: none; }
.rd .verdict .lnk { color: #fff; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.rd .verdict .meta { margin: 14px 0 0; font-size: 0.86rem; color: var(--card-soft); }
.rd .verdict a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rd .checked-line { font-size: 0.88rem; color: var(--muted); margin: 10px 0 0; }

/* Records */
.rd h2 .ct { font-size: 0.8rem; font-weight: 700; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--hero-from); color: var(--brand); vertical-align: middle; }
@media (prefers-color-scheme: dark) { .rd h2 .ct { color: var(--text); } }
.rd .incident .src a { display: inline-block; padding: 6px 0; }
.rd details.yr { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 10px; }
.rd details.yr summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; font-weight: 650; }
.rd details.yr summary::-webkit-details-marker { display: none; }
.rd details.yr summary::after { content: "Show"; margin-left: auto; font-size: 0.85rem; color: var(--link); font-weight: 600; }
.rd details.yr[open] summary::after { content: "Hide"; }
.rd details.yr .incidents { padding: 0 12px 4px; }

/* Latest filters */
.rd .filters { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 18px; padding-bottom: 4px; }
.rd .filters a { white-space: nowrap; text-decoration: none; padding: 9px 15px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 0.92rem; font-weight: 550; }
.rd .filters a[aria-current] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Footer */
.rd .foot { max-width: 1000px; margin: 0 auto; padding: 22px 16px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.rd .foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.rd .foot a { color: var(--muted); }
.rd .foot p { margin: 0; }
.rd .foot p + p { margin-top: 6px; }
.rd footer.site { display: none; }

/* Phone: tab bar at the bottom, header slimmer */
.rd .tabbar { display: none; }
@media (max-width: 720px) {
  .rd .nav, .rd .hsearch { display: none; }
  .rd .bar { padding: 10px 16px; }
  .rd main, .rd .foot { padding-bottom: 92px; }
  .rd .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: var(--bar); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, 0.5); }
  .rd .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 48px; color: var(--bar-ink); text-decoration: none; font-size: 0.74rem; font-weight: 600; }
  .rd .tabbar a[aria-current] { color: var(--watch); }
  .rd .tabbar a:focus-visible { outline: 3px solid var(--watch); outline-offset: -3px; border-radius: 10px; }
  .rd .verdict { padding: 18px 18px 18px 22px; }
}
.rd .quiet-stats { margin: 18px auto 0; max-width: 680px; font-size: 0.95rem; color: var(--muted); }

/* Live outage box and public setup checks (VH_CHECKS=1). Same recency-free rule: calm is neutral, never green. */
.rd .live { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 18px 12px 22px; margin: 18px 0 8px; overflow: hidden; }
.rd .live::before, .rd .setup li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--neutral); }
.rd .live.tone-watch::before, .rd .setup li.tone-watch::before { background: var(--watch); }
.rd .live.tone-alert::before { background: var(--alert); }
.rd .live h2 { margin: 0 0 6px; font-size: 1.1rem; }
.rd .live p { margin: 0 0 6px; }
.rd .live-list { margin: 4px 0 8px; padding-left: 18px; }
.rd .live-list span, .rd .live-meta { color: var(--muted); font-size: 0.86rem; }
.rd .setup { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.rd .setup li { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 11px 14px 11px 20px; overflow: hidden; }
.rd .setup strong { display: block; margin-bottom: 2px; }
.rd .tip { font-size: 0.93rem; }
/* Secondary button in the verdict card ("Watch X" when "What to do" is the main action). */
.rd .verdict .btn.alt { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.rd .verdict .btn.alt:hover { box-shadow: inset 0 0 0 2px #fff; }
