/* eol.network */

/* ================================================================
   Properties
   ================================================================ */

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure: 64rem;
}

html[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-alt: #f3f4f6;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --rule: #e5e7eb;
  --rule-strong: #d1d5db;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --accent: #0f766e;

  --eol-bg: #fef2f2; --eol-border: #fca5a5; --eol-text: #991b1b;
  --eos-bg: #fffbeb; --eos-border: #fcd34d; --eos-text: #92400e;
  --warn-bg: #fefce8; --warn-border: #fde047; --warn-text: #854d0e;
  --ok-bg: #f0fdf4; --ok-border: #86efac; --ok-text: #166534;
}

html[data-theme="dark"] {
  --bg: #0b0d11;
  --surface: #141720;
  --surface-alt: #1b1f2a;
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --rule: #1f2937;
  --rule-strong: #374151;
  --link: #60a5fa;
  --link-hover: #93bbfd;
  --accent: #2dd4bf;

  --eol-bg: #1c1012; --eol-border: #7f1d1d; --eol-text: #fca5a5;
  --eos-bg: #1a1708; --eos-border: #78350f; --eos-text: #fcd34d;
  --warn-bg: #1a1a06; --warn-border: #713f12; --warn-text: #fde047;
  --ok-bg: #071a0e; --ok-border: #14532d; --ok-text: #86efac;
}

/* ================================================================
   Base
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.25rem; }
h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin: 2rem 0 0.75rem; }
h2:first-child { margin-top: 0; }
p { margin-bottom: 0.75rem; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }

/* ================================================================
   Shell: header, wrap, footer
   ================================================================ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.header-search {
  flex: 1;
  max-width: 22rem;
  position: relative;
}
.is-home .header-search { display: none; }
.search-input {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 0.375rem 0.625rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 20rem;
  overflow-y: auto;
  z-index: 200;
  display: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.search-results.active { display: block; }
.search-hit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
}
.search-hit:last-child { border-bottom: none; }
.search-hit:hover { background: var(--surface-alt); text-decoration: none; }
.search-hit .hit-sku { font-weight: 600; }
.search-hit .hit-sku .hit-id { font-family: var(--mono); font-weight: 400; color: var(--text-muted); font-size: 0.75rem; margin-left: 0.4rem; }
.search-hit .hit-vendor { color: var(--text-muted); font-size: 0.6875rem; }
.search-hit .hit-date { color: var(--text-muted); font-size: 0.6875rem; margin-left: auto; }
.sku-sub { font-family: var(--mono); font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.125rem; font-weight: 400; }
.product-sku { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.product-sku code { background: none; padding: 0; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.header-nav > a { color: var(--text-secondary); white-space: nowrap; }
.header-nav > a:hover { color: var(--text); text-decoration: none; }
.header-nav .muted { color: var(--text-muted); }

.dropdown { position: relative; }
.dropdown-btn {
  all: unset;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.dropdown-btn:hover { color: var(--text); background: var(--surface-alt); }
.dropdown-arrow { font-size: 0.625rem; color: var(--text-muted); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 13rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  box-shadow: 0 6px 20px var(--shadow);
  display: none;
  flex-direction: column;
  padding: 0.25rem 0;
  z-index: 150;
}
.dropdown.open .dropdown-panel { display: flex; }
.dropdown-panel a {
  padding: 0.375rem 0.875rem;
  color: var(--text);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.dropdown-panel a:hover {
  background: var(--surface-alt);
  text-decoration: none;
  color: var(--accent);
}
.theme-btn {
  all: unset;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.theme-btn:hover { color: var(--text-secondary); border-color: var(--rule-strong); }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem;
}

.site-banner {
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.banner-info  { background: rgba(15, 118, 110, 0.12);  color: var(--accent); }
.banner-warn  { background: rgba(234, 179, 8, 0.15);   color: #b45309; }
.banner-alert { background: rgba(220, 38, 38, 0.12);   color: #b91c1c; }
[data-theme="dark"] .banner-warn  { color: #fbbf24; }
[data-theme="dark"] .banner-alert { color: #fca5a5; }

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
}
.footer-inner a { color: var(--text-muted); }
.footer-freshness time { font-family: var(--mono); }
.footer-freshness .fine { color: var(--text-muted); opacity: 0.75; }

/* ================================================================
   Breadcrumbs
   ================================================================ */

