/* White + Super Neat design candidate
   Baseline: v0.11.7. This file is intentionally isolated so the candidate can
   be accepted as v0.11.9 or discarded without touching the stable baseline. */

:root {
  --green: #678b24;
  --green-dark: #3f5c16;
  --green-soft: #f2f6ea;
  --charcoal: #263039;
  --ink: #24303a;
  --muted: #69747d;
  --cream: #ffffff;
  --white: #ffffff;
  --line: #e7ebe7;
  --shadow: none;
  --radius: 12px;
}

html, body { background: #fff; }
body { color: #24303a; }
.container { width: min(1160px, calc(100% - 36px)); }

/* Header */
.header-strip { height: 2px; background: #678b24; }
.site-header {
  background: rgba(255,255,255,.985);
  border-bottom: 1px solid #e8ece8;
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.nav-wrap,
.annur-nav-wrap { min-height: 72px !important; }
.brand img { width: 52px; height: 52px; }
.brand strong { color: #24303a; font-weight: 750; }
.brand small { color: #7c858b; }
.main-nav > a,
.annur-nav > a,
.annur-nav-toggle {
  border-radius: 8px !important;
  font-size: .84rem !important;
  font-weight: 650 !important;
}
.main-nav > a:hover,
.annur-nav > a:hover,
.annur-nav-toggle:hover { background: #f5f7f4 !important; color: #3f5c16 !important; }
.nav-login,
.annur-nav-login { border-color: #dfe5db !important; background: #fff !important; }
.lang-switch { background: #f5f6f4; border: 1px solid #ecefec; padding: 3px; }
.lang-switch button.active { box-shadow: none; border: 1px solid #e2e7df; }
.menu-button { border-radius: 9px; background: #f5f7f3; color: #3f5c16; }

/* Sahabat strip stays at the top but is flatter and calmer. */
.partner-strip,
.partner-strip-top,
.home-v2 .partner-strip,
.home-v2 .partner-strip-top {
  background: #fff !important;
  border-top: 0 !important;
  border-bottom: 1px solid #ecefec !important;
}
.partner-strip-live,
.partner-strip-top .partner-strip-live,
.home-v2 .partner-strip-top .partner-strip-live { min-height: 58px !important; }
.partner-strip-title,
.partner-strip-top .partner-strip-title,
.home-v2 .partner-strip-top .partner-strip-title { color: #68745e !important; }
.partner-mini-card { border-color: #e8ece6 !important; border-radius: 9px !important; box-shadow: none !important; }

/* Homepage */
.home-v2 { background: #fff; color: #24303a; }
.home-v2 .container { width: min(1120px, calc(100% - 36px)); }
.home-v2 .home-hero-v2 {
  padding: 44px 0 38px;
  background: #fff !important;
  border-bottom: 1px solid #f0f2ef;
}
.home-v2 .home-hero-grid { grid-template-columns: minmax(0,.88fr) minmax(390px,1.12fr); gap: 38px; }
.home-v2 .home-hero-copy { max-width: 570px; }
.home-v2 .home-hero-copy .eyebrow,
.home-kicker,
.home-card-label { color: #678b24 !important; }
.home-v2 .home-hero-copy h1 {
  margin: 9px 0 13px;
  color: #24303a;
  font-size: clamp(2.25rem,4.25vw,3.55rem);
  line-height: 1.04;
  letter-spacing: -.042em;
}
.home-v2 .home-hero-copy p { color: #69747d; line-height: 1.6; }
.home-v2 .home-hero-actions { margin-top: 21px; gap: 14px; }
.home-v2 .home-hero-photo {
  aspect-ratio: 16 / 10.2;
  border: 1px solid #e5eae5;
  border-radius: 12px;
  background: #f8f9f8;
}
.home-v2 .home-hero-photo::after { display: none; }

.home-v2 .button,
.button,
.admin-button,
.primary-admin,
.google-button {
  border-radius: 8px !important;
  box-shadow: none !important;
}
.home-v2 .button.primary,
.button.primary,
.primary-admin { background: #678b24; border-color: #678b24; }
.home-v2 .button.primary:hover,
.button.primary:hover,
.primary-admin:hover { background: #4e6e19; border-color: #4e6e19; }

.home-quick-access { background: #fff; border-color: #e9ede9; }
.home-quick-link { padding: 15px 17px; border-color: #e9ede9; }
.home-quick-link:hover { background: #fafbfa; }
.home-quick-dot { width: 6px; height: 6px; flex-basis: 6px; background: #678b24; }
.home-quick-link strong { color: #2e3a42; }
.home-quick-link small { color: #858e93; }

.home-v2 .home-section { padding: 40px 0; }
.home-v2 .home-soft { background: #fbfcfb !important; }
.home-core-section { padding-top: 38px !important; }
.home-service-section { padding-top: 4px !important; }
.home-core-grid,
.home-service-grid { gap: 14px; }

.home-membership-main,
.home-member-stat,
.home-prayer-card,
.home-feature-band,
.home-feature-card,
.home-construction-card,
.home-program-card,
.home-article-card,
.home-announcement-list,
.home-infaq-band,
.programme-card,
.panel,
.admin-card,
.auth-card {
  border: 1px solid #e6ebe6 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

.home-core-grid .home-membership-main,
.home-prayer-card-core { padding: 24px 25px 18px; background: #fff !important; }
.home-core-grid .home-membership-main h2,
.home-prayer-heading h2,
.home-feature-card h2,
.home-v2 .home-section-head h2 {
  color: #24303a;
  letter-spacing: -.025em;
}
.home-core-grid .home-membership-main h2,
.home-prayer-heading h2 { font-size: clamp(1.42rem,2.5vw,1.82rem); }
.home-member-stat-inline { border-top-color: #ebeeeb; padding-top: 17px; }
.home-member-stat-inline strong { color: #3f5c16; font-size: 2.15rem; }
.home-prayer-heading { border-bottom-color: #ecefec; }
.home-prayer-time { border-color: #ecefec !important; }
.home-prayer-time.is-next { background: #f4f7ef; border-radius: 8px; }
.home-next-prayer strong,
.home-prayer-time.is-next strong { color: #3f5c16; }

.home-feature-card { min-height: 172px; padding: 24px 25px; background: #fff !important; }
.home-feature-card-tahlil { border-left: 3px solid #678b24 !important; }
.home-feature-card-infaq { border-left: 3px solid #c5a956 !important; }
.home-feature-card p { color: #707b82; }
.home-feature-card .home-inline-link,
.home-inline-link,
.home-card-link,
.home-text-action { color: #496817; }

.home-v2 .home-section-head { margin-bottom: 16px; }
.home-v2 .home-section-head h2 { font-size: clamp(1.45rem,2.6vw,1.85rem); }
.home-construction-card { background: #fff; }
.home-v2 .home-construction-copy { padding: 24px 26px; }
.home-v2 .home-construction-image { min-height: 230px; }
.home-program-grid,
.home-article-grid { gap: 14px !important; }
.home-program-card,
.home-article-card { background: #fff; overflow: hidden; }
.home-program-image,
.home-article-thumb { background: #f4f6f4; }
.home-program-body { padding: 17px 18px; }
.home-program-body h3,
.home-article-card h3,
.home-announcement-item h3 { color: #2c373f; }
.home-program-body p,
.home-article-card p,
.home-announcement-item p { color: #737d83; }
.home-article-card { padding: 12px; gap: 13px; }
.home-announcement-list { background: #fff; }
.home-announcement-item { padding: 16px 19px !important; border-bottom-color: #ecefec; }
.home-notice-dot { background: #678b24; }
.home-empty { border-color: #e0e5e0; border-radius: 9px; background: #fff; }

/* Generic public pages */
.portal-page,
.auth-page,
.admin-page { background: #fff !important; }
.page-hero { background: #fff !important; border-bottom: 1px solid #edf0ed; padding-top: 48px !important; padding-bottom: 32px !important; }
.page-hero h1 { color: #24303a; }
.section,
.portal-section { background: #fff; }
.soft-section { background: #fbfcfb !important; }
.programme-card { padding: 18px; }
.panel { background: #fff; }
.tahlil-panel { background: #fff !important; color: #24303a !important; border-left: 3px solid #678b24 !important; }
.tahlil-panel h2 { color: #24303a !important; }
.tahlil-panel p { color: #6f7a81 !important; }
.tahlil-panel .eyebrow,
.tahlil-panel .text-link { color: #496817 !important; }
.announcement-panel { background: #fff !important; border-left: 3px solid #c5a956 !important; }
.infaq-section { background: #fff !important; }
.wakaf-poster { border: 1px solid #e6ebe6; border-radius: 10px; box-shadow: none; }

/* Footer: white rather than dark. */
.site-footer,
.home-v2 .site-footer {
  background: #fff !important;
  color: #6d777e !important;
  border-top: 1px solid #e7ebe7;
  padding-top: 30px;
}
.site-footer strong,
.footer-brand strong { color: #26323a !important; }
.footer-links a { color: #536067; }
.footer-bottom { border-top-color: #ecefec !important; }

/* Dialogs */
.dialog-card {
  border: 1px solid #e4e9e4;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(31,40,35,.12);
}
.dialog-image-wrap { border-radius: 12px 12px 0 0; }
.dialog-close { background: #2b353c; }

/* Login / member */
.auth-shell { background: #fff; }
.auth-card { padding: 30px; }
.google-button { border-color: #e0e5e0; background: #fff; }

/* Admin: white, flat, compact. */
.admin-shell { width: min(1320px, calc(100% - 28px)); padding-top: 18px; }
.admin-topbar { margin-bottom: 17px; padding-bottom: 14px; border-bottom: 1px solid #ecefec; }
.admin-brand img { width: 52px; }
.admin-button { background: #fff; border-color: #dfe5df; }
.admin-layout { grid-template-columns: 218px minmax(0,1fr); gap: 16px; }
.admin-nav {
  background: #fff;
  color: #27333a;
  border: 1px solid #e5eae5;
  border-radius: 11px;
  padding: 8px;
  box-shadow: none;
}
.admin-nav button {
  color: #5f6a71;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: .88rem;
}
.admin-nav button.active,
.admin-nav button:hover {
  background: #f2f6eb;
  color: #3f5c16;
}
.admin-card { padding: 18px; margin-bottom: 14px; }
.admin-card h2 { color: #26323a; font-size: 1.35rem; }
.admin-badge { background: #f2f6eb; color: #3f5c16; }
.form-grid { gap: 10px; }
label { color: #566168; }
input, select, textarea {
  border-color: #dfe5df;
  border-radius: 8px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(103,139,36,.16); border-color: #8aa559; }
.table-wrap { border-color: #e4e9e4; border-radius: 9px; }
table { background: #fff; }
th, td { border-bottom-color: #edf0ed; padding: 10px 11px; }
th { background: #f8faf8; color: #455149; }
.notice { background: #fffdf7; border-color: #ebe4cf; border-radius: 8px; }
.danger-admin { border-radius: 8px; }

/* Dense dashboard cards */
.admin-dashboard-grid,
.dashboard-grid,
.admin-stats { gap: 12px !important; }
.admin-stat,
.dashboard-stat,
.stat-card {
  border: 1px solid #e6ebe6 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid rgba(103,139,36,.24); outline-offset: 2px; }

@media (max-width: 980px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-nav button { width: auto; }
}

@media (max-width: 720px) {
  .container,
  .home-v2 .container { width: min(calc(100% - 24px), 1120px); }
  .nav-wrap,
  .annur-nav-wrap { min-height: 68px !important; }
  .brand img { width: 46px; height: 46px; }
  .home-v2 .home-hero-v2 { padding: 28px 0 24px; }
  .home-v2 .home-hero-grid { grid-template-columns: minmax(0,1fr) !important; gap: 19px; }
  .home-v2 .home-hero-copy h1 { font-size: clamp(2rem, 10.2vw, 2.6rem); margin-bottom: 10px; }
  .home-v2 .home-hero-copy p { font-size: .92rem; line-height: 1.56; }
  .home-v2 .home-hero-photo { border-radius: 10px; }
  .home-v2 .home-section { padding: 29px 0; }
  .home-quick-link { padding: 12px 10px; }
  .home-core-grid,
  .home-service-grid,
  .home-v2 .home-program-grid,
  .home-v2 .home-article-grid { gap: 11px; }
  .home-core-grid .home-membership-main,
  .home-prayer-card-core,
  .home-feature-card { padding: 18px 17px; }
  .home-feature-card { min-height: 0; }
  .home-v2 .home-section-head { margin-bottom: 13px; }
  .partner-strip-live,
  .partner-strip-top .partner-strip-live { min-height: 0 !important; }
  .admin-shell { width: min(100% - 20px, 1320px); }
  .admin-topbar { align-items: flex-start; }
  .admin-card { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
