/* Mission Field Fluency page. Builds on site.css tokens. Prefix: mf- (app) and pg- (page sections)
   Editorial treatment: warm paper, film grain, nested "bezel" enclosures, pill CTAs with a nested icon, spring-curve motion. */
.pg-grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pg-eyebrow { display: inline-flex; width: max-content; max-width: 100%; justify-self: start; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .38rem .85rem .38rem .6rem; border-radius: 999px; background: rgba(35,31,32,.045); box-shadow: inset 0 0 0 1px rgba(35,31,32,.07); font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.pg-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(29,115,188,.16); }
main h2 { letter-spacing: -.005em; }
.pg-pill { display: inline-flex; align-items: center; gap: .9rem; min-height: 54px; padding: .4rem .45rem .4rem 1.5rem; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font: 700 1rem/1 var(--sans); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 40px -22px rgba(29,115,188,.65); transition: transform .7s var(--spring), box-shadow .7s var(--spring), background-color .4s var(--spring); }
.pg-pill em { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); font-style: normal; font-size: 1.05rem; transition: transform .7s var(--spring), background-color .7s var(--spring); }
.pg-pill:hover { color: #fff; background: var(--blue-press); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 26px 48px -22px rgba(29,115,188,.7); }
.pg-pill:hover em { transform: translate(3px, -2px) scale(1.06); background: rgba(255,255,255,.26); }
.pg-pill:active { transform: scale(.98); }
.pg-pill.ghost { background: rgba(255,255,255,.55); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(35,31,32,.12), 0 14px 30px -24px rgba(35,31,32,.35); backdrop-filter: none; }
.pg-pill.ghost em { background: rgba(35,31,32,.06); color: var(--ink); }
.pg-pill.ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(35,31,32,.2), 0 22px 40px -24px rgba(35,31,32,.4); }
.pg-pill.ghost:hover em { background: var(--blue); color: #fff; }
.pg-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.pg-bezel { padding: 6px; border-radius: 18px; background: rgba(35,31,32,.045); box-shadow: inset 0 0 0 1px rgba(35,31,32,.07), 0 40px 80px -48px rgba(35,31,32,.35); }
.pg-core { border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 0 0 1px rgba(35,31,32,.06); }
.pg-core img { width: 100%; display: block; }
:root { --spring: cubic-bezier(.32, .72, 0, 1); }

/* reveal on scroll: only when JS runs, never hides content without it */
.js-reveal [data-reveal] { opacity: .001; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--spring), transform .9s var(--spring), filter .9s var(--spring); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; } }

/* hero: editorial split, type left, framed photograph right */
.pg-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 8rem); position: relative; overflow: clip; }
.pg-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(29,115,188,.12), rgba(29,115,188,0)); pointer-events: none; }
.pg-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; position: relative; }
.pg-hero h1 { font-size: clamp(3.4rem, 7.4vw, 6.6rem); line-height: .92; margin: 0; letter-spacing: -.01em; }
.pg-hero h1 span { color: var(--blue); display: block; }
.pg-hero .lede { margin-top: 1.75rem; font-size: clamp(1.15rem, 1.7vw, 1.35rem); max-width: 32ch; line-height: 1.5; }
.pg-hero .actions { margin-top: 2.5rem; }
.pg-hero figure { margin: 0; position: relative; transform: rotate(1.5deg); }
.pg-hero figure img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 35%; transition: transform 1.4s var(--spring); }
.pg-hero figure:hover img { transform: scale(1.03); }
.pg-tag { position: absolute; left: -1.25rem; bottom: 1.75rem; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(35,31,32,.08), 0 24px 40px -24px rgba(35,31,32,.4); font: 500 .9rem/1 var(--sans); color: var(--body); transform: rotate(-1.5deg); }
.pg-tag b { font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-right: .2rem; }
.pg-tag span { color: var(--muted); }
@media (max-width: 860px) {
  .pg-hero .wrap { grid-template-columns: 1fr; }
  .pg-hero figure { transform: none; }
  .pg-hero figure img { aspect-ratio: 4 / 3; }
  .pg-tag { left: 1rem; bottom: 1rem; transform: none; }
}
.js-reveal .pg-hero [data-load] { opacity: .001; transform: translateY(22px); filter: blur(6px); animation: pgIn 1.1s var(--spring) forwards; }
.js-reveal .pg-hero [data-load="2"] { animation-delay: .12s; } .js-reveal .pg-hero [data-load="3"] { animation-delay: .24s; } .js-reveal .pg-hero [data-load="4"] { animation-delay: .36s; }
.js-reveal .pg-hero figure[data-load] { animation-name: pgInFig; }
@keyframes pgIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes pgInFig { to { opacity: 1; transform: rotate(1.5deg); filter: none; } }
@media (max-width: 860px) { .js-reveal .pg-hero figure[data-load] { animation-name: pgIn; } }
@media (prefers-reduced-motion: reduce) { .js-reveal .pg-hero [data-load] { opacity: 1; transform: none; filter: none; animation: none; } }

