/*
 * Switchable reading looks for the alert page (A, B) and the alerts list (C).
 * Every token and rule is scoped under a wrapper class so a later content
 * page can opt in by adding the class. Token values are copied from the
 * 2026-11-08 mock-up; contrast of each one was measured there.
 */

.rl-look-a {
  --ra-panel-bg: #1e2531;
  --ra-panel-border: rgba(255, 255, 255, .07);
  --ra-text: #edeff3;
  --ra-heading: #ffffff;
  --ra-text-secondary: #b9c2cf;
  --ra-link: #7cc8f5;
  --ra-chip-bg: #2b3442;
  --ra-chip-text: #e1e7ef;
  --ra-glance-bg: #262e3b;
  --ra-body-size: 18px;
  --ra-line-height: 1.6;
  --ra-measure: 70ch;
  --ra-sev-edge: 3px;
  --sev-critical: #DC2626;
  --sev-high: #EF4444;
  --sev-elevated: #F59E0B;
  --sev-standard: #3B82F6;
  --rl-sev: var(--sev-elevated);
  --site-accent: #0ea5e9;
  overflow-x: hidden;
  max-width: 100%;
}

.rl-look-b {
  --rb-bg: #161b24;
  --rb-text: #d9dee6;
  --rb-heading: #f3f5f8;
  --rb-text-secondary: #a3aebd;
  --rb-rule: #2c3442;
  --rb-link: #7cc8f5;
  --rb-label: #7cc8f5;
  --rb-body-font: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --rb-body-size: 18px;
  --rb-line-height: 1.65;
  --rb-measure: 66ch;
  --rl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  --rl-mono: "SF Mono", Consolas, "Liberation Mono", monospace;
  --sev-critical: #DC2626;
  --sev-high: #EF4444;
  --sev-elevated: #F59E0B;
  --sev-standard: #3B82F6;
  --rl-sev: var(--sev-elevated);
  overflow-x: hidden;
  max-width: 100%;
}

.rl-look-a.rl-sev-critical,
.rl-look-b.rl-sev-critical { --rl-sev: var(--sev-critical); }
.rl-look-a.rl-sev-high,
.rl-look-b.rl-sev-high { --rl-sev: var(--sev-high); }
.rl-look-a.rl-sev-elevated,
.rl-look-b.rl-sev-elevated { --rl-sev: var(--sev-elevated); }
.rl-look-a.rl-sev-standard,
.rl-look-b.rl-sev-standard,
.rl-look-a.rl-sev-low,
.rl-look-b.rl-sev-low { --rl-sev: var(--sev-standard); }

/* A: dim reading panel */
.rl-look-a .rl-head {
  max-width: var(--ra-measure);
  margin: 0 auto;
}

.rl-look-a .article-header h1 {
  font-size: 30px;
  line-height: 1.22;
  font-weight: 700;
  margin: 12px 0 8px;
  color: var(--ra-heading);
}

.rl-look-a .article-header__meta {
  font-size: 14px;
  color: var(--ra-text-secondary);
}

.rl-look-a .article-header__badges,
.rl-look-a .statement-chips,
.rl-look-a .article-header__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rl-look-a .priority-badge,
.rl-look-a .badge,
.rl-look-a .article-header__location,
.rl-look-a .statement-chip,
.rl-look-a .topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ra-chip-bg);
  color: var(--ra-chip-text);
  font-size: 13px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  letter-spacing: 0;
  text-transform: none;
}

.rl-look-a .priority-badge::before,
.rl-look-a .statement-chip--severity::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  background: var(--rl-sev);
}

.rl-look-a .rl-panel {
  background: var(--ra-panel-bg);
  border: 1px solid var(--ra-panel-border);
  border-left: var(--ra-sev-edge) solid var(--rl-sev);
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 18px;
  box-sizing: border-box;
  max-width: 100%;
}

.rl-look-a .rl-read {
  max-width: var(--ra-measure);
  margin: 0 auto;
  font-size: var(--ra-body-size);
  line-height: var(--ra-line-height);
  color: var(--ra-text);
  overflow-wrap: anywhere;
}

.rl-look-a .rl-read p {
  margin: 0 0 1em;
}

.rl-look-a .rl-read h3,
.rl-look-a .rl-read h2,
.rl-look-a .rl-read h4 {
  font-size: 20px;
  color: var(--ra-heading);
  margin: 1.6em 0 .5em;
  font-weight: 650;
  text-transform: none;
}

.rl-look-a .rl-read ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.rl-look-a .rl-read li {
  margin: 0 0 .6em;
}

