/* v0.31 home page. Uses the shared tokens (tokens.css); public pages only. */
.hayya-home .app-main{max-width:1240px}
.hayya-home h1,.hayya-home h2,.hayya-home h3{color:var(--ink);letter-spacing:-.01em}
.hm-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hm-kicker{margin:0 0 6px;font-size:13px;font-weight:700;color:var(--brand);text-transform:uppercase;letter-spacing:.08em}
.hm-head{max-width:860px;margin:0 0 28px}
.hm-head h2{margin:0;font-size:clamp(26px,3.4vw,36px);line-height:1.15;font-weight:800}
.hm-head p:not(.hm-kicker){margin:10px 0 0;color:var(--ink-muted);font-size:17px}

/* Returning visitors: the next jamaah at their saved masjid (filled by saved.js, as on the directory) */
.saved-strip{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;margin:0 0 24px;padding:16px 20px;border-radius:var(--r-card,12px);background:var(--brand,#0b5e52);color:var(--brand-ink,#fff);text-decoration:none;box-shadow:var(--shadow)}
.saved-strip .strip-label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#bfe3d8;font-weight:700}
.saved-strip strong{font-size:18px}
.saved-strip .strip-next{color:#ffd983;font-weight:650;font-variant-numeric:tabular-nums}
.saved-strip>span:last-child{margin-left:auto;font-size:20px}
.saved-strip:hover{background:var(--brand-strong,#07463d)}
.hayya-portal a.saved-strip,.hayya-portal a.saved-strip strong,.hayya-portal a.saved-strip>span:last-child{color:var(--brand-ink,#fff)}
.hayya-portal a.saved-strip .strip-next{color:#ffd983}

/* Links styled as buttons keep their own text colour */
.hayya-home a.btn-primary,.hayya-home a.btn-primary:hover{color:var(--brand-ink)}
.hayya-home a.btn-secondary,.hayya-home a.btn-quiet,.hayya-home a.btn-secondary:hover,.hayya-home a.btn-quiet:hover{color:var(--brand)}
.hayya-home a.hm-btn-light,.hayya-home a.hm-btn-light:hover{color:#2d2000}

/* Hero: message on the left, an example prayer hall screen on the right */
.hm-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-areas:'copy screen' 'doors doors';column-gap:48px;align-items:center;padding:24px 0 0}
.hm-hero-copy{grid-area:copy}.hm-screen{grid-area:screen}.hm-doors{grid-area:doors}
.hm-call{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin:0 0 14px;color:var(--brand)}
.hm-call [lang=ar]{font-size:24px;font-weight:600;line-height:1.4}
.hm-call span+span{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--ink-muted)}
.hm-hero-copy h1{margin:0;font-size:clamp(34px,5vw,56px);line-height:1.06;font-weight:850;max-width:16ch}
.hm-lead{margin:18px 0 0;font-size:19px;color:var(--ink-muted);max-width:36em}
.hm-screen{margin:0}
.hm-screen figcaption{margin-top:10px;font-size:13px;color:var(--ink-muted)}
.hm-tv{background:#0c3a33;color:#eaf5f0;border-radius:14px;padding:18px 20px 12px;border:8px solid #10221f;box-shadow:0 18px 40px rgba(12,58,51,.22);font-variant-numeric:tabular-nums}
.hm-tv-top{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding-bottom:12px;border-bottom:1px solid #ffffff22}
.hm-tv-clock{font-size:34px;font-weight:800;line-height:1}
.hm-tv-name{font-weight:700;font-size:15px;line-height:1.25}.hm-tv-name small{display:block;font-weight:500;opacity:.75;font-size:12px}
.hm-tv-next{font-size:12px;background:#f4c96b;color:#3d2a00;border-radius:999px;padding:5px 10px;white-space:nowrap}
.hm-tv-times{width:100%;border-collapse:collapse;margin-top:6px;font-size:17px}
.hayya-home .hm-tv-times :is(th,td){padding:7px 8px;text-align:right;font-weight:600;background:none;border:0;color:inherit}
.hm-tv-times thead th{font-size:11px;letter-spacing:.1em;text-transform:uppercase;opacity:.65;font-weight:700}
.hm-tv-times tbody th{text-align:left}
.hm-tv-times tr.hm-sun{opacity:.6}
.hm-tv-times tr.hm-cur{background:#f4c96b;color:#2d2000}
.hayya-home .hm-tv-times thead th{font-size:11px;letter-spacing:.1em;text-transform:uppercase;opacity:.65;font-weight:700}
.hayya-home .hm-tv-times tbody th{text-align:left}
.hm-tv-times tr.hm-cur>*:first-child{border-radius:6px 0 0 6px}.hm-tv-times tr.hm-cur>*:last-child{border-radius:0 6px 6px 0}

/* Two doorways under the hero, shaped like the Hayya arch */
.hm-doors{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:48px 0 72px}
.hm-door{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:999px 999px 18px 18px/150px 150px 18px 18px;padding:64px 36px 30px;text-align:center;box-shadow:var(--shadow)}
.hm-door-run{background:var(--brand);border-color:var(--brand);color:#fff}
.hm-door-run h2,.hm-door-run a:not(.btn){color:#fff}
.hm-door-mark{position:absolute;top:-22px;left:50%;transform:translateX(-50%);width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#3d2a00;border:4px solid var(--page)}
.hm-door h2{margin:0 0 8px;font-size:26px;font-weight:800}
.hm-door>p{margin:0 auto 18px;max-width:34em;color:var(--ink-muted)}
.hm-door-run>p{color:#d8ece5}
.hm-search{display:flex;gap:8px;max-width:440px;margin:0 auto}
.hm-search input{flex:1;min-width:0;min-height:48px;border:1.5px solid var(--line-strong);border-radius:var(--r-control);padding:0 14px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.hm-search .btn{min-height:48px;padding:0 20px;font-size:15px}
.hm-door-more{margin:16px 0 0!important;font-size:14px}
.hm-ticks{list-style:none;margin:0 auto 20px;padding:0;display:grid;gap:8px;text-align:left;max-width:360px}
.hm-ticks li{display:flex;gap:10px;align-items:flex-start;color:#eaf5f0}
.hm-ticks .hm-icon{width:20px;height:20px;color:var(--accent);margin-top:2px}
.hm-door-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:0!important}
.hayya-home .hm-door-run a.btn-primary,.hayya-home .hm-door-run a.btn-primary:hover{background:#fff;color:var(--brand)}
.hm-door-run .btn-primary:hover{background:var(--brand-tint)}
.hayya-home .hm-door-run a.btn-quiet,.hayya-home .hm-door-run a.btn-quiet:hover{color:#fff;border-color:#ffffff66}

/* What your masjid gets: three groups, not a tile grid */
.hm-band{margin:0 0 80px}
.hm-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hm-group{background:var(--surface);border:1px solid var(--line);border-top:5px solid var(--brand);border-radius:6px 6px var(--r-card) var(--r-card);padding:22px 24px 10px}
.hm-group:nth-child(2){border-top-color:var(--accent)}
.hm-group:nth-child(3){border-top-color:#5f8f84}
.hm-group h3{display:flex;align-items:center;gap:10px;margin:0 0 6px;font-size:19px;font-weight:800}
.hm-group h3 .hm-icon{color:var(--brand)}
.hm-group dl{margin:0}
.hm-group dl>div{padding:12px 0;border-top:1px solid var(--line)}
.hm-group dl>div:first-child{border-top:0}
.hm-group dt{font-weight:700}
.hm-group dd{margin:2px 0 0;color:var(--ink-muted);font-size:15px}

/* The iqamah example: before and after */
.hm-compare{margin:0 0 80px}
.hm-compare-cols{display:grid;grid-template-columns:1fr 1.15fr;border-radius:18px;overflow:hidden;border:1px solid var(--line)}
.hm-before,.hm-after{padding:28px 32px}
.hm-before{background:var(--surface-sunken)}
.hm-after{background:var(--surface)}
.hm-compare-cols h3{margin:0 0 14px;font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-muted)}
.hm-after h3{color:var(--success)}
.hm-before ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.hm-before li{display:flex;gap:10px;align-items:center;color:var(--ink-muted)}
.hm-before .hm-icon{width:18px;height:18px;color:var(--danger)}
.hm-edit{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:0 0 14px;font-variant-numeric:tabular-nums}
.hm-edit-label{width:100%;font-size:13px;font-weight:700;color:var(--ink-muted)}
.hm-edit s{font-size:28px;color:var(--ink-muted);font-weight:600}
.hm-edit b{font-size:44px;color:var(--brand);font-weight:850;line-height:1}
.hm-arrow{font-size:24px;color:var(--accent-ink)}
.hm-after p:last-child{margin:0;font-size:17px}

/* Joining: a track with who does each part */
.hm-join{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:36px 36px 30px}
.hm-track{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;position:relative}
.hm-track::before{content:"";position:absolute;left:28px;right:calc((100% - 56px)/3 - 28px);top:27px;border-top:2px dashed var(--line-strong)}
.hm-track li{position:relative}
.hm-dot{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--brand-tint);color:var(--brand);border:4px solid var(--surface);position:relative}
.hm-track li:last-child .hm-dot{background:var(--brand);color:#fff}
.hm-who{display:inline-block;margin:14px 0 6px;font-size:12px;font-weight:700;color:var(--accent-ink);background:#fff4dc;border-radius:999px;padding:3px 10px}
.hm-track h3{margin:0 0 4px;font-size:18px;font-weight:800}
.hm-track p{margin:0;color:var(--ink-muted)}

/* The team: a roster of real roles */
.hm-team{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;align-items:center;margin:0 0 80px}
.hm-team h2{margin:0;font-size:clamp(26px,3.4vw,36px);line-height:1.15;font-weight:800}
.hm-team-copy p:last-child{margin:12px 0 0;color:var(--ink-muted);font-size:17px}
.hm-roster{list-style:none;margin:0;padding:8px 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card)}
.hm-roster li{display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:center;padding:11px 20px;border-top:1px solid var(--line)}
.hm-roster li:first-child{border-top:0}
.hm-roster li>span:last-child{color:var(--ink-muted);font-size:15px}
.hm-badge{justify-self:start;font-size:13px;font-weight:700;border-radius:999px;padding:4px 12px;background:var(--brand-tint);color:var(--brand-strong)}
.hm-badge-admin{background:var(--brand);color:#fff}

/* The app */
.hm-app{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;align-items:center;background:#0c3a33;color:#e2f1eb;border-radius:22px;padding:44px 48px;margin:0 0 80px}
.hm-app h2{color:#fff;margin:0;font-size:clamp(26px,3.4vw,36px);line-height:1.15;font-weight:800}
.hm-app .hm-kicker{color:var(--accent)}
.hm-app-copy p{font-size:17px}
.hm-app-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:14px!important;color:#b9d6cc}
.hm-btn-light{background:var(--accent);color:#2d2000}
.hm-btn-light:hover{background:#f7d68c}
.hm-notes{display:grid;gap:12px}
.hm-note{background:#f6fbf9;color:#13312c;border-radius:16px;padding:12px 16px;display:grid;gap:1px;box-shadow:0 8px 24px #0005}
.hm-note:nth-child(2){margin-left:22px}.hm-note:nth-child(3){margin-left:44px}
.hm-note-app{display:flex;align-items:center;gap:6px;font-size:12px;color:#5b6b67;font-weight:600}
.hm-note-app .hm-icon{width:14px;height:14px;color:var(--brand)}
.hm-note b{font-size:15px}.hm-note>span:last-child{font-size:14px;color:#3f544f}

/* Closing */
.hm-end{text-align:center;padding:12px 0 24px}
.hm-end h2{margin:0;font-size:clamp(26px,3.4vw,36px);font-weight:800}
.hm-end>p{color:var(--ink-muted);font-size:17px;margin:8px 0 18px}
.hm-end-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

@media (max-width:960px){
 .hm-top{grid-template-columns:minmax(0,1fr);grid-template-areas:'copy' 'doors' 'screen'}
 .hm-team,.hm-app{grid-template-columns:1fr;gap:28px}
 .hm-screen{margin-bottom:56px}
 .hm-groups{grid-template-columns:1fr}
 .hm-doors{grid-template-columns:1fr;gap:40px;margin:40px 0 40px}
 .hm-compare-cols{grid-template-columns:1fr}
}
@media (max-width:640px){
 .hm-top{padding-top:4px}
 .hm-lead{font-size:17px}
 .hm-tv{padding:12px 12px 8px;border-width:6px}
 .hm-tv-top{grid-template-columns:auto 1fr}
 .hm-tv-next{grid-column:1/-1;justify-self:start}
 .hm-tv-clock{font-size:28px}
 .hm-tv-times{font-size:15px}
 .hm-door{padding:56px 18px 24px;border-radius:999px 999px 16px 16px/90px 90px 16px 16px}
 .hm-door h2{font-size:22px}
 .hm-search{flex-direction:column}
 .hm-band,.hm-compare,.hm-team,.hm-app{margin-bottom:56px}
 .hm-before,.hm-after{padding:22px 20px}
 .hm-join{padding:24px 20px}
 .hm-track{grid-template-columns:1fr;gap:22px}
 .hm-track::before{display:none}
 .hm-track li:not(:last-child)::after{content:"";position:absolute;left:27px;top:56px;bottom:-22px;border-left:2px dashed var(--line-strong)}
 .hm-track li{padding-left:72px;min-height:56px}
 .hm-dot{position:absolute;left:0;top:0}
 .hm-who{margin-top:0}
 .hm-roster li{grid-template-columns:1fr;gap:4px;padding:12px 16px}
 .hm-app{padding:28px 20px;border-radius:18px}
 .hm-note:nth-child(2),.hm-note:nth-child(3){margin-left:0}
}
