/* MatchFinder public site: clean, functional, white. One accent (dark blue), system fonts. */

:root {
	--mf-bg: #ffffff;
	--mf-text: #1b2230;
	--mf-muted: #5d6676;
	--mf-line: #e3e7ee;
	--mf-soft: #f5f7fa;
	--mf-accent: #1f3a68;
	--mf-accent-hover: #152a4d;
	--mf-accent-soft: #eaf0f8;
	--mf-ok: #17663a;
	--mf-ok-soft: #e7f5ec;
	--mf-warn: #8a5300;
	--mf-warn-soft: #fdf3e2;
	--mf-bad: #a32020;
	--mf-bad-soft: #fcebeb;
	--mf-radius: 10px;
	--mf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.mf-body {
	margin: 0;
	background: var(--mf-bg) !important;
	color: var(--mf-text);
	font: 16px/1.5 var(--mf-font);
	-webkit-text-size-adjust: 100%;
}
.mf-body *, .mf-body *::before, .mf-body *::after { box-sizing: border-box; }
.mf-body a { color: var(--mf-accent); text-decoration: none; }
.mf-body a:hover { text-decoration: underline; }
.mf-body h1, .mf-body h2 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -0.01em; }
.mf-body h1 { font-size: 1.75rem; }
.mf-body h2 { font-size: 1.15rem; }
.mf-body :focus-visible { outline: 2px solid var(--mf-accent); outline-offset: 2px; }

.mf-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mf-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 1000; }
.mf-skip:focus { left: 8px; }
.mf-muted { color: var(--mf-muted); }
.mf-small { font-size: .875rem; }
[hidden] { display: none !important; }

