/* Lær å be
   Page-specific styles are kept here so the prayer journey can be reviewed and
   refined locally without changing the shared Maram components. */

@font-face {
  font-family: "Maram Prayer Baloo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/Baloo2-600.woff2") format("woff2");
}

@font-face {
  font-family: "Maram Prayer Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/Nunito-400.woff2") format("woff2");
}

.prayer-page {
  --prayer-night: #102f43;
  --prayer-night-soft: #194e68;
  --prayer-blue: #2b7590;
  --prayer-pale: #edf8f7;
  --prayer-gold: #f6c453;
  --prayer-gold-soft: #fff1bd;
  --prayer-rose: #a84063;
  --prayer-rose-soft: #f9e8ee;
  --prayer-ink-soft: #496978;
  --prayer-line: rgba(18, 59, 83, 0.14);
  --font-title: "Maram Prayer Baloo", "Avenir Next", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-display: var(--font-title);
  --font-text: "Maram Prayer Nunito", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-text);
}

.prayer-page main {
  overflow: hidden;
}

.prayer-page section[id] {
  scroll-margin-top: 92px;
}

.prayer-shell {
  width: min(100%, 1040px);
}

.prayer-heading {
  max-width: 790px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.prayer-heading h2 {
  margin-bottom: 16px;
  color: var(--fjord-deep);
}

.prayer-heading > p {
  margin-bottom: 0;
  color: var(--prayer-ink-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
}

.prayer-thesis {
  max-width: 700px;
  padding-left: 20px;
  border-left: 6px solid var(--prayer-gold);
  font-size: clamp(1.14rem, 2vw, 1.35rem) !important;
  font-weight: 800;
}

/* Hero */
.prayer-page .prayer-hero {
  min-height: clamp(590px, 58vw, 720px);
}

.prayer-page .prayer-hero > picture {
  display: contents;
}

.prayer-page .prayer-hero .page-hero__image {
  object-position: center center;
}

.prayer-page .prayer-hero::before {
  background:
    linear-gradient(90deg, rgba(10, 35, 50, 0.92) 0%, rgba(10, 35, 50, 0.75) 31%, rgba(10, 35, 50, 0.12) 64%),
    linear-gradient(180deg, rgba(10, 35, 50, 0.08), rgba(10, 35, 50, 0.12) 54%, rgba(10, 35, 50, 0.48));
}

.prayer-page .prayer-hero .page-hero__content {
  width: min(590px, 51%);
}

.prayer-page .prayer-hero h1 {
  font-size: clamp(2.65rem, 4.8vw, 4.8rem);
}

.prayer-page .prayer-hero p {
  max-width: 560px;
}

/* Why prayer */
.prayer-dialogue {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin-bottom: clamp(34px, 6vw, 62px);
}

.prayer-dialogue__turn {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  width: min(760px, 92%);
  padding: 20px 24px;
  border: 2px solid var(--prayer-line);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(18, 59, 83, 0.09);
}

.prayer-dialogue__turn > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--fjord-deep);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: var(--prayer-gold);
  box-shadow: 0 5px 12px rgba(18, 59, 83, 0.16);
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
}

.prayer-dialogue__turn strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 1.04rem;
}

.prayer-dialogue__turn p {
  margin: 0;
  color: #294e60;
  font-size: 1.08rem;
}

.prayer-dialogue__turn--mamma {
  justify-self: end;
  background: var(--prayer-rose-soft);
  border-color: rgba(168, 64, 99, 0.18);
}

.prayer-dialogue__turn--mamma > span {
  color: #fff;
  background: var(--prayer-rose);
}

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

.prayer-ways article {
  min-width: 0;
  padding: 24px 20px;
  border: 2px solid var(--prayer-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 59, 83, 0.08);
}

.prayer-ways article > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: var(--prayer-gold-soft);
  font-size: 1.45rem;
}

.prayer-ways h3 {
  margin-bottom: 8px;
  color: var(--fjord-deep);
  font-size: 1.25rem;
}

.prayer-ways p {
  margin: 0;
  color: var(--prayer-ink-soft);
  font-size: 0.96rem;
}

