/* Phone-first finishing of the standalone event tool, 27-10-2026. */
.mp-tijdkiezer, .mp-paginanav { display: none; }
.mp-duration-dialog { position: fixed; inset: auto 0 0; width: min(100%, 640px); max-width: 100%; max-height: 90dvh; margin: 0 auto; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; overflow: auto; overscroll-behavior: contain; box-sizing: border-box; background: var(--mp-wit); color: var(--mp-inkt); font-family: var(--mp-tekst); }
.mp-duration-dialog::backdrop { background: color-mix(in srgb, #0A1B3D 48%, transparent); }
.mp-duration-dialog form { display: grid; gap: 20px; }
.mp-duration-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-duration-head h2 { margin: 0; font: 700 26px/1.15 var(--mp-kop); }
.mp-duration-head button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--mp-lijn); border-radius: 50%; background: var(--mp-wit); color: var(--mp-inkt); cursor: pointer; }
.mp-duration-head svg { width: 20px; height: 20px; }
.mp-duration-dialog p { margin: 0; color: var(--mp-zacht); font-size: 16px; line-height: 1.5; }
.mp-duration-parts { display: flex; gap: 12px; }
.mp-duration-parts label { flex: 1; min-width: 0; display: grid; gap: 8px; font-size: 15px; font-weight: 700; }
.mp-duration-parts label[hidden] { display: none; }
.mp-duration-parts select { width: 100%; min-width: 0; height: 72px; padding: 0 12px; border: 1px solid var(--mp-zacht); border-radius: 12px; background: var(--mp-bg); color: var(--mp-inkt); font: 700 28px/1 var(--mp-tekst); font-variant-numeric: tabular-nums; cursor: pointer; }
.mp-duration-done { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--mp-blauw); color: var(--mp-blauw-inkt); font: 700 17px/1.3 var(--mp-tekst); cursor: pointer; }
.mp-duration-dialog :focus-visible { outline: 3px solid var(--mp-blauw); outline-offset: 3px; }
body .mp-knop { text-decoration: none; }
@media (min-width: 640px) { .mp-duration-dialog { inset: 0; margin: auto; height: fit-content; border-radius: 20px; } }
@media (max-width: 767px), (pointer: coarse) and (max-width: 1366px) {
  html { scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px)); }
  .mp-paginanav { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 55; display: flex; gap: 4px; padding: 4px max(12px, 3vw); overflow-x: auto; scrollbar-width: none; background: var(--mp-bg); border-bottom: 1px solid var(--mp-lijn); font-family: var(--mp-tekst); }
  .mp-paginanav a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--mp-inkt); font-size: 15px; font-weight: 700; text-decoration: none; }
  .mp-paginanav a:focus-visible { outline: 2px solid var(--mp-blauw); outline-offset: -2px; }
  .mp .mp-tijd-typen { display: none; }
  .mp .mp-tijdkiezer { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; width: 100%; min-width: 0; min-height: 88px; padding: 12px 28px 12px 12px; border: 1.5px solid var(--mp-blauw); border-radius: 14px; background: var(--mp-wit); color: var(--mp-inkt); text-align: left; cursor: pointer; }
  .mp-tijdkiezer .mp-tijdwaarde { font: 700 30px/1.1 var(--mp-kop); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .mp-tijdkiezer .mp-tijdeenheid { font: 400 13px/1.25 var(--mp-tekst); color: var(--mp-zacht); }
  .mp-tijdkiezer svg { position: absolute; right: 8px; top: calc(50% - 9px); width: 18px; height: 18px; color: var(--mp-blauw); }
  .mp #mp-tempohint, .mp #mp-eindhint { display: none; }
  .mp .mp-reken > button[type="submit"] { margin-top: 0; min-height: 48px; }
  .mp .mp-reken { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding: 16px; border-radius: 18px; }
  .mp .mp-reken > div:nth-child(3), .mp .mp-reken > p, .mp .mp-reken > button { grid-column: 1 / -1; }
  .mp .mp-select { height: 52px; font-size: 16px; }
  .mp .mp-reken .mp-label { font-size: 14px; }
  .mp .mp-reken .mp-of { font-size: 15px; line-height: 1.5; }
  .mp .mp-reken .mp-uitkomst { font-size: 16px; line-height: 1.6; }
  .mp .mp-reken .mp-uitkomst b { font-size: 22px; }
  .mp :where(input, select):not(:where(#stage *)) { font-size: max(16px, 1em); }
  .mp .mp-naam { font-size: 20px; min-height: 48px; }
  .mp .mp-veldinput, .mp .mp-snel, .mp .mp-mee-extra { min-height: 48px; }
  .mp .mp-mee button, .mp .mp-seg button, .mp .mp-link, .mp .mp-plekerbij { min-height: 48px; font-size: 15px; }
  .mp .mp-chip { width: 48px; min-height: 56px; }
  .mp .mp-sluit { width: 48px; height: 48px; flex: none; }
  .mp .mp-knop { min-height: 48px; white-space: normal; text-align: center; line-height: 1.35; padding: 12px 18px; }
  .mp .mp-knop svg { flex: none; }
  .mp .mp-account-acties, .mp .mp-acties, .mp .mp-gpx-rij { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .mp .mp-acties > *, .mp .mp-gpx-rij > .mp-knop, .mp .mp-account-acties > .mp-knop { width: 100%; box-sizing: border-box; }
  .mp .mp-account-akkoord { overflow-wrap: anywhere; }
  .mp .mp-account .mp-knop { min-height: 48px; }
  .mp .mp-uitleg li { font-size: 16px; }
  .mp .mp-pdfsup .mp-chip { width: 48px; min-height: 56px; }
  .mp .mp-doel { min-width: 0; }
  .mp .mp-doel .mp-tijdkiezer { max-width: 280px; }
  .mp .mp-uren { scroll-snap-type: x proximity; }
  .mp .mp-uur { scroll-snap-align: start; }
}
@media (max-width: 639px) {
  body .mp-opening-in { padding: 24px 16px 32px; }
  body .mp-opening-boven { margin-top: 0; max-width: calc(100% - 88px); min-height: 60px; font-size: 15px; line-height: 1.4; }
  body .mp-opening-sienna { top: 18px; right: 10px; height: 82px; width: auto; }
  body .mp-opening h1 { margin-top: 16px; max-width: none; font-size: clamp(34px, 9.8vw, 44px); line-height: 1.06; letter-spacing: -.025em; }
  body .mp-kies { margin-top: 24px; }
  body .mp-kies legend { font-size: 16px; margin-bottom: 10px; }
  body .mp-kiesrij { gap: 8px; }
  body .mp-kiesoptie { padding: 12px 8px; border-radius: 12px; }
  body .mp-kiesoptie b { font-size: clamp(19px, 5.3vw, 23px); }
  body .mp-kiesoptie span { font-size: 13px; line-height: 1.35; }
  body .mp-opening-onder { margin-top: 24px; gap: 24px; }
  body .mp-opening-tekst { font-size: 17px; line-height: 1.5; }
  body .mp-feitchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  body .mp-feitchips li { padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
  body .mp-opening-knoppen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
  body .mp-opening .mp-knop { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 16px; font-size: 16px; line-height: 1.35; white-space: normal; }
  body .mp-weerkaart { padding: 20px; border-radius: 16px; }
  body .mp-weerkaart b { font-size: 26px; line-height: 1.15; }
  body .mp-weerkaart small { font-size: 14px; line-height: 1.5; }
  .mp .mp-held { margin-top: 0; gap: 20px; }
  .mp .mp-boven { max-width: calc(100% - 72px); font-size: 14px; line-height: 1.4; gap: 8px; }
  .mp .mp-boven svg { width: 20px; height: 20px; }
  .mp .mp-wissel { display: flex; align-items: center; width: fit-content; min-height: 44px; margin-left: 0; font-size: 14px; }
  .mp .mp-sienna { height: 96px; top: 0; right: 0; }
  .mp .mp-h1 { margin-top: 12px; }
  .mp .mp-h1 span { font-size: 28px; line-height: 1.1; }
  .mp .mp-h1 strong { margin-top: 8px; font-size: clamp(72px, 22vw, 96px); line-height: .95; white-space: nowrap; }
  .mp .mp-lead { font-size: 17px; line-height: 1.5; }
  .mp .mp-kop { padding-block: 32px 40px; }
  .mp .mp-kop > .mp-klein { margin-top: 16px; font-size: 14px; line-height: 1.5; }
  .mp .mp-h2 { font-size: 30px; line-height: 1.08; }
  .mp .mp-sectiekop { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .mp .mp-knoop { width: 36px; height: 36px; }
  .mp .mp-knoop svg { width: 22px; height: 22px; }
  .mp .mp-sectie { padding-block: 40px; }
  .mp .mp-intro { font-size: 17px; line-height: 1.5; }
  .mp .mp-mensen { margin-top: 112px; gap: 112px 16px; }
  .mp .mp-groep img { height: calc(96px * var(--fig-schaal, 1)) !important; }
  .mp .mp-mens { padding: 16px; }
  .mp .mp-mens-plus { height: 120px; margin-top: -88px; }
  .mp .mp-plus { padding: 16px; }
  .mp .mp-plus i { width: 48px; height: 48px; }
  .mp .mp-tijd strong { font-size: 34px; }
  .mp .mp-voet { gap: 20px; }
  .mp .mp-kled { padding: 20px; }
  .mp .mp-kled h3 { font-size: 24px; }
  .mp .mp-gpx { padding: 16px; }
  .mp.mp-pdf { padding-inline: 12px; gap: 16px; }
  .mp .mp-paneel { padding: 16px; }
  .mp .mp-paneelkop { position: sticky; top: -1px; z-index: 2; padding-block: 8px; background: var(--mp-bg); }
  .mp .mp-figkeuze { gap: 6px; }
  .mp .mp-figkeuze button { width: 60px; }
}
@media (max-width: 359px) { .mp-tijdkiezer .mp-tijdwaarde { font-size: 26px; } .mp-paginanav a { padding-inline: 8px; font-size: 14px; } }
@media (max-height: 450px) and (orientation: landscape) { .mp-duration-dialog { padding-block: 12px; } .mp-duration-dialog form { gap: 12px; } .mp-duration-parts select { height: 52px; } }
@media (max-width: 767px), (pointer: coarse) and (max-width: 1366px) {
  .mp .mp-reken > .mp-uitkomst { order: 0; }
}
@media (max-width: 767px), (pointer: coarse) and (max-width: 1366px) {
  .mp .mp-wissel { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 359px) { .mp-tijdkiezer .mp-tijdwaarde { font-size: 24px; } }
@media (max-height: 450px) and (orientation: landscape) {
  body .mp-opening-sienna { height: 82px; top: 18px; }
  body .mp-opening-boven { min-height: 64px; max-width: calc(100% - 100px); font-size: 15px; }
  body .mp-opening h1 { font-size: 40px; line-height: 1.06; }
  .mp .mp-h1 span { font-size: 30px; }
  .mp .mp-h1 strong { font-size: 96px; }
}
@media (max-width: 639px) {
  body .mp-plensvoet-in { padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
  body .mp-plensvoet h2 { font-size: 14px; }
  body .mp-plensvoet a, body .mp-pv-tekst, body .mp-pv-merk p { font-size: 16px; }
}
/* Weather bands fill their parent right through the bottom corners. */
body .mp-uur .mp-jij { margin-inline: -10px; margin-top: auto; padding: 10px 6px; }
body .mp-uur { padding-top: 20px; }
body .mp-uur .mp-klein2:last-of-type { margin-bottom: 12px; }
body .mp-hcijfers { display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; }
body .mp-hcijfers li { display: flex; align-items: baseline; justify-content: center; gap: 4px; flex: 1; padding: 8px 4px; white-space: nowrap; font-size: 13px; border-radius: 10px; }
body .mp-hcijfers b { font-size: 17px; }
body .mp-hoogtekop { display: grid; gap: 16px; margin-top: 24px; }
body .mp-hoogtekop h3 { font-size: clamp(23px, 5.5vw, 32px); line-height: 1.15; }
body .mp-colofon h2 { font: 700 24px/1.2 var(--mp-kop); }
body .mp-colofon details > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 16px; font-weight: 700; }
body .mp-colofon details p { max-width: 70ch; margin-block: 8px 16px; font-size: 15px; line-height: 1.5; }
body .mp-hcijfers { max-width: 480px; }
@media (min-width: 900px) { body .mp-hoogtekop { display: flex; flex-wrap: nowrap; } body .mp-hcijfers { width: min(480px, 45%); flex: none; } }

/* Keep native select interaction; draw one aligned chevron with room for its text. */
:root { --mp-keuzepijl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1B3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] { --mp-keuzepijl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFEF9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mp-keuzepijl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFEF9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
body .mp-select, body .mp-snel { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: var(--mp-keuzepijl); background-repeat: no-repeat; background-position: right 16px center; background-size: 20px 20px; cursor: pointer; text-overflow: ellipsis; }
.mp-opening-bewaren { margin-top: 16px; display: grid; gap: 4px; font-size: 15px; line-height: 1.5; }
.mp-opening-bewaren a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: inherit; font-weight: 700; text-underline-offset: 3px; }
.mp-opening-bewaren span { color: var(--mp-opening-zacht, #FFFFFF); }
body .mp-account h3 { margin: 0 0 8px; font: 700 24px/1.2 var(--mp-kop); }
@media (forced-colors: active) { body .mp-select, body .mp-snel { appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: 16px; } }