/* Header and footer */
.mf-header { border-bottom: 1px solid var(--mf-line); background: #fff; position: sticky; top: 0; z-index: 500; }
.mf-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 1.125rem; color: var(--mf-accent) !important; text-decoration: none !important; margin: 0; }
.mf-brand__mark { width: 24px; height: 24px; }
.mf-nav { display: none; gap: 2px; flex: 1 1 auto; justify-content: center; }
.mf-nav a { color: var(--mf-text); padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.mf-nav a:hover { background: var(--mf-soft); text-decoration: none; }
.mf-nav a[aria-current="page"] { color: var(--mf-accent); font-weight: 600; background: var(--mf-accent-soft); }
.mf-preview { background: var(--mf-warn-soft); color: var(--mf-warn); font-size: .85rem; text-align: center; padding: 6px 16px; }
.mf-main { min-height: 60vh; padding-bottom: 48px; }

/* Intro */
.mf-intro { padding: 28px 0 16px; }
.mf-intro p { margin: 0; color: var(--mf-muted); }

/* Buttons */
.mf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--mf-line); border-radius: 8px; background: #fff; color: var(--mf-text) !important; font: 600 .95rem var(--mf-font); cursor: pointer; text-decoration: none !important; list-style: none; }
.mf-btn::-webkit-details-marker { display: none; }
.mf-btn:hover { border-color: #c9d0db; background: var(--mf-soft); }
.mf-btn--primary { background: var(--mf-accent); border-color: var(--mf-accent); color: #fff !important; }
.mf-btn--primary:hover { background: var(--mf-accent-hover); border-color: var(--mf-accent-hover); }
.mf-btn--ghost { border-color: transparent; background: transparent; }
.mf-link { background: none; border: 0; padding: 8px 0; color: var(--mf-accent); font: inherit; cursor: pointer; }

/* Search form */
.mf-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--mf-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
/* Same box for every field: Safari ignores min-height on native selects, so all get a fixed height
   and selects draw their own arrow. */
.mf-search .mf-field input, .mf-search .mf-field select { display: block; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--mf-line); border-radius: 8px; background-color: #fff; color: var(--mf-text); font: 16px/1.2 var(--mf-font); box-shadow: none; -webkit-appearance: none; appearance: none; }
.mf-search .mf-field select { padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d6676' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
.mf-search .mf-field input[type="date"] { line-height: 42px; }
.mf-field input:focus, .mf-field select:focus { border-color: var(--mf-accent); outline: none; box-shadow: 0 0 0 3px var(--mf-accent-soft); }
.mf-loc { position: relative; display: flex; }
.mf-loc input { padding-right: 48px; }
.mf-locate { position: absolute; right: 2px; top: 2px; min-height: 40px; width: 44px; padding: 0; color: var(--mf-accent) !important; }
.mf-locate svg { width: 22px; height: 22px; }
.mf-locate.is-busy { opacity: .5; }
.mf-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 600; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--mf-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 30, 50, .12); }
.mf-suggest li { padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.mf-suggest li[aria-selected="true"], .mf-suggest li:hover { background: var(--mf-accent-soft); }
.mf-suggest small { color: var(--mf-muted); }
.mf-dates { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.mf-dates label { margin: 0; }

/* Filters */
.mf-count { display: inline-block; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; background: var(--mf-accent); color: #fff; font-size: .75rem; text-align: center; }
.mf-facet { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.mf-facet legend { font-size: .8rem; font-weight: 600; color: var(--mf-muted); text-transform: uppercase; letter-spacing: .04em; padding: 0; margin-bottom: 6px; }
.mf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--mf-line); border-radius: 18px; font-size: .9rem; cursor: pointer; user-select: none; background: #fff; }
.mf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mf-chip:has(input:checked) { background: var(--mf-accent); border-color: var(--mf-accent); color: #fff; }
.mf-chip:has(input:focus-visible) { outline: 2px solid var(--mf-accent); outline-offset: 2px; }
.mf-chip.is-on { background: var(--mf-accent); border-color: var(--mf-accent); color: #fff; }
.mf-chip small { opacity: .7; }

/* Result bar */
.mf-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; flex-wrap: wrap; }
.mf-total { margin: 0; font-weight: 700; font-size: 1.05rem; }
.mf-toggles { display: flex; gap: 8px; }
.mf-seg { display: inline-flex; border: 1px solid var(--mf-line); border-radius: 8px; overflow: hidden; }
.mf-seg button { min-height: 36px; padding: 0 12px; border: 0; background: #fff; color: var(--mf-text); font: 600 .875rem var(--mf-font); cursor: pointer; }
.mf-seg button + button { border-left: 1px solid var(--mf-line); }
.mf-seg button[aria-pressed="true"] { background: var(--mf-accent); color: #fff; }
.mf-hint { margin: 0 0 12px; color: var(--mf-muted); font-size: .9rem; }
.mf-empty { padding: 32px 16px; text-align: center; color: var(--mf-muted); border: 1px dashed var(--mf-line); border-radius: var(--mf-radius); }
.mf-loading { opacity: .5; transition: opacity .15s; }

/* Cards */
.mf-cards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mf-line); }
.mf-card { border-bottom: 1px solid var(--mf-line); position: relative; }
.mf-card .mf-card__cal { position: absolute; right: 0; bottom: 8px; z-index: 5; }
.mf-card__link { padding-right: 48px !important; }
.mf-card__cal summary { min-height: 40px; width: 44px; padding: 0; color: var(--mf-accent) !important; }
.mf-card__cal summary svg { width: 20px; height: 20px; }
.mf-card .mf-card__cal .mf-menu__list { left: auto; right: 0; }
.mf-card__link { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 4px; color: var(--mf-text) !important; text-decoration: none !important; align-items: start; }
.mf-card__link:hover { background: var(--mf-soft); }
.mf-card__date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border: 1px solid var(--mf-line); border-radius: 8px; font-size: .75rem; text-transform: uppercase; color: var(--mf-muted); line-height: 1.1; }
.mf-card__date b { font-size: 1.3rem; color: var(--mf-text); }
.mf-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mf-card__title { font-weight: 650; font-size: 1.02rem; color: var(--mf-accent); overflow-wrap: anywhere; }
.mf-card__meta { color: var(--mf-muted); font-size: .9rem; }
.mf-card__fee { font-weight: 600; font-size: .9rem; white-space: nowrap; padding-top: 2px; }
.mf-card.is-cancelled .mf-card__title { text-decoration: line-through; color: var(--mf-muted); }
.mf-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mf-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--mf-accent-soft); color: var(--mf-accent); font-size: .75rem; font-weight: 600; }
.mf-badge--soft { background: var(--mf-soft); color: var(--mf-muted); }
.mf-status--reg-open { background: var(--mf-ok-soft); color: var(--mf-ok); }
.mf-status--full, .mf-status--rescheduled { background: var(--mf-warn-soft); color: var(--mf-warn); }
.mf-status--cancelled { background: var(--mf-bad-soft); color: var(--mf-bad); }
.mf-status--completed { background: var(--mf-soft); color: var(--mf-muted); }

/* Map */
.mf-minimap { height: 220px; border: 1px solid var(--mf-line); border-radius: 8px; margin: 8px 0; }
.mf-minimap--wide { height: 300px; margin: 16px 0 24px; }
.mf-popup b { display: block; margin-bottom: 2px; }
.leaflet-container { font: 14px/1.4 var(--mf-font); }
.leaflet-container a { color: var(--mf-accent); }

/* Match page */
.mf-back { margin: 16px 0 8px; font-size: .95rem; }
.mf-match__title { font-size: 1.6rem; margin-top: 8px; overflow-wrap: anywhere; }
.mf-match__sub { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--mf-muted); margin: 0 0 8px; }
.mf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.mf-menu { position: relative; }
.mf-menu summary { list-style: none; }
.mf-menu__list { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; min-width: 220px; padding: 4px; background: #fff; border: 1px solid var(--mf-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 30, 50, .12); }
.mf-menu__list a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--mf-text) !important; }
.mf-menu__list a:hover { background: var(--mf-accent-soft); text-decoration: none; }
.mf-match__grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.mf-panel { border: 1px solid var(--mf-line); border-radius: var(--mf-radius); padding: 16px; }
.mf-panel p { margin: 0 0 8px; }
.mf-facts { margin: 0; }
.mf-facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--mf-line); }
.mf-facts div:first-child { border-top: 0; }
.mf-facts dt { color: var(--mf-muted); }
.mf-facts dd { margin: 0; font-weight: 500; }
.mf-plain { list-style: none; margin: 0; padding: 0; }
.mf-plain li { padding: 6px 0; border-top: 1px solid var(--mf-line); }
.mf-plain li:first-child { border-top: 0; }
.mf-border { margin-bottom: 16px; background: var(--mf-soft); border-color: var(--mf-soft); }
.mf-border summary { cursor: pointer; list-style: none; }
.mf-border summary::-webkit-details-marker { display: none; }
.mf-border__title { font-weight: 700; font-size: 1rem; }
.mf-border summary::after { content: "+"; float: right; font-weight: 700; color: var(--mf-accent); }
.mf-border[open] summary::after { content: "–"; }
.mf-border[open] summary { margin-bottom: 8px; }
.mf-alert { padding: 12px 16px; border-radius: 8px; font-weight: 600; margin: 8px 0; }
.mf-alert--cancelled { background: var(--mf-bad-soft); color: var(--mf-bad); }
.mf-alert--rescheduled { background: var(--mf-warn-soft); color: var(--mf-warn); }
.mf-past li { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Ranges, prose */
.mf-ranges { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.mf-prose { max-width: 720px; padding-top: 28px; }
.mf-prose h2 { margin-top: 24px; }

/* Coming soon */
.mf-soon { display: flex; min-height: 100vh; align-items: center; }
.mf-soon__in { max-width: 640px; padding-top: 40px; padding-bottom: 40px; }
.mf-soon h1 { font-size: 2rem; margin: 24px 0 8px; }
.mf-soon p { color: var(--mf-muted); }

html { overflow-x: hidden; }

/* Wider screens */
@media (min-width: 720px) {
	.mf-body h1 { font-size: 2rem; }
	.mf-match__grid { grid-template-columns: 1fr 1fr; }
	.mf-ranges { grid-template-columns: 1fr 1fr; }
	.mf-card__link { grid-template-columns: 60px 1fr auto; padding: 16px 8px; }
	.mf-card__date { height: 60px; }
}
@media (min-width: 1000px) {
	.mf-ranges { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.mf-body * { transition: none !important; }
}

/* Alerts */
.mf-subform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mf-subform .mf-field { flex: 1 1 220px; }
.mf-subform input[type="email"], .mf-subform select { display: block; width: 100%; height: 44px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--mf-line); border-radius: 8px; background: #fff; font: 16px var(--mf-font); color: var(--mf-text); }
.mf-follow-form { margin: -8px 0 16px; padding: 12px 16px; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); }
.mf-follow-form p { flex-basis: 100%; margin: 0; }
.mf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mf-msg { margin: 8px 0 0; font-weight: 600; color: var(--mf-ok); min-height: 1em; }
.mf-msg.is-bad { color: var(--mf-bad); }
.mf-alert--ok { background: var(--mf-ok-soft); color: var(--mf-ok); }
.mf-sub .mf-facet { margin: 16px 0; }
.mf-sub .mf-field span { display: block; font-size: .8rem; font-weight: 600; color: var(--mf-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.mf-sub select { height: 44px; padding: 0 12px; border: 1px solid var(--mf-line); border-radius: 8px; font: 16px var(--mf-font); }

/* Forms (portal, reports, letters) */
.mf-form { display: grid; gap: 12px; max-width: 640px; }
.mf-form--wide { max-width: 860px; }
.mf-form .mf-field { display: block; }
.mf-form .mf-field > span { display: block; font-size: .8rem; font-weight: 600; color: var(--mf-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.mf-form input[type="text"], .mf-form input[type="email"], .mf-form input[type="url"], .mf-form input[type="tel"], .mf-form input[type="date"], .mf-form input[type="time"], .mf-form input[type="number"], .mf-form select, .mf-form textarea, .mf-letterreq input[type="text"] { display: block; width: 100%; min-height: 44px; padding: 8px 12px; box-sizing: border-box; border: 1px solid var(--mf-line); border-radius: 8px; background: #fff; color: var(--mf-text); font: 16px/1.4 var(--mf-font); }
.mf-form textarea { min-height: 88px; resize: vertical; }
.mf-form input:focus, .mf-form select:focus, .mf-form textarea:focus { border-color: var(--mf-accent); outline: none; box-shadow: 0 0 0 3px var(--mf-accent-soft); }
.mf-form .mf-btn { justify-self: start; }
.mf-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.mf-fieldset { border: 1px solid var(--mf-line); border-radius: var(--mf-radius); padding: 12px 16px 16px; margin: 0; display: grid; gap: 12px; }
.mf-fieldset legend { padding: 0 6px; font-weight: 600; }
.mf-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mf-checks label, .mf-check { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.mf-check input, .mf-checks input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.mf-inline { display: inline; margin: 0; }
.mf-narrow { max-width: 680px; }
.mf-alert { padding: 12px 16px; border-radius: 8px; background: var(--mf-soft); }

/* Portal */
.mf-portal { padding-top: 24px; padding-bottom: 40px; display: grid; gap: 16px; }
.mf-portal__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.mf-portal__bar h1 { margin: 0; font-size: 1.6rem; }
.mf-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mf-tabs a { padding: 8px 12px; border-radius: 8px; color: var(--mf-text); text-decoration: none; font-weight: 600; }
.mf-tabs a[aria-current="page"] { background: var(--mf-accent-soft); color: var(--mf-accent); }
.mf-tablewrap { overflow-x: auto; }
.mf-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mf-table th, .mf-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--mf-line); vertical-align: top; }
.mf-table th { color: var(--mf-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.mf-rowactions { white-space: nowrap; }
.mf-rowactions > * { margin-right: 10px; }
.mf-letterreq { padding: 12px 0; border-top: 1px solid var(--mf-line); }
.mf-letterreq p { margin: 0 0 4px; }
.mf-letterreq input[type="text"] { display: inline-block; width: auto; min-width: 200px; vertical-align: middle; }

/* Match page: report and letter boxes */
.mf-report, .mf-letter-box { margin: 16px 0; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); padding: 12px 16px; }
.mf-report summary, .mf-letter-box summary { cursor: pointer; font-weight: 600; color: var(--mf-accent); }
.mf-report .mf-form, .mf-letter-box .mf-form { margin-top: 12px; }
.mf-gunrow { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* Invitation letter */
.mf-letter-actions { padding-top: 24px; }
.mf-letter { max-width: 760px; margin: 24px auto 48px; padding: 40px 48px; background: #fff; border: 1px solid var(--mf-line); border-radius: 4px; line-height: 1.55; }
.mf-letter--draft { background-image: repeating-linear-gradient(-45deg, transparent 0 40px, rgba(31, 58, 104, .03) 40px 80px); }
.mf-letter__head { display: flex; gap: 20px; align-items: flex-start; border-bottom: 2px solid var(--mf-text); padding-bottom: 16px; margin-bottom: 16px; }
.mf-letter__logo { max-width: 120px; max-height: 80px; object-fit: contain; }
.mf-letter__date { text-align: right; }
.mf-letter h1 { font-size: 1.5rem; margin: 8px 0 16px; }
.mf-letter__table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.mf-letter__table th, .mf-letter__table td { border: 1px solid #c9d0db; padding: 6px 10px; text-align: left; vertical-align: top; }
.mf-letter__table th { background: #f5f7fa; width: 30%; }
.mf-letter__guns th { width: auto; }
.mf-letter__sign { margin-top: 40px; max-width: 320px; }
.mf-letter__line { border-bottom: 1px solid var(--mf-text); height: 56px; margin-bottom: 6px; }
.mf-letter__foot { margin-top: 32px; color: var(--mf-muted); }
.mf-blank { display: inline-block; min-width: 260px; border-bottom: 1px dotted #8a93a3; }
.mf-checklist li label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.mf-checklist input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 600px) { .mf-letter { padding: 24px 18px; } }
@media print {
	.mf-header, .mf-footer, .mf-noprint, .mf-skip { display: none !important; }
	.mf-letter { border: 0; margin: 0; padding: 0; max-width: none; background: none; }
	body.mf-body { background: #fff; }
}
.mf-rowactions .mf-link { padding: 0; }

/* ------------------------------------------------------------------ Layout D (0.7) */

/* Position7 strip */
.mf-strip { background: var(--mf-accent); color: #dbe4f1; font-size: .8rem; }
.mf-strip__in { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 32px; }
.mf-strip a { color: #dbe4f1 !important; }
.mf-strip__p7 { display: inline-flex; align-items: center; gap: 8px; }
.mf-strip__p7 img { height: 14px; width: auto; display: block; }
.mf-strip__org { display: none; color: #ffffff !important; font-weight: 600; }

/* Header */
.mf-header__in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.mf-user { display: flex; align-items: center; gap: 4px; flex: none; }
.mf-user .mf-btn { min-height: 40px; padding: 0 14px; }
.mf-signup { display: none !important; }
.mf-userbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border: 1px solid var(--mf-line); border-radius: 20px; color: var(--mf-text) !important; font-weight: 600; font-size: .95rem; text-decoration: none !important; }
.mf-userbtn:hover { background: var(--mf-soft); }
.mf-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--mf-accent); color: #fff; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }

/* Phone menu (works without JavaScript: a details element) */
.mf-drawer > summary { list-style: none; }
.mf-drawer > summary::-webkit-details-marker { display: none; }
.mf-menubtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--mf-text); border-radius: 8px; }
.mf-menubtn:hover { background: var(--mf-soft); }
.mf-menubtn svg { width: 24px; height: 24px; }
.mf-menubtn__close, .mf-drawer[open] .mf-menubtn__open { display: none; }
.mf-drawer[open] .mf-menubtn__close { display: block; }
.mf-drawer__panel { position: fixed; left: 0; right: 0; top: 92px; bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-top: 1px solid var(--mf-line); display: flex; flex-direction: column; z-index: 700; }
.mf-drawer__nav { padding: 8px 0; }
.mf-drawer__nav a { display: flex; align-items: center; min-height: 54px; padding: 0 24px; font-size: 1.15rem; font-weight: 600; color: var(--mf-text) !important; border-bottom: 1px solid #eef1f5; text-decoration: none !important; }
.mf-drawer__nav a[aria-current="page"] { color: var(--mf-accent) !important; background: var(--mf-accent-soft); border-left: 4px solid var(--mf-accent); padding-left: 20px; }
.mf-drawer__box { margin: 8px 16px 0; padding: 16px; border-radius: 14px; background: var(--mf-soft); }
.mf-drawer__box p { margin: 0 0 10px; }
.mf-drawer__title { font-weight: 700; }
.mf-drawer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mf-drawer__btns .mf-btn { width: 100%; }
.mf-drawer__p7 { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 26px; border-top: 1px solid var(--mf-line); text-decoration: none !important; }
.mf-drawer__p7 img { height: 22px; width: auto; display: block; }

/* Buttons */
.mf-btn--outline { border-color: var(--mf-accent); color: var(--mf-accent) !important; background: #fff; }
.mf-btn--outline:hover { background: var(--mf-accent-soft); border-color: var(--mf-accent); }
.mf-btn--dark { background: #18202e; border-color: #18202e; color: #fff !important; }
.mf-btn--dark:hover { background: #000; border-color: #000; }
.mf-btn svg { width: 18px; height: 18px; flex: none; }

/* Footer */
.mf-footer { background: #13233f; color: #c6d1e2; font-size: .95rem; }
.mf-footer a { color: #ffffff !important; }
.mf-footer__in { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; padding-top: 40px; padding-bottom: 28px; }
.mf-footer__brand { flex: 1 1 280px; max-width: 420px; }
.mf-footer__brand p { margin: 14px 0; line-height: 1.55; }
.mf-footer__logo img { height: 30px; width: auto; display: block; }
.mf-footer .mf-btn { background: transparent; border-color: #4d6283; min-height: 40px; }
.mf-footer .mf-btn:hover { background: rgba(255, 255, 255, .06); }
.mf-footer__cols { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.mf-footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.mf-footer__h { margin: 0 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fa1bd; }
.mf-footer__legal { padding-top: 16px; padding-bottom: 28px; font-size: .8rem; color: #8fa1bd; border-top: 1px solid #2a3c5c; }
.mf-footer__legal p { margin: 0 0 4px; }

/* Search box */
.mf-searchbox { padding: 14px; border: 1px solid var(--mf-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(24, 32, 46, .04); }
.mf-search { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mf-search__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-self: end; }
.mf-search__btns .mf-btn { width: 100%; min-height: 44px; }
.mf-filters-toggle .mf-count { margin-left: 2px; }
.mf-dates { grid-column: 1 / -1; }
.mf-filters { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mf-line); display: grid; grid-template-columns: 1fr; gap: 4px 24px; }
.mf-filters__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.mf-active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: .85rem; color: var(--mf-muted); }
.mf-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--mf-accent-soft); color: var(--mf-accent); font: 600 .85rem var(--mf-font); cursor: pointer; }
.mf-pill:hover { background: #dbe5f3; }
.mf-active .mf-link { padding: 4px; font-size: .85rem; color: var(--mf-muted); text-decoration: underline; }

/* Results: list, map, or both side by side */
.mf-toggles { flex-wrap: wrap; }
.mf-savefeed { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.mf-results__map { display: none; }
.mf-results.is-map .mf-results__list { display: none; }
.mf-results.is-map .mf-results__map { display: block; }
.mf-map { height: 70vh; min-height: 420px; border: 1px solid var(--mf-line); border-radius: 14px; }
.mf-map__note { margin: 8px 2px 0; }

/* Alerts call to action */
.mf-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 24px; border: 2px solid #18202e; border-radius: 18px; }
.mf-cta__text { flex: 1 1 320px; }
.mf-cta__text h2 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.mf-cta__text p { margin: 0; color: var(--mf-muted); }
.mf-cta__side { flex: 0 1 440px; min-width: 0; }
.mf-cta__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.mf-cta__form .mf-field { flex: 1 1 220px; }
.mf-cta__form .mf-field span { display: block; font-size: .8rem; font-weight: 600; color: var(--mf-muted); margin-bottom: 4px; }
.mf-cta__form input[type="email"] { display: block; width: 100%; height: 48px; padding: 0 18px; border: 1px solid #d6dce6; border-radius: 24px; font: 16px var(--mf-font); color: var(--mf-text); background: #fff; }
.mf-cta__form input[type="email"]:focus { border-color: var(--mf-accent); outline: none; box-shadow: 0 0 0 3px var(--mf-accent-soft); }
.mf-cta .mf-btn--dark { min-height: 48px; border-radius: 24px; padding: 0 24px; font-weight: 700; }
.mf-cta__fine { margin: 8px 0 0; }

@media (min-width: 720px) {
	.mf-strip__in { justify-content: space-between; min-height: 36px; }
	.mf-strip__org { display: inline; }
	.mf-strip__p7 img { height: 16px; }
	.mf-signup { display: inline-flex !important; }
	.mf-search { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
	.mf-search__btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
	.mf-search__btns .mf-btn { width: auto; padding: 0 20px; }
	.mf-dates { grid-template-columns: auto 1fr auto 1fr; }
	.mf-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mf-cta { padding: 26px 28px; }
}
@media (min-width: 1000px) {
	.mf-header__in { height: 68px; }
	.mf-nav { display: flex; }
	.mf-drawer { display: none; }
	.mf-search { grid-template-columns: 2fr 1fr 1.2fr auto; }
	.mf-search__btns { grid-column: auto; }
	.mf-search .mf-field--name { grid-column: 1 / -2; }
	.mf-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mf-results { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
	.mf-results .mf-results__list, .mf-results.is-map .mf-results__list { display: block; }
	.mf-results .mf-results__map, .mf-results.is-map .mf-results__map { display: block; position: sticky; top: 84px; }
	.mf-results .mf-map { height: calc(100vh - 150px); max-height: 640px; min-height: 420px; }
	.mf-seg--mode { display: none; }
}
@media (max-width: 380px) {
	.mf-brand { font-size: 1rem; gap: 6px; }
	.mf-brand__mark { width: 20px; height: 20px; }
	.mf-userbtn__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mf-userbtn { padding: 0 4px; }
}
html.mf-menu-open { overflow: hidden; }
@media (min-width: 1000px) { html.mf-menu-open { overflow: visible; } }

/* ------------------------------------------------------------------ Account: my match feed */
.mf-account { padding-top: 28px; padding-bottom: 40px; max-width: 1240px; }
.mf-lead { color: var(--mf-muted); font-size: 1.05rem; margin: 0 0 20px; }
.mf-ok { color: var(--mf-ok); }
.mf-btn--danger { color: var(--mf-bad) !important; }
.mf-btn--danger:hover { background: var(--mf-bad-soft); border-color: #f0c9c9; }
.mf-welcome { display: grid; gap: 24px; }
.mf-welcome h1 { font-size: 2rem; }
.mf-ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.mf-ticks li { padding-left: 28px; position: relative; }
.mf-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--mf-accent-soft); color: var(--mf-accent); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mf-welcome__forms { border: 1px solid var(--mf-line); border-radius: 14px; padding: 20px; align-self: start; }
.mf-tabs--auth { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--mf-soft); border-radius: 10px; margin-bottom: 16px; }
.mf-tabs--auth a { text-align: center; }
.mf-tabs--auth a[aria-current="page"] { background: #fff; color: var(--mf-accent); box-shadow: 0 1px 2px rgba(24, 32, 46, .08); }
.mf-check span a { white-space: nowrap; }

.mf-acct { display: grid; gap: 24px; }
.mf-acct__nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid var(--mf-line); }
.mf-acct__nav a { flex: none; padding: 10px 14px; border-radius: 10px; color: var(--mf-text) !important; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.mf-acct__nav a:hover { background: var(--mf-soft); }
.mf-acct__nav a[aria-current="page"] { background: var(--mf-accent-soft); color: var(--mf-accent) !important; font-weight: 600; }
.mf-acct__sep { display: none; }
.mf-acct__main { min-width: 0; }
.mf-acct__main > h1 { font-size: 2rem; margin-bottom: 4px; }
.mf-acct__stopped { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.mf-acct__add { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 14px 0 8px; border: 1px dashed #b9c3d2; border-radius: 14px; font-weight: 600; text-decoration: none !important; }
.mf-acct__add:hover { background: var(--mf-accent-soft); }
.mf-acct__section { margin-top: 40px; }
.mf-acct__section h2 { font-size: 1.4rem; }

.mf-feedcard { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--mf-line); border-radius: 14px; }
.mf-feedcard.is-paused { background: var(--mf-soft); }
.mf-feedcard h2 { font-size: 1.1rem; margin: 0 0 6px; }
.mf-feedcard__body { min-width: 0; flex: 1 1 280px; }
.mf-feedcard__body p { margin: 0 0 4px; }
.mf-feedcard__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mf-feedcard__btns .mf-btn { min-height: 38px; padding: 0 12px; font-size: .9rem; }

.mf-feededit { margin-top: 8px; border: 1px solid #d6dce6; border-radius: 14px; overflow: hidden; scroll-margin-top: 90px; }
.mf-feededit__head { padding: 16px 20px; background: #f7f9fc; border-bottom: 1px solid var(--mf-line); }
.mf-feededit__body { padding: 4px 20px 20px; }
.mf-feededit .mf-field > span, .mf-feededit .mf-field--loc > span { display: block; font-size: .8rem; font-weight: 600; color: var(--mf-muted); margin-bottom: 4px; }
.mf-feededit input[type="text"], .mf-feededit select { display: block; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d6dce6; border-radius: 10px; background: #fff; font: 16px var(--mf-font); color: var(--mf-text); }
.mf-feededit input[type="text"]:focus, .mf-feededit select:focus { border-color: var(--mf-accent); outline: none; box-shadow: 0 0 0 3px var(--mf-accent-soft); }
.mf-feededit__where { grid-template-columns: 1fr; margin-bottom: 16px; }
.mf-step { margin: 24px 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mf-muted); }
.mf-feededit__facets { display: grid; gap: 4px 24px; }
.mf-freq { display: grid; gap: 8px; }
.mf-freq__opt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--mf-line); border-radius: 10px; cursor: pointer; }
.mf-freq__opt input { width: 18px; height: 18px; accent-color: var(--mf-accent); flex: none; margin: 0; }
.mf-freq__opt span { display: flex; flex-direction: column; gap: 2px; }
.mf-freq__opt b { font-weight: 600; }
.mf-freq__opt small { color: var(--mf-muted); font-size: .85rem; }
.mf-freq__opt:has(input:checked) { border-color: var(--mf-accent); background: #f3f6fb; }
.mf-freq__opt:has(input:focus-visible) { outline: 2px solid var(--mf-accent); outline-offset: 2px; }
.mf-feededit__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--mf-line); }
.mf-feededit__btns { display: flex; gap: 8px; margin-left: auto; }

.mf-preview-card { border: 1px solid var(--mf-line); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.mf-preview-card__head { padding: 12px 16px; background: #f7f9fc; border-bottom: 1px solid var(--mf-line); font-size: .85rem; color: var(--mf-muted); }
.mf-preview-card__head b { color: var(--mf-text); }
.mf-preview-card__body { padding: 16px; }
.mf-preview-card__body p { margin: 0 0 4px; }
.mf-preview-card__subj { font-weight: 700; margin-bottom: 12px !important; }
.mf-preview-card__row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #eef1f5; color: var(--mf-text) !important; text-decoration: none !important; }
.mf-preview-card__row > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .9rem; }
.mf-preview-card__row small { color: var(--mf-muted); }
.mf-preview-card__date { flex: none; width: 42px; text-align: center; font-size: .75rem; color: var(--mf-muted); text-transform: uppercase; }
.mf-preview-card__date b { display: block; font-size: 1.1rem; color: var(--mf-text); }
.mf-preview-card__total { margin-top: 8px !important; }

.mf-follows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mf-line); }
.mf-follows li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--mf-line); }
.mf-follows .mf-card__date { height: 52px; }
.mf-follows__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mf-follows__body a { font-weight: 600; }
.mf-follows .mf-btn { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.mf-danger { margin-top: 16px; padding: 12px 16px; border: 1px solid #f0d4d4; border-radius: 10px; }
.mf-danger summary { cursor: pointer; color: var(--mf-bad); font-weight: 600; }
.mf-danger .mf-form { margin-top: 12px; }

@media (min-width: 720px) {
	.mf-feededit__where { grid-template-columns: 2fr 1fr; }
	.mf-feededit__facets { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
	.mf-welcome { grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 16px; }
}
@media (min-width: 1100px) {
	.mf-acct { grid-template-columns: 190px minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
	.mf-acct__nav { flex-direction: column; border-bottom: 0; position: sticky; top: 90px; overflow: visible; }
	.mf-acct__sep { display: block; height: 1px; background: var(--mf-line); margin: 8px 0; }
	.mf-acct__aside { position: sticky; top: 90px; }
}
.mf-status--reg-soon { background: var(--mf-soft); color: var(--mf-ink, inherit); }
.mf-status--reg-closed { background: var(--mf-soft); color: var(--mf-muted); }
.mf-about { margin-top: 16px; }
.mf-about__body { overflow-wrap: anywhere; }
.mf-about__body p { margin: 0 0 .8em; }
.mf-about__more summary { cursor: pointer; color: var(--mf-accent, inherit); margin-bottom: 8px; }

/* Registration on the match page */
.mf-entry { margin-top: 16px; scroll-margin-top: 80px; }
.mf-entry .mf-req { color: var(--mf-bad); }
.mf-entry__radios { border: 0; padding: 0; margin: 0; }
.mf-entry__radios legend { display: block; font-size: .8rem; font-weight: 600; color: var(--mf-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; padding: 0; }
.mf-entry__radios label { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; margin: 0 16px 0 0; font: 400 1rem/1.4 var(--mf-font); text-transform: none; letter-spacing: 0; color: var(--mf-text); }
.mf-entry__radios input { width: 18px; height: 18px; }
.mf-entry__more summary { cursor: pointer; color: var(--mf-accent); font-size: .95rem; }
.mf-entry__more[open] summary { margin-bottom: 8px; }
.mf-entry__gun { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 600px) { .mf-entry__gun { grid-template-columns: 1fr; } .mf-entry__gun + .mf-entry__gun { border-top: 1px solid var(--mf-line); padding-top: 8px; } }
.mf-entry .is-invalid { border-color: var(--mf-bad) !important; box-shadow: 0 0 0 3px var(--mf-bad-soft) !important; }
.mf-entry input[type="radio"].is-invalid, .mf-entry input[type="checkbox"].is-invalid { outline: 2px solid var(--mf-bad); outline-offset: 2px; }
.mf-btn--done { background: var(--mf-ok-soft); color: var(--mf-ok); border-color: transparent; }
.mf-google { margin: 8px 0 12px; }
.mf-btn--google { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; }
.mf-btn--google:hover { background: #f2f2f2; }

/* Portal: new range (town suggestions, map pin, coordinates). */
.mf-row--tight { grid-template-columns: 1fr auto; align-items: stretch; }
.mf-vmap { height: 280px; margin: 4px 0 14px; border: 1px solid var(--mf-line); border-radius: 8px; z-index: 0; }

/* Entry fee by bank transfer (shooter's view and the organizer's fields). */
.mf-pay { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--mf-line); border-radius: 8px; background: var(--mf-accent-soft); }
.mf-pay h3 { margin: 0 0 8px; font-size: 1rem; }
.mf-pay__list { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.mf-pay__list dt { color: var(--mf-muted); }
.mf-pay__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mf-payfields { margin-top: 10px; }

/* Search: "Near a place" / "By name". */
.mf-modes { display: inline-flex; gap: 4px; margin: 0 0 10px; padding: 3px; background: var(--mf-accent-soft); border-radius: 999px; }
.mf-mode { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--mf-muted); cursor: pointer; }
.mf-mode[aria-pressed="true"] { background: var(--mf-bg); color: var(--mf-text); box-shadow: 0 1px 3px rgba(20, 30, 50, .12); }
.mf-field--name { grid-column: 1 / -1; }
.mf-field--name input { width: 100%; }
