/* The poster template: a photograph as ground, glass panels and road signs on it. */

.mk-poster { position: relative; isolation: isolate; overflow: hidden; background: var(--mk-navy); color: #FFFFFF; }
.mk-poster-photo { position: absolute; inset: 0; z-index: -2; }
.mk-poster-photo img { width: 100%; height: 100%; object-fit: cover; }
.mk-poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 16, 34, 0.95) 0%, rgba(6, 16, 34, 0.8) 36%, rgba(6, 16, 34, 0.42) 68%, rgba(6, 16, 34, 0.6) 100%), linear-gradient(0deg, rgba(6, 16, 34, 0.92) 0%, rgba(6, 16, 34, 0) 38%); }
.mk-poster > .mk-wrap { padding-block: clamp(40px, 6vw, 72px); }
.mk-poster .mk-lede { color: var(--mk-on-dark); }
.mk-poster .mk-accent { color: var(--mk-blue-bright); }

.mk-picture-hero { background: #0A1A33; }
.mk-picture-hero img { width: 100%; max-width: 1536px; height: auto; margin-inline: auto; }
.mk-picture-hero .mk-actions { justify-content: center; margin: 0; padding-block: 20px; }

/* Copy laid over artwork scales with the picture (container units), so it
   stays where the artwork left room for it at every width — until the picture
   is too small to read words on, when it moves below the image instead. */
.mk-art { position: relative; max-width: 1536px; margin-inline: auto; container-type: inline-size; }
.mk-art-copy { position: absolute; left: 2.6%; top: 3.2%; width: 40%; color: #FFFFFF; }
.mk-art-title { margin: 0; font-size: 3.3cqw; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.mk-art-sub { margin: 0.8cqw 0 0; color: #A9CBFF; font-size: 1.6cqw; font-weight: 500; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.mk-art-body { max-width: 28cqw; margin: 1.9cqw 0 0; color: #E8EFF9; font-size: 1.2cqw; line-height: 1.5; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
@container (max-width: 760px) {
  .mk-art-copy { position: static; width: auto; padding: 22px 16px 0; background: #0A1A33; }
  .mk-art-title { font-size: 30px; }
  .mk-art-sub { margin-top: 8px; font-size: 17px; }
  .mk-art-body { max-width: none; margin-top: 12px; font-size: 15px; }
}

.mk-tagline { margin: 0 0 28px auto; width: fit-content; max-width: 100%; padding-right: 14px; border-right: 3px solid var(--mk-blue-bright); text-align: right; }
.mk-tagline strong { display: block; font-size: clamp(17px, 1.6vw, 21px); }
.mk-tagline span { color: var(--mk-on-dark-muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.mk-poster-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mk-poster-grid.is-solo { grid-template-columns: minmax(0, 720px); }
.mk-poster-visual { display: grid; gap: 16px; }
.mk-poster-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--mk-on-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mk-num { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding-inline: 8px; border: 1px solid var(--mk-glass-line); border-radius: 8px; background: rgba(8, 21, 42, 0.6); color: #FFFFFF; font-size: 21px; font-weight: 800; letter-spacing: 0; }
.mk-sub { margin: 12px 0 0; color: #A9CBFF; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; }

.mk-plist { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.mk-plist li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.mk-plist p { margin: 0; }
.mk-plist strong { display: block; font-size: 16px; }
.mk-plist span { color: var(--mk-on-dark-muted); font-size: 14px; }

.mk-glass { padding: 16px 18px; border: 1px solid var(--mk-glass-line); border-radius: var(--mk-radius); background: var(--mk-glass); color: #FFFFFF; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.85); backdrop-filter: blur(6px); }
.mk-glass.has-tone { border-color: color-mix(in srgb, var(--tone) 75%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent), 0 0 34px -10px color-mix(in srgb, var(--tone) 70%, transparent); }
.mk-glass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--mk-glass-line); }
.mk-glass-title { display: flex; align-items: center; gap: 10px; }
.mk-glass-title .mk-ic { color: var(--mk-blue-bright); }
.mk-glass.has-tone .mk-glass-title .mk-ic { color: var(--tone); }
.mk-glass h3 { margin: 0; font-size: 18px; }
.mk-glass-head p { margin: 2px 0 0; color: var(--mk-on-dark-muted); font-size: 13px; }

.mk-status { display: grid; margin: 0; padding: 0; list-style: none; }
.mk-status li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(143, 182, 255, 0.1); font-size: 14.5px; }
.mk-status li:last-child { border-bottom: 0; }
.mk-detail { color: var(--mk-on-dark-muted); font-size: 13px; text-align: right; }

.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 8px 0 0; }
.mk-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 14px 10px; border: 1px solid var(--mk-glass-line); border-radius: 10px; text-align: center; }
.mk-stat dd { margin: 0; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-stat dt { color: var(--mk-on-dark); font-size: 12.5px; line-height: 1.3; }

.mk-timeline { margin: 8px 0 0; padding: 0; list-style: none; }
.mk-timeline li { position: relative; padding: 0 0 14px 30px; }
.mk-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: rgba(143, 182, 255, 0.2); }
.mk-tl-dot { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 12px var(--tone); }
.mk-timeline strong { display: block; font-size: 14.5px; font-weight: 500; }
.mk-timeline span { color: var(--mk-on-dark-muted); font-size: 12.5px; }

.mk-stepper { padding: 12px 18px 14px; border: 1px solid var(--mk-glass-line); border-radius: var(--mk-radius); background: var(--mk-glass); color: #FFFFFF; overflow-x: auto; }
.mk-stepper > p { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mk-stepper ol { display: flex; margin: 0; padding: 0; list-style: none; }
.mk-stepper li { position: relative; flex: 1 0 84px; padding-top: 26px; color: var(--mk-on-dark-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.mk-stepper li::before { content: ""; position: absolute; z-index: 1; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border: 2px solid var(--mk-blue-bright); border-radius: 50%; background: var(--mk-navy); }
.mk-stepper li::after { content: ""; position: absolute; top: 10px; left: 50%; width: 100%; height: 2px; background: rgba(74, 147, 255, 0.45); }
.mk-stepper li:last-child::after { display: none; }
.mk-stepper li.is-done::before { background: var(--mk-blue-bright); }
.mk-stepper a { color: inherit; text-decoration: none; }
.mk-stepper a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.mk-stepper li.is-active { color: #FFFFFF; }
.mk-stepper li.is-active::before { background: var(--mk-blue-bright); box-shadow: 0 0 0 5px rgba(74, 147, 255, 0.3); }

.mk-hwsign { --sign: #0E6A3B; padding: 16px 20px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 10px; background: var(--sign); color: #FFFFFF; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.8); }
.mk-hwsign.is-navy { --sign: #13305C; }
.mk-hwsign.is-blue { --sign: #1C58C2; }
.mk-hwsign.is-amber { --sign: #E6B11E; color: #1C1606; border-color: #1C1606; }
.mk-hwsign-title { margin: 0; font-size: clamp(16px, 1.6vw, 20px); font-weight: 800; letter-spacing: 0.08em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.mk-hwsign-rows { margin: 10px 0 0; padding: 0; list-style: none; }
.mk-hwsign-rows li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 17px; font-weight: 600; }
.mk-hwsign-rows .mk-up { margin-left: auto; stroke-width: 2.6; }
.mk-hwsign-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid currentColor; list-style: none; }
.mk-hwsign-cells li { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }

.mk-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mk-lane { padding: 16px; border: 1px solid color-mix(in srgb, var(--tone) 60%, transparent); border-top: 4px solid var(--tone); border-radius: 10px; background: var(--mk-glass); color: #FFFFFF; }
.mk-lane h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16.5px; }
.mk-lane-ic { color: var(--tone); }
.mk-lane p { margin: 8px 0 0; color: var(--mk-on-dark); font-size: 14px; line-height: 1.45; }
.mk-lane .mk-checks { gap: 7px; margin-top: 12px; font-size: 14px; }
.mk-lane .mk-checks .mk-ic { width: 18px; height: 18px; }

.mk-benefits { border: 1px solid rgba(74, 147, 255, 0.5); border-radius: var(--mk-radius); background: rgba(6, 16, 34, 0.9); color: #FFFFFF; }
.mk-benefits ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; padding: 0; list-style: none; }
.mk-benefits li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-left: 1px solid var(--mk-glass-line); }
.mk-benefits li:first-child { border-left: 0; }
.mk-benefits .mk-ic { width: 30px; height: 30px; color: var(--mk-blue-bright); stroke-width: 1.5; }
.mk-benefits p { margin: 0; }
.mk-benefits strong { display: block; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.mk-benefits span { color: var(--mk-on-dark-muted); font-size: 13px; }
.mk-band-gap { margin-top: clamp(32px, 5vw, 56px); }
.mk-quote.is-band { padding: 18px 22px; border-top: 1px solid var(--mk-glass-line); }
.mk-quote.is-band blockquote { font-style: italic; }

.mk-cycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mk-cycle-step { padding: 20px; border-radius: var(--mk-radius); background: #F7FAFF; color: var(--mk-ink); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.8); }
.mk-cycle-step header { display: flex; align-items: center; justify-content: space-between; }
.mk-cycle-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tone); color: #FFFFFF; font-weight: 800; }
.mk-cycle-step header .mk-ic { width: 30px; height: 30px; color: var(--tone); }
.mk-cycle-step h3 { margin: 14px 0 2px; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.mk-cycle-tag { margin: 0 0 12px; color: var(--tone); font-weight: 700; }
.mk-cycle-step .mk-checks { gap: 7px; color: var(--mk-body); font-size: 14px; }
.mk-cycle-step .mk-checks .mk-ic { width: 18px; height: 18px; }

.mk-cta-card { display: flex; gap: 18px; align-items: flex-start; }
.mk-cta-ic { width: 52px; height: 52px; color: #FFFFFF; stroke-width: 1.3; }
.mk-cta-card h3 { margin: 0; font-size: 20px; }
.mk-cta-card p { margin: 6px 0 0; color: var(--mk-on-dark); }
.mk-cta-card .mk-actions { margin-top: 16px; }

.mk-flow { display: grid; gap: 0; justify-items: center; margin: 0; padding: 0; list-style: none; }
.mk-flow-step { display: grid; justify-items: center; width: 100%; }
.mk-flow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; width: 100%; }
.mk-node { width: 100%; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--tone) 45%, #FFFFFF); border-radius: 8px; background: color-mix(in srgb, var(--tone) 9%, #FFFFFF); }
.mk-node h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--mk-ink); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.mk-node h3 .mk-ic { width: 20px; height: 20px; color: var(--tone); }
.mk-node p { margin: 0; color: var(--mk-body); font-size: 13px; line-height: 1.45; }
.mk-node.is-solid { border-color: var(--mk-ink); background: var(--mk-ink); color: #FFFFFF; }
.mk-node.is-solid h3 .mk-ic { color: #FFFFFF; }
.mk-node.is-solid p { color: var(--mk-on-dark); }
.mk-flow-arrow { position: relative; width: 2px; height: 22px; margin-block: 2px 8px; background: var(--mk-ink); }
.mk-flow-arrow::after { content: ""; position: absolute; left: -5px; bottom: -6px; border: 6px solid transparent; border-top-color: var(--mk-ink); border-bottom: 0; }
.mk-flow-note { margin: 0 0 10px; color: var(--mk-body); font-size: 13.5px; font-style: italic; text-align: center; }

/* Repeated items pick their column count from how many there are, so six
   cards read as two rows of three rather than five and a stranded one. Lives
   here, after base.css, so it wins over the auto-fit fallbacks above. */
.mk-plist + .mk-fineprint { margin-top: 14px; }
:is(.is-light, .is-tint) .mk-status:not(.mk-glass .mk-status) li { border-color: var(--mk-line); }
:is(.is-light, .is-tint) .mk-status:not(.mk-glass .mk-status) .mk-detail { color: var(--mk-body); }

@media (min-width: 981px) {
  :is(.mk-cycle, .mk-cards, .mk-lanes) { --cols: 3; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  :is(.mk-cycle, .mk-cards, .mk-lanes):has(> li:only-child) { --cols: 1; }
  :is(.mk-cycle, .mk-cards, .mk-lanes):has(> li:nth-child(2):last-child) { --cols: 2; }
  :is(.mk-cycle, .mk-cards, .mk-lanes):has(> li:nth-child(4):last-child) { --cols: 4; }
  :is(.mk-cycle, .mk-cards, .mk-lanes):has(> li:nth-child(5):last-child) { --cols: 5; }
  :is(.mk-cycle, .mk-cards, .mk-lanes):has(> li:nth-child(7):last-child),
  :is(.mk-cycle, .mk-cards, .mk-lanes):has(> li:nth-child(8):last-child) { --cols: 4; }
  .mk-poster-visual :is(.mk-cards, .mk-lanes) { --cols: 2; }
}
@media (min-width: 561px) and (max-width: 980px) {
  :is(.mk-cycle, .mk-cards, .mk-lanes) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :is(.mk-cycle, .mk-cards, .mk-lanes) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .mk-poster-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-tagline { margin-left: 0; padding-right: 0; padding-left: 14px; border-right: 0; border-left: 3px solid var(--mk-blue-bright); text-align: left; }
}
@media (max-width: 640px) {
  .mk-benefits li { border-left: 0; border-top: 1px solid var(--mk-glass-line); }
  .mk-benefits li:first-child { border-top: 0; }
  .mk-status li { grid-template-columns: 22px minmax(0, 1fr); }
  .mk-detail { grid-column: 2; text-align: left; }
}
