/* LLM Knowledge Cutoff Dates - v2 stylesheet */
:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface2: #eef1f4;
  --surface3: #fafafa;
  --border: #d9dde3;
  --border-strong: #aeb6c0;
  --text: #1e252c;
  --text-dim: #5d6875;
  --text-muted: #7d8792;
  --accent: #0f766e;
  --accent-strong: #0b5d55;
  --accent-soft: #e4f3ef;
  --green: #166534;
  --green-bg: #e7f5ec;
  --yellow: #7a5a00;
  --yellow-bg: #fff4c2;
  --orange: #9a3412;
  --orange-bg: #ffe7da;
  --gray: #58616d;
  --gray-bg: #edf0f3;
  --blue: #1d4ed8;
  --blue-bg: #e5edff;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(31, 41, 55, 0.08);
  --max-width: 1180px;
  --header-bg: rgba(255, 255, 255, 0.94);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111315;
  --surface: #181b1e;
  --surface2: #202428;
  --surface3: #141618;
  --border: #2d3339;
  --border-strong: #4a535d;
  --text: #e8e4dd;
  --text-dim: #aaa49a;
  --text-muted: #7f7a72;
  --accent: #68c7b6;
  --accent-strong: #91ddcf;
  --accent-soft: rgba(104, 199, 182, 0.13);
  --green: #86efac;
  --green-bg: rgba(34, 197, 94, 0.13);
  --yellow: #facc15;
  --yellow-bg: rgba(250, 204, 21, 0.12);
  --orange: #fb923c;
  --orange-bg: rgba(249, 115, 22, 0.13);
  --gray: #b7bec7;
  --gray-bg: rgba(148, 163, 184, 0.13);
  --blue: #93c5fd;
  --blue-bg: rgba(59, 130, 246, 0.13);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  --header-bg: rgba(24, 27, 30, 0.92);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0;
  transition: background 0.2s, color 0.2s;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 0.82em;
  padding: 0.14rem 0.36rem;
}

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem 4rem; }

/* Header */
.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(max-content, 1fr) minmax(280px, 520px) auto;
  padding: 0.72rem max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem));
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo { min-width: 0; }
.site-header .logo a {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.62rem;
  white-space: nowrap;
}
.site-header .logo-mark {
  display: block;
  flex: 0 0 auto;
  height: 1.75rem;
  width: 1.75rem;
}
.site-header .logo a:hover { color: var(--accent); text-decoration: none; }
.site-header .search { min-width: 0; position: relative; }
.site-header .search input {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.92rem;
  height: 2.45rem;
  padding: 0 0.92rem 0 2.18rem;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.site-header .search input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.site-header .search::before {
  color: var(--text-muted);
  content: "⌕";
  font-size: 1rem;
  left: 0.78rem;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-52%);
}
.site-header .theme-btn {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  height: 2.45rem;
  min-width: 4.6rem;
  padding: 0 0.85rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.site-header .theme-btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Search results dropdown */
.search-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  left: 0;
  margin-top: 0.4rem;
  max-height: 420px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 200;
}
.search-results.show { display: block; }
.search-result-item {
  color: var(--text);
  display: grid;
  gap: 0.12rem 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.72rem 0.85rem;
}
.search-result-item + .search-result-item { border-top: 1px solid var(--border); }
.search-result-item:hover { background: var(--surface3); text-decoration: none; }
.search-result-item .sr-model { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item .sr-provider { color: var(--text-dim); font-size: 0.78rem; grid-column: 1; }
.search-result-item .sr-cutoff { color: var(--accent); font-size: 0.82rem; font-weight: 700; grid-column: 2; grid-row: 1 / span 2; }

/* Breadcrumb */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 1rem 0 0.85rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.42rem; opacity: 0.7; }

/* Hero */
.hero {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  padding: 0.95rem 0 0.9rem;
  text-align: left;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.72rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0.35rem;
  max-width: none;
}
.hero h1 .gradient-text {
  background: none;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
}
.hero .tagline {
  color: var(--text-dim);
  font-size: clamp(0.9rem, 1.25vw, 0.98rem);
  line-height: 1.42;
  max-width: 650px;
}
.hero .stats {
  align-self: center;
  background: transparent;
  border: 0;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}
.hero .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 3.15rem;
  padding: 0.42rem 0.56rem;
}
.hero .stat .num {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}
.hero .stat .label {
  color: var(--text-muted);
  font-size: 0.61rem;
  margin-top: 0.08rem;
  text-transform: uppercase;
}

/* Section heading */
.section-h {
  align-items: center;
  display: flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: space-between;
  margin: 2.2rem 0 0.9rem;
}
.section-h::after {
  background: var(--border);
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 1rem;
}

