/* content.css — typography for the static content pages (guide, about,
   contact, privacy, thematic SEO pages). Reuses style.css's CSS custom
   properties so a future colour-scheme tweak propagates automatically. */

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  line-height: 1.65;
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
}

.content .breadcrumb {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.content .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.content .breadcrumb a:hover {
  text-decoration: underline;
}

.content header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.content header img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.content h1 {
  font-size: 30px;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.content .lede {
  color: var(--fg-muted);
  font-size: 17px;
  margin: 0 0 32px;
}

.content h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.content h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--fg);
}

.content p,
.content li {
  color: var(--fg);
}

.content ul,
.content ol {
  padding-left: 22px;
}

.content li {
  margin-bottom: 8px;
}

.content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content code {
  background: rgba(10, 37, 64, 0.06);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.content .note {
  background: rgba(46, 204, 113, 0.08);
  border-left: 3px solid var(--reg);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 18px 0;
  font-size: 14px;
}

.content .warning {
  background: rgba(243, 156, 18, 0.1);
  border-left: 3px solid var(--super);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 18px 0;
  font-size: 14px;
}

.content .toc {
  background: rgba(10, 37, 64, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 32px;
}

.content .toc h2 {
  margin: 0 0 10px;
  border: none;
  padding: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--fg-muted);
}

.content .toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
}

.content .toc li {
  margin-bottom: 4px;
}

.content table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
  font-size: 14px;
}

.content th,
.content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.content th {
  background: rgba(10, 37, 64, 0.04);
  font-weight: 600;
}

.content footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
  text-align: center;
}

.content footer a {
  color: var(--fg-muted);
  text-decoration: none;
  margin: 0 8px;
}

.content footer a:hover {
  color: var(--accent);
}

/* ── Dark theme overrides ────────────────────────────────────────────────
   The shared --accent is a navy used for the topbar background — it works
   as a bold colour on a light page but becomes near-invisible on a dark
   one. We override the content-page accents to a lighter shade just for
   text/headings/links, leaving the rest of the app untouched. */
[data-theme='dark'] .content {
  background: var(--bg);
  color: #e6ebf2;
}
[data-theme='dark'] .content p,
[data-theme='dark'] .content li {
  color: #d6dde6;
}
[data-theme='dark'] .content h1 {
  color: #ffffff;
}
[data-theme='dark'] .content h2 {
  color: #6db4ff; /* WCAG AA on #0f1419 */
  border-top-color: #2a3340;
}
[data-theme='dark'] .content h3 {
  color: #f0f3f8;
}
[data-theme='dark'] .content .lede {
  color: #a8b3c2;
}
[data-theme='dark'] .content a {
  color: #79c1ff; /* link colour — brighter than #6db4ff to stand apart from h2 */
}
[data-theme='dark'] .content a:hover {
  color: #a8d6ff;
}
[data-theme='dark'] .content .breadcrumb {
  color: #a8b3c2;
}
[data-theme='dark'] .content .breadcrumb a {
  color: #79c1ff;
}
[data-theme='dark'] .content code {
  background: rgba(255, 255, 255, 0.07);
  border-color: #2a3340;
  color: #f0f3f8;
}
[data-theme='dark'] .content .toc {
  background: rgba(255, 255, 255, 0.04);
  border-color: #2a3340;
}
[data-theme='dark'] .content .toc h2 {
  color: #a8b3c2;
}
[data-theme='dark'] .content .toc a {
  color: #9ad0ff; /* slightly brighter inside the toc panel for readability */
}
[data-theme='dark'] .content .toc a:hover {
  color: #c5e3ff;
}
[data-theme='dark'] .content .note {
  background: rgba(46, 204, 113, 0.12);
}
[data-theme='dark'] .content .warning {
  background: rgba(243, 156, 18, 0.16);
}
[data-theme='dark'] .content table {
  border-color: #2a3340;
}
[data-theme='dark'] .content th,
[data-theme='dark'] .content td {
  border-color: #2a3340;
}
[data-theme='dark'] .content th {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
[data-theme='dark'] .content footer {
  border-top-color: #2a3340;
  color: #8a96a8;
}
[data-theme='dark'] .content footer a {
  color: #a8b3c2;
}
[data-theme='dark'] .content footer a:hover {
  color: #79c1ff;
}
