/* Public home page, desktop redesign (Nov 2026): flat, shadowless, dense. Everything here is either inside a
   .fhf-hd-desk block (hidden under 1024px) or inside @media (min-width:1024px), so phones and tablets are unchanged. */
.fhh{--g9:#013b2e;--g8:#0b4a37;--g7:#006b4f;--g1:#e8f2ec;--g0:#f3f8f5;--ink:#17312a;--muted:#5b6f66;--line:#e3e8e5;--soft:#f7f9f8;--gold:#c99a2e;--gold-ink:#3b2a06;--gold1:#fdf6e3;--gold-line:#f1dfb0;
  color:var(--ink);font-size:14px;line-height:1.45}
.fhh *,.fhh *::before,.fhh *::after{box-sizing:border-box}
.fhh h1,.fhh h2,.fhh h3,.fhh p{margin:0}
.fhh ul,.fhh ol,.fhh dl,.fhh dd{margin:0;padding:0;list-style:none}
.fhh a{color:var(--g7)}
.fhh-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.fhh-muted,.fhh-note{color:var(--muted);font-size:13px}
.fhh-note{padding:0 14px 8px}
.fhh-note .fhf-here-link{display:inline-flex;gap:6px;align-items:center;border:0;background:none;color:var(--g7);font-weight:600;cursor:pointer;padding:0}

