/* Public Home refinements. */
.mafama-home--refined .dimensions-section .dimension-action { background:linear-gradient(135deg,#1d4ed8,#2563eb);   gap:12px; }
.mafama-home--refined .dimensions-section .dimension-action i { flex:none; color:#fff;  }
.mafama-home--refined .g-hero .g-note { padding:16px 18px; border-left:4px solid #087c62; border-radius:0 12px 12px 0; background:#eef9f4; color:#20477d;  }
.mafama-home--refined .g-hero .g-note strong { display:block; margin-bottom:4px; color:#087c62;  }
.mafama-home--refined .g-hero .g-actions { flex-wrap:wrap; gap:12px; }
.mafama-home.mafama-home--refined .g-hero.g-hero--single { grid-template-columns:minmax(0,1fr) !important; }
.mafama-home.mafama-home--refined .g-utility-row.g-utility-row--partial { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.mafama-home.mafama-home--refined .g-utility-row--partial .g-search { grid-column:auto; }
.mafama-home--refined .g-hero .g-actions .g-btn {  min-height:44px; padding:9px 14px; }
.mafama-home.mafama-home--refined .g-cta h3 { letter-spacing:.04em; }
.mafama-home--refined .g-foundation { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; align-items:stretch; margin:24px auto 40px; }
.mafama-home--refined :is(.g-foundation,.g-founder)::before,
.mafama-home--refined :is(.g-foundation,.g-founder)::after { content:none !important; display:none !important; }
.mafama-home--refined :is(.g-foundation,.g-founder) { width:min(1180px,calc(100% - 40px),calc(100vw - 10px)); }
.mafama-home--refined .g-hero .g-foundation { grid-column:1/-1; width:100%; min-width:0; margin:0; border-bottom:0; }
.mafama-home--refined .g-foundation-card { --foundation:#245ad0; --foundation-copy:#234d99; --foundation-soft:#eef4ff; --foundation-border:#ceddfb; position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:15px; min-width:0; overflow:hidden; padding:23px 21px; border:1px solid var(--foundation-border); border-radius:21px; background:linear-gradient(145deg,#fff 10%,var(--foundation-soft)); box-shadow:0 7px 22px #223f7410; transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.mafama-home--refined .g-foundation-card:nth-child(2) { --foundation:#087852; --foundation-copy:#146248; --foundation-soft:#edf9f2; --foundation-border:#c7e9d8; }
.mafama-home--refined .g-foundation-card:nth-child(3) { --foundation:#8241bd; --foundation-copy:#6e398d; --foundation-soft:#f7efff; --foundation-border:#e3d1f4; }
.mafama-home--refined .g-foundation-card:nth-child(4) { --foundation:#c52e55; --foundation-copy:#98314e; --foundation-soft:#fff0f4; --foundation-border:#f2cfdb; }
.mafama-home--refined .g-foundation-card::before { content:''; position:absolute; top:0; left:24px; right:24px; height:3px; background:var(--foundation); border-radius:0 0 6px 6px; }
.mafama-home--refined .g-foundation-card > div { width:100%; }
.mafama-home--refined .g-foundation-icon { display:grid; place-items:center; flex:none; width:46px; height:46px; border:1px solid var(--foundation-border); border-radius:14px; background:#fff; color:var(--foundation); box-shadow:0 4px 10px #203c7008; }
.mafama-home--refined .g-foundation-svg { width:23px; height:23px; }
.mafama-home--refined .g-foundation-card h3 { display:flex; align-items:center; min-height:2.6em; margin:0 0 10px; color:var(--foundation); font:800 22px/1.3 Merriweather,Georgia,serif !important; letter-spacing:-.4px; }
.mafama-home--refined .g-foundation-card p { margin:0; color:var(--foundation-copy);  }
@media(hover:hover) { .mafama-home--refined .g-foundation-card:hover { transform:translateY(-6px); box-shadow:0 16px 32px #223f7420; border-color:var(--foundation); } }
@media(prefers-reduced-motion:reduce) { .mafama-home--refined .g-foundation-card { transition:none; } .mafama-home--refined .g-foundation-card:hover { transform:none; } }
.mafama-home--refined section.g-founder { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1fr); align-items:center; gap:28px; margin:56px auto 0; padding:28px !important; border:1px solid #dce6f7; border-radius:24px; background:linear-gradient(145deg,#fff,#f5f8ff) !important; }
.mafama-home--refined .g-founder > * { min-width:0; }
.mafama-home--refined .g-founder-photo { position:relative; aspect-ratio:3/4; overflow:hidden; border-radius:18px; background:#edf3fb; }
.mafama-home--refined .g-founder .mf-eyebrow { display:block; margin-bottom:12px; color:#2865ee;   }
.mafama-home--refined .g-founder h2 { margin:0 0 20px; color:#20477d; font:700 clamp(25px,2.4vw,32px)/1.4 Merriweather,Georgia,serif !important; letter-spacing:-.025em; }
.mafama-home--refined .g-founder p { margin:0 0 16px; color:#243b5b;  }
.mafama-home--refined .g-founder .mf-founder-points { display:grid; gap:18px; margin:0; padding:0; list-style:none; }
.mafama-home--refined .g-founder .mf-founder-points li { display:flex; align-items:center; gap:12px; color:#173c70;  }
.mafama-home--refined .g-founder .mf-iconbox { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border:1px solid #245ad0; border-radius:12px; background:#245ad0; color:#fff; box-shadow:0 3px 8px #245ad020; }
.mafama-home--refined .g-founder .mf-icon { width:26px; height:26px; stroke-width:2; }
@media(max-width:1000px) {
    .mafama-home--refined .g-foundation { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mafama-home--refined section.g-founder { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
    .mafama-home--refined .g-founder .mf-founder-points { grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
    .mafama-home--refined :is(.g-foundation,.g-founder) { width:min(calc(100% - 28px),calc(100vw - 28px)); }
}
@media(max-width:575px) {
    .mafama-home--refined .g-foundation { grid-template-columns:1fr; }
    .mafama-home--refined .g-foundation-card h3 { min-height:0; }
    .mafama-home--refined section.g-founder { grid-template-columns:1fr; padding:20px !important; gap:24px; }
    .mafama-home--refined .g-founder-photo { width:100%; max-width:320px; margin:auto; }
    .mafama-home--refined .g-founder .mf-founder-points { grid-template-columns:1fr; }
}
.mafama-home--refined :is(.g-solutions,.g-journey) {  color:#20477d; }
.mafama-home--refined :is(.g-solutions,.g-journey) :is(h2,h3) { font-family:Merriweather,Georgia,serif !important; }
.mafama-home--refined :is(.g-solutions,.g-journey)::before, .mafama-home--refined :is(.g-solutions,.g-journey)::after { content:none !important; display:none !important; }
.mafama-home--refined :is(.g-solutions,.g-journey) [hidden] { display:none !important; }
.mafama-home--refined :is(.g-solutions,.g-journey) :is(button,a):focus-visible { outline:3px solid #668df3; outline-offset:4px; }
.mafama-home--refined :is(.g-solutions,.g-journey) button {  cursor:pointer; }
.mafama-home--refined :is(.g-solutions,.g-journey) button:disabled { opacity:.4; cursor:default; }
.mafama-home--refined .g-journey .g-section-head h2 { font-family:Merriweather,Georgia,serif !important; color:#182334; font-weight:700; line-height:1.35; letter-spacing:-.025em; font-size:clamp(28px,2.9vw,38px); text-wrap:balance; }
.mafama-home--refined .g-journey .g-eyebrow { display:block; margin-bottom:14px; color:#2865ee;     }
.mafama-home--refined .g-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mafama-home--refined .g-solutions { min-width:0; padding:24px; border:1px solid #dce9ff; border-radius:27px; background:linear-gradient(140deg,#fff,#eff5ff); box-shadow:0 10px 35px #20477d0a; scroll-margin-top:25px; }
.mafama-home--refined .g-solution-slide { min-width:0; }
.mafama-home--refined .g-solution-slide h2 { min-height:2.9em; margin:0 0 20px; font:700 clamp(28px,2.4vw,34px)/1.4 Merriweather,Georgia,serif; color:#20477d; letter-spacing:-.025em; text-wrap:balance; }
.mafama-home--refined .g-solution-slide h2 span { display:block; color:var(--mafama-home-accent-blue,#2865ee); }
.mafama-home--refined .g-solution-media { position:relative; aspect-ratio:4/3; overflow:hidden; border-radius:18px; background:#eaf1fb; }
.mafama-home--refined .g-solution-media :is(img,video) { display:block; width:100%; height:100%; margin:0; object-fit:cover; }
.mafama-home--refined .g-solution-media video { object-fit:contain; background:#101d32; }
.mafama-home--refined .g-solution-media--report img { object-fit:contain; padding:18px; }
.mafama-home--refined .g-media-error { position:absolute; inset:auto 10px 48px; margin:0; padding:12px; border-radius:8px; background:#fff; color:#9d1731;  }
.mafama-home--refined .g-carousel-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:18px 0 10px; }
.mafama-home--refined .g-carousel-caption { display:grid; gap:4px; }
.mafama-home--refined .g-carousel-caption span { color:#496182;     text-transform:uppercase; }
.mafama-home--refined .g-carousel-caption b { color:#20477d;   font-variant-numeric:tabular-nums; }
.mafama-home--refined .g-carousel-navigation { display:flex; gap:8px; }
.mafama-home--refined .g-carousel-navigation button { display:grid; place-items:center; width:42px; min-height:42px; padding:8px; border:2px solid #1d4ed8; border-radius:10px; background:#fff; color:#1d4ed8; transition:background .18s ease,box-shadow .18s ease; }
.mafama-home--refined .g-carousel-navigation button:hover { background:#eff6ff; box-shadow:0 3px 8px #1d4ed814; }
.mafama-home--refined .g-carousel-navigation button:active { background:#dbeafe; box-shadow:inset 0 1px 3px #1d4ed81a; }
.mafama-home--refined .g-carousel-navigation [data-carousel-play][aria-pressed=true] { background:#eff6ff; }
.mafama-home--refined .g-carousel-dots { display:flex; gap:7px; margin-bottom:18px; }
.mafama-home--refined .g-carousel-dots button { flex:1; min-height:18px; padding:7px 0; background:transparent; border:0; position:relative; }
.mafama-home--refined .g-carousel-dots button::before { content:''; display:block; height:3px; border-radius:4px; background:#d5e2f7; }
.mafama-home--refined .g-carousel-dots button[aria-pressed=true]::before { background:#2865ee; }
.mafama-home--refined .g-category-options { --solution-button-color:#1d4ed8; --solution-button-tint:#eff6ff; display:flex; flex-direction:column; gap:8px; }
.mafama-home--refined .g-category-row { display:flex; flex-wrap:nowrap; gap:8px; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.mafama-home--refined .g-category-tabs button { transition:background .18s ease,box-shadow .18s ease; }
.mafama-home--refined .g-category-tabs button { position:relative; display:flex; align-items:center; justify-content:center; flex:1 0 auto; min-width:0; max-width:100%; min-height:44px; padding:8px 10px; border:2px solid var(--solution-button-color); border-radius:10px; color:var(--solution-button-color); background:#fff; font-size:var(--fs-xs,.875rem); white-space:nowrap; text-align:center; }
.mafama-home--refined .g-category-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; }
.mafama-home--refined .g-category-tabs .g-category-label { color:inherit !important; }
.mafama-home--refined .g-category-row:not(.g-category-row--discover) { gap:5px; }
.mafama-home--refined .g-category-row:not(.g-category-row--discover) button { padding-inline:4px; font-size:14px; }
.mafama-home--refined .g-category-tabs .g-category-discover { flex-basis:100%; --solution-button-color:#2865ee; --solution-button-tint:#eff6ff; }
.mafama-home--refined .g-category-tabs .g-category-green { --solution-button-color:#166534; --solution-button-tint:#f0fdf4; }
.mafama-home--refined .g-category-tabs .g-category-purple { --solution-button-color:#6b21a8; --solution-button-tint:#faf5ff; }
.mafama-home--refined .g-category-options button:hover { background:var(--solution-button-tint); }
.mafama-home--refined .g-category-options button[aria-pressed=true] { color:#fff; background:var(--solution-button-color); box-shadow:0 2px 6px #0f172a14; }
.mafama-home--refined .g-category-options button:active { box-shadow:inset 0 1px 4px #0f172a20; }
.mafama-home--refined .g-category-tabs button::after { content:'\2713'; position:absolute; top:50%; right:8px; width:14px; line-height:1; transform:translateY(-50%); font-weight:700; visibility:hidden; }
.mafama-home--refined .g-category-row:not(.g-category-row--discover) button::after { top:2px; right:3px; width:11px; transform:none; }
.mafama-home--refined .g-category-tabs button[aria-pressed=true]::after { visibility:visible; }
.mafama-home--refined .g-hero:not(:has(.g-solutions)) { grid-template-columns:minmax(0,1fr); }
.mafama-home--refined section.g-journey { width:min(1180px,calc(100% - 40px),calc(100vw - 10px)); margin:64px auto 0; padding:32px 28px !important; background:#faf9f6 !important; border:1px solid #e7e5e4; border-radius:26px; scroll-margin-top:24px; }
.mafama-home--refined .g-journey .g-section-head { margin:0 0 30px; padding:0; }
.mafama-home--refined .g-journey .g-section-head p { margin:14px 0 0; color:#475569;    }
.mafama-home--refined .g-journey-carousel { padding:18px 18px 0; border:6px solid #d6d3cd; border-radius:18px; background:#f3f1ec; overflow:hidden; box-shadow:0 12px 26px #0f172a12,0 3px 0 #c4c0b8; }
.mafama-home--refined .g-book { position:relative; padding:0 0 8px; border:1px solid #cbd5e1; border-radius:8px 8px 3px 3px; overflow:hidden; background:repeating-linear-gradient(to bottom,#fffdf8 0 2px,#cbd5e1 2px 3px); box-shadow:0 4px 12px #0f172a30; perspective:1600px; }
.mafama-home--refined .g-book-spread { display:grid; grid-template-columns:1fr 1.15fr; min-height:420px; background:#fffdf8; transform-origin:center; animation:mafamaChapterReveal .45s ease both; }
.mafama-home--refined .g-book-copy { position:relative; display:flex; flex-direction:column; justify-content:center; min-width:0; padding:36px 40px; border-right:1px solid #cbd5e1; background:linear-gradient(to right,#fffdf8 0%,#fff 88%,#e2e8f0 100%); }
.mafama-home--refined .g-book-year { color:#2865ee; font-weight:700; font-size:clamp(40px,4.8vw,64px); line-height:1.15; letter-spacing:-.025em; }
.mafama-home--refined .g-book-copy h3 { margin:18px 0 14px; font:700 clamp(24px,2.1vw,28px)/1.45 Merriweather,Georgia,serif; color:#20477d; letter-spacing:-.015em; }
.mafama-home--refined .g-book-copy p { margin:0; color:#475569;    }
.mafama-home--refined .g-book-page { align-self:flex-start; margin-top:28px; padding-top:12px; border-top:1px solid #cbd5e1; color:#526b8a; }
.mafama-home--refined .g-book-photo { min-width:0; min-height:360px; position:relative; margin:24px; border:8px solid #fff; border-radius:4px; box-shadow:0 2px 10px #0f172a18; }
.mafama-home--refined .g-book-photo::before { content:''; position:absolute; inset:0; border:1px solid #0f172a14; z-index:1; pointer-events:none; }
.mafama-home--refined .g-book-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.mafama-home--refined .g-journey-controls { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:18px -18px 0; padding:16px 18px; background:#fff; border-top:1px solid #dce6f7; }
.mafama-home--refined .g-journey-controls button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:40px; min-height:40px; border:1px solid #dce6f7; border-radius:9px; background:#f5f8ff; color:#3b567b;    padding:8px 12px; }
.mafama-home--refined .g-year-tabs { display:flex; flex:1; flex-wrap:wrap; justify-content:center; gap:7px; }
.mafama-home--refined .g-year-tabs button[aria-pressed=true] { background:#2865ee; border-color:#2865ee; color:#fff; }
@keyframes mafamaChapterReveal { from { opacity:1; transform:rotateY(-5deg); } to { opacity:1; transform:rotateY(0); } }
/* Weather, local time and business search share one aligned Home row. */
.mafama-home--refined .g-utility-row { width:min(1180px,calc(100% - 40px)); grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.15fr); gap:14px; align-items:stretch; }
.mafama-home--refined .g-utility-row :is(.g-weather,.g-date,.g-search) { border:2px solid #a9bddb; border-radius:17px; box-shadow:0 5px 16px rgba(32,71,125,.035); }
.mafama-home--refined .g-utility-row .g-weather { border-color:#1d4ed8; }
.mafama-home--refined .g-utility-row .g-date { border-color:#c9212b; }
.mafama-home--refined .g-utility-row .g-search { border-color:#20477d; }
.mafama-home--refined .g-utility-row :is(.g-weather,.g-date) { min-height:80px; padding:10px 12px; gap:8px; }
.mafama-home--refined .g-utility-row :is(.g-weather-icon,.g-date-icons) { width:32px; height:32px; flex-basis:32px;  }
.mafama-home--refined .g-utility-row .g-temp { display:inline-flex; align-items:baseline; gap:3px; font-weight:700; font-size:20px; line-height:1.3; text-align:right; }
.mafama-home--refined .g-utility-row #guest-eastern-time { font-weight:700; font-size:20px; line-height:1.3; }
.mafama-home--refined .g-utility-row .g-search { display:flex; align-items:stretch; width:100%; min-width:0; min-height:80px; margin:0; padding:10px; background:linear-gradient(145deg,#fff,#fafcff); }
.mafama-home--refined .g-utility-row .g-search [hidden] { display:none !important; }
.mafama-home--refined .g-utility-row .g-search form { width:100%; flex-direction:row; align-items:stretch; min-height:56px; margin:0; border:2px solid #20477d; border-radius:11px; }
.mafama-home--refined .g-utility-row .g-search input { width:0; min-width:0; flex:1; padding:0 12px;  }
.mafama-home--refined .g-utility-row .g-search input::placeholder { color:#566780; opacity:1;  }
.mafama-home--refined .g-utility-row .g-search .g-search-reveal { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:56px; flex:1; padding:8px 12px; border:0; border-radius:11px; background:#edf3fc; color:#20477d; text-align:left; cursor:pointer;  }
.mafama-home--refined .g-utility-row .g-search-reveal span { color:inherit;  }
.mafama-home--refined .g-utility-row .g-search-reveal:focus-visible { outline:3px solid #6d95f3; outline-offset:2px; }
.mafama-home--refined .g-utility-row .g-search button { width:48px; min-height:0; flex:0 0 48px;  }
@media(max-width:1000px) {
    .mafama-home--refined .g-utility-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mafama-home--refined .g-utility-row .g-search { grid-column:1/-1; }
    .mafama-home--refined .g-solutions { padding:18px; }
}
@media(max-width:820px) {
    .mafama-home--refined .g-solutions { width:100%; max-width:560px; margin:0 auto; }
    .mafama-home--refined .g-carousel-toolbar { flex-wrap:wrap; }
    .mafama-home--refined .g-solution-slide h2 { font-size:30px; }
    .mafama-home--refined section.g-journey { margin-top:40px; padding:26px 16px !important; }
    .mafama-home--refined .g-book-spread { grid-template-columns:1fr; }
    .mafama-home--refined .g-book-copy { min-height:265px; padding:30px 26px; border-right:0; border-bottom:1px solid #cbd5e1; background:linear-gradient(140deg,#fffdf8,#fff); }
    .mafama-home--refined .g-book-photo { min-height:255px; margin:18px; }
    .mafama-home--refined .g-book-photo::before { display:none; }
    .mafama-home--refined .g-year-tabs { order:2; flex-basis:100%; }
    .mafama-home--refined .g-journey-controls > [data-carousel-next] { margin-left:auto; }
}
@media(max-width:420px) {
    .mafama-home--refined .g-journey-carousel { padding:10px 10px 0; border-width:4px; }
    .mafama-home--refined .g-book-copy { padding:24px 18px; }
    .mafama-home--refined .g-book-photo { min-height:210px; margin:12px; border-width:5px; }
    .mafama-home--refined .g-journey-controls { margin:12px -10px 0; padding:12px 10px; }
    .mafama-home--refined .g-solutions { padding:16px; border-radius:20px; }
    .mafama-home--refined .g-solution-slide h2 { font-size:26px; }
    .mafama-home--refined .g-category-tabs { gap:8px; }
    .mafama-home--refined .g-carousel-toolbar { flex-wrap:wrap; }
    .mafama-home--refined .g-year-tabs { gap:4px; }
    .mafama-home--refined .g-year-tabs button { padding:8px; }
}
@media(max-width:767px) {
    .mafama-home--refined section.g-journey { width:min(calc(100% - 28px),calc(100vw - 28px)); }
    .mafama-home--refined .g-utility-row { width:min(calc(100% - 28px),calc(100vw - 28px)); }
    .mafama-home--refined .g-hero { grid-template-columns:1fr !important; width:min(calc(100% - 28px),calc(100vw - 28px)) !important; }
}
@media(max-width:575px) {
    .mafama-home--refined .g-utility-row { grid-template-columns:minmax(0,1fr); gap:12px; }
    .mafama-home--refined .g-utility-row .g-search form { min-height:56px; }
}
@media(max-width:520px) {
    .mafama-home--refined .g-utility-row :is(.g-temp,#guest-eastern-time) { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) {
    .mafama-home--refined :is(.g-solutions,.g-journey), .mafama-home--refined :is(.g-solutions,.g-journey) *, .mafama-home--refined :is(.g-solutions,.g-journey) *::before { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