.crumbs {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.crumbs > a:nth-of-type(2),
.crumbs > a.vendor-crumb {
  color: var(--text-secondary);
  font-weight: 600;
}
.crumbs > a:nth-of-type(2):hover,
.crumbs > a.vendor-crumb:hover { color: var(--text); }
.crumbs .sep { margin: 0 0.35rem; }

/* ================================================================
   Home
   ================================================================ */

.home-hero {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}
.home-hero h1 { font-size: 1.25rem; margin-bottom: 0.125rem; }
.home-hero > p { color: var(--text-secondary); font-size: 0.8125rem; margin-bottom: 0.375rem; }
.home-hero > p.home-stats {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.home-stats b {
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.home-stats .dot { color: var(--rule-strong); margin: 0 0.15rem; }
.home-search {
  position: relative;
  max-width: 40rem;
  margin-bottom: 1rem;
}
.home-search-input {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--rule-strong);
  border-radius: 5px;
  outline: none;
}
.home-search-input::placeholder { color: var(--text-muted); }
.home-search-input:focus { border-color: var(--accent); }
.home-search .search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 22rem;
  overflow-y: auto;
  z-index: 200;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.home-search .search-results.active { display: block; }
.home-vendors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}
.vendor-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.1s;
  min-width: 0;
}
.vendor-card:hover { border-color: var(--accent); text-decoration: none; }
.vendor-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 1.125rem;
  width: 2.25rem;
}
.vendor-card-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.vendor-card-name {
  font-size: 0.8125rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vendor-card-count {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.two-col h2 { margin-top: 0; font-size: 0.9375rem; }

.compact-table { width: 100%; border-collapse: collapse; }
.compact-table thead th {
  text-align: left;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem 0.25rem 0;
  border-bottom: 2px solid var(--rule-strong);
}
.compact-table td {
  padding: 0.3125rem 0.5rem 0.3125rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
}
.td-date { font-family: var(--mono); font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; }
.td-sku { max-width: 0; overflow: hidden; }
.td-sku a {
  font-family: var(--mono); font-weight: 500; font-size: 0.8125rem;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.td-vendor { color: var(--text-muted); font-size: 0.75rem; }

/* "Recently End of Sale" etc. — past-tense tables render muted so the
   reader doesn't scan them expecting actionable near-future work. */
.compact-table.is-past td,
.compact-table.is-past td a { color: var(--text-muted); }
.compact-table.is-past .td-date { opacity: 0.9; }
.section-badge-past {
  background: var(--surface-alt);
  color: var(--text-muted);
  border-color: var(--rule);
}
.section-badge-risk {
  background: var(--eol-bg);
  color: var(--eol-text);
  border-color: var(--eol-border);
}

.kev-home-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

/* ================================================================
   Lifecycle indicator
   ================================================================ */

.lifecycle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
  color: var(--text-secondary);
}
.lifecycle .lc-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.lifecycle-eol { color: var(--eol-text); }
.lifecycle-eos { color: var(--eos-text); }
.lifecycle-approaching { color: var(--warn-text); }
.lifecycle-supported { color: var(--ok-text); }

/* ================================================================
   Vendor page: series directory
   ================================================================ */

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Platform-family index — a scannable 2-3 column list rather than a
   grid of chip buttons. Reads as an index/table of contents; dotted
   leaders visually connect family name to count. */
.series-index {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 3 10rem;
  column-gap: 2rem;
  border-top: 1px solid var(--rule);
}
.series-index li {
  break-inside: avoid;
  border-bottom: 1px solid var(--rule);
}
.series-index a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.series-index a:hover { color: var(--accent); text-decoration: none; }
.series-index a:hover .sname { text-decoration: underline; text-underline-offset: 2px; }
.series-index .sname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.series-index .num {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.empty-note { color: var(--text-muted); font-size: 0.8125rem; font-style: italic; }

.type-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.type-chip {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--text-secondary);
}
.type-chip .num { color: var(--text-muted); }

/* ================================================================
   Section badges + secondary sections
   ================================================================ */

.section-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.0625rem 0.375rem;
  margin-left: 0.375rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: 0.1em;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: -0.25rem 0 0.75rem 0;
}

.recent-announcements {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.recent-announcements h2 { margin-top: 0; font-size: 0.9375rem; }

.software-section {
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.software-section[open] { padding-bottom: 1.25rem; }
.software-section > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  list-style: none;
  padding: 0.25rem 0;
}
.software-section > summary::-webkit-details-marker { display: none; }
.software-section > summary::before {
  content: "▸";
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-right: 0.5rem;
  transition: transform 0.15s;
  display: inline-block;
}
.software-section[open] > summary::before { transform: rotate(90deg); }
.software-section .summary-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  flex: 1;
}
.software-section .summary-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.software-section .software-body { margin-top: 1rem; }
.software-section h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  text-transform: none;
}

