/* IACSF — International Aerial Combat Sport Federation
   Institutional stylesheet. Serif for headings (statute weight),
   IBM Plex Sans for reading and interface. */

:root {
  --page: #FFFFFF;
  --alt: #F4F5F7;
  --ink: #0E1116;
  --ink-2: #2A3139;
  --steel: #5B6570;
  --rule: #D4D9DF;
  --rule-soft: #E6E9ED;
  --tint: #EEF1F5;
  --federation: #1B3A6B;   /* federation blue: links, active states */
  --federation-deep: #12294D;
  --warn: #C4500D;         /* safety notices only */
  --warn-tint: #FCEFE6;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display);

  --measure: 68ch;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
body { overflow-wrap: break-word; }
/* Grid and flex children may shrink below their content width so long text never
   forces the page wider than the screen. Navigation is excluded on purpose (below). */
.two-col > *, .three-col > *, .four-col > *, .grid-rule > *, .with-side > *, .row > *,
.section-head > *, .control > *, .doclist li > *, .steps li > *, .org .node,
.hero .wrap > *, footer .wrap > * { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--federation); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(27,58,107,.45); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--federation); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--federation);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 3.6vw, 52px); }
h2 { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-family: var(--sans); font-weight: 700; }
h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover { text-decoration: underline; text-decoration-color: var(--federation); }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; max-width: var(--measure); }
li { margin-bottom: .35em; }
li::marker { color: var(--steel); }
strong { font-weight: 700; }
small, .small { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sans { font-family: var(--sans); }
.muted { color: var(--steel); }
.lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 500; color: var(--ink); max-width: 58ch; }