.prayer-kindness,
.prayer-words-note {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  max-width: 860px;
  margin-top: 28px;
  padding: 20px 24px;
  color: var(--fjord-deep);
  border: 3px solid rgba(246, 196, 83, 0.75);
  border-radius: 24px;
  background: #fff9dd;
}

.prayer-kindness > span,
.prayer-words-note > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 50%;
  background: var(--prayer-rose);
  font-size: 1.5rem;
}

.prayer-kindness p,
.prayer-words-note p {
  margin: 0;
}

/* Getting ready */
.prayer-ready__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.prayer-ready__steps li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 3px solid rgba(18, 59, 83, 0.1);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(18, 59, 83, 0.09);
}

.prayer-ready__steps li > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--fjord-deep);
  border-radius: 50%;
  background: var(--prayer-gold);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
}

.prayer-ready__steps h3 {
  margin-bottom: 8px;
  color: var(--fjord-deep);
  font-size: 1.25rem;
}

.prayer-ready__steps p {
  margin: 0;
  color: var(--prayer-ink-soft);
}

.prayer-ready__steps .prayer-fixed-text {
  color: var(--fjord-deep);
  font-weight: 800;
}

.prayer-ready__note {
  max-width: 850px;
  margin: 25px 0 0;
  padding: 16px 20px;
  color: #365d70;
  border-left: 6px solid var(--prayer-blue);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 0 16px 16px 0;
}

/* Each widget reveals itself only after its own setup succeeds. */
[data-enhancement-only][hidden] {
  display: none !important;
}

[data-prayer-widget][data-prayer-widget-ready="true"] [data-prayer-fallback] {
  display: none !important;
}

.prayer-fallback {
  margin: 18px 0 0;
  padding: 18px 20px 18px 42px;
  color: #365d70;
  border: 2px solid rgba(43, 117, 144, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.prayer-fallback li + li {
  margin-top: 8px;
}

/* Four calm, touch-friendly steps for learning the sign of the cross. */
.cross-practice {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  overflow: hidden;
  margin-top: clamp(30px, 5vw, 52px);
  color: var(--fjord-deep);
  border: 3px solid rgba(18, 59, 83, 0.12);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 17px 40px rgba(18, 59, 83, 0.12);
}

.cross-practice__picture {
  display: block;
  min-height: 100%;
  background: #dceceb;
}

.cross-practice__picture img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.cross-practice__content {
  align-self: center;
  min-width: 0;
  padding: clamp(25px, 4.5vw, 46px);
}

.cross-practice__content h3 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
}

.cross-practice__content > p {
  margin-bottom: 22px;
  color: var(--prayer-ink-soft);
}

.cross-practice__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cross-practice__steps button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 11px 13px;
  color: var(--fjord-deep);
  border: 3px solid rgba(18, 59, 83, 0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(18, 59, 83, 0.1);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  touch-action: manipulation;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cross-practice__steps button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--prayer-gold-soft);
}

.cross-practice__steps button:hover {
  transform: translateY(-2px);
}

.cross-practice__steps button[aria-pressed="true"] {
  border-color: var(--prayer-blue);
  background: var(--prayer-pale);
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(43, 117, 144, 0.34);
}

.cross-practice__steps button:focus-visible,
.rosary-explorer__choices button:focus-visible {
  outline: 4px solid var(--prayer-gold);
  outline-offset: 4px;
}

.cross-practice__status {
  min-height: 154px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 3px solid rgba(246, 196, 83, 0.66);
  border-radius: 22px;
  background: #fff9df;
}

.cross-practice__status > span,
.rosary-explorer__status > span {
  display: inline-block;
  margin-bottom: 7px;
  color: #376175;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cross-practice__status h4,
.rosary-explorer__status h5 {
  margin: 0 0 7px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
}

.cross-practice__status blockquote {
  margin: 0 0 6px;
  color: var(--prayer-rose);
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.3vw, 1.42rem);
  font-weight: 900;
}

.cross-practice__status p,
.rosary-explorer__status p {
  margin: 0;
  color: #365d70;
}

/* Full prayers and line-by-line explanations */
.prayer-lessons {
  background:
    radial-gradient(circle at 94% 12%, rgba(246, 196, 83, 0.18) 0 8%, transparent 8.4%),
    var(--paper);
}

