/* docs-light.css — light theme for standalone document pages
   (privacy.html, connect.html). Loaded after style-dark.css:
   style-dark.css still provides resets, fonts, and nav-bar structure
   (.nav, .nav-brand, .nav-logo, .nav-tagline); this file overrides body
   and defines .doc-container content styling for a light background.

   The nav bar itself stays black on these pages via each page's own
   inline style="background:#000" on the <nav> element -- independent of
   body's background, so no nav-specific rules are needed here. Nav text
   uses --tx (near-white, from the dark palette in base.css), which is
   correct against black regardless of the page body's theme.

   Reuses --ac (not --ac2) for accent/links: --ac2 was designed as a
   lighter blue for text on a DARK background and has poor contrast on
   white; --ac is the more saturated brand blue and reads fine on both. */

body { background: #ffffff; color: #1a1a1a; }

.doc-container { max-width: 800px; margin: 6rem auto 4rem auto; padding: 0 1.5rem; }

.doc-container h1 { font-size: 2rem; margin: 2rem 0 0.5rem 0; color: #1a1a1a; }
.doc-container h1:first-child { margin-top: 0; }
.doc-container h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem 0; color: #1a1a1a; border-bottom: 1px solid #e5e5e8; padding-bottom: 0.5rem; }
.doc-container h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem 0; color: #1a1a1a; }

.doc-container .tag  { color: var(--ac); font-size: 1.05rem; margin: 0 0 1rem 0; font-weight: 500; }
.doc-container .lede { color: #555; margin: 0 0 2.5rem 0; max-width: 60ch; line-height: 1.6; }

.doc-container p  { color: #444; margin: 1rem 0; line-height: 1.6; }
.doc-container p:first-child { margin-top: 0; }
.doc-container p:last-child  { margin-bottom: 0; }
.doc-container .note { color: #888; font-size: 0.88rem; }
.doc-container .last-updated { color: #888; font-size: 0.9rem; }

.doc-container ul, .doc-container ol { margin: 1rem 0; padding-left: 2rem; color: #444; }
.doc-container li { margin: 0.5rem 0; }
.doc-container ul.plain { padding-left: 1.3rem; }
.doc-container ul.plain li { margin: 0.4rem 0; }

.doc-container strong { color: #1a1a1a; font-weight: 600; }
.doc-container a { color: var(--ac); }
.doc-container a:hover { text-decoration: underline; }

.doc-container .tldr-box {
  background: #f5f7fb; border-left: 4px solid var(--ac);
  padding: 1rem 1.25rem; margin: 2rem 0; border-radius: 0 6px 6px 0;
}

.doc-container pre {
  background: #f5f5f7; border: 1px solid #e5e5e8; border-radius: var(--r);
  padding: 14px 16px; overflow-x: auto; margin: 0 0 1rem 0;
}
.doc-container pre code { font-family: var(--font-mono); font-size: 0.85rem; color: #333; line-height: 1.5; }
.doc-container code.inline {
  font-family: var(--font-mono); font-size: 0.85em; color: var(--ac);
  background: rgba(40,120,216,0.08); padding: 1px 6px; border-radius: 4px;
}

.doc-container details {
  background: #f7f7f9; border: 1px solid #e5e5e8; border-radius: var(--r);
  margin: 1.25rem 0; padding: 0;
}
.doc-container details[open] { padding-bottom: 4px; }
.doc-container summary {
  cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 0.92rem; color: #1a1a1a;
  list-style: none; display: flex; align-items: center; gap: 10px;
  border-radius: var(--r); transition: background 0.12s;
}
.doc-container summary:hover { background: #edf2fa; }
.doc-container details[open] summary {
  border-bottom: 1px solid #e5e5e8; border-radius: var(--r) var(--r) 0 0;
}
.doc-container summary::-webkit-details-marker { display: none; }
.doc-container summary::before {
  content: '▸'; color: var(--ac); font-size: 1.8rem; font-weight: bold; line-height: 1;
  flex-shrink: 0; width: 1em; text-align: center; transition: transform 0.15s;
}
.doc-container details[open] summary::before { transform: rotate(90deg); }
.doc-container details .inner { padding: 0 16px 14px 16px; }
.doc-container details pre { margin-bottom: 12px; }
.doc-container details pre:last-child { margin-bottom: 0; }

.doc-container table.limits { width: 100%; border-collapse: collapse; margin: 0 0 1rem 0; font-size: 0.9rem; }
.doc-container table.limits th, .doc-container table.limits td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #ececef; }
.doc-container table.limits th { color: #888; font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }
.doc-container table.limits td { color: #444; }
.doc-container table.limits td:first-child, .doc-container table.limits th:first-child { color: #1a1a1a; }

.doc-container hr { margin: 3rem 0; border: none; border-top: 1px solid #e5e5e8; }
.doc-container .footer-note { text-align: center; color: #888; font-size: 0.9rem; }
