/* /military-discount. Loads after landing.css and keeps its header, footer, buttons and closing band.
 * The register is a porch at dusk: deep navy for the dark bands, warm parchment to read on, one brass
 * hairline as the only ornament, and Cormorant for the words meant to be felt. Brass is a rule and a
 * fill; text on parchment uses the deeper brass step. No stars, eagles or flag graphics. */

.ml-body {
  --ml-navy: #13233A;
  --ml-navy-2: #1B3150;
  --ml-navy-ink: #E9EEF5;
  --ml-navy-mute: #A9B7CB;
  --ml-brass: #C29A52;
  /* #C29A52 is 2.4:1 on parchment; text uses this step (5.3:1). */
  --ml-brass-text: #85612A;
  --ml-parchment: #FAF6EE;
  --ml-parchment-2: #F2EBDD;
  --ml-line: #E4DACA;
  --ml-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  background: var(--ml-parchment);
  overflow-x: hidden;
}
.ml-body ::selection { background: rgba(194, 154, 82, 0.35); color: var(--ld-navy); }
.ml-body a { text-underline-offset: 3px; }
.ml-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ml-rule { display: block; width: 56px; height: 1px; background: var(--ml-brass); margin: 0 0 32px; }
.ml-rule-center { margin: 0 auto 28px; }

/* ------------------------------------------------------------------ hero */
.ml-hero {
  position: relative;
  min-height: clamp(580px, calc(100svh - 80px), 820px);
  display: flex; align-items: flex-end;
  background: var(--ml-navy); color: #FFFFFF;
  isolation: isolate;
}
.ml-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; z-index: -2; }
.ml-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(12, 22, 38, 0.94) 0%, rgba(12, 22, 38, 0.6) 42%, rgba(12, 22, 38, 0) 72%),
    linear-gradient(90deg, rgba(12, 22, 38, 0.5) 0%, rgba(12, 22, 38, 0) 55%);
}
.ml-hero-inner { padding-top: 140px; padding-bottom: 64px; }
.ml-body .ml-hero h1 {
  font-family: var(--ml-serif);
  font-weight: 500; font-style: normal;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 1.02; letter-spacing: -0.015em;
  color: #FFFFFF; max-width: 15ch; margin: 0 0 22px;
}
.ml-hero h1 em { display: block; font-style: italic; color: #F3DDB0; }
.ml-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 34em; margin: 0 0 30px; color: rgba(255, 255, 255, 0.92); }
.ml-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

/* The code reads like a ticket stub: tap to copy, brass edge, the code in tabular Montserrat. */
.ml-code {
  display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline;
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  border: 1px dashed rgba(243, 221, 176, 0.75);
  background: rgba(12, 22, 38, 0.45); color: #FFFFFF;
  font-family: 'Montserrat', sans-serif; text-align: left;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.ml-code:hover { background: rgba(12, 22, 38, 0.65); border-color: #F3DDB0; transform: translateY(-1px); }
.ml-code:focus-visible { outline: 2px solid #F3DDB0; outline-offset: 3px; }
.ml-code-label { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.ml-code-value { font-size: 22px; font-weight: 900; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; user-select: all; }
.ml-code-hint { font-size: 12.5px; font-weight: 700; color: #F3DDB0; }
.ml-code.is-copied { border-style: solid; border-color: #F3DDB0; }

/* ------------------------------------------------------------------ the letter */
.ml-letter { padding: 112px 0 104px; }
.ml-narrow { max-width: 780px; }
.ml-letter p { font-size: 18.5px; line-height: 1.8; color: var(--ld-ink); margin: 0 0 22px; max-width: 62ch; }
.ml-letter .ml-letter-lead {
  font-family: var(--ml-serif); font-weight: 500; font-style: italic;
  font-size: clamp(27px, 3vw, 38px); line-height: 1.3; color: var(--ld-navy);
  margin-bottom: 32px; max-width: 30ch; text-wrap: balance;
}
.ml-sign {
  margin-top: 36px !important;
  font-family: var(--ml-serif); font-size: 30px !important; font-style: italic; color: var(--ld-navy) !important;
}
.ml-sign span { display: block; font-family: 'Open Sans', sans-serif; font-style: normal; font-size: 14px; color: var(--ld-ink-soft); margin-top: 4px; }

/* ------------------------------------------------------------------ who */
.ml-who { background: var(--ml-parchment-2); padding: 96px 0; border-block: 1px solid var(--ml-line); }
.ml-body .ml-who h2, .ml-body .ml-moments h2, .ml-body .ml-how h2 {
  font-family: var(--ml-serif); font-weight: 600; font-style: normal;
  font-size: clamp(32px, 3.8vw, 48px); line-height: 1.1; color: var(--ld-navy);
  max-width: 22ch; margin: 0 0 36px;
}
.ml-who-list { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ml-who-list li {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--ml-line); color: var(--ld-navy);
}
.ml-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ml-line); }
.ml-terms > div { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ml-terms > div + div { padding-left: 24px; border-left: 1px solid var(--ml-line); }
.ml-terms strong { font-family: var(--ml-serif); font-weight: 600; font-size: 34px; line-height: 1; color: var(--ml-brass-text); }
.ml-terms span { font-size: 15.5px; color: var(--ld-ink); }

/* ------------------------------------------------------------------ Military City USA */
.ml-city { background: var(--ml-navy); color: var(--ml-navy-ink); padding: 112px 0; }
.ml-city-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ml-body .ml-city h2 { font-family: var(--ml-serif); font-weight: 500; font-style: italic; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; color: #FFFFFF; margin: 0 0 22px; }
.ml-city-head p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--ml-navy-ink); max-width: 40ch; }
.ml-roll { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(194, 154, 82, 0.55); }
.ml-roll li { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ml-roll-name { font-family: var(--ml-serif); font-weight: 600; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: #FFFFFF; letter-spacing: 0.01em; }
.ml-roll-line { font-size: 15.5px; color: var(--ml-navy-mute); }

/* ------------------------------------------------------------------ moments */
.ml-moments { padding: 112px 0 96px; }
.ml-moments-grid { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 64px; align-items: start; }
.ml-photo { margin: 0; position: sticky; top: 100px; }
.ml-photo img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--ld-shadow-md); }
.ml-moments-list article { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--ml-line); }
.ml-moments-list article:last-child { border-bottom: 0; margin-bottom: 0; }
.ml-body .ml-moments-list h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-style: italic; font-size: 21px; margin: 0 0 10px; color: var(--ld-navy); }
.ml-moments-list p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--ld-ink); max-width: 60ch; }
.ml-moments-list a { color: var(--ld-ocean-text); font-weight: 600; }

