:root {
  color-scheme: light;
  --paper: #f5f3ef;
  --ink: #1c2e46;
  --muted: #596375;
  --line: #dcd6cc;
  --accent: #88633b;
  --dock: #14243b;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0 0 var(--dock-height, 360px); color: var(--ink); background: var(--paper); }
::selection { color: white; background: var(--accent); }
a { color: inherit; text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #88633b; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 12px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 32px 36px 28px; border-bottom: 1px solid var(--line); }
.identity { font-size: 20px; font-weight: 650; }
.identity span { display: block; margin-top: 5px; font-size: 16px; font-weight: 400; color: var(--muted); }
h1 { margin: 0 0 8px; font-size: clamp(34px, 3vw, 50px); line-height: 1.12; font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
h1>a { text-decoration: none; }
.page-title p { margin: 0; color: var(--muted); }
.document-info { display: grid; gap: 8px; font-size: 16px; text-align: right; }
.document-info span { font-weight: 600; }
.reading-guide { padding: 20px 36px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 16px; }
.reading-guide p { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 0; }
.legend li { display: flex; gap: 6px; align-items: center; }
.status { display: inline-block; padding: 2px 5px; margin: 0 2px 0 0; border-radius: 3px; font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .02em; vertical-align: baseline; }
.confirmed { background: #e0eee5; color: #24533c; }.idea { background: #e5eaf6; color: #384e81; }.pending { background: #fbefd6; color: #795015; }.doctolib { background: #e0eff2; color: #235e6e; }
.themes { margin: 0 36px; }
.theme { margin: 0 0 28px; background: #fffefb; border-radius: 12px; overflow: hidden; scroll-margin-bottom: calc(var(--dock-height, 360px) + 24px); }
.theme:target { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-heading { display: flex; align-items: baseline; gap: 14px; padding: 24px 28px; background: #1c2e46; color: #faf7f1; }
.theme-number { flex: 0 0 38px; color: #dfbd8c; font-size: 30px; font-variant-numeric: tabular-nums; }
h2 { font-size: 22px; line-height: 1.45; margin: 0; font-weight: 700; text-wrap: balance; }
h2:has(>span) { display: flex; align-items: center; gap: 6px; }
.editorial-note { margin: 8px 0 0; color: #88633b; font-size: 16px; line-height: 1.6; }
.theme-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; padding: 28px; }
.subtheme { min-width: 0; }
.theme-heading .editorial-note { color: #dfc49f; max-width: 110ch; }
.theme-heading > div { min-width: 0; }
.theme-body > ul { grid-column: 1 / -1; columns: 3; column-gap: 36px; margin-top: 0; }
.theme-body > ul > li { break-inside: avoid; }
h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.5; font-weight: 650; }
.sub-number { color: #88633b; font-size: 14px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.theme-body ul { margin: 12px 0 0; padding-left: 15px; }
.theme-body li { margin: 0 0 8px; padding-left: 3px; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.theme-body li:last-child { margin-bottom: 0; }
.theme-body li::marker { color: #88633b; }
.content-note { margin: 12px 36px 30px; max-width: 100ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.site-map { position: fixed; z-index: 5; bottom: 0; left: 0; width: 100%; color: #f2f3f7; background: var(--dock); box-shadow: 0 -8px 32px rgb(20 36 59 / .16); }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 57px; padding: 10px 28px; }
.map-toolbar:has(button[aria-expanded="true"]) { border-bottom: 1px solid #465065; }
.map-toolbar > div { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.map-toolbar strong { font-size: 17px; font-weight: 600; }
.map-hint { font-size: 14px; color: #c4cbd6; }
.map-toolbar button { display: flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; border: 1px solid #b99b73; background: transparent; color: #f2f3f7; border-radius: 6px; min-height: 36px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 16px; }
.map-toolbar button:hover { background: #283b55; }
.map-toolbar svg { fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 180ms ease-out; }
.map-toolbar button[aria-expanded="false"] svg { transform: rotate(180deg); }
.map-content { max-height: 44vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b99b73 var(--dock); }
.map-content[hidden] { display: none; }
.main-navigation { display: grid; grid-template-columns: .55fr 1.1fr 1.9fr 1.4fr 1.35fr .8fr; gap: 24px; padding: 22px 28px 18px; }
.nav-group { min-width: 0; overflow-wrap: anywhere; }
.nav-heading { display: inline-block; margin-bottom: 12px; color: #dfbd8c; font-size: 18px; font-weight: 650; text-decoration: none; }
.nav-group ul { list-style: none; padding: 0; margin: 0; }
.nav-group li { margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.nav-group li a { text-decoration: none; }
.nav-group a:hover, .other-pages a:hover { color: #dfbd8c; text-decoration: underline; }
.category-label { font-size: 12px; color: #c4cbd6; }
.category-label { display: block; margin-top: 1px; }
.other-pages { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; padding: 14px 28px 18px; background: #0e1b2d; font-size: 14px; }
.other-pages strong { color: #dfbd8c; font-weight: 600; }.other-pages a { text-decoration: none; }
.site-map :focus-visible { outline-color: #dfbd8c; }
@media (min-width: 1800px) { .theme-body { grid-template-columns: repeat(4, minmax(0, 1fr)); }.theme-body > ul { columns: 4; } }
@media (max-width: 1100px) { .theme-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }.theme-body > ul { columns: 2; }.page-header { gap: 24px; }.identity { flex-basis: 160px; }.document-info { display: none; }.main-navigation { grid-template-columns: repeat(3, 1fr); }.map-hint { display: none; } }
@media (max-width: 650px) {
  .page-header { display: block; padding: 24px 18px; }
  .identity { margin-bottom: 24px; }
  .reading-guide { padding: 20px 18px; }
  .themes { margin: 0 18px; }
  .theme-heading { padding: 20px; gap: 12px; }
  h2 { font-size: 20px; }
  .theme-body { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .theme-body > ul { columns: 1; }
  .content-note { margin: 10px 18px 24px; }
  .map-toolbar { padding: 10px 14px; gap: 10px; }
  .map-toolbar strong { font-size: 16px; }
  .map-toolbar button { font-size: 13px; gap: 6px; padding: 8px; }
  .main-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 20px; }
  .other-pages { padding: 16px 18px; }
  .map-content { max-height: 40vh; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; }.map-toolbar svg { transition: none; } }
@media print {
  body { padding-bottom: 0; background: white; }
  .site-map, .skip-link { display: none; }
  .themes { margin: 0; }
  .theme { break-inside: avoid; border-color: #bbb; }
  .theme-heading { background: #eee; color: var(--ink); }
  .theme-heading .editorial-note { color: var(--accent); }
  .theme-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-body > ul { columns: 2; }
  .page-header { padding: 0 0 20px; }
  .reading-guide { padding: 16px 0; }
}