.prayer-story-break {
  overflow: hidden;
  width: min(100%, 900px);
  margin: -20px auto clamp(42px, 6vw, 64px);
  border: 3px solid rgba(18, 59, 83, 0.11);
  border-radius: 29px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(18, 59, 83, 0.11);
}

.prayer-story-break picture,
.prayer-story-break img {
  display: block;
  width: 100%;
}

.prayer-story-break img {
  height: clamp(235px, 34vw, 310px);
  object-fit: cover;
  object-position: center 48%;
}

.prayer-story-break figcaption {
  padding: 17px 22px 19px;
  color: #365d70;
  border-top: 2px solid rgba(18, 59, 83, 0.09);
  background: #fffdf6;
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
}

.prayer-card {
  overflow: hidden;
  margin-bottom: clamp(34px, 6vw, 64px);
  border: 3px solid rgba(18, 59, 83, 0.12);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(18, 59, 83, 0.12);
}

.prayer-card__header {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: clamp(25px, 4vw, 40px);
  color: var(--fjord-deep);
  background: linear-gradient(135deg, #e4f5f5, #f9ffff);
  border-bottom: 3px solid rgba(18, 59, 83, 0.1);
}

.prayer-card--maria .prayer-card__header {
  background: linear-gradient(135deg, #f9e8ee, #fff8fa);
}

.prayer-card__number {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--prayer-gold);
  box-shadow: 0 7px 16px rgba(18, 59, 83, 0.16);
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 900;
}

.prayer-card--maria .prayer-card__number {
  color: #fff;
  background: var(--prayer-rose);
}

.prayer-card__header .eyebrow {
  margin-bottom: 10px;
}

.prayer-card__header h3 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.prayer-card__header p {
  max-width: 680px;
  margin: 0;
  color: #426676;
}

.prayer-card__body {
  padding: clamp(24px, 5vw, 50px);
}

.prayer-text {
  max-width: 800px;
  margin: 0 auto clamp(28px, 5vw, 46px);
  padding: clamp(25px, 5vw, 46px);
  color: var(--fjord-deep);
  border: 3px solid rgba(246, 196, 83, 0.62);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff9e8, #fffef9);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.72);
  text-align: center;
}

.prayer-card--maria .prayer-text {
  border-color: rgba(168, 64, 99, 0.25);
  background: linear-gradient(145deg, #fff7fa, #fffefb);
}

.prayer-text p {
  max-width: none;
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-size: clamp(1.18rem, 2.4vw, 1.62rem);
  font-weight: 700;
  line-height: 1.65;
}

.prayer-text p:last-child {
  margin-bottom: 0;
  color: var(--prayer-rose);
  font-size: clamp(1.28rem, 2.7vw, 1.8rem);
}

.prayer-enhancer {
  max-width: 800px;
  margin: 0 auto 34px;
}

.prayer-practice__toggle {
  min-height: 52px;
}

.prayer-practice {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 3px solid rgba(43, 117, 144, 0.24);
  border-radius: 25px;
  background: var(--prayer-pale);
}

.prayer-practice__count {
  margin-bottom: 10px;
  color: #3e6879;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prayer-practice blockquote {
  margin: 0 0 13px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.3;
}

.prayer-practice__lesson > p:not(.prayer-practice__count) {
  margin: 0;
  color: #365d70;
}

.prayer-practice__lesson .prayer-practice__safety {
  margin-top: 16px;
  padding: 14px 16px;
  color: #5e2940;
  border-left: 5px solid var(--prayer-rose);
  border-radius: 0 14px 14px 0;
  background: var(--prayer-rose-soft);
}

.prayer-practice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.prayer-practice__actions .button {
  min-width: 140px;
}

.prayer-practice__actions .button[disabled] {
  opacity: 0.48;
  cursor: default;
  transform: none;
}

.prayer-practice__actions .button[aria-disabled="true"] {
  opacity: 0.48;
  cursor: default;
  transform: none;
}

.prayer-explanations {
  max-width: 800px;
  margin-inline: auto;
}

.prayer-explanations h4 {
  margin: 0 0 13px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: clamp(1.12rem, 2vw, 1.32rem);
}

.prayer-explanations details {
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid var(--prayer-line);
  border-radius: 18px;
  background: #fff;
}

.prayer-explanations summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 13px 58px 13px 18px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.prayer-explanations summary::-webkit-details-marker {
  display: none;
}

.prayer-explanations summary:focus-visible {
  outline: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 4px var(--prayer-gold);
}

.prayer-explanations summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--fjord-deep);
  border-radius: 50%;
  background: var(--prayer-gold-soft);
  font-family: var(--font-title);
  font-size: 1.35rem;
  transform: translateY(-50%);
}

