/*
Theme Name: Morfejus
Theme URI: https://morfejus.lv/
Author: Biedrība Morfejus
Description: Mūsdienīga, ātra un pieejama WordPress tēma biedrībai Morfejus — bērnu un jauniešu izaugsmei, līdzdalībai un aktīvam dzīvesveidam.
Version: 1.8.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: morfejus
*/

:root {
  --mf-ink: #2b193d;
  --mf-ink-2: #563c74;
  --mf-lime: #ffb25b;
  --mf-green: #ef5f6c;
  --mf-sky: #eee9ff;
  --mf-soft: #faf6f2;
  --mf-white: #fff;
  --mf-muted: #655f70;
  --mf-line: #e7dfe8;
  --mf-shadow: 0 22px 60px rgba(43, 25, 61, .14);
  --mf-radius: 24px;
  --mf-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mf-ink);
  background: var(--mf-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--mf-green); outline-offset: 4px; }

.mf-container { width: min(calc(100% - 40px), var(--mf-container)); margin-inline: auto; }
.mf-narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; z-index: 100000; top: 14px; left: 14px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; border-radius: 10px; }

.mf-site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(43,25,61,.09); backdrop-filter: blur(16px); }
.admin-bar .mf-site-header { top: 32px; }
.mf-header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.mf-brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; font-weight: 900; letter-spacing: -.04em; }
.mf-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--mf-lime); background: var(--mf-ink); transform: rotate(-4deg); }
.mf-brand-mark svg { width: 26px; height: 26px; }
.mf-brand-name { font-size: 1.12rem; text-transform: uppercase; }
.custom-logo-link { display: inline-flex; align-items: center; margin-right: auto; }
.custom-logo { width: auto; max-height: 54px; }
.mf-nav { display: flex; align-items: center; gap: 28px; }
.mf-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.mf-menu > li { position: relative; margin: 0; }
.mf-menu a { display: inline-block; padding-block: 10px; text-decoration: none; font-size: .92rem; font-weight: 750; }
.mf-menu a:hover, .mf-menu .current-menu-item > a { color: #a53b52; }
.mf-menu .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 7px; }
.mf-menu .menu-item-has-children > a::after { content: "⌄"; position: relative; top: -2px; font-size: .8em; transition: transform .2s; }
.mf-menu .menu-item-has-children:hover > a::after,
.mf-menu .menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }
.mf-menu .sub-menu {
  position: absolute; z-index: 110; top: calc(100% + 8px); left: 50%; width: max-content; min-width: 220px;
  margin: 0; padding: 9px; list-style: none; visibility: hidden; opacity: 0; transform: translate(-50%, 8px);
  border: 1px solid var(--mf-line); border-radius: 15px; background: #fff; box-shadow: 0 18px 48px rgba(43,25,61,.16);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.mf-menu .sub-menu::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 12px; }
.mf-menu .sub-menu li { margin: 0; }
.mf-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 9px; white-space: nowrap; }
.mf-menu .sub-menu a:hover, .mf-menu .sub-menu .current-menu-item > a { color: var(--mf-ink); background: var(--mf-soft); }
.mf-menu li:hover > .sub-menu,
.mf-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.mf-header-cta { padding: 12px 18px; border-radius: 13px; background: var(--mf-ink); color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; }
.mf-menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--mf-line); border-radius: 13px; background: #fff; cursor: pointer; }
.mf-menu-toggle span, .mf-menu-toggle::before, .mf-menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--mf-ink); transition: .2s; }

