:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #171c2a;
  background: #f2f5f9;
  --blue: #063386;
  --red: #ed0925;
  --dark: #10111b;
  --line: #dce4ef;
  --muted: #4b586d;
  --site-width: min(1160px, calc(100% - 64px));
}
* { box-sizing: border-box; }
body { margin: 0; }
.site-width { width: var(--site-width); margin-inline: auto; }
a { color: var(--blue); }
:is(a, button, input, textarea):focus-visible { outline: 3px solid #4279dd; outline-offset: 3px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  min-height: 510px;
  background: var(--dark);
  color: #fff;
}
.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #10111b 15%, #10111bf2 29%, #10111b5e 54%, #10111b18 100%);
}
.brand {
  margin-block: 28px 0;
  min-height: 72px;
  padding: 14px 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: #fff;
  color: var(--blue);
}
.brand-logo { width: fit-content; display: flex; align-items: center; }
.brand img { width: clamp(114px, 14vw, 164px); height: auto; object-fit: contain; }
.brand nav { display: flex; gap: clamp(16px, 3vw, 37px); align-items: center; }
.brand nav a, #edit-link { text-decoration: none; font-weight: 650; font-size: .86rem; }
.brand nav a { padding-block: 10px; }
.brand nav a:hover { box-shadow: inset 0 -2px var(--red); }
#edit-link { justify-self: end; background: var(--blue); color: white; padding: 10px 16px; }
#edit-link:hover { background: #07245a; }

.hero-copy {
  width: var(--site-width);
  margin-inline: auto;
  padding-block: 67px 66px;
  padding-inline-end: 38%;
}
.hero-copy::before {
  content: "";
  display: block;
  width: clamp(108px, 17vw, 222px);
  height: 4px;
  background: var(--red);
  margin-block-end: 17px;
}
.hero-copy p { margin: 0; }
.hero-copy .brand-text {
  margin-block-end: 9px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  margin: 0 0 23px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.vehicle { display: inline-block; font-weight: 750; padding: 11px 16px; background: var(--blue); }
.hero-copy #vehicle-type { font-size: .98rem; margin-block-start: 13px; }
.caption {
  position: absolute;
  right: max(32px, (100% - 1160px) / 2);
  bottom: 20px;
  background: #10111be6;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 650;
}

.sections { display: grid; grid-template-columns: 1fr 1.65fr; gap: 24px; padding-block: 30px 38px; }
.panel {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  padding: 21px 24px 18px;
  scroll-margin-block-start: 20px;
}
.panel:last-child { grid-column: 1 / -1; }
.panel h2 { color: var(--blue); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; margin: 0 0 15px; }
.panel h2::before { content: ""; display: block; height: 3px; width: 34px; margin-bottom: 12px; background: var(--red); }
.panel .subtitle { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 650; }
.items { list-style: none; padding: 0; margin: 0; }
.items li {
  position: relative;
  padding: 12px 0 12px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.items li:last-child { border-bottom: 0; }
.items li::before { content: ""; width: 5px; height: 5px; background: var(--red); position: absolute; top: 20px; left: 0; }
.items span { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; font-weight: 400; }
.panel:last-child .lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel:last-child .items + .items { border-left: 1px solid var(--line); padding-left: 24px; }

button { font: inherit; font-weight: 650; cursor: pointer; border: 1px solid var(--blue); padding: 8px 12px; background: var(--blue); color: white; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: white; color: var(--blue); }
dialog { width: min(760px, calc(100% - 24px)); max-height: 90vh; border: 1px solid var(--line); padding: 22px; color: #181b27; }
dialog::backdrop { background: #10111bbd; }
.editor-heading, dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-heading h2 { margin: 0; color: var(--blue); }
dialog fieldset { margin: 14px 0; padding: 14px; border: 1px solid var(--line); }
dialog legend { color: var(--blue); font-weight: 700; }
label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: 10px; }
input, textarea { display: block; width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #9ca9bb; font: inherit; font-weight: 400; border-radius: 0; }
textarea { min-height: 64px; resize: vertical; }
.edit-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.edit-row button { font-size: .8rem; }
.file-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#status { font-weight: 650; color: var(--blue); }
#status[data-error] { color: #a31524; }

@media (max-width: 720px) {
  :root { --site-width: calc(100% - 32px); }
  .hero { min-height: 0; }
  .brand { grid-template-columns: 1fr auto; gap: 9px 10px; padding: 13px 16px 7px; margin-top: 14px; }
  .brand nav { grid-row: 2; grid-column: 1 / -1; gap: 19px; }
  .brand nav a, #edit-link { font-size: .8rem; }
  .hero-copy { padding: 32px 0 29px; }
  .hero h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); margin-bottom: 16px; }
  .hero-photo { position: relative; z-index: auto; grid-row: 3; width: 100%; height: auto; aspect-ratio: 1.73; }
  .hero::after { display: none; }
  .caption { right: 12px; bottom: 12px; }
  .sections, .panel:last-child .lists, .file-fields { grid-template-columns: 1fr; }
  .sections { gap: 15px; padding-block: 18px 24px; }
  .panel { padding: 17px; }
  .panel:last-child .lists { gap: 0; }
  .panel:last-child .items + .items { border-left: 0; padding: 0; }
  .panel:last-child .items:first-child li:last-child { border-bottom: 1px solid var(--line); }
  .edit-row { grid-template-columns: 1fr auto; }
  .edit-row label:nth-child(2) { grid-row: 2; grid-column: 1; }
  .edit-row button { grid-column: 2; grid-row: 1 / 3; }
}
@media print {
  #edit-link, .brand nav { display: none; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel { break-inside: avoid; }
}
