:root {
  color-scheme: light;
  --navy: #0e2742;
  --navy-2: #173c63;
  --blue: #245b91;
  --blue-soft: #e8f0f8;
  --gold: #d5ad55;
  --gold-soft: #eef4f8;
  --gold-ink: #2f6291;
  --ink: #132436;
  --muted: #5b6c7c;
  --line: #d7e0e8;
  --line-strong: #91a9bf;
  --paper: #f6f8fa;
  --white: #fff;
  --good: #226647;
  --warn: #2f6291;
  --bad: #8e3838;
  --focus: #6ca7dd;
  --top: 82px;
  --ref-navy: var(--navy);
  --ref-blue: var(--blue);
  --ref-blue-soft: var(--blue-soft);
  --ref-gold: var(--gold);
  --ref-gold-soft: var(--gold-soft);
  --ref-gold-ink: var(--gold-ink);
  --ref-ink: var(--ink);
  --ref-muted: var(--muted);
  --ref-line: var(--line);
  --ref-line-strong: var(--line-strong);
  --ref-paper: var(--white);
  --ref-page: var(--paper);
  --ref-good: var(--good);
  --ref-warn: var(--warn);
  --ref-bad: var(--bad);
  --ref-sans: "Roobert", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ref-serif: var(--ref-sans);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--ref-sans); }
button, a, input { font: inherit; }
a { color: var(--blue); }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.studioSkip { position: fixed; z-index: 100; top: 10px; left: 12px; border-radius: 4px; background: var(--white); color: var(--navy); padding: 10px 14px; font-weight: 700; transform: translateY(-160%); }
.studioSkip:focus { transform: none; }