.prayer-explanations details[open] {
  border-color: rgba(43, 117, 144, 0.38);
  background: #f6fbfb;
}

.prayer-explanations details[open] summary {
  border-bottom: 2px solid rgba(43, 117, 144, 0.14);
}

.prayer-explanations details[open] summary::after {
  content: "−";
}

.prayer-explanations details > p {
  max-width: none;
  margin: 0;
  padding: 18px 20px 20px;
  color: #365d70;
}

.prayer-explanations details > p + p {
  padding-top: 0;
}

.prayer-explanations .prayer-safety {
  margin: 0 18px 20px;
  padding: 16px 18px;
  color: #5e2940;
  border-left: 5px solid var(--prayer-rose);
  border-radius: 0 14px 14px 0;
  background: var(--prayer-rose-soft);
}

.prayer-words-note {
  margin: 0 auto;
  border-color: rgba(43, 117, 144, 0.3);
  background: var(--prayer-pale);
}

.prayer-words-note > span {
  background: var(--prayer-blue);
}

/* Evening decade */
.prayer-rosary {
  color: #fff;
  background:
    radial-gradient(circle at 10% 8%, rgba(246, 196, 83, 0.18) 0 7%, transparent 7.4%),
    radial-gradient(circle at 91% 28%, rgba(191, 228, 211, 0.12) 0 12%, transparent 12.4%),
    linear-gradient(155deg, var(--prayer-night), #183d55 62%, #214e63);
}

.prayer-heading--light h2,
.prayer-heading--light > p {
  color: #fff;
}

.prayer-heading--light > p {
  opacity: 0.88;
}

.full-rosary-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  margin-bottom: clamp(30px, 6vw, 58px);
  padding: clamp(24px, 5vw, 48px);
  color: var(--fjord-deep);
  border: 4px solid rgba(255, 255, 255, 0.66);
  border-radius: 34px;
  background: linear-gradient(145deg, #fffef9, #fff5d7);
  box-shadow: 0 20px 50px rgba(3, 19, 28, 0.28);
}

.full-rosary-card__copy h3 {
  margin-bottom: 14px;
  color: var(--fjord-deep);
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
}

.full-rosary-card__copy > p {
  color: #365d70;
}

.full-rosary-legend {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.full-rosary-legend li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 40px;
  color: #294e60;
}

.full-rosary-legend__bead {
  display: block;
  justify-self: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #815137;
  box-shadow: 0 2px 0 #4b2b1d, 0 3px 8px rgba(18, 59, 83, 0.2);
}

.full-rosary-legend__bead--small {
  width: 20px;
  height: 20px;
}

.full-rosary-legend__bead--large {
  width: 30px;
  height: 30px;
  background: var(--prayer-rose);
  box-shadow: 0 2px 0 #6f2943, 0 3px 8px rgba(18, 59, 83, 0.22);
}

.full-rosary-legend__cross {
  justify-self: center;
  color: #8b6030;
  font-size: 1.8rem;
}

.full-rosary-card .full-rosary-card__note {
  margin-bottom: 0;
  padding: 15px 17px;
  color: #5e2940;
  border-left: 5px solid var(--prayer-rose);
  border-radius: 0 14px 14px 0;
  background: var(--prayer-rose-soft);
}

.full-rosary-figure {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 3vw, 24px);
  border: 2px solid rgba(18, 59, 83, 0.13);
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 7px rgba(237, 248, 247, 0.72);
}

