/* Shared site chrome: header, footer, theme toggle, base variables */
/* Palette: Pokémon Sleep logo + sleep-style art (dozing / snoozing / slumbering) */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#ECF4FB;
  --bg-card:#fff;
  --text:#1e3a5f;
  --muted:#4a5f7f;
  --link:#1d5bb8;
  --link-hover:#0d3d8c;
  --accent:#FEE161;
  --accent-text:#1e3a5f;
  --border:rgba(30,58,95,.12);
  /* Sleep-style label colors (dozing / snoozing / slumbering) */
  --sleep-dozing:#FEE161;
  --sleep-snoozing:#7BDDDE;
  --sleep-slumbering:#4A90E2;
  --sleep-bubble-dozing:#FFF9EB;
  --sleep-bubble-snoozing:#E0F7F9;
  --sleep-bubble-slumbering:#ECF4FB;
}
html[data-theme="dark"]{
  --bg:#0f172a;
  --bg-card:#1e3a5f;
  --text:#e0e8f4;
  --muted:#94a3b8;
  --link:#7dd3fc;
  --link-hover:#bae6fd;
  --accent:#FEE73E;
  --accent-text:#1e3a5f;
  --border:rgba(148,163,184,.2);
  --sleep-dozing:#FEE73E;
  --sleep-snoozing:#7BDDDE;
  --sleep-slumbering:#4A90E2;
  --sleep-bubble-dozing:rgba(255,249,235,.15);
  --sleep-bubble-snoozing:rgba(224,247,249,.15);
  --sleep-bubble-slumbering:rgba(74,144,226,.15);
}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;line-height:1.6;transition:background .2s,color .2s}

/* Beta notice: visible on all pages that use site chrome */
.site-beta-banner{text-align:center;padding:.4rem 1rem;font-size:.8rem;background:var(--accent);color:var(--accent-text);border-bottom:1px solid var(--border)}
.site-beta-banner a{color:var(--accent-text);text-decoration:underline}
.site-beta-banner a:hover{opacity:.9}

/* Ensure links are always readable: sufficient contrast on bg and bg-card */
a[href]{color:var(--link);text-decoration:none}
a[href]:hover{color:var(--link-hover);text-decoration:underline}
a[href]:focus-visible{outline:2px solid var(--link);outline-offset:2px}

.site-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border);max-width:1200px;margin:0 auto;min-height:56px}
.site-logo{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--text);font-weight:700;font-size:1.1rem}
.site-logo:hover{color:var(--link)}
.site-logo img{width:32px;height:32px;border-radius:50%;border:2px solid var(--accent)}
.site-nav{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.site-nav a{color:var(--muted);text-decoration:none;font-size:.9rem}
.site-nav a:hover{color:var(--link)}
.site-nav a.active{color:var(--link)}
@media (max-width: 900px) {
  .site-nav a{padding:.5rem .4rem;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
}
.theme-toggle{background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.35rem .5rem;cursor:pointer;font-size:1rem;line-height:1;transition:.2s}
.theme-toggle:hover{opacity:.9;border-color:var(--link)}

.site-footer{max-width:1200px;margin:0 auto;padding:1.5rem 1.5rem 2rem;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;font-size:.8rem;color:var(--muted)}
.site-footer a{color:var(--link);text-decoration:none}
.site-footer a:hover{text-decoration:underline}

/* Article content summary (table of contents) */
.article-summary{margin:1rem 0 1.5rem;padding:1rem 1.25rem;background:var(--bg-card);border:1px solid var(--border);border-radius:8px}
.article-summary__title{font-size:.9rem;font-weight:600;color:var(--text);margin:0 0 .5rem}
.article-summary ul{list-style:none;margin:0;padding:0}
.article-summary li{margin-bottom:.35rem}
.article-summary a{color:var(--link);text-decoration:none;font-size:.9rem}
.article-summary a:hover{text-decoration:underline}

/* Breadcrumb navigation */
.breadcrumb{font-size:.9rem;margin-bottom:1rem;color:var(--muted)}
.breadcrumb a{color:var(--link);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{color:var(--muted);margin:0 .35rem;font-weight:400}
