* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.65 var(--font-body); }
.info-wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.info-header { border-bottom: 1px solid var(--border); }
.info-header-inner, .info-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; }
.info-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 800 19px var(--font-heading); }
.info-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; }
.info-nav a, .info-header .theme-toggle { padding: 6px 9px; border-radius: 8px; color: var(--muted); font: 600 14px var(--font-body); text-decoration: none; }
.info-nav a[aria-current="page"], .info-nav a:hover, .info-header .theme-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.info-header .theme-toggle { background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.info-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; margin-top: 36px; }
.info-hero { margin-block: clamp(20px, 5vw, 52px) 24px; padding: clamp(22px, 5vw, 52px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.info-hero h1 { margin: 0; font: 800 clamp(32px, 6vw, 56px)/1.08 var(--font-heading); letter-spacing: -.04em; }
.info-hero p { max-width: 64ch; margin: 12px 0 0; color: var(--muted); }
.info-hero .updated { color: var(--accent); font-size: 14px; font-weight: 700; }
.info-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.info-card, .info-policy section, .info-toc { border: 1px solid var(--border); border-radius: 16px; padding: clamp(16px, 3vw, 26px); }
.info-card h2, .info-policy h2 { margin: 0 0 8px; font: 800 21px/1.3 var(--font-heading); }
.info-card p, .info-policy section p { margin: 0 0 12px; }
.info-card p, .info-policy section { color: var(--muted); }
.info-policy section h2, .info-policy section h3 { color: var(--text); }
.info-policy section :last-child { margin-bottom: 0; }
.info-card a, .info-policy a, .info-footer a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.info-card .info-button { display: inline-block; padding: 9px 16px; border-radius: 10px; color: var(--on-accent); background: var(--accent); text-decoration: none; font-weight: 750; }
.info-card .info-button:hover { background: var(--accent-hover); }
.info-policy-layout { display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 1fr); gap: 18px; align-items: start; }
.info-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); font-size: 14px; }
.info-toc[hidden] { display: none; }
.info-toc summary { cursor: pointer; font-weight: 800; }
.info-toc ul { margin: 10px 0 0; padding: 0; list-style: none; }
.info-toc a { display: block; padding-block: 3px; color: var(--accent); text-underline-offset: 3px; }
.info-policy section { margin-bottom: 12px; scroll-margin-top: 16px; }
.info-policy ul, .info-policy ol { padding-inline-start: 1.4rem; }
.info-policy .tldr { margin-bottom: 14px; padding: 14px 18px; background: var(--accent-soft); border-radius: 12px; }
.info-skip { position: absolute; top: 0; left: 12px; z-index: 10; transform: translateY(-150%); padding: 6px 12px; background: var(--background); color: var(--text); }
.info-skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 700px) {
  .info-wrap { width: calc(100% - 28px); }
  .info-header-inner { gap: 8px; }
  .info-header-inner .info-nav { order: 1; flex-basis: 100%; }
  .info-policy-layout { grid-template-columns: minmax(0, 1fr); }
  .info-toc { position: static; max-height: none; }
}

/* Shared Book Max-inspired navigation and panels. */
body { background: var(--surface); }
.info-header { background: var(--background); }
.info-header-inner { min-height: 76px; }
.info-nav {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.info-nav a { padding: 8px 12px; border-radius: 20px; }
.info-nav a[aria-current="page"], .info-nav a:hover {
  color: var(--accent);
  background: var(--background);
}
.info-header .theme-toggle {
  min-height: 40px;
  padding-inline: 12px;
  border-radius: 12px;
  background: var(--background);
}
.info-hero, .info-card, .info-policy section, .info-toc {
  background: var(--background);
  border-radius: 22px;
  box-shadow: 0 6px 28px var(--shadow);
}
.info-card .info-button { border-radius: 11px; }
.info-footer { margin-top: 48px; }
@media (max-width: 700px) {
  .info-header-inner { padding-block: 12px; }
  .info-header-inner .info-nav {
    flex-basis: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  .info-nav a { padding-inline: 9px; white-space: nowrap; }
}

@media (max-width: 600px) {
  .info-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .info-header .theme-toggle { min-height: 44px; }
  .info-card .info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    text-align: center;
  }
  .info-toc summary { display: flex; align-items: center; min-height: 44px; }
}
