/* Mijn Haven — klantportaal voor ligplaatshouders.
 * Ontwerp D "Rivierblauw" (docs/PLAN-MIJN-HAVEN.md §7).
 * Doelgroep 60–80 jaar: 18px tekst, knoppen ≥ 48px, een woord naast
 * elk icoon, AA-contrast, zichtbare focus.  Geen build-stap.
 *
 * De klassen hieronder zijn een contract: alle pagina's in /mijn/
 * gebruiken ze.  Hernoem niets zonder de pagina's mee te nemen.
 */

:root {
	--mh-navy: #0d2c44;
	--mh-navy-2: #123a58;
	--mh-navy-3: #1d4766;
	--mh-blue: #1769a8;
	--mh-blue-dark: #0f4f80;
	--mh-yellow: #ffd34d;
	--mh-green: #146c3a;
	--mh-purple: #4b2f8f;
	--mh-orange: #f2994a;
	--mh-red: #9b1c1c;
	--mh-bg: #eef3f7;
	--mh-ring: #d6e0ea;
	--mh-line: #e3eaf1;
	--mh-text: #0d2c44;
	--mh-muted: #3b4e5f;
	--mh-radius: 26px;
	/* Breedte: op een bureaublad de volle schermbreedte (Dennis, 2026-10-09),
	 * met een ruime zijmarge.  Alleen op een heel breed scherm stopt het. */
	--mh-max: 1840px;
	--mh-side: 16px;
	/* Hoogte van de zwevende tabbalk + marge: zoveel ruimte houdt de
	 * onderkant van elke pagina vrij. */
	--mh-tabs-space: calc(76px + 14px + 28px + env(safe-area-inset-bottom, 0px));
	--mh-head:'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mh-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.mh-body {
	margin: 0;
	background: var(--mh-bg);
	color: var(--mh-text);
	font-family: var(--mh-body);
	font-size: 18px;
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
img, svg { max-width: 100%; }
img { height: auto; }
/* Geen grijze flits bij een tik (Android); de knoppen hebben een eigen
 * :active-toestand. */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
a { color: var(--mh-blue); }
a:hover { color: var(--mh-blue-dark); }
h1, h2, h3, .mh-h2, .mh-big, .mh-title { font-family: var(--mh-head); }

/* Zichtbare focus: geel met een donkere rand, dus te zien op wit én op navy. */
:focus { outline: none; }
:focus-visible {
	outline: 3px solid var(--mh-yellow);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--mh-navy);
}
main:focus { outline: none; box-shadow: none; }

.mh-skip {
	position: absolute; left: 12px; top: -80px; z-index: 100;
	background: var(--mh-yellow); color: var(--mh-navy);
	font-weight: 700; padding: 12px 18px; border-radius: 12px;
	text-decoration: none;
}
.mh-skip:focus { top: 12px; }