.software-vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.software-vendor-chip {
  font-size: 0.75rem;
  padding: 0.1875rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--text-secondary);
  text-decoration: none;
}
.software-vendor-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}
.software-vendor-chip .num {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-left: 0.25rem;
}

/* ================================================================
   Series page: product listing
   ================================================================ */

.jump-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1px;
  margin-bottom: 1.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.jump-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  background: var(--surface);
  color: var(--text-secondary);
  text-decoration: none;
}
.jump-link:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.jump-count { font-weight: 400; color: var(--text-muted); font-size: 0.6875rem; }

/* ================================================================
   Related products (product page)
   ================================================================ */
.related-products {
  margin: 2.5rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}
.related-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.related-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -0.5rem 0 0.75rem;
}
.related-sub time { font-family: var(--mono); color: var(--text-secondary); }
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list li { border-bottom: 1px solid var(--rule); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text);
  text-decoration: none;
}
.related-list a:hover { color: var(--accent); }
.related-list a:hover .related-name { text-decoration: underline; }
.related-name {
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.related-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.related-meta time { font-family: var(--mono); }
.related-meta .lifecycle { color: var(--text-muted); }

.type-section { margin-bottom: 2rem; scroll-margin-top: 3.5rem; }
.type-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--rule-strong);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.type-icon {
  height: 1rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.ptable { width: 100%; border-collapse: collapse; }
.ptable th {
  text-align: left;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.3125rem 0.75rem 0.3125rem 0;
  border-bottom: 1px solid var(--rule-strong);
}
.ptable td {
  padding: 0.4375rem 0.75rem 0.4375rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
}
.ptable .td-sku a { font-family: var(--mono); font-weight: 500; }
.ptable .td-date { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-secondary); white-space: nowrap; }
.ptable .td-lifecycle { white-space: nowrap; }
.ptable .th-date { width: 8rem; }
.ptable .th-lifecycle { width: 8rem; }

/* ================================================================
   Vendor header
   ================================================================ */

