/* Mindora 0.5.2: article-based Shorts and true viewport-contained login. */
body.mfa-shell .mfa-short-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
body.mfa-shell .mfa-short-card{min-width:0;overflow:hidden;background:var(--mfa-card);border-radius:16px;border:1px solid var(--mfa-border)}
body.mfa-shell .mfa-short-card-link{display:block;height:100%;color:var(--mfa-text);text-decoration:none!important}
body.mfa-shell .mfa-short-cover{aspect-ratio:16/10;background:linear-gradient(130deg,#10282d,#0a3d36);display:flex;align-items:center;justify-content:center;overflow:hidden}
body.mfa-shell .mfa-short-cover img{display:block;width:100%;height:100%;object-fit:cover}
body.mfa-shell .mfa-short-copy{display:flex;flex-direction:column;gap:11px;padding:20px;min-height:205px}
body.mfa-shell .mfa-short-category{font-size:11px;line-height:1.4;letter-spacing:.075em;color:var(--mfa-accent);text-transform:uppercase;font-weight:600}
body.mfa-shell .mfa-short-copy h2{margin:0;font-family:var(--mfa-heading-font);font-size:clamp(19px,2.4vw,25px);line-height:1.24;letter-spacing:-.025em;font-weight:550;color:var(--mfa-text)}
body.mfa-shell .mfa-short-excerpt{font-size:14px;line-height:1.65;color:var(--mfa-muted);margin:0;overflow-wrap:anywhere}
body.mfa-shell .mfa-short-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:13px;border-top:1px solid var(--mfa-border);font-size:12px;color:var(--mfa-muted)}
body.mfa-shell .mfa-short-meta>span:first-child{display:inline-flex;align-items:center;gap:5px}
body.mfa-shell .mfa-short-meta .mfa-icon{width:16px;height:16px}
body.mfa-shell .mfa-short-meta>span:last-child{color:var(--mfa-accent)}
body.mfa-shell .mfa-carousel .mfa-short-card{width:min(300px,75vw);flex:0 0 min(300px,75vw)}
/* Force article embed to fill the reading column; old generic iframe aspect-ratio must not shrink it. */
/* Selected quote mode in the archive: visible, tappable, sticky-category independent. */
body.mfa-shell .mfa-sort-tabs[aria-label="Sort quotes"]{gap:8px;margin-top:17px}
body.mfa-shell .mfa-sort-tabs[aria-label="Sort quotes"] a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 16px;border:1px solid var(--mfa-border);background:var(--mfa-card)}
body.mfa-shell .mfa-sort-tabs[aria-label="Sort quotes"] a[aria-current="true"]{background:var(--mfa-selected-bg);color:var(--mfa-text);border-color:var(--mfa-accent)}
/* Dedicated welcome route and logged-out account route: NO theme header or bottom bar. */
html:has(body.mfa-auth-page),body.mfa-auth-page{min-height:100%;margin:0!important;overflow-x:hidden}
body.mfa-auth-page #mfa-app{min-height:100dvh}
body.mfa-auth-page .mfa-main{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%!important;max-width:none!important;min-height:100svh;min-height:100dvh;padding:0!important;margin:0!important}
body.mfa-auth-page .mfa-welcome-route{box-sizing:border-box;display:flex;justify-content:center;align-items:center;width:100%;min-height:100svh;min-height:100dvh;margin:0!important;padding:max(12px,env(safe-area-inset-top,0px)) 14px max(12px,env(safe-area-inset-bottom,0px));border:0!important;border-radius:0!important}
body.mfa-auth-page .mfa-welcome-route .mfa-welcome-inner{box-sizing:border-box;width:min(100%,440px)!important;max-width:100%;min-height:0!important;height:auto!important;gap:clamp(12px,2.4dvh,22px);margin:auto!important;padding:clamp(17px,3.4dvh,32px)!important}
/* First-launch overlay: scroll internally only on genuinely short viewports. */
body.mfa-shell .mfa-welcome-overlay{box-sizing:border-box;position:fixed;inset:0;z-index:3000;width:100%;height:100svh;height:100dvh;padding:max(10px,env(safe-area-inset-top,0px)) 12px max(10px,env(safe-area-inset-bottom,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;display:flex;align-items:flex-start;justify-content:center}
body.mfa-shell .mfa-welcome-overlay .mfa-welcome-inner{box-sizing:border-box;flex:0 1 440px;width:min(100%,440px)!important;max-width:100%;height:auto!important;min-height:0!important;gap:clamp(12px,2.2dvh,22px)!important;margin:auto!important;padding:clamp(17px,3.4dvh,32px)!important}
body.mfa-shell .mfa-welcome-inner .mfa-welcome-brand{gap:6px!important;margin:0!important}
body.mfa-shell .mfa-welcome-inner .mfa-welcome-brand img{width:48px!important;height:48px!important}
body.mfa-shell .mfa-welcome-inner .mfa-brand-word{font-size:21px!important;line-height:1.2}
body.mfa-shell .mfa-welcome-inner .mfa-welcome-intro h1{font-size:clamp(28px,6.8vw,39px)!important;line-height:1.08!important;margin-bottom:8px!important}
body.mfa-shell .mfa-welcome-inner .mfa-welcome-intro>p:not(.mfa-login-kicker){margin:auto;max-width:35ch;font-size:14px!important;line-height:1.44!important}
body.mfa-shell .mfa-welcome-inner .mfa-login-kicker{margin-bottom:6px!important}
body.mfa-shell .mfa-welcome-inner .mfa-login-label{margin:2px 0!important}
body.mfa-shell .mfa-welcome-inner .mfa-gis-login{margin:0 0 3px!important;padding:7px!important}
body.mfa-shell .mfa-welcome-inner .mfa-gis-button{padding:0!important;min-height:44px!important}
body.mfa-shell .mfa-welcome-inner .mfa-welcome-actions{gap:8px!important}
body.mfa-shell .mfa-welcome-inner .mfa-google-fallback{margin:0!important}
body.mfa-shell .mfa-welcome-inner .mfa-welcome-note{margin:0!important}
body.mfa-shell .mfa-welcome-inner .mfa-outline-button{min-height:44px!important}
@media(max-width:640px){
 body.mfa-shell .mfa-short-grid{grid-template-columns:1fr;gap:14px}
 body.mfa-shell .mfa-short-cover{aspect-ratio:16/9}
 body.mfa-shell .mfa-short-copy{min-height:auto;padding:19px 17px}
 body.mfa-shell .mfa-short-copy h2{font-size:22px}
 body.mfa-shell .mfa-short-excerpt{font-size:14px}
}
@media(max-height:690px){
 body.mfa-shell .mfa-welcome-inner .mfa-welcome-brand img{width:39px!important;height:39px!important}
 body.mfa-shell .mfa-welcome-inner .mfa-brand-word{font-size:18px!important}
 body.mfa-shell .mfa-welcome-inner .mfa-welcome-brand p{font-size:9px!important}
 body.mfa-shell .mfa-welcome-inner .mfa-welcome-intro h1{font-size:clamp(25px,5.8vw,33px)!important}
 body.mfa-shell .mfa-welcome-inner .mfa-welcome-intro>p:not(.mfa-login-kicker){font-size:12px!important}
 body.mfa-auth-page .mfa-welcome-route .mfa-welcome-inner,body.mfa-shell .mfa-welcome-overlay .mfa-welcome-inner{gap:9px!important;padding:15px!important}
 body.mfa-shell .mfa-welcome-inner .mfa-outline-button{min-height:42px!important}
 body.mfa-shell .mfa-welcome-inner .mfa-gis-login{padding:4px!important}
}
@media(max-width:340px){body.mfa-shell .mfa-welcome-inner .mfa-welcome-intro h1{font-size:27px!important}body.mfa-shell .mfa-welcome-inner .mfa-welcome-legal{font-size:10px}}

/* v0.5.3: multiple Short categories and independent labels */
.mfa-short-taxonomies{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 12px}
.mfa-short-taxonomies .mfa-short-category,.mfa-short-taxonomies .mfa-short-label{display:inline-flex;align-items:center;border-radius:6px;padding:5px 9px;font-size:11px;font-weight:500;letter-spacing:.02em;line-height:1.25;text-transform:none}
.mfa-short-taxonomies .mfa-short-category{background:rgba(31,161,132,.18);color:#8de7d0;border:1px solid rgba(80,189,165,.31)}
.mfa-short-taxonomies .mfa-short-label{background:rgba(114,130,181,.15);color:#bfd1e8;border:1px solid rgba(145,164,193,.22)}
