/* One shared Paladin theme, layout, and component system for all pages. */
:root {
  color-scheme: dark;
  --bg: #0d151e;
  --panel: #192633;
  --text: #f4e9e4;
  --muted: #bdc8d2;
  --gold: #f0c777;
  --pink: #f09ec8;
  --line: #374b5c;
  --radius: 8px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { padding-bottom: 32px; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 var(--sans); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 4% 0%, #315f8552, transparent 55%), radial-gradient(ellipse at 100% 3%, #c4995030, transparent 45%), linear-gradient(125deg, transparent 40%, #d0ac6907 50%, transparent 65%), repeating-linear-gradient(105deg, #7d9bb506 0 1px, transparent 1px 5px); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #f09ec8; outline-offset: 4px; border-radius: 3px; }
::selection { background: #85476b; color: #fff1e4; }
.site-shell { max-width: 1240px; padding: 28px 44px 0; margin: auto; }
.site-header { position: relative; isolation: isolate; overflow: hidden; color: #fff0d1; border: 1px solid #b78c4d; border-radius: 10px; background: radial-gradient(ellipse at 88% 0%, #bf9a5438, transparent 58%), linear-gradient(115deg, #102131, #1c3345 65%, #293c48); box-shadow: 0 7px 25px #030a1255, inset 0 0 0 4px #e8ba6d0d; }
.site-header::after { content: ''; position: absolute; inset: 8px; border: 1px solid #e8c88f29; border-radius: 5px; pointer-events: none; z-index: -1; }
.header-emblem { position: absolute; width: 160px; height: 180px; right: 50px; top: -24px; color: #f4cf82; opacity: .15; transform: rotate(12deg); z-index: -1; }
.header-emblem::before { content: ''; position: absolute; width: 250px; height: 250px; border: 1px solid #ecc584; border-radius: 50%; top: -36px; left: -46px; box-shadow: 0 0 0 14px #e4b96918, 0 0 0 15px #ecc584; }
.header-emblem svg { width: 100%; height: 100%; }
.masthead { display: none; }
.primary-nav { display: flex; align-items: stretch; justify-content: space-between; gap: 3px; padding: 12px 18px; }
.primary-nav a { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 11px; color: #e7d7df; font-size: 12px; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; transition: background .15s, color .15s; }
.primary-nav a:hover { color: #fff3d2; background: #f9dba911; }
.primary-nav a[aria-current] { color: #ffedc0; border-color: #dfb16e70; background: linear-gradient(110deg, #e7ba7730, #e1a6c41c); box-shadow: inset 0 1px #ffe0a32a; }
.nav-icon { display: block; width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; filter: drop-shadow(0 2px 3px #030a1266); }
.menu-toggle { display: none; }
.hero { padding: 24px 0 28px; }
h1 { margin: 0; font: 34px/1.15 var(--serif); letter-spacing: -.02em; font-weight: 400; color: var(--gold); }
.intro { max-width: 470px; color: var(--muted); margin: 13px 0 0; font-size: 14px; line-height: 1.8; }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 16px; color: var(--gold); font-size: 12px; font-weight: 500; min-height: 34px; padding: 5px 0; }
.text-link:hover { color: var(--pink); text-decoration: underline; text-underline-offset: 4px; }
.text-link > span { color: var(--pink); font-size: 16px; }
.page-contents { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 22px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 5px; background: #142535bb; }
.page-contents > span { color: var(--gold); font-size: 9px; letter-spacing: .1em; margin-right: 3px; }
.page-contents a { color: #e2bfd7; font-size: 12px; padding: 5px 0; }
.page-contents a:hover { color: var(--pink); }
.content-section { margin-top: 31px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #14253599; }
.section-heading { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; }
.section-heading::-webkit-details-marker { display: none; }
.content-section[open] > .section-heading { margin-bottom: 17px; }
.section-heading:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 3px; }
.section-heading h2 { color: #f1c1dc; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; font: 25px/1.3 var(--serif); font-weight: 400; }
.section-heading h2::before { content: '+'; color: var(--pink); font: 23px/1 var(--sans); width: 17px; flex: 0 0 17px; }
.content-section[open] > .section-heading h2::before { content: '−'; }
.section-heading h2::after { content: ''; height: 1px; flex: 1; margin-left: 8px; background: linear-gradient(90deg, #d4ac6a99, transparent); }
.section-caption { font-size: 12px; color: var(--muted); margin: 0 0 17px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 23px 25px 19px; background: radial-gradient(ellipse at 100% 0, #c7a46b0c, transparent 65%), linear-gradient(135deg, var(--panel), #14202b); border: 1px solid #435767; border-radius: var(--radius); box-shadow: 0 5px 18px #030a1235, inset 0 0 0 3px #edbd7c07; }
.card::before { content: ''; position: absolute; left: 12px; top: 12px; width: 9px; height: 9px; border-top: 1px solid #d4ad6b; border-left: 1px solid #d4ad6b; }
.card::after { content: ''; position: absolute; right: 12px; bottom: 12px; width: 9px; height: 9px; border-bottom: 1px solid #d4ad6b; border-right: 1px solid #d4ad6b; }
.badge { display: inline-block; font-size: 9px; line-height: 1.6; letter-spacing: .04em; padding: 3px 8px; border: 1px solid; border-radius: 4px; margin-bottom: 12px; }
.chosen { color: #f6d48b; border-color: #c7995366; background: #d8a34b1f; }
.proposed { color: #ffacd8; border-color: #d674ad77; background: #b84e8826; }
.unconfirmed { color: #d2bcf0; border-color: #a68bd077; background: #8362ad26; }
.card h3 { color: #f2d8b0; margin: 0 0 8px; font: 21px/1.35 var(--serif); font-weight: 400; }
.card ul { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; padding-left: 18px; }
.card li + li { margin-top: 8px; }
.quest-steps { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; padding-left: 20px; }
.quest-steps .step-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.quest-steps p { margin: 2px 0 0; }
.card li > ul { margin-top: 5px; }
.card li > strong { color: var(--text); font-weight: 600; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; }
.pickup-note { margin: 24px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.pickup-batch { margin-top: 16px; padding: 0 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pickup-batch > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 0; cursor: pointer; list-style: none; }
.pickup-batch > summary::-webkit-details-marker { display: none; }
.pickup-batch > summary::before { content: '+'; color: var(--pink); }
.pickup-batch[open] > summary::before { content: '−'; }
.pickup-batch > summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.pickup-batch h3 { margin: 0; color: var(--gold); font: 20px/1.4 var(--serif); }
.pickup-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.6; }
.pickup-table th, .pickup-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.pickup-table th { color: var(--gold); font-weight: 500; }
.pickup-table td { color: var(--muted); }
.pickup-table tbody tr:last-child td { border-bottom: 0; }
.guide-filters { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.profile-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 16px; }
.profile-selects label { display: grid; gap: 5px; color: var(--gold); font-size: 12px; }
.profile-selects select { width: 100%; min-height: 44px; padding: 8px 12px; color: var(--text); background: var(--bg); border: 1px solid #b99257; border-radius: 5px; }
.filter-note, #starter-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.guide-band { margin: 10px 0; border: 1px solid var(--line); border-radius: 6px; background: #14253599; }
.guide-band > summary { color: var(--gold); font: 20px/1.4 var(--serif); padding: 15px 18px; cursor: pointer; min-height: 50px; }
.guide-band > summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.guide-band-body { padding: 0 13px 5px; }
.guide-chapter { border: 1px solid #435767; border-radius: 6px; background: #172532; margin-bottom: 9px; }
.guide-chapter > summary { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; padding: 14px 18px; cursor: pointer; min-height: 50px; list-style: none; color: #f2d8b0; }
.guide-chapter > summary::-webkit-details-marker { display: none; }
.guide-chapter > summary::before { content: '+'; color: var(--pink); font-size: 19px; width: 12px; flex: 0 0 12px; }
.guide-chapter[open] > summary::before { content: '−'; }
.guide-chapter > summary .badge { margin: 0 0 0 auto; }
.guide-chapter > summary:focus-visible, .step-source > summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.chapter-body { border-top: 1px solid var(--line); padding: 18px 22px; max-height: 70vh; overflow: auto; overscroll-behavior: contain; scrollbar-color: #69768b #16212c; }
.chapter-context { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chapter-context p { margin: 4px 0; }
.chapter-context strong { color: #edcf98; font-weight: 500; }
.guide-steps { margin: 0; padding-left: 27px; }
.guide-step { padding: 16px 0 16px 7px; border-bottom: 1px solid #374b5c80; font-size: 14px; overflow-wrap: anywhere; }
.guide-step::marker { color: var(--gold); }
.guide-step p { margin: 5px 0; }
.step-source, .chapter-source { color: var(--muted); font-size: 11px; margin-top: 9px; }
.step-source > summary, .chapter-source > summary { cursor: pointer; padding: 5px 0; }
.step-source pre, .chapter-source pre { font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); padding: 12px; border-radius: 4px; }
.chapter-source { margin-top: 22px; }
.skip-link { position: fixed; top: -100px; left: 16px; background: var(--text); color: var(--bg); padding: 12px; z-index: 5; }
.skip-link:focus { top: 12px; }
@media (max-width: 1100px) {
  .site-shell { padding: 22px 28px 0; }
  .primary-nav { gap: 0; padding-inline: 12px; }
  .primary-nav a { padding: 9px 7px; gap: 7px; font-size: 11px; }
  .nav-icon { width: 34px; height: 34px; flex-basis: 34px; }
}
@media (max-width: 850px) {
  .site-shell { padding: 15px 18px 0; }
  .js .masthead { display: flex; align-items: center; min-height: 64px; padding: 0 18px; }
  .header-emblem { right: 25px; width: 125px; top: -10px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 11px; margin-left: auto; background: #e7ba7718; color: #ffe4b0; border: 1px solid #c99d635c; border-radius: 5px; padding: 10px 12px; min-height: 44px; font-size: 12px; cursor: pointer; }
  .primary-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0 10px 10px; }
  .primary-nav a { min-height: 47px; font-size: 12px; padding: 8px; gap: 8px; white-space: normal; }
  .js .primary-nav:not(.is-open) { display: none; }
  .hero { padding: 23px 0; }
  h1 { font-size: 31px; }
  .intro { max-width: none; font-size: 14px; margin-top: 10px; }
  .page-contents { gap: 3px 19px; padding: 10px 14px; }
  .page-contents > span { width: 100%; }
  .page-contents a { min-height: 36px; display: inline-flex; align-items: center; }
  .content-section { margin-top: 27px; padding: 15px; }
  .section-heading h2 { font-size: 23px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 22px 23px 17px; }
  .card p, .card ul { font-size: 14px; }
  .text-link { font-size: 13px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.training-catalog { margin-top: 20px; }
.training-catalog > h3 { margin: 0 0 12px; color: var(--gold); font: 25px/1.3 var(--serif); }
.training-warning { padding: 15px 18px; border: 1px solid #b99257; border-radius: var(--radius); color: var(--text); background: #49382055; font-size: 13px; }
.training-note, .training-sources { color: var(--muted); font-size: 13px; }
.training-band { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.training-band > summary { padding: 14px 18px; color: var(--gold); cursor: pointer; font: 20px/1.4 var(--serif); }
.training-scroll { overflow-x: auto; margin: 0 12px 12px; }
.training-scroll:focus-visible, .training-band > summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.training-table { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.training-table caption { text-align: left; color: var(--muted); padding: 10px; }
.training-table th, .training-table td { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.training-table thead th { color: var(--gold); font-weight: 500; }
.training-table tbody th { width: 29%; color: var(--text); font-weight: 400; }
.training-table td { color: var(--muted); }
.training-table small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.training-sources { margin-top: 18px; }
.training-sources summary { cursor: pointer; padding: 8px 0; }
.training-sources a { color: var(--gold); text-decoration: underline; }