/* ------------------------------------------------------------------ how + FAQ */
.ml-how { background: var(--ml-parchment-2); padding: 96px 0 104px; border-top: 1px solid var(--ml-line); }
.ml-steps { list-style: none; margin: 0 0 36px; padding: 0; counter-reset: ml-step; }
.ml-steps li { position: relative; padding: 0 0 26px 62px; counter-increment: ml-step; }
.ml-steps li::before {
  content: counter(ml-step); position: absolute; left: 0; top: -4px;
  font-family: var(--ml-serif); font-weight: 600; font-size: 40px; line-height: 1; color: var(--ml-brass-text);
}
.ml-body .ml-steps h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; margin: 0 0 6px; color: var(--ld-navy); }
.ml-steps p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ld-ink); }
.ml-inline-code { font-weight: 900; letter-spacing: 0.05em; color: var(--ml-brass-text); }
.ml-how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 80px; }
.ml-call { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: var(--ld-navy); }
.ml-body .ml-how .ml-faq-h { margin-bottom: 18px; }
.ml-faq { border-top: 1px solid var(--ml-line); }
.ml-faq details { border-bottom: 1px solid var(--ml-line); }
.ml-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; color: var(--ld-navy);
}
.ml-faq summary::-webkit-details-marker { display: none; }
.ml-faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2.5px solid var(--ml-brass-text); border-bottom: 2.5px solid var(--ml-brass-text);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease-out;
}
.ml-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ml-faq summary:focus-visible { outline: 2px solid var(--ld-ocean); outline-offset: 4px; border-radius: 4px; }
.ml-faq details p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.7; color: var(--ld-ink); max-width: 64ch; }

.ml-final { background-color: var(--ml-navy); background-image: linear-gradient(120deg, var(--ml-navy-2), var(--ml-navy)); }
.ml-body .ml-final h2 { font-family: var(--ml-serif); font-weight: 500; font-style: italic; }
.ml-final strong { color: #F3DDB0; letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ phones and tablets */
@media (max-width: 900px) {
  .ml-city-inner, .ml-moments-grid { grid-template-columns: 1fr; gap: 40px; }
  .ml-photo { position: static; max-width: 520px; }
}
@media (max-width: 760px) {
  .ml-hero-inner { padding-top: 110px; padding-bottom: 44px; }
  .ml-letter, .ml-city, .ml-moments { padding: 72px 0; }
  .ml-who, .ml-how { padding: 64px 0 72px; }
  .ml-terms { grid-template-columns: 1fr; }
  .ml-terms > div, .ml-terms > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--ml-line); }
  .ml-cta .ld-btn, .ml-how-cta .ld-btn { width: 100%; justify-content: center; }
  .ml-code { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-code, .ml-faq summary::after { transition: none; }
}