.vendor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.vendor-logo {
  height: 2rem;
  color: var(--text);
  opacity: 0.7;
  flex-shrink: 0;
}
.vendor-logo.legacy-wordmark {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.75;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface, transparent);
}
.vendor-header h1 { margin-bottom: 0; }
.vendor-header .page-subtitle { margin-bottom: 0; }
.legacy-lineage {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted, #888);
}
.legacy-lineage a { color: inherit; text-decoration: underline; }
.home-legacy-vendors {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.home-legacy-vendors .legacy-label {
  font-size: 0.85rem;
  color: var(--muted, #888);
  margin-right: 0.25rem;
}
.legacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface, transparent);
}
.legacy-chip:hover { background: var(--hover, rgba(0,0,0,0.04)); }
.legacy-chip .num { color: var(--muted, #888); font-size: 0.75rem; }

/* ================================================================
   Product detail
   ================================================================ */

.product-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.product-hero-body { min-width: 0; }
@media (max-width: 640px) {
  .product-hero { grid-template-columns: auto 1fr; }
  .product-source { grid-column: 1 / -1; justify-self: start; }
}

/* Source/verified line in the hero. Small, monospace — signals
   provenance without competing for attention with the title. */
.product-source {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
}
.product-source .source-link {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-source .source-link:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}
.product-source .source-verified {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .product-source { align-items: flex-start; text-align: left; }
  .product-source .source-link { max-width: none; }
}

/* Replacement callout — the answer to "what should I buy instead?"
   Shown under the status banner, before the prose and tables. */
.replacement-block {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.4rem 0.75rem 0.4rem 0;
  margin-bottom: 1.5rem;
}
.replacement-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.replacement-link {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
}
.replacement-link:hover { color: var(--link-hover); }
.replacement-link-inert {
  color: var(--text-secondary);
  border-bottom-color: var(--rule-strong);
}
.replacement-link code { font-size: 1em; font-weight: 600; }
.replacement-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
}
.replacement-list a { color: var(--link); text-decoration: none; border-bottom: 1px solid currentColor; }
.replacement-list a:hover { color: var(--link-hover); }
.replacement-list code { font-size: 1em; font-weight: 600; }

/* Lifecycle progress timeline. Horizontal bar spanning earliest known
   date (usually Announced) to last_date_of_support. Dots for stops,
   a vertical marker for "today", labels below. 24px bar + labels. */
.timeline {
  margin: 0 0 2.5rem;
  padding: 0 0.75rem;
}
.timeline-track {
  position: relative;
  height: 2px;
  background: var(--rule);
  /* Vertical budget: top for above-stops + today marker, bottom for
     below-stops. Each side fits a label row (~0.9rem) + date row (~0.9rem)
     plus spacing. */
  margin: 3.25rem 0 3.25rem;
}
.timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--text-secondary);
  opacity: 0.6;
}
.timeline-stop {
  position: absolute;
  top: 1px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.timeline-stop .timeline-dot {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text-secondary);
  margin: -0.3125rem auto 0;
}
.timeline-stop.is-passed .timeline-dot {
  background: var(--text-secondary);
}
.timeline-stop-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.timeline-stop-date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
/* Below-track stops: label below dot, date below label */
.timeline-stop-below .timeline-stop-label { top: 1rem; }
.timeline-stop-below .timeline-stop-date  { top: 2rem; }
/* Above-track stops: date above dot, label above date (closer to dot) */
.timeline-stop-above .timeline-stop-label { bottom: 1rem; }
.timeline-stop-above .timeline-stop-date  { bottom: 2rem; }
/* Nudge edge labels so they don't clip the page */
.timeline-stop[style*="left: 0%"] .timeline-stop-label,
.timeline-stop[style*="left: 0%"] .timeline-stop-date {
  left: 0; transform: none;
}
.timeline-stop[style*="left: 100%"] .timeline-stop-label,
.timeline-stop[style*="left: 100%"] .timeline-stop-date {
  left: auto; right: 0; transform: none;
}

.timeline-today {
  position: absolute;
  /* Line pierces the track; sits between above-stop labels and below-stop
     labels so it reads as a "now" reference without stealing label space. */
  top: -0.5rem;
  transform: translateX(-50%);
  pointer-events: none;
  width: 2px;
  height: 1rem;
  background: var(--link);
}
.timeline-today-marker { display: none; }
.timeline-today-label {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--link);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 0.25rem;
  background: var(--surface);
}

.product-silhouette {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.product-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.125rem;
}
.product-title h1 {
  font-family: var(--mono);
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}

