:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --surface2: #f8f9fb;
  --text: #1d1d1f;
  --muted: #626771;
  --line: #e4e6eb;
  --blue: #006bd7;
  --bluewash: #eaf3ff;
  --shadow: 0 10px 36px #13244205;
  --arabic: 2rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #499aff;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
}
p {
  margin-bottom: 1rem;
}
.app {
  max-width: 1800px;
  margin: auto;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.06em;
  gap: 10px;
}
.brand:hover {
  text-decoration: none;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #3196ff, #0065cf);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px #0071e327;
}
.brand-dot {
  color: var(--blue);
  margin-left: -10px;
}
.brand-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 38px 0;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 12px;
  white-space: nowrap;
}
nav a span {
  font-size: 12px;
  font-weight: 500;
  color: #8c929c;
}
nav a.active {
  background: var(--bluewash);
  color: var(--blue);
}
nav a.active span {
  color: var(--blue);
}
nav a:hover {
  text-decoration: none;
  background: var(--surface2);
}
.sidebar-foot {
  margin-top: auto;
  padding: 20px 12px 0;
}
.mini-label,
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.sidebar-foot p {
  font-size: 14px;
  margin: 12px 0;
}
.sidebar-foot p span {
  color: var(--muted);
}
.sidebar-foot a {
  font-size: 13px;
}
.workspace {
  margin-left: 240px;
}
.topbar {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 52px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.icon-button {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: var(--text);
  font-size: 20px;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  background: var(--bluewash);
}
main {
  max-width: 1230px;
  margin: auto;
  padding: 37px 52px 60px;
  min-height: calc(100vh - 145px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 15px;
}
.page-heading .eyebrow {
  color: var(--blue);
  margin-bottom: 14px;
  font-size: 11px;
}
.quiet-link {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.prayer-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 0, #5caaff80, transparent 60%),
    linear-gradient(115deg, #092e71, #0057b9 60%, #126adb);
  color: white;
  border-radius: 25px;
  padding: 28px 30px 18px;
  margin-bottom: 26px;
  box-shadow: 0 12px 30px #0050a518;
}
.banner-copy {
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-block;
  border: 1px solid #ffffff40;
  background: #ffffff10;
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
}
.banner-copy h2 {
  font-size: 2.6rem;
  margin: 11px 0 8px;
}
.banner-copy p {
  font-size: 14px;
  color: #dfedff;
  margin-bottom: 25px;
}
.banner-copy p span {
  margin: 0 9px;
  color: #8fbfff;
}
.banner-mark {
  position: absolute;
  right: 45px;
  top: -63px;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 250px;
  line-height: 1.6;
  color: #ffffff13;
  pointer-events: none;
}
.prayer-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 5px;
  background: #07275442;
  border: 1px solid #ffffff14;
  border-radius: 15px;
  position: relative;
}
.prayer-tabs button {
  background: transparent;
  color: #e6eeff;
  border-radius: 10px;
  line-height: 1.3;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 650;
}
.prayer-tabs button small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #ccdfff;
  margin-top: 4px;
}
.prayer-tabs button.selected {
  background: #fff;
  color: #00489e;
  box-shadow: 0 3px 10px #001c3920;
}
.prayer-tabs button.selected small {
  color: #65758e;
}
.prayer-tabs button:not(.selected):hover {
  background: #ffffff18;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 26px;
  align-items: start;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 30px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 15px;
}
.step-card h2 {
  font-size: 1.85rem;
  margin-bottom: 14px;
}
.step-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.badge {
  font-size: 11px;
  letter-spacing: 0.02em;
  background: var(--bluewash);
  color: var(--blue);
  border-radius: 7px;
  padding: 4px 9px;
  white-space: nowrap;
}
.badge.sunat {
  color: #8b5906;
  background: #fff2d7;
}
.intention {
  padding: 25px 24px;
  background: var(--surface2);
  border-radius: 15px;
  margin: 24px 0;
}
.intention p {
  font-size: 1.2rem;
  line-height: 1.75;
  margin: 12px 0 0;
  letter-spacing: -0.02em;
}
.note {
  padding: 18px 20px;
  border-left: 3px solid #0071e3;
  border-radius: 0 10px 10px 0;
  background: var(--bluewash);
  font-size: 14px;
}
.note p {
  margin: 5px 0 0;
  color: var(--muted);
}
.step-bottom {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.step-bottom > span {
  font-size: 12px;
  color: var(--muted);
}
.primary {
  background: var(--blue);
  color: white;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 650;
}
.primary:hover {
  filter: brightness(1.12);
}
.secondary {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 17px;
  border-radius: 22px;
  font-size: 14px;
}
.sequence {
  padding-top: 15px;
}
.sequence ol {
  list-style: none;
  padding: 0;
  margin: 23px 0;
  counter-reset: seq;
}
.sequence li {
  position: relative;
  counter-increment: seq;
  color: var(--muted);
  font-size: 13px;
  padding: 0 0 24px 37px;
}
.sequence li:before {
  content: counter(seq);
  position: absolute;
  left: 0;
  top: -2px;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  z-index: 1;
}
.sequence li:not(:last-child):after {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 0;
  left: 11px;
  width: 1px;
  background: var(--line);
}
.sequence li.current {
  color: var(--blue);
  font-weight: 700;
}
.sequence li.current:before {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.sequence-note {
  font-size: 12px;
  color: var(--muted);
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 52px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 10px;
  background: var(--surface);
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.dark {
  color-scheme: dark;
  --bg: #101114;
  --surface: #1b1d22;
  --surface2: #23262d;
  --text: #f5f5f7;
  --muted: #a9aeb9;
  --line: #30343c;
  --blue: #66b1ff;
  --bluewash: #172e47;
  --shadow: 0 10px 36px #00000015;
}
.dark .primary {
  background: #0071e3;
  color: #fff;
}
.dark .badge.sunat {
  background: #3d3015;
  color: #efc76c;
}
.dark .prayer-banner {
  background:
    radial-gradient(ellipse at 85% 0, #448bed55, transparent 60%),
    linear-gradient(115deg, #092758, #00428d 60%, #0653b4);
}
.dark .brand-icon {
  color: #fff;
}
.primary,
.secondary,
.icon-button,
.reading-controls button {
  transition:
    background 0.2s,
    opacity 0.2s,
    transform 0.2s;
}
.primary:active,
.secondary:active {
  transform: scale(0.97);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.guide-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: -8px 2px 25px;
  font-size: 12px;
  color: var(--muted);
}
.guide-toolbar p {
  margin: 0;
}
.guide-toolbar a {
  white-space: nowrap;
}
.phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.phase-tabs button {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.phase-tabs button.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text);
}
.phase-tabs button:hover {
  background: var(--surface);
}
.reading-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface2);
  margin: 23px 0 0;
}
.reading-controls > div {
  display: flex;
  gap: 4px;
}
.reading-controls button {
  font-size: 14px;
  font-weight: 650;
  min-height: 36px;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 14px;
}
.reading-controls button.on {
  color: var(--blue);
  background: var(--surface);
  box-shadow: 0 1px 5px #00000007;
}
.reading-controls button[data-size] {
  color: var(--text);
  letter-spacing: -0.06em;
}
.reading-controls button[data-size] span {
  font-size: 12px;
}
.reading-controls button:hover {
  background: var(--surface);
}
.arabic {
  font-family: 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  font-size: var(--arabic);
  line-height: 2.15;
  letter-spacing: 0;
  font-weight: 500;
  padding: 30px 4px;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--text);
}
.large .arabic {
  font-size: 2.6rem;
}
.recitation-row {
  border-top: 1px solid var(--line);
  padding: 19px 0 0;
}
.recitation-row p {
  font-size: 16px;
  line-height: 1.9;
  margin: 8px 0 20px;
}
.recitation-row .rumi {
  color: var(--text);
}
.recitation-row.meaning p {
  color: var(--muted);
}
.reading-note {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.inline-source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 25px;
  font-size: 12px;
  line-height: 1.8;
}
.inline-source > span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 100%;
  font-weight: 700;
}
.inline-source a {
  border-bottom: 1px solid #0071e322;
  overflow-wrap: anywhere;
}
.progress-track {
  height: 3px;
  border-radius: 5px;
  background: var(--line);
  margin-top: 20px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 5px;
  transition: width 0.25s;
}
.sequence-list {
  max-height: 600px;
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 5px;
}
.sequence-group > p {
  font-size: 12px;
  font-weight: 750;
  margin: 18px 0;
  color: var(--text);
}
.sequence-group ol {
  margin: 0;
}
.sequence li {
  font-size: 14px;
  padding-bottom: 17px;
}
.sequence li:before {
  content: var(--number);
}
.sequence li button {
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
.sequence li button:hover {
  color: var(--blue);
}
.sequence li.visited:before {
  background: var(--bluewash);
  border-color: var(--bluewash);
  color: var(--blue);
}
.mobile-step-label,
#step-picker {
  display: none;
}
.bottom-note {
  border-top: 1px solid var(--line);
  padding: 24px 2px 0;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.bottom-note b {
  color: var(--text);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 19px;
}
.section-title h2 {
  font-size: 1.6rem;
  margin: 0;
}
.section-title > span {
  font-size: 12px;
  color: var(--muted);
}
.prep-intro {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bluewash);
  border: 1px solid #0071e314;
  border-radius: 24px;
  padding: 32px;
}
.prep-intro > div:first-child {
  text-align: center;
  border-right: 1px solid #0071e321;
  padding-right: 30px;
}
.big-number {
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.085em;
  color: var(--blue);
}
.prep-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.prep-intro p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}
.prep-intro > div:first-child p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--blue);
}
.prep-intro a {
  font-size: 14px;
}
.lesson-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.lesson-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  padding: 22px 25px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.lesson-item summary::-webkit-details-marker {
  display: none;
}
.lesson-item summary:hover {
  background: var(--surface2);
}
.lesson-item[open] .plus {
  transform: rotate(45deg);
}
.plus {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}
.lesson-body {
  padding: 0 25px 25px;
  line-height: 1.9;
  color: var(--muted);
}
.lesson-body p:last-child {
  margin-bottom: 0;
}
.lesson-body b,
.lesson-body strong {
  color: var(--text);
}
.lesson-body ul,
.lesson-body ol {
  padding-left: 23px;
}
.lesson-body li {
  padding-left: 5px;
  margin-bottom: 9px;
}
.lesson-body h3 {
  font-size: 1rem;
  margin-top: 26px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.lesson-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.lesson-body td,
.lesson-body th {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}
.lesson-body th {
  color: var(--text);
}
.wudu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wudu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
}
.wudu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.wudu-top > span:first-child {
  font-size: 1.6rem;
  letter-spacing: -0.06em;
  font-weight: 650;
  color: #acb3be;
}
.wudu-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.wudu-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.85;
}
.bottom-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 25px;
}
.bottom-cta p {
  margin: 0;
  font-size: 15px;
}
.bottom-cta a:hover {
  text-decoration: none;
}
.reading-notice {
  max-width: 780px;
  margin-bottom: 28px;
}
.reading-notice > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}
.reading-notice .reading-controls {
  max-width: 350px;
}
.recitation-library {
  max-width: 850px;
}
.recitation-library summary small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-right: 20px;
}
.recitation-library .arabic {
  padding-top: 20px;
}
.situation-intro {
  padding: 25px 28px;
  background: var(--bluewash);
  border-radius: 20px;
  margin: 0 0 30px;
}
.situation-intro p {
  font-size: 15px;
  color: var(--muted);
  margin: 10px 0 0;
}
.scope-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  background: var(--surface);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.scope-card h2 {
  font-size: 1.9rem;
  margin-top: 18px;
}
.scope-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.review-date {
  font-size: 12px;
  color: var(--muted);
}
.reference-card {
  display: grid;
  grid-template-columns: 35px 1fr 42px;
  gap: 18px;
  padding: 25px 4px;
  border-bottom: 1px solid var(--line);
}
.reference-number {
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}
.reference-card .mini-label {
  margin-bottom: 8px;
  font-size: 10px;
}
.reference-card h3 {
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.reference-card h3 a {
  color: var(--text);
}
.reference-card p:not(.mini-label) {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.source-type {
  font-size: 11px;
  color: var(--muted);
}
.badge {
  font-size: 12px;
  white-space: normal;
  text-align: center;
}
.step-intro {
  font-size: 16px;
}
.quiet-link {
  font-size: 14px;
}
.pill {
  font-size: 12px;
}
.topbar {
  font-size: 12px;
}
.page-heading .eyebrow {
  font-size: 12px;
}
.prayer-tabs button small {
  font-size: 12px;
}
.brand-sub {
  font-size: 14px;
}
.sidebar-foot a {
  font-size: 14px;
}
.step-bottom > span {
  font-size: 14px;
}
.sequence-note {
  font-size: 13px;
}
.step-card {
  scroll-margin-top: 20px;
}
.step-card h2:focus {
  outline: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (min-width: 1800px) {
  .sidebar {
    left: calc((100vw - 1800px) / 2);
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 204px;
    padding: 30px 17px;
  }
  .workspace {
    margin-left: 204px;
  }
  main {
    padding: 30px;
  }
  .topbar,
  footer {
    margin-left: 30px;
    margin-right: 30px;
  }
  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 20px;
  }
  .step-card {
    padding: 25px;
  }
  .page-heading .quiet-link {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 18px 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 1.5rem;
  }
  .brand-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 1.6rem;
  }
  .brand-sub,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    margin-top: 15px;
  }
  nav a {
    font-size: 12px;
    padding: 12px 13px;
    border-radius: 10px 10px 0 0;
  }
  nav a span {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 55px;
    border: 0;
    margin: 0 22px;
  }
  main {
    padding: 13px 22px 40px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .page-heading p {
    font-size: 14px;
  }
  .prayer-banner {
    border-radius: 20px;
    padding: 24px 18px 14px;
  }
  .banner-copy h2 {
    font-size: 2.4rem;
  }
  .banner-copy p {
    font-size: 12px;
    max-width: 80%;
  }
  .prayer-tabs {
    gap: 2px;
    padding: 4px;
  }
  .prayer-tabs button {
    font-size: 12px;
    padding: 10px 3px;
  }
  .prayer-tabs button small {
    font-size: 10px;
  }
  .banner-mark {
    font-size: 210px;
    right: 25px;
    top: -45px;
  }
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .sequence {
    order: -1;
    padding: 0;
  }
  .sequence ol {
    display: none;
  }
  .sequence-note {
    display: none;
  }
  .sequence > .mini-label {
    display: none;
  }
  .step-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .step-card h2 {
    font-size: 1.7rem;
  }
  .step-meta {
    margin-bottom: 20px;
  }
  footer {
    margin: 0 22px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .step-bottom {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  nav a {
    font-size: 14px;
  }
  .brand-sub {
    font-size: 14px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
  }
  .prayer-tabs button {
    font-size: 14px;
  }
  .prayer-tabs button small {
    font-size: 12px;
  }
  .sequence {
    min-width: 0;
  }
  .sequence-list {
    display: none;
  }
  .mobile-step-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
  }
  #step-picker {
    display: block;
    width: 100%;
    max-width: 100%;
    font: inherit;
    font-size: 14px;
    border: 1px solid var(--line);
    padding: 13px 35px 13px 13px;
    color: var(--text);
    background: var(--surface);
    border-radius: 12px;
  }
  .guide-toolbar {
    font-size: 12px;
    align-items: flex-start;
    gap: 10px;
  }
  .guide-toolbar p {
    max-width: 52%;
  }
  .phase-tabs {
    gap: 6px;
    margin-bottom: 18px;
  }
  .phase-tabs button {
    font-size: 13px;
    padding: 6px 11px;
  }
  .prep-intro {
    padding: 24px 20px;
    grid-template-columns: 85px 1fr;
    gap: 20px;
  }
  .prep-intro > div:first-child {
    padding-right: 17px;
  }
  .big-number {
    font-size: 3.5rem;
  }
  .prep-intro h2 {
    font-size: 1.4rem;
  }
  .prep-intro p {
    font-size: 14px;
  }
  .prep-intro > div:first-child p {
    font-size: 12px;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 32px;
  }
  .section-title h2 {
    font-size: 1.4rem;
  }
  .wudu-grid {
    grid-template-columns: 1fr;
  }
  .lesson-item summary {
    padding: 20px;
    font-size: 16px;
  }
  .lesson-body {
    padding: 0 20px 23px;
    font-size: 16px;
  }
  .wudu-card {
    padding: 23px;
  }
  .scope-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px;
  }
  .scope-card h2 {
    margin-bottom: 6px;
  }
  .reference-card {
    grid-template-columns: 23px 1fr;
    gap: 10px;
  }
  .source-type {
    display: none;
  }
  .reference-card h3 {
    font-size: 1.05rem;
  }
  .situation-intro {
    padding: 23px;
  }
  .bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .recitation-library summary small {
    margin-right: 12px;
  }
  .step-bottom {
    flex-wrap: nowrap;
    gap: 9px;
  }
  .step-bottom .primary,
  .step-bottom .secondary {
    padding: 9px 13px;
    font-size: 14px;
  }
  .step-bottom > span {
    font-size: 12px;
  }
  .arabic {
    font-size: 1.9rem;
    line-height: 2.05;
  }
  .large .arabic {
    font-size: 2.4rem;
  }
  .step-meta {
    align-items: flex-start;
  }
  .step-meta .badge {
    max-width: 55%;
  }
  .inline-source {
    font-size: 12px;
  }
  .reading-note {
    font-size: 14px;
  }
}
@media (max-width: 380px) {
  main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .prayer-tabs button {
    font-size: 12px;
  }
  .prayer-tabs button small {
    font-size: 11px;
  }
  .prayer-banner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .step-card {
    padding: 23px 17px;
  }
  .prep-intro {
    grid-template-columns: 1fr;
  }
  .prep-intro > div:first-child {
    border: 0;
    text-align: left;
  }
  .prep-intro > div:first-child p {
    display: inline;
    margin-left: 16px;
  }
  .step-bottom .primary,
  .step-bottom .secondary {
    padding: 9px 10px;
  }
}
nav a {
  gap: 13px;
}
nav a svg {
  flex-shrink: 0;
}
nav a .nav-full {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}
.nav-short {
  display: none;
}
@media (max-width: 800px) {
  body {
    padding-bottom: 85px;
  }
  .sidebar {
    height: 73px;
    padding: 20px 22px;
  }
  .topbar {
    position: absolute;
    right: 0;
    top: 17px;
    margin: 0 22px;
    height: 40px;
  }
  .topbar > span {
    display: none;
  }
  .sidebar .brand {
    width: max-content;
  }
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 9px 8px max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(20px);
    overflow: visible;
  }
  nav a {
    flex-direction: column;
    gap: 5px;
    padding: 7px 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    line-height: 1.2;
  }
  nav a svg {
    width: 21px;
    height: 21px;
  }
  nav a .nav-full {
    display: none;
  }
  nav a .nav-short {
    display: inline;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
  }
  nav a.active {
    background: transparent;
    color: var(--blue);
  }
  main {
    padding-top: 25px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .page-heading h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .prayer-banner {
    padding: 18px 15px 13px;
    margin-bottom: 15px;
  }
  .pill {
    font-size: 10px;
  }
  .banner-copy h2 {
    font-size: 2rem;
    margin: 8px 0 6px;
  }
  .banner-copy p {
    font-size: 12px;
    max-width: 92%;
    margin-bottom: 15px;
  }
  .prayer-tabs button {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 13px;
  }
  .prayer-tabs button small {
    font-size: 11px;
  }
  .banner-mark {
    font-size: 160px;
    top: -30px;
  }
  .guide-toolbar {
    margin: 0 2px 18px;
    justify-content: flex-end;
  }
  .guide-toolbar p {
    display: none;
  }
  .phase-tabs {
    gap: 5px;
  }
  .phase-tabs button {
    font-size: 12px;
    padding: 5px 10px;
  }
  .mobile-step-label {
    display: none;
  }
  .guide-layout {
    gap: 16px;
  }
  .sequence {
    padding: 0;
  }
  #step-picker {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .step-card {
    padding-top: 23px;
  }
  .step-card h2 {
    font-size: 1.6rem;
  }
  .step-meta {
    margin-bottom: 16px;
  }
  .step-intro {
    font-size: 16px;
  }
  .intention {
    padding: 21px 17px;
  }
  .intention p {
    font-size: 1.1rem;
  }
  footer {
    padding-bottom: 20px;
  }
}
@media (max-width: 800px) {
  .topbar {
    z-index: 21;
  }
}