/* Buttons */
.fhh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:8px;font-weight:600;font-size:14px;text-decoration:none!important;white-space:nowrap;border:1px solid transparent}
.fhh-btn-ghost{color:#fff!important;border-color:rgba(255,255,255,.75);background:rgba(1,59,46,.35)}
.fhh-btn-ghost:hover{background:rgba(255,255,255,.12)}
.fhh-btn-light{color:var(--g9)!important;background:#fff8e7;border-color:#fff8e7}
.fhh-btn-light:hover{background:#fff}
.fhh-btn-gold{color:var(--gold-ink)!important;background:#e9c46a;border-color:#e9c46a}
.fhh-btn-gold:hover{background:#f0d283}

/* Hero */
.fhh-hero{position:relative;overflow:hidden;min-height:260px;display:flex;align-items:center;background:var(--g9)}
.fhh-hero picture,.fhh-hero>img{position:absolute;inset:0}
.fhh-hero img{width:100%;height:100%;object-fit:cover}
.fhh-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,59,46,.92) 0%,rgba(1,59,46,.82) 45%,rgba(1,59,46,.45) 100%)}
.fhh-hero-copy{position:relative;z-index:1;width:100%;max-width:1240px;margin:0 auto;padding:28px 16px 52px;color:#fff}
.fhh-hero h1{font:700 clamp(26px,4.2vw,40px)/1.15 Georgia,serif;color:#fff;max-width:20ch}
.fhh-hero p{margin-top:8px!important;max-width:52ch;font-size:15px;color:rgba(255,255,255,.92)}
.fhh-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

/* Page container */
.fhh-top,.fhh-middle{display:grid;gap:14px;align-items:start}

/* Cards */
.fhh-card{background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0}
.fhh-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 8px}
.fhh-card-head h2{display:flex;align-items:center;gap:8px;font:700 17px/1.2 Georgia,serif;color:var(--g9)}
.fhh-card-head h2 svg{color:var(--g7)}
.fhh .fhh-card-head>a{display:inline;min-height:0;padding:0;border:0;background:none;font-size:12.5px;font-weight:600;text-decoration:none;white-space:nowrap}
.fhh-badge{display:inline-flex;align-items:center;padding:1px 8px;border-radius:6px;background:var(--g1);color:var(--g7);font-size:11.5px;font-weight:600;white-space:nowrap}
.fhh-empty{padding:4px 14px 14px;color:var(--muted)}

/* Events */
.fhh .fhh-event-list{padding:0 14px 8px}
.fhh-event-list li+li{border-top:1px solid var(--line)}
.fhh-event-list a{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;color:inherit;text-decoration:none}
.fhh-event-list a:hover strong{color:var(--g7)}
.fhh-date-block{display:grid;justify-items:center;align-content:center;width:52px;height:52px;border-radius:8px;background:var(--g1);color:var(--g9)}
.fhh-date-block small{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--g7)}
.fhh-date-block strong{font:700 20px/1 Georgia,serif}
.fhh-date-block svg{color:var(--g7)}
.fhh-event-copy{display:grid;gap:2px;min-width:0}
.fhh-event-copy strong{font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.fhh-event-copy span{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.fhh-event-copy svg{flex:none}

/* Quick actions */
.fhh .fhh-actions ul{display:grid;gap:8px;padding:2px 14px 14px}
.fhh-action{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit!important;text-decoration:none}
.fhh-action:hover{border-color:#c9d6cf;background:var(--g0)}
.fhh-action-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--g1);color:var(--g7)}
.fhh-action-copy strong{display:block;font-size:14px;color:var(--g9)}
.fhh-action-copy small{display:block;font-size:12px;color:var(--muted)}
.fhh-action-go{color:var(--muted)}
.fhh-action.is-gold{background:var(--gold1);border-color:var(--gold-line)}
.fhh-action.is-gold .fhh-action-icon{background:#fbe8b8;color:#8a5d0c}

/* Program and service tiles */
.fhh .fhh-tiles ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:2px 14px 14px}
.fhh-tiles a{display:grid;justify-items:center;align-content:start;gap:4px;height:100%;padding:12px 8px;border:1px solid var(--line);border-radius:8px;background:var(--g0);color:inherit;text-align:center;text-decoration:none}
.fhh-tiles a:hover{border-color:#c9d6cf;background:var(--g1)}
.fhh-tiles svg{color:var(--g7)}
.fhh-tiles strong{font-size:13.5px;color:var(--g9)}
.fhh-tiles small{font-size:11.5px;color:var(--muted);line-height:1.35}

/* Announcements kept from the previous design, made flat */
.fhh-news .fhf-home-panel{border:1px solid var(--line);border-radius:10px;box-shadow:none!important;background:#fff}

/* Quick links */
.fhh .fhh-quick-links ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:2px 14px 14px}
.fhh-quick-links a{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:8px;color:var(--g9);font-weight:600;font-size:13px;text-decoration:none}
.fhh-quick-links a:hover{background:var(--g0)}
.fhh-quick-links svg{color:var(--g7);flex:none}

/* Locations */
.fhh .fhh-locations>ul{display:grid;gap:10px;padding:2px 14px 14px}
.fhh-location{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:10px;border:1px solid var(--line);border-radius:8px}
.fhh-location-photo{display:block;border-radius:6px;overflow:hidden;aspect-ratio:4/3;background:var(--g0)}
.fhh-location-photo img{width:100%;height:100%;object-fit:cover;display:block}
.fhh-location-photo .fhf-location-placeholder{display:grid;place-items:center;height:100%;padding:8px;font-size:11px;text-align:center;color:var(--muted)}
.fhh-location-photo .fhf-location-placeholder img{width:40px;height:40px;object-fit:contain}
.fhh-location-copy{display:grid;gap:4px;align-content:start;min-width:0}
.fhh-location h3{font-size:14.5px;font-weight:700}
.fhh-location h3 a{color:var(--g9);text-decoration:none}
.fhh-location-copy p{display:flex;gap:6px;align-items:flex-start;font-size:12.5px;color:var(--muted)}
.fhh-location-copy p svg{flex:none;margin-top:2px;color:var(--g7)}
.fhh-location-links{flex-wrap:wrap;gap:4px 12px!important;margin-top:2px!important}
.fhh-location-links a{font-weight:600;text-decoration:none}

/* FAQ */
.fhh-faq details{border-top:1px solid var(--line);padding:0 14px}
.fhh-faq summary{padding:10px 0;font-weight:600;cursor:pointer;color:var(--g9)}
.fhh-faq details p{padding:0 0 10px;color:var(--muted)}
.fhh-faq>:last-child{padding-bottom:4px}

/* Pre-footer call to give */
.fhh-cta{display:grid;justify-items:start;gap:12px;margin:0;padding:18px 16px;border-radius:10px;background:var(--g9);color:#fff}
.fhh-cta>svg{color:#e9c46a}
.fhh-cta h2{font:700 20px/1.2 Georgia,serif;color:#fff}
.fhh-cta p{margin-top:4px!important;color:rgba(255,255,255,.88)}
.fhh-cta-campaign{font-weight:600}

@media (min-width:1024px){
  /* New blocks */
  .fhh-hero{min-height:300px}
  .fhh-hero-copy{max-width:1328px;padding:44px 40px 84px}
  .fhh-middle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin-top:14px}
  .fhh-middle.is-single{grid-template-columns:1fr}
  .fhh .fhh-tiles ul{grid-template-columns:repeat(4,minmax(0,1fr))}
  .fhh-stack{display:grid;gap:14px;margin-top:14px}
  .fhh .fhh-locations>ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fhh-location{grid-template-columns:150px minmax(0,1fr)}
  .fhh-cta{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;padding:20px 28px}
  .fhh-cta>svg{padding-right:18px;border-right:1px solid rgba(255,255,255,.25);box-sizing:content-box}

  /* The page around them: old hero, six action tiles and "More from First Hijrah" are phone/tablet only */
  .fhf-home>.fhf-hero,.fhf-home>.fhf-reference-actions,.fhf-home>.fhf-home-additional{display:none!important}
  .fhf-home.fhf-hd-page{padding-top:0}

  /* Top row: prayer times | upcoming events | quick actions, pulled up over the hero */
  .fhf-home-dashboard.fhh-dash{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) minmax(0,.85fr)!important;gap:14px!important;align-items:start;margin-top:-56px!important;position:relative;z-index:2}
  .fhh-dash>.fhh-col{min-width:0}
  .fhh-dash>.fhf-home-prayer-pair{min-width:0;grid-column:auto!important}
  /* With no announcements an older rule split this into two columns, squeezing the card: keep it one column. */
  .fhf-home-dashboard.fhh-dash .fhf-home-prayer-pair{grid-template-columns:minmax(0,1fr)!important}
  .fhh-dash>aside{display:contents!important}
  .fhh-dash>aside>.fhf-hd-actions,.fhh-dash>aside>.fhf-hd-hall,.fhh-dash>aside>.fhf-hd-upcoming,.fhh-dash>aside>.fhf-home-event{display:none!important}
  .fhh-dash>aside>.fhf-spotlight{grid-column:1/-1;margin:0!important;border:1px solid #e3e8e5!important;border-radius:10px!important;box-shadow:none!important}

  /* Prayer card: same content, flatter and tighter */
  .fhh-dash .fhf-home-calendar{border:1px solid #e3e8e5!important;border-radius:10px!important;box-shadow:none!important;overflow:hidden}
  .fhh-dash .fhf-home-calendar-heading{padding:12px 16px!important;gap:10px!important}
  .fhh-dash .fhf-home-calendar-heading h2{font-size:19px!important}
  .fhh-dash .fhf-home-calendar-heading>.fhf-icon,.fhh-dash .fhf-home-calendar-heading>svg{width:24px!important;height:24px!important}
  .fhh-dash .fhf-prayer-tab{font-size:12.5px!important;min-height:30px!important;padding:0 10px!important}
  .fhh-dash .fhf-hd-summary{padding:8px 10px!important;gap:10px!important;border-radius:8px!important;box-shadow:none!important}
  .fhh-dash .fhf-hd-fact strong{font-size:14px!important}
  .fhh-dash .fhf-hd-fact span{font-size:12px!important}
  .fhh-dash .fhf-hd-fact-icon{width:32px!important;height:32px!important}
  .fhh-dash .fhf-hd-clock{padding:6px 12px!important;border-radius:8px!important}
  .fhh-dash .fhf-hd-clock strong{font-size:22px!important}
  .fhh-dash .fhf-hd-clock span{font-size:11px!important}
  .fhh-dash .fhf-home-prayer-head{font-size:11px!important;padding-block:4px!important}
  .fhh-dash .fhf-home-prayer-clock{min-height:0!important;padding-block:5px!important;font-size:14px!important}
  .fhh-dash .fhf-home-prayer-clock dt,.fhh-dash .fhf-home-prayer-clock dd{font-size:14px!important}
  .fhh-dash .fhf-home-prayer-clock .fhf-icon,.fhh-dash .fhf-home-prayer-clock svg{width:18px!important;height:18px!important}
  .fhh-dash .fhf-home-prayer-clock.is-jumuah{display:none!important}
  .fhh-dash .fhf-hd-jumuah h3{font-size:15px!important}
  .fhh-dash .fhf-hd-jumuah-card{padding:8px 10px!important;border-radius:8px!important;box-shadow:none!important}
  .fhh-dash .fhf-hd-jumuah-card strong{font-size:13.5px!important}
  .fhh-dash .fhf-hd-jumuah-card span{font-size:12px!important}
  .fhh-dash .fhf-hd-outline{min-height:34px!important;font-size:13px!important;border-radius:8px!important}
  .fhh-dash .fhf-iqamah-help{font-size:11.5px!important}
  .fhf-home>.fhf-home-quick-links{margin-top:14px!important;padding:12px 14px!important;border:1px solid #e3e8e5!important;border-radius:10px!important;box-shadow:none!important}
  .fhf-home>.fhf-home-quick-links .fhf-h2{font-size:17px!important}
  .fhf-home>.fhf-home-quick-links .fhf-h2 svg{width:20px!important;height:20px!important}
  .fhf-home>.fhf-home-quick-links li a{min-height:40px!important;font-size:13px!important;border-radius:8px!important;box-shadow:none!important}
  .fhh-dash .fhf-monthly-cta{min-height:36px!important;font-size:13px!important;border-radius:8px!important;box-shadow:none!important}
}
/* Small laptops: the prayer card takes the full row; events and quick actions sit side by side under it. */
@media (min-width:1024px) and (max-width:1279px){
  .fhf-home-dashboard.fhh-dash{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fhh-dash>.fhf-home-prayer-pair{grid-column:1/-1!important}
}

/* Top row (Nov 17): wider page on large screens, more room between the three cards, equal-height cards,
   and gentle hover motion. Desktop only; phones and tablets are unchanged. */
@media (min-width:1024px){
  .fhf-shell.fhf-home.fhf-hd-page{width:min(1600px,100%)!important;max-width:none!important}
  .fhh-hero-copy{max-width:1600px}
  .fhf-home-dashboard.fhh-dash{gap:24px!important;align-items:stretch!important}
  .fhh-middle,.fhh-stack{gap:24px}
  .fhh-middle{margin-top:24px}
  .fhh-stack{margin-top:24px}
  .fhh-dash>.fhh-col,.fhh-dash>.fhf-home-prayer-pair{display:flex;flex-direction:column}
  .fhh-dash>.fhh-col>.fhh-card,.fhh-dash>.fhf-home-prayer-pair>.fhf-home-calendar{flex:1 1 auto}
  .fhh-dash .fhh-card{display:flex;flex-direction:column;height:100%;transition:box-shadow .25s ease,border-color .25s ease}
  .fhh-dash .fhh-card:hover{border-color:#cfdcd5;box-shadow:0 10px 28px -18px rgba(1,59,46,.45)}

  /* Events fill the card; a footer link sits at the bottom whatever the number of events. */
  .fhh-events .fhh-event-list{flex:1 1 auto}
  .fhh-events .fhh-empty{flex:1 1 auto;display:grid;place-content:center;gap:10px;text-align:center;padding:24px 18px}
  .fhh-events .fhh-empty svg{margin:0 auto;color:#9db7aa}
  .fhh-card-foot{margin-top:auto;padding:10px 14px 14px;border-top:1px solid var(--line)}
  .fhh .fhh-card-foot a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:8px;border:1px solid #cfe0d6;background:var(--g0);color:var(--g8);font-weight:600;font-size:13.5px;text-decoration:none;transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease}
  .fhh .fhh-card-foot a:hover{background:var(--g7);border-color:var(--g7);color:#fff;transform:translateY(-1px)}
  .fhh .fhh-card-foot a span{transition:transform .2s ease}
  .fhh .fhh-card-foot a:hover span{transform:translateX(4px)}

  .fhh-event-list a{position:relative;margin:0 -8px;padding:10px 8px;border-radius:8px;transition:background .2s ease}
  .fhh-event-list a:hover{background:var(--g0)}
  .fhh-date-block{transition:background .2s ease,color .2s ease,transform .2s ease}
  .fhh-date-block small,.fhh-date-block svg{transition:color .2s ease}
  .fhh-event-list a:hover .fhh-date-block{background:var(--g7);color:#fff;transform:scale(1.05)}
  .fhh-event-list a:hover .fhh-date-block small,.fhh-event-list a:hover .fhh-date-block svg{color:#d9efe3}

  /* Quick actions keep their normal size at the top; any extra height stays blank below them. */
  .fhh .fhh-actions ul{align-content:start;gap:10px}
  .fhh-action{position:relative;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease}
  .fhh-action::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--g7);transform:scaleY(0);transform-origin:bottom;transition:transform .25s ease}
  .fhh-action:hover{transform:translateY(-2px);border-color:#b9cfc3;background:#fff;box-shadow:0 10px 22px -14px rgba(1,59,46,.5)}
  .fhh-action:hover::before{transform:scaleY(1)}
  .fhh-action-icon{transition:background .22s ease,color .22s ease,transform .22s ease}
  .fhh-action:hover .fhh-action-icon{background:var(--g7);color:#fff;transform:rotate(-6deg) scale(1.06)}
  .fhh-action-go{transition:transform .22s ease,color .22s ease}
  .fhh-action:hover .fhh-action-go{transform:translateX(4px);color:var(--g7)}
  .fhh-action.is-gold::before{background:#c99a2e}
  .fhh-action.is-gold:hover{background:#fff9ea;border-color:#e7c977;box-shadow:0 10px 22px -14px rgba(138,93,12,.55)}
  .fhh-action.is-gold:hover .fhh-action-icon{background:#c99a2e;color:#fff}
  .fhh-action.is-gold:hover .fhh-action-go{color:#8a5d0c}
  .fhh-action:focus-visible,.fhh-event-list a:focus-visible,.fhh .fhh-card-foot a:focus-visible{outline:2px solid var(--g7);outline-offset:2px}

  /* Hero buttons lift a little. */
  .fhh-btn{transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
  .fhh-btn:hover{transform:translateY(-2px);box-shadow:0 10px 20px -12px rgba(0,0,0,.55)}
}
@media (min-width:1024px) and (prefers-reduced-motion:reduce){
  .fhh-dash .fhh-card,.fhh-action,.fhh-action *,.fhh-action::before,.fhh-event-list a,.fhh-date-block,.fhh-btn,.fhh .fhh-card-foot a,.fhh .fhh-card-foot a span{transition:none!important}
  .fhh-action:hover,.fhh-btn:hover,.fhh .fhh-card-foot a:hover,.fhh-event-list a:hover .fhh-date-block,.fhh-action:hover .fhh-action-icon,.fhh-action:hover .fhh-action-go,.fhh .fhh-card-foot a:hover span{transform:none!important}
}

/* Wide screens (three cards in one row): the prayer card sets the row height. Events and Quick Actions
   take exactly that height (height:0 + min-height:100% keeps them from stretching the row); events
   that do not fit are hidden by home-events-fit.js and reached through "See all". */
@media (min-width:1280px){
  .fhf-home-dashboard.fhh-dash>.fhh-col{height:0;min-height:100%}
  .fhh-dash>.fhh-col>.fhh-card{height:100%;min-height:0}
  .fhh-events .fhh-event-list{min-height:0;overflow:hidden}
  .fhh-events .fhh-event-list li[hidden]{display:none}
}
@media (min-width:1024px){
  .fhh-more{display:block;margin:0 0 6px;text-align:center;color:var(--muted);font-size:12px}
  .fhh-more[hidden]{display:none}
}
