/* Mis Links PR — public directory. Brand: navy #14103f, indigo #3a1fc1, pink #ec3db8, lime #e2ff1a. */
@font-face { font-family: "SG"; src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SG"; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--navy: #14103f;
	--indigo: #3a1fc1;
	--pink: #ec3db8;
	--lime: #e2ff1a;
	--ink: #14103f;
	--muted: #5d5a78;
	--line: #e3e1f0;
	--bg: #f4f3fb;
	--card: #ffffff;
	--r: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mld { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.mld h1, .mld h2, .mld-logo, .mld-btn, .mld-card__name { font-family: "SG", system-ui, sans-serif; }
.mld a { color: inherit; }
.mld-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mld-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mld-skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--lime); color: var(--navy); font-weight: 700; z-index: 10; }
.mld-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Top bar */
.mld-top { background: var(--navy); color: #fff; }
.mld-top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.mld-logo { color: #fff !important; font-size: 19px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mld-logo span { color: var(--lime); }
.mld-nav { display: flex; align-items: center; gap: 14px; }
.mld-nav > a:not(.mld-btn) { color: #fff; font-weight: 600; text-decoration: none; }
.mld-nav > a[aria-current="page"]:not(.mld-btn) { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) { .mld-nav > a:not(.mld-btn) { display: none; } }

/* Buttons */
.mld-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.mld-btn--lime { background: var(--lime); color: var(--navy) !important; }
.mld-btn--pink { background: var(--pink); color: #fff !important; }
.mld-btn--ghost { border: 1.5px solid var(--line); background: #fff; color: var(--ink) !important; }
.mld-btn:hover { filter: brightness(.96); }

/* Hero + search */
.mld-hero { padding: 22px 0 26px; background: linear-gradient(160deg, var(--navy) 0%, #231a7a 100%); color: #fff; }
.mld-hero--home { padding: 34px 0 38px; }
.mld-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 6vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.mld-hero__intro { max-width: 640px; margin: 0 0 20px; color: #d9d6f2; font-size: 17px; }
.mld-hero__count { margin: 0 0 16px; color: #d9d6f2; }
.mld-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; color: #cfcaf0; font-size: 14px; }
.mld-crumbs li + li::before { content: "›"; margin-right: 6px; color: #8f89c4; }
.mld-crumbs a { color: #fff; }
.mld-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.mld-search input, .mld-search select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.mld-search .mld-btn { min-height: 48px; font-size: 16px; }
@media (min-width: 760px) {
	.mld-search { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.1fr) auto; border-radius: 999px; }
	.mld-search input, .mld-search select { border-color: transparent; border-radius: 999px; background: var(--bg); }
}

/* Sections */
.mld-main { padding-top: 22px; padding-bottom: 36px; }
.mld-section { margin: 0 0 28px; }
.mld-section h2 { margin: 0 0 12px; font-size: 22px; }
.mld-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .mld-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mld-cats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 700; text-decoration: none; line-height: 1.25; }
.mld-cats a:hover { border-color: var(--indigo); }
.mld-cats b, .mld-chips b { flex: none; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: #eeebfd; color: var(--indigo); font-size: 13px; text-align: center; }
.mld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mld-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; text-decoration: none; }
.mld-chips a:hover { border-color: var(--indigo); }
.mld-chips--small a { min-height: 36px; font-size: 14px; }
.mld-narrow { margin: 0 0 18px; }

/* Cards */
.mld-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .mld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .mld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mld-card { position: relative; display: flex; gap: 14px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease; }
.mld-card:hover { border-color: var(--indigo); box-shadow: 0 6px 20px rgba(20, 16, 63, .08); }
.mld-card.is-featured { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.mld-card__img { flex: none; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--bg); }
.mld-card__img--initials { display: grid; place-items: center; background: var(--indigo); color: #fff; font-family: "SG", system-ui, sans-serif; font-size: 26px; font-weight: 700; }
.mld-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mld-card__name { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.mld-card__check { flex: none; color: var(--indigo); }
.mld-card__meta { color: var(--muted); font-size: 14px; }
.mld-card__bio { display: -webkit-box; overflow: hidden; margin-top: 2px; color: #35325a; font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mld-card__badge { position: absolute; top: -9px; right: 12px; padding: 1px 9px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 800; }
.mld-card.is-featured .mld-card__body { padding-right: 4px; }

.mld-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.mld-pager__info { color: var(--muted); font-size: 14px; }
.mld-empty { padding: 28px 18px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--card); text-align: center; }
.mld-empty p { margin: 0 0 10px; }

.mld-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 22px; border-radius: 22px; background: var(--indigo); color: #fff; }
.mld-cta h2 { margin: 0 0 4px; font-size: 22px; }
.mld-cta p { max-width: 640px; margin: 0; color: #e4e0ff; }

.mld-foot { padding: 22px 0 30px; color: var(--muted); font-size: 14px; }
.mld-foot .mld-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.mld-foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .mld-card { transition: none; } }