/* ---------- Masthead ---------- */
.masthead { background: var(--ink); color: #fff; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; flex-shrink: 1; min-width: 0; }
.brand .mark { height: 56px; width: auto; display: block; }
.brand .wordmark { height: 38px; width: auto; max-width: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand-full { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .03em; color: #E3E7EB; line-height: 1.25; }
.masthead-right { text-align: right; font-size: 13px; color: #C7CDD4; line-height: 1.5; min-width: 0; flex: 0 1 auto; }
.masthead-right b { display: block; color: #fff; font-weight: 700; font-size: 15px; }
@media (max-width: 1300px) { .masthead-right { font-size: 12px; } .masthead-right b { font-size: 13px; } }
.masthead-right a { color: #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--page);
  border-bottom: 1px solid var(--rule);
  border-top: 4px solid var(--federation);
  border-bottom: 2px solid var(--ink);
}
.nav .wrap { display: flex; align-items: center; min-height: 58px; gap: 12px; }
.nav nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; gap: 0; flex: 1; white-space: nowrap; }
.nav-list > li { flex: 0 0 auto; }   /* never compress: the menu button takes over instead */
.nav-list > li { position: relative; }
.nav-list > li:not(.nav-cta) > a, .nav-list > li > button {
  display: block; padding: 18px 14px 15px; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  border-bottom: 4px solid transparent; margin-bottom: -2px;
}
.nav-list > li:not(.nav-cta) > a:hover, .nav-list > li > button:hover { color: var(--federation); }
.nav-list > li.current > a, .nav-list > li.current > button { border-bottom-color: var(--federation); }
.nav-list > li > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--page); border: 1px solid var(--rule); border-top: 3px solid var(--ink);
  box-shadow: 0 12px 28px rgba(14,17,22,.12);
  list-style: none; margin: 0; padding: 6px 0;
  display: none;
}
.nav-list > li:hover .sub, .nav-list > li:focus-within .sub, .nav-list > li.open .sub { display: block; }
.sub a { display: block; padding: 10px 18px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.sub a:hover { background: var(--alt); color: var(--federation); }
.sub a span { display: block; font-size: 13px; font-weight: 400; color: var(--steel); margin-top: 2px; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { padding: 8px 14px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 14px 24px; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--federation); border-color: var(--federation); }
.btn.small { font-size: 14px; padding: 9px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header / control block ---------- */
.page-head { padding: clamp(36px, 5vw, 64px) 0 32px; border-bottom: 1px solid var(--rule); }
.page-head .kicker { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--federation); margin-bottom: 16px; }
.page-head .kicker a { color: var(--federation); }
.page-head h1 { max-width: 28ch; }
.page-head .lede { margin-top: 18px; }
.control {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0; margin: 32px 0 0; border: 1px solid var(--rule); border-top: 4px solid var(--ink); background: var(--page);
  font-size: 15px;
}
.control div { padding: 12px 16px; border-right: 1px solid var(--rule-soft); }
.control div:last-child { border-right: 0; }
.control dt { color: var(--steel); font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.control dd { margin: 0; font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: clamp(40px, 5vw, 64px) 0; }
section + section { border-top: 1px solid var(--rule); }
section.alt { background: var(--alt); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; margin-bottom: 32px; align-items: end; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.grid-rule > * { border-top: 4px solid var(--ink); padding-top: 18px; }
.grid-rule h3 { margin-bottom: 10px; }
.grid-rule p { font-size: 16px; }
.grid-rule .sans { font-size: 14px; font-weight: 600; color: var(--steel); }

.prose { max-width: var(--measure); width: 100%; }
.prose h2 { margin: 48px 0 16px; padding-top: 24px; border-top: 3px solid var(--ink); }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { margin: 30px 0 10px; }
.prose h4 { margin: 24px 0 8px; }
.prose table { max-width: none; }

.with-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.with-side > * { min-width: 0; }
.side { position: sticky; top: 72px; font-size: 14px; }
.side ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.side li { margin: 0; }
.side a { display: block; padding: 7px 0 7px 16px; font-weight: 600; text-decoration: none; color: var(--steel); border-left: 3px solid transparent; margin-left: -1px; }
.side a:hover { color: var(--ink); border-left-color: var(--ink); }
.side .side-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; }

/* ---------- Tables ---------- */
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 1.5em; background: var(--page); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border: 1px solid var(--rule); }
th { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; border-color: var(--ink); }
td:first-child { font-weight: 700; }
table.plain td:first-child { font-weight: 400; }
.table-scroll { overflow-x: auto; }
.tier-table td:first-child { white-space: nowrap; }

/* ---------- Definition rows ---------- */
.rows { border-top: 4px solid var(--ink); }
.row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row h3 { font-size: 22px; }
.row .sans { font-size: 14px; font-weight: 600; color: var(--steel); margin-top: 6px; }
.row p:last-child, .row ul:last-child { margin-bottom: 0; }

/* Notices */
.notice {
  border: 1px solid var(--rule); border-left: 6px solid var(--ink); background: var(--alt); padding: 18px 22px;
  margin: 24px 0; max-width: var(--measure); font-size: 16px;
}
.notice.info { border-left-color: var(--federation); }
.notice.warn { border-left-color: var(--warn); background: var(--warn-tint); }
.notice strong { display: block; margin-bottom: 4px; font-size: 17px; }
.notice p:last-child { margin-bottom: 0; }

/* Steps (real sequences only) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: none; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--federation); }
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { margin-bottom: 0; font-size: 16px; }
.steps .sans { font-size: 14px; color: var(--steel); margin-top: 6px; }

/* ---------- Document library ---------- */
.doclist { list-style: none; padding: 0; margin: 0; max-width: none; border-top: 4px solid var(--ink); }
.doclist li { display: grid; grid-template-columns: 160px minmax(0, 1fr) 190px; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); margin: 0; align-items: start; }
.doclist .docno { font-size: 14px; color: var(--steel); padding-top: 4px; }
.doclist .docno b { display: block; color: var(--ink); font-weight: 700; }
.doclist h3 { font-size: 22px; margin-bottom: 4px; }
.doclist p { font-size: 15px; margin: 0; color: var(--ink-2); }
.doclist .actions { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-top: 4px; }

/* Document reading pages */
.doc-body { max-width: 76ch; width: 100%; }
.doc-body h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 40px 0 14px; padding-top: 26px; border-top: 1px solid var(--rule); }
.doc-body h1:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.doc-body h2 { font-size: clamp(21px, 2vw, 26px); margin: 30px 0 10px; }
.doc-body h3 { font-size: 19px; font-family: var(--sans); font-weight: 700; margin: 22px 0 8px; }
.doc-body table { font-size: 14px; }
.doc-body col { width: auto !important; }
.doc-body table td:first-child { width: 28%; font-weight: 700; }
.doc-body p, .doc-body ul, .doc-body ol { max-width: none; }
.doc-body sup a { text-decoration: none; color: var(--steel); }
.doc-body .footnotes { font-size: 14px; color: var(--steel); border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 16px; }
.doc-body blockquote { margin: 0 0 1.2em; padding: 14px 18px; border: 1px solid var(--rule); border-left: 6px solid var(--ink); background: var(--alt); }
.doc-body blockquote p { margin: 0; }

/* ---------- Home ---------- */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 24ch; font-size: clamp(30px, 3.2vw, 46px); }
.hero .lede { margin-top: 20px; }
.hero .btn-row { margin-top: 28px; }
.hero-figure { background: var(--page); border: 1px solid var(--rule); padding: 16px; margin: 0; }
.hero-figure figcaption { font-size: 13px; color: var(--steel); margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; }