.studioTop {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--top);
  display: grid;
  grid-template-columns: minmax(210px, 245px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid #294663;
  background: #091b2e;
  color: #f4f8fb;
  padding: 10px 22px;
}
.studioBrand { display: grid; grid-template: auto auto / 38px 1fr; column-gap: 10px; color: #f4f8fb; line-height: 1.1; text-decoration: none; }
.studioBrand img { grid-row: 1 / 3; width: 38px; height: 38px; border: 1px solid #8fb0cf; border-radius: 8px; }
.studioBrand b { align-self: end; font-size: 15px; }
.studioBrand small { align-self: start; color: #b9cce0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.studioTop .studioSearchMount { position: relative; min-width: 0; color: var(--ink); }
.studioTop .studioSearchLabel, .studioTop .studioSearchStatus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.studioTop .studioSearchInput { min-height: 44px; border-color: #8aa4bd; background: #fff; color: #132436; }
.studioTop .studioSearchResults { position: absolute; z-index: 40; top: calc(100% + 9px); right: 0; left: 0; max-height: min(68vh, 42rem); border: 1px solid var(--line-strong); border-radius: 5px; background: var(--white); box-shadow: 0 14px 38px rgba(4, 20, 36, .28); padding: 8px 14px; }
.studioTop .studioSearchMount[data-has-query="false"] .studioSearchResults { display: none; }
.studioTop nav { display: flex; align-items: center; gap: 4px; }
.studioTop nav a, .studioTop nav button { min-height: 44px; display: inline-flex; align-items: center; border: 0; border-radius: 4px; background: transparent; color: #ecf3f9; padding: 8px 10px; text-decoration: none; cursor: pointer; }
.studioTop nav a:hover, .studioTop nav button:hover { background: #214b76; }
.studioTop nav a:last-child { margin-left: 4px; border-top: 3px solid var(--gold); background: var(--blue); color: #fff; font-weight: 750; }
.studioTop nav a.studioContactUtility {
  border-radius: 0;
  background: transparent;
  color: #c8d7e5;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #718ca4;
  text-underline-offset: .22em;
}
.studioTop nav a.studioContactUtility:hover { background: transparent; color: #fff; text-decoration-color: var(--blue); }

.studioMobileTools { display: none; }
.studioFeatureNotice { display: block; margin: 0; border-left: 3px solid var(--gold); border-bottom: 1px solid var(--line); background: var(--blue-soft); color: var(--muted); padding: .65rem clamp(1rem, 2vw, 1.75rem); font-size: .9rem; line-height: 1.45; }
.studioFeatureNotice strong { color: var(--ink); }
.studioWorkspace { min-height: calc(100vh - var(--top)); max-width: 1680px; display: grid; grid-template-columns: 270px minmax(0, 1fr) 340px; margin: 0 auto; }
.studioSubjects, .studioSourcesMount { min-width: 0; background: var(--white); padding: 26px 20px; }
.studioSubjects { border-right: 1px solid var(--line); }
.studioSourcesMount { border-left: 1px solid var(--line); }
.studioSourcesMount .studioSourcesPanel { top: calc(var(--top) + 1rem); max-height: calc(100vh - var(--top) - 2rem); border-left: 0; padding-left: 0; }
.studioRailHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.studioRailHead h2 { margin: 2px 0 0; color: var(--navy); font-size: 21px; }
.studioRailHead button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 25px; cursor: pointer; }
.studioLabel { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.studioRailIntro { margin: 12px 0 24px; color: var(--muted); font-size: 13px; }
.studioFamily { border-top: 1px solid var(--line); }
.studioFamily:last-child { border-bottom: 1px solid var(--line); }
.studioFamily summary { min-height: 48px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 3px; color: var(--navy); cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; }
.studioFamily summary::-webkit-details-marker { display: none; }
.studioFamily summary span { color: #5f7488; font-size: 11px; }
.studioFamily summary::after { content: "+"; }
.studioFamily[open] summary::after { content: "−"; }
.studioFamily ul { margin: 0 0 14px; padding: 0; list-style: none; }
.studioFamily a { display: block; margin-left: 28px; border-left: 3px solid transparent; border-radius: 0 5px 5px 0; color: #34495d; padding: 10px 11px; font-size: 13px; line-height: 1.35; text-decoration: none; }
.studioFamily a:hover { background: var(--paper); }
.studioFamily a[aria-current="page"] { border-left-color: var(--gold); background: var(--blue-soft); color: var(--navy); font-weight: 750; }

.studioReader { min-width: 0; background: var(--paper); padding: clamp(28px, 4vw, 58px) clamp(24px, 5vw, 70px) 80px; }
.studioTopic { max-width: 900px; margin: 0 auto; }
.studioNoScript { max-width: 900px; margin: 0 auto 28px; border: 1px solid var(--line); border-left: 3px solid var(--cw-accent-edge, #c69a48); background: var(--blue-soft); color: var(--navy); padding: 15px 18px; }
.studioNoScriptSources h2 { margin-top: 0; color: var(--navy); }
.studioNoScriptSources ul { padding-left: 1.2rem; }
.studioNoScriptSources li { margin-block: .7rem; }
.studioNoScriptSources small { display: block; overflow-wrap: anywhere; color: var(--muted); }
.studioNoScriptSources a { overflow-wrap: anywhere; }
.studioScrim { display: none; }

@media (max-width: 1049px) {
  :root { --top: 74px; }
  .studioTop { grid-template-columns: minmax(180px, 220px) minmax(250px, 1fr) auto; gap: 14px; padding-inline: 16px; }
  .studioTop nav a:last-child, .studioTop nav button { display: none; }
  .studioTop nav a.studioContactUtility { display: inline-flex; }
  .studioTop nav a { font-size: 13px; }
  .studioMobileTools { position: sticky; z-index: 20; top: var(--top); min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 7px 18px rgba(14, 39, 66, .08); padding: 7px 12px; }
  .studioMobileTools button { min-height: 44px; border: 1px solid #aab9c7; border-radius: 5px; background: var(--white); color: var(--navy); padding: 7px 11px; font-weight: 750; cursor: pointer; }
  .studioMobileTools span { overflow: hidden; color: var(--navy); font-size: 13px; font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .studioWorkspace { min-height: calc(100vh - var(--top) - 58px); display: block; }
  .studioReader { padding-top: 40px; }
  .studioSubjects { border: 0; border-bottom: 1px solid var(--line); }
  .studioSourcesMount { border: 0; padding: 0; }
  .studioEnhanced .studioSubjects { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); overflow: auto; box-shadow: 0 0 32px rgba(4, 20, 36, .3); transform: translateX(-110%); transition: transform .22s ease; }
  .studioEnhanced .studioSubjects.isOpen { transform: none; }
  .studioEnhanced .studioRailHead button { display: grid; place-items: center; }
  .studioSourcesMount .studioSourcesPanel { top: 0; max-height: none; padding: 1rem; }
  .studioScrim { position: fixed; z-index: 70; inset: 0; display: block; border: 0; background: rgba(4, 20, 36, .58); cursor: pointer; }
  .studioDrawerOpen { overflow: hidden; }
}

@media (max-width: 760px) {
  :root { --top: 116px; }
  .studioTop { min-height: var(--top); grid-template-columns: 1fr; gap: 8px; padding: 8px 12px 10px; }
  .studioBrand { width: max-content; }
  .studioTop nav { position: absolute; top: 9px; right: 12px; display: flex; }
  .studioTop nav > :not(.studioContactUtility) { display: none; }
  .studioTop nav a.studioContactUtility { min-height: 38px; padding: 6px 4px; }
  .studioMobileTools { gap: 6px; padding-inline: 8px; }
  .studioMobileTools button { padding-inline: 9px; font-size: 12px; }
  .studioReader { padding: 30px 18px 60px; }
  .studioSubjects { width: min(92vw, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .studioEnhanced .studioSubjects { transition: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --navy: #edf3f8;
    --navy-2: #153c63;
    --blue: #9bc8ef;
    --blue-soft: #244966;
    --gold: #e1ba63;
    --gold-soft: #244966;
    --gold-ink: #a8c9e6;
    --ink: #edf3f8;
    --muted: #b6c5d2;
    --line: #49657c;
    --line-strong: #7892a8;
    --paper: #10283d;
    --white: #17334b;
    --good: #79c79f;
    --warn: #a8c9e6;
    --bad: #eea2a2;
    --focus: #9bc8ef;
  }
  .studioFamily summary span { color: #b7c7d4; }
  .studioFamily a { color: #d0dce6; }
  .studioTop .studioSearchResults { color: var(--ink); }
  .studioNoScript { border-color: #7d9ab2; border-top-color: var(--cw-accent-edge, #c69a48); background: #203a56; color: var(--cw-accent-text-on-dark, #a8c9e6); }
}

@media print {
  @page { size: Letter; margin: .55in; }
  :root { color-scheme: light; }
  .studioTop, .studioMobileTools, .studioSubjects, .studioSourcesMount, .studioScrim { display: none !important; }
  body, .studioWorkspace, .studioReader { display: block; background: #fff; color: #000; }
  .studioReader { padding: 0; }
  .studioTopic[hidden] { display: block !important; break-before: page; }
  .studioTopic:first-of-type { break-before: auto; }
}