.full-rosary {
  display: block;
  width: min(100%, 570px);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.full-rosary__chain {
  fill: none;
  stroke: #b98a4d;
  stroke-linecap: round;
  stroke-width: 3;
}

.full-rosary__bead {
  stroke: #fff8e3;
  stroke-width: 3;
}

.full-rosary__bead--hail {
  fill: #805039;
}

.full-rosary__bead--father {
  fill: var(--prayer-rose);
  stroke-width: 4;
}

.full-rosary__center ellipse {
  fill: #b98a4d;
  stroke: #fff8e3;
  stroke-width: 4;
}

.full-rosary__center path {
  fill: none;
  stroke: #fff8e3;
  stroke-linecap: round;
  stroke-width: 3;
}

.full-rosary__cross-shape {
  fill: #9f6f35;
  stroke: #fff8e3;
  stroke-linejoin: round;
  stroke-width: 4;
}

.full-rosary__corpus circle {
  fill: #fbe7b1;
  stroke: #805039;
  stroke-width: 1.5;
}

.full-rosary__corpus path {
  fill: none;
  stroke: #fbe7b1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.full-rosary-figure figcaption {
  max-width: 470px;
  margin: 8px auto 0;
  color: #496978;
  font-size: 0.91rem;
  text-align: center;
}

/* Six large choices explain the complete 59-bead rosary without 59 tab stops. */
.rosary-explorer {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: clamp(23px, 4vw, 36px);
  border-top: 3px solid rgba(18, 59, 83, 0.11);
}

.rosary-explorer__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.rosary-explorer__heading h4 {
  margin: 0;
  color: var(--fjord-deep);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.rosary-explorer__heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--prayer-ink-soft);
  text-align: right;
}

.rosary-explorer__choices {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.rosary-explorer__choices button {
  min-width: 0;
  min-height: 58px;
  padding: 10px 8px;
  color: var(--fjord-deep);
  border: 3px solid rgba(18, 59, 83, 0.13);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(18, 59, 83, 0.1);
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.15;
  touch-action: manipulation;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rosary-explorer__choices button:hover {
  transform: translateY(-2px);
}

.rosary-explorer__choices button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--prayer-rose);
  background: var(--prayer-rose);
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(168, 64, 99, 0.27);
}

.rosary-explorer__status {
  min-height: 126px;
  margin-top: 20px;
  padding: 19px 21px;
  border: 3px solid rgba(43, 117, 144, 0.22);
  border-radius: 21px;
  background: var(--prayer-pale);
}

.full-rosary[data-rosary-active-group] .full-rosary__bead,
.full-rosary[data-rosary-active-group] .full-rosary__center,
.full-rosary[data-rosary-active-group] .full-rosary__crucifix {
  opacity: 0.22;
  transition: opacity 180ms ease, filter 180ms ease;
}

.full-rosary[data-rosary-active-group] .is-group-active {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(246, 196, 83, 0.92));
}

.rosary-practice__fallback {
  max-width: 850px;
  margin: 0 auto 28px;
  padding-left: 20px;
  border-color: rgba(246, 196, 83, 0.48);
  background: rgba(255, 249, 223, 0.96);
}

.own-prayer__fallback {
  max-width: 850px;
  margin-inline: auto;
}

.prayer-rosary__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: stretch;
  margin-bottom: clamp(25px, 5vw, 44px);
}

.prayer-mystery {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.09);
}

.prayer-mystery__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--prayer-night);
  border-radius: 50%;
  background: var(--prayer-gold);
  font-size: 1.65rem;
}

.prayer-mystery h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.prayer-mystery p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.prayer-rosary__recipe {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-radius: 28px;
  background: rgba(8, 28, 41, 0.36);
  list-style: none;
}

.prayer-rosary__recipe li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.prayer-rosary__recipe li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--prayer-night);
  border-radius: 50%;
  background: var(--prayer-gold-soft);
  font-family: var(--font-title);
  font-weight: 900;
}

.prayer-rosary__recipe p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.rosary-practice {
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(24px, 5vw, 46px);
  color: var(--fjord-deep);
  border: 4px solid rgba(255, 255, 255, 0.64);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(3, 19, 28, 0.28);
}

.rosary-practice__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.rosary-practice__heading h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
}

