/* Al Wird — Tools. Marker: aw-tools-v1. Scoped under .awt so it never touches the site. */
.awt {
  --ink: #0d2e22;
  --ink-2: #3d5a4d;
  --ink-3: #6f8479;
  --gold: #c9a24b;
  --gold-deep: #a8852f;
  --gold-tint: #f4ead3;
  --cream: #f7f3e9;
  --paper: #fbf9f4;
  --line: rgba(13, 46, 34, .10);
  --line-2: rgba(13, 46, 34, .06);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(13, 46, 34, .05), 0 2px 8px rgba(13, 46, 34, .04);
  --sh-2: 0 2px 6px rgba(13, 46, 34, .06), 0 12px 28px -12px rgba(13, 46, 34, .22);
  --sh-3: 0 24px 60px -22px rgba(13, 46, 34, .38);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.awt *, .awt *::before, .awt *::after { box-sizing: border-box; }
.awt-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 22px; }
.awt-wrap--narrow { max-width: 780px; }

/* ------------------------------------------------------------------ type */
.awt h1, .awt h2, .awt h3, .awt h4 { margin: 0; color: var(--ink); line-height: 1.25; }
.awt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep);
}
.awt[dir="rtl"] .awt-eyebrow { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.awt-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.awt-h1 { font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.85rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.15; }
.awt[dir="rtl"] .awt-h1 { letter-spacing: 0; line-height: 1.35; }
.awt-h2 { font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); font-weight: 800; letter-spacing: -.015em; }
.awt[dir="rtl"] .awt-h2 { letter-spacing: 0; line-height: 1.5; }
.awt-h3 { font-size: 1.06rem; font-weight: 800; }
.awt-lead { margin: 14px 0 0; font-size: 1.02rem; color: var(--ink-2); max-width: 62ch; }
.awt[dir="rtl"] .awt-lead { line-height: 1.95; }
.awt-p { margin: 12px 0 0; color: var(--ink-2); }
.awt[dir="rtl"] .awt-p { line-height: 2; }
.awt-small { font-size: .83rem; color: var(--ink-3); }
.awt-mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ------------------------------------------------------------------ hero */
.awt-hero { padding: 46px 0 30px; background: linear-gradient(180deg, var(--cream), #fff 78%); border-bottom: 1px solid var(--line-2); }
.awt-hero .awt-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.awt-hero .awt-crumb a { color: var(--ink-3); text-decoration: none; }
.awt-hero .awt-crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.awt-hero .awt-crumb span[aria-hidden] { opacity: .45; }

/* --------------------------------------------------------------- buttons */
.awt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: .92rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.awt-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.awt-btn--gold { background: var(--gold); color: #23190a; box-shadow: 0 8px 20px -10px rgba(201, 162, 75, .9); }
.awt-btn--gold:hover { background: var(--gold-deep); transform: translateY(-1px); }
.awt-btn--ink { background: var(--ink); color: var(--cream); }
.awt-btn--ink:hover { background: #123a2b; transform: translateY(-1px); }
.awt-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.awt-btn--ghost:hover { background: var(--cream); border-color: rgba(13, 46, 34, .18); }
.awt-btn--sm { padding: 8px 14px; font-size: .82rem; }
.awt-btn[disabled] { opacity: .45; pointer-events: none; }

/* ----------------------------------------------------------------- cards */
.awt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.awt-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.awt-card__head h2, .awt-card__head h3 { font-size: .95rem; font-weight: 800; }
.awt-card__body { padding: 20px; }
.awt-card__body--flush { padding: 0; }

.awt-grid { display: grid; gap: 16px; }
.awt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.awt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.awt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------- tool card */
.awt-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.awt-tool {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: #fff; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.awt-tool:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: rgba(201, 162, 75, .55); }
.awt-tool:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.awt-tool__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--gold-tint); color: var(--gold-deep); }
.awt-tool__ico svg { width: 21px; height: 21px; }
.awt-tool__title { font-size: 1rem; font-weight: 800; }
.awt-tool__text { font-size: .875rem; color: var(--ink-2); margin: 0; }
.awt-tool__go { margin-block-start: auto; padding-block-start: 8px; font-size: .8rem; font-weight: 800; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; }
.awt-tool:hover .awt-tool__go { gap: 10px; }

/* ------------------------------------------------------------------ band */
.awt-band { padding: 52px 0; }
.awt-band--cream { background: var(--cream); }
.awt-band--ink { background: var(--ink); color: var(--cream); }
.awt-band--ink h2, .awt-band--ink h3 { color: var(--cream); }
.awt-band--ink .awt-lead { color: rgba(247, 243, 233, .8); }
.awt-band__head { max-width: 700px; margin-bottom: 26px; }

/* ----------------------------------------------------------------- forms */
.awt-field { display: grid; gap: 7px; }
.awt-label { font-size: .8rem; font-weight: 800; color: var(--ink-2); }
.awt-input, .awt-select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: .92rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.awt-input:focus, .awt-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .18); }
.awt-select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236f8479' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.awt[dir="rtl"] .awt-select { background-position: left 14px center; }
.awt-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); gap: 2px; }
.awt-seg button {
  padding: 8px 16px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: .84rem; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.awt-seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.awt-seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------ rows */
.awt-rows { list-style: none; margin: 0; padding: 0; }
.awt-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.awt-row:last-child { border-bottom: 0; }
.awt-row__name { font-weight: 700; font-size: .92rem; }
.awt-row__time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.awt-row.is-next { background: var(--gold-tint); box-shadow: inset 3px 0 0 var(--gold); }
.awt[dir="rtl"] .awt-row.is-next { box-shadow: inset -3px 0 0 var(--gold); }
.awt-row.is-past { opacity: .5; }

.awt-next { padding: 26px 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--cream); display: grid; gap: 4px; }
.awt-next__label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.awt[dir="rtl"] .awt-next__label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.awt-next__name { font-size: 1.5rem; font-weight: 800; }
.awt-next__time { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.awt-next__in { font-size: .88rem; color: rgba(247, 243, 233, .72); }

/* ----------------------------------------------------------------- chips */
.awt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.awt-chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.awt-chip:hover { border-color: rgba(13, 46, 34, .2); }
.awt-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.awt-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- adhkar */
.awt-dhikr { padding: 20px; border-bottom: 1px solid var(--line-2); }
.awt-dhikr:last-child { border-bottom: 0; }
.awt-dhikr__text { font-size: 1.06rem; line-height: 2.1; color: var(--ink); margin: 0; }
.awt-dhikr__note { margin: 10px 0 0; font-size: .82rem; color: var(--ink-3); }
.awt-dhikr__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.awt-count {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cream); font-weight: 800; font-size: .85rem;
  color: var(--ink); cursor: pointer; transition: background .15s ease, border-color .15s ease;
  font-variant-numeric: tabular-nums;
}
.awt-count:hover { border-color: var(--gold); }
.awt-count.is-done { background: #e8f3ec; border-color: #b8dcc6; color: #1f6b43; }
.awt-count:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------ names */
.awt-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.awt-name {
  padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff;
  display: grid; gap: 3px; transition: border-color .16s ease, box-shadow .16s ease;
}
.awt-name:hover { border-color: rgba(201, 162, 75, .6); box-shadow: var(--sh-1); }
.awt-name__n { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.awt-name__m { font-size: .82rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- player */
.awt-player { position: sticky; bottom: 14px; z-index: 5; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--ink); color: var(--cream); box-shadow: var(--sh-3); display: grid; gap: 10px; }
.awt-player__top { display: flex; align-items: center; gap: 14px; }
.awt-player__title { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awt-player__btn { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--gold); color: #23190a; cursor: pointer; }
.awt-player__btn:hover { background: #d9b45f; }
.awt-player__btn--ghost { background: rgba(247, 243, 233, .12); color: var(--cream); }
.awt-player__btn--ghost:hover { background: rgba(247, 243, 233, .2); }
.awt-player__prog { height: 4px; border-radius: 99px; background: rgba(247, 243, 233, .18); overflow: hidden; }
.awt-player__prog span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s linear; }

.awt-surah { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; background: none; border-inline: 0; border-block-start: 0; width: 100%; text-align: start; font: inherit; }
.awt-surah:last-child { border-bottom: 0; }
.awt-surah:hover { background: var(--paper); }
.awt-surah.is-on { background: var(--gold-tint); }
.awt-surah__n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--cream); font-size: .78rem; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.awt-surah.is-on .awt-surah__n { background: var(--gold); color: #23190a; }
.awt-surah__t { font-weight: 700; font-size: .9rem; }
.awt-surah__s { font-size: .76rem; color: var(--ink-3); }
.awt-list-wrap { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; }

.awt-ayah { padding: 18px 4px; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; }
.awt-ayah:last-child { border-bottom: 0; }
.awt-ayah__txt { font-size: 1.32rem; line-height: 2.35; color: var(--ink); margin: 0; }
.awt-ayah__txt.is-on { background: var(--gold-tint); border-radius: 8px; box-shadow: 0 0 0 8px var(--gold-tint); }
.awt-ayah__meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-3); }
.awt-ayah__n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-weight: 800; font-size: .72rem; color: var(--ink-2); }