.notices { background: var(--alt); border-bottom: 1px solid var(--rule); }
.notices .wrap { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-top: 18px; padding-bottom: 18px; font-size: 14px; }
.notices h4 { margin: 0; font-size: 15px; font-weight: 800; text-transform: none; }
.notices ul { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; }
.notices li { margin: 0; color: var(--ink-2); }
.notices li b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; }

.paths { padding-top: clamp(32px, 4vw, 52px); }

/* Org chart */
.org { font-size: 14px; }
.org .tier { display: grid; gap: 12px; margin-bottom: 12px; }
.org .tier.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.org .node { min-width: 0; overflow-wrap: anywhere; }
.org .node { background: var(--page); border: 1px solid var(--rule); border-top: 4px solid var(--ink); padding: 14px 16px; }
.org .node b { display: block; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.org .node span { color: var(--steel); }
.org .node.accent { border-top-color: var(--federation); }
.org .link { text-align: center; color: var(--steel); font-size: 12px; padding: 4px 0 8px; }

/* Footer */
footer { background: var(--ink); color: #C7CDD4; font-size: 14px; margin-top: 40px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #C7CDD4; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .brand .wordmark { height: 32px; }
footer .brand .mark { height: 48px; }
footer .legal { border-top: 1px solid rgba(255,255,255,.14); }
footer .legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px var(--gutter); font-size: 13px; color: #9AA3AD; }

/* ---------- Responsive ---------- */
/* Applied by script when the navigation does not fit, whatever the zoom or text size. */

  .nav.compact .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--page); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .nav.compact.open .nav.compact .nav-list { display: flex; }
  .nav.compact .nav-list > li:not(.nav-cta) > a, .nav.compact .nav-list > li > button { padding: 12px var(--gutter); width: 100%; text-align: left; border-bottom: 0; }
  .nav.compact .nav-list > li > button::after { float: right; margin-top: 8px; }
  .nav.compact .sub { position: static; display: none; border: 0; box-shadow: none; background: var(--alt); padding: 4px 0; }
  .nav.compact .nav-list > li.open .sub { display: block; }
  .nav.compact .nav-list > li:hover .sub { display: none; }
  .nav.compact .nav-list > li.open:hover .sub { display: block; }
  .nav.compact .sub a { padding-left: calc(var(--gutter) + 16px); }
  .nav-cta { margin: 12px var(--gutter) 0; }
  .nav.compact .nav-list { white-space: normal; align-items: stretch; }
  .nav.compact .menu-btn { display: block; }
@media (max-width: 1100px) {
  .masthead .wrap { flex-wrap: wrap; }
  .masthead-right { text-align: left; }
  .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--page); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .nav.open .nav-list { display: flex; }
  .nav-list > li:not(.nav-cta) > a, .nav-list > li > button { padding: 12px var(--gutter); width: 100%; text-align: left; border-bottom: 0; }
  .nav-list > li > button::after { float: right; margin-top: 8px; }
  .sub { position: static; display: none; border: 0; box-shadow: none; background: var(--alt); padding: 4px 0; }
  .nav-list > li.open .sub { display: block; }
  .nav-list > li:hover .sub { display: none; }
  .nav-list > li.open:hover .sub { display: block; }
  .sub a { padding-left: calc(var(--gutter) + 16px); }
  .nav-cta { margin: 12px var(--gutter) 0; }
  .nav-list { white-space: normal; align-items: stretch; }
  .menu-btn { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .two-col, .three-col, .four-col { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; }
  .side ol { display: flex; flex-wrap: wrap; gap: 4px 16px; border: 0; }
  .side { max-width: 100%; }
  .side a { padding: 4px 0; border-left: 0; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .org .tier.cols-3 { grid-template-columns: 1fr 1fr; }
  .doclist li { grid-template-columns: 1fr; gap: 6px; }
  .doclist .actions { flex-direction: row; gap: 16px; }
  .control { grid-template-columns: repeat(2, 1fr); }
  .control div:nth-child(2n) { border-right: 0; }
  .notices .wrap { grid-template-columns: 1fr; gap: 12px; }
  .notices ul { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  /* wide tables scroll within their own box rather than widening the page */
  table { display: block; overflow-x: auto; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .table-scroll table { display: table; }
  .control { grid-template-columns: repeat(2, 1fr); }
  img { height: auto; }
}
@media (max-width: 560px) {
  .org .tier.cols-3 { grid-template-columns: 1fr; }
  .grid-rule > *, .three-col > *, .four-col > *, .two-col > * { min-width: 0; }
  table { font-size: 14px; }
  th, td { padding: 8px 10px; }
  .masthead .wrap { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
  .brand { gap: 12px; }
  .brand .mark { height: 36px; }
  .brand .wordmark { height: auto; width: min(170px, 55vw); }
  .brand-full { font-size: 11px; white-space: normal; }
  .brand-text { gap: 4px; }
  .masthead-right { display: none; }
  .hero-photo h1 { font-size: 30px; }
  .hero-photo .lede { font-size: 16px; }
  .hero-photo .btn-row .btn { width: 100%; text-align: center; }
  .hero-kicker { font-size: 12px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 12px; }
  .steps li::before { font-size: 28px; }
  footer .wrap { grid-template-columns: 1fr; }
  .control { grid-template-columns: 1fr; }
  .control div { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .nav, footer, .side, .masthead-right { display: none; }
  .masthead { background: #fff; color: #000; }
  body { background: #fff; font-size: 12pt; }
}

/* ---------- Photography ---------- */
.banner { margin: 0; border-bottom: 1px solid var(--rule); background: var(--alt); }
.banner img { display: block; width: 100%; height: clamp(180px, 26vw, 360px); object-fit: cover; }
.banner figcaption { font-size: 13px; font-weight: 500; color: var(--steel); padding: 8px 0 0; }
.banner .wrap { padding-top: 0; }
.hero-figure img { display: block; width: 100%; height: auto; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font-size: 13px; color: var(--steel); margin-top: 8px; }
.grid-rule .photo { margin: 0 0 16px; }
.fig-drawing { background: var(--page); border: 1px solid var(--rule); padding: 16px; margin: 0 0 24px; }
.fig-drawing figcaption { font-size: 13px; color: var(--steel); margin-top: 10px; }
section.textured { background: var(--alt) url("img/texture-chart.jpg") center / cover no-repeat; position: relative; }
section.textured::before { content: ""; position: absolute; inset: 0; background: rgba(244,245,247,.82); }
section.textured .wrap { position: relative; }

/* ---------- Member login ---------- */
.login-wrap { max-width: 440px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; }
.login-card { border: 1px solid var(--rule); border-top: 4px solid var(--ink); padding: 32px; background: var(--page); }
.login-card h1 { font-size: 30px; margin-bottom: 8px; }
.login-card p { font-size: 15px; color: var(--ink-2); }
.field { margin: 18px 0; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--rule); background: var(--page); color: var(--ink); }
.field input:focus { border-color: var(--ink); }
.login-card .btn { width: 100%; text-align: center; margin-top: 6px; }
.login-links { display: flex; justify-content: space-between; font-size: 14px; margin-top: 18px; }

/* ---------- Full-bleed photographic hero ---------- */
.hero-photo {
  position: relative; color: #fff; padding: 0;
  background-color: var(--ink); background-size: cover; background-position: right center;
  min-height: clamp(600px, 90vh, 960px); display: flex; align-items: stretch;
  border-bottom: 4px solid var(--federation);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,17,22,.86) 0%, rgba(14,17,22,.62) 38%, rgba(14,17,22,.12) 68%, rgba(14,17,22,0) 100%),
              linear-gradient(90deg, rgba(14,17,22,.45) 0%, rgba(14,17,22,0) 55%);
}
.hero-photo .wrap { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding-top: clamp(200px, 30vh, 320px); padding-bottom: clamp(56px, 8vh, 96px); }
.hero-copy { max-width: 520px; }
.hero-kicker { font-size: 14px; font-weight: 700; letter-spacing: .03em; color: #C7CDD4; margin: 0 0 18px; padding-left: 14px; border-left: 3px solid var(--federation); line-height: 1.2; }
.hero-photo h1 { color: #fff; font-size: clamp(32px, 3.2vw, 48px); max-width: 15ch; text-wrap: balance; }
.hero-photo .lede { color: #E3E7EB; font-weight: 400; margin-top: 20px; max-width: 52ch; font-size: 17px; }
.hero-photo .btn-row { margin-top: 26px; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: #E3E7EB; border-color: #E3E7EB; color: var(--ink); }
.btn.ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero-caption { position: absolute; right: var(--gutter); bottom: 14px; margin: 0; font-size: 12px; color: rgba(255,255,255,.7); max-width: 46ch; text-align: right; }
@media (max-width: 960px) {

  .hero-caption { position: static; text-align: left; margin-top: 28px; }
}

/* Below 1300px the aircraft sit too centrally to share the frame with text:
   show the whole photograph as a band, then the copy on the dark ground beneath it. */
@media (max-width: 1300px) {
  .hero-photo {
    min-height: 0;
    background-size: 100% auto; background-position: top center; background-repeat: no-repeat;
  }
  .hero-photo::before {
    background: linear-gradient(180deg, rgba(14,17,22,0) 0, rgba(14,17,22,0) 30vw, rgba(14,17,22,.9) 46vw, #0E1116 56vw, #0E1116 100%);
  }
  .hero-photo .wrap { padding-top: 40vw; padding-bottom: 48px; }
  .hero-copy { max-width: 640px; }
  .hero-photo h1 { max-width: 20ch; }
  .hero-caption { position: static; text-align: left; margin-top: 24px; }
}
@media (max-width: 560px) {
  .hero-photo .wrap { padding-top: 44vw; padding-bottom: 40px; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(14,17,22,0) 0, rgba(14,17,22,0) 34vw, rgba(14,17,22,.92) 50vw, #0E1116 58vw, #0E1116 100%); }
}