.product-context {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-bulletin {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.375rem 0 0;
  max-width: 44rem;
  line-height: 1.45;
}
.product-bulletin em {
  font-style: italic;
  color: var(--text-secondary);
}

.product-enrichment {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0.375rem 0 0;
  max-width: 44rem;
  line-height: 1.5;
  font-style: italic;
}
.product-enrichment .enrichment-sources {
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.product-enrichment .enrichment-sources a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.product-enrichment .enrichment-sources a:hover {
  color: var(--link);
}

.sku-enrichment {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.125rem;
  line-height: 1.4;
  max-width: 36rem;
}

.vendor-wordmark {
  height: 1rem;
  color: var(--text-secondary);
  opacity: 0.65;
}

/* The big lifecycle callout — this is what gets screenshotted for budget emails.
   Softer palette: white/surface background, 3px colored left stripe, body
   text color. Color now signals category without shouting. */
.callout {
  padding: 0.875rem 1.125rem;
  border-radius: 0 4px 4px 0;
  border-left: 3px solid var(--rule-strong);
  background: var(--surface);
  color: var(--text);
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.callout strong { font-weight: 700; color: var(--text); }
.callout-eol { border-left-color: var(--eol-text); }
.callout-eos { border-left-color: var(--eos-text); }
.callout-approaching { border-left-color: var(--warn-text); }
.callout-supported { border-left-color: var(--ok-text); }
.callout code { font-size: 0.875em; font-weight: 600; color: var(--text); }
.callout-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.info-table th {
  text-align: left;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  white-space: nowrap;
  width: 14rem;
  vertical-align: top;
}
.info-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dates { width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; }
.dates th {
  text-align: left;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0.4375rem 1.5rem 0.4375rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  white-space: nowrap;
}
.dates td {
  font-family: var(--mono);
  padding: 0.4375rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}
.dates .final td { font-weight: 700; }
.dates .past td { color: var(--text-muted); }
.dates td.rel {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding-left: 0.75rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 1%;
}
.dates tr.past td.rel { color: var(--text-muted); opacity: 0.8; }
.dates tr.final td.rel { font-weight: 400; }

.detail-section { margin-bottom: 1.5rem; }
.detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.platforms {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.platform-chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--text-secondary);
  text-decoration: none;
}
.platform-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.prose-summary {
  margin: 1.5rem 0;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.prose-summary h2 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.prose-summary p { margin: 0 0 0.75rem; }
.prose-summary p:last-child { margin-bottom: 0; }
.prose-summary a { color: var(--link); }
.prose-summary a:hover { color: var(--link-hover); }

/* ================================================================
   Resources hub + terminology reference
   ================================================================ */

.resource-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
}
.resource-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.125rem;
  background: var(--surface);
  transition: border-color 120ms ease;
}
.resource-card.available:hover { border-color: var(--link); }
.resource-card a { display: block; color: inherit; text-decoration: none; }
.resource-card a:hover { text-decoration: none; }
.resource-card h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.375rem;
}
.resource-card.available a:hover h2 { color: var(--link); }
.resource-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.resource-card.coming {
  background: transparent;
  border-style: dashed;
}
.resource-card.coming h2 { color: var(--text-secondary); }
.resource-card.coming p { color: var(--text-muted); }
.coming-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.125rem 0.4rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.table-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.terminology-table-scroll {
  overflow-x: auto;
  margin-bottom: 2rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.terminology-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 52rem;
}
.terminology-table th,
.terminology-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}
.terminology-table thead th {
  background: var(--surface-alt);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--rule-strong);
  position: sticky;
  top: 0;
}
.terminology-table th.concept {
  font-weight: 500;
  color: var(--text);
  background: var(--surface-alt);
  max-width: 18rem;
}
.terminology-table td {
  color: var(--text-secondary);
}
.terminology-table .fine {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.125rem;
}
.terminology-table tbody tr:last-child th,
.terminology-table tbody tr:last-child td { border-bottom: none; }

