/* Bertumbuh v0.7 — Allah as a gentle bridge to recurring worship */

.allah-anchor-source[hidden] { display: none !important; }

.allah-routine-panel {
  margin-bottom: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(49,75,58,.08);
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 14px 44px rgba(38,51,42,.06);
}

.allah-routine-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}

.allah-routine-head span,
.allah-depth-kicker {
  display: block;
  margin-bottom: 7px;
  color: #728176;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.allah-routine-head h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 500;
  letter-spacing: -.025em;
}

.allah-routine-head p {
  max-width: 680px;
  margin: 0;
  color: #6d776f;
  font-size: 12px;
  line-height: 1.65;
}

.allah-routine-groups {
  border-top: 1px solid rgba(49,75,58,.09);
}

.allah-routine-group {
  border-bottom: 1px solid rgba(49,75,58,.09);
}

.allah-routine-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px;
  cursor: pointer;
  list-style: none;
}

.allah-routine-group summary::-webkit-details-marker { display: none; }
.allah-routine-group summary span { min-width: 0; }
.allah-routine-group summary strong {
  display: block;
  color: #2c3a31;
  font-size: 12px;
}
.allah-routine-group summary small {
  display: block;
  margin-top: 3px;
  color: #899189;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}
.allah-routine-group summary i {
  flex: 0 0 auto;
  color: #7b877f;
  font-size: 15px;
  font-style: normal;
  transition: transform .18s ease;
}
.allah-routine-group[open] summary i { transform: rotate(180deg); }

.allah-routine-body { padding: 0 0 16px; }
.allah-routine-items { display: grid; gap: 7px; }
.allah-routine-items.prayer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.allah-routine-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 0;
  border-radius: 13px;
  background: rgba(49,75,58,.035);
  color: #344239;
  text-align: left;
  cursor: pointer;
}

.allah-routine-item:hover { background: rgba(49,75,58,.065); }
.allah-routine-item.done { background: #e8efe9; }

.allah-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49,75,58,.18);
  border-radius: 50%;
  background: #fffefb;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.allah-routine-item.done .allah-check {
  border-color: #496651;
  background: #496651;
}

.allah-item-copy { min-width: 0; }
.allah-item-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}
.allah-item-copy small {
  display: block;
  margin-top: 2px;
  color: #899189;
  font-size: 9px;
  line-height: 1.35;
}

.allah-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(120,94,54,.05);
}
.allah-counter-row > div:first-child strong { display: block; font-size: 11px; }
.allah-counter-row > div:first-child small { display: block; margin-top: 2px; color: #8a8378; font-size: 9px; }
.allah-counter-controls { display: flex; align-items: center; gap: 8px; }
.allah-counter-controls button {
  width: 29px;
  height: 29px;
  border: 1px solid rgba(120,94,54,.15);
  border-radius: 50%;
  background: #fffdf8;
  color: #665d4f;
  cursor: pointer;
  font-size: 15px;
}
.allah-counter-controls span { min-width: 76px; text-align: center; color: #6f675a; font-size: 10px; }
.allah-counter-controls b { color: #3f493f; font-size: 13px; }

.allah-depth-challenge {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(49,75,58,.10);
}
.allah-depth-challenge h3 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.015em;
}
.allah-depth-steps { margin-top: 10px; }
.allah-depth-steps p {
  margin: 5px 0 0;
  color: #69736c;
  font-size: 11px;
  line-height: 1.6;
}
.allah-depth-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.allah-depth-done,
.allah-depth-swap {
  min-height: 37px;
  padding: 0 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 780;
}
.allah-depth-done {
  border: 0;
  background: #3f5b47;
  color: white;
}
.allah-depth-done.done { background: #e4ece5; color: #3f5b47; }
.allah-depth-swap {
  border: 1px solid rgba(49,75,58,.12);
  background: transparent;
  color: #4d6454;
}

@media (max-width: 900px) {
  .allah-routine-items.prayer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .allah-routine-panel {
    margin-left: -2px;
    margin-right: -2px;
    padding: 20px 17px;
    border-radius: 20px;
  }
  .allah-routine-head { padding-bottom: 14px; }
  .allah-routine-head h3 { font-size: 25px; }
  .allah-routine-head p { font-size: 11px; }
  .allah-routine-items.prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allah-routine-group summary { padding: 14px 0; }
  .allah-routine-item { padding: 10px; }
  .allah-counter-row { align-items: flex-start; flex-direction: column; }
  .allah-counter-controls { width: 100%; justify-content: flex-start; }
}