/* county: one enormous number, three supporting, the population band */
.pg-county { background: var(--paper); padding-block: clamp(5rem, 11vw, 9rem); position: relative; }
.pg-county::before, .pg-county::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(35,31,32,.14), transparent); }
.pg-county::before { top: 0; } .pg-county::after { bottom: 0; }
.pg-county-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-top: 3rem; }
.pg-big .num { font-size: clamp(5.5rem, 14vw, 12rem); color: var(--blue); font-family: var(--display); font-weight: 700; display: block; line-height: .88; letter-spacing: -.02em; }
.pg-big p { font-size: 1.2rem; color: var(--ink); margin: 1.1rem 0 0; max-width: 28ch; line-height: 1.45; }
.pg-three { display: grid; gap: 1.5rem; }
.pg-three > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; border-top: 1px solid rgba(35,31,32,.14); padding-top: 1.1rem; }
.pg-three .num { font: 700 2.6rem/1 var(--display); color: var(--ink); }
.pg-three p { margin: 0; color: var(--body); }
.pg-county .bands { margin-top: 3.5rem; border-radius: 999px; overflow: hidden; padding: 4px; background: rgba(35,31,32,.045); box-shadow: inset 0 0 0 1px rgba(35,31,32,.07); }
.pg-county .bands span { border-radius: 999px; }
.pg-county .note { max-width: 70ch; margin-top: 1.25rem !important; }
@media (max-width: 860px) { .pg-county-grid { grid-template-columns: 1fr; } }

