*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

:root {
  --article-bg: #0f1419;
  --article-surface: #1a222c;
  --article-surface-raised: #232d3a;
  --article-text: #c5cdd6;
  --article-text-strong: #f0f4f8;
  --article-text-muted: #8b97a6;
  --article-link: #4ade80;
  --article-link-hover: #86efac;
  --article-border: rgba(255, 255, 255, 0.08);
  --article-border-strong: rgba(255, 255, 255, 0.12);
  --article-info-border: rgba(96, 165, 250, 0.5);
  --article-info-bg: rgba(96, 165, 250, 0.1);
  --article-info-text: #93c5fd;
  --article-success-border: rgba(74, 222, 128, 0.25);
  --article-success-bg: rgba(74, 222, 128, 0.08);
  --article-warning-border: #f87171;
  --article-warning-bg: rgba(248, 113, 113, 0.12);
  --article-warning-text: #fca5a5;
  --article-warning-strong: #fecaca;
  --article-table-stripe: rgba(255, 255, 255, 0.03);
  --article-focus: var(--article-link);
  --article-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  font-family: var(--article-font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--article-text);
  background: var(--article-bg);
}

a {
  color: var(--article-link);
}

a:hover {
  color: var(--article-link-hover);
}

.site-header {
  border-bottom: 1px solid var(--article-border);
  background: var(--article-surface);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  color: var(--article-text-strong);
  text-decoration: none;
  font-weight: 600;
}

.site-header__brand:hover {
  color: var(--article-text-strong);
}

.article-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.article-breadcrumb {
  margin-bottom: 1rem;
  color: var(--article-text-muted);
  font-size: 0.875rem;
}

.article-page .article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-page .article-breadcrumb li {
  margin: 0;
}

.article-breadcrumb li + li::before {
  margin-right: 0.375rem;
  color: var(--article-text-muted);
  content: '/';
}

.article-breadcrumb [aria-current='page'] {
  color: var(--article-text);
}

.article-page h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--article-text-strong);
}

.article-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--article-text-strong);
}

.article-page h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--article-text-strong);
}

.article-page p {
  margin: 0 0 0.875rem;
}

.article-page ul,
.article-page ol {
  margin: 0 0 0.875rem;
  padding-left: 1.375rem;
}

.article-page li {
  margin-bottom: 0.375rem;
}

.article-page li:last-child {
  margin-bottom: 0;
}

.editorial-note {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--article-info-border);
  background: var(--article-info-bg);
  color: var(--article-info-text);
  font-size: 0.9375rem;
}

.quick-answer {
  margin-bottom: 1.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--article-success-border);
  border-radius: 0.5rem;
  background: var(--article-success-bg);
}

.quick-answer h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.warning {
  margin: 1rem 0;
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--article-warning-border);
  border-radius: 0 0.375rem 0.375rem 0;
  background: var(--article-warning-bg);
  color: var(--article-warning-text);
}

.warning strong {
  color: var(--article-warning-strong);
}

.temperature-chart-wrapper {
  overflow-x: auto;
  margin: 0 0 0.875rem;
}

.temperature-chart-wrapper:focus-visible {
  outline: 3px solid var(--article-focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.temperature-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.temperature-chart th,
.temperature-chart td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--article-border-strong);
  text-align: left;
  vertical-align: top;
}

.temperature-chart th {
  background: var(--article-surface-raised);
  color: var(--article-text-strong);
  font-weight: 600;
}

.temperature-chart tbody tr:nth-child(even) {
  background: var(--article-table-stripe);
}

.faq {
  margin-top: 2rem;
}

.faq h2 {
  margin-top: 0;
}

.internal-links,
.sources {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--article-border);
}

.internal-links h2,
.sources h2 {
  margin-top: 0;
  font-size: 1.125rem;
  color: var(--article-text-muted);
}

.internal-links ul,
.sources ul {
  margin: 0;
  padding-left: 1.25rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 1rem 2rem;
  border-top: 1px solid var(--article-border);
  background: var(--article-surface);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--article-text-muted);
}

.site-footer p {
  margin: 0 0 0.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer__button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--article-link);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.site-footer__button:hover {
  color: var(--article-link-hover);
}

.site-footer__button:focus-visible {
  outline: 2px solid var(--article-focus);
  outline-offset: 3px;
}


@media (prefers-color-scheme: light) {
  :root {
    --article-bg: #f8fafd;
    --article-surface: #ffffff;
    --article-surface-raised: #e2e8f0;
    --article-text: #334155;
    --article-text-strong: #0f1419;
    --article-text-muted: #64748b;
    --article-link: #15803d;
    --article-link-hover: #166534;
    --article-border: rgba(15, 20, 25, 0.08);
    --article-border-strong: rgba(15, 20, 25, 0.12);
    --article-info-border: rgba(37, 99, 235, 0.4);
    --article-info-bg: rgba(37, 99, 235, 0.08);
    --article-info-text: #1d4ed8;
    --article-success-border: rgba(22, 163, 74, 0.3);
    --article-success-bg: rgba(22, 163, 74, 0.06);
    --article-warning-border: #dc2626;
    --article-warning-bg: rgba(220, 38, 38, 0.08);
    --article-warning-text: #991b1b;
    --article-warning-strong: #7f1d1d;
    --article-table-stripe: rgba(15, 20, 25, 0.03);
  }
}
