/* Rahat Home story: a large-print page for families of older parents. Warm coral accent, bigger body text, numbered
   steps in large rings, each phone picture with its caption beside it, a callout card for the limits.
   Chromium 67 safe (no flex gap, clamp or inset). Rewritten 2026-11-19: the first version had no column, no top room
   and plain links. This page is the model frame in STORY_HELPER_BRIEF.md: a new story copies the frame (head tags,
   header, crumb, app badge, footer, body class story-frame), never this page's look. */
@font-face { font-family: 'RH UI'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'RH Display'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2'); }
body.page-rahat-home {
  --accent: #FF9B7A; --accent-ink: #2A1008; --accent-soft: rgba(255, 155, 122, .13);
  --head: 'RH Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'RH UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Frame */
.page-rahat-home main .wrap { max-width: 820px; }
.page-rahat-home main > .wrap:first-child { padding-top: 40px; }
.page-rahat-home .crumb { margin: 0 0 28px; font-size: 15px; }
.page-rahat-home .crumb a { color: var(--muted); text-decoration: none; }
.page-rahat-home .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-rahat-home .crumb a:hover { color: var(--accent); }
.page-rahat-home .story-app { margin-bottom: 36px; }
.page-rahat-home main strong { color: var(--text); font-weight: 600; }
.rh-link, .page-rahat-home .rh-end a:not(.btn) { color: var(--text); text-decoration: underline; -webkit-text-decoration-color: var(--accent); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.rh-link:hover, .page-rahat-home .rh-end a:not(.btn):hover { color: var(--accent); }

/* Title block */
.rh-hero { padding: 0 0 36px; border-bottom: 1px solid var(--hair); }
.rh-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.rh-hero h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.15; }
.rh-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text-2); }

/* Sections: larger print */
.rh-section { padding-top: 44px; }
.rh-h2 { margin: 0 0 18px; font-size: 25px; line-height: 1.25; }
.rh-p { margin: 0 0 20px; font-size: 18px; line-height: 1.7; color: var(--text-2); }

/* Lists: big numbered rings, coral ticks */
.rh-list { list-style: none; margin: 6px 0 26px; padding: 0; }
.rh-list-item { position: relative; margin: 0 0 18px; padding-left: 34px; font-size: 18px; line-height: 1.65; color: var(--text-2); }
ul.rh-list .rh-list-item:before { content: "\2713"; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--accent); }
ol.rh-list { counter-reset: rhstep; }
ol.rh-list .rh-list-item { counter-increment: rhstep; padding-left: 54px; min-height: 36px; }
ol.rh-list .rh-list-item:before { content: counter(rhstep); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font: 700 16px/32px var(--head); text-align: center; }

/* Phone pictures: the caption sits beside the picture on wide screens */
.rh-figure { margin: 32px auto 36px; max-width: 300px; }
.rh-img { display: block; width: 100%; height: auto; border-radius: 22px; }
.rh-caption { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); text-align: center; }
.rh-figure-wide { max-width: 480px; }

/* Limits card and the close */
.rh-callout { margin-top: 16px; padding: 28px 26px 10px; background: var(--surface); border: 1px solid var(--hair); border-top: 4px solid var(--accent); border-radius: 18px; }
.rh-callout .rh-h2 { font-size: 23px; }
.rh-callout ul.rh-list .rh-list-item:before { content: ""; left: 4px; top: .68em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.rh-end { margin: 40px 0 48px; }
.rh-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-rahat-home .rh-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; font-size: 17px; }

@media (min-width: 720px) {
  .rh-figure { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; max-width: none; margin: 36px 0 40px; }
  .rh-figure .rh-img { width: 270px; -webkit-flex: none; flex: none; }
  .rh-figure .rh-caption { -webkit-flex: 1; flex: 1; margin: 0 0 0 32px; padding-top: 16px; border-top: 3px solid var(--accent); font-size: 17px; text-align: left; color: var(--text-2); }
  .rh-figure-wide { display: block; max-width: 480px; margin: 36px auto 40px; }
  .rh-figure-wide .rh-img { width: 100%; }
  .rh-figure-wide .rh-caption { margin: 16px 0 0; padding-top: 0; border-top: 0; font-size: 15px; text-align: center; color: var(--muted); }
}
@media (min-width: 900px) {
  .page-rahat-home main > .wrap:first-child { padding-top: 64px; }
  .rh-hero h1 { font-size: 44px; }
  .rh-lead { font-size: 21px; }
  .rh-section { padding-top: 60px; }
  .rh-h2 { font-size: 30px; }
}
