
/* OWLOPEDIA Styles — Light, legible, print-friendly */
:root {
  --bg: #ffffff;
  --text: #111;
  --muted: #444;
  --rule: #e5e7eb;
  --accent: #0b66d0;
  --accent-soft: #e9f2ff;
  --toc-bg: #fafafa;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text); background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--rule);
}
.header .wrap {
  max-width: 1200px; margin:0 auto; padding: 14px 20px; display:flex; align-items:center; gap:12px;
}
.brand { font-weight: 800; font-size: 18px; letter-spacing:.2px; }
.brand small { display:block; color: var(--muted); font-weight:600; }
.tools { margin-left:auto; display:flex; gap:8px; align-items:center; }
.tools input[type="search"] { width: 280px; padding:8px 10px; border:1px solid var(--rule); border-radius:8px; }
.tools .btn { border:1px solid var(--rule); border-radius:8px; padding:8px 10px; background:#fff; cursor:pointer; font-weight:700; }
.layout {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 18px; padding: 16px 20px 80px;
}
.toc { position: sticky; top: 64px; align-self: start; background: var(--toc-bg); border:1px solid var(--rule); border-radius:10px; padding: 14px; }
.toc h2 { margin:0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing:.18em; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.toc a { display: block; padding: 4px 6px; border-radius:6px; color: var(--text); }
.toc a:hover { background: var(--accent-soft); }
main article { max-width: 84ch; }
section.doc { margin: 18px 0 28px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule); }
h1 { font-size: 32px; margin:14px 0 8px; }
h2 { font-size: 24px; margin: 18px 0 6px; }
h3 { font-size: 18px; margin: 16px 0 4px; }
h4 { font-size: 16px; margin: 12px 0 2px; }
.kicker { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing:.18em; font-size: 12px; margin-bottom: 4px; }
.meta { color: var(--muted); font-weight: 600; }
.lead { font-size: 18px; }
blockquote { margin: 10px 0; padding: 10px 12px; border-left: 4px solid var(--accent); background: var(--accent-soft); }
hr { border:0; height:1px; background: var(--rule); margin: 20px 0; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.notice { border:1px solid var(--rule); border-radius: 10px; padding: 12px; background: #fffef7; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border:1px solid var(--rule); padding:8px; text-align:left; }
.footer { border-top: 1px solid var(--rule); }
.footer .wrap { max-width:1200px; margin:0 auto; padding: 18px 20px; color: var(--muted); display:flex; justify-content: space-between; gap:12px; }
small.muted { color: var(--muted); }
@media (max-width: 980px){
  .layout { grid-template-columns: 1fr; }
  .toc { position: relative; top: auto; }
  .tools input[type="search"]{ width: 160px; }
}
@media print{
  .header, .toc, .tools, .footer { display:none !important; }
  body { color:#000; background:#fff; }
  a { color:#000; text-decoration:none; }
  section.doc { border:0; margin: 6mm 0; padding:0; }
}