.citation-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.75rem;
  font-size: 0.8125rem;
}
.citation-list li {
  padding: 0.1875rem 0;
}
.citation-list a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.citation-list a:hover { color: var(--link); text-decoration-style: solid; }

.disclaimer {
  border-left: 3px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.55;
  border-radius: 0 3px 3px 0;
}
.disclaimer strong { color: inherit; }

/* ================================================================
   Known Exploited Vulnerabilities block (product page + resources)
   ================================================================ */

.kev-block {
  margin: 2rem 0;
  padding: 1rem 1.125rem;
  border-left: 4px solid var(--eol-border);
  background: var(--eol-bg);
  border-radius: 0 4px 4px 0;
}
.kev-block h2 {
  margin: 0 0 0.5rem;
  color: var(--eol-text);
  font-size: 1.0625rem;
}
.kev-intro {
  font-size: 0.9375rem;
  color: var(--eol-text);
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 44rem;
}

.kev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}
.kev-table thead th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eol-text);
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--eol-border);
  background: transparent;
}
.kev-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--eol-border);
  vertical-align: top;
  line-height: 1.45;
  color: var(--text);
}
.kev-table tbody tr:last-child td { border-bottom: none; }
.kev-table .kev-id { white-space: nowrap; width: 10rem; }
.kev-table .kev-id a { color: var(--link); text-decoration: none; }
.kev-table .kev-id a:hover { text-decoration: underline; }
.kev-table .kev-id code { font-weight: 600; }
.kev-table .kev-added {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 7rem;
}
.kev-table .kev-name { color: var(--text); }
.kev-notes-list {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.kev-table .kev-notes {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.kev-table .kev-notes:hover { color: var(--link); }
.kev-table .kev-flags { width: 7rem; }
.kev-flag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.125rem 0.4rem;
  border-radius: 3px;
}
.kev-flag-ransom {
  background: var(--eol-border);
  color: var(--eol-text);
}
.kev-row-ransomware td { background: rgba(220, 38, 38, 0.04); }

.kev-sources {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.kev-sources a { color: var(--text-muted); text-decoration: underline; text-decoration-style: dotted; }
.kev-sources a:hover { color: var(--link); }

.kev-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.kev-stat {
  padding: 1rem 1.125rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
}
.kev-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--eol-text);
  font-family: var(--mono);
  line-height: 1.1;
}
.kev-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.source-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ================================================================
   Error pages
   ================================================================ */

.error-page { max-width: 36rem; margin: 3rem auto; }
.error-page h1 { margin-bottom: 1rem; }
.terminal {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  border-radius: 4px;
}
.hl-error { color: var(--eol-text); font-weight: 700; }
.hl-cmd { color: var(--accent); }
.error-hint { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; }
.error-links { list-style: none; font-size: 0.875rem; }
.error-links li { padding: 0.2rem 0; }

/* ================================================================
   Back to top
   ================================================================ */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 50;
  box-shadow: 0 2px 8px var(--shadow);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
  .home-top { flex-direction: column; gap: 0.75rem; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .header-search { max-width: none; order: 3; flex-basis: 100%; }
  .header-nav { gap: 0.75rem; font-size: 0.75rem; }
  .series-grid { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
  .dropdown-panel { left: 0; right: auto; min-width: 12rem; max-width: 15rem; max-height: 70vh; overflow-y: auto; }
}



/* ================================================================
   EOL Calendar (upcoming feed)
   ================================================================ */

.cal-header { margin-bottom: 1rem; }
.cal-header h1 { margin-bottom: 0.125rem; }

/* ---- Filter bar ---- */
.cal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.75rem;
}
.cal-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.cal-field-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.cal-field-search { flex: 1 1 14rem; min-width: 10rem; }
.cal-field-past .cal-field-label { opacity: 0; pointer-events: none; }

