@font-face {
    font-family: "Hind Siliguri";
    src: url("fonts/HindSiliguri-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Hind Siliguri";
    src: url("fonts/HindSiliguri-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Hind Siliguri";
    src: url("fonts/HindSiliguri-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --emerald: #004638;
    --gold: #d4af37;
    --dark: #003429;
    --ink: #142b23;
    --muted: #4c6359;
    --line: #dce8e1;
    --surface: #fff;
    --soft: #f4faf6;
    --shadow: 0 5px 18px #003b2611;
    --radius: 16px;
    --gap: 16px;
    --rail: 235px;
    --bar: 62px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 78px; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 400 16px/1.45 "Hind Siliguri", sans-serif;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.05rem; }
a { color: var(--emerald); text-underline-offset: 3px; }
img { max-width: 100%; vertical-align: middle; }
button, input, select { font: inherit; }
button, .button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(180deg, #15845b, var(--emerald));
    box-shadow: 0 3px 8px #003b2621;
    color: white;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}
button:hover, .button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: default; }
.gold { background: linear-gradient(180deg, #ffe9a4, var(--gold)); color: #252008; }
.secondary { background: var(--soft); color: var(--emerald); border-color: var(--line); box-shadow: none; }
:focus-visible { outline: 3px solid #ce9d24; outline-offset: 3px; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 20; transform: translateY(-160%); padding: 10px; background: white; }
.skip-link:focus { transform: none; }
.wrap { width: min(calc(100% - 48px), 1390px); margin-inline: auto; }
.module-icon { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 11px; }
.brand strong, .brand small { display: block; line-height: 1.16; overflow-wrap: anywhere; }
.brand strong { font-family: system-ui, sans-serif; font-size: .9rem; letter-spacing: .018em; }
.brand small { margin-top: 4px; font-weight: 600; }
.panel, #community {
    min-width: 0;
    padding: var(--gap);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.panel > h2, #community > h2 { margin-bottom: 12px; }
.panel p { color: var(--muted); overflow-wrap: anywhere; }
.panel p + .button { margin-top: 12px; }
.feedback { margin: 0 0 14px; padding: 9px 13px; border: 1px solid #b8e3c9; border-radius: 10px; background: #edfaf1; }
.public-content > .feedback { margin: 12px auto; width: min(calc(100% - 30px), 900px); }
.error { border-color: #e1a5ae; background: #fff2f3; color: #801d2d; }
.preview { background: #fff5dc; border-color: #e7ca81; }
.page-title { margin-bottom: 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--emerald); overflow-wrap: anywhere; }
.section-heading, .toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.section-heading { justify-content: space-between; margin-bottom: 12px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
form { display: grid; gap: 10px; }
form > button { justify-self: start; }
label { display: grid; gap: 4px; color: var(--ink); font-weight: 600; min-width: 0; }
input:not([type="checkbox"]), select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 8px 11px;
    border: 1px solid #bfcfc6;
    border-radius: 9px;
    background: #fbfdfc;
    color: var(--ink);
    font-weight: 400;
}
input[type="color"] { max-width: 120px; padding: 4px; }
input[type="checkbox"] { accent-color: var(--emerald); }
.checkbox, #community label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
details:not(.account-menu) { padding: 9px 11px; border: 1px solid var(--line); background: #fbfdfb; border-radius: 9px; }
details + details { margin-top: 7px; }
summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
summary small { color: var(--muted); }
details > form, details > .fields-grid { margin-top: 10px; }

.hero {
    position: relative;
    min-width: 0;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius);
    color: white;
    background: var(--emerald);
}
.hero::before, .hero::after { position: absolute; content: ""; pointer-events: none; }
.hero::before {
    z-index: -1;
    inset: 0;
    background: linear-gradient(94deg, var(--dark) 3%, var(--emerald) 23%, #004638d0 38%, transparent 67%);
}
.hero::after {
    z-index: 0;
    width: 73%;
    height: 65px;
    right: -7%;
    bottom: -44px;
    transform: rotate(-5deg);
    border-radius: 45% 54% 0 0;
    background: linear-gradient(100deg,#a36d12,#fff2a6 42%,var(--gold) 66%,#a36d12);
    box-shadow: 0 -8px #08634988;
}
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: 50% 61%; }
.hero-copy { position: relative; z-index: 1; padding: 22px 28px; max-width: min(63%, 650px); overflow-wrap: anywhere; }
.hero-copy h1 { font-size: clamp(1.7rem, 3.1vw, 2.9rem); text-shadow: 0 2px 4px #00312581; }
.hero-copy p { margin-top: 5px; font-size: clamp(.98rem,1.4vw,1.16rem); color: #f5f7e8; }

.admin-shell { background: #f6faf7; }
.sidebar {
    position: fixed;
    z-index: 4;
    inset: 0 auto 0 0;
    width: var(--rail);
    overflow: auto;
    padding: 17px 13px;
    background: linear-gradient(150deg, var(--emerald), #002f29 78%);
    color: white;
}
.sidebar .brand { margin: 0 3px; }
.sidebar .brand small, .site-footer .brand small { color: #ffe0a0; }
.role-pill { display: table; margin: 12px auto 17px; padding: 3px 11px; border-radius: 22px; background: #f7d772; color: #30230a; font: 600 .75rem/1.4 system-ui,sans-serif; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { display: flex; gap: 9px; align-items: center; color: white; padding: 8px; min-height: 44px; border-radius: 9px; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.sidebar nav a:hover { background: #ffffff15; }
.sidebar nav a[aria-current] { background: linear-gradient(110deg, #087d60,#06a393); box-shadow: inset 0 0 0 1px #8cf7cf59; }
.sidebar .module-icon { width: 30px; height: 30px; }
.admin-bar {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: var(--bar);
    margin-left: var(--rail);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 23px;
    background: linear-gradient(105deg, var(--emerald), #006057);
    color: white;
    box-shadow: 0 2px 8px #00312721;
}
.mobile-brand, .bottom-nav { display: none; }
.account { display: flex; align-items: center; gap: 15px; }
.account a { color: inherit; }
.account-menu { position: relative; }
.account-menu summary { display: flex; gap: 6px; align-items: center; list-style: none; min-height: 42px; }
.account-menu summary span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.account-menu .module-icon { width: 34px; height: 34px; }
.account-menu > div {
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    display: grid;
    gap: 6px;
    padding: 10px;
    background: white;
    color: var(--emerald);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.admin-content { margin-left: var(--rail); padding: var(--gap); }
.admin-hero { min-height: clamp(160px, 15vw, 230px); }
.hero-date { position: relative; z-index: 1; margin: 0 20px 0 auto; padding: 8px 12px; display: flex; gap: 6px; align-items: center; border: 1px solid #fff9; border-radius: 11px; background: #004638ed; white-space: nowrap; }
.hero-date .module-icon { width: 26px; height: 26px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.metric { display: flex; gap: 8px; align-items: center; padding: 10px; min-height: 78px; min-width: 0; border: 1px solid #fff; border-radius: 13px; box-shadow: 0 2px 6px #15392a20; color: var(--ink); text-decoration: none; }
.metric > div { min-width: 0; overflow-wrap: anywhere; }
.metric strong { display: block; font: 700 1.45rem/1.1 "Hind Siliguri",sans-serif; }
.metric small { color: var(--muted); }
.metric .module-icon { width: clamp(32px,4vw,62px); height: clamp(32px,4vw,62px); }
.mint, .tile:nth-child(6n+1) { background: linear-gradient(150deg,#fff,#e4f8ed); }
.sky, .tile:nth-child(6n+2) { background: linear-gradient(150deg,#fff,#e6f6ff); }
.lilac, .tile:nth-child(6n+3) { background: linear-gradient(150deg,#fff,#f0eaff); }
.gold-soft, .tile:nth-child(6n+4) { background: linear-gradient(150deg,#fff,#fff3dc); }
.pink, .tile:nth-child(6n+5) { background: linear-gradient(150deg,#fff,#ffebf2); }
.tile:nth-child(6n+6) { background: linear-gradient(150deg,#fff,#e3f8f7); }
.tile-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 7px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 72px; padding: 6px 3px; border: 1px solid var(--line); border-radius: 11px; text-align: center; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
a.tile:hover, a.metric:hover { border-color: #61a88e; }
.dashboard-panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.activity time { color: var(--muted); font-size: .85rem; }
.feature-panel { display: flex; align-items: flex-start; gap: 10px; }
.feature-panel > img { width: 62px; height: 62px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(108px,1fr)); gap: 9px; }
.icon-grid .tile .module-icon { width: 54px; height: 54px; }
.community-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.community-group { min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 10px; }
.community-group h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.community-group h3 .module-icon { width: 34px; height: 34px; }
#community > form { max-width: 420px; }
.design-heading .page-title { margin-bottom: 3px; }
.design-grid { margin-bottom: var(--gap); }
.media-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin-bottom: 10px; }
.media-strip figure { text-align: center; font-size: .77rem; }
.media-strip img { display: block; width: 100%; height: 55px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.publishing { margin-top: 12px; }
.compact { --gap: 10px; }

.contact-bar, .site-footer { background: var(--emerald); color: white; }
.contact-bar > .wrap { display: flex; justify-content: flex-end; padding-block: 4px; }
.contact-bar a, .site-footer a { color: inherit; }
.public-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 9px; color: var(--emerald); }
.public-navigation nav { display: flex; align-items: center; gap: 22px; }
.public-navigation nav a { text-decoration: none; font-weight: 600; }
.landing { margin-block: 0 24px; }
.landing-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(330px, 1fr);
    gap: 10px;
    padding: 8px;
    background: linear-gradient(115deg, var(--dark), var(--emerald));
    border-radius: 16px;
}
.public-hero { min-height: 265px; }
.public-hero .hero-copy { max-width: 55%; padding-inline: clamp(12px, 2vw, 30px); }
.public-hero .gold { margin-top: 12px; }
.landing-prayers {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    gap: 8px;
}
.prayer-preview {
    align-self: stretch;
    min-width: 0;
    text-align: center;
    border-radius: 13px;
    background: linear-gradient(#fff, #ebf7ef);
    border: 1px solid #bedbc4;
    overflow: hidden;
}
.prayer-preview:first-child:last-child { grid-column: 1 / -1; }
.prayer-preview h2 {
    display: flex;
    justify-content: center;
    gap: 3px;
    align-items: center;
    padding: 5px;
    font-size: 1rem;
    background: linear-gradient(180deg, #148661, var(--emerald));
    color: white;
}
.prayer-preview h2 .module-icon { width: 26px; height: 26px; }
.prayer-preview-mosque { padding: 3px 6px; font-weight: 600; }
.prayer-preview-mobile { display: none; }
.prayer-preview table { width: calc(100% - 14px); margin-inline: 7px; border-collapse: collapse; font-size: .87rem; }
.prayer-preview th, .prayer-preview td { padding: 2px; border-bottom: 1px solid var(--line); }
.prayer-preview a { display: inline-block; margin: 7px; }
.next-preview p { margin: 15px 6px 7px; font-size: 1.2rem; font-weight: 700; }
.next-preview time { display: block; margin: 0 7px 12px; padding: 6px 3px; border-radius: 8px; background: var(--emerald); color: white; font-size: clamp(1.15rem, 2.1vw, 1.85rem); font-variant-numeric: tabular-nums; font-weight: 700; }
.public-tiles { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin: 9px 0; background: white; padding: 7px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.public-panels { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; }
.public-panels h2 { display: flex; align-items: center; gap: 5px; }
.public-panels h2 img { width: 37px; height: 37px; }
.about-photo { width: 42%; max-height: 115px; margin: 0 10px 5px 0; float: left; border-radius: 8px; object-fit: cover; }
.site-footer { border-top: 3px solid var(--gold); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 12px; }
.site-footer p { font-size: .88rem; overflow-wrap: anywhere; }
.login-layout {
    width: min(calc(100% - 40px), 1110px);
    display: grid;
    grid-template-columns: minmax(0,1.27fr) minmax(0,1fr);
    gap: 20px;
    align-items: center;
    margin-block: clamp(16px,5vh,55px);
    padding: 20px;
    border-radius: 22px;
    background: radial-gradient(ellipse at 20% 0%, #007961, transparent 65%), linear-gradient(135deg, #004438,#002d27);
    box-shadow: 0 14px 38px #003b2531;
}
.login-hero { align-items: flex-start; min-height: clamp(265px,37vh,420px); }
.login-hero .hero-image { inset: auto 0 0; width: 100%; height: 80%; object-position: center 60%; }
.login-hero::before { background: linear-gradient(180deg,var(--dark) 4%, #004638c8 31%, transparent 63%); }
.login-hero .hero-copy { max-width: 100%; width: 100%; text-align: center; padding: 14px 8px; }
.login-hero .brand img { width: 60px; height: 60px; }
.login-hero .brand strong { font-size: clamp(1rem,2.3vw,1.7rem); }
.login-hero .brand small { color: #ffdc7d; font-size: 1.25rem; }
.login-hero .hero-copy p { line-height: 1.2; font: 600 .92rem/1.22 system-ui,sans-serif; }
.showcase-tiles { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 9px; }
.login-card { text-align: center; min-width: 0; padding: clamp(12px,2vw,24px); background: linear-gradient(150deg,#fff,#f1fbf7); border: 1px solid #fff; border-radius: 18px; box-shadow: 0 7px 14px #001b1580; }
.login-card h1 { font-size: clamp(1.38rem,2vw,1.85rem); }
.login-card .login-symbol { width: 45px; height: 45px; }
.login-subtitle { font-size: .87rem; font-weight: 600; margin-bottom: 8px; }
.login-card form { text-align: left; }
.login-card button { width: 100%; }
.divider { display: flex; align-items: center; gap: 8px; margin: 11px 0 6px; font-size: .9rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
.login-tiles .tile { min-height: 63px; }
.login-tiles .module-icon { width: 35px; height: 35px; }
.back-link { display: inline-block; margin-top: 9px; }
.install-card { width: min(calc(100% - 28px), 550px); margin: 22px auto; }
.install-card h1 { margin-block: 14px; }

@media (max-width: 1120px) {
    :root { --rail: 198px; }
    .sidebar .brand img { width: 36px; height: 36px; }
    .sidebar .brand strong { font-size: .75rem; }
}
@media (max-width: 900px) {
    .metrics, .quick-panel .tile-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .metric { padding: 7px; gap: 4px; }
    .hero-date { display: none; }
    .public-navigation nav { gap: 12px; }
    .workspace-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 800px) {
    :root { --gap: 11px; --bar: 57px; }
    .sidebar, .desktop-title, .public-link { display: none; }
    .mobile-brand { display: block; min-width: 0; }
    .admin-bar, .admin-content { margin-left: 0; }
    .admin-bar { padding: 6px 12px; }
    .admin-bar .brand img { width: 39px; height: 39px; }
    .admin-shell, .site-shell:has(.public-bottom) { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .bottom-nav {
        position: fixed;
        z-index: 5;
        inset: auto 7px max(6px, env(safe-area-inset-bottom));
        display: flex;
        justify-content: space-around;
        align-items: stretch;
        border: 1px solid #2d8d72;
        border-radius: 21px;
        box-shadow: 0 4px 18px #003e3259;
        background: linear-gradient(125deg,#006149,var(--dark));
        color: white;
        padding: 4px 3px;
    }
    .bottom-nav a { flex: 1; min-width: 0; max-width: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; padding: 3px; border-radius: 13px; color: white; text-align: center; text-decoration: none; font-size: .68rem; line-height: 1.12; overflow-wrap: anywhere; }
    .bottom-nav [aria-current] { background: #fce18d; color: #173d2d; font-weight: 700; }
    .bottom-nav .module-icon { width: 25px; height: 25px; }
    .bottom-nav .raised { color: #ffebae; }
    .bottom-nav .raised[aria-current] { color: #173d2d; }
    .admin-hero { min-height: 185px; }
}
@media (max-width: 620px) {
    :root { --radius: 13px; }
    .wrap { width: min(calc(100% - 20px),1390px); }
    .contact-bar, .public-navigation nav { display: none; }
    .public-bar { background: var(--emerald); color: white; }
    .public-navigation { color: inherit; }
    .public-navigation .brand img { width: 39px; height: 39px; }
    .account-menu summary span { display: none; }
    .hero { align-items: flex-end; }
    .hero-image, .public-hero .hero-image { width: 100%; height: 86%; inset: 0 0 auto; object-position: center 57%; }
    .hero::before { background: linear-gradient(0deg,var(--dark) 1%,#004638dc 25%,transparent 62%); }
    .hero::after { bottom: auto; top: -35px; left: -12%; transform: rotate(-8deg); width: 125%; height: 40px; }
    .hero-copy, .public-hero .hero-copy { max-width: 100%; width: 100%; padding: 10px 12px; text-align: center; }
    .hero-copy h1 { font-size: 1.55rem; }
    .admin-hero { min-height: 174px; }
    .admin-hero .hero-copy p { display: none; }
    .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-block: 8px; }
    .metric { min-height: 59px; gap: 6px; font-size: .84rem; }
    .metric strong { font-size: 1.18rem; }
    .metric .module-icon { width: 42px; height: 42px; }
    .quick-panel .tile { font-size: .76rem; }
    .quick-panel .tile .module-icon { width: 36px; height: 36px; }
    .dashboard-panels, .public-panels, .community-grid, .fields-grid { grid-template-columns: minmax(0,1fr); }
    .public-hero { min-height: 266px; border-radius: 0 0 18px 18px; }
    .public-hero .gold { margin-top: 8px; }
    .public-tiles { margin: 8px 0; }
    .site-footer .wrap { gap: 8px; flex-direction: column; text-align: center; }
    .login-layout { width: min(100%,440px); margin-block: 0; grid-template-columns: minmax(0,1fr); gap: 0; padding: 0 9px 12px; border-radius: 0; }
    .login-hero { min-height: 192px; }
    .login-hero .hero-image { height: 93%; }
    .login-hero::before { background: linear-gradient(0deg,var(--emerald) 0%,#004638a6 32%,transparent 78%); }
    .login-hero .hero-copy { align-self: flex-end; }
    .login-hero .hero-copy .brand { display: flex; flex-direction: column; gap: 3px; }
    .login-hero .hero-copy .brand img { width: 55px; height: 55px; }
    .login-hero .brand small { font-size: 1rem; }
    .login-hero .hero-copy p { font-size: .75rem; }
    .showcase-tiles { display: none; }
}

/* Locked landing, login and dashboard artwork treatments. */
.public-hero::after,
.admin-hero::after,
.login-hero::after {
    inset: auto -8% -34px;
    width: 116%;
    height: 57px;
    border-radius: 48% 58% 0 0 / 40% 82% 0 0;
    transform: rotate(-3deg);
    background: linear-gradient(104deg, #067453 5%, #e8bd53 29%, #fff0ac 45%, #a96c17 74%, #f6d574);
    box-shadow: 0 -5px #0e78565e;
}
.login-hero .hero-image { height: 92%; object-position: center 67%; }
.login-hero::before { background: linear-gradient(180deg,var(--dark) 1%,#004638dc 25%,#00463827 62%,transparent); }
.login-card { color: #102b23; background: linear-gradient(155deg,#fff 38%,#ecf8f3); }
.login-tiles .tile:nth-child(1) { background: linear-gradient(145deg,#fff8e2,#ffebad); }
.login-tiles .tile:nth-child(2) { background: linear-gradient(145deg,#f1fff8,#d3f2e0); }
.login-tiles .tile:nth-child(3) { background: linear-gradient(145deg,#faf6ff,#eadbff); }
.login-tiles .tile:nth-child(4) { background: linear-gradient(145deg,#f2fbff,#d8efff); }
.login-tiles .tile:nth-child(5) { background: linear-gradient(145deg,#fff5fa,#fbdcea); }
.login-tiles .tile:nth-child(6) { background: linear-gradient(145deg,#effdfa,#d7f2ee); }
.metric { box-shadow: 0 2px 7px #15392a14; }
.metric strong { color: var(--dark); }
.metric .module-icon { width: clamp(39px,4.2vw,62px); height: clamp(39px,4.2vw,62px); }
.quick-panel .tile .module-icon { width: 44px; height: 44px; }

@media (min-width: 801px) {
    .admin-hero { min-height: clamp(142px,12vw,202px); }
    .admin-hero .hero-image { right: 13%; width: 51%; object-position: center 67%; }
    .public-hero .hero-image { width: 81%; object-position: center 60%; }
    .admin-hero .hero-image, .public-hero .hero-image {
        mask-image: linear-gradient(90deg,transparent,black 29%,black 95%,transparent);
    }
    .admin-hero::before, .public-hero::before {
        background: radial-gradient(ellipse 79% 132% at -12% 35%,var(--dark) 43%,var(--emerald) 69%,transparent 81%);
    }
    .quick-panel .tile-grid { grid-template-columns: repeat(10,minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .landing-lead { grid-template-columns: minmax(0,1fr); }
    .landing-prayers { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); }
    .quick-panel .desktop-quick-action { display: none; }
}
@media (max-width: 620px) {
    .landing-lead { padding: 0; background: none; }
    .public-hero { min-height: 239px; border-radius: 0 0 15px 15px; }
    .public-hero .hero-image, .admin-hero .hero-image { height: 100%; object-position: center 57%; }
    .public-hero .hero-copy { width: 100%; max-width: 100%; padding-bottom: 22px; }
    .admin-hero .hero-copy { padding-bottom: 21px; }
    .login-hero .hero-copy { padding-bottom: 22px; }
    .login-hero::before { background: linear-gradient(0deg,var(--dark),#004638c2 32%,#00463823 75%); }
    .landing-prayers { grid-template-columns: minmax(0,1fr); }
    .prayer-preview table { display: none; }
    .prayer-preview-mobile {
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 3px;
        margin: 3px 5px 0;
        padding: 0;
        list-style: none;
    }
    .prayer-preview-mobile li {
        padding: 4px 1px;
        border-radius: 6px;
        background: #e2f4e9;
        font-size: .84rem;
    }
    .prayer-preview-mobile strong { display: block; }
    .next-preview p { margin-top: 5px; }
    .next-preview time { width: 9rem; margin-inline: auto; }
    .public-tiles { grid-template-columns: repeat(auto-fit,minmax(60px,1fr)); }
    .public-tiles .module-icon, .quick-panel .tile .module-icon { width: 38px; height: 38px; }
    .metric .module-icon { width: 46px; height: 46px; }

}

.prayer-panel { max-width: 780px; }
.prayer-panel.wrap { margin-block: var(--gap); }
.prayer-editor, .prayer-table { margin-top: var(--gap); }
.prayer-editor fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 9px; }
.prayer-table { width: 100%; border-collapse: collapse; margin-bottom: var(--gap); }
.prayer-table caption { color: var(--emerald); font-weight: 600; padding: 9px 0; }
.prayer-table th, .prayer-table td { padding: 7px; text-align: start; border-bottom: 1px solid var(--line); }
.prayer-panel > a { display: inline-block; margin-top: 10px; }

.finance-filter,.finance-summary,.finance-entry-panels { display:grid; gap:12px; margin-block:14px; }
.finance-filter,.finance-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
.finance-entry-panels { grid-template-columns:repeat(3,minmax(0,1fr)); }
.finance-summary > div { background:#eff8f4; border:1px solid #cce9de; border-radius:10px; padding:10px; }
.finance-summary strong { display:block; overflow-wrap:anywhere; }
.finance-table-wrap { overflow:auto; }
.finance-table { width:100%; border-collapse:collapse; }
.finance-table th,.finance-table td { padding:8px; border-bottom:1px solid #dce8e1; text-align:start; vertical-align:top; }
.finance-panel .section-heading { margin-top:16px; }
.finance-receipt { padding:16px; border:1px solid #cce9de; margin-bottom:12px; }
@media(max-width:700px) {
    .finance-filter,.finance-summary,.finance-entry-panels { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media print {
    .admin-shell:has(.finance-receipt) .sidebar,.admin-shell:has(.finance-receipt) .admin-bar,
    .admin-shell:has(.finance-receipt) .bottom-nav,.finance-panel:has(.finance-receipt) .page-title,
    .finance-print { display:none; }
    .admin-shell:has(.finance-receipt) .admin-content { margin:0; width:100%; }
}

.voice-admin textarea { width:100%; padding:10px; font:inherit; }
.voice-row { margin-top:12px; }
.voice-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:10px; }
.voice-stage { padding:clamp(16px,4vw,52px); background:#004638; color:white; }
.voice-stage:fullscreen { overflow:auto; }
.voice-heading { display:flex; gap:12px; align-items:center; color:#ffe5a4; margin-bottom:16px; }
.voice-heading h1 { color:white; margin:0; }
.voice-stage video { display:block; width:min(100%,960px); max-height:58vh; margin:auto; background:#10241c; border-radius:12px; }
.voice-message { max-width:960px; margin:16px auto; font-size:clamp(18px,2.3vw,30px); overflow-wrap:anywhere; }
.voice-stage a { color:#ffe5a4; }

.voice-expanded { position:fixed; inset:0; z-index:100; overflow:auto; }

.committee-hero .hero-copy p { display: block; }
.committee-shortcuts {
    grid-template-columns: repeat(auto-fit,minmax(78px,1fr));
    margin: 12px 0;
}
.committee-shortcuts .module-icon { width: 42px; height: 42px; }
.committee-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--gap); }
.committee-grid > .panel { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.committee-grid h2, .committee-meetings h2 { display: flex; align-items: center; gap: 7px; }
.committee-grid h2 .module-icon, .committee-meetings h2 .module-icon { width: 34px; height: 34px; }
.committee-dashboard [id], #committee-setup, #committee-meetings { scroll-margin-top: calc(var(--bar) + 10px); }
.committee-grid dl { margin: 8px 0; }
.committee-grid dt { color: var(--muted); }
.committee-grid dd { font-weight: 700; margin: 0 0 5px; }
.committee-amounts { display: grid; grid-template-columns: repeat(auto-fit,minmax(84px,1fr)); gap: 6px; }
.committee-amounts > div { padding: 9px; border-radius: 9px; background: #eaf7ef; }
.committee-directory { list-style: none; padding: 0; }
.committee-directory li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.committee-directory small { display: block; color: var(--muted); }
.committee-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.committee-meetings textarea { display: block; width: 100%; font: inherit; }
.committee-check { display: flex; align-items: center; gap: 7px; }
.committee-check input { width: auto; margin: 0; }
@media (max-width:620px) {
    .committee-grid { grid-template-columns: 1fr; }
    .committee-shortcuts { grid-template-columns: repeat(auto-fit,minmax(58px,1fr)); }
}

.module-banner {
    min-height: 120px;
    margin-bottom: var(--gap);
}
.module-banner .hero-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 78%;
}
.module-banner .hero-copy h1 { font-size: clamp(1.45rem,3vw,2.5rem); }
.module-banner .hero-copy > .module-icon { width: 55px; height: 55px; }
.module-banner .hero-image { object-position: center 59%; }
.finance-summary > div:nth-child(2) { background: #e8f8ed; }
.finance-summary > div:nth-child(3) { background: #fff0ea; border-color: #f3ded4; }
.finance-summary > div:nth-child(4) { background: #fff6dc; border-color: #ece2ba; }
.finance-summary strong { margin-top: 3px; font-size: clamp(1.12rem,2vw,1.5rem); color: var(--dark); }
.finance-comparison {
    background: #f5fbf6;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 12px;
    margin-block: var(--gap);
}
.finance-comparison h2 { display: flex; gap: 8px; align-items: center; }
.finance-comparison h2 img { width: 32px; height: 32px; }
.finance-chart-row {
    display: grid;
    grid-template-columns: 2.5rem minmax(0,1fr) minmax(0,auto);
    gap: 8px;
    align-items: center;
    margin-top: 7px;
}
.finance-chart-row strong { overflow-wrap: anywhere; }
.finance-chart-row meter { width: 100%; height: 1.35rem; }
.finance-chart-row meter::-webkit-meter-bar { background: #e3ede6; border: 0; border-radius: 9px; }
.finance-chart-income::-webkit-meter-optimum-value { background: #21804e; border-radius: 9px; }
.finance-chart-expense::-webkit-meter-optimum-value { background: #ae522a; border-radius: 9px; }
.finance-chart-income::-moz-meter-bar { background: #21804e; }
.finance-chart-expense::-moz-meter-bar { background: #ae522a; }
.prayer-table { border: 1px solid var(--line); }
.prayer-table thead { background: var(--emerald); color: white; }
.prayer-table tbody tr:nth-child(odd) { background: #eff9f1; }
.prayer-table td { font-variant-numeric: tabular-nums; }
.prayer-table td:last-child { color: var(--dark); font-weight: 700; }
.voice-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f3faf6;
}
.voice-stage .voice-heading { padding-bottom: 12px; border-bottom: 1px solid var(--gold); }
.voice-controls button, .voice-controls a { min-height: 44px; }
@media (max-width:620px) {
    .module-banner .hero-copy { max-width: 100%; text-align: start; padding-bottom: 16px; }
    .module-banner .hero-copy > .module-icon { width: 42px; height: 42px; }
}

.mobile-panel-menu { display: none; }
.account-name { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; }
.public-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.logout-form { margin: 0; }
.logout-form button { white-space: nowrap; }
#voice-settings { margin-block: 12px; scroll-margin-top: calc(var(--bar) + 10px); }
#voice-settings fieldset { min-width: 0; margin-block: 8px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 800px) {
    .account-name { display: none; }
    .mobile-panel-menu { display: block; position: static; }
    .mobile-panel-menu > summary {
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 1.3rem;
        line-height: 1;
        border: 1px solid currentColor;
        border-radius: 8px;
        white-space: nowrap;
    }
    .mobile-panel-menu > summary span { display: inline; }
    .mobile-panel-menu > div {
        right: 8px;
        max-width: calc(100vw - 16px);
        max-height: 68vh;
        overflow: auto;
        z-index: 7;
    }
    .mobile-panel-menu nav, .public-navigation .mobile-panel-menu nav { display: grid; gap: 4px; }
    .mobile-panel-menu nav a {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 7px;
        text-decoration: none;
        color: var(--emerald);
    }
    .mobile-panel-menu nav [aria-current] { background: #e8f4eb; border-radius: 8px; }
    .mobile-panel-menu nav .module-icon { width: 25px; height: 25px; }
    .public-bar { position: sticky; top: 0; z-index: 6; }
    .public-navigation { position: relative; min-height: 52px; padding-block: 4px; }
    .admin-bar { min-height: 52px; padding-block: 4px; }
    .public-actions > .button, .logout-form button {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-block: 0;
        line-height: 1.15;
    }
    .bottom-nav a { max-width: none; border-radius: 10px; }
    .bottom-nav [aria-current] { background: #f4df9e; }
    .bottom-nav .module-icon { width: 22px; height: 22px; }
    .public-navigation > nav { display: none; }
    .public-navigation .brand { min-width: 0; }
    .public-navigation .brand strong { overflow-wrap: anywhere; }
    .public-actions, .account { flex-shrink: 0; }
    .public-actions > .button { white-space: nowrap; }
    .admin-shell.native-navigation { padding-bottom: 0; }
}
@media (max-width: 420px) {
    .account, .public-actions { gap: 5px; }
    .public-navigation, .admin-bar { gap: 6px; }
    .public-navigation .brand, .admin-bar .brand { gap: 6px; }
    .public-navigation .brand img, .admin-bar .brand img { flex: 0 0 34px; width: 34px; height: 34px; }
    .public-navigation .brand strong, .admin-bar .brand strong { font-size: .76rem; }
    .public-navigation .brand small, .admin-bar .brand small { font-size: .72rem; }
    .public-actions > .button, .logout-form button { font-size: .84rem; }
    .public-actions .button, .logout-form button { padding-inline: 8px; }
}
.voice-mosque-picker { max-width: 460px; }
.voice-mosque-picker select { background: white; color: var(--ink); }

.mobile-notice { display: none; }
.landing [id] { scroll-margin-top: 66px; }
.public-tiles { grid-template-columns: repeat(6,minmax(0,1fr)); }
.landing .public-panels { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 800px) {
    .public-navigation {
        display: grid;
        grid-template-columns: 44px minmax(0,1fr) 44px;
        color: white;
    }
    .public-bar { background: var(--emerald); }
    .public-navigation .brand { justify-self: center; }
    .public-navigation .brand img { flex-shrink: 0; }
    .public-navigation .public-actions { display: none; }
    .public-navigation .mobile-panel-menu > div { right: auto; left: 0; }
    .mobile-notice {
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        text-decoration: none;
        font-size: 1.25rem;
    }
    .landing .public-panels { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .public-hero .hero-image { height: 100%; object-position: center 62%; }
    .public-hero .hero-copy { padding-top: 46px; }
    .public-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .landing .public-panels { grid-template-columns: 1fr; }
}

.member-hero { margin-bottom: 10px; }
.member-shortcuts { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 10px 0; }
.member-shortcuts .tile { padding-inline: 4px; }
.member-prayer { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: var(--emerald); color: white; }
.member-prayer time { color: #ffde83; font-size: 1.4rem; font-weight: 700; }
.member-profile { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: #edf7f2; }
.member-total { background: #fff1e8; color: #7d2d17; padding: 8px 12px; border-radius: 8px; }
.member-due { color: #982b2b; }
.subscription-admin-rows details { margin: 8px 0; }
.member-receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; }
.member-receipt dd { margin: 0; overflow-wrap: anywhere; }
#member-dues, #member-subscription { scroll-margin-top: 65px; }
@media print {
    body:has(.member-receipt) .sidebar, body:has(.member-receipt) .admin-bar,
    body:has(.member-receipt) .bottom-nav, .member-receipt-actions { display: none; }
    body:has(.member-receipt) .admin-content { margin: 0; padding: 0; }
}

.landing-prayers-empty .prayer-preview {
    align-self: center;
    padding-bottom: 12px;
}
.landing-prayers-empty .prayer-preview > a { margin-top: 16px; }
.member-shortcuts { grid-template-columns: repeat(auto-fit,minmax(min(100%,70px),1fr)); }
.member-receipt > img { object-fit: contain; }
.member-receipt > h1 { color: var(--emerald); }
.tasbih-panel {
    max-width: 440px;
    margin-block: 20px;
    padding: clamp(16px,4vw,28px);
    text-align: center;
}
.tasbih-panel output {
    display: grid;
    place-items: center;
    width: min(190px,100%);
    aspect-ratio: 1;
    margin: 18px auto;
    border: 7px solid var(--gold);
    border-radius: 50%;
    background: var(--emerald);
    color: white;
    font-size: clamp(2rem,7vw,3.5rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}
.tasbih-panel button { margin: 4px; min-height: 44px; }

.mosque-content { margin-block: 16px; }
.mosque-content h1 { color: var(--emerald); }
.mosque-content-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; margin-top: 12px; }
.mosque-content-card { overflow-wrap: anywhere; }
.mosque-content-card img { display:block; width:100%; max-height:320px; object-fit:contain; border-radius:8px; }
.mosque-content-card img.donation-qr { width:min(100%,240px); margin:12px auto; }
.mosque-content form { max-width: 420px; margin-block: 12px; }

.finance-fund-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.8rem;margin:1rem 0}
.finance-fund-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.25rem .6rem;padding:1rem;border:1px solid #b8dacf;border-radius:18px;color:#123e30;text-decoration:none;background:linear-gradient(135deg,#f7fdf9,#d9f1e7);box-shadow:0 4px 14px #123e3010}
.finance-fund-card:nth-child(4n+2){background:linear-gradient(135deg,#fcfeff,#dfedfc);border-color:#c3d9ed}
.finance-fund-card:nth-child(4n+3){background:linear-gradient(135deg,#fffdf6,#f6e8bb);border-color:#e3d29d}
.finance-fund-card:nth-child(4n+4){background:linear-gradient(135deg,#fdfaff,#ede3fa);border-color:#ded0eb}
.finance-fund-card img{width:2rem;height:2rem;object-fit:contain}
.finance-fund-card strong,.finance-fund-card small{grid-column:2}
.finance-fund-card strong{font-size:1.25rem;overflow-wrap:anywhere}
.finance-fund-card span{overflow-wrap:anywhere}
.finance-fund-card:focus-visible{outline:3px solid #126b57;outline-offset:2px}
.finance-fund-manager form{margin-block:.8rem}

.landing-reference .public-hero .hero-image{width:100%;height:100%;object-position:center 54%;object-fit:cover}
.landing-reference .public-hero::before{background:linear-gradient(95deg,#032e24 4%,#034634ef 30%,#00433300 76%);clip-path:none}
.landing-reference .public-hero .hero-copy{position:relative;z-index:2}
.landing-reference .prayer-preview-mobile img{width:23px;height:23px;object-fit:contain}
.landing-reference .next-preview{background:radial-gradient(at top,#037655,#023f30 65%);color:white}
.landing-reference .next-preview time{border:1px solid #e8cc74;color:#fff1ae}
.landing-reference .public-panels>.panel{min-width:0}
.landing-reference .public-panels>.panel h2{display:flex;align-items:center;gap:7px}
.landing-committee{list-style:none;margin:.5rem 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;text-align:center}
.landing-committee li{display:grid;justify-items:center;align-content:start;background:#eaf5ec;border-radius:9px;padding:5px;overflow-wrap:anywhere}
.landing-committee small{color:#235747}
.landing-donation>img{display:block;max-width:min(100%,130px);max-height:130px;object-fit:contain;margin:8px auto}
.landing-content-item{display:inline-grid;vertical-align:top;width:30%;margin:3px 1%;font-size:.8rem;overflow-wrap:anywhere}
.landing-content-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
@media(min-width:1050px){
 .landing-reference .public-tiles{grid-template-columns:repeat(10,minmax(0,1fr))}
}
@media(max-width:620px){
 .landing-reference .public-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
 .landing-reference .public-tiles .tile{font-size:.71rem;padding-inline:3px}
 .landing-reference .public-hero{min-height:205px}
 .landing-reference .public-hero .hero-image{height:80%;object-position:50% 45%}
 .landing-reference .public-hero::before{background:linear-gradient(0deg,#043d2e 18%,transparent 70%)}
 .landing-reference .public-hero .hero-copy{padding-top:54px;padding-bottom:14px}
 .landing-reference .public-hero h1{font-size:1.46rem}
}
.tv-control-grid{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,2.5fr);gap:12px}
.tv-control-grid section{min-width:0}
.tv-control-preview{display:block;width:100%;aspect-ratio:16/9;border:1px solid #b7d3c8;border-radius:12px;margin-bottom:10px}
@media(max-width:680px){.tv-control-grid{grid-template-columns:minmax(0,1fr)}}

/* Public landing artwork is independent of the selected mosque photo. */
.landing-reference .public-hero::after {
    inset: 0;
    width: 100%;
    height: auto;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    clip-path: none;
    background: url("art/landing-desktop.svg") center / 100% 100% no-repeat;
    pointer-events: none;
}
.landing-reference .public-tiles .tile {
    border-color: #d5e7dc;
    background: linear-gradient(155deg,#fff,#e9f7f1);
    box-shadow: 0 3px 8px #053d2914;
}
.landing-reference .public-tiles .tile:nth-child(3n + 2) { background: linear-gradient(155deg,#fff,#eaf6ff); }
.landing-reference .public-tiles .tile:nth-child(3n) { background: linear-gradient(155deg,#fff,#fdf1d8); }
.landing-reference .public-tiles .tile img {
    width: clamp(32px,4vw,51px);
    height: clamp(32px,4vw,51px);
    object-fit: contain;
    filter: drop-shadow(0 2px 2px #153e3729);
}
.landing-reference .prayer-preview table img { width: 1.4em; height: 1.4em; vertical-align: middle; object-fit: contain; }
@media (max-width:620px) {
    .landing-reference .public-hero .hero-copy { padding-top: 76px; padding-bottom: 22px; }
    .landing-reference .public-hero::after { background-image: url("art/landing-mobile.svg"); }
    .landing-reference .public-tiles .tile img { width: 34px; height: 34px; }
}

/* Public landing composition */
.landing-reference .next-preview {
    background: url("art/royal-lantern.svg") left .65rem center / auto 73% no-repeat,
                url("art/royal-lantern.svg") right .65rem center / auto 73% no-repeat,
                radial-gradient(at 50% 100%,#077454,#043b2d 70%);
    text-align: center;
    padding: .55rem 2.9rem;
}
.landing-reference .next-preview h2 { background: none; padding: 0; margin: 0; color: #fff5ce; }
.landing-reference .next-preview .next-prayer-name { margin: .25rem 0; }
.next-prayer-name img { width: 1.25em; height: 1.25em; vertical-align: middle; }
.landing-reference .next-preview time { width: auto; margin: 0 auto; background: #002c20; }
.countdown-units { color: #fff3bc; display: block; margin-top: .2rem; }
.landing-reference .public-panels > .panel h2 { background: linear-gradient(100deg,#dff4e5,transparent); border-radius: 9px; padding: .18rem .35rem; }
.landing-reference .public-panels > .panel h2 img { border-radius: 8px; background: #effbf4; padding: 3px; }
.landing-reference #donate h2 { background: linear-gradient(#0b784e,#004633); color: white; }
.landing-reference .about-photo { border: 2px solid #eef7eb; border-radius: 12px; }
@media (min-width: 1050px) {
    .landing-reference .public-hero .hero-image { width: 84%; left: auto; object-position: center 68%; }
    .landing-reference .public-panels { grid-template-columns: 1.12fr 1.2fr .82fr .74fr; }
    .landing-reference #contact { grid-column: span 4; }
}
@media (max-width: 620px) {
    .landing-reference .public-hero .hero-image { height: 86%; object-position: center 61%; }
    .landing-reference .next-preview .next-prayer-name img { display: none; }
}
@media (min-width:621px) {
    .landing-reference .next-preview { padding-inline: .45rem; }
    .landing-reference .next-preview time { width: fit-content; max-width: 100%; padding-inline: .35rem; }
}

/* Locked landing visual details */
.landing-reference .landing-lead {
    background: linear-gradient(135deg,#003523,#006839 70%,#003827);
}
.landing-reference .public-hero .hero-image {
    width: 100%;
    object-position: 55% center;
}
.landing-reference .public-hero::before {
    background: linear-gradient(90deg,#003725e8,#00614666 37%,transparent 67%);
}
.landing-reference .public-hero h1 {
    color: #fff6cd;
    text-shadow: 0 2px 4px #01271c,0 0 15px #01382c;
}
.landing-reference .prayer-preview {
    border: 1px solid #b4d4bf;
    box-shadow: inset 0 1px 0 white,0 3px 8px #002c263d;
}
.landing-reference .prayer-preview h2 {
    background: linear-gradient(#159548,#00512c 85%);
}
.landing-reference .next-preview h2 { border-radius: 10px; }
.landing-reference .public-tiles {
    border-color: #c8ddd8;
    box-shadow: inset 0 1px white,0 4px 12px #00534b23;
}
.landing-reference .public-tiles .tile {
    background: linear-gradient(150deg,#fff 25%,#e9f8fa);
    box-shadow: inset 0 1px 1px white,0 3px 6px #1a665b23;
    font-weight: 700;
    line-height: 1.12;
}
.landing-reference .public-tiles .tile img {
    width: clamp(35px,4.5vw,56px);
    height: clamp(35px,4.5vw,56px);
    filter: saturate(1.14) drop-shadow(0 2px 1px #11392955);
}
.landing-reference .public-panels > .panel {
    background: linear-gradient(160deg,#fff 58%,#eff9f1);
    border-color: #c9dbd5;
    box-shadow: inset 0 1px 1px white,0 3px 7px #1644301b;
}
.landing-reference .public-panels > .panel h2 img {
    background: linear-gradient(145deg,#168d49,#00452d);
    border: 1px solid #90ca9b;
}
@media (min-width:1050px) {
    .landing-reference .public-hero .hero-image { width: 83%; object-position: 68% center; }
    .landing-reference .next-preview {
        background: linear-gradient(#fff 25%,#e5f6eb);
        color: #00452d;
        padding: 0 0 .6rem;
    }
    .landing-reference .next-preview h2 { padding: .2rem; border-radius: 0; }
    .landing-reference .next-preview time { background: linear-gradient(#0b8252,#003d26); color: white; }
    .landing-reference .next-preview .next-prayer-name img { display: block; width: 2rem; height: 2rem; margin: .55rem auto .15rem; }
    .landing-reference .next-preview .countdown-units { color: #064d34; }
}
@media (max-width:620px) {
    .landing-reference .landing-lead { background: none; }
    .landing-reference .public-hero .hero-image { height: 75%; object-position: center top; }
    .landing-reference .public-hero::before { background: linear-gradient(0deg,#00422e 16%,transparent 65%); }
    .landing-reference .public-hero .hero-copy { padding-top: 95px; }
    .landing-reference .public-tiles .tile { padding-block: 6px; }
    .landing-reference .public-tiles .tile img { width: 38px; height: 38px; }
    .landing-reference .prayer-preview-mobile .next-prayer-slot { background: linear-gradient(#0b8147,#00442c); color: white; border-radius: 8px; }
}

/* Android WebView public screens */
.app-card-home .landing-lead { display: block; }
.landing-reference.app-card-home .public-tiles {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: clamp(4px,1.2vw,9px);
    padding: clamp(4px,1.2vw,9px);
}
.landing-reference.app-card-home .public-tiles .tile {
    padding: 8px 2px;
    min-height: clamp(78px,24vw,122px);
    border-radius: 12px;
    font-size: clamp(.68rem,3.12vw,1rem);
    overflow-wrap: anywhere;
    line-height: 1.14;
}
.landing-reference.app-card-home .public-tiles .tile:nth-child(5n + 1) { background: linear-gradient(#fff,#dff3e9); }
.landing-reference.app-card-home .public-tiles .tile:nth-child(5n + 2) { background: linear-gradient(#fff,#e5f4fd); }
.landing-reference.app-card-home .public-tiles .tile:nth-child(5n + 3) { background: linear-gradient(#fff,#ede7fb); }
.landing-reference.app-card-home .public-tiles .tile:nth-child(5n + 4) { background: linear-gradient(#fff,#f9efd5); }
.landing-reference.app-card-home .public-tiles .tile:nth-child(5n + 5) { background: linear-gradient(#fff,#faeaf2); }
.app-back-bar { margin-block: 10px; }
.app-back-bar a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .25rem .8rem; color: var(--emerald); background: #e8f5ed; border-radius: 12px; font-weight: 700; text-decoration: none; }
.app-module-panel h1 { display: flex; align-items: center; gap: .4em; color: var(--emerald); }
.app-module-panel h1 img { width: 42px; height: 42px; }
.app-module-panel .about-photo { width: 100%; max-height: 280px; object-fit: cover; }
.app-prayer-countdown { text-align: center; margin: .75rem 0; padding: 1rem; border-radius: 14px; color: white; background: linear-gradient(145deg,#075b3d,#003e2e); }
.app-prayer-countdown h2 { margin: 0 0 .25em; color: #fff0b0; }
.app-prayer-countdown time { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 350px) {
    .landing-reference.app-card-home .public-tiles .tile img { width: 29px; height: 29px; }
}

/* Android notices, services and gallery */
.app-notice-strip { display:flex; align-items:center; gap:.5rem; margin-top:.5rem; background:#064a38; color:white; border:1px solid #bda45e; border-radius:12px; padding:.28rem .45rem; font-size:.85rem; }
.app-notice-link { display:inline-flex; align-items:center; gap:.25rem; flex:none; color:#ffe6a0; text-decoration:none; font-weight:700; }
.app-notice-link img { width:24px; height:24px; }
.app-horizontal { display:flex; align-items:stretch; gap:.55rem; min-width:0; overflow-x:auto; scroll-snap-type:x proximity; }
.app-horizontal > a { scroll-snap-align:start; }
.app-notice-track { min-width:0; flex:1 1 0; padding:.25rem 0; overflow-x:auto; }
.app-notice-track.is-scrolling { overflow:hidden; }
.app-notice-motion,.app-notice-items { display:flex; width:max-content; }
.app-notice-items { flex:none; }
.app-notice-track.is-scrolling .app-notice-motion { animation:app-notice-loop var(--notice-duration) linear infinite; }
.app-notice-track.is-paused .app-notice-motion { animation-play-state:paused; }
@keyframes app-notice-loop { to { transform:translateX(-50%); } }
.landing .app-notice-strip .app-notice-items > a { flex:none; white-space:nowrap; color:#fff; font-weight:600; padding:0 .5rem; border-inline-start:1px solid #d7c48387; }
.app-notice-strip button { flex:none; min-height:32px; padding:.1rem .45rem; color:#092e23; background:#ffe4a1; }
.app-notice-strip button[hidden] { display:none; }
.app-home-section { margin:.65rem 0; }
.app-home-section h2 { font-size:1rem; color:#074b37; margin:0 0 .35rem; }
.app-service-track,.app-photo-track { padding:3px 2px 8px; }
.app-service-track a,.app-photo-track a { display:grid; align-content:start; flex:none; color:#14392b; text-decoration:none; border:1px solid #d0e3d9; border-radius:13px; box-shadow:0 2px 5px #16433020; overflow:hidden; }
.app-service-track a { justify-items:center; align-content:center; width:88px; min-height:80px; gap:.3rem; text-align:center; font-size:.82rem; font-weight:700; background:linear-gradient(#fff,#e1f6eb); }
.app-service-track a:nth-child(2n) { background:linear-gradient(#fff,#f8ebd1); }
.app-service-track img { width:35px; height:35px; }
.app-thin-banner { display:flex; align-items:center; gap:.5rem; color:#ffebae; text-decoration:none; padding:.25rem .7rem; border-radius:10px; border:1px solid #d6b363; background:linear-gradient(100deg,#064634,#096047); font-weight:700; }
.app-thin-banner img { width:28px; height:28px; }
.app-thin-banner span:last-child { margin-inline-start:auto; }
.app-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:.5rem; }
.app-section-heading a { font-size:.85rem; }
.app-photo-track a { width:clamp(142px,51vw,220px); background:white; }
.app-photo-track img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.app-photo-track span { padding:.35rem .5rem; overflow-wrap:anywhere; }


.voice-stage.voice-preview-stage {
    width:min(100%,760px);
    margin-inline:auto;
    padding:clamp(12px,4vw,28px);
    background:#fbf8f0;
    color:#142b23;
    border-radius:18px;
}
.voice-preview-stage .voice-heading {
    padding:clamp(14px,4vw,24px);
    margin:0 0 14px;
    border-bottom:2px solid #d5ac49;
    border-radius:15px;
    background:linear-gradient(135deg,#003c2e,#075b45);
}
.voice-preview-stage .voice-heading img { flex:none; border-radius:10px; }
.voice-preview-stage .voice-heading p { color:#ffdf84; margin:0 0 .2em; }
.voice-preview-stage .voice-heading h1 { font-size:clamp(1.2rem,5vw,2rem); overflow-wrap:anywhere; }
.voice-preview-stage .voice-message {
    padding:clamp(14px,4vw,22px);
    margin:14px 0;
    border:1px solid #e5decb;
    border-radius:14px;
    background:#fffdf7;
    color:#142b23;
    font-size:clamp(1rem,3.7vw,1.25rem);
}
.voice-preview-stage .voice-controls { gap:10px; }
.voice-preview-stage .voice-controls a { display:inline-flex; align-items:center; color:#084637; }
.voice-preview-stage .voice-controls .voice-tv-button {
    gap:.5rem;
    justify-content:center;
    background:linear-gradient(#ffe28d,#efbd46);
    color:#252006;
}
.voice-tv-button img { width:27px; height:27px; }
.voice-preview-stage #voice-fullscreen { background:#e3f1e8; color:#084637; }
.voice-preview-stage:fullscreen,.voice-preview-stage.voice-expanded { width:100%; border-radius:0; }
