*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f3f6fb;color:#203651;font-family:Tahoma,Arial,sans-serif;font-size:18px;line-height:1.8}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:12px;padding:12px 23px;font-weight:bold;background:#285a91;color:white;transition:background .15s}button:hover{background:#1d416b}button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid #c6a25b;outline-offset:4px}a{color:inherit;text-decoration:none}header{display:flex;justify-content:space-between;align-items:center;padding:18px 4%;background:white;border-bottom:1px solid #e0e6ef;gap:15px}.brand{display:flex;gap:14px;align-items:center;font-size:32px;font-weight:bold;line-height:1.1}.brand small{font-size:13px;font-weight:normal;display:block;margin-top:9px}.brandmark{display:grid;place-items:center;background:#285a91;color:#f1e8d3;width:54px;height:54px;border-radius:18px 18px 5px 18px;font-size:34px}.headtools{display:flex;gap:12px;align-items:center}.quiet{background:transparent;color:#245547;padding:8px 12px}.quiet:hover{background:#e8f2ec}.demo-label{border:1px solid #d5dfd8;border-radius:20px;padding:3px 13px;font-size:13px;color:#526b5f}.app{display:grid;grid-template-columns:260px minmax(0,1fr);max-width:1800px;margin:auto}aside{padding:28px 20px;min-height:calc(100vh - 90px);border-left:1px solid #e0e6ef;background:#fff}nav{display:flex;flex-direction:column;gap:7px;position:sticky;top:20px}nav button{background:transparent;color:#66748a;text-align:right;padding:13px 17px;font-size:17px;display:flex;align-items:center;gap:13px}nav button span{width:22px;font-size:24px}nav button.active{background:#e8effa;color:#285a91}nav button:hover{background:#edf2fa}.owner{margin-top:40px;padding:20px 15px;border-top:1px solid #e6ece7;font-size:14px}.owner strong{display:block;margin:5px 0}.owner p{color:#657c6e}main{padding:25px 36px;min-width:0}.notice{border:1px solid #e5ddc7;border-radius:10px;background:#fffaf0;color:#726344;padding:10px 17px;font-size:13px;margin-bottom:25px}.notice span{font-weight:bold;margin-left:8px}.hero{display:grid;grid-template-columns:1.2fr 1fr;background:#e8f0fb;border:1px solid #d3e1f4;border-radius:24px;min-height:425px;overflow:hidden;padding:42px;gap:25px}.eyebrow{color:#647b9b;font-size:14px;font-weight:bold;letter-spacing:.2px}.hero h1{font-size:clamp(32px,3.5vw,53px);line-height:1.45;margin:15px 0}.hero em{color:#285a91;font-style:normal}.hero p{max-width:560px;color:#536782;font-size:17px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.outline{background:transparent;color:#285a91;border:1px solid #91a9c8}.outline:hover{background:#dce7f8}.hero-art{position:relative;min-height:330px;display:grid;place-items:center}.halo{position:absolute;width:300px;height:300px;border:1px solid #b6cdb8;border-radius:50%;background:#dde9dc;box-shadow:0 0 0 35px #ffffff30}.art-word{font-size:88px;color:#bbccba;font-weight:bold;transform:rotate(-8deg);position:absolute;bottom:35px;left:25px}.art-card{position:absolute;z-index:1;border-radius:16px;background:#fffdf7;padding:18px 20px;box-shadow:0 12px 26px #16442a0c;width:240px;line-height:1.5;border:1px solid #e1e8df}.art-card b{display:block;font-size:17px}.art-card small{display:block;color:#6f7c6a;font-size:12px;margin-top:6px}.art-icon{float:left;font-size:27px;color:#285a91}.first{top:30px;right:0;transform:rotate(3deg)}.second{top:145px;left:0;transform:rotate(-5deg);background:#f6eacb}.third{bottom:0;right:30px;transform:rotate(2deg)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:24px 0 18px}.section-head h1,.section-head h2{margin:0}.section-head>span{font-size:13px;color:#637a6c}h1{font-size:34px;line-height:1.5}h2{font-size:23px;margin:0 0 15px}h3{font-size:20px;margin:10px 0}p{margin:9px 0 18px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.service{text-align:right;background:white;color:#203651;padding:23px;border:1px solid #dee5ef;box-shadow:0 3px 7px #1b432703}.service:hover{background:#f1f6f0;border-color:#acc9b6}.service .icon{display:grid;place-items:center;width:44px;height:44px;background:#e9f0fb;border-radius:12px;font-size:27px;color:#5477a5}.service p{font-size:15px;font-weight:normal;color:#63796d}.service b{font-size:14px;color:#285a91}.journey{padding:26px 30px;margin:23px 0;background:#fff;border:1px solid #e3eae2;border-radius:18px;display:flex;justify-content:space-between;gap:20px}.journey small{color:#6e8073;font-size:13px}.journey ol{display:flex;gap:32px;padding:0;margin:0;list-style:none}.journey li span{float:right;margin-left:12px;background:#e9effa;border-radius:50%;padding:4px 13px}.journey li b{display:block;font-size:16px}.journey li small{display:block}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.join{padding:28px;background:#e9f0fb;border-radius:18px}.join.beige{background:#fbf0e1}.join p{font-size:16px;color:#5f7769}.box{background:white;border:1px solid #dce4f0;border-radius:18px;padding:28px;margin-bottom:20px}.box form{max-width:900px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-weight:bold;margin:10px 0;color:#29496e}input,select,textarea{display:block;width:100%;padding:12px 14px;border:1px solid #b8c8dd;border-radius:10px;background:#fff;font-weight:normal;color:#203c60;margin-top:8px}textarea{min-height:95px;resize:vertical}input[type=checkbox]{display:inline;width:23px;height:23px;vertical-align:middle;margin:0 0 0 10px}.hidden{display:none!important}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:25px}.metric{padding:20px;background:white;border:1px solid #dee7df;border-radius:15px}.metric b{display:block;font-size:36px;color:#285a91}.metric span{font-size:14px;color:#677a98}.record{border:1px solid #dae5dc;background:#fff;border-radius:14px;padding:18px 22px;margin:12px 0;display:flex;justify-content:space-between;align-items:center;gap:18px}.record h3{margin:0;font-size:18px}.record small{display:block;color:#61776a;font-size:14px}.record .controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.record button{font-size:14px;padding:8px 15px}.badge{display:inline-block;background:#edf1f8;color:#486080;border-radius:20px;padding:3px 13px;font-size:13px;margin:7px 0}.badge.ok{background:#e3eefc;color:#285a91}.empty{padding:30px;border:1px dashed #bbcec0;border-radius:15px;text-align:center;color:#6e8275}dialog{border:1px solid #d3e0f2;border-radius:22px;max-width:750px;width:94%;padding:30px;color:#29496e;max-height:90vh;overflow:auto;font-size:18px;background:#fdfefd}dialog::backdrop{background:#233c5c5f;backdrop-filter:blur(3px)}#close{float:left}.timeline{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.timeline span{border-radius:9px;padding:6px 12px;background:#edf1ec;font-size:13px}.timeline span.done{background:#dce9fb;color:#285a91}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.summary-grid div{background:#eef3fb;padding:12px;border-radius:10px}.summary-grid small{display:block;color:#6a7c6b}.detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.signature{font-size:24px;color:#285a91}footer{display:flex;justify-content:space-between;font-size:13px;color:#70816f;padding:28px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#244b78;color:white;border-radius:14px;max-width:90%;padding:12px 24px;z-index:9;box-shadow:0 6px 20px #233c5c33;display:none}.skip{position:fixed;top:-100px;background:#fff;padding:12px;z-index:10}.skip:focus{top:10px}body.large{font-size:21px}body.large .hero p,body.large nav button,body.large small,body.large .notice{font-size:18px}body.high{color:#07190f;background:#fff}body.high .notice,body.high p,body.high small,body.high .eyebrow{color:#111}body.high button{border:2px solid #164a36}body.high .hero,body.high .join{background:#fff;border:2px solid #264e37}@media(max-width:1100px){.app{grid-template-columns:210px 1fr}main{padding:22px}aside{padding:22px 10px}.hero{padding:28px;grid-template-columns:1.2fr .8fr}.hero-art{min-height:350px}.art-card{width:190px;padding:14px}.halo{width:230px;height:230px}.journey{display:block}.journey ol{margin-top:20px}.service-grid{gap:10px}.service{padding:18px}}@media(max-width:800px){.app{display:block}aside{min-height:0;border:0;padding:8px 12px;background:#fff}nav{flex-direction:row;overflow:auto;position:static;padding-bottom:5px;gap:5px}nav button{white-space:nowrap;font-size:14px;padding:9px 13px}nav button span{display:none}.owner{display:none}main{padding:15px}.hero{grid-template-columns:1fr;padding:28px}.hero-art{display:none}.hero h1{font-size:38px}.service-grid{grid-template-columns:1fr}.service{display:block}.service .icon{float:left}.bottom-grid,.grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.headtools{gap:2px}.headtools button{font-size:12px;padding:7px}.brand{font-size:26px}.brandmark{width:42px;height:42px;font-size:27px}.brand small{font-size:10px}.demo-label{font-size:10px;padding:3px 8px}.record{align-items:flex-start;flex-direction:column}.journey ol{flex-direction:column;gap:15px}.section-head{align-items:flex-start;flex-wrap:wrap}.section-head>span{display:none}footer{display:block}.summary-grid{grid-template-columns:1fr}dialog{padding:20px}h1{font-size:29px}footer span{display:block}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.rating-panel{margin-top:26px;border-top:1px solid #dce4f0;padding-top:24px}.rating-number{display:block;font-size:24px;font-weight:bold;color:#85681c}button:disabled{opacity:.5;cursor:not-allowed}