.mf-hero { position: relative; overflow: hidden; color: #fff; background: var(--mf-ink); }
.mf-hero::before, .mf-hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(8px); }
.mf-hero::before { width: 620px; height: 620px; right: -140px; top: -230px; background: radial-gradient(circle, rgba(126,87,194,.55), transparent 68%); }
.mf-hero::after { width: 430px; height: 430px; left: -190px; bottom: -250px; background: radial-gradient(circle, rgba(239,95,108,.38), transparent 70%); }
.mf-hero-grid { position: relative; z-index: 1; min-height: 720px; padding-block: 110px 140px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr); align-items: center; gap: 90px; }
.mf-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #9b3f55; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.mf-hero .mf-eyebrow { color: var(--mf-lime); }
.mf-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mf-green); box-shadow: 0 0 0 5px rgba(239,95,108,.14); }
.mf-hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.5rem, 7.2vw, 6.35rem); line-height: .94; letter-spacing: -.065em; }
.mf-accent { color: var(--mf-lime); }
.mf-hero-lead { max-width: 690px; margin: 28px 0 0; color: rgba(255,255,255,.76); font-size: clamp(1.05rem, 1.6vw, 1.26rem); }
.mf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.mf-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 13px 21px; border: 1px solid transparent; border-radius: 14px; text-decoration: none; font-weight: 850; transition: transform .2s, box-shadow .2s, background .2s; }
.mf-button:hover { transform: translateY(-2px); }
.mf-button--primary { color: var(--mf-ink); background: var(--mf-lime); box-shadow: 0 12px 34px rgba(255,178,91,.24); }
.mf-button--dark { color: #fff; background: var(--mf-ink); }
.mf-button--ghost { color: #fff; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.06); }
.mf-button--light { color: var(--mf-ink); background: #fff; }
.mf-hero-card { position: relative; min-height: 410px; padding: 32px; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)); box-shadow: 0 30px 90px rgba(0,0,0,.18); transform: rotate(2.4deg); backdrop-filter: blur(10px); }
.mf-hero-card::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(255,178,91,.42); border-radius: 21px; }
.mf-hero-card-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.mf-hero-card-label { align-self: flex-start; padding: 7px 11px; border-radius: 999px; color: var(--mf-ink); background: var(--mf-lime); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.mf-hero-card-number { margin: auto 0 0; color: rgba(255,255,255,.14); font-size: 8rem; font-weight: 950; line-height: .8; letter-spacing: -.1em; }
.mf-hero-card h2 { max-width: 300px; margin: 22px 0 8px; font-size: 1.8rem; line-height: 1.05; letter-spacing: -.04em; }
.mf-hero-card p { margin: 0; color: rgba(255,255,255,.7); }
.mf-hero-wave { position: absolute; z-index: 2; right: -2%; bottom: -1px; left: -2%; height: 70px; background: #fff; clip-path: ellipse(57% 48% at 50% 100%); }

.mf-section { padding-block: 110px; }
.mf-section--soft { background: var(--mf-soft); }
.mf-section--dark { color: #fff; background: var(--mf-ink); }
.mf-section-head { max-width: 720px; margin-bottom: 48px; }
.mf-section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.mf-section h2, .mf-page-hero h1 { margin: 0; font-size: clamp(2.35rem, 4.7vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em; }
.mf-section-lead { max-width: 650px; margin: 18px 0 0; color: var(--mf-muted); font-size: 1.1rem; }
.mf-section--dark .mf-section-lead { color: rgba(255,255,255,.68); }
.mf-text-link { display: inline-flex; align-items: center; gap: 8px; color: #a53b52; font-weight: 850; text-decoration: none; }

.mf-about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.mf-about-copy { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.42; letter-spacing: -.025em; }
.mf-about-copy p:first-child { margin-top: 0; }
.mf-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mf-value { padding: 22px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; }
.mf-value-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 13px; background: var(--mf-lime); font-weight: 950; }
.mf-value strong { display: block; font-size: 1.03rem; }
.mf-value span { color: var(--mf-muted); font-size: .9rem; }

.mf-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mf-card { position: relative; min-width: 0; height: 100%; display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: #fff; transition: transform .25s, box-shadow .25s; }
.mf-card:hover { transform: translateY(-5px); box-shadow: var(--mf-shadow); }
.mf-card-media { width: 100%; display: block; flex: 0 0 auto; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--mf-ink-2), var(--mf-green)); }
.mf-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mf-card:hover .mf-card-media img { transform: scale(1.04); }
.mf-card-placeholder { height: 100%; display: grid; place-items: center; color: var(--mf-lime); font-size: 4rem; font-weight: 950; }
.mf-card-body { height: 100%; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; }
.mf-card-kicker { margin: 0 0 10px; color: #9b3f55; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mf-card h3 { margin: 0 0 10px; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.035em; }
.mf-card h3 a { text-decoration: none; }
.mf-card p { margin: 0; color: var(--mf-muted); }
.mf-card .mf-text-link { margin-top: auto; padding-top: 22px; }

.mf-impact { overflow: hidden; }
.mf-impact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.mf-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mf-stat { padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.055); }
.mf-stat strong { display: block; color: var(--mf-lime); font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.055em; }
.mf-stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.7); }
.mf-goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mf-goal { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 23px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.055); }
.mf-goal span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--mf-ink); background: var(--mf-lime); font-size: .78rem; font-weight: 950; }
.mf-goal p { margin: 2px 0 0; color: rgba(255,255,255,.86); font-weight: 700; line-height: 1.45; }

