/* Mawsim · Servants of the Most Merciful. Shared styles live in /heart.css (+ /dua/dua.css for chips). Monochrome, full width, room to breathe. */
.ir-page main > .card.lead .chips { margin: 16px 0 12px; }

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

/* Long evidence lists fold after three; references stay visible in the summary. */
.ir-page details.evmore { margin: 8px 0 4px; }
.ir-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; }
.ir-page details.evmore > summary:hover { color: var(--ink); }
.ir-page details.evmore > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; color: var(--ink); }
.ir-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. */
.ir-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) { .ir-page main > .steprail { grid-column: 1 / -1; } }
.ir-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; }
.ir-page .steprail a:hover { border-color: var(--ink); color: var(--ink); }
.ir-page .steprail a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ir-page .steprail a[aria-current="step"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }

/* Home: the journey line, and step 10 (a page of your own) as its own call to action. Ten cards: the last one spans the row, so no cell is empty. */
.ir-page .journeyline { margin: 8px 0 16px; max-width: none; }
.ir-page .secgrid { gap: 14px; }
.ir-page .sec.cta { border: 2px solid var(--ink); padding: 22px 24px; min-height: 120px; }
.ir-page .sec.cta strong { font-size: 1.4rem; }
.ir-page .sec.cta .go { margin-top: 8px; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ir-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. */
.ir-page .card p { line-height: 1.7; }
.ir-page .card h3 { font: 600 1.15rem/1.35 var(--serif); margin: 26px 0 8px; }
.ir-page .card h3:first-child { margin-top: 0; }
.ir-page .card ul.trylist li { margin: 8px 0; line-height: 1.65; }
.ir-page .card > p.eyebrow { margin-bottom: 8px; }
.ir-page .card.lead h2 { font-size: 1.35rem; line-height: 1.35; }
.ir-page .card.act p.big { font-size: 1.2rem; }
.ir-page .secnav { margin: 32px 0 40px; }
@media (min-width: 960px) {
  .ir-page .cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
  .ir-page .cols > div:last-child > .card.lead { order: -2; }
  .ir-page .cols > div:last-child > .card.act { order: -1; }
}

/* Add to my plan: a toggle under each step's one response. */
.ir-page .actadd { margin-top: 16px; }
.ir-page .addplan, .ir-page .weekbtn { min-height: 44px; }
.ir-page .addstate { display: none; }
.ir-page .addplan[aria-pressed="true"], .ir-page .weekbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ir-page .addplan[aria-pressed="true"] .addstate, .ir-page .weekbtn[aria-pressed="true"] .addstate { display: inline; }
.ir-page .addplan:focus-visible, .ir-page .weekbtn:focus-visible, .ir-page .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ir-page .actadd .hint { margin: 10px 0 0; }
.ir-page .btn.small { min-height: 44px; padding: 8px 16px; font-size: .9rem; }

/* My eight: one card for each of the eight qualities. Two columns on a wide screen, one on a phone: eight always fills the grid. */
.ir-page main > .card.plan { margin: 24px 0; }
.ir-page .plan .field { margin: 16px 0 0; }
.ir-page .plan textarea { width: 100%; min-height: 112px; padding: 12px 14px; font-size: 1rem; line-height: 1.6; }
.ir-page .plan .smallbox textarea { min-height: 88px; }
.ir-page .focusline { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; line-height: 1.5; }
.ir-page .eightgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 20px 0 16px; }
@media (min-width: 900px) { .ir-page .eightgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.ir-page .trait { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 24px; display: flex; flex-direction: column; min-width: 0; }
.ir-page .trait h3 { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.35; }
.ir-page .trait .eyebrow { margin: 0 0 8px; }
.ir-page .trait .field span { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ir-page .trait .weekbtn { margin-top: 20px; align-self: flex-start; }
.ir-page .trait .smallbox { margin-top: 4px; }
.ir-page .trait .smallbox[hidden] { display: none; }
.ir-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. */
.ir-page .trait .weekchip { display: none; align-self: flex-start; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ir-page .trait.isweek { border: 3px solid var(--ink); padding: 20px 22px 22px; }
.ir-page .trait.isweek .weekchip { display: inline-block; }
.ir-page .weekbtn .wk-on { display: none; }
.ir-page .weekbtn[aria-pressed="true"] .wk-on { display: inline; }
.ir-page .weekbtn[aria-pressed="true"] .wk-off { display: none; }
.ir-page .plansaved { margin: 12px 0 20px; }
.ir-page .addedlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ir-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; }
.ir-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. */
.ir-page .summary { border: 1px dashed var(--line); border-radius: 12px; padding: 22px 24px; margin: 8px 0 24px; max-width: 46rem; }
.ir-page .summary .sumtitle { margin: 0; font: 600 1.4rem/1.3 var(--serif); }
.ir-page .summary .sumsub { margin: 4px 0 8px; color: var(--muted); font-size: .9rem; }
.ir-page .summary .sumgroup { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.ir-page .summary h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ir-page .summary ul { margin: 0; padding: 0; list-style: none; }
.ir-page .summary li { margin: 0 0 14px; overflow-wrap: anywhere; line-height: 1.6; }
.ir-page .summary li > strong { display: block; }
.ir-page .summary .sumline { display: block; margin-top: 2px; white-space: pre-wrap; }
.ir-page .summary .sumlab { color: var(--muted); font-size: .9rem; margin-right: 6px; }
.ir-page .sumactions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.ir-page .sumactions .btn:disabled { opacity: .5; cursor: default; }
.ir-page #sumStatus { margin: 12px 0 0; min-height: 1.4em; }
.ir-page #planHint { margin: 12px 0 0; min-height: 1.4em; }
.ir-page main > .card.plan#delcard { margin-bottom: 8px; }

@media print {
  @page { margin: 18mm; }
  .ir-page .steprail, .ir-page .helpbox, .ir-page .btn, .ir-page .actions, .ir-page nav.chips, .ir-page .secnav { display: none !important; }
  /* “My eight” and the responses are never printed with the reading. They print only from “Print or save as PDF”. */
  body:not(.print-plan) :is(#eightcard, #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; }
  .ir-page details.evmore::details-content { content-visibility: visible; display: block; }
  .ir-page details.evmore > summary { display: none; }
}
/* Your reflections (#mine): read-only, private, never printed. */
.ir-page .mine .reflitem { margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ir-page .mine .reflitem:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ir-page .mine .reflitem h2 { margin: 0 0 6px; font-size: 1.05rem; }
.ir-page .mine .reflitem h2 a { font-weight: 400; margin-left: 8px; }
.ir-page .mine .refltext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
@media print { .ir-page #minecard { display: none !important; } }