.rl-look-a .rl-read li p {
  margin: 0;
}

.rl-look-a .rl-read a {
  color: var(--ra-link);
}

.rl-look-a .alert-region-line__label {
  font-weight: 700;
  letter-spacing: .04em;
}

.rl-look-a .alert-glance {
  background: var(--ra-glance-bg);
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 1.4em;
}

.rl-look-a .alert-glance h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ra-text-secondary);
}

.rl-look-a .alert-glance dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}

.rl-look-a .alert-glance dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ra-text-secondary);
}

.rl-look-a .alert-glance dd {
  margin: 0;
  font-size: 16px;
  color: var(--ra-text);
}

.rl-look-a .rl-read h3.header-anchor-post + ul {
  list-style: none;
  border-left: 3px solid var(--site-accent);
  padding: 2px 0 2px 14px;
  margin: 0 0 1em;
}

.rl-look-a .rl-read h3.header-anchor-post + ul strong {
  display: block;
  font-size: 14px;
  color: var(--ra-text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}

/* B: briefing slate */
.rl-look-b .rl-slate {
  background: var(--rb-bg);
  border-radius: 10px;
  padding: 28px 32px;
  border-top: 4px solid var(--rl-sev);
  box-sizing: border-box;
  max-width: 100%;
}

.rl-look-b .rl-in {
  max-width: var(--rb-measure);
  margin: 0 auto;
}

.rl-look-b .article-header__badges,
.rl-look-b .article-header__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rb-text-secondary);
  font-weight: 600;
}

/* The command link is an anchor (flex, 44px touch height) and the priority
   and location are blocks, so the link text sat lower. The row centres the
   three, and they share one display, so the labels sit on one line. */
.rl-look-b .article-header__badges {
  align-items: center;
}

.rl-look-b .article-header__badges > .priority-badge,
.rl-look-b .article-header__badges > .badge,
.rl-look-b .article-header__badges > .article-header__location {
  display: inline-flex;
  align-items: center;
}

.rl-look-b .priority-badge,
.rl-look-b .badge,
.rl-look-b .article-header__location,
.rl-look-b .topic-tag {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  letter-spacing: inherit;
  text-transform: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.rl-look-b .priority-badge {
  color: #fcd34d;
}

.rl-look-b .priority-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--rl-sev);
  margin-right: 6px;
  vertical-align: 1px;
}

.rl-look-b .article-header h1 {
  font-size: 30px;
  line-height: 1.22;
  margin: 10px 0 10px;
  color: var(--rb-heading);
  font-weight: 700;
}

.rl-look-b .article-header__meta {
  font-size: 14px;
  color: var(--rb-text-secondary);
  border-bottom: 1px solid var(--rb-rule);
  padding-bottom: 12px;
  font-family: var(--rl-mono);
}

.rl-look-b .rl-body {
  font-family: var(--rb-body-font);
  font-size: var(--rb-body-size);
  line-height: var(--rb-line-height);
  color: var(--rb-text);
  overflow-wrap: anywhere;
}

.rl-look-b .rl-body p {
  margin: 0 0 1em;
}

.rl-look-b .rl-body h3,
.rl-look-b .rl-body h2,
.rl-look-b .rl-body h4 {
  font-family: var(--rl-font);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rb-label);
  margin: 1.8em 0 .7em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rb-rule);
  font-weight: 600;
}

.rl-look-b .rl-body ul {
  padding-left: 1.1em;
  margin: 0 0 1em;
}

.rl-look-b .rl-body li {
  margin: 0 0 .6em;
}

.rl-look-b .rl-body li p {
  margin: 0;
}

.rl-look-b .alert-region-line__label {
  font-family: var(--rl-font);
  font-weight: 700;
  font-size: .85em;
  letter-spacing: .06em;
  color: var(--rb-heading);
}

.rl-look-b .alert-glance {
  border: 0;
  border-top: 1px solid var(--rb-rule);
  border-bottom: 1px solid var(--rb-rule);
  border-radius: 0;
  padding: 12px 0;
  margin: 16px 0 20px;
  font-family: var(--rl-font);
  background: none;
}

