/* Public articles and the expanded navigation, using the existing site palette. */
.content-page { max-width: 880px; margin: 28px auto; padding: 0 var(--gap); overflow-wrap: anywhere; }
.content-page article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); }
.content-page h1 { color: var(--navy); font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.3; margin: 0 0 24px; }
.content-page h2 { color: var(--navy); font-size: 1.25rem; line-height: 1.5; margin-top: 32px; scroll-margin-top: 140px; }
.content-page p, .home-intro p { line-height: 1.9; }
.content-page a, .home-intro a { color: var(--navy); text-underline-offset: 3px; }
.article-toc { background: var(--bg); padding: 16px; border-radius: var(--radius-sm); }
.article-toc strong { display: block; margin-bottom: 8px; }
.article-toc a { display: block; padding: 5px 0; }
.reading-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.reading-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.table-scroll { overflow-x: auto; }
.content-page table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.content-page th, .content-page td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.content-page th { background: var(--bg); }
.site-footer .container { max-width: 880px; }
.site-footer a { display: inline-block; padding: 6px; }
.nav-group { color: #e5ecf6; position: relative; }
.nav-group summary { cursor: pointer; padding: 12px 4px; min-height: 48px; }
.nav-group > div { padding-left: 16px; }
.site-nav { max-height: calc(100dvh - 64px); overflow-y: auto; }
@media (max-width: 899px) {
  .brand-text small { display: none; }
  .lang-switch { padding: 6px 8px; }
  .brand { gap: 6px; }
}
@media (min-width: 900px) {
  .lang-switch { order: 1; }
  .site-header .bar { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 10px; }
  .site-nav, .site-header.open .site-nav { display: flex; flex-basis: 100%; justify-content: space-between; margin: 0; padding: 4px 0 8px; overflow: visible; max-height: none; }
  .site-nav a, .nav-group summary { padding: 9px 12px; min-height: 44px; }
  .nav-group > div { position: absolute; min-width: 240px; right: 0; padding: 8px; background: var(--navy-dark); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
}
