:root {
  color-scheme: light;
  --ink: #223128;
  --muted: #556158;
  --brand: #274b3b;
  --brand-dark: #183226;
  --accent: #876826;
  --paper: #f7f4ea;
  --white: #fffef9;
  --tint: #ece8da;
  --line: #b9b6a9;
  --line-dark: #767970;
  --warn: #6e4717;
  --warn-bg: #f3e2ba;
  --max: 1120px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

body[data-track="aviation"] {
  --ink: #1d2b38;
  --muted: #56636d;
  --brand: #1d405d;
  --brand-dark: #122a3e;
  --accent: #7a3035;
  --paper: #f5f4ef;
  --white: #fff;
  --tint: #e8ebeb;
  --line: #b9bec0;
  --line-dark: #707a80;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.56; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.wrap { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }

h1, h2, h3, legend {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 4.35rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.22rem; }
p { margin-top: 0; }

.preview-bar {
  background: var(--warn-bg);
  border-bottom: 1px solid #bd9c61;
  color: var(--warn);
  padding: 0.48rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.site-header { background: var(--white); border-bottom: 1px solid var(--line-dark); }
.utility-bar { background: var(--brand-dark); color: #f2f1eb; font-size: 0.76rem; letter-spacing: 0.045em; }
.utility-bar .wrap { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.utility-bar a { color: #fff; }
.masthead { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { color: var(--ink); display: inline-flex; align-items: center; gap: 0.95rem; text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark-seal {
  width: 54px;
  height: 54px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.09em;
}
.wordmark-seal-square { border-radius: 2px; outline: 1px solid var(--brand); outline-offset: 3px; width: 48px; height: 48px; }
.wordmark-copy { display: grid; gap: 0.12rem; }
.wordmark-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 1.95rem); font-weight: 400; letter-spacing: 0.005em; }
.wordmark-copy small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; }
.masthead-office { display: grid; gap: 0.14rem; color: var(--muted); font-size: 0.78rem; text-align: right; }
.primary-nav { border-top: 1px solid var(--line); }
.primary-nav .wrap { display: flex; align-items: stretch; }
.primary-nav a { color: var(--ink); padding: 0.7rem 1.25rem 0.68rem 0; margin-right: 1.25rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.035em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover { color: var(--accent); text-decoration: underline; }

.hero { padding: clamp(3.3rem, 7vw, 5.7rem) 0; background: var(--white); border-bottom: 1px solid var(--line-dark); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.72fr); gap: clamp(3rem, 7vw, 6.5rem); align-items: start; }
.document-label { margin: 0 0 1rem; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.hero h1 { max-width: 760px; }
.lede { max-width: 760px; margin: 1.35rem 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 2vw, 1.31rem); line-height: 1.48; }
.hero-audience { max-width: 760px; margin: 1.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-dark);
  border-radius: 1px;
  background: var(--brand);
  color: #fff;
  padding: 0.62rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
}
.button:hover { background: var(--brand-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--brand-dark); }
.button.secondary:hover { background: var(--brand-dark); color: #fff; }
.text-link { font-size: 0.84rem; font-weight: 700; }
.service-file { border: 3px double var(--line-dark); background: var(--paper); padding: 1.3rem 1.45rem; }
.service-file h2 { border-bottom: 1px solid var(--line-dark); padding-bottom: 0.7rem; font-size: 1.35rem; }
.service-file dl { margin: 0; }
.service-file dl div { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0.75rem; border-bottom: 1px solid var(--line); padding: 0.68rem 0; }
.service-file dt { color: var(--muted); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.045em; text-transform: uppercase; }
.service-file dd { margin: 0; font-size: 0.82rem; }
.service-file > p { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.76rem; }

.regulatory-notice { background: var(--brand-dark); color: #fff; border-bottom: 4px solid var(--accent); }
.notice-grid { min-height: 128px; display: grid; grid-template-columns: 0.45fr 1.7fr 0.7fr; gap: 2rem; align-items: center; padding-block: 1.35rem; }
.notice-grid h2 { color: #fff; font-size: 1.3rem; }
.notice-grid p { margin: 0; font-size: 0.85rem; color: #eef0ed; }
.notice-grid a { color: #fff; font-size: 0.78rem; font-weight: 700; justify-self: end; }

.section { padding: clamp(3.6rem, 7vw, 5.6rem) 0; border-bottom: 1px solid var(--line); }
.section-tinted { background: var(--tint); }
.section-document { background: var(--white); }
.content-grid { display: grid; grid-template-columns: minmax(180px, 0.46fr) minmax(0, 1.54fr); gap: clamp(2.5rem, 7vw, 6.5rem); }
.section-index { border-top: 3px double var(--line-dark); padding-top: 0.85rem; }
.section-index > span { display: block; color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 0.7rem; }
.section-index h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-body { min-width: 0; }
.section-body > :last-child { margin-bottom: 0; }
.section-intro { max-width: 750px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.6; }

.scope-table { width: 100%; border-collapse: collapse; margin: 1.65rem 0; background: var(--white); font-size: 0.88rem; }
.scope-table th { background: var(--brand); color: #fff; font-size: 0.72rem; letter-spacing: 0.065em; text-transform: uppercase; }
.scope-table th, .scope-table td { border: 1px solid var(--line); padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; }
.scope-table td:first-child { width: 29%; color: var(--ink); font-weight: 700; }
.formal-note { border: 1px solid var(--line-dark); border-left: 5px solid var(--accent); background: var(--paper); padding: 1.1rem 1.25rem; }
.formal-note h3 { font-size: 1.05rem; font-weight: 700; }
.formal-note p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.85rem; }

.procedure-list { list-style: none; counter-reset: procedure; padding: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.procedure-list li { counter-increment: procedure; display: grid; grid-template-columns: 2.5rem minmax(150px, 0.48fr) 1.3fr; gap: 1.1rem; border-bottom: 1px solid var(--line-dark); padding: 1.1rem 0; align-items: baseline; }
.procedure-list li::before { content: counter(procedure, decimal-leading-zero); color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.procedure-list strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 700; }
.procedure-list span { color: var(--muted); font-size: 0.88rem; }

.service-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-dark); margin-top: 1.7rem; }
.service-columns > div { padding: 1.35rem 1.5rem; }
.service-columns > div + div { border-left: 1px solid var(--line-dark); }
.service-columns h3 { border-bottom: 1px solid var(--line); padding-bottom: 0.65rem; margin-bottom: 0.85rem; font-size: 1.08rem; font-weight: 700; }
.service-columns p, .service-columns li { color: var(--muted); font-size: 0.88rem; }
.service-columns p { margin-bottom: 0; }
.service-columns ul { margin: 0; padding-left: 1.1rem; }
.service-columns li + li { margin-top: 0.38rem; }

.document-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.document-row p { color: var(--muted); }
.document-stamp { min-height: 190px; border: 1px solid var(--line-dark); outline: 4px double var(--line); outline-offset: -10px; padding: 2rem; display: grid; align-content: center; text-align: center; background: var(--paper); }
.document-stamp span, .document-stamp small { color: var(--accent); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.document-stamp strong { display: block; margin: 0.7rem 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; }
.sample-link[aria-disabled="true"] { opacity: 0.62; pointer-events: none; }
.lead-state { margin-top: 1.2rem; border: 1px solid var(--line-dark); background: var(--white); padding: 1rem 1.15rem; color: var(--muted); font-size: 0.86rem; }
.lead-state h3 { color: var(--ink); margin-bottom: 0.4rem; }
.lead-state p { margin: 0; }

.request-section { background: var(--white); }
.request-heading { max-width: 760px; margin-bottom: 2.3rem; }
.request-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.request-heading > p:last-child { margin: 1rem 0 0; color: var(--muted); }
.inquiry-form { border-top: 3px double var(--line-dark); border-bottom: 3px double var(--line-dark); padding: 0 0 1.5rem; }
.inquiry-form fieldset { border: 0; margin: 0; padding: 1.6rem 0 0; }
.inquiry-form fieldset + fieldset { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.inquiry-form legend { width: 100%; padding: 0 0 0.75rem; color: var(--brand-dark); font-size: 1.18rem; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.95rem 1.4rem; }
.field { display: grid; align-content: start; gap: 0.34rem; }
.field.full { grid-column: 1 / -1; }
label, .field-label { color: var(--ink); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.025em; }
input, select, textarea { width: 100%; border: 1px solid #878b86; border-radius: 0; padding: 0.67rem 0.72rem; background: #fff; color: var(--ink); }
textarea { min-height: 105px; resize: vertical; }
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent); outline-offset: 1px; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem 1rem; margin-top: 0.25rem; }
.check { display: flex; gap: 0.48rem; align-items: flex-start; color: var(--muted); font-size: 0.8rem; font-weight: 400; letter-spacing: 0; }
.check input { width: auto; margin-top: 0.22rem; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.3rem; }
.form-submit-row .check { max-width: 620px; }
.form-note, .status { color: var(--muted); font-size: 0.76rem; }
.form-note { margin: 0.9rem 0 0; }
.status { min-height: 1.3em; margin: 0.6rem 0 0; }
.status.error { color: #8b231e; }
.status.success { color: #185638; }

.site-footer { background: var(--brand-dark); color: #e7e8e4; padding: 2.6rem 0 1.2rem; font-size: 0.76rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 1.3fr 0.65fr; gap: 2rem; }
.footer-grid > div { display: flex; flex-direction: column; gap: 0.24rem; }
.footer-grid strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 0.92rem; margin-bottom: 0.3rem; }
.footer-grid a { color: #fff; }
.footer-grid [data-business-phone]:empty { display: none; }
.footer-fineprint { border-top: 1px solid color-mix(in srgb, #fff 28%, transparent); margin-top: 2rem; padding-top: 0.9rem; color: #c5c9c4; }

/* Supporting privacy and sample documents */
.section-heading { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; margin-bottom: 2rem; }
.section-heading p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.card { border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--white); padding: 1.4rem; }
.card h2, .card h3 { font-size: 1.18rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.86rem; margin: 0.65rem 0 0; }
.eyebrow { color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.scope-box { border: 1px solid var(--line-dark); border-left: 5px solid var(--accent); background: var(--white); padding: 1rem 1.2rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); background: var(--white); margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.67rem; text-align: left; vertical-align: top; }
th { background: var(--tint); color: var(--ink); }

/* Internal tracker */
.internal { --max: 1280px; background: #f1f2ef; }
.internal header { background: #17211f; color: #fff; padding: 1.2rem 0; }
.internal main { padding: 2rem 0 4rem; }
.internal h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.internal .tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.internal .tabs a { background: #fff; border: 1px solid var(--line); padding: 0.55rem 0.8rem; text-decoration: none; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.metric { background: #fff; border: 1px solid var(--line); padding: 1rem; }
.metric strong { display: block; font-size: 1.8rem; }
.internal .panel { background: #fff; border: 1px solid var(--line); padding: 1.2rem; margin-top: 1rem; }
.blockers li { margin: 0.35rem 0; color: #8b3b22; }

@media (max-width: 820px) {
  .wrap { width: min(calc(100% - 1.5rem), var(--max)); }
  .masthead { min-height: 86px; }
  .masthead-office { display: none; }
  .primary-nav { overflow-x: auto; }
  .primary-nav .wrap { width: max-content; min-width: calc(100% - 1.5rem); }
  .hero-grid, .notice-grid, .content-grid, .document-row, .section-heading { grid-template-columns: 1fr; }
  .hero-grid { gap: 2.2rem; }
  .notice-grid { gap: 0.75rem; padding-block: 1.2rem; }
  .notice-grid a { justify-self: start; }
  .content-grid { gap: 1.8rem; }
  .section-index { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: baseline; }
  .section-index > span { margin: 0; }
  .procedure-list li { grid-template-columns: 2.2rem 1fr; }
  .procedure-list li span { grid-column: 2; }
  .service-columns, .field-grid, .cards { grid-template-columns: 1fr; }
  .service-columns > div + div { border-left: 0; border-top: 1px solid var(--line-dark); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .utility-bar span { display: none; }
  .utility-bar .wrap { justify-content: flex-end; }
  .wordmark-seal { width: 45px; height: 45px; }
  .wordmark-copy strong { font-size: 1.25rem; }
  .wordmark-copy small { font-size: 0.62rem; }
  .primary-nav a { font-size: 0.68rem; }
  .hero { padding-top: 2.7rem; }
  h1 { font-size: 2.35rem; }
  .service-file dl div { grid-template-columns: 1fr; gap: 0.25rem; }
  .scope-table, .scope-table tbody, .scope-table tr, .scope-table td { display: block; }
  .scope-table thead { display: none; }
  .scope-table tr { border: 1px solid var(--line); }
  .scope-table tr + tr { border-top: 0; }
  .scope-table td { border: 0; width: 100% !important; }
  .scope-table td + td { padding-top: 0; }
  .checks, .footer-grid { grid-template-columns: 1fr; }
  .form-submit-row { align-items: stretch; flex-direction: column; gap: 1rem; }
  .form-submit-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