/* in the city vs for the city: two columns, the second one lifted */
.pg-forfor { padding-block: clamp(5.5rem, 12vw, 10rem); }
.pg-forfor .lede { margin-top: 1.5rem; max-width: 58ch; }
.pg-pairs { margin-top: 3rem; padding: 6px; border-radius: 18px; background: rgba(35,31,32,.045); box-shadow: inset 0 0 0 1px rgba(35,31,32,.07); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pg-pairs .head, .pg-pairs .pr { display: contents; }
.pg-pairs .head div { padding: 1.25rem 1.6rem .9rem; font: 700 1.2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.pg-pairs .head div:first-child { color: var(--muted); }
.pg-pairs .head div:last-child { color: #fff; background: var(--blue); border-radius: 12px 12px 0 0; }
.pg-pairs .pr div { padding: 1.05rem 1.6rem; border-top: 1px solid rgba(35,31,32,.08); }
.pg-pairs .pr div:first-child { color: var(--muted); }
.pg-pairs .pr div:last-child { color: var(--ink); font-weight: 600; background: var(--paper); border-top-color: rgba(35,31,32,.07); box-shadow: 1px 0 0 rgba(35,31,32,.06), -1px 0 0 rgba(35,31,32,.06); }
.pg-pairs .pr:last-child div:last-child { border-radius: 0 0 12px 12px; box-shadow: 1px 0 0 rgba(35,31,32,.06), -1px 0 0 rgba(35,31,32,.06), 0 1px 0 rgba(35,31,32,.06), 0 30px 60px -40px rgba(35,31,32,.4); }
@media (max-width: 640px) {
  .pg-pairs { grid-template-columns: 1fr; padding: 0; background: none; box-shadow: none; gap: .6rem; }
  .pg-pairs .head { display: none; }
  .pg-pairs .pr { display: grid; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(35,31,32,.08); }
  .pg-pairs .pr div { border: 0; }
  .pg-pairs .pr div:first-child::before { content: "In the city: "; font-weight: 700; }
  .pg-pairs .pr div:last-child { box-shadow: none; border-radius: 0 !important; }
  .pg-pairs .pr div:last-child::before { content: "For the city: "; color: var(--blue); }
}
.pg-verse { margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; max-width: 46ch; text-align: center; padding: 0; border: 0; }
.pg-verse p { font: italic 400 clamp(1.6rem, 3vw, 2.4rem)/1.3 var(--serif); color: var(--ink); margin: 0; }
.pg-verse cite { display: inline-flex; margin-top: 1.25rem; padding: .38rem .85rem; border-radius: 999px; background: rgba(35,31,32,.045); box-shadow: inset 0 0 0 1px rgba(35,31,32,.07); font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--ink); }

/* neighbors: asymmetric bento, four surfaces */
.pg-neighbors { background: var(--paper); padding-block: clamp(5.5rem, 12vw, 10rem); position: relative; }
.pg-neighbors::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(35,31,32,.14), transparent); }
.pg-neighbors .lede { margin-top: 1.5rem; max-width: 58ch; }
.pg-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.pg-cell { border-radius: 18px; padding: clamp(1.6rem, 3.2vw, 2.4rem); display: flex; flex-direction: column; gap: .75rem; min-height: 18rem; position: relative; box-shadow: inset 0 1px 1px rgba(255,255,255,.35), inset 0 0 0 1px rgba(35,31,32,.06), 0 30px 60px -44px rgba(35,31,32,.45); transition: transform .9s var(--spring), box-shadow .9s var(--spring); }
.pg-cell:hover { transform: translateY(-4px); box-shadow: inset 0 1px 1px rgba(255,255,255,.35), inset 0 0 0 1px rgba(35,31,32,.06), 0 40px 70px -40px rgba(35,31,32,.5); }
.pg-cell .share { font: 700 3.4rem/1 var(--display); letter-spacing: -.01em; }
.pg-cell .share small { display: block; font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: .5rem; opacity: .8; }
.pg-cell h3 { font: 700 1.55rem/1.08 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-top: auto; }
.pg-cell p { margin: 0; line-height: 1.6; }
.pg-cell.a { grid-column: span 7; background: var(--blue); color: #fff; }
.pg-cell.a h3, .pg-cell.a p, .pg-cell.a .share { color: #fff; }
.pg-cell.b { grid-column: span 5; background: var(--subtle); color: var(--ink); }
.pg-cell.b .share { color: var(--blue); }
.pg-cell.c { grid-column: span 5; background: var(--tan-tint); color: var(--ink); }
.pg-cell.c .share { color: #8A6431; }
.pg-cell.d { grid-column: span 7; background: var(--ink); color: #fff; }
.pg-cell.d h3, .pg-cell.d p, .pg-cell.d .share { color: #fff; }
.pg-cell.b p, .pg-cell.c p { color: var(--body); }
@media (max-width: 860px) { .pg-bento { grid-template-columns: 1fr; gap: 1rem; } .pg-cell.a, .pg-cell.b, .pg-cell.c, .pg-cell.d { grid-column: auto; min-height: 0; } .pg-cell h3 { margin-top: .5rem; } .pg-cell:hover { transform: none; } }

/* how it works: the compass table inside a bezel */
.pg-how { padding-block: clamp(5.5rem, 12vw, 10rem); }
.pg-how .lede { margin-top: 1.5rem; max-width: 58ch; }
.pg-how .after { margin-top: 2rem; max-width: 66ch; color: var(--body); }
.mf-compass { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); margin-top: 3rem; padding: 6px; border-radius: 18px; background: rgba(35,31,32,.045); box-shadow: inset 0 0 0 1px rgba(35,31,32,.07); }
.mf-compass > div { padding: 1.2rem 1.4rem; min-width: 0; background: var(--paper); box-shadow: inset 0 0 0 .5px rgba(35,31,32,.07); }
.mf-compass .h { font: 700 1rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.mf-compass .h.w { background: var(--blue); border-radius: 0 12px 0 0; } .mf-compass .h.n { background: #1E8A55; border-radius: 0 12px 0 0; }
.mf-compass .h.w { border-radius: 0; }
.mf-compass .corner { background: transparent; box-shadow: none; }
.mf-compass .cap { background: transparent; box-shadow: none; }
.mf-compass .cap b { display: block; font: 700 1.4rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.mf-compass .cap span { font-size: .92rem; color: var(--muted); }
.mf-compass .q { font-size: 1rem; color: var(--body); line-height: 1.55; }
.mf-compass > div:nth-last-child(2) { border-radius: 0 0 0 12px; }
.mf-compass > div:last-child { border-radius: 0 0 12px 0; }
@media (max-width: 720px) {
  .mf-compass { grid-template-columns: 1fr; }
  .mf-compass .corner, .mf-compass .h { display: none; }
  .mf-compass .cap { padding-top: 1.6rem; }
  .mf-compass .q::before { content: attr(data-lens); display: block; font: 700 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: .3rem; }
  .mf-compass .q.n::before { color: #1E8A55; }
  .mf-compass > div:nth-last-child(2) { border-radius: 0; }
  .mf-compass > div:last-child { border-radius: 0 0 12px 12px; }
}

/* take it: sticky side panel + the app in its shell */
.pg-take { background: var(--subtle); padding-block: clamp(5rem, 10vw, 8rem); scroll-margin-top: 90px; position: relative; }
.pg-take::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 10%, rgba(29,115,188,.10), transparent 70%); pointer-events: none; }
.pg-take .wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; position: relative; }
.pg-side { position: sticky; top: 110px; display: grid; gap: 1.4rem; }
.pg-side img { aspect-ratio: 4 / 3; object-fit: cover; }
.pg-side h2 { margin: 0; }
.pg-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pg-side li { padding-left: 1.5rem; position: relative; color: var(--body); }
.pg-side li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--blue); border-radius: 2px; }
.pg-side li b { color: var(--ink); }
.pg-appshell .pg-core { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--cream); }
.pg-take #mf-app { min-width: 0; }
@media (max-width: 960px) { .pg-take .wrap { grid-template-columns: 1fr; } .pg-side { position: static; } .pg-side .pg-bezel { display: none; } }

/* next steps: three role rows */
.pg-next { padding-block: clamp(5.5rem, 12vw, 10rem); }
.pg-roles { margin-top: 3rem; display: grid; gap: .75rem; }
.pg-role { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem); border-radius: 18px; background: var(--paper); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(35,31,32,.07), 0 30px 60px -48px rgba(35,31,32,.4); transition: transform .9s var(--spring), box-shadow .9s var(--spring); }
.pg-role:hover { transform: translateY(-3px); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(35,31,32,.1), 0 40px 70px -44px rgba(35,31,32,.5); }
.pg-role .who { font: 700 1.5rem/1.08 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.pg-role .who span { display: block; font: 700 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--blue); margin-top: .5rem; }
.pg-role p { margin: 0; color: var(--body); }
@media (max-width: 760px) { .pg-role { grid-template-columns: 1fr; gap: .8rem; } .pg-role .pg-pill { justify-self: start; } .pg-role:hover { transform: none; } }

/* questions + coffee */
.pg-faq { background: var(--paper); padding-block: clamp(5.5rem, 12vw, 10rem); position: relative; }
.pg-faq::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(35,31,32,.14), transparent); }
.pg-faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pg-coffee { display: grid; gap: 1.4rem; }
.pg-coffee img { aspect-ratio: 3 / 2; object-fit: cover; }
.pg-coffee p { margin: 0; }
.mf-faq { display: grid; gap: .6rem; }
.mf-faq details { border-radius: 14px; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(35,31,32,.07); padding: 0 1.4rem; transition: box-shadow .6s var(--spring), background-color .6s var(--spring); }
.mf-faq details[open] { background: #fff; box-shadow: inset 0 0 0 1px rgba(35,31,32,.1), 0 24px 48px -36px rgba(35,31,32,.4); }
.mf-faq summary { cursor: pointer; font: 700 1.08rem/1.35 var(--sans); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; }
.mf-faq summary::-webkit-details-marker { display: none; }
.mf-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(35,31,32,.06); font: 500 1.3rem/1 var(--sans); color: var(--ink); transition: transform .6s var(--spring), background-color .6s var(--spring), color .6s var(--spring); }
.mf-faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.mf-faq details p { margin: 0; padding: 0 0 1.25rem; max-width: 62ch; }
@media (max-width: 860px) { .pg-faq .wrap { grid-template-columns: 1fr; } }

