/* 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;
  justify-content: space-between;
}
.footer-inner a { color: var(--text-muted); }

/* ================================================================
   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 .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: 1rem; }
.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 a { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; }
.td-vendor { color: var(--text-muted); font-size: 0.75rem; }

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

.lifecycle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1875rem 0.5rem;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.lifecycle-eol { background: var(--eol-bg); border-color: var(--eol-border); color: var(--eol-text); }
.lifecycle-eos { background: var(--eos-bg); border-color: var(--eos-border); color: var(--eos-text); }
.lifecycle-approaching { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.lifecycle-supported { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }

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

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

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem;
}
.series-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.1s;
}
.series-link:hover { border-color: var(--accent); text-decoration: none; }
.series-link .num {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.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); }

/* ================================================================
   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; }

.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-header h1 { margin-bottom: 0; }
.vendor-header .page-subtitle { margin-bottom: 0; }

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

.product-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.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;
}

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

/* The big lifecycle callout — this is what gets screenshotted for budget emails */
.callout {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border-left: 4px solid;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.callout strong { font-weight: 700; }
.callout-eol { background: var(--eol-bg); border-color: var(--eol-text); color: var(--eol-text); }
.callout-eos { background: var(--eos-bg); border-color: var(--eos-text); color: var(--eos-text); }
.callout-approaching { background: var(--warn-bg); border-color: var(--warn-text); color: var(--warn-text); }
.callout-supported { background: var(--ok-bg); border-color: var(--ok-text); color: var(--ok-text); }
.callout code { font-size: 0.875em; font-weight: 600; }
.callout-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.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); }

.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; }
.prose-summary a { color: var(--link); }
.prose-summary a:hover { color: var(--link-hover); }

.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; }
  .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)); }
}



/* ================================================================
   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; }
}