.cal-select,
.cal-input {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.3125rem 0.5rem;
  height: 1.875rem;
  outline: none;
}
.cal-select { min-width: 7.5rem; padding-right: 1.5rem; cursor: pointer; }
.cal-select:focus,
.cal-input:focus { border-color: var(--accent); }
.cal-input { width: 100%; font-family: var(--mono); font-size: 0.8125rem; }
.cal-input::placeholder { color: var(--text-muted); }

/* Segmented type toggle */
.cal-seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 2px;
  height: 1.875rem;
  align-items: stretch;
}
.cal-seg-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.cal-seg-opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.cal-seg-opt:hover { color: var(--text); }
.cal-seg-opt.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px var(--rule);
}
.cal-seg-dot {
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 1.5px;
  flex-shrink: 0;
}
.cal-seg-dot-eos { background: var(--eos-border); }
.cal-seg-dot-eol { background: var(--eol-border); }

.cal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text);
  height: 1.875rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.cal-toggle input { margin: 0; accent-color: var(--accent); }

.cal-apply {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  height: 1.875rem;
  cursor: pointer;
  align-self: flex-end;
  font-family: inherit;
}

/* ---- Summary ---- */
.cal-summary {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.cal-summary strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-dot-sep { color: var(--text-muted); font-weight: 400; }

/* ---- Month sections ---- */
.cal-list { display: flex; flex-direction: column; gap: 1.75rem; }
.cal-month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0 0.5rem;
  border-bottom: 2px solid var(--rule-strong);
  margin-bottom: 0.125rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.cal-month-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.cal-month-year {
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
  letter-spacing: 0.02em;
}
.cal-month-n {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- Rows ---- */
.cal-rows { list-style: none; margin: 0; padding: 0; }
.cal-row { border-bottom: 1px solid var(--rule); }
.cal-row:last-child { border-bottom: 0; }

.cal-row-a {
  display: grid;
  grid-template-columns: 2.75rem 3rem 7rem 1fr;
  align-items: center;
  gap: 0.875rem;
  padding: 0.4375rem 0.125rem 0.4375rem 0.125rem;
  color: var(--text);
  text-decoration: none;
  min-height: 2.25rem;
}
.cal-row-a:hover {
  background: var(--surface-alt);
  text-decoration: none;
  color: var(--text);
}

.cal-day {
  display: flex;
  align-items: baseline;
  gap: 0.3125rem;
  font-family: var(--mono);
  line-height: 1;
  color: var(--text);
}
.cal-day-num { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-day-dow {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-kind {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.125rem 0.4375rem;
  border-radius: 3px;
  border: 1px solid transparent;
  line-height: 1.3;
  min-width: 2.375rem;
}
.cal-kind-eos { background: var(--eos-bg); color: var(--eos-text); border-color: var(--eos-border); }
.cal-kind-eol { background: var(--eol-bg); color: var(--eol-text); border-color: var(--eol-border); }

.cal-vend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-prod {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  min-width: 0;
  overflow: hidden;
}
.cal-prod-n {
  font-size: 0.8125rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.cal-row-a:hover .cal-prod-n { color: var(--accent); }
.cal-prod-s {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Empty states ---- */
.cal-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-secondary);
}
.cal-empty-search {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
}
.linky {
  background: none;
  border: 0;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
.linky:hover { color: var(--link-hover); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .cal-filters { gap: 0.5rem 0.75rem; }
  .cal-select { min-width: 6rem; }
  .cal-row-a {
    grid-template-columns: 2.5rem 2.75rem 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.125rem;
    column-gap: 0.625rem;
    padding: 0.5rem 0.125rem;
    align-items: start;
  }
  .cal-day { grid-row: 1 / span 2; align-self: center; }
  .cal-kind { grid-column: 2; grid-row: 1; align-self: center; }
  .cal-vend {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.75rem;
    align-self: center;
  }
  .cal-prod {
    grid-column: 2 / span 2;
    grid-row: 2;
    flex-wrap: wrap;
    row-gap: 0.125rem;
  }
  .cal-prod-n { flex-basis: 100%; font-size: 0.8125rem; white-space: normal; }
}