.rosary-practice__heading > p {
  max-width: 320px;
  margin: 0;
  color: var(--prayer-ink-soft);
  text-align: right;
}

.rosary-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 12px;
  align-items: center;
  margin: 0 auto 26px;
  padding: 18px;
  border: 2px solid rgba(18, 59, 83, 0.12);
  border-radius: 24px;
  background: #eaf5f3;
}

.rosary-bead {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  margin-inline: auto;
  padding: 0;
  color: var(--fjord-deep);
  border: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

.rosary-bead > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #58879a;
  box-shadow: 0 3px 0 #315d70, 0 5px 12px rgba(18, 59, 83, 0.2);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rosary-bead--large > span:first-child {
  width: 39px;
  height: 39px;
  background: var(--prayer-rose);
  box-shadow: 0 3px 0 #6f2943, 0 6px 14px rgba(18, 59, 83, 0.24);
}

.rosary-bead--finish > span:first-child {
  width: 40px;
  height: 40px;
  color: var(--prayer-night);
  background: var(--prayer-gold);
  box-shadow: 0 3px 0 #b88727, 0 6px 14px rgba(18, 59, 83, 0.22);
  font-size: 1.05rem;
}

.rosary-bead:hover > span:first-child {
  transform: scale(1.12);
}

.rosary-bead[aria-pressed="true"] > span:first-child,
.rosary-bead[aria-current="step"] > span:first-child {
  background: var(--prayer-gold);
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--prayer-blue), 0 7px 16px rgba(18, 59, 83, 0.23);
  transform: scale(1.08);
}

.rosary-bead--finish[aria-pressed="true"] > span:first-child,
.rosary-bead--finish[aria-current="step"] > span:first-child {
  color: #fff;
  background: var(--prayer-rose);
}

.rosary-status {
  min-height: 160px;
  padding: clamp(23px, 4vw, 34px);
  border: 3px solid rgba(246, 196, 83, 0.63);
  border-radius: 25px;
  background: #fff8df;
}

.rosary-status > span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #376175;
  font-family: var(--font-title);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rosary-status h4 {
  margin: 0 0 8px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.rosary-status p {
  margin: 0;
  color: #365d70;
}

.rosary-practice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.rosary-practice__actions .button[disabled] {
  opacity: 0.48;
  cursor: default;
  transform: none;
}

.rosary-practice__actions .button[aria-disabled="true"] {
  opacity: 0.48;
  cursor: default;
  transform: none;
}

.rosary-practice__mystery {
  margin: 0 0 20px;
  padding: 15px 17px;
  color: #5e2940;
  border-left: 5px solid var(--prayer-rose);
  border-radius: 0 15px 15px 0;
  background: var(--prayer-rose-soft);
}

.rosary-practice__permission {
  margin: 24px 0 0;
  padding: 16px 18px;
  color: #365d70;
  border-left: 5px solid var(--prayer-blue);
  border-radius: 0 15px 15px 0;
  background: var(--prayer-pale);
}

.prayer-glory {
  max-width: 810px;
  margin-inline: auto;
  padding: clamp(26px, 5vw, 42px);
  color: var(--fjord-deep);
  border: 3px solid rgba(246, 196, 83, 0.72);
  border-radius: 28px;
  background: #fff9df;
  text-align: center;
}

.prayer-glory h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
}

.prayer-glory p {
  max-width: none;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.08rem, 2.3vw, 1.38rem);
  font-weight: 700;
  line-height: 1.65;
}

/* A child's own short prayer */
.own-prayer__choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 25px;
}

.own-prayer__choices button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  padding: 16px 12px;
  color: var(--fjord-deep);
  border: 3px solid rgba(18, 59, 83, 0.13);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 0 rgba(18, 59, 83, 0.12);
  font-weight: 900;
  line-height: 1.25;
  touch-action: manipulation;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.own-prayer__choices button > span {
  font-size: 1.5rem;
}

.own-prayer__choices button:hover {
  transform: translateY(-2px);
}

.own-prayer__choices button[aria-pressed="true"] {
  border-color: var(--prayer-blue);
  background: var(--prayer-gold-soft);
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(43, 117, 144, 0.42);
}

