/* Server shell additions. Approved D1–D4 styles remain the visual baseline. */
[hidden] { display: none !important; }
.utility-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav details { border: 0; padding: 0; margin: 0; }
.nav summary { list-style: none; cursor: pointer; font-family: Arial, sans-serif; font-weight: 600; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: none; }
.nav details[open] > summary { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.nav details[open] > summary > span { transform: rotate(180deg); }
.nav details:not([open]) > .menu { display: none; }
.nav details > summary { font-size: inherit; }
.implementation-note { margin: 24px auto; font-size: 14px; color: var(--muted); }
.section .wrap > .d3-links > a, main > .wrap > .d3-links > a { grid-template-columns: minmax(0,1fr) minmax(24px,max-content); }
.hide-images #main img, .hide-images .brand img { display: none; }
.hide-images [data-gallery-photo] { display: none; }
.reading-applied .official-index .index-row { grid-template-columns: minmax(32px,max-content) minmax(0,1fr) minmax(22px,max-content); }
.image-alternative { display: none; }
.hide-images .image-alternative { display: block; }
.home-hero > .image-alternative { width: min(1248px,calc(100% - 128px)); margin: auto; }
[data-reading-scale="100"] { --reading-scale: 1; }
[data-reading-scale="125"] { --reading-scale: 1.25; }
[data-reading-scale="150"] { --reading-scale: 1.5; }
[data-reading-scale="200"] { --reading-scale: 2; }
[data-reading-leading="1.8"] { --reading-leading: 1.8; }
[data-reading-leading="2.2"] { --reading-leading: 2.2; }
[data-reading-spacing="normal"] { --reading-spacing: normal; }
[data-reading-spacing=".12em"] { --reading-spacing: .12em; }
.reading-applied .nav summary { font-size: calc(14px * var(--reading-scale,1)); }
.reading-options label { min-height: 44px; align-items: center; }
.reading-options input[type=radio], .reading-options input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; }
.sitemap-additional { padding-bottom: 32px; }
.sitemap-additional > p { margin: 20px 0; }
.mobile-primary, .official-mobile { display: none; }
@media (max-width:1099px) {
  .official-nav > .official-desktop { display: none; }
  .official-mobile { display: block; margin: 0; border: 0; padding: 0; }
  .official-mobile > summary { list-style: none; cursor: pointer; }
  .official-mobile > summary::-webkit-details-marker { display: none; }
  .official-mobile > summary::after { content: none; }
  .official-mobile[open] > summary > span:last-child { transform: rotate(180deg); }
  .official-mobile[open] > nav { display: block; }
  .header-body { position: relative; }
  .mobile-primary { display: block; margin: 0; padding: 0; border: 0; }
  .mobile-primary > summary { list-style: none; cursor: pointer; }
  .mobile-primary > summary::-webkit-details-marker { display: none; }
  .mobile-primary > summary::after { content: none; }
  .mobile-primary > .nav {
    position: absolute; inset-inline: 0; top: 100%; z-index: 60;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; max-height: calc(100dvh - 170px); overflow-y: auto;
    white-space: normal; padding: 8px 12px 12px;
    background: var(--surface); border: 1px solid var(--line);
  }
  .mobile-primary:not([open]) > .nav { display: none; }
  .mobile-primary[open] .mobile-menu-icon { background: transparent; }
  .mobile-primary[open] .mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
  .mobile-primary[open] .mobile-menu-icon::after { top: 0; transform: rotate(-45deg); }
  .nav details { border-bottom: 1px solid var(--line); }
  .nav details > summary { font-size: 16px; }
  .home-hero > .image-alternative { width: calc(100% - 64px); }
}
@media (max-width:760px) {
  .home-hero > .image-alternative { width: calc(100% - 40px); }
}
@media (max-width:480px) {
  .home-hero > .image-alternative { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Current breadcrumb is readable in the standard and both reading themes. */
.breadcrumb span[aria-current="page"] { color: var(--ink); }

.footer-credit { padding-top: 32px; }
.vimcrew-badge { display: inline-flex; align-items: center; max-width: 100%; }
.vimcrew-badge img { width: 171px; height: 46px; max-width: 100%; }
.vimcrew-text { display: none; overflow-wrap: anywhere; }
.reading-applied .vimcrew-badge img,
.hide-images .vimcrew-badge img { display: none; }
.reading-applied .vimcrew-text,
.hide-images .vimcrew-text { display: inline; text-decoration: underline; }

/* Event titles retain the heading size rather than the small auxiliary-link size. */
.d3-events h2 a { font-size: inherit; }
.information-materials .d3-links > a { grid-template-columns: minmax(0,1fr) minmax(24px,max-content); }
/* Publication state remains legible in both user-selected contrast themes. */
.reading-applied:is([data-reading-theme="white"], [data-reading-theme="black"]) .document-status {
  color: var(--ink);
}

.footer-support { margin-top: 12px; line-height: 1.5; }
.footer-support span { display: block; }
