/* Winter Guide - Zero-bloat Situational Guide Stylesheet */
:root {
  --wg-primary: #0b4f8a;
  --wg-primary-dark: #07355e;
  --wg-bg: #f8fafc;
  --wg-surface: #ffffff;
  --wg-text: #0f172a;
  --wg-muted: #475569;
  --wg-border: #cbd5e1;
  --wg-accent: #0284c7;
  --wg-danger-bg: #fef2f2;
  --wg-danger-border: #dc2626;
  --wg-warning-bg: #fffbeb;
  --wg-warning-border: #d97706;
  --wg-info-bg: #f0f9ff;
  --wg-info-border: #0284c7;
  --wg-tip-bg: #f0fdf4;
  --wg-tip-border: #16a34a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--wg-bg);
  color: var(--wg-text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--wg-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--wg-primary-dark); }
.wg-header {
  background: var(--wg-primary);
  color: #ffffff;
  border-bottom: 3px solid var(--wg-primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.wg-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wg-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.wg-brand:hover { color: #e0f2fe; }
.wg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.wg-tabs a {
  color: #e0f2fe;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
}
.wg-tabs a:hover, .wg-tabs a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.wg-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 220px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .wg-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .wg-toc { display: none; }
}
@media (max-width: 768px) {
  .wg-layout { grid-template-columns: 1fr; }
}
.wg-sidebar, .wg-toc {
  background: var(--wg-surface);
  border: 1px solid var(--wg-border);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
}
.wg-sidebar h3, .wg-toc h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wg-muted);
}
.wg-nav-group { margin-bottom: 0.9rem; }
.wg-nav-group__title {
  font-weight: 700;
  color: var(--wg-text);
  display: block;
  margin-bottom: 0.25rem;
}
.wg-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.5rem;
  border-left: 2px solid #e2e8f0;
}
.wg-nav-list li { margin: 0.25rem 0; }
.wg-nav-list a { text-decoration: none; color: var(--wg-muted); display: block; }
.wg-nav-list a:hover, .wg-nav-list a.active {
  color: var(--wg-primary);
  font-weight: 700;
}
.wg-article {
  background: var(--wg-surface);
  border: 1px solid var(--wg-border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
@media (max-width: 640px) {
  .wg-article { padding: 1.25rem 1rem; }
}
.wg-breadcrumbs {
  font-size: 0.85rem;
  color: var(--wg-muted);
  margin-bottom: 0.75rem;
}
.wg-article h1 {
  margin-top: 0;
  font-size: 2rem;
  line-height: 1.2;
  color: #0f172a;
}
.wg-article h2 {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1.38rem;
}
.wg-lead {
  font-size: 1.12rem;
  color: #1e293b;
  font-weight: 500;
}
.wg-now {
  background: #fff7ed;
  border: 2px solid #ea580c;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.wg-now strong { color: #9a3412; }
.wg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.wg-card {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--wg-border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--wg-text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.wg-card:hover {
  border-color: var(--wg-primary);
  transform: translateY(-1px);
}
.wg-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--wg-primary);
  margin-bottom: 0.35rem;
}
.admonition {
  border-left: 5px solid var(--wg-info-border);
  background: var(--wg-info-bg);
  padding: 0.9rem 1.15rem;
  border-radius: 6px;
  margin: 1.25rem 0;
}
.admonition.danger {
  border-left-color: var(--wg-danger-border);
  background: var(--wg-danger-bg);
}
.admonition.warning {
  border-left-color: var(--wg-warning-border);
  background: var(--wg-warning-bg);
}
.admonition.tip {
  border-left-color: var(--wg-tip-border);
  background: var(--wg-tip-bg);
}
.admonition-title {
  font-weight: 800;
  margin: 0 0 0.35rem;
}
.task-list {
  list-style: none;
  padding-left: 0;
}
.task-list-item {
  margin: 0.5rem 0;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.task-list-control {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}
.task-list-control input[type="checkbox"] {
  margin-top: 0.28rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--wg-primary);
}
.wg-btn {
  background: var(--wg-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.wg-btn--secondary {
  background: #e2e8f0;
  color: #0f172a;
}
.wg-calc {
  background: #f0f9ff;
  border: 2px solid #0284c7;
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1.25rem 0;
}
.wg-calc__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.wg-calc label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}
.wg-calc select, .wg-calc input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  font-size: 0.95rem;
}
.wg-calc__output {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 0.75rem;
}
.wg-finder {
  background: #f1f5f9;
  border: 1px solid var(--wg-border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}
.wg-finder input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  margin-top: 0.35rem;
}
.wg-finder__results {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.wg-finder__results li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.wg-gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}
.wg-gear-card {
  border: 1px solid var(--wg-border);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fafafa;
}
.wg-ad-slot {
  margin: 1.75rem 0;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--wg-muted);
}
.wg-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem 1.25rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.wg-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.wg-footer a { color: #7dd3fc; }
.wg-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wg-border);
}
.wg-expr-link {
  color: var(--wg-primary);
  text-decoration: underline dotted var(--wg-accent);
  text-underline-offset: 3px;
  font-weight: 500;
}
.wg-expr-link:hover {
  text-decoration-style: solid;
  background: #f0f9ff;
}
.wg-expr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--wg-border);
  border-radius: 8px;
}
.wg-expr-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  text-decoration: none;
  color: var(--wg-primary);
}
.wg-expr-pill:hover {
  border-color: var(--wg-primary);
  background: #e0f2fe;
}
.wg-az-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}
.wg-az-bar a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: #f1f5f9;
  border: 1px solid var(--wg-border);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.wg-faq-item {
  margin: 0.85rem 0;
  padding: 0.9rem 1.1rem;
  background: #f8fafc;
  border-left: 4px solid var(--wg-primary);
  border-radius: 6px;
}
.wg-faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.wg-faq-item p {
  margin: 0;
}
@media print {
  .wg-header, .wg-sidebar, .wg-toc, .wg-ad-slot, .wg-footer, .wg-btn { display: none !important; }
  .wg-layout { display: block; padding: 0; }
  .wg-article { border: none; padding: 0; }
}