.mf-event-list { display: grid; gap: 12px; }
.mf-event { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 24px; padding: 20px; border: 1px solid var(--mf-line); border-radius: 18px; background: #fff; }
.mf-event--simple { grid-template-columns: 92px 1fr; }
.mf-event--message { display: block; color: var(--mf-muted); text-align: center; }
.mf-event--message p { margin: 0; }
.mf-event--loading { opacity: .7; }
.mf-event-date { padding: 14px 8px; border-radius: 14px; text-align: center; color: #fff; background: var(--mf-ink); }
.mf-event-date strong { display: block; font-size: 1.85rem; line-height: 1; }
.mf-event-date span { display: block; margin-top: 5px; color: var(--mf-lime); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.mf-event h3 { margin: 0 0 4px; font-size: 1.2rem; }
.mf-event h3 a { text-decoration: none; }
.mf-event-meta { color: var(--mf-muted); font-size: .9rem; }
.mf-event-description { max-width: 780px; margin: 9px 0 0; color: var(--mf-muted); font-size: .94rem; }

.mf-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.mf-news-card .mf-card-media { aspect-ratio: 16 / 10; }
.mf-news-meta { display: flex; gap: 12px; margin-bottom: 10px; color: var(--mf-muted); font-size: .8rem; }

.mf-cta { padding-block: 50px 100px; }
.mf-cta-box { position: relative; overflow: hidden; padding: clamp(34px, 7vw, 76px); border-radius: 32px; color: #fff; background: var(--mf-ink); }
.mf-cta-box::after { content: ""; position: absolute; width: 400px; height: 400px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,178,91,.32), transparent 65%); }
.mf-cta-box > * { position: relative; z-index: 1; }
.mf-cta-box h2 { max-width: 760px; }
.mf-cta-box p { max-width: 620px; color: rgba(255,255,255,.72); font-size: 1.1rem; }

.mf-page-hero { padding-block: 95px 85px; color: #fff; background: var(--mf-ink); }
.mf-page-hero .mf-eyebrow { color: var(--mf-lime); }
.mf-page-hero p { max-width: 720px; margin: 20px 0 0; color: rgba(255,255,255,.72); font-size: 1.15rem; }
.mf-content { padding-block: 80px 110px; }
.mf-entry-content { font-size: 1.08rem; }
.mf-entry-content > * { max-width: 780px; margin-inline: auto; }
.mf-entry-content > .alignwide { max-width: var(--mf-container); }
.mf-entry-content > .alignfull { max-width: none; }
.mf-entry-content h2, .mf-entry-content h3 { margin-top: 2em; line-height: 1.15; letter-spacing: -.035em; }
.mf-entry-content h2 { font-size: 2.2rem; }
.mf-entry-content blockquote { padding: 18px 24px; border-left: 5px solid var(--mf-lime); background: var(--mf-soft); font-size: 1.2rem; }
.mf-entry-content a { color: #98384f; }
.mf-pagination { margin-top: 45px; }
.mf-pagination .nav-links { display: flex; gap: 8px; }
.mf-pagination .page-numbers { min-width: 42px; padding: 9px 12px; border-radius: 10px; text-align: center; text-decoration: none; background: var(--mf-soft); }
.mf-pagination .current { color: #fff; background: var(--mf-ink); }

.mf-site-footer { padding: 74px 0 28px; color: rgba(255,255,255,.72); background: #1c1029; }
.mf-footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr 1fr; gap: 45px; }
.mf-site-footer .mf-brand { color: #fff; }
.mf-site-footer .custom-logo-link { display: inline-flex; margin: 0 0 18px; }
.mf-site-footer .custom-logo { width: auto; max-width: 190px; max-height: 68px; }
.mf-footer-about { max-width: 330px; }
.mf-site-footer h2 { margin: 0 0 16px; color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.mf-footer-menu { margin: 0; padding: 0; list-style: none; }
.mf-footer-menu li + li { margin-top: 8px; }
.mf-site-footer a { text-decoration: none; }
.mf-site-footer a:hover { color: var(--mf-lime); }
.mf-footer-bottom { margin-top: 56px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.mf-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mf-social { display: flex; gap: 10px; }
.mf-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; font-weight: 800; }

/* Atklāj / orientēšanās landing page. */
.mf-orient-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 18%, #6b477f 0, var(--mf-ink) 42%, #1c1029 100%); }
.mf-orient-hero::before { content: ""; position: absolute; width: 500px; height: 500px; left: -280px; bottom: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(239,95,108,.34), transparent 67%); }
.mf-orient-hero-grid { position: relative; z-index: 1; min-height: 750px; padding-block: 95px 145px; display: grid; grid-template-columns: 1fr .82fr; gap: 80px; align-items: center; }
.mf-orient-hero h1 { margin: 0; font-size: clamp(3.8rem, 7vw, 6.7rem); line-height: .92; letter-spacing: -.065em; }
.mf-orient-lead { max-width: 680px; margin: 27px 0 0; color: rgba(255,255,255,.76); font-size: 1.16rem; }
.mf-orient-checks { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 30px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.76); font-size: .88rem; font-weight: 750; }
.mf-orient-checks li::before { content: "✓"; width: 21px; height: 21px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 50%; color: var(--mf-lime); background: rgba(255,178,91,.13); }
.mf-orient-visual { position: relative; min-height: 530px; }
.mf-orient-photo { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: var(--mf-ink-2); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.mf-orient-photo img { width: 100%; height: 100%; object-fit: cover; }
.mf-orient-photo--main { inset: 0 45px 60px 0; border-radius: 32px; transform: rotate(2.5deg); }
.mf-orient-photo--small { width: 190px; height: 230px; right: 0; bottom: 0; border: 7px solid var(--mf-ink); border-radius: 24px; transform: rotate(-4deg); }
.mf-orient-float-card { position: absolute; z-index: 2; left: -35px; bottom: 34px; width: 170px; padding: 18px; border-radius: 18px; color: var(--mf-ink); background: var(--mf-lime); box-shadow: var(--mf-shadow); transform: rotate(-3deg); }
.mf-orient-float-card strong { display: block; font-size: 2.5rem; line-height: 1; letter-spacing: -.06em; }
.mf-orient-float-card span { display: block; margin-top: 7px; font-size: .78rem; font-weight: 800; line-height: 1.3; }
.mf-orient-intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: start; }
.mf-orient-intro-copy { padding-top: 42px; color: var(--mf-muted); font-size: 1.16rem; }
.mf-orient-intro-copy p { margin-top: 0; }
.mf-orient-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mf-orient-step { padding: 26px; border: 1px solid var(--mf-line); border-radius: 20px; background: #fff; }
.mf-orient-step > span { display: inline-block; margin-bottom: 48px; color: #9b3f55; font-size: .78rem; font-weight: 950; letter-spacing: .12em; }
.mf-orient-step h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.035em; }
.mf-orient-step p { margin: 0; color: var(--mf-muted); font-size: .92rem; }
.mf-orient-audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mf-orient-audience { position: relative; min-height: 270px; padding: 30px; overflow: hidden; border: 1px solid var(--mf-line); border-radius: 22px; text-decoration: none; background: #fff; transition: transform .2s, box-shadow .2s; }
.mf-orient-audience:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow); }
.mf-orient-audience > span { display: block; margin-bottom: 28px; font-size: 2.2rem; }
.mf-orient-audience h3 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -.04em; }
.mf-orient-audience p { max-width: 480px; margin: 0; color: var(--mf-muted); }
.mf-orient-audience strong { position: absolute; left: 30px; bottom: 26px; color: #a53b52; font-size: .9rem; }
.mf-orient-story-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 85px; align-items: center; }
.mf-orient-story-photos { min-height: 560px; position: relative; }
.mf-orient-story-photos img { position: absolute; width: 65%; height: 82%; object-fit: cover; border-radius: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.mf-orient-story-photos img:first-child { left: 0; top: 0; transform: rotate(-3deg); }
.mf-orient-story-photos img:last-child { right: 0; bottom: 0; border: 7px solid var(--mf-ink); transform: rotate(4deg); }
.mf-orient-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.mf-orient-feature-list li { padding: 13px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.05); font-size: .9rem; font-weight: 700; }
.mf-orient-feature-list li::before { content: "✓"; margin-right: 8px; color: var(--mf-lime); }
.mf-orient-cta { padding-top: 100px; }

/* About / Mēs page. */
.mf-about-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 18%, #6b477f 0, var(--mf-ink) 44%, #1c1029 100%); }
.mf-about-hero-grid { position: relative; z-index: 1; min-height: 730px; padding-block: 95px 145px; display: grid; grid-template-columns: 1fr .88fr; gap: 85px; align-items: center; }
.mf-about-hero h1, .mf-contact-hero h1 { margin: 0; font-size: clamp(3.8rem, 7.2vw, 6.7rem); line-height: .92; letter-spacing: -.065em; }
.mf-about-hero-lead { max-width: 680px; margin: 28px 0 0; color: rgba(255,255,255,.76); font-size: 1.16rem; }
.mf-about-collage { position: relative; min-height: 520px; }
.mf-about-collage img { position: absolute; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.mf-about-collage-main { inset: 0 70px 55px 0; width: calc(100% - 70px); height: calc(100% - 55px); transform: rotate(2.5deg); }
.mf-about-collage-small { width: 180px; height: 230px; right: 0; bottom: 0; border: 7px solid var(--mf-ink); transform: rotate(-4deg); }
.mf-about-year { position: absolute; z-index: 2; left: -30px; bottom: 25px; width: 165px; padding: 18px; border-radius: 18px; color: var(--mf-ink); background: var(--mf-lime); box-shadow: var(--mf-shadow); transform: rotate(-3deg); }
.mf-about-year strong { display: block; font-size: 2.1rem; line-height: 1; }
.mf-about-year span { display: block; margin-top: 6px; font-size: .78rem; font-weight: 800; }
.mf-about-story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.mf-about-story-copy { font-size: 1.2rem; }
.mf-about-story-copy p:first-child { margin-top: 0; }
.mf-about-story-copy p { color: #50465a; }
.mf-about-value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mf-about-value { min-height: 290px; padding: 25px; border: 1px solid var(--mf-line); border-radius: 21px; background: #fff; }
.mf-about-value > span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 55px; border-radius: 14px; background: var(--mf-lime); font-size: 1.15rem; font-weight: 950; }
.mf-about-value h3 { margin: 0 0 9px; font-size: 1.3rem; letter-spacing: -.035em; }
.mf-about-value p { margin: 0; color: var(--mf-muted); font-size: .92rem; }
.mf-about-do-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.mf-about-do-list { display: grid; gap: 10px; }
.mf-about-do-list > div { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; padding: 19px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.05); }
.mf-about-do-list strong { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--mf-ink); background: var(--mf-lime); font-size: .76rem; }
.mf-about-do-list span { color: rgba(255,255,255,.84); font-weight: 700; }
.mf-about-gallery { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 14px; min-height: 520px; }
.mf-about-gallery img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: 22px; }

/* Contact and membership page. */
.mf-contact-hero { position: relative; overflow: hidden; padding-block: 100px 110px; color: #fff; background: var(--mf-ink); }
.mf-contact-hero::after { content: ""; position: absolute; width: 600px; height: 600px; right: -160px; top: -290px; border-radius: 50%; background: radial-gradient(circle, rgba(239,95,108,.36), transparent 68%); }
.mf-contact-hero .mf-container { position: relative; z-index: 1; }
.mf-contact-hero p:last-child { max-width: 710px; margin: 25px 0 0; color: rgba(255,255,255,.72); font-size: 1.16rem; }
.mf-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 75px; align-items: start; }
.mf-contact-main h2, .mf-join-card h2, .mf-contact-question h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing: -.05em; }
.mf-contact-cards { display: grid; gap: 10px; margin-top: 34px; }
.mf-contact-card { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: center; padding: 18px; border: 1px solid var(--mf-line); border-radius: 16px; text-decoration: none; background: #fff; transition: border-color .2s, transform .2s; }
a.mf-contact-card:hover { border-color: #ef9aa5; transform: translateX(4px); }
.mf-contact-card > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--mf-ink); background: var(--mf-lime); font-weight: 950; }
.mf-contact-card small { display: block; color: var(--mf-muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mf-contact-card strong { display: block; margin-top: 2px; line-height: 1.3; }
.mf-contact-socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.mf-contact-socials a { padding: 10px 14px; border-radius: 11px; color: #fff; text-decoration: none; background: var(--mf-ink); font-size: .88rem; font-weight: 800; }
.mf-join-card { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 55px); border-radius: 28px; color: #fff; background: var(--mf-ink); box-shadow: var(--mf-shadow); }
.mf-join-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -130px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(255,178,91,.28), transparent 68%); }
.mf-join-card > * { position: relative; z-index: 1; }
.mf-join-card > p:not(.mf-eyebrow):not(.mf-join-note) { color: rgba(255,255,255,.72); }
.mf-join-steps { display: grid; gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.mf-join-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.05); }
.mf-join-steps li > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--mf-ink); background: var(--mf-lime); font-weight: 950; }
.mf-join-steps strong, .mf-join-steps small { display: block; }
.mf-join-steps small { margin-top: 2px; color: rgba(255,255,255,.63); line-height: 1.35; }
.mf-join-button { width: 100%; }
.mf-join-note { margin: 12px 0 0; color: rgba(255,255,255,.54); text-align: center; font-size: .78rem; }
.mf-contact-question { display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: center; }
.mf-contact-question p { margin-top: 0; color: var(--mf-muted); font-size: 1.08rem; }

