/* Shared page extensions for the four Kodiak routes. */
:root { color-scheme: light; }
[id] { scroll-margin-top: 7rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
main:focus { outline: none; }
.site-header { background: rgba(7,20,33,.96); border-bottom-color: var(--line); }
.site-header { gap: 2rem; }
.site-nav { min-width: 0; gap: clamp(1rem, 2.1vw, 2.1rem); flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
.site-nav a { font-size: .875rem; letter-spacing: .065em; padding: .4rem 0; white-space: nowrap; }
.site-nav a::after { bottom: .3rem !important; }
.site-nav a[aria-current="page"] { color: var(--gold-light); }
.brand-copy span { font-size: .75rem; }
.eyebrow, .section-kicker, .button { font-size: .875rem; }
.eyebrow { letter-spacing: .12em; }
.hero h1 { line-height: .99; }
.hero h1 span { margin-top: .04em; }
.section-heading h2, .doctrine-intro h2, .enlist-copy h2 { line-height: 1; }
.hero-emblem img { height: auto; }
.hero-emblem { max-width: 100%; }
.hero-index, .scroll-cue, .card-number { font-size: .75rem; }
.section-heading .eyebrow, .reading-copy .eyebrow, .process-intro .eyebrow, .faq-index .eyebrow { color: #82600b; }
.text-link { display: inline-flex; align-items: center; gap: .8rem; color: var(--forest); font-weight: 800; margin-top: 1rem; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { color: var(--ink); }
.mission-copy p:first-child { margin-top: 0; }
.mission-copy { font-size: 1.0625rem; }
.flag-frame { min-height: 0; display: flex; align-items: center; background: #1e3656; }
.flag-frame img { height: auto; object-fit: contain; }
.flag-feature figcaption span { font-size: .875rem; }
.doctrine-card { grid-template-columns: 3rem minmax(0,1fr); }
.doctrine-card:hover { padding-left: 0; padding-right: 0; background: transparent; }
.route-callout { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 4rem var(--pad); background: #234b34; color: white; }
.route-callout h2 { margin: 0; font-size: clamp(2rem,3.5vw,3.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.06; }
.route-callout .eyebrow { margin-bottom: .85rem; }
.route-callout p:last-child { color: #d2e0d8; margin-bottom: 0; }
.callout-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.route-callout > .button, .callout-actions { flex-shrink: 0; }
.site-footer { font-size: .875rem; }
.footer-brand > span { display: grid; line-height: 1.4; }
.footer-brand > span > span { font-size: .75rem; }
.footer-brand strong { font-size: .875rem; }
.site-footer > a:last-child { white-space: nowrap; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.visible { opacity: 1; transform: none; }

.page-masthead { position: relative; color: white; background: linear-gradient(115deg,var(--ink) 0 67%,#132d47 67.1%); padding: 10rem var(--pad) 4.5rem; border-bottom: .4rem solid var(--gold); overflow: clip; }
.masthead-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.page-masthead h1 { max-width: 950px; font-size: clamp(3.5rem,8vw,7rem); font-weight: 900; line-height: .98; letter-spacing: -.045em; text-transform: uppercase; margin: 0; }
.page-masthead h1 span { color: var(--ice); }
.page-lede { font-size: clamp(1.15rem,2vw,1.5rem); color: #b4c5ce; max-width: 650px; margin: 1.65rem 0 0; }
.page-masthead .button { margin-top: 2rem; }
.masthead-code { position: absolute; right: var(--pad); bottom: 2rem; color: #879baa; font: .75rem/1.4 "Courier New",monospace; letter-spacing: .15em; }
.page-entry .page-masthead { background: linear-gradient(115deg,var(--ink) 0 67%,#234b34 67.1%); }
.draft-note { display: flex; gap: 1.5rem; align-items: baseline; padding: 1.15rem 1.5rem; margin-bottom: 4rem; background: #e3e9e5; border-left: 3px solid var(--gold); }
.draft-note strong { white-space: nowrap; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; color: #70540d; }
.draft-note p { margin: 0; color: #4a5959; }
.lore-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: clamp(3rem,7vw,7rem); align-items: start; }
.reading-copy h2, .process-intro h2, .training-header h2 { font-size: clamp(2.6rem,4.5vw,4.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; margin: 0 0 2rem; }
.reading-copy p { font-size: 1.0625rem; color: #4b5c60; }
.reading-copy .lead { font-size: 1.35rem; color: var(--ink); line-height: 1.55; }
.reading-copy .eyebrow { font-size: .875rem; }
.reading-copy blockquote { margin: 2.5rem 0 0; padding: 1rem 0 1rem 1.6rem; border-left: 3px solid var(--gold); font-size: 1.45rem; font-weight: 700; line-height: 1.45; }
.insignia-plate { margin: 0; padding: 1.5rem; color: white; background: #050d16; border: 1px solid #273b4a; }
.insignia-plate img { width: 100%; height: auto; }
.insignia-plate figcaption { display: grid; gap: .4rem; padding: 1.5rem .25rem .3rem; border-top: 1px solid var(--line); }
.insignia-plate figcaption span { font-size: .75rem; color: #92a4b1; text-transform: uppercase; letter-spacing: .15em; }
.insignia-plate figcaption strong { font-size: 1.15rem; text-transform: uppercase; color: var(--gold-light); }
.tavrosk-section { background: #dfe6e4; }
.lore-flag { margin-top: 4rem; max-width: 860px; }
.lore-flag img { width: 100%; height: auto; }
.lore-flag figcaption { margin-top: 1rem; font-size: .875rem; color: #566467; }
.process-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(3rem,7vw,7rem); }
.process-intro > p { font-size: 1.0625rem; color: #4b5c60; }
.availability-note { padding: 1.5rem; margin-top: 2rem; background: #e0e7e3; border-left: 3px solid var(--gold); }
.availability-note strong { color: var(--ink); font-size: 1rem; }
.availability-note p { margin: .65rem 0 0; color: #526164; font-size: 1rem; }
.entry-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid #b6c3bf; }
.entry-steps li { display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid #b6c3bf; }
.step-number { color: #82600b; font: 700 1rem/1.6 "Courier New",monospace; }
.entry-steps h3 { font-size: 1.4rem; margin: 0; text-transform: uppercase; line-height: 1.3; }
.entry-steps p { margin: .75rem 0 0; font-size: 1.0625rem; color: #4b5c60; }
.training-section { color: white; background: var(--ink); }
.training-header { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: end; }
.training-header h2 { margin-bottom: 0; }
.training-header > p { color: #adbdc7; font-size: 1.125rem; margin: 0; }
.training-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 3.5rem; border-top: 1px solid var(--line); }
.training-topics article { padding: 2.25rem 2.5rem 2.25rem 0; border-bottom: 1px solid var(--line); }
.training-topics article:nth-child(even) { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.training-topics article > span { font-size: .75rem; color: var(--gold-light); letter-spacing: .1em; text-transform: uppercase; }
.training-topics h3 { font-size: 1.7rem; margin: .7rem 0; text-transform: uppercase; }
.training-topics p { color: #adbdc7; max-width: 500px; margin-bottom: 0; }
.training-note { color: #adbdc7; font-size: 1rem; margin-top: 2rem; padding-left: 1.25rem; border-left: 3px solid var(--gold); }
.faq-masthead { padding-bottom: 4rem; }
.faq-layout { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: clamp(3rem,6vw,6rem); }
.faq-index { align-self: start; position: sticky; top: 7rem; }
.faq-index nav { display: grid; border-top: 1px solid #b7c3bf; }
.faq-index nav a { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #b7c3bf; font-weight: 700; }
.faq-index nav a:hover { color: var(--forest); }
.faq-index nav span { font: .875rem/1.8 "Courier New",monospace; color: #82600b; }
.faq-index > p:not(.eyebrow) { margin-top: 2.5rem; color: #526164; }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: 1.75rem; margin: 0 0 1.5rem; text-transform: uppercase; line-height: 1.15; }
.faq-group details { border-top: 1px solid #b7c3bf; }
.faq-group details:last-child { border-bottom: 1px solid #b7c3bf; }
.faq-group summary { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.4rem .5rem 1.4rem 0; list-style: none; cursor: pointer; font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary:hover { color: var(--forest); }
.faq-symbol { flex: 0 0 1rem; height: 1rem; position: relative; color: #82600b; }
.faq-symbol::before,.faq-symbol::after { content: ""; position: absolute; background: currentColor; top: 7px; left: 0; height: 2px; width: 16px; }
.faq-symbol::after { transform: rotate(90deg); }
details[open] .faq-symbol::after { transform: none; }
.faq-answer { padding: 0 2.7rem 1.5rem 0; color: #4b5c60; font-size: 1.0625rem; }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--forest); text-decoration: underline; text-underline-offset: .15em; }

@media(max-width:1040px) {
  .site-header { height: 4.75rem; }
  .menu-toggle { display: grid; place-content: center; gap: .45rem; width: 2.8rem; height: 2.8rem; padding: 0; color: white; background: transparent; border: 1px solid var(--line); }
  .menu-toggle > span:not(.sr-only) { display: block; width: 1.25rem; height: 2px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .site-nav { position: absolute; inset: 100% 0 auto; display: grid; gap: 0; justify-content: stretch; padding: .75rem var(--pad) 1.5rem; background: #071421; border-bottom: 1px solid var(--line); }
  .js .site-nav { visibility: hidden; transform: translateY(-1rem); opacity: 0; pointer-events: none; }
  .js .site-nav.open { visibility: visible; transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
  .site-nav a::after { display: none; }
  .route-callout { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > p { grid-column: 1/-1; grid-row: 2; text-align: left; }
}
@media(max-width:900px) {
  .lore-layout, .process-layout, .training-header, .faq-layout { grid-template-columns: 1fr; gap: 3rem; }
  .insignia-plate { max-width: 500px; margin: 0 auto; }
  .faq-index { position: static; }
  .page-masthead { padding-top: 8.5rem; }
  .draft-note { flex-direction: column; gap: .5rem; }
}
@media(max-width:760px) {
  .hero { padding-top: 8rem; }
  .hero-emblem { width: min(100%,450px); margin-top: 1.5rem; }
  .page-masthead { padding-bottom: 4rem; }
  .page-masthead h1 { font-size: clamp(3rem,12vw,5.5rem); }
  .masthead-code { bottom: 1.25rem; font-size: .75rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .section-kicker { margin-bottom: 2.5rem; }
  .training-topics { grid-template-columns: 1fr; }
  .training-topics article, .training-topics article:nth-child(even) { padding: 1.8rem 0; border-left: 0; }
  .entry-steps li { gap: .7rem; grid-template-columns: 2.5rem minmax(0,1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { grid-column: auto; grid-row: auto; }
  .page-lede br { display: none; }
  .faq-answer { padding-right: .5rem; }
}
@media (max-width:460px) {
  .hero h1 { font-size: clamp(3rem,16vw,4.7rem); }
  .brand-copy span { display: block; }
  .callout-actions { width: 100%; }
  .route-callout .button { width: 100%; }
  .route-callout { gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
@media print {
  .site-header,.menu-toggle,.route-callout,.site-footer,.skip-link,.masthead-code { display: none; }
  .page-masthead,.hero,.section { padding: 1rem 0; background: white; color: black; }
  .page-masthead h1 span,.page-lede,.eyebrow { color: black; }
  .faq-layout,.lore-layout,.process-layout { display: block; }
  .faq-index { display: none; }
  .faq-answer { display: block; }
}