/* Provider grid (landing page) */
.provider-grid {
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  margin-bottom: 2rem;
  overflow: hidden;
}
.provider-card {
  background: var(--surface);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  min-height: 7.35rem;
  padding: 1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.provider-card:hover {
  background: var(--surface3);
  color: var(--text);
  text-decoration: none;
}
.provider-card .pc-header { display: flex; justify-content: space-between; align-items: flex-start; }
.provider-card .pc-name { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.provider-card .pc-tagline { color: var(--text-dim); font-size: 0.82rem; line-height: 1.35; }
.provider-card .pc-meta {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.62rem;
}
.provider-card .pc-badge { display: inline-block; font-weight: 600; }
.pc-badge.region { color: var(--accent); }
.pc-badge.count { color: var(--text-muted); }

/* Provider page */
.provider-hero {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  padding: 2.15rem 0 1.25rem;
}
.provider-hero h1 {
  font-size: clamp(2rem, 5vw, 3.55rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}
.provider-hero .tagline { color: var(--text-dim); font-size: 1rem; }
.provider-hero .products { display: flex; gap: 0.42rem; flex-wrap: wrap; margin-top: 0.15rem; }
.provider-hero .product-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  padding: 0.22rem 0.55rem;
}
.provider-meta {
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 0.7rem 1.2rem;
  padding: 0.9rem 0;
}
.provider-meta a { color: var(--accent); font-weight: 600; }

/* Model table */
.table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
table { border-collapse: collapse; font-size: 0.88rem; min-width: 1040px; width: 100%; }
th {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.68rem 0.9rem;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid var(--border);
  padding: 0.68rem 0.9rem;
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface3); }
td.model-name { font-weight: 700; min-width: 13rem; white-space: nowrap; }
td:nth-child(2) code { white-space: nowrap; }
th:nth-child(3), td:nth-child(3) { white-space: nowrap; }
td.cutoff { color: var(--accent); font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
td.notes { color: var(--text-dim); font-size: 0.81rem; max-width: 340px; }
.badge {
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.38rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.high, .badge.active { background: var(--green-bg); color: var(--green); }
.badge.medium { background: var(--yellow-bg); color: var(--yellow); }
.badge.low { background: var(--orange-bg); color: var(--orange); }
.badge.deprecated { background: var(--gray-bg); color: var(--gray); }
.badge.preview { background: var(--blue-bg); color: var(--blue); }

/* Disclaimer */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
}
.disclaimer strong { color: var(--text); }

/* Ad slots */
.ad-slot {
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  display: none;
  font-size: 0.72rem;
  justify-content: center;
  margin: 1.1rem auto;
  padding: 0.5rem;
  text-align: center;
}
.ad-slot.is-filled { display: flex; }
.ad-slot:has(iframe),
.ad-slot:has(ins),
.ad-slot:has(.adsbygoogle) { display: flex; }
.ad-slot .ad-label { display: block; opacity: 0.65; text-transform: uppercase; }
.ad-banner-top { max-width: var(--max-width); }
.ad-banner-top .ad-inner { min-height: 3rem; width: 100%; }
.ad-inline { max-width: 728px; }
.ad-inline .ad-inner { min-height: 4.8rem; width: 100%; }
.ad-sidebar { display: none; }
.ad-sticky { display: none; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  margin: 2rem auto 0;
  max-width: var(--max-width);
  padding: 1.8rem 1.25rem 2.4rem;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* Alias notice */
.alias-notice {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  box-shadow: inset 3px 0 0 var(--accent);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.84rem;
  margin: 1rem 0 0;
  padding: 0.78rem 0.9rem;
}
.alias-notice strong { color: var(--text); }

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-header .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 0.92rem;
  }
  .hero .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .site-header { padding: 0.65rem 1rem; }
  .site-header .logo a { font-size: 0.9rem; }
  .site-header .theme-btn { min-width: 4.1rem; padding: 0 0.6rem; }
  .hero { gap: 0.72rem; padding: 0.7rem 0 0.78rem; }
  .hero h1 { font-size: clamp(1.55rem, 8.8vw, 2.05rem); margin-bottom: 0.32rem; }
  .hero .tagline { font-size: 0.88rem; line-height: 1.36; }
  .hero .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
  .hero .stat { min-height: 2.82rem; padding: 0.4rem 0.42rem; }
  .hero .stat .num { font-size: 0.98rem; }
  .hero .stat .label { font-size: 0.54rem; }
  .provider-grid { grid-template-columns: 1fr; }
  .provider-meta { align-items: flex-start; flex-direction: column; }
  th, td { font-size: 0.78rem; padding: 0.56rem 0.62rem; }
  footer { display: block; padding-left: 1rem; padding-right: 1rem; }
  footer p + p { margin-top: 0.55rem; }
}