.hadith{margin:24px 0;border-right:4px solid #bb995b;background:#fffaf0;padding:22px 26px;border-radius:14px;color:#29496e}.hadith small{font-size:14px}.hadith p{font-size:25px;font-weight:bold;margin:8px 0}.hadith cite{font-size:13px;font-style:normal;color:#68758a}.call-log{padding:13px;border-radius:10px;background:#edf3fb;margin:10px 0}.call-log small{display:block;color:#61758e}

.account-link{display:block;background:#e8effa;border-radius:10px;padding:12px;text-align:center}#sync-status{cursor:pointer}@media(max-width:800px){header{flex-wrap:wrap}.headtools{flex-wrap:wrap;width:100%;justify-content:space-between}}

@font-face{font-family:"Noto Sans Arabic";src:url("/noto-arabic-regular.ttf") format("truetype");font-weight:400 600;font-display:swap}@font-face{font-family:"Noto Sans Arabic";src:url("/noto-arabic-bold.ttf") format("truetype");font-weight:700 900;font-display:swap}body,button,input,select,textarea{font-family:"Noto Sans Arabic",sans-serif}body{line-height:1.95;font-weight:500}p{margin-bottom:1.15em}.brand small{margin-top:9px}.brand-group{gap:24px}

/* Main navigation and the three entry points */
body { background: #f4f7f6; color: #233b39; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px max(24px, calc((100% - 1220px) / 2));
  min-height: 0;
  background: #fff;
}
.brand-group { display: flex; align-items: center; gap: 24px; }
.brand-name { display: block; color: #1f6b59; font-size: 34px; line-height: 1.35; }
.brand small { margin: 2px 0 0; font-size: 14px; }
.brand-hadith { margin: 0; color: #4b625e; font-size: 13px; }
.brand-hadith p { margin: 0; }
.brand-hadith small, .brand-hadith cite { font-size: 12px; }
.headtools { flex-wrap: wrap; justify-content: flex-start; }
.headtools button { min-height: 42px; }
#sync-status[hidden] { display: none; }
.app { display: block; max-width: 1268px; margin: auto; }
aside { min-height: 0; padding: 12px 24px 0; border: 0; background: transparent; }
nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
nav button { min-height: 44px; white-space: normal; padding: 8px 14px; }
nav button.active { background: #dcece7; color: #174c42; }
main { padding: 16px 24px 30px; }
#demo-notice { margin-bottom: 18px; }
#demo-notice strong { color: #205c4d; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 0;
  padding: clamp(20px, 3vw, 42px);
  background: #e6f0ec;
}
.hero h1 { white-space: normal; line-height: 1.45; font-size: clamp(28px, 4vw, 49px); }
.hero p { max-width: 45ch; }
.hero-art { min-height: 0; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: 16px; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { min-height: 138px; }
.service h3 { margin-top: 0; }
.service p { margin-bottom: 10px; }
.demo-options summary { cursor: pointer; font-weight: 700; }
.demo-options .actions { margin-top: 15px; }
[data-example] { margin-bottom: 12px; }
.submissions-heading { margin-top: 26px; }
:focus-visible { outline: 3px solid #246d9d; outline-offset: 3px; }
@media (max-width: 800px) {
  header { padding: 14px 16px; }
  .brand-group { flex-wrap: wrap; gap: 12px; }
  .headtools { width: auto; gap: 6px; }
  .headtools button { font-size: 14px; }
  aside { padding-inline: 14px; }
  main { padding-inline: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .hero-art { max-height: none; }
  .hero-art img { max-height: 260px; object-fit: contain; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; }
}

/* Saudi green palette and compact mobile navigation. */
:root {
  --brand-green: #006c35;
  --dark-green: #174331;
  --soft-green: #eaf4ed;
  --edge-green: #c9dfd0;
  --muted-gold: #96743b;
}
body { background: #f5f8f4; color: #233a2e; }
header { border-bottom: 1px solid var(--edge-green); }
.brand-name { color: var(--brand-green); }
button { background-color: var(--brand-green); }
button:hover { background-color: #00552a; }
button.outline, button.quiet { color: var(--dark-green); }
nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, 12px);
  overflow: visible;
}
nav button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 75px;
  padding: 6px 2px;
  text-align: center;
  color: var(--dark-green);
  background: #fff;
  border: 1px solid var(--edge-green);
  border-radius: 12px;
}
nav button:hover { background: var(--soft-green); }
nav button.active { background: var(--soft-green); border-color: var(--brand-green); color: var(--dark-green); }
nav button .nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--brand-green);
  font-size: 22px;
  line-height: 1;
}
nav button.active .nav-icon { background: var(--brand-green); color: #fff; }
nav button .nav-label { display: block; font-size: 14px; line-height: 1.3; }
.nav-break { display: none; }
.nav-break::after { content: " "; }
.hero { display: block; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--edge-green); }
.hero-art { display: block; max-height: none; min-height: 0; background: var(--soft-green); }
.hero-art img { display: block; max-height: min(52vw, 400px); width: 100%; height: auto; object-fit: contain; border-radius: 0; }
.hero-copy { padding: 18px 22px; }
.hero h1 { color: var(--dark-green); font-size: clamp(23px, 3.2vw, 38px); margin: 0; }
.hero p { color: #365746; max-width: none; margin: 4px 0 0; }
.journey { display: block; border-color: var(--edge-green); padding: 18px; }
.journey h2 { margin-bottom: 8px; color: var(--dark-green); }
.journey table { width: 100%; border-spacing: 0 4px; text-align: right; }
.journey :is(th, td) { padding: 7px 9px; background: var(--soft-green); }
.journey th { width: 5.8em; color: var(--dark-green); border-radius: 0 8px 8px 0; }
.journey td { border-radius: 8px 0 0 8px; }
#demo-notice { border-color: #ddd0af; border-inline-start: 3px solid var(--muted-gold); }
body[data-view="home"] #demo-notice { margin: 0 0 10px; padding: 5px 9px; font-size: 13px; }
@media (max-width: 600px) {
  header { gap: 8px; }
  .brand-group { gap: 6px; }
  .brand-name { font-size: 27px; }
  .brand-hadith { display: none; }
  .headtools { width: 100%; gap: 2px; }
  .headtools button { padding-inline: 5px; font-size: 12px; }
  nav button .nav-label { font-size: clamp(11px, 3.2vw, 15px); }
  .nav-break { display: initial; }
  .hero-copy { padding: 13px 14px; }
  .journey { padding: 10px; }
  .journey table { font-size: 14px; }
}

/* A compact masthead and even, centered navigation labels. */
header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
  background: #e8f1e8;
}
.headtools { justify-content: flex-end; min-width: 0; }
.headtools button { font-weight: 500; }
.headtools #sync-status { background: #e1eee2; color: #245039; }
header .brand-hadith {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  padding: 5px 10px 7px;
  text-align: center;
  color: #294e3a;
  background: #f3f7f0;
  border-radius: 10px;
}
header .brand-hadith p {
  margin: 0;
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 500;
  line-height: 1.7;
}
header .brand-hadith small,
header .brand-hadith cite { font-size: 11px; font-style: normal; }
nav button .nav-icon { flex: 0 0 32px; margin-inline: auto; }
nav button .nav-label {
  width: 100%;
  min-width: 0;
  min-height: 2.8em;
  padding-inline: 1px;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}
nav button.active .nav-label { font-weight: 700; }
nav button .nav-label { display: block; align-content: center; }
nav button { min-height: 85px; }
@media (max-width: 600px) {
  header { grid-template-columns: 1fr; padding: 10px 14px; row-gap: 5px; }
  .brand-group { justify-content: center; text-align: center; }
  .headtools { justify-content: center; }
  .headtools button { min-height: 32px; }
  nav button .nav-label { font-size: clamp(10px, 2.9vw, 14px); }
}
body.high header, body.high header .brand-hadith { background: #fff; color: #111; }

.demo-options {
  padding: clamp(10px, 2vw, 18px);
  border-color: var(--edge-green);
}
.demo-options summary {
  color: var(--dark-green);
  font-size: 16px;
  font-weight: 600;
}
.demo-options .actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 10px);
  margin-top: 10px;
}
.demo-options .actions button {
  display: grid;
  grid-template-rows: 30px 1fr;
  align-items: center;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 80px;
  padding: 5px 2px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  font-size: clamp(11px, 3vw, 15px);
  font-weight: 500;
  color: var(--dark-green);
  background: #fff;
  border: 1px solid var(--edge-green);
  border-radius: 12px;
}
.demo-options .actions button:hover { background: var(--soft-green); }
.demo-options .nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--brand-green);
  line-height: 1;
  font-size: 20px;
}
body.high .demo-options .actions button { border-color: #164a36; color: #111; }

.journey .journey-links {
  display: grid;
  gap: 6px;
  margin: 0;
}
.journey-links a {
  display: grid;
  grid-template-columns: 5.3em 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--edge-green);
  border-radius: 10px;
  color: var(--dark-green);
  background: var(--soft-green);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}
.journey-links a:hover { background: #dcece1; border-color: var(--brand-green); }
.journey .journey-links span { float: none; margin: 0; padding: 0; background: none; }
.journey-links .journey-arrow { font-size: 23px; line-height: 1; }
@media (max-width: 600px) {
  header {
    grid-template-columns: auto minmax(0, 1fr);
    padding-block: 7px;
    column-gap: 6px;
  }
  .brand-group { text-align: start; }
  .brand-name { font-size: 23px; }
  .brand small { font-size: 11px; }
  .headtools { justify-content: flex-end; width: auto; }
  .headtools button { min-height: 36px; }
  header .brand-hadith { padding-block: 2px 4px; line-height: 1.4; }
}

/* Match the simulation cards while keeping the form controls native. */
:is(#request, #volunteer) {
  padding: clamp(13px, 2.4vw, 25px);
  border-color: var(--edge-green);
}
:is(#request, #volunteer) :is(h1, h2) {
  color: var(--dark-green);
  font-size: clamp(21px, 4.8vw, 28px);
  line-height: 1.45;
  margin: 0 0 6px;
}
:is(#request, #volunteer) > p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
}
:is(#request, #volunteer) .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, 1.4vw, 14px);
}
:is(#request, #volunteer) label {
  min-width: 0;
  margin: 0;
  color: var(--dark-green);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}
:is(#request, #volunteer) .grid > label {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(6px, 1.4vw, 12px);
  background: var(--soft-green);
  border: 1px solid var(--edge-green);
  border-radius: 11px;
}
:is(#request, #volunteer) form > label { margin-top: 12px; }
:is(#request, #volunteer) :is(select, textarea, input:not([type="checkbox"])) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 4px;
  padding: 6px 8px;
  color: var(--dark-green);
  border-color: var(--edge-green);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
}
:is(#request, #volunteer) textarea { min-height: 70px; }
:is(#request, #volunteer) input[type="checkbox"] { accent-color: var(--brand-green); }
:is(#request, #volunteer) button { min-height: 44px; font-size: 14px; }
:is(#request, #volunteer) [data-example] {
  background: var(--soft-green);
  border-color: var(--edge-green);
  color: var(--dark-green);
}
:is(#request, #volunteer) form > button { margin-top: 12px; }
#volunteer .submissions-heading { margin-top: 20px; }

/* Coordination uses the same compact green cards as the other demo screens. */
#manage > .section-head { gap: 8px; align-items: center; margin-bottom: 6px; }
#manage h1 { font-size: clamp(22px, 4.8vw, 30px); line-height: 1.45; margin: 0; }
#manage > p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
#manage .metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
#manage .metric,
#manage .record {
  padding: 9px 11px;
  background: var(--soft-green);
  border: 1px solid var(--edge-green);
  border-radius: 11px;
}
#manage .metric { min-width: 0; text-align: center; line-height: 1.5; }
#manage .metric b { color: var(--brand-green); font-size: 23px; }
#manage .metric span { color: var(--dark-green); font-size: 13px; }
#manage .box { border-color: var(--edge-green); padding: 12px; margin-bottom: 10px; }
#manage .box h2 { color: var(--dark-green); font-size: 17px; margin: 0 0 6px; }
#manage .bottom-grid { gap: 10px; }
#manage .record { gap: 7px; margin-block: 6px; }
#manage .record h3 { font-size: 15px; }
#manage .record small { font-size: 13px; }
#manage .record button, #manage #reset, #manage .section-head > button {
  min-height: 44px;
  padding: 5px 10px;
  border-color: var(--edge-green);
  font-size: 13px;
}
#manage .empty { padding: 10px; font-size: 14px; }
body[data-view="manage"] #detail {
  border-color: var(--edge-green);
  padding: clamp(14px, 3vw, 24px);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-green);
}
body[data-view="manage"] #detail h2 { font-size: 21px; }
body[data-view="manage"] #detail label { font-size: 14px; color: var(--dark-green); }
body[data-view="manage"] #detail :is(select, textarea, input:not([type="checkbox"])) {
  min-height: 44px;
  padding: 6px 8px;
  font-size: 16px;
  border-color: var(--edge-green);
  color: var(--dark-green);
}
@media (max-width: 600px) {
  #manage .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #manage .record { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* The separate masthead, hadith strip, and navigation cards. */
header.site-header {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  background: #e8f1e8;
  overflow: hidden;
}
.masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 70px;
  align-items: center;
  padding-block: 5px;
}
.masthead .brand-group { justify-content: flex-start; text-align: start; display: block; }
.masthead .brand-name { font-size: clamp(26px, 5.4vw, 42px); }
.masthead .brand small { font-size: clamp(12px, 3.2vw, 16px); }
header.site-header .brand-hadith {
  padding: 5px 8px;
  background: #f3f8f1;
  border: 1px solid var(--edge-green);
  border-radius: 9px;
  font-size: clamp(10px, 2.65vw, 16px);
  line-height: 1.6;
  white-space: nowrap;
}
.brand-hadith q { quotes: "«" "»"; }
header.site-header .brand-hadith cite { margin-inline-start: .6em; font-size: .88em; color: #46675a; }
header.site-header .headtools { justify-content: flex-end; }
@media (max-width: 600px) {
  header.site-header { padding-block: 7px; }
  .masthead { min-height: 55px; }
  header.site-header .headtools button { min-height: 34px; }
}
@media (max-width: 340px) {
  header.site-header .brand-hadith { white-space: normal; }
}

/* Keep the native iOS date and time controls within their grid cards. */
#request .grid > label {
  grid-template-columns: minmax(0, 1fr);
}
#request :is(input[type="date"], input[type="time"]) {
  -webkit-appearance: none;
  appearance: none;
  min-inline-size: 0;
  max-inline-size: 100%;
}
#request :is(input[type="date"], input[type="time"])::-webkit-date-and-time-value {
  min-width: 0;
  min-height: 1.4em;
  text-align: start;
}
.tip-optional {
  margin-inline-start: .3rem;
  color: #a92929;
  font-size: .75em;
}
#tip-form button {
  margin-top: .75rem;
}