/* -------------------------------------------------------------- glossary */
.awt-term { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.awt-term:last-child { border-bottom: 0; }
.awt-term__t { font-weight: 800; font-size: 1rem; }
.awt-term__d { margin: 5px 0 0; color: var(--ink-2); font-size: .9rem; }

/* ------------------------------------------------------------- accordion */
.awt-acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.awt-acc + .awt-acc { margin-top: 10px; }
.awt-acc summary { padding: 15px 18px; font-weight: 700; font-size: .93rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.awt-acc summary::-webkit-details-marker { display: none; }
.awt-acc summary::after { content: "+"; font-size: 1.1rem; font-weight: 800; color: var(--gold-deep); flex: 0 0 auto; }
.awt-acc[open] summary::after { content: "\2212"; }
.awt-acc__body { padding: 0 18px 16px; color: var(--ink-2); font-size: .9rem; }

/* ----------------------------------------------------------------- stats */
.awt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.awt-stat { padding: 16px; border-radius: var(--r-md); background: var(--cream); text-align: center; }
.awt-stat__v { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.awt-stat__l { font-size: .74rem; color: var(--ink-3); font-weight: 700; }

.awt-msg { margin-top: 12px; padding: 11px 14px; border-radius: var(--r-sm); font-size: .86rem; display: none; }
.awt-msg.is-on { display: block; }
.awt-msg--ok { background: #e8f3ec; color: #1f6b43; }
.awt-msg--err { background: #fbeceb; color: #a8352a; }
.awt-msg--info { background: var(--gold-tint); color: #7a5a12; }

.awt-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: .9rem; }

/* ------------------------------------------------------------------ misc */
.awt-faq { display: grid; gap: 10px; }
.awt-cta { padding: 34px; border-radius: var(--r-xl); background: var(--ink); color: var(--cream); display: grid; gap: 14px; justify-items: start; }
.awt-cta h2 { color: var(--cream); }
.awt-cta p { margin: 0; color: rgba(247, 243, 233, .8); max-width: 56ch; }
.awt-toolnav { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.awt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .awt-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awt-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awt-grid--3, .awt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .awt-wrap { padding-inline: 16px; }
  .awt-hero { padding: 30px 0 22px; }
  .awt-tools, .awt-grid--2, .awt-grid--3, .awt-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .awt-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .awt-stat__v { font-size: 1.15rem; }
  .awt-band { padding: 34px 0; }
  .awt-cta { padding: 24px 20px; }
  .awt-player { bottom: 8px; }
}
@media print { .awt-player, .awt-toolnav, .awt-cta { display: none !important; } }
