/* A full-width masthead that shares the reading surface's quiet palette. */
.site-header {
  position: static;
  top: auto;
  max-width: none;
  margin: 0;
  background: radial-gradient(ellipse at 100% 0, rgb(115 153 133 / 10%), transparent 65%),
    linear-gradient(112deg, #152735 0%, #1b3442 55%, #22483f 100%);
  border: 0;
  border-bottom: 1px solid #304b4e;
  border-radius: 0;
  box-shadow: 0 3px 14px rgb(16 35 49 / 6%);
}
.header-inner { min-height: 110px; max-width: 1220px; padding: 26px 48px; gap: 28px; }
.course-home .header-inner { max-width: 1000px; }
.reference-index .header-inner { max-width: 1060px; }
.brand { color: #f7f5ed; font-size: 23px; letter-spacing: -.4px; gap: 15px; }
.brand-mark { flex-shrink: 0; }
.brand small { color: #acbfc1; font-size: 10px; font-weight: 400; letter-spacing: .1em; margin-top: 7px; }
.header-inner nav { gap: 28px; font-size: 15px; }
.header-inner nav a {
  color: #f0f5f2;
  font-weight: 650;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.header-inner nav a:hover { background: transparent; color: #fff; }
.header-inner nav a[aria-current=page] { background: transparent; color: #f5dbaa; }
.header-inner nav a[aria-current=page]::after {
  display: block;
  height: 2px;
  left: 0;
  right: 0;
  bottom: 3px;
  background: #cdb27d;
}
.header-inner .language-switch {
  margin-left: 4px;
  border: 1px solid #ffffff38 !important;
  border-radius: 5px;
  color: #d7e3df !important;
  background: #ffffff04;
  font-size: 12px !important;
  font-weight: 500;
  padding: 6px 11px !important;
  line-height: 1.6;
}
.header-inner .language-switch:hover { border-color: #b9cbc08c !important; background: #ffffff0c !important; }
.site-header a:focus-visible { outline-color: #e1bd82; }
.site-footer { display: block; max-width: 1104px; padding: 24px 0 36px; text-align: center; font-size: 14px; color: #64748b; border-top: 1px solid #e2e8f0; }
.site-footer .footer-brand { color: #3451b2; font-size: 14px; font-weight: 700; }
.course-order-note { margin: 24px 0; padding: 16px 20px; border-left: 3px solid #3451b2; background: #eef2ff; }
.course-order-note p:last-child { margin-bottom: 0; }
.chapter-note { margin: 0; padding: 14px 25px; color: #65717b; border-bottom: 1px solid #e2e6e2; font-size: 13px; }
.entry-content .course-motto {
  margin: 32px 0 14px;
  color: #285e52;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: .025em;
  text-wrap: balance;
}
.entry-content .source-credit { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 760px) {
  .header-inner { min-height: 0; padding: 23px 22px 12px; gap: 20px; flex-wrap: wrap; }
  .brand { font-size: 21px; gap: 12px; }
  .brand-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 8px; }
  .brand-mark > span { font-size: 11px; right: 4px; top: 7px; }
  .brand small { display: block; font-size: 9px; margin-top: 6px; }
  .header-inner nav { width: 100%; gap: 26px; padding-top: 10px; margin: 0; border-top: 1px solid #ffffff1a; }
  .header-inner nav a { font-size: 14px; padding: 8px 0; }
  .header-inner nav a[aria-current=page]::after { left: 0; right: 0; }
  .header-inner .language-switch { margin-left: auto; font-size: 12px !important; }
}
@media (max-width: 360px) {
  .header-inner nav { gap: 20px; }
  .header-inner nav a { font-size: 13px; }
}
@media (max-width: 600px) {
  .site-footer { margin: 0 22px; }
  .chapter-note { padding: 14px 18px; }
}