.mh-sr {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

/* --- Kop ------------------------------------------------------------ */

.mh-head {
	background: var(--mh-navy);
	color: #fff;
	border-radius: 0 0 34px 34px;
}
.mh-head__in {
	max-width: var(--mh-max);
	margin: 0 auto;
	padding: 16px var(--mh-side) 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.mh-head__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
}
.mh-logo { display: inline-flex; align-items: center; min-height: 48px; }
.mh-logo img { height: 36px; width: auto; display: block; }
.mh-title {
	margin: 0;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.05;
	overflow-wrap: anywhere;
}
.mh-back {
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 48px; padding: 0 18px 0 12px;
	border-radius: 999px;
	background: var(--mh-navy-3); color: #fff;
	font-weight: 700; text-decoration: none;
}
.mh-back:hover { color: #fff; background: #285a7f; }
.mh-hero { display: flex; flex-direction: column; gap: 14px; }
.mh-hero a:not([class]) { color: #fff; }

/* --- Tabbalk: zwevend onderaan op een telefoon ----------------------- */

.mh-tabs {
	position: fixed;
	left: 12px; right: 12px;
	bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	height: 76px;
	display: flex;
	padding: 0 4px;
	background: var(--mh-navy);
	border-radius: var(--mh-radius);
	box-shadow: 0 12px 30px -10px rgba(13, 44, 68, .6), 0 0 0 1px rgba(255, 255, 255, .08);
	max-width: 560px;
	margin: 0 auto;
}
.mh-tab {
	flex: 1 1 0;
	min-width: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 3px;
	color: #d5e3ee;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	letter-spacing: -.01em;
	white-space: nowrap;
	border-radius: 18px;
}
.mh-tab:hover { color: #fff; }
.mh-tab__icon { display: flex; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 379.98px) { .mh-tabs { left: 8px; right: 8px; padding: 0 2px; } .mh-tab { font-size: 13.5px; } }
.mh-tab[aria-current="page"] { color: #fff; }
.mh-tab[aria-current="page"] .mh-tab__icon { background: var(--mh-yellow); color: var(--mh-navy); }

/* --- Inhoud ----------------------------------------------------------- */

.mh-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--mh-max);
	margin: 0 auto;
	padding: 20px var(--mh-side) 8px;
}
.mh-main p { margin: 0 0 .6em; }
.mh-main p:last-child { margin-bottom: 0; }
.mh-card > p, .mh-blk > p, .mh-card > form, .mh-blk > form { margin: 0; }
h2.mh-label, h3.mh-label { margin: 0; }

.mh-stack { display: flex; flex-direction: column; gap: 14px; }
.mh-stack > * { margin-top: 0; margin-bottom: 0; }
.mh-main .mh-stack > p { margin: 0; }

.mh-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 359.98px) { .mh-grid2 { grid-template-columns: minmax(0, 1fr); } }

.mh-card {
	background: #fff;
	border-radius: var(--mh-radius);
	box-shadow: 0 0 0 1px var(--mh-ring);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.mh-card--late { box-shadow: 0 0 0 3px #d64545; }
.mh-card--warn { box-shadow: 0 0 0 2px var(--mh-orange); }
/* Een kaart met kop: de kop zit tegen de inhoud, niet 10px los. */
.mh-card > .mh-h2:first-child { margin: 0; }

/* Twee kolommen naast elkaar vanaf 992px (facturen, factuur, afwezig,
 * punten); op een telefoon gewoon onder elkaar. */
.mh-cols { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mh-cols > * { min-width: 0; }

/* Kaarten in een raster: een kolom op een telefoon, zoveel als passen
 * op een groter scherm. */
.mh-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 720px) {
	.mh-cards { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
}

/* Eén factuur: op een telefoon bedrag → regels → betalingen → PDF; vanaf
 * 992px het bedrag en de PDF links, de regels rechts. */
.mh-inv__back { align-self: center; }
.mh-row--total { background: #f5f8fb; }
.mh-hero__sub { margin: 0; color: #d5e3ee; overflow-wrap: anywhere; }
@media (max-width: 991.98px) {
	.mh-inv > .mh-stack { display: contents; }
	.mh-inv__end { order: 2; }
}
@media (min-width: 992px) { .mh-inv__back { align-self: flex-start; } }

/* Afwezig: knoppen onder een kaart, de seizoensteller, de stappenbalk. */
.mh-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
@media (min-width: 560px) {
	.mh-actions { flex-direction: row; flex-wrap: wrap; }
	.mh-actions > .mh-btn { flex: 1 1 180px; width: auto; }
}
.mh-away-range { margin: 0; overflow-wrap: anywhere; }
.mh-blk.mh-season { flex-direction: row; align-items: center; gap: 14px; }
.mh-blk.mh-season > .mh-big { flex: none; }
.mh-wizbar { display: flex; gap: 6px; max-width: 560px; }
.mh-wizbar > span { flex: 1; height: 8px; border-radius: 4px; background: var(--mh-navy-3); }
.mh-wizbar > span.is-done { background: var(--mh-yellow); }

/* Meer en Privacy: kaarten onder elkaar; op een groot scherm naast elkaar. */
.mh-meer { display: flex; flex-direction: column; gap: 14px; }
.mh-logout-all { display: flex; flex-direction: column; gap: 8px; }
.mh-meer .mh-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-who__sub { color: #d5e3ee; }
.mh-priv { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 992px) {
	.mh-meer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
	.mh-priv { display: block; column-count: 2; column-gap: 18px; }
	.mh-priv > * { break-inside: avoid; margin: 0 0 18px; }
}
@media (min-width: 1400px) {
	.mh-meer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mh-priv { column-count: 3; }
}

/* Leeg: rustige kaart met een icoon en één zin. */
.mh-empty { flex-direction: row; align-items: center; gap: 14px; }
.mh-empty__icon {
	flex: none; width: 48px; height: 48px; border-radius: 24px;
	display: flex; align-items: center; justify-content: center;
	background: #e1effa; color: var(--mh-blue-dark);
}
.mh-empty p { margin: 0; font-weight: 700; }

.mh-label { font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.mh-big { font-family: var(--mh-head); font-size: 44px; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.mh-h2 { font-family: var(--mh-head); font-size: 24px; font-weight: 800; line-height: 1.2; margin: 8px 0 0; }
.mh-muted { color: var(--mh-muted); }
.mh-center { text-align: center; }
.mh-small { font-size: 16px; }

/* --- Kleurblokken ------------------------------------------------------ */

.mh-blk {
	border-radius: var(--mh-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	min-width: 0;
	background: #fff;
	color: var(--mh-text);
	box-shadow: 0 0 0 1px var(--mh-ring);
}
a.mh-blk { transition: transform .12s ease, filter .12s ease; }
a.mh-blk:hover { filter: brightness(1.06); }
a.mh-blk:active { transform: scale(.99); }
.mh-blk--blue   { background: var(--mh-blue);   color: #fff; box-shadow: 0 16px 30px -14px rgba(23, 105, 168, .7); }
.mh-blk--yellow { background: var(--mh-yellow); color: #3b2a00; box-shadow: none; }
.mh-blk--green  { background: var(--mh-green);  color: #fff; box-shadow: none; }
.mh-blk--purple { background: var(--mh-purple); color: #fff; box-shadow: none; }
.mh-blk--navy   { background: var(--mh-navy);   color: #fff; box-shadow: none; }
.mh-blk--orange { background: var(--mh-orange); color: #2b1300; box-shadow: none; }
.mh-blk--grey   { background: #e3eaf1; color: var(--mh-muted); box-shadow: none; }
.mh-blk--red    { background: #b42318;          color: #fff; box-shadow: none; }
a.mh-blk--blue:hover, a.mh-blk--green:hover, a.mh-blk--purple:hover, a.mh-blk--navy:hover { color: #fff; }
a.mh-blk--yellow:hover { color: #3b2a00; }
a.mh-blk--orange:hover { color: #2b1300; }
.mh-blk--blue .mh-muted, .mh-blk--blue .mh-label { color: #e1eef9; }
.mh-blk--green .mh-muted, .mh-blk--green .mh-label { color: #d4f0de; }
.mh-blk--purple .mh-muted, .mh-blk--purple .mh-label { color: #e4dbf7; }
.mh-blk--navy .mh-muted, .mh-blk--navy .mh-label { color: #d5e3ee; }
.mh-blk--yellow .mh-muted, .mh-blk--orange .mh-muted { color: inherit; }
.mh-blk--blue a:not([class]), .mh-blk--green a:not([class]),
.mh-blk--purple a:not([class]), .mh-blk--navy a:not([class]),
.mh-blk--red a:not([class]) { color: #fff; }

/* --- Knoppen en links ------------------------------------------------ */

.mh-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 12px 18px;
	border: 0;
	border-radius: 16px;
	background: var(--mh-blue);
	color: #fff;
	font-family: var(--mh-head);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .12s ease, transform .08s ease;
}
.mh-btn:hover { background: var(--mh-blue-dark); color: #fff; }
.mh-btn:active { transform: scale(.985); }
.mh-btn:disabled, .mh-btn[aria-disabled="true"] { background: #8aa2b6; cursor: not-allowed; }
.mh-btn--light { background: #fff; color: var(--mh-blue-dark); }
.mh-btn--light:hover { background: #e1eef9; color: var(--mh-blue-dark); }
.mh-btn--ghost { background: #fff; color: var(--mh-navy); box-shadow: inset 0 0 0 1px #b8c7d6; }
.mh-btn--ghost:hover { background: #f3f7fa; color: var(--mh-navy); }
.mh-btn--danger { background: #fff; color: var(--mh-red); box-shadow: inset 0 0 0 1px #e6b3b3; }
.mh-btn--danger:hover { background: #fdf0f0; color: var(--mh-red); }
.mh-btn svg { flex: none; }
form > .mh-btn { margin: 0; }

.mh-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	color: var(--mh-blue);
	text-decoration: none;
}
.mh-link:hover { text-decoration: underline; }
.mh-link:active { opacity: .75; }
.mh-blk .mh-link { color: inherit; }

/* --- Chips ------------------------------------------------------------ */

.mh-chip {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	background: var(--mh-bg);
	color: var(--mh-muted);
}
.mh-chip--ok   { background: #dff3e6; color: #0f5530; }
.mh-chip--open { background: #fff1d6; color: #7a4a00; }
.mh-chip--late { background: #fde4e4; color: var(--mh-red); }
.mh-chip--info { background: #e1effa; color: var(--mh-blue-dark); }

/* "Betaal vóór … en ontvang 50 Havenpunten" bij een open factuur
 * (factuur.php, facturen.php, Home).  Geen pil: de zin mag op een
 * telefoon over twee regels lopen. */
.mh-ptsoffer {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 12px;
	border-radius: 12px;
	background: #fff6d1;
	color: #4a3600;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.mh-ptsoffer svg { flex: none; }
.mh-ptsoffer svg path { fill: var(--mh-yellow); stroke: #b8860b; }
.mh-blk--blue .mh-ptsoffer { background: var(--mh-yellow); color: var(--mh-navy); }
.mh-blk--blue .mh-ptsoffer svg path { fill: #fff; stroke: var(--mh-navy); }

/* --- Meldingen -------------------------------------------------------- */

.mh-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 16px;
	border-radius: 22px;
	background: #e1effa;
	color: var(--mh-navy);
}
.mh-alert > svg, .mh-alert__icon { flex: none; }
.mh-alert > div, .mh-alert > p { flex: 1 1 auto; min-width: 0; margin: 0; }
.mh-alert__title { display: block; font-family: var(--mh-head); font-size: 21px; font-weight: 700; line-height: 1.2; }
.mh-alert--orange { background: var(--mh-orange); color: #2b1300; }
.mh-alert--red    { background: #b42318; color: #fff; }
.mh-alert--green  { background: var(--mh-green); color: #fff; }
.mh-alert--red a:not([class]), .mh-alert--green a:not([class]) { color: #fff; }
.mh-alert--orange a:not([class]) { color: #2b1300; }
/* Een icoon als de pagina er zelf geen meegeeft. */
.mh-alert:not(:has(> svg, > .mh-alert__icon))::before {
	content: "i";
	flex: none;
	width: 32px; height: 32px;
	border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--mh-head);
	font-weight: 800;
	font-size: 19px;
	background: var(--mh-navy);
	color: #fff;
}
.mh-alert--orange:not(:has(> svg, > .mh-alert__icon))::before { content: "!"; background: #2b1300; color: var(--mh-orange); }
.mh-alert--red:not(:has(> svg, > .mh-alert__icon))::before    { content: "!"; background: #fff; color: #b42318; }
.mh-alert--green:not(:has(> svg, > .mh-alert__icon))::before  { content: "✓"; background: #fff; color: var(--mh-green); }

/* --- Lijsten ---------------------------------------------------------- */

.mh-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border-radius: var(--mh-radius);
	box-shadow: 0 0 0 1px var(--mh-ring);
	overflow: hidden;
}
.mh-row {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--mh-line);
	color: var(--mh-text);
	text-decoration: none;
}
.mh-row:last-child, .mh-list > li:last-child > .mh-row { border-bottom: 0; }
a.mh-row:hover { background: #f5f8fb; color: var(--mh-text); }
a.mh-row:active { background: #e8f0f7; }
.mh-row__main > strong { overflow-wrap: anywhere; }
.mh-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mh-row__end { flex: none; text-align: right; font-family: var(--mh-head); font-weight: 700; }
.mh-row__icon {
	flex: none; width: 44px; height: 44px; border-radius: 22px;
	display: flex; align-items: center; justify-content: center;
	background: var(--mh-green); color: #fff;
}

/* --- Formulieren ------------------------------------------------------ */

.mh-field { display: flex; flex-direction: column; gap: 6px; }
.mh-field > label, .mh-field > .mh-field__label { font-weight: 700; }
.mh-field__hint { font-size: 16px; color: var(--mh-muted); }
.mh-input {
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	border: 2px solid #b8c7d6;
	border-radius: 16px;
	background: #fff;
	color: var(--mh-text);
	font-family: inherit;
	font-size: 18px;
	line-height: 1.4;
}
textarea.mh-input { min-height: 112px; resize: vertical; }
.mh-input:focus-visible { border-color: var(--mh-blue); }
.mh-input[aria-invalid="true"] { border-color: #b42318; }

/* --- Maandkalender --------------------------------------------------- */

.mh-cal {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	text-align: center;
}
.mh-cal > form { display: contents; }
.mh-cal__head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mh-cal__dow, .mh-cal abbr, .mh-cal th {
	font-size: 15px; font-weight: 700; color: var(--mh-muted);
	text-decoration: none; padding: 4px 0;
}
.mh-cal button, .mh-cal a, .mh-cal .mh-cal__day {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 46px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--mh-text);
	font-family: var(--mh-body);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--mh-line);
}
/* Alleen met een echte muis: op een telefoon blijft :hover na een tik
   hangen, en de kalender wisselt zonder herladen (mijn-app.js). */
@media (hover: hover) {
	.mh-cal button:hover, .mh-cal a:hover { background: #e1effa; }
	.mh-cal .is-range:hover { background: #c2e8cf; }
	.mh-cal .is-edge:hover, .mh-cal [aria-pressed="true"]:hover { background: var(--mh-green); }
}
.mh-cal .is-range { background: #d4f0de; color: #0f4f2a; box-shadow: none; }
.mh-cal .is-edge, .mh-cal [aria-pressed="true"] { background: var(--mh-green); color: #fff; box-shadow: none; }
.mh-cal .is-today { box-shadow: inset 0 0 0 2px var(--mh-blue); }
.mh-cal .is-edge.is-today { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--mh-blue); }
.mh-cal .is-disabled, .mh-cal button:disabled {
	background: transparent; color: #8796a3;
	text-decoration: line-through; font-weight: 400;
	cursor: not-allowed; box-shadow: none;
}
/* De eerste nacht in stap 2 kan geen laatste nacht zijn, maar hoort wel
   groen te staan: dat is het begin van de periode. */
.mh-cal .is-edge.is-disabled {
	background: var(--mh-green); color: #fff;
	text-decoration: none; font-weight: 700; cursor: default;
}
.mh-cal .is-empty { visibility: hidden; }

/* --- Toast ----------------------------------------------------------- */

.mh-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 60;
	width: calc(100% - 32px);
	max-width: 440px;
	padding: 14px 20px;
	border-radius: 20px;
	background: var(--mh-navy);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 16px 30px -10px rgba(13, 44, 68, .55);
	display: flex; align-items: center; gap: 10px;
}
.mh-has-tabs .mh-toast { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }

/* --- Voet -------------------------------------------------------------- */

.mh-foot {
	width: 100%;
	max-width: var(--mh-max);
	margin: 0 auto;
	padding: 20px var(--mh-side) 28px;
	text-align: center;
}
/* De zwevende tabbalk mag nooit iets afdekken: de voet houdt onderaan
 * de hoogte van de balk + marge vrij. */
.mh-has-tabs .mh-foot { padding-bottom: var(--mh-tabs-space); }
.mh-foot p { margin: 0; }
.mh-foot__call {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 48px;
	padding: 0 6px;
	font-family: var(--mh-head);
	font-size: 22px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}
.mh-foot__call:hover { text-decoration: underline; }
.mh-foot__hours { font-size: 16px; color: var(--mh-muted); }

/* --- Pagina-onderdelen (Home, facturen) ------------------------------- */

/* Home-kop: begroeting en de Maas-kaart, met vaste ruimte ertussen (het
 * ligplaatslabel raakte de kaart). */
.mh-hero-split { display: flex; flex-direction: column; gap: 16px; }
.mh-greet { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-greet__hello { color: #b9d3e6; }
/* Meeschalen met de breedte: een lange naam (terugval als er geen voornaam
   is) mag niet in twee reuzenregels breken, en blijft op een telefoon groot
   genoeg om te lezen. */
.mh-greet__name { font-family: var(--mh-head); font-size: clamp(28px, 3vw + 18px, 46px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; }
.mh-berth {
	align-self: flex-start;
	max-width: 100%;
	margin-top: 10px;
	padding: 6px 14px;
	border-radius: 16px;
	background: var(--mh-navy-3);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

/* De Maas vandaag — compact: kleine meter links, het woord rechts, de
 * vierstappenschaal eronder.  Ongeveer de helft van de oude hoogte. */
.mh-dial {
	background: var(--mh-navy-2);
	border-radius: 22px;
	padding: 14px 16px 14px;
	display: flex; flex-direction: column; gap: 12px;
	min-width: 0;
}
.mh-dial__top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mh-dial__gauge { flex: none; width: 128px; height: auto; display: block; }
.mh-dial__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mh-dial__label { margin: 0; font-family: var(--mh-body); font-size: 15px; font-weight: 700; color: #b9d3e6; line-height: 1.3; }
.mh-dial__seg { opacity: .3; }
.mh-dial__needle { transform-box: view-box; transform-origin: 140px 130px; }
.mh-dial--normaal  .mh-dial__seg--normaal,
.mh-dial--verhoogd .mh-dial__seg--verhoogd,
.mh-dial--hoog     .mh-dial__seg--hoog,
.mh-dial--zeerhoog .mh-dial__seg--zeerhoog { opacity: 1; }
.mh-dial--normaal  .mh-dial__needle { transform: rotate(18deg); }
.mh-dial--verhoogd .mh-dial__needle { transform: rotate(67deg); }
.mh-dial--hoog     .mh-dial__needle { transform: rotate(113deg); }
.mh-dial--zeerhoog .mh-dial__needle { transform: rotate(162deg); }
.mh-dial__word { font-family: var(--mh-head); font-size: 30px; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.mh-dial--normaal  .mh-dial__word { color: #6fe3a3; }
.mh-dial--verhoogd .mh-dial__word { color: #f5d466; }
.mh-dial--hoog     .mh-dial__word { color: #ffb067; }
.mh-dial--zeerhoog .mh-dial__word { color: #ff9b9b; }
.mh-dial__text { font-size: 16px; color: #d5e3ee; line-height: 1.3; }
.mh-dial__scale {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
	font-size: 14px; line-height: 1.2; color: #b9d3e6; text-align: center;
}
.mh-dial__step { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.mh-dial__step::before { content: ""; display: block; height: 6px; border-radius: 3px; background: currentColor; opacity: .35; }
.mh-dial__step--normaal::before  { background: #2fbf71; }
.mh-dial__step--verhoogd::before { background: #f2c94c; }
.mh-dial__step--hoog::before     { background: #f2994a; }
.mh-dial__step--zeerhoog::before { background: #eb5757; }
.mh-dial__step.is-on { color: #fff; font-weight: 700; }
.mh-dial__step.is-on::before { opacity: 1; height: 8px; margin-top: -1px; box-shadow: 0 0 0 2px var(--mh-navy-2), 0 0 0 4px rgba(255, 255, 255, .85); }
.mh-dial__note { font-size: 15px; color: #d5e3ee; }
.mh-dial__note--ok { color: #9ff0c2; font-weight: 700; }
.mh-dial--none .mh-dial__seg { stroke: #5d7487; opacity: .45; }
.mh-dial--none .mh-dial__needle, .mh-dial--none .mh-dial__hub { display: none; }
.mh-dial--none .mh-dial__word { color: #d5e3ee; font-size: 22px; }
.mh-dial.is-stale .mh-dial__gauge { opacity: .55; }

/* Waarschuwing bovenaan Home: compact, hoog contrast, kleur = ernst.
 * Eén regel uitleg; "Wat kunt u doen?" klapt het advies uit (details,
 * werkt zonder JavaScript). */
.mh-warn { border-radius: 20px; overflow: hidden; }
.mh-warn--orange { background: var(--mh-orange); color: #2b1300; }
.mh-warn--red    { background: #b42318; color: #fff; box-shadow: 0 0 0 2px #ffb4ab; }
.mh-warn__sum {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 2px 12px;
	min-height: 48px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
}
.mh-warn__sum::-webkit-details-marker { display: none; }
.mh-warn__icon { grid-row: 1 / span 2; margin-top: 1px; }
.mh-warn__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-warn__title { font-family: var(--mh-head); font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.mh-warn__line { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.mh-warn__more {
	grid-column: 2;
	justify-self: start;
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 8px;
	padding: 5px 10px 5px 14px;
	border-radius: 999px;
	background: rgba(43, 19, 0, .14);
	font-size: 16px; font-weight: 700; line-height: 1.3;
}
.mh-warn--red .mh-warn__more { background: rgba(255, 255, 255, .2); }
.mh-warn__more svg { transition: transform .15s ease; }
.mh-warn[open] .mh-warn__more svg { transform: rotate(180deg); }
.mh-warn__sum:hover .mh-warn__more { background: rgba(43, 19, 0, .22); }
.mh-warn--red .mh-warn__sum:hover .mh-warn__more { background: rgba(255, 255, 255, .3); }
.mh-warn__sum:focus-visible { outline-offset: -4px; }
.mh-warn__body { padding: 0 16px 16px 58px; display: flex; flex-direction: column; gap: 6px; }
.mh-warn__body .mh-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mh-warn--red .mh-steps__n { background: #fff; color: #b42318; }
@media (max-width: 379.98px) { .mh-warn__body { padding-left: 16px; } }

.mh-hero-total {
	background: var(--mh-blue);
	border-radius: 24px;
	padding: 18px;
	display: flex; flex-direction: column; gap: 2px;
	color: #fff;
}
.mh-hero-total--ok { background: var(--mh-green); }
.mh-hero-total .mh-label { color: #e1eef9; }

.mh-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mh-steps li { display: flex; gap: 12px; align-items: flex-start; }
.mh-steps__n {
	flex: none; width: 32px; height: 32px; border-radius: 16px;
	background: var(--mh-navy); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--mh-head); font-weight: 700;
}

.mh-photo { position: relative; overflow: hidden; padding: 0; min-height: 190px; background: var(--mh-navy); color: #fff; }
.mh-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.mh-photo::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(13, 44, 68, .96) 0%, rgba(13, 44, 68, .78) 55%, rgba(13, 44, 68, .1) 100%);
}
.mh-photo__body { position: relative; z-index: 1; padding: 20px; display: flex; flex-direction: column; gap: 6px; max-width: 260px; }
.mh-photo__title { font-family: var(--mh-head); font-size: 28px; font-weight: 800; line-height: 1.1; }
.mh-pill {
	align-self: flex-start; padding: 4px 12px; border-radius: 999px;
	background: var(--mh-yellow); color: #3b2a00;
	font-family: var(--mh-head); font-weight: 700; font-size: 16px;
}
.mh-call { flex-direction: row; align-items: center; gap: 14px; }
.mh-call__body { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.mh-call__nr { font-family: var(--mh-head); font-size: 22px; font-weight: 700; }
.mh-call__icon {
	flex: none; width: 52px; height: 52px; border-radius: 26px;
	background: var(--mh-navy); color: #fff;
	display: flex; align-items: center; justify-content: center;
}

.mh-call__title { font-family: var(--mh-head); font-size: 20px; font-weight: 700; line-height: 1.15; }
.mh-photo__sub { color: #d5e3ee; }

/* Home-tegels (weer, Ik ben weg): even hoog naast elkaar. */
.mh-pay { gap: 10px; }
.mh-tile { min-height: 150px; gap: 4px; }
.mh-tile__row { display: flex; align-items: center; gap: 10px; }
.mh-tile__row .mh-big { font-size: 40px; }
.mh-tile__hot { font-weight: 700; }
.mh-tile > svg { margin-bottom: 4px; }

/* Code looppoort: icoon naast de code, geen hoog blok. */
.mh-gate { flex-direction: row; align-items: center; gap: 14px; }
.mh-gate > svg { flex: none; }
.mh-gate__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* "Meer over weer en water": ingeklapt; open drie blokjes. */
.mh-cond > summary { gap: 12px; }
.mh-cond > summary > span { display: inline-flex; align-items: center; gap: 10px; }
.mh-cond__body { display: grid; gap: 16px; padding-top: 14px; }
.mh-cond__part { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-cond__part .mh-label { color: var(--mh-muted); }
.mh-cond__part .mh-dl > div { padding: 8px 0; }
.mh-cond__part p { margin: 6px 0 0; }
@media (min-width: 720px) {
	.mh-cond__body { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 32px; }
	.mh-cond__body > .mh-link { grid-column: 1 / -1; }
}

/* Home, niets te betalen: een smalle groene strook in plaats van een groot blok. */
.mh-paid { gap: 4px; }
.mh-paid__main { display: flex; flex-direction: column; gap: 2px; }
.mh-paid__last { font-weight: 700; }

/* Gewone opsomming in een kaart (privacy). */
.mh-bullets { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }

.mh-code { font-family: var(--mh-head); font-size: 40px; font-weight: 800; letter-spacing: .12em; line-height: 1; overflow-wrap: anywhere; }
.mh-blk__title { font-family: var(--mh-head); font-size: 24px; font-weight: 700; line-height: 1.15; }
.mh-amount { font-family: var(--mh-head); font-size: 28px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.mh-inv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.mh-inv-head__t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mh-inv-head__t strong { font-family: var(--mh-head); font-size: 22px; overflow-wrap: anywhere; }

.mh-details { background: #fff; border-radius: var(--mh-radius); box-shadow: 0 0 0 1px var(--mh-ring); overflow: hidden; }
.mh-details > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	min-height: 56px; padding: 12px 18px;
	font-weight: 700; cursor: pointer; list-style: none;
}
.mh-details > summary::-webkit-details-marker { display: none; }
.mh-details > summary::after {
	content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
	border-right: 3px solid var(--mh-blue); border-bottom: 3px solid var(--mh-blue);
	transform: translateY(-3px) rotate(45deg); transition: transform .15s ease;
}
.mh-details[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.mh-details > summary:hover { background: #f5f8fb; }
.mh-details > summary:active { background: #e8f0f7; }
.mh-details > .mh-list { border-radius: 0; box-shadow: none; border-top: 1px solid var(--mh-line); }

.mh-dl { margin: 0; display: flex; flex-direction: column; }
.mh-dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--mh-line); }
.mh-dl > div:last-child { border-bottom: 0; }
.mh-dl dt { color: var(--mh-muted); }
.mh-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; text-align: right; }

.mh-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--mh-bg); border-radius: 14px; padding: 4px; }
@media (min-width: 560px) { .mh-seg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mh-seg > a {
	min-height: 48px; border-radius: 12px; padding: 0 8px; text-align: center;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; text-decoration: none; color: var(--mh-navy);
}
.mh-seg > a[aria-current="true"] { background: var(--mh-navy); color: #fff; }

.mh-avatar {
	flex: none; width: 52px; height: 52px; border-radius: 26px;
	background: var(--mh-yellow); color: var(--mh-navy);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--mh-head); font-weight: 800; font-size: 20px;
}
.mh-who { display: flex; align-items: center; gap: 12px; background: var(--mh-navy-2); border-radius: 20px; padding: 12px 14px; }
.mh-who > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }

.mh-home { display: flex; flex-direction: column; gap: 14px; }

/* --- App op het beginscherm (PWA) -------------------------------------- */
/* partials/portal/_install.php + assets/js/mijn-app.js.  In de app op een
 * iPhone loopt de blauwe kop onder de statusbalk door
 * (black-translucent); de safe-area houdt logo en tabbladen eronder vrij.
 * In een gewoon browsertabblad is die inset 0. */

.mh-head .mh-head__in { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
@media (min-width: 992px) {
	.mh-head .mh-head__in { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
}

.mh-install { gap: 14px; }
.mh-install--banner { box-shadow: 0 0 0 3px var(--mh-blue); }
.mh-install__head { display: flex; align-items: center; gap: 14px; }
.mh-install__head .mh-h2 { margin: 0; }
.mh-install--banner .mh-install__head .mh-h2 { font-size: 20px; line-height: 1.25; }
.mh-install__icon { flex: none; width: 56px; height: 56px; border-radius: 14px; }
.mh-install__label { margin: 0; font-family: var(--mh-head); font-size: 20px; font-weight: 700; }
.mh-install__step { display: flex; align-items: flex-start; gap: 10px; }
.mh-install__glyph {
	flex: none; width: 40px; height: 40px; border-radius: 10px;
	background: #e1eef9; color: var(--mh-blue-dark);
	display: flex; align-items: center; justify-content: center;
}
.mh-details__body { padding: 4px 18px 18px; border-top: 1px solid var(--mh-line); }
.mh-details__body > form { padding-top: 14px; }
.mh-input--code { font-family: var(--mh-head); font-size: 28px; font-weight: 700; letter-spacing: .3em; max-width: 260px; }

/* --- Bureaublad -------------------------------------------------------- */

@media (min-width: 768px) {
	:root { --mh-side: 28px; }
}
@media (min-width: 992px) {
	:root { --mh-side: clamp(28px, 3.4vw, 56px); }
	.mh-head { border-radius: 0 0 44px 44px; }
	.mh-head__in { padding: 18px var(--mh-side) 36px; gap: 18px; }
	.mh-logo img { height: 46px; }
	.mh-title { font-size: 56px; }

	.mh-tabs {
		position: static;
		height: auto;
		margin: 0;
		max-width: none;
		padding: 0;
		background: none;
		box-shadow: none;
		border-radius: 0;
		flex-wrap: wrap;
		gap: 4px;
	}
	.mh-tab {
		flex: none;
		flex-direction: row;
		gap: 8px;
		min-height: 48px;
		padding: 0 16px 0 10px;
		border-radius: 999px;
		font-size: 18px;
		letter-spacing: 0;
	}
	.mh-tab__icon { padding: 0; }
	.mh-tab:hover { background: var(--mh-navy-3); }
	.mh-tab[aria-current="page"] { background: var(--mh-yellow); color: var(--mh-navy); }
	.mh-tab[aria-current="page"] .mh-tab__icon { background: none; }

	.mh-has-tabs .mh-foot { padding-bottom: 32px; }
	/* Samenvattingen in de kop zijn zo breed als hun inhoud vraagt. */
	.mh-hero-total, .mh-who, .mh-pts-hero { max-width: 560px; }
	.mh-hero > p { max-width: 72ch; }
	.mh-has-tabs .mh-toast { bottom: 24px; }

	.mh-main { padding: 28px var(--mh-side) 8px; }
	/* Volle breedte; alleen lopende tekst houdt een leesbare regellengte
	 * en formulieren (narrow) blijven een smalle kolom. */
	.mh-main p { max-width: 75ch; }
	.mh-main--narrow > * { max-width: 760px; }
	.mh-stack > .mh-btn, .mh-stack > form > .mh-btn, .mh-stack > form > button.mh-btn {
		width: fit-content; min-width: 320px; max-width: 100%; align-self: flex-start; padding-left: 32px; padding-right: 32px;
	}

	.mh-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
	.mh-cols > :only-child { grid-column: 1 / -1; }
	.mh-cols--aside { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }

	/* Home: kop met begroeting links en de meter rechts. */
	.mh-hero-split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px; }
	.mh-hero-split > .mh-greet { flex: 999 1 420px; min-width: 0; }
	.mh-hero-split > .mh-dial { flex: 1 1 440px; max-width: 560px; min-width: 0; }
	.mh-greet__hello { font-size: 22px; }
	.mh-dial__gauge { width: 168px; }
	.mh-warn__sum { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 16px 22px; }
	.mh-warn__icon { grid-row: auto; }
	.mh-warn__more { grid-column: 3; margin-top: 0; }
	.mh-warn__body { padding: 0 22px 20px 64px; }
	.mh-warn__body .mh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

	.mh-home {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-flow: row dense;
		gap: 18px;
	}
	.mh-home > .mh-span-all { grid-column: 1 / -1; }
	.mh-home > .mh-span2 { grid-column: span 2; }
	.mh-home > .mh-grid2 { display: contents; }
	.mh-home .mh-blk { padding: 22px; border-radius: 28px; }
	.mh-home .mh-paid { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 16px 26px; }
	.mh-home .mh-paid__main { margin-right: auto; }
	.mh-home .mh-photo { padding: 0; min-height: 240px; }
	.mh-home .mh-photo__body { padding: 26px; max-width: 380px; }
	.mh-home .mh-photo__title { font-size: 36px; }
}

/* Breed scherm: vier kolommen.  Rij 1 betalen + weer + Ik ben weg, dan
 * de weerdetails, dan punten + poortcode + boeken, en de belkaart als
 * smalle strook onderaan. */
@media (min-width: 1200px) {
	.mh-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mh-home > .mh-call { grid-column: 1 / -1; padding: 16px 26px; }
	.mh-home .mh-call__body { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 20px; }
}

/* --- Havenpunten (docs/PLAN-HAVENPUNTEN.md) ---------------------------- */

.mh-pts-hero { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.mh-progress {
	display: block; height: 14px; border-radius: 7px; overflow: hidden;
	background: rgba(255, 255, 255, .22);
}
.mh-progress > span { display: block; height: 100%; border-radius: 7px; background: var(--mh-yellow); }
.mh-blk .mh-progress { background: rgba(255, 255, 255, .22); }
.mh-pts-card { flex-direction: column; }
/* Home: het saldo op een gele sticker, een beetje scheef, als een
 * prijssticker (Dennis 2026-10-12).  Donkerblauw op geel = ruim AA. */
.mh-pts-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.mh-pts-card__head > .mh-label { padding-top: 4px; min-width: 0; overflow-wrap: anywhere; }
.mh-sticker {
	flex: none; position: relative;
	width: 112px; height: 112px; margin: -8px -6px -4px 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: var(--mh-navy); text-align: center; line-height: 1;
	transform: rotate(-8deg);
}
.mh-sticker__bg {
	position: absolute; inset: 0; width: 100%; height: 100%;
	fill: var(--mh-yellow);
	filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .35));
}
.mh-sticker__ring { fill: none; stroke: var(--mh-navy); stroke-opacity: .3; stroke-width: 1.6; stroke-dasharray: 3.2 3; }
.mh-sticker__n { position: relative; font-family: var(--mh-head); font-size: 38px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mh-sticker__u { position: relative; margin-top: 3px; font-size: 15px; font-weight: 700; }
.mh-sticker--long .mh-sticker__n { font-size: 29px; }
.mh-sticker--xl .mh-sticker__n { font-size: 22px; }
@media (prefers-reduced-motion: no-preference) {
	/* Eén keer "opplakken" bij het laden; bij aanwijzen draait hij iets bij. */
	.mh-sticker { animation: mh-stick .55s cubic-bezier(.2, 1.5, .45, 1) .15s backwards; transition: transform .2s ease; }
	a.mh-pts-card:hover .mh-sticker, a.mh-pts-card:focus-visible .mh-sticker { transform: rotate(-2deg) scale(1.05); }
}
@keyframes mh-stick {
	from { opacity: 0; transform: rotate(-30deg) scale(1.4); }
	to   { opacity: 1; transform: rotate(-8deg) scale(1); }
}
.mh-rewards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.mh-rewards:empty { display: none; }
@media (min-width: 600px) { .mh-rewards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; } }
/* Telefoon: compacte rij (foto links); vanaf 600px kaarten met de foto boven. */
.mh-reward {
	display: flex; flex-direction: row; overflow: hidden; min-width: 0;
	background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--mh-ring);
}
.mh-reward.is-can { box-shadow: 0 0 0 3px var(--mh-green); }
.mh-reward__img { display: block; flex: none; width: 96px; min-height: 96px; align-self: stretch; object-fit: cover; background: #dfe8f0; }
.mh-reward__img--none { display: flex; align-items: center; justify-content: center; color: #8aa2b6; }
.mh-reward__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
@media (min-width: 600px) {
	.mh-reward { flex-direction: column; }
	.mh-reward__img { width: 100%; height: 160px; min-height: 0; }
	.mh-reward__body { padding: 14px 16px 16px; }
}
.mh-reward__name { font-family: var(--mh-head); font-size: 20px; line-height: 1.2; }
.mh-reward__pts { background: var(--mh-navy); color: #fff; }
.mh-pts-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mh-pts-hist > li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mh-line); }
.mh-pts-hist > li:first-child { border-top: 0; }
.mh-pts-hist__main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.mh-pts-hist__n { flex: none; font-family: var(--mh-head); font-size: 22px; font-weight: 800; color: var(--mh-green); font-variant-numeric: tabular-nums; }
.mh-pts-hist__n.is-min { color: var(--mh-red); }
.mh-estimate { display: flex; flex-direction: column; gap: 4px; }

/* --- Pushmeldingen (Meer → Meldingen) en havenmelding op Home --------
 * PLAN-MIJN-HAVEN "Meldingen (push)".  De toestand kiest mijn-app.js
 * (data-push-show); zonder JavaScript staat er alleen de noscript-regel. */
.mh-alert--amber { background: #fff1d6; color: #5c3700; }
.mh-alert--amber:not(:has(> svg, > .mh-alert__icon))::before { content: "!"; background: #7a4a00; color: #fff1d6; }
.mh-alert--grey { background: #edf1f5; color: var(--mh-navy); }
.mh-alert > div > p { margin: 0 0 6px; }
.mh-alert > div > p:last-child { margin-bottom: 0; }
.mh-push__types { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mh-push__legend { padding: 0; font-family: var(--mh-head); font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.mh-switch {
	position: relative;
	display: flex; align-items: flex-start; gap: 14px;
	min-height: 56px; padding: 10px 0;
	border-top: 1px solid var(--mh-line);
	cursor: pointer;
}
.mh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mh-switch__track {
	flex: none; position: relative; width: 54px; height: 32px; margin-top: 2px;
	border-radius: 16px; background: #b8c7d6; transition: background-color .15s ease;
}
.mh-switch__track::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
	border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(13, 44, 68, .3);
	transition: transform .15s ease;
}
.mh-switch input:checked + .mh-switch__track { background: var(--mh-green); }
.mh-switch input:checked + .mh-switch__track::after { transform: translateX(22px); }
.mh-switch input:focus-visible + .mh-switch__track { outline: 3px solid var(--mh-blue); outline-offset: 2px; }
.mh-switch input:disabled + .mh-switch__track { opacity: .5; }
.mh-switch__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.mh-push__msg { margin: 0; min-height: 0; font-weight: 700; }
.mh-push__msg:empty { display: none; }
.mh-push__msg.is-error { color: var(--mh-red); }
.mh-push__msg.is-ok { color: var(--mh-green); }

/* Melding van het kantoor op Home.  Kleur per niveau, zoals de balk op de
   website (partials/_site_announce.php): info blauw, let op oranje,
   belangrijk rood.  Tekst, link, sluitknop en focusrand volgen de
   tekstkleur (currentColor), dus het contrast klopt per niveau.  Sluiten
   per toestel: mijn-app.js. */
.mh-ann {
	display: flex; align-items: flex-start; gap: 14px;
	padding: 18px; border-radius: var(--mh-radius);
	background: var(--mh-blue); color: #fff;
	min-width: 0;
}
.mh-ann--letop      { background: var(--mh-orange); color: #2b1300; }
.mh-ann--belangrijk { background: #b42318; color: #fff; box-shadow: 0 0 0 2px #ffb4ab; }
.mh-ann__icon { flex: none; margin-top: 2px; }
.mh-ann__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.mh-ann__label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mh-ann__title { margin: 0; font-family: var(--mh-head); font-size: 22px; line-height: 1.2; color: inherit; }
.mh-ann__text { margin: 0; }
.mh-ann__date { font-size: 15px; }
.mh-ann .mh-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; align-self: flex-start; }
.mh-ann .mh-link:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.mh-ann__close {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin: -8px -8px 0 0;
	border: 0; border-radius: 24px; background: transparent; color: inherit; cursor: pointer;
}
.mh-ann__close:hover { background: rgba(0, 0, 0, .14); }
.mh-ann__close:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.mh-tabs, .mh-skip, .mh-foot { display: none !important; }
	.mh-head { background: #fff; color: #000; }
}

/* --- "Hoe werkt het?" bij Ik ben weg -----------------------------------
 * mijn/afwezig.php, mh_away_howto().  Voor iedereen leesbaar, ook voor
 * 75-plussers: grote letters, veel contrast, een grote vlak om op te
 * tikken.  Bovenaan stap 1 dicht (uitklapper boven de kalender), op het
 * overzicht open. */
.mh-howto > summary {
	min-height: 72px; padding: 14px 18px;
	background: #e1eef9; color: var(--mh-navy);
	font-size: 20px; line-height: 1.25;
}
.mh-howto > summary:hover { background: #d4e6f6; }
.mh-howto > summary:active { background: #c7def3; }
.mh-howto > summary::after { width: 14px; height: 14px; border-color: var(--mh-navy); }
.mh-howto[open] > summary { border-bottom: 1px solid var(--mh-ring); }
.mh-howto__sum { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mh-howto__sumicon {
	flex: none; width: 46px; height: 46px; border-radius: 50%;
	background: var(--mh-blue); color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.mh-howto__sumtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-family: var(--mh-head); }
.mh-howto__sumtext small { font-family: var(--mh-body); font-size: 17px; font-weight: 400; color: var(--mh-muted); }
.mh-howto__body { display: flex; flex-direction: column; padding: 4px 18px 8px; }
.mh-howto__row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--mh-line); }
.mh-howto__row:last-child { border-bottom: 0; }
.mh-howto__icon {
	flex: none; width: 46px; height: 46px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
}
.mh-howto__icon--blue   { background: #e1eef9; color: var(--mh-blue-dark); }
.mh-howto__icon--gold   { background: #fff1c2; color: #6b4b00; }
.mh-howto__icon--green  { background: #dcf2e4; color: var(--mh-green); }
.mh-howto__icon--orange { background: #ffe6d1; color: #8a3f00; }
.mh-howto__txt { flex: 1; min-width: 0; }
.mh-howto__txt h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; }
.mh-howto__txt p { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.mh-howto__txt p:last-child { margin-bottom: 0; }
.mh-tiers { margin: 10px 0 12px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--mh-ring); }
.mh-tiers > div {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
	gap: 2px 14px; padding: 12px 14px; font-size: 18px; line-height: 1.35;
}
.mh-tiers > div + div { border-top: 1px solid var(--mh-line); }
.mh-tiers dt { color: var(--mh-text); }
.mh-tiers dd { margin: 0; font-weight: 700; }
.mh-tiers .is-low   { background: #fff6ee; }
.mh-tiers .is-low dd { color: #8a3f00; }
.mh-tiers .is-all dd { color: var(--mh-text); }
.mh-tiers .is-bonus { background: #f0f9f3; }
.mh-tiers .is-bonus dd { color: var(--mh-green); }
@media (max-width: 420px) {
	.mh-howto__body { padding: 4px 14px 8px; }
	.mh-howto__row { gap: 12px; }
	.mh-howto__icon { width: 40px; height: 40px; border-radius: 12px; }
	.mh-tiers dd { flex-basis: 100%; }
}

/* --- Aan de haven: evenement + foodtrucks ------------------------------
 * Home-kaartje (partials/portal/_home_harbour.php) en de pagina
 * mijn/evenementen.php; regels .mh-ft-row uit partials/portal/_harbour.php.
 * docs/PLAN-MIJN-HAVEN.md §3.8. */
/* Home: één compact kaartje met het eerstvolgende (evenement of foodtruck),
 * het hele kaartje is de link.  Dennis 2026-10-12. */
.mh-hbm-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mh-hbm {
	display: flex; align-items: center; gap: 16px; min-width: 0;
	padding: 14px 16px; border-radius: 22px;
	background: #fff; color: var(--mh-text); text-decoration: none;
	box-shadow: 0 0 0 1px var(--mh-ring), 0 14px 26px -22px rgba(13, 44, 68, .5);
}
.mh-hbm:hover { background: #f5f8fb; color: var(--mh-text); }
.mh-hbm__pic {
	flex: none; width: 76px; height: 76px; border-radius: 18px; object-fit: cover; max-width: none;
	background: var(--mh-navy-3); color: #fff;
}
.mh-hbm__pic--event, .mh-hbm__pic--truck { display: flex; align-items: center; justify-content: center; }
.mh-hbm__pic--truck { background: #ffe6d1; color: #8a3f00; }
.mh-hbm__main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.3; }
.mh-hbm__label { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mh-blue-dark); }
.mh-hbm__name { font-family: var(--mh-head); font-size: 22px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.mh-hbm__when { font-size: 17px; font-weight: 700; color: var(--mh-muted); overflow-wrap: anywhere; }
.mh-hbm__sub { font-size: 16px; color: var(--mh-muted); overflow-wrap: anywhere; }
.mh-hbm__chip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mh-hbm__go {
	flex: none; width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--mh-bg); color: var(--mh-blue-dark);
	font-size: 30px; font-weight: 700; line-height: 1;
}
.mh-hbm:hover .mh-hbm__go { background: #e1effa; }
.mh-hbm-next {
	display: flex; align-items: center; min-height: 48px; padding: 8px 16px; border-radius: 16px;
	background: #e1effa; color: var(--mh-blue-dark); font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
}
.mh-hbm-next:hover { background: #d4e6f6; color: var(--mh-blue-dark); }
@media (max-width: 380px) {
	.mh-hbm { gap: 12px; padding: 12px; }
	.mh-hbm__pic { width: 60px; height: 60px; border-radius: 14px; }
	.mh-hbm__go { width: 32px; height: 32px; font-size: 24px; }
}

/* Foodtrucks: compacte regels op de pagina. */
.mh-hb-week__title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.2; }
.mh-ft-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mh-ft-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--mh-line); min-width: 0; }
.mh-ft-row:first-child { border-top: 0; padding-top: 4px; }
.mh-ft-row__pic {
	flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: cover;
	background: #ffe6d1; color: #8a3f00;
}
.mh-ft-row__pic--none { display: flex; align-items: center; justify-content: center; }
.mh-ft-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.mh-ft-row__when { font-size: 16px; font-weight: 700; color: #8a3f00; }
.mh-ft-row__name { font-family: var(--mh-head); font-size: 21px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.mh-nowrap { white-space: nowrap; }
.mh-ft-row__cuisine { font-size: 16px; color: var(--mh-muted); overflow-wrap: anywhere; }

/* Niets aan de haven: één rustige regel. */
.mh-hb-quiet {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
	min-height: 56px; padding: 14px 18px; border-radius: 20px;
	background: #fff; box-shadow: 0 0 0 1px var(--mh-ring);
	color: var(--mh-muted); text-decoration: none;
}
.mh-hb-quiet:hover { background: #f5f8fb; color: var(--mh-text); }
.mh-hb-quiet__label { font-family: var(--mh-head); font-size: 20px; font-weight: 700; color: var(--mh-text); }
.mh-hb-quiet__text { overflow-wrap: anywhere; }

/* De pagina: twee knoppen in de kop en de weken als kaarten. */
.mh-hb-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-hb-jump > a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
	background: var(--mh-navy-3); color: #fff; font-weight: 700; text-decoration: none;
}
.mh-hb-jump > a:hover { background: #285a7f; color: #fff; }
.mh-anchor { scroll-margin-top: 16px; }

@media (min-width: 992px) {
	.mh-hbm { padding: 16px 20px; }
	.mh-hbm__pic { width: 88px; height: 88px; }
	.mh-hbm__name { font-size: 24px; }
}