.own-prayer__line {
  min-height: 116px;
  display: grid;
  place-items: center;
  max-width: 850px;
  margin: 0 auto 22px;
  padding: 24px;
  color: var(--fjord-deep);
  border: 3px solid rgba(246, 196, 83, 0.68);
  border-radius: 26px;
  background: #fff9df;
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.own-prayer__closing {
  max-width: 760px;
  margin: 0 auto;
  color: #476b7b;
  text-align: center;
}

/* Next learning journey */
.prayer-next__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 7vw, 82px);
}

.prayer-next__grid h2 {
  margin-bottom: 15px;
}

.prayer-next__grid p {
  color: var(--prayer-ink-soft);
}

.prayer-next__status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 14px;
  color: var(--fjord-deep);
  border: 2px dashed rgba(18, 59, 83, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-family: var(--font-title);
  font-weight: 850;
}

.prayer-next__links {
  display: grid;
  gap: 12px;
}

.prayer-next__links .button {
  width: 100%;
}

/* Featured prayer card on the Lær hub */
.learn-card--prayer {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #e5f5f4 0%, #fff8df 58%, #f9e8ee 100%);
  border-color: rgba(255, 255, 255, 0.96);
}

.learn-card--prayer .learn-card__link {
  grid-template-columns: minmax(300px, 1.15fr) minmax(0, 0.85fr);
  min-height: 350px;
}

.learn-card--prayer .learn-card__picture {
  display: block;
  min-height: 350px;
  overflow: hidden;
}

.learn-card--prayer .learn-card__picture img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  object-position: 58% center;
}