/* Companion ratings and recognition */
#merit-panel{margin-block-start:1rem;border:1px solid #aeb9b1;border-radius:.85rem;background:#fff;color:#29332c}
#merit-title{padding:.55rem .75rem;margin:0;background:#dcecdf;color:#125629;border-radius:.85rem;font-size:1.2rem;font-weight:bold;cursor:pointer}
.companion-ratings[open]>summary{border-end-start-radius:0;border-end-end-radius:0}
.companion-rating,.companion-ratings-empty{padding:.65rem .75rem;margin:0}
.companion-rating+.companion-rating{border-top:1px solid #dce4de}
.companion-rating h3{margin:0;font-size:1rem;color:#125629}
.companion-stars{display:block;font-size:1.3rem;letter-spacing:.1em;color:#536b58;line-height:1.2}
.companion-rating p{margin:.18rem 0 .45rem;font-size:.9rem}
#merit-panel .companion-rating-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.35rem;max-width:24rem}
#merit-panel .companion-rating-actions button{width:100%;min-height:44px;min-width:0;margin:0;padding:.25rem .2rem;font-size:.875rem;line-height:1.25;white-space:normal;border:1px solid #236038;color:#125629;background:#fff}
.ideal-companion{padding:.5rem .75rem;margin:0;border-top:1px solid #dce4de;border-radius:0 0 .85rem .85rem;background:#faf8ed}
.ideal-companion summary{cursor:pointer;color:#125629;font-weight:bold;min-height:2rem;align-content:center}
.ideal-companion p,.ideal-companion ul{margin:.35rem 0;font-size:.9rem}

nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.request-help-link { display: inline-block; margin-block-start: .65rem; }
footer a, .request-help-link, #help .help-questions a {
  color: var(--dark-green);
  text-decoration: underline;
  text-underline-offset: .2em;
}
#help .help-intro label { margin-block: .9rem .25rem; }
#help-search { max-width: 36rem; }
.help-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(3px, 1vw, 8px);
  margin-top: .75rem;
  max-width: 36rem;
}
.help-filters button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .15rem;
  background: white;
  color: var(--dark-green);
  border: 1px solid var(--edge-green);
  border-radius: 9px;
  min-width: 0;
  min-height: 54px;
  padding: .3rem 0;
  font-size: clamp(.75rem, 3.3vw, .875rem);
  font-weight: 400;
  line-height: 1.35;
}
.help-filter-icon { font-size: 1.2rem; line-height: 1; }
.help-filters button[aria-pressed="true"], .help-filters button:hover { background: var(--soft-green); border-color: var(--brand-green); }
.help-questions { display: grid; gap: .55rem; margin-block: .85rem; }
.help-questions details { background: white; border: 1px solid var(--edge-green); border-radius: 12px; overflow: hidden; }
.help-questions summary {
  cursor: pointer;
  color: var(--dark-green);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.6;
  padding: .7rem .8rem;
}
.help-questions summary::marker { font-size: .7em; }
.help-questions details[open] summary { background: var(--soft-green); }
.help-questions details > :not(summary) { margin: .75rem 1rem; }
.help-questions details > a { display: inline-block; }
.help-questions ol { padding-inline-start: 1.5rem; }
.help-questions li + li { margin-block-start: .4rem; }
.help-contact summary {
  display: list-item;
  width: fit-content;
  cursor: pointer;
  border-radius: 10px;
  padding: .55rem .85rem;
  background: var(--soft-green);
  color: var(--dark-green);
  font-weight: bold;
}
.help-contact form { max-width: 36rem; }
.help-inquiries { padding-inline-start: 1.3rem; overflow-wrap: anywhere; }
.help-inquiries p { margin: .15rem 0 .65rem; white-space: pre-wrap; }
@media (max-width: 600px) {
  nav { gap: 3px; }
  nav button { min-height: 58px; gap: 2px; border-radius: 8px; padding: 3px 1px; }
  nav button .nav-label {
    font-size: clamp(.625rem, 2.95vw, .78rem);
    min-height: 2.6em;
    line-height: 1.28;
    padding: 0;
  }
  nav button.active .nav-label { font-weight: 500; }
}

nav button .nav-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 6px;
  font-size: 17px;
}
.help-filters button { min-height: 46px; }
.help-filter-icon { font-size: .95rem; }
#about { padding: clamp(14px, 3vw, 24px); }
#about h1 { color: #006c35; font-size: 1.25rem; margin-block: 0 .2rem; }
#about p { font-size: .875rem; line-height: 1.6; margin-block: .2rem; }
#about .about-credit { color: #805526; }
#about .about-credit span { color: #24568b; }
.about-topics { margin-top: .7rem; }
.about-topics details { border-top: 1px solid var(--edge-green); }
.about-topics summary {
  cursor: pointer;
  color: var(--dark-green);
  font-size: .9375rem;
  line-height: 1.55;
  padding-block: .55rem;
}
.about-topics summary::marker { font-size: .7em; }
.about-topics summary span { display: block; font-size: .875rem; margin-inline-start: .95rem; }
#about .about-topics details > p { margin: 0 .95rem .65rem; }

#home .hero-art { background: transparent; padding: 10px 10px 0; }
#home .hero-art img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 16px;
}
#home .hero-copy { padding-block: .6rem; }
#home .hero-copy h1, #about h1 {
  font-weight: 500;
  -webkit-text-stroke: .2px currentColor;
}
#home .hero-copy h1 {
  font-size: clamp(1.125rem, 4.6vw, 1.5rem);
  line-height: 1.4;
}
#home #journey-title { font-size: clamp(1.0625rem, 4.2vw, 1.375rem); font-weight: 400; line-height: 1.4; }
#home .hero-copy p { font-size: .875rem; line-height: 1.6; margin-top: .15rem; }
.about-topics summary { font-size: .875rem; padding-block: .4rem; }
.about-topics summary strong { font-weight: 500; -webkit-text-stroke: .28px currentColor; }
.about-topics summary span { font-size: .8125rem; }
