.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); box-shadow: 0 1px 8px rgba(0,0,0,.04); backdrop-filter: blur(12px); }
.utility-row { height: 62px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 206px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--primary); color: var(--secondary); font-family: Georgia, serif; font-size: 23px; font-weight: 700; box-shadow: inset 0 -2px 0 rgba(255,255,255,.12); }
.brand-copy { display: grid; gap: 1px; line-height: 1.1; }
.brand-copy strong { font-family: "Playfair Display", Georgia, serif; font-size: 17px; letter-spacing: -.02em; }
.brand-copy em { background: var(--secondary-soft); border-radius: 999px; color: #663500; font-family: "Plus Jakarta Sans", sans-serif; font-size: 8px; font-style: normal; letter-spacing: .06em; padding: 3px 5px; text-transform: uppercase; vertical-align: middle; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.chapter-switcher, .utility-icon { border: 0; background: var(--surface-low); color: var(--ink); }
.chapter-switcher { border-radius: 999px; display: flex; align-items: center; gap: 5px; max-width: 240px; padding: 7px 10px; font-size: 10px; white-space: nowrap; overflow: hidden; }
.chapter-switcher span:not(.material-symbols-outlined) { overflow: hidden; text-overflow: ellipsis; }
.chapter-switcher .material-symbols-outlined { color: var(--secondary); font-size: 14px; }
.global-search { position: relative; flex: 1; max-width: 360px; }
.global-search > span { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: var(--muted); }
.global-search .material-symbols-outlined { font-size: 17px; }
.global-search input { width: 100%; border: 1px solid transparent; border-radius: var(--radius); background: var(--surface-low); outline: 0; padding: 8px 10px 8px 34px; color: var(--ink); font-size: 11px; }
.global-search input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(217,119,6,.12); }
.utility-link { display: flex; align-items: center; gap: 4px; font-size: 10px; white-space: nowrap; }
.utility-link .material-symbols-outlined { color: var(--secondary); font-size: 15px; }
.utility-icon { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.utility-icon .material-symbols-outlined { font-size: 18px; }
.utility-icon b { position: absolute; top: -2px; right: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--secondary); color: #fff; font-size: 8px; line-height: 13px; }
.profile-menu { position: relative; margin-left: auto; }
.profile-menu summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 10px; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary img { width: 31px; height: 31px; border-radius: 50%; object-fit: cover; }
.profile-menu summary span { display: grid; line-height: 1.2; }
.profile-menu summary strong { font-size: 10px; }
.profile-menu summary small { color: var(--muted); font-size: 8px; }
.profile-menu summary > .material-symbols-outlined { font-size: 15px; color: var(--muted); }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 185px; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.profile-dropdown a { display: block; border-radius: 4px; padding: 8px 10px; font-size: 11px; }
.profile-dropdown a:hover { background: var(--surface-low); }
.nav-row { min-height: 57px; display: flex; align-items: stretch; gap: 18px; }
.main-nav { display: flex; align-items: stretch; gap: 2px; }
.main-nav a { display: flex; align-items: center; gap: 5px; position: relative; padding: 0 10px; color: var(--ink); font-size: 11px; line-height: 1.1; }
.main-nav a span:not(.material-symbols-outlined) { max-width: 100px; }
.main-nav a .material-symbols-outlined { display: none; color: var(--secondary); font-size: 15px; }
.main-nav a::after { position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px; content: ""; background: transparent; }
.main-nav a:hover::after, .main-nav a.active::after { background: var(--secondary); }
.announcement { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; align-self: center; background: var(--surface-low); border-radius: 999px; padding: 5px 9px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; }
.announcement strong { color: var(--secondary); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.announcement > span:not(.announcement-dot) { overflow: hidden; text-overflow: ellipsis; }
.announcement-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--secondary); }
.announcement button { margin-left: auto; border: 0; background: transparent; color: var(--muted); padding: 0; }
.announcement button .material-symbols-outlined { font-size: 13px; }
.mobile-menu { display: none; border: 0; background: transparent; padding: 0; }

