/* MDV holding site: font, tokens, header, footer, home and legal pages (docs/MAINTENANCE). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --container: 1240px;
  --blue: #043A70;
  --accent: #0a6c93;
  --border: #e2e0db;
  --text: #2b2b2b;
  --muted: #57544f;
  --gutter: max(clamp(16px, 4vw, 56px), calc((100% - var(--container)) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--text); background: #fff; }
a { color: #15618F; text-decoration: none; }
a:hover { color: var(--blue); }

.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); border-bottom: 1px solid var(--border); background: #fff; }
.header img { height: 42px; width: auto; display: block; }
.btn-outline { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--blue); color: var(--blue); font-size: 14px; font-weight: 700; white-space: nowrap; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px var(--gutter); background: var(--blue); color: #cfe0ec; font-size: 12.5px; }
.footer-row { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.footer a { color: #cfe0ec; }
.footer a:hover, .footer a[aria-current="page"] { color: #fff; }
.social { display: flex; gap: 8px; }
.social a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,.28); color: #fff; }

/* Mobile: sticky header, centered footer. */
@media (max-width: 760px) {
  .header { position: sticky; top: 0; z-index: 10; padding-top: 10px; padding-bottom: 10px; box-shadow: 0 4px 18px rgba(4,58,112,.06); }
  .header img { height: 34px; }
  .btn-outline { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .footer { padding-top: 10px; padding-bottom: 10px; font-size: 11.5px; justify-content: center; text-align: center; }
  .footer-row { justify-content: center; }
}

/* Home: one screen, header, flexible main, footer. */
.shell--screen { height: 100vh; height: 100dvh; }

.main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(16px, 3vh, 40px) var(--gutter); }

.hero { display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 22px); min-width: 0; }
.eyebrow { font: 600 11px Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(30px, min(5vw, 7vh), 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; color: var(--blue); text-wrap: balance; }
.lead { margin: 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.4; font-weight: 600; }
.text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 48px; padding: 0 22px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; }
.btn:hover { color: #fff; background: #032d58; }

.card { height: 100%; max-height: 560px; min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.card img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 16px 20px; }
.card-body > div { display: flex; flex-direction: column; gap: 4px; }
.label { font: 600 10.5px Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.value { font-size: 14px; line-height: 1.5; }

/* Mobile-only pieces of the home, hidden on larger screens. */
.text--short, .status, .btn--outline, .contact-line, .btn .icon { display: none; }
.actions { display: contents; }

/* Mobile: full-width photo first, sized to the leftover height, then a sheet with the message and the actions. */
@media (max-width: 760px) {
  .shell--screen { height: auto; }
  .main { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .card { order: -1; flex: 1 1 0; min-height: 170px; max-height: 360px; height: auto; border: 0; border-radius: 0; }
  .card img { object-position: 50% 28%; }
  .card-body { display: none; }
  .hero { flex-shrink: 0; position: relative; margin-top: -28px; padding: 24px 20px 0; gap: 14px; border-radius: 22px 22px 0 0; background: #fff; }
  .hero h1 { font-size: 30px; line-height: 1.06; }
  .lead, .text--long { display: none; }
  .text--short { display: block; font-size: 15px; line-height: 1.5; }
  .status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
  .status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
  .status strong { font-weight: 700; }
  .status--open strong { color: #1d6b35; }
  .status--open::before { background: #2e9e52; }
  .status--closed strong { color: #9a3c12; }
  .status--closed::before { background: #d0612a; }
  .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
  .btn { align-self: stretch; gap: 10px; min-height: 52px; border-radius: 10px; font-size: 16px; }
  .btn .icon { display: block; flex-shrink: 0; }
  .btn--outline { display: inline-flex; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); }
  .btn--outline:hover { background: #eef4f9; color: var(--blue); }
  .contact-line { display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
  .shell--screen .footer { padding: 12px 16px 16px; background: #fff; font-size: 12px; }
  .shell--screen .footer-row:first-child { display: none; }
  .shell--screen .footer a { color: var(--muted); }
  .shell--screen .footer a:hover { color: var(--blue); }
}

/* Legal pages and fallbacks (page, 404). */
.legal { flex: 1; width: 100%; max-width: calc(760px + 2 * clamp(16px, 4vw, 56px)); margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 56px) clamp(40px, 6vw, 72px); }
.back { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.legal h1 { margin: 0 0 8px; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.updated { margin: 0 0 32px; font-size: 13px; color: var(--muted); }
.legal h2 { margin: 36px 0 12px; font-size: 19px; font-weight: 700; color: var(--blue); }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 20px; margin: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 10px; }
.legal dt { font: 600 11px/1.9 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.legal dd { margin: 0; font-size: 15px; line-height: 1.6; }
.todo { padding: 1px 6px; border-radius: 4px; background: #fff3c4; color: #6b4e00; font-weight: 600; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; padding: 14px 16px; }
  .legal dd + dt { margin-top: 10px; }
}