.rl-look-b .alert-glance dt {
  color: var(--rb-text-secondary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  padding-top: 3px;
}

.rl-look-b .alert-glance dd {
  color: var(--rb-text);
  font-size: 15px;
}

.rl-look-b .rl-body a {
  color: var(--rb-link);
}

.rl-look-b .rl-body h3.header-anchor-post + ul {
  list-style: none;
  margin: 0 0 1em;
  padding-left: 16px;
  border-left: 2px solid var(--rb-label);
  font-style: italic;
}

.rl-look-b .rl-body h3.header-anchor-post + ul strong {
  display: block;
  font-style: normal;
  font-family: var(--rl-font);
  font-size: 13px;
  color: var(--rb-text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}

/* C: /alerts wire list grouped by day */
.rl-list-c {
  --rw-bg: #1a202b;
  --rw-row-hover: #222a37;
  --rw-rule: #2c3442;
  --rw-title: #f1f3f6;
  --rw-text: #c9d0da;
  --rw-text-secondary: #b3bdca;
  --rw-chip-bg: #262e3b;
  --rw-chip-text: #dfe5ee;
  --rw-chip-on-bg: #0ea5e9;
  --rw-chip-on-text: #06121a;
  --rw-day: #b3bdca;
  --rw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  --rw-mono: "SF Mono", Consolas, "Liberation Mono", monospace;
  --sev-critical: #DC2626;
  --sev-high: #EF4444;
  --sev-elevated: #F59E0B;
  --sev-standard: #3B82F6;
  background: var(--rw-bg);
  border-radius: 10px;
  padding: 22px 24px;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.rl-list-c .priority-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.rl-list-c .priority-filter {
  font: 500 14px var(--rw-font);
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--rw-chip-bg);
  color: var(--rw-chip-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rl-list-c .priority-filter--active {
  background: var(--rw-chip-on-bg);
  color: var(--rw-chip-on-text);
}

.rl-list-c .priority-filter__count {
  font-size: 12px;
  opacity: .85;
}

.rl-list-c .rl-day {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rw-day);
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--rw-rule);
}

.rl-list-c .rl-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 4px 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rw-rule);
  text-decoration: none;
  color: inherit;
}

.rl-list-c .rl-row:hover {
  background: var(--rw-row-hover);
}

.rl-list-c .rl-time {
  font: 600 14px/1.5 var(--rw-mono);
  color: var(--rw-text-secondary);
  padding-top: 2px;
}

.rl-list-c .rl-time small {
  display: block;
  font-weight: 400;
  font-size: 11px;
}

.rl-list-c .rl-row-title {
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.rl-list-c .rl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  position: relative;
  top: -1px;
}

.rl-list-c .rl-dot--critical,
.rl-list-c .rl-sev--critical { --rl-dot: var(--sev-critical); }
.rl-list-c .rl-dot--high,
.rl-list-c .rl-sev--high { --rl-dot: var(--sev-high); }
.rl-list-c .rl-dot--elevated,
.rl-list-c .rl-sev--elevated { --rl-dot: var(--sev-elevated); }
.rl-list-c .rl-dot--standard,
.rl-list-c .rl-dot--low,
.rl-list-c .rl-sev--standard,
.rl-list-c .rl-sev--low { --rl-dot: var(--sev-standard); }

.rl-list-c .rl-dot {
  background: var(--rl-dot, var(--sev-standard));
}

.rl-list-c .rl-title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--rw-title);
}

.rl-list-c .rl-meta {
  font-size: 13px;
  color: var(--rw-text-secondary);
  margin: 3px 0 4px 17px;
}

.rl-list-c .rl-sev {
  font-weight: 700;
}

.rl-list-c .rl-sev--critical { color: #fca5a5; }
.rl-list-c .rl-sev--high { color: #f87171; }
.rl-list-c .rl-sev--elevated { color: #fcd34d; }
.rl-list-c .rl-sev--standard,
.rl-list-c .rl-sev--low { color: #93c5fd; }

.rl-list-c .rl-summary {
  font-size: 15px;
  line-height: 1.5;
  color: var(--rw-text);
  margin-left: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .rl-look-a .article-header h1,
  .rl-look-b .article-header h1 {
    font-size: 25px;
  }

  .rl-look-a .rl-panel {
    padding: 20px 16px;
  }

  .rl-look-a {
    --ra-body-size: 17px;
  }

  .rl-look-b .rl-slate {
    padding: 20px 16px;
  }

  .rl-look-b {
    --rb-body-size: 17px;
  }

  .rl-look-a .alert-glance dl,
  .rl-look-b .alert-glance dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rl-look-a .alert-glance dd,
  .rl-look-b .alert-glance dd {
    margin-bottom: 6px;
  }

  .rl-list-c {
    padding: 16px;
  }

  .rl-list-c .rl-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .rl-list-c .rl-time {
    display: flex;
    gap: 8px;
  }

  .rl-list-c .rl-summary {
    -webkit-line-clamp: 2;
  }
}