.btn:active { transform: scale(.98); }

/* the assessment */
.mf-shell { max-width: 860px; margin-inline: auto; }
.mf-banner { background: var(--subtle); border: 1px solid var(--tint16); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.25rem; font-size: .98rem; }
.mf-start { background: var(--paper); border-radius: 12px; box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(35,31,32,.07); padding: clamp(1.4rem, 3vw, 2.2rem); }
.mf-start .pa-opts { grid-template-columns: 1fr; }
.form .bad { border-color: var(--error) !important; }
.form .bad ~ .err { display: block; }
.mf-link { background: none; border: 0; padding: .5rem .25rem; color: var(--blue); font: 600 1rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.mf-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mf-steps span { height: 6px; border-radius: 3px; background: var(--hair); }
.mf-steps span.done { background: var(--green); } .mf-steps span.on { background: var(--blue); }
.mf-stepmeta { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.mf-head { padding-block: 2rem .5rem; }
.mf-head h2 { margin-bottom: 1rem; }
.mf-verse { font: italic 400 1.1rem/1.5 var(--serif); color: var(--body); border-left: 3px solid var(--tan); padding-left: 1rem; max-width: 60ch; margin-top: 1rem; }
.mf-verse b { font: 700 .78rem/1 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-right: .35rem; }
.mf-items { display: grid; gap: .9rem; margin-top: 1.5rem; }
.mf-item, .mf-scen, .mf-vrow { background: var(--paper); border: 0; border-radius: 12px; box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(35,31,32,.07), 0 20px 40px -36px rgba(35,31,32,.35); padding: 1.2rem 1.35rem; display: grid; gap: .85rem; transition: box-shadow .6s var(--spring); }
.mf-item.answered { box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(29,115,188,.3), 0 20px 40px -36px rgba(35,31,32,.35); }
.mf-item p { margin: 0; font-weight: 500; color: var(--ink); }
.mf-lens { justify-self: start; font: 700 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; padding: .35rem .6rem; border-radius: 999px; }
.mf-lens.wide { background: var(--blue); } .mf-lens.near { background: #1E8A55; }
.mf-scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mf-scale button { height: 46px; border: 1px solid var(--strong); background: var(--paper); border-radius: var(--r); font: 700 1rem/1 var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .35s var(--spring), border-color .35s var(--spring), transform .5s var(--spring); }
.mf-scale button:active { transform: scale(.94); }
.mf-scale button:hover { border-color: var(--blue); }
.mf-scale button[aria-checked="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.mf-anchors { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }
.mf-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.mf-scen h3 { font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.mf-scen > p { margin: 0; }
.mf-scen .kicker { margin: 0; }
.mf-opts { display: grid; gap: .5rem; }
.mf-opt { display: flex; gap: .75rem; align-items: flex-start; text-align: left; border: 1px solid var(--strong); background: var(--paper); border-radius: var(--r); padding: .8rem 1rem; font: 400 1rem/1.45 var(--sans); color: var(--body); cursor: pointer; }
.mf-opt:hover:not(:disabled) { border-color: var(--blue); }
.mf-opt:disabled { cursor: default; }
.mf-opt .k { font-weight: 800; color: var(--blue); min-width: 1.1em; }
.mf-opt[aria-pressed="true"] { border-color: var(--ink); background: var(--cream); }
.mf-opt.best { border-color: #1E8A55; box-shadow: inset 3px 0 0 #1E8A55; }
.mf-feedback { background: var(--cream); border-left: 3px solid var(--green); border-radius: var(--r); padding: .9rem 1rem; font-size: .98rem; }
.mf-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.mf-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.mf-legend i.you { background: var(--blue); } .mf-legend i.fld { background: var(--green); }
.mf-poles { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; color: var(--ink); }
.mf-poles span:last-child { text-align: right; }
.mf-track { position: relative; height: 40px; }
.mf-track .bar { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--hair); }
.mf-track .gap { position: absolute; top: 17px; height: 6px; border-radius: 3px; background: var(--tan); opacity: .55; }
.mf-track .dot { position: absolute; top: 11px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.mf-track .dot.you { background: var(--blue); } .mf-track .dot.fld { background: var(--green); }
.mf-slider { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: .75rem; align-items: center; font-size: .9rem; }
.mf-slider label { font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-slider input { width: 100%; accent-color: var(--blue); }
.mf-slider.fld input { accent-color: var(--green); }

/* results */
.mf-sample-tag { font-size: .94rem; color: var(--muted); }
.mf-sample-tag span { display: inline-block; background: var(--tan); color: var(--ink); font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 4px; margin-right: .5rem; }
.mf-res-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; padding-block: 1rem; }
@media (max-width: 640px) { .mf-res-hero { grid-template-columns: 1fr; } }
.mf-dial { width: 180px; height: 180px; position: relative; }
.mf-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mf-dial-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mf-dial-num .num { font-size: 3.6rem; color: var(--ink); font-family: var(--display); font-weight: 700; }
.mf-dial-num span:last-child { font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.mf-arch { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
main .mf-arch::after { display: none; }
.mf-block { padding-top: 2.5rem; }
.mf-h { font: 700 1.5rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .03em; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.25rem; }
.mf-caps { display: grid; gap: 1rem; margin: 1.25rem 0 1rem; }
.mf-caprow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 64px; gap: 1rem; align-items: center; }
@media (max-width: 600px) { .mf-caprow { grid-template-columns: minmax(0, 1fr) 64px; } .mf-caprow .mf-bars { grid-column: 1 / -1; grid-row: 2; } }
.mf-caprow .nm { font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.mf-caprow .nm small { display: block; margin-top: .35rem; }
.mf-caprow .sc { font: 700 2rem/1 var(--display); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.mf-bars { display: grid; gap: 6px; }
.mf-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; gap: .6rem; align-items: center; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mf-bar .t { height: 10px; background: var(--subtle); border-radius: 5px; position: relative; overflow: hidden; }
.mf-bar .f { position: absolute; inset: 0 auto 0 0; border-radius: 5px; transition: width .8s var(--ease); }
.mf-bar.wide .f { background: var(--blue); } .mf-bar.near .f { background: var(--green); }
.mf-band { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 999px; }
.mf-band.Emerging { background: #F6E3D3; color: #8A4A1A; }
.mf-band.Growing { background: #E4E4FA; color: #4848B8; }
.mf-band.Fluent { background: #D5F0E2; color: #17693F; }
.mf-stats { margin-bottom: .5rem; }
.mf-stats .num { font-size: clamp(2rem, 4vw, 2.8rem); }
.mf-dots { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.mf-dots li { padding-left: 1.2rem; position: relative; }
.mf-dots li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.mf-fric { background: var(--paper); border: 1px solid var(--hair); border-left: 4px solid var(--tan); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: .75rem; }
.mf-fric p:last-child { margin: 0; }
.mf-fric.ok { border-left-color: var(--green); }
.mf-practices { display: grid; gap: .75rem; margin-top: 1rem; }
.mf-practice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); padding: 1rem 1.1rem; cursor: pointer; }
.mf-practice input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--blue); }
.mf-practice b { display: block; color: var(--ink); }
.mf-practice .meta { display: block; font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.mf-practice:has(input:checked) { border-color: var(--blue); background: var(--subtle); }
.mf-copy { display: flex; gap: .5rem; flex-wrap: wrap; }
.mf-copy input { flex: 1 1 260px; min-width: 0; font: 400 .95rem/1.2 var(--sans); padding: .75rem .9rem; border: 1px solid var(--strong); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.mf-sendform h3 { font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4rem; }
.mf-consent { font-size: .92rem; color: var(--body); background: var(--cream); border-radius: var(--r); padding: .9rem 1rem; margin: 0; }
.mf-sent { border-left: 4px solid var(--green); }
.mf-next { background: var(--blue); color: #fff; border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 30px 60px -36px rgba(29,115,188,.6); }
.mf-next h3 { color: #fff; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .75rem; }
.mf-next p { color: #fff; max-width: 60ch; }
.mf-next .actions { margin-top: 1.25rem; }
.mf-coffee { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.3); }
.mf-coffee a { color: #fff; border-bottom-color: rgba(255,255,255,.6); font-weight: 700; }
.mf-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mf-compare > div { border-top: 2px solid var(--ink); padding-top: .75rem; }
.mf-compare .num { font-size: 2.8rem; color: var(--ink); }
.mf-compare .num.up { color: #17693F; } .mf-compare .num.down { color: #8A4A1A; }
.mf-compare p { margin: .25rem 0 0; color: var(--muted); }
.mf-capgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
@media (max-width: 640px) { .mf-capgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mf-chg { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); padding: .75rem .9rem; display: grid; gap: .2rem; }
.mf-chg em { font-style: normal; font-weight: 700; }
.mf-chg em.up { color: #17693F; } .mf-chg em.down { color: #8A4A1A; }
[hidden] { display: none !important; }

/* combined county and team report (fluency/county/) */
.mfc-drop { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); border-style: dashed; }
.mfc-drop.over { border-color: var(--blue); background: var(--subtle); }
.mfc-drop .muted { max-width: 56ch; margin-inline: auto; }
.mfc-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; margin-bottom: 2rem; }
.mfc-actions { flex-direction: row; align-items: center; gap: .75rem; }
@media (max-width: 860px) { .mfc-filters { grid-template-columns: 1fr; } }
.mfc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 860px) { .mfc-grid { grid-template-columns: 1fr; } }
.mfc-grid .card h3, .mfc-report .card h3 { margin-bottom: 1rem; }
.mfc-bars { display: grid; gap: .55rem; }
.mfc-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 5.5rem; gap: .75rem; align-items: center; font-size: .92rem; }
.mfc-row .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mfc-row .t { height: 12px; background: var(--subtle); border-radius: 6px; overflow: hidden; }
.mfc-row .f { height: 100%; border-radius: 6px; }
.mfc-row .v { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; font-size: .85rem; }
.mfc-val { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 9rem; gap: .75rem; align-items: center; font-size: .9rem; margin: .5rem 0; }
.mfc-val span:last-child { text-align: right; }
.mfc-val .track { position: relative; height: 22px; background: linear-gradient(var(--hair), var(--hair)) center / 100% 2px no-repeat; }
.mfc-val .gap { position: absolute; top: 8px; height: 6px; background: var(--tan); opacity: .55; border-radius: 3px; }
.mfc-val i { position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%; transform: translateX(-50%); border: 2px solid #fff; }
.mfc-val i.you { background: var(--blue); } .mfc-val i.fld { background: var(--green); }
.mfc-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.mfc-table th { text-align: left; font: 700 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding: .5rem .6rem .5rem 0; }
.mfc-table td { border-bottom: 1px solid var(--hair); padding: .55rem .6rem .55rem 0; }
@media print {
  .site-head, .site-foot, .mfc-filters, .hero-duo, .mfc-intro { display: none !important; }
  body { background: #fff; }
  .card { break-inside: avoid; }
  .section { padding-block: 0; }
}