.learn-card--prayer .learn-card__icon {
  left: calc(57.5% - 29px);
  color: #fff;
  background: var(--prayer-rose, #a84063);
}

/* Responsive layout */
@media (max-width: 940px) {
  .prayer-ways,
  .prayer-ready__steps,
  .own-prayer__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prayer-rosary__layout,
  .prayer-next__grid {
    grid-template-columns: 1fr;
  }

  .learn-card--prayer {
    grid-column: auto;
  }

  .learn-card--prayer .learn-card__link {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  }

  .learn-card--prayer .learn-card__icon {
    left: calc(41% - 29px);
  }

  .cross-practice {
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  }

  .cross-practice__steps {
    grid-template-columns: 1fr;
  }

  .rosary-explorer__choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .prayer-dialogue__turn {
    width: 96%;
  }

  .prayer-dialogue__turn--mamma {
    justify-self: end;
  }

  .prayer-ready__steps {
    grid-template-columns: 1fr;
  }

  .rosary-practice__heading {
    display: block;
  }

  .rosary-practice__heading > p {
    max-width: 520px;
    margin-top: 10px;
    text-align: left;
  }

  .cross-practice {
    grid-template-columns: 1fr;
  }

  .cross-practice__picture img {
    min-height: 0;
    aspect-ratio: 1672 / 941;
  }

  .cross-practice__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rosary-explorer__heading {
    display: block;
  }

  .rosary-explorer__heading > p {
    max-width: 580px;
    margin-top: 8px;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .prayer-page .prayer-hero {
    display: block;
    min-height: 0;
    padding: 0 0 82px;
    background: var(--prayer-night);
  }

  .prayer-page .prayer-hero::before {
    display: none;
  }

  .prayer-page .prayer-hero .page-hero__image {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
    object-position: center center;
  }

  .prayer-page .prayer-hero > .container {
    display: block;
    padding-top: 30px;
  }

  .prayer-page .prayer-hero .page-hero__content {
    width: 100%;
  }

  .prayer-page .prayer-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .prayer-page .prayer-hero .page-hero__trail {
    gap: 8px;
  }

  .prayer-page .prayer-hero .page-hero__trail a {
    min-height: 48px;
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  .prayer-ways,
  .own-prayer__choices {
    grid-template-columns: 1fr;
  }

  .cross-practice {
    border-width: 2px;
    border-radius: 25px;
  }

  .cross-practice__content {
    padding: 24px 17px 27px;
  }

  .cross-practice__steps {
    gap: 10px;
  }

  .cross-practice__steps button {
    min-height: 68px;
    padding-inline: 10px;
  }

  .prayer-story-break {
    margin-top: -10px;
    border-width: 2px;
    border-radius: 23px;
  }

  .prayer-story-break img {
    height: auto;
    aspect-ratio: 1672 / 941;
  }

  .prayer-story-break figcaption {
    padding: 15px 16px 17px;
    text-align: left;
  }

  .rosary-explorer__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rosary-explorer__choices button {
    min-height: 62px;
  }

  .prayer-dialogue__turn {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 17px;
  }

  .prayer-dialogue__turn > span {
    width: 44px;
    height: 44px;
    font-size: 1.08rem;
  }

  .prayer-card {
    border-width: 2px;
    border-radius: 25px;
  }

  .prayer-card__header {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
  }

  .prayer-card__number {
    width: 54px;
    height: 54px;
    font-size: 1.38rem;
  }

  .prayer-card__body {
    padding: 20px 15px 24px;
  }

  .prayer-text {
    padding: 23px 15px;
    border-width: 2px;
    border-radius: 21px;
  }

  .prayer-text p {
    font-size: clamp(1.08rem, 5vw, 1.3rem);
    line-height: 1.6;
  }

  .prayer-explanations summary {
    padding-left: 15px;
    font-size: 0.98rem;
  }

  .prayer-practice__actions,
  .rosary-practice__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .prayer-practice__actions .button,
  .rosary-practice__actions .button {
    width: 100%;
  }

  .prayer-mystery {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 22px 18px;
  }

  .prayer-mystery__mark {
    width: 50px;
    height: 50px;
  }

  .rosary-practice {
    padding: 22px 14px;
    border-width: 3px;
    border-radius: 25px;
  }

  .rosary-track {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 8px;
    padding: 15px 10px;
  }

  .rosary-bead {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .prayer-kindness,
  .prayer-words-note {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 17px;
  }

  .prayer-kindness > span,
  .prayer-words-note > span {
    width: 44px;
    height: 44px;
  }

  .learn-card--prayer .learn-card__link {
    grid-template-columns: 1fr;
  }

  .learn-card--prayer .learn-card__picture,
  .learn-card--prayer .learn-card__picture img {
    min-height: 220px;
    max-height: 280px;
  }

  .learn-card--prayer .learn-card__picture img {
    object-position: center;
  }

  .learn-card--prayer .learn-card__icon {
    top: 192px;
    left: 24px;
  }
}

@media (min-width: 390px) and (max-width: 680px) {
  .rosary-track {
    grid-template-columns: repeat(6, minmax(48px, 1fr));
    gap: 2px;
    padding-inline: 3px;
  }
}

@media (min-width: 370px) and (max-width: 389px) {
  .rosary-track {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 2px;
    padding-inline: 3px;
  }
}

@media (max-width: 369px) {
  .prayer-page .container {
    width: min(calc(100% - 24px), var(--content));
  }

  .prayer-heading {
    margin-bottom: 28px;
  }

  .prayer-ready__steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 19px 15px;
  }

  .prayer-ready__steps li > span {
    width: 44px;
    height: 44px;
  }

  .prayer-card__header {
    display: block;
  }

  .prayer-card__number {
    margin-bottom: 15px;
  }

  .rosary-track {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 2px;
    padding-inline: 3px;
  }

  .own-prayer__line {
    padding-inline: 16px;
  }

  .cross-practice__steps {
    grid-template-columns: 1fr;
  }
}

/* Motion is decorative only. Calm mode and reduced-motion users get a still UI. */
@media (prefers-reduced-motion: reduce) {
  .prayer-page *,
  .prayer-page *::before,
  .prayer-page *::after,
  .learn-card--prayer,
  .learn-card--prayer * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html[data-calm="true"] .prayer-page *,
html[data-calm="true"] .prayer-page *::before,
html[data-calm="true"] .prayer-page *::after,
html[data-calm="true"] .learn-card--prayer,
html[data-calm="true"] .learn-card--prayer * {
  animation: none !important;
  transition: none !important;
}

html[data-calm="true"] .rosary-bead:hover > span:first-child,
html[data-calm="true"] .own-prayer__choices button:hover {
  transform: none;
}
