.bk-page main > .card.lead .chips { margin: 16px 0 12px; }

/* Longer Arabic for the Qur'an and hadith quotations; the font stack is unchanged. */
.bk-page figure.ibq p.ar, .bk-page blockquote p.ar { font-size: 1.6rem; line-height: 2.1; text-align: right; }
.bk-page .arline .ar { font-size: 1.4rem; }
.bk-page .helpbox { scroll-margin-top: 16px; }

/* Long evidence lists fold after three; references stay visible in the summary. */
.bk-page details.evmore { margin: 8px 0 4px; }
.bk-page details.evmore > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 8px 4px; color: var(--muted); font-size: .92rem; line-height: 1.4; list-style-position: inside; border-radius: 8px; }
.bk-page details.evmore > summary:hover { color: var(--ink); }
.bk-page details.evmore > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; color: var(--ink); }
.bk-page details.evmore[open] > summary { margin-bottom: 8px; }

/* Step rail: where you are in the reading, nothing more. One row always; on a narrow screen the row scrolls sideways inside itself, so the page never does. */
.bk-page .steprail { display: flex; flex-wrap: nowrap; gap: 8px; margin: 12px 0 24px; padding: 6px; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
@media (min-width: 960px) { .bk-page main > .steprail { grid-column: 1 / -1; } }
.bk-page .steprail a { flex: 1 1 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; font-variant-numeric: tabular-nums; }
.bk-page .steprail a:hover { border-color: var(--ink); color: var(--ink); }
.bk-page .steprail a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-page .steprail a[aria-current="step"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }

/* Home: the journey line. Eight cards in .secgrid.four: four across, two across, or one, so no cell is ever empty. */
.bk-page .journeyline { margin: 8px 0 16px; max-width: none; }
.bk-page .secgrid { gap: 14px; }
.bk-page .sec:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Reading steps: the reading takes the wider column; Reflect and Act sit beside the start of it. On a phone the order stays Learn, sources, Reflect, Act. */
.bk-page .card p { line-height: 1.7; }
.bk-page .card h3 { font: 600 1.15rem/1.35 var(--serif); margin: 26px 0 8px; }
.bk-page .card h3:first-child { margin-top: 0; }
.bk-page .card ul.trylist li { margin: 8px 0; line-height: 1.65; }
.bk-page .card > p.eyebrow { margin-bottom: 8px; }
.bk-page .card.lead h2 { font-size: 1.35rem; line-height: 1.35; }
.bk-page .card.act p.big { font-size: 1.2rem; }
.bk-page .secnav { margin: 32px 0 40px; }
@media (min-width: 960px) {
  .bk-page .cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
  .bk-page .cols > div:last-child > .card.lead { order: -2; }
  .bk-page .cols > div:last-child > .card.act { order: -1; }
}

/* Add to my plan: a toggle under each step's one response. */
.bk-page .actadd { margin-top: 16px; }
.bk-page .addstate { display: none; }
.bk-page .actadd .hint { margin: 10px 0 0; }
.bk-page .btn.small { min-height: 44px; padding: 8px 16px; font-size: .9rem; }

/* My plan and the other personal cards. */
.bk-page main > .card.plan { margin: 24px 0; }
.bk-page .plan .field { margin: 16px 0 0; }
.bk-page .plan textarea { width: 100%; min-height: 112px; padding: 12px 14px; font-size: 1rem; line-height: 1.6; }
.bk-page .plan textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* This week's focus: a heavier border and an inverted label, so it reads without colour. */
.bk-page .plansaved { margin: 12px 0 20px; }
.bk-page .addedlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bk-page .addedlist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.bk-page .addedlist li > span { flex: 1 1 16em; min-width: 0; line-height: 1.6; }

/* The one-page summary: a title, then the focus and small action first, then each quality with its two labelled lines. */
.bk-page .summary { border: 1px dashed var(--line); border-radius: 12px; padding: 22px 24px; margin: 8px 0 24px; max-width: 46rem; }
.bk-page .summary .sumtitle { margin: 0; font: 600 1.4rem/1.3 var(--serif); }
.bk-page .summary .sumsub { margin: 4px 0 8px; color: var(--muted); font-size: .9rem; }
.bk-page .summary .sumgroup { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-page .summary h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-page .summary ul { margin: 0; padding: 0; list-style: none; }
.bk-page .summary li { margin: 0 0 14px; overflow-wrap: anywhere; line-height: 1.6; }
.bk-page .summary li > strong { display: block; }
.bk-page .summary .sumline { display: block; margin-top: 2px; white-space: pre-wrap; }
.bk-page .summary .sumlab { color: var(--muted); font-size: .9rem; margin-right: 6px; }
.bk-page .sumactions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.bk-page .sumactions .btn:disabled { opacity: .5; cursor: default; }
.bk-page #sumStatus { margin: 12px 0 0; min-height: 1.4em; }
.bk-page #planHint { margin: 12px 0 0; min-height: 1.4em; }
.bk-page main > .card.plan#delcard { margin-bottom: 8px; }

@media print {
  @page { margin: 18mm; }
  .bk-page .steprail, .bk-page .helpbox, .bk-page .btn, .bk-page .actions, .bk-page nav.chips, .bk-page .secnav { display: none !important; }
  /* The personal cards (My plan, the audit, the door and the ordinary practice) and the responses are never printed with the reading. They print only from “Print or save as PDF”. */
  body:not(.print-plan) :is(#plancard, #auditcard, #doorcard, #ordcard, #summarycard, #fromsteps-card, #delcard) { display: none !important; }
  body.print-plan { --ink: #000; --bg: #fff; --line: #999; --muted: #444; background: #fff; color: #000; }
  body.print-plan :is(header.top, footer.foot) { display: none !important; }
  body.print-plan #view { display: block; max-width: none; }
  body.print-plan #view > :not(#summarycard) { display: none !important; }
  body.print-plan #summarycard { display: block; border: 0; background: none; backdrop-filter: none; padding: 0; margin: 0; max-width: none; }
  body.print-plan #summarycard .nopr { display: none !important; }
  body.print-plan #summary { border: 0; padding: 0; margin: 0; display: block; max-width: none; column-count: 1; font-size: 12pt; }
  body.print-plan #summary .sumtitle { font-size: 20pt; }
  body.print-plan #summary .sumgroup { break-inside: avoid; border-top-color: #999; }
  body.print-plan #summary li { break-inside: avoid; }
  .bk-page details.evmore::details-content { content-visibility: visible; display: block; }
  .bk-page details.evmore > summary { display: none; }
}

/* Eight steps: four across on a wide screen, two across on a tablet, one on a phone. */
@media (min-width: 960px) { .bk-page .secgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bk-page .secgrid.four .sec { min-height: 140px; }

/* Personal cards on the steps: a few fields, two columns on a wide screen, one on a phone. */
.bk-page main > .card.tool { margin: 24px 0; }
.bk-page .tool .field { margin: 16px 0 0; }
.bk-page .tool .field > span { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.bk-page .tool textarea { width: 100%; min-height: 88px; padding: 12px 14px; font-size: 1rem; line-height: 1.6; }
.bk-page .tool textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-page .toolgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .bk-page .toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-page .toolgrid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.bk-page .qitem { border-top: 1px solid var(--line); padding: 16px 0 6px; min-width: 0; }
.bk-page .qitem h3 { margin: 0 0 4px; font-size: 1.1rem; }
.bk-page .qitem p { margin: 0 0 4px; }
.bk-page .choices { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 4px; }
.bk-page .choice { font: inherit; font-size: .95rem; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.bk-page .choice:hover { border-color: var(--ink); color: var(--ink); }
.bk-page .choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-page .choice[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.bk-page .toollink { margin: 12px 0 0; }
.bk-page .toollink a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* The date to look again. */
.bk-page .pf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 8px; }
.bk-page .pf .field { margin: 8px 0 0; flex: 1 1 14rem; }
.bk-page .plan input[type="date"] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; max-width: 18rem; min-height: 44px; }
.bk-page .plan input[type="date"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-page .plan .field > span { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.bk-page .plan h3 { margin: 0 0 4px; }
.bk-page .plan .choices { margin: 8px 0 4px; }
.bk-page .qitem h3 { margin: 0 0 4px; }

/* What Are You Free From? (#free): four step cards on one page, the same quiet controls as the step tools, room between every group of buttons. */
.bk-page main > .card.freelead { margin: 24px 0; }
.bk-page main > .card.freestep { margin: 28px 0; }
.bk-page .freestep .cols { margin-top: 8px; }
.bk-page .freepriv { margin: 20px 0 8px; max-width: 60em; }
.bk-page .freebox { margin-top: 20px; }
.bk-page .freeitems { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .bk-page .freeitems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-page .freestep .field { margin: 16px 0 0; }
.bk-page .freestep .field > span { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.bk-page .freestep textarea { width: 100%; min-height: 88px; padding: 12px 14px; font-size: 1rem; line-height: 1.6; }
.bk-page .freestep :is(input[type="text"], input[type="date"]) { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-height: 44px; }
.bk-page .freestep input[type="date"] { max-width: 18rem; }
.bk-page .freestep :is(textarea, input):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-page .fitem .field { margin-top: 0; }
.bk-page #freeHint, .bk-page #freeStatus { margin: 12px 0 0; min-height: 1.4em; }
@media print { body.bk-page:not(.print-plan) .freetool { display: none !important; } }

.wl-row { display: block; margin-top: 4px; overflow-wrap: anywhere; }
@media print { body:not(.print-plan) :is(#fucard, #fusaved) { display: none !important; } }