.button { border: 1px solid transparent; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; font-size: 11px; font-weight: 700; transition: .2s ease; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: #1e293b; box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.button-accent { background: var(--secondary); color: #fff; }
.button-accent:hover { background: #b45309; }
.button-secondary { border-color: var(--primary); background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--surface-low); }
.button-soft { background: var(--surface-low); color: var(--ink); }
.button-sm { padding: 7px 10px; font-size: 10px; }
.text-button { border: 0; background: none; color: var(--secondary); font-size: 11px; font-weight: 700; padding: 4px; }
.text-button:hover { text-decoration: underline; }
.pill, .badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 700; letter-spacing: .03em; line-height: 1.2; }
.badge-dark { background: var(--primary); color: #fff; }
.badge-gold { background: var(--secondary-soft); color: #663500; }
.badge-soft { background: var(--surface-mid); color: var(--ink); }
.badge-outline { border: 1px solid var(--line-strong); color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-lg); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { background: var(--surface-low); border-radius: var(--radius); padding: 16px; }
.metric-card .metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.metric-card .metric-label .material-symbols-outlined { color: var(--secondary); font-size: 18px; }
.metric-card strong { display: block; margin-top: 10px; font-family: "Playfair Display", Georgia, serif; font-size: 27px; line-height: 1; }
.metric-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.field { display: grid; gap: 5px; }
.field label, .auth-modal label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field select, .field textarea, .auth-modal input { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); outline: 0; padding: 10px 11px; font-size: 12px; text-transform: none; }
.field input:focus, .field select:focus, .field textarea:focus, .auth-modal input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.card-pad { padding: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(24px, 3vw, 34px); }
.section-heading p { max-width: 620px; color: var(--muted); font-size: 13px; }
.section-kicker { display: block; margin-bottom: 5px; color: var(--secondary); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; background: rgba(11,28,48,.55); padding: 20px; }
.modal-backdrop.is-open { display: grid; }
.auth-modal { position: relative; width: min(100%, 420px); border: 1px solid rgba(217,119,6,.35); border-radius: 8px; background: var(--surface); box-shadow: 0 20px 45px rgba(15,23,42,.25); padding: 32px; }
.auth-modal h2 { margin-top: 7px; font-size: 31px; }
.auth-modal > p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.auth-modal form { display: grid; gap: 13px; margin-top: 23px; }
.auth-modal label { display: grid; gap: 5px; }
.auth-modal .button { width: 100%; }
.modal-close { position: absolute; top: 11px; right: 11px; border: 0; background: var(--surface-low); border-radius: 50%; padding: 6px; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 8px; margin: 2px 0; color: var(--muted); font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.form-message { min-height: 16px; color: var(--secondary); font-size: 11px; text-align: center; }
.toast { position: fixed; z-index: 60; right: 22px; bottom: 22px; display: none; border-radius: var(--radius); background: var(--primary); color: #fff; padding: 11px 15px; box-shadow: var(--shadow-lg); font-size: 11px; }
.toast.show { display: block; animation: toast-in .2s ease; }
.mobile-only { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 42px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 35px; }
.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 10px; line-height: 1.65; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid h3 { margin-bottom: 4px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand { color: var(--ink) !important; font-family: "Playfair Display", Georgia, serif; font-size: 16px !important; }
.footer-brand span { border-radius: 999px; background: var(--secondary-soft); color: #663500; font-family: "Plus Jakarta Sans", sans-serif; font-size: 8px; padding: 2px 5px; vertical-align: middle; }
.accent-link { display: flex; align-items: center; gap: 4px; color: var(--secondary) !important; font-weight: 700; }
.accent-link .material-symbols-outlined { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font-size: 9px; }

@media (max-width: 1100px) {
  .utility-row { gap: 9px; }
  .brand { min-width: auto; }
  .brand-copy { display: none; }
  .global-search { max-width: none; }
  .utility-link span:not(.material-symbols-outlined), .profile-menu summary span { display: none; }
  .main-nav a { padding-inline: 6px; }
  .main-nav a span:not(.material-symbols-outlined) { max-width: 80px; }
}
@media (max-width: 767px) {
  .utility-row { height: 61px; gap: 7px; }
  .brand-mark { width: 31px; height: 31px; font-size: 21px; }
  .chapter-switcher { max-width: 38px; padding: 7px; }
  .chapter-switcher span:not(.material-symbols-outlined) { display: none; }
  .global-search { flex: 1; }
  .utility-link { display: none; }
  .profile-menu summary > .material-symbols-outlined { display: none; }
  .nav-row { min-height: 49px; gap: 8px; }
  .mobile-menu { display: block; width: 26px; }
  .main-nav { position: absolute; display: none; top: 110px; left: 16px; right: 16px; flex-direction: column; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 39px; padding: 8px 10px; }
  .main-nav a .material-symbols-outlined { display: inline-block; }
  .main-nav a span:not(.material-symbols-outlined) { max-width: none; }
  .announcement { font-size: 8px; }
  .announcement strong { font-size: 8px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .footer-bottom { flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
  .section-heading { display: grid; align-items: start; }
}