/* Patversmes project page. */
.mf-shelter-hero { overflow: hidden; padding-block: 92px 105px; color: #fff; background: radial-gradient(circle at 78% 15%, #7a4659 0, var(--mf-ink) 46%, #1c1029 100%); }
.mf-shelter-hero-grid { display: grid; grid-template-columns: 1fr .84fr; gap: 85px; align-items: center; }
.mf-shelter-hero h1, .mf-valentine-hero h1 { margin: 0; font-size: clamp(3.7rem, 7vw, 6.5rem); line-height: .93; letter-spacing: -.065em; }
.mf-shelter-hero h1 span { color: var(--mf-lime); }
.mf-shelter-lead, .mf-valentine-lead { max-width: 650px; margin: 26px 0 0; color: rgba(255,255,255,.76); font-size: 1.18rem; }
.mf-shelter-hero-visual { position: relative; }
.mf-shelter-hero-visual img { width: 100%; aspect-ratio: 4 / 4.7; display: block; object-fit: cover; border-radius: 32px; box-shadow: 0 30px 85px rgba(0,0,0,.34); transform: rotate(2.5deg); }
.mf-shelter-sticker { position: absolute; left: -38px; bottom: 32px; width: 166px; padding: 19px; border-radius: 19px; color: var(--mf-ink); background: var(--mf-lime); box-shadow: var(--mf-shadow); transform: rotate(-4deg); }
.mf-shelter-sticker strong, .mf-shelter-sticker span { display: block; }
.mf-shelter-sticker strong { font-size: 2.5rem; line-height: 1; letter-spacing: -.06em; }
.mf-shelter-sticker span { margin-top: 6px; font-size: .78rem; font-weight: 850; line-height: 1.25; }
.mf-shelter-why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.mf-shelter-copy { color: #50465a; font-size: 1.12rem; }
.mf-shelter-copy p:first-child { margin-top: 0; }
.mf-shelter-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 34px; }
.mf-shelter-stats > div { padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.05); }
.mf-shelter-stats strong, .mf-shelter-stats span { display: block; }
.mf-shelter-stats strong { color: var(--mf-lime); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.065em; }
.mf-shelter-stats span { margin-top: 10px; color: rgba(255,255,255,.75); font-weight: 750; }
.mf-shelter-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mf-shelter-project { padding: 32px; border: 1px solid var(--mf-line); border-radius: 24px; background: #fff; }
.mf-shelter-project-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 55px; color: #9b3f55; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mf-shelter-project h3 { margin: 0 0 20px; font-size: 1.75rem; line-height: 1.08; letter-spacing: -.04em; }
.mf-shelter-project ul { margin: 0; padding-left: 21px; color: #50465a; }
.mf-shelter-project li + li { margin-top: 8px; }
.mf-shelter-project > p { margin: 23px 0 0; padding-top: 20px; border-top: 1px solid var(--mf-line); color: var(--mf-muted); font-size: .9rem; }
.mf-shelter-help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mf-shelter-help-grid article { min-height: 285px; padding: 25px; border: 1px solid var(--mf-line); border-radius: 21px; }
.mf-shelter-help-grid article > span { display: block; margin-bottom: 62px; color: #9b3f55; font-size: .78rem; font-weight: 950; letter-spacing: .12em; }
.mf-shelter-help-grid h3 { margin: 0 0 9px; font-size: 1.3rem; line-height: 1.12; }
.mf-shelter-help-grid p { margin: 0; color: var(--mf-muted); font-size: .92rem; }
.mf-shelter-cta { padding-top: 70px; }

/* Valentine's mail project page. */
.mf-valentine-page { --mf-valentine: #ff6f91; --mf-valentine-deep: #d94b72; --mf-valentine-soft: #fff2f5; }
.mf-valentine-hero { position: relative; overflow: hidden; padding-block: 85px 105px; color: #fff; background: radial-gradient(circle at 78% 20%, #8f315b 0, #301c45 35%, var(--mf-ink) 72%); }
.mf-valentine-hero::before { content: "♥"; position: absolute; left: -70px; bottom: -230px; color: rgba(255,255,255,.035); font-size: 32rem; line-height: 1; transform: rotate(-15deg); }
.mf-valentine-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .72fr; gap: 90px; align-items: center; }
.mf-valentine-hero h1 span { color: #ff9db4; }
.mf-valentine-poster-wrap { position: relative; width: min(100%, 410px); justify-self: center; }
.mf-valentine-poster-wrap img { width: 100%; display: block; border: 8px solid rgba(255,255,255,.92); border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.38); transform: rotate(3deg); }
.mf-valentine-heart { position: absolute; z-index: 2; right: -32px; top: -30px; width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--mf-valentine); box-shadow: 0 16px 40px rgba(0,0,0,.24); font-size: 2.5rem; transform: rotate(8deg); }
.mf-valentine-status { display: flex; gap: 9px; align-items: center; margin: 24px 0 0; color: rgba(255,255,255,.63); font-size: .84rem; font-weight: 700; }
.mf-valentine-status span { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #ff9db4; box-shadow: 0 0 0 6px rgba(255,157,180,.12); }
.mf-valentine-intro { background: var(--mf-valentine-soft); }
.mf-valentine-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.mf-valentine-copy { color: #46384b; font-size: 1.18rem; }
.mf-valentine-copy p:first-child { margin-top: 0; }
.mf-valentine-steps-section { background: #fff; }
.mf-valentine-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mf-valentine-steps article { min-height: 310px; padding: 28px; border: 1px solid #f1ccd5; border-radius: 23px; background: linear-gradient(145deg, #fff 55%, #fff2f5); }
.mf-valentine-steps article > span { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 62px; border-radius: 15px; color: #fff; background: var(--mf-valentine-deep); font-size: .78rem; font-weight: 950; }
.mf-valentine-steps h3 { margin: 0 0 10px; font-size: 1.4rem; line-height: 1.12; }
.mf-valentine-steps p { margin: 0; color: var(--mf-muted); }
.mf-valentine-values-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 85px; align-items: start; }
.mf-valentine-values ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mf-valentine-values li { padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.05); }
.mf-valentine-values strong, .mf-valentine-values span { display: block; }
.mf-valentine-values strong { color: #ff9db4; font-size: 1.08rem; }
.mf-valentine-values span { margin-top: 4px; color: rgba(255,255,255,.7); }
.mf-valentine-cta .mf-cta-box { background: linear-gradient(125deg, #301c45, var(--mf-ink)); }

/* Privacy policy and terms. */
.mf-legal-hero { overflow: hidden; padding-block: 88px; color: #fff; background: radial-gradient(circle at 82% 15%, #6b477f, var(--mf-ink) 45%, #1c1029 100%); }
.mf-legal-hero--terms { background: radial-gradient(circle at 82% 15%, #8b4c59, var(--mf-ink) 45%, #1c1029 100%); }
.mf-legal-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; }
.mf-legal-hero h1 { margin: 0; font-size: clamp(3.5rem, 7vw, 6.2rem); line-height: .94; letter-spacing: -.065em; }
.mf-legal-hero p:not(.mf-eyebrow) { max-width: 720px; margin: 24px 0 0; color: rgba(255,255,255,.74); font-size: 1.12rem; }
.mf-legal-meta { min-width: 250px; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.07); }
.mf-legal-meta span, .mf-legal-meta strong { display: block; }
.mf-legal-meta span { color: var(--mf-lime); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mf-legal-meta strong { margin-top: 6px; font-size: .9rem; }
.mf-legal-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 75px; padding-block: 80px 120px; align-items: start; }
.mf-legal-toc { position: sticky; top: 110px; padding: 22px; border: 1px solid var(--mf-line); border-radius: 18px; background: var(--mf-soft); }
.mf-legal-toc > strong { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.mf-legal-toc ol { display: grid; gap: 9px; margin: 17px 0 0; padding: 0; list-style: none; counter-reset: legal-toc; }
.mf-legal-toc li { counter-increment: legal-toc; }
.mf-legal-toc a { display: grid; grid-template-columns: 23px 1fr; gap: 7px; color: var(--mf-muted); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.mf-legal-toc a::before { content: counter(legal-toc, decimal-leading-zero); color: #a53b52; font-size: .7rem; font-weight: 900; }
.mf-legal-toc a:hover { color: var(--mf-ink); }
.mf-legal-content { min-width: 0; max-width: 850px; }
.mf-legal-summary { margin-bottom: 55px; padding: 26px; border: 1px solid #efc4c8; border-radius: 20px; background: #fff7f5; }
.mf-legal-summary strong { color: #9b3f55; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.mf-legal-summary p { margin: 8px 0 0; font-size: 1.08rem; }
.mf-legal-content > section { position: relative; padding-block: 46px; border-top: 1px solid var(--mf-line); scroll-margin-top: 110px; }
.mf-legal-content > section:first-of-type { border-top: 0; }
.mf-legal-number { display: block; margin-bottom: 13px; color: #a53b52; font-size: .76rem; font-weight: 950; letter-spacing: .13em; }
.mf-legal-content h2 { max-width: 760px; margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; letter-spacing: -.05em; }
.mf-legal-content h3 { margin-top: 32px; }
.mf-legal-content p, .mf-legal-content li { color: #50465a; }
.mf-legal-content p { margin-block: 14px; }
.mf-legal-content ul { padding-left: 22px; }
.mf-legal-content li + li { margin-top: 8px; }
.mf-legal-content a:not(.mf-button) { color: #98384f; font-weight: 750; }
.mf-legal-contact-card { margin-block: 25px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 30px; border-radius: 19px; color: #fff; background: var(--mf-ink); }
.mf-legal-contact-card p { margin: 0; color: rgba(255,255,255,.76); }
.mf-legal-contact-card strong { color: #fff; font-size: 1.08rem; }
.mf-legal-contact-card a { color: var(--mf-lime) !important; }
.mf-legal-table-wrap { width: 100%; margin-block: 28px; overflow-x: auto; border: 1px solid var(--mf-line); border-radius: 18px; }
.mf-legal-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .88rem; line-height: 1.45; }
.mf-legal-table th, .mf-legal-table td { padding: 17px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mf-line); }
.mf-legal-table th { color: #fff; background: var(--mf-ink); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.mf-legal-table td { color: #50465a; }
.mf-legal-table tr:last-child td { border-bottom: 0; }
.mf-legal-table tbody tr:nth-child(even) { background: var(--mf-soft); }
.mf-legal-rights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-block: 25px; }
.mf-legal-rights > div { padding: 18px; border: 1px solid var(--mf-line); border-radius: 15px; }
.mf-legal-rights strong, .mf-legal-rights span { display: block; }
.mf-legal-rights strong { color: #9b3f55; }
.mf-legal-rights span { margin-top: 4px; color: var(--mf-muted); font-size: .9rem; }
.mf-legal-final-cta { margin-top: 32px; padding: 23px; display: flex; justify-content: space-between; gap: 25px; align-items: center; border-radius: 18px; background: var(--mf-soft); }

/* Keep eyebrow labels readable on all dark project sections. */
.mf-section--dark .mf-eyebrow,
.mf-cta-box .mf-eyebrow,
.mf-page-hero .mf-eyebrow,
.mf-orient-hero .mf-eyebrow,
.mf-about-hero .mf-eyebrow,
.mf-contact-hero .mf-eyebrow,
.mf-shelter-hero .mf-eyebrow,
.mf-valentine-hero .mf-eyebrow { color: var(--mf-lime); }

.wp-block-button__link { border-radius: 14px; background: var(--mf-ink); }
.wp-block-image img { border-radius: 18px; }
.comment-respond input:not([type="submit"]), .comment-respond textarea, .wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpcf7 select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--mf-line); border-radius: 12px; background: #fff;
}
.submit, .wpcf7-submit { padding: 13px 19px; border: 0; border-radius: 12px; color: #fff; background: var(--mf-ink); font-weight: 800; cursor: pointer; }

@media (max-width: 980px) {
  .admin-bar .mf-site-header { top: 46px; }
  .mf-menu-toggle { display: block; }
  .mf-nav { position: fixed; inset: 82px 0 auto; max-height: calc(100vh - 82px); padding: 24px 20px 30px; display: none; align-items: stretch; flex-direction: column; overflow: auto; background: #fff; box-shadow: 0 20px 35px rgba(43,25,61,.15); }
  .admin-bar .mf-nav { inset-block-start: 128px; }
  .mf-nav.is-open { display: flex; }
  .mf-menu { align-items: stretch; flex-direction: column; gap: 0; }
	.mf-menu > li { width: 100%; }
  .mf-menu a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--mf-line); font-size: 1.05rem; }
	.mf-menu .menu-item-has-children > a { display: flex; justify-content: space-between; }
	.mf-menu .sub-menu { position: static; width: auto; min-width: 0; margin: 0; padding: 2px 0 7px 17px; visibility: visible; opacity: 1; transform: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
	.mf-menu .sub-menu::before { display: none; }
	.mf-menu .sub-menu a { padding: 10px 4px; border-radius: 0; color: var(--mf-muted); font-size: .94rem; white-space: normal; }
	.mf-menu li:hover > .sub-menu, .mf-menu li:focus-within > .sub-menu { transform: none; }
  .mf-header-cta { text-align: center; }
  .mf-hero-grid { min-height: auto; padding-block: 90px 130px; grid-template-columns: 1fr; gap: 55px; }
  .mf-hero-card { max-width: 560px; min-height: 330px; }
  .mf-about-grid, .mf-impact-grid { grid-template-columns: 1fr; gap: 48px; }
  .mf-card-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.mf-orient-hero-grid, .mf-orient-intro-grid, .mf-orient-story-grid { grid-template-columns: 1fr; gap: 55px; }
	.mf-orient-hero-grid { padding-top: 80px; }
	.mf-orient-visual { width: min(100%, 650px); }
	.mf-orient-intro-copy { padding-top: 0; }
	.mf-orient-steps { grid-template-columns: repeat(2, 1fr); }
	.mf-orient-story-photos { width: min(100%, 650px); }
	.mf-about-hero-grid, .mf-about-story-grid, .mf-about-do-grid, .mf-contact-grid, .mf-contact-question { grid-template-columns: 1fr; gap: 55px; }
	.mf-about-value-grid { grid-template-columns: repeat(2, 1fr); }
	.mf-about-collage { width: min(100%, 650px); }
	.mf-about-gallery { grid-template-columns: repeat(2, 1fr); }
	.mf-about-gallery img:first-child { grid-column: 1 / -1; }
	.mf-shelter-hero-grid, .mf-shelter-why-grid, .mf-valentine-hero-grid, .mf-valentine-intro-grid, .mf-valentine-values-grid { grid-template-columns: 1fr; gap: 55px; }
	.mf-shelter-hero-visual { width: min(100%, 590px); }
	.mf-shelter-hero-visual img { aspect-ratio: 4 / 3.5; }
	.mf-shelter-help-grid { grid-template-columns: repeat(2, 1fr); }
	.mf-shelter-projects { grid-template-columns: repeat(2, 1fr); }
	.mf-valentine-poster-wrap { justify-self: start; }
	.mf-legal-hero-grid { grid-template-columns: 1fr; align-items: start; }
	.mf-legal-meta { width: min(100%, 390px); }
	.mf-legal-layout { grid-template-columns: 1fr; gap: 40px; }
	.mf-legal-toc { position: static; }
}

@media (max-width: 680px) {
  .mf-container, .mf-narrow { width: min(calc(100% - 28px), var(--mf-container)); }
  .mf-header-inner { min-height: 70px; }
  .mf-nav { inset-block-start: 70px; }
  .admin-bar .mf-nav { inset-block-start: 116px; }
  .mf-brand-name { font-size: 1rem; }
  .mf-section { padding-block: 76px; }
  .mf-hero-grid { padding-block: 70px 110px; }
  .mf-hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .mf-hero-card { min-height: 290px; padding: 25px; }
  .mf-hero-card-number { font-size: 6rem; }
  .mf-card-grid, .mf-news-grid, .mf-values, .mf-stat-grid, .mf-goal-grid { grid-template-columns: 1fr; }
  .mf-section-head--row { align-items: start; flex-direction: column; }
  .mf-event { grid-template-columns: 72px 1fr; gap: 15px; }
  .mf-event .mf-button { grid-column: 1 / -1; }
  .mf-footer-grid { grid-template-columns: 1fr; }
  .mf-footer-bottom { flex-direction: column; }
	.mf-orient-hero-grid { min-height: auto; padding-block: 65px 115px; }
	.mf-orient-hero h1 { font-size: clamp(3.2rem, 16vw, 4.5rem); }
	.mf-orient-visual { min-height: 430px; }
	.mf-orient-photo--main { right: 20px; }
	.mf-orient-photo--small { width: 135px; height: 175px; }
	.mf-orient-float-card { left: 5px; bottom: 22px; width: 145px; }
	.mf-orient-steps, .mf-orient-audiences, .mf-orient-feature-list { grid-template-columns: 1fr; }
	.mf-orient-step > span { margin-bottom: 28px; }
	.mf-orient-story-photos { min-height: 430px; }
	.mf-about-hero-grid { min-height: auto; padding-block: 65px 115px; }
	.mf-about-hero h1, .mf-contact-hero h1 { font-size: clamp(3.15rem, 15vw, 4.5rem); }
	.mf-about-collage { min-height: 420px; }
	.mf-about-collage-main { right: 30px; width: calc(100% - 30px); }
	.mf-about-collage-small { width: 135px; height: 175px; }
	.mf-about-year { left: 5px; width: 140px; }
	.mf-about-value-grid, .mf-about-gallery { grid-template-columns: 1fr; }
	.mf-about-gallery img:first-child { grid-column: auto; }
	.mf-about-gallery img { min-height: 300px; }
	.mf-contact-hero { padding-block: 75px 80px; }
	.mf-contact-card { grid-template-columns: 46px 1fr; padding: 14px; }
	.mf-shelter-hero, .mf-valentine-hero { padding-block: 65px 80px; }
	.mf-shelter-hero h1, .mf-valentine-hero h1 { font-size: clamp(3.1rem, 15vw, 4.45rem); }
	.mf-shelter-sticker { left: 5px; bottom: 16px; }
	.mf-shelter-stats, .mf-shelter-projects, .mf-shelter-help-grid, .mf-valentine-steps { grid-template-columns: 1fr; }
	.mf-shelter-help-grid article { min-height: auto; }
	.mf-shelter-help-grid article > span, .mf-valentine-steps article > span { margin-bottom: 34px; }
	.mf-valentine-heart { right: -4px; }
	.mf-legal-hero { padding-block: 65px; }
	.mf-legal-hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
	.mf-legal-layout { padding-block: 55px 85px; }
	.mf-legal-contact-card, .mf-legal-rights { grid-template-columns: 1fr; }
	.mf-legal-final-cta { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
