/* Mawsim · The Best of You. Shared styles live in /heart.css (+ /dua/dua.css for chips). Monochrome, full width, room to breathe. */
.bs-page main > .card.lead .chips { margin: 16px 0 12px; }
.bs-page main > .card.care.wide { margin-top: 24px; margin-bottom: 24px; }
/* 11 steps: let the last card fill the row so no grid cell is left empty (2 and 3 columns). */
.bs-page .carelist { margin: 8px 0 0; padding-left: 1.2em; }
.bs-page .carelist li { margin: 6px 0; }
.bs-page .carestrip { margin: 24px 0; }
/* Verse + one question, as a small list. */

/* Longer Arabic for the Qur'an and du'a quotations; the font stack is unchanged. */
.bs-page figure.ibq p.ar, .bs-page blockquote p.ar { font-size: 1.6rem; line-height: 2.1; text-align: right; }
.bs-page .arline .ar { font-size: 1.4rem; }
/* Transliteration under a du'a: quiet, normal size, left-aligned. */
.bs-page .ibq p.tl { color: var(--muted); font-size: 1rem; line-height: 1.6; text-align: left; margin: 4px 0 14px; }

/* Home: one quiet help line at the top; the full card sits below the steps. */
.bs-page .carestrip-top { margin: 4px 0 16px; }
.bs-page .carestrip-top a { text-underline-offset: 3px; }
.bs-page main > .card.care.wide { scroll-margin-top: 16px; }

/* Long evidence lists fold after three; references stay visible in the summary. */
.bs-page details.evmore { margin: 8px 0 4px; }
.bs-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; }
.bs-page details.evmore > summary:hover { color: var(--ink); }
.bs-page details.evmore > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; color: var(--ink); }
.bs-page details.evmore[open] > summary { margin-bottom: 8px; }

/* Step rail: where you are in the reading, nothing more. One row on desktop; on a narrow screen it scrolls sideways inside itself (never the page). Padding keeps focus outlines from being clipped. */
.bs-page .steprail { position: relative; display: flex; flex-wrap: nowrap; gap: 8px; margin: 20px 0 28px; padding: 6px; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.bs-page .steprail a { flex: 1 1 0; min-width: 44px; max-width: 96px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; font-variant-numeric: tabular-nums; }
.bs-page .steprail a:hover { border-color: var(--ink); color: var(--ink); }
.bs-page .steprail a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bs-page .steprail a[aria-current="step"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }

/* Plan: three small groups, two columns on desktop, the odd last field spans. */
.bs-page .plangroup { margin: 28px 0 0; }
.bs-page .plangroup h3 { font-size: 1rem; margin: 0 0 4px; }
.bs-page .plangrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
@media (min-width: 960px) {
  .bs-page .plangrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-page .plangrid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media print {
  .bs-page .steprail { display: none; }
  .bs-page details.evmore::details-content { content-visibility: visible; display: block; }
  .bs-page details.evmore > summary { display: none; }
}

/* Step 11: twelve qualities, three plain choices each. No totals. */
.bs-page .plansaved { margin: 12px 0 20px; }
.bs-page main > .card.qual, .bs-page main > .card.pairs { margin: 24px 0; }
.bs-page .quallist { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; gap: 0 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .bs-page .quallist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bs-page .quallist fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 16px; min-width: 0; }
.bs-page .quallist legend { font-weight: 600; padding: 0 0 8px; }
.bs-page .choices { display: flex; flex-wrap: wrap; gap: 10px; }
.bs-page .choice { font: inherit; font-size: .95rem; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.bs-page .choice:hover { border-color: var(--ink); color: var(--ink); }
.bs-page .choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bs-page .choice[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bs-page select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-height: 44px; }
.bs-page .qual textarea { width: 100%; min-height: 88px; }
.bs-page .qual .field { margin: 16px 0; }
.bs-page .halves { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .bs-page .halves { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.bs-page .halves li { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.bs-page .halves span { color: var(--muted); }
@media print { .bs-page .choices { display: none; } }

/* Step 11: suggestions from the qualities marked "grow", and the summary card. */
.bs-page .suggest { margin: 8px 0 16px; }
.bs-page .suggest .choices { margin-top: 10px; }
.bs-page .choice.sug[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bs-page .choice.sug:disabled { opacity: .55; cursor: not-allowed; }
.bs-page .choice .slotno { white-space: pre; }
.bs-page .sumcard { margin: 28px 0 8px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 14px; }
.bs-page .sumcard[hidden] { display: none; }
.bs-page .sumcard h3 { margin: 0 0 8px; font-size: 1.05rem; }
.bs-page .sumlist { list-style: decimal; margin: 0; padding-left: 1.4em; display: grid; gap: 14px; }
.bs-page .sumlist li { padding-left: 4px; }
.bs-page .sumlist strong { display: block; }
.bs-page .sumlist span { display: block; margin-top: 2px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.bs-page .sumactions { margin: 18px 0 8px; gap: 12px; }
.bs-page .sumbtn { min-height: 44px; min-width: 88px; }
.bs-page .sumbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bs-page option:disabled { color: var(--muted); }
@media print { .bs-page .suggest, .bs-page .sumactions, .bs-page #copyStatus { display: none; } .bs-page .sumcard { border-color: var(--ink); break-inside: avoid; } .bs-page .sumlist span { color: inherit; } }
@media (min-width: 960px) { .bs-page main > .steprail { grid-column: 1 / -1; } }
