/* One small stylesheet for the header's own pages: find-a-roommate.html, partner-with-us.html,
   contact.html and add-property.html. They load this and css/site-nav.css and nothing else, so
   moving between them reuses the cache. Colours are the story homepage's (css/story.css).

   One type scale for all four: page title 64px · lede 18px · card or section heading 22px bold ·
   small heading 16px semibold · body 16px · labels and controls 15px semibold · notes 14px. */

@font-face { font-family: Manrope; src: url('../fonts/manrope-regular.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: Manrope; src: url('../fonts/manrope-semibold.woff2') format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: Manrope; src: url('../fonts/manrope-bold.woff2') format('woff2'); font-weight: 700; font-display: block; }

:root {
  --font: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --orange: #ff4400;
  --grad-brand: linear-gradient(100deg, #e84b19, #fc9b04);
  --on-grad: #fff;
  --error: #b93408;
  --ok: #17794f;
  --hm-ink: #191919;
  --hm-body: #4f4f4f;
  --hm-soft: #666;
  --hm-bg: #fff;
  --hm-card: #fff;
  --hm-field: #fff;
  --hm-peach: #fdf3ea;
  --hm-pop: #fdf0e6;
  --hm-line: rgba(25, 25, 25, .13);
  --field-line: rgba(25, 25, 25, .32);
  --hm-lift: 0 1px 2px rgba(25, 20, 12, .05);
  --hm-shadow: 0 1px 1px rgba(25, 20, 12, .04), 0 18px 50px -14px rgba(50, 34, 16, .22);
  --hm-scrim: rgba(36, 22, 12, .5);
  --glow: #fff5ec;
  color-scheme: light;
}
[data-theme="dark"] {
  --orange: #ef8000;
  --on-grad: #fff;
  --error: #ff9d7a;
  --ok: #5fd3a2;
  --hm-ink: #fff;
  --hm-body: #bdbdbd;
  --hm-soft: #a0a0a0;
  --hm-bg: #111;
  --hm-card: #1b1b1b;
  --hm-field: #222;
  --hm-peach: #262019;
  --hm-pop: #2a2118;
  --hm-line: rgba(255, 255, 255, .13);
  --field-line: rgba(255, 255, 255, .34);
  --hm-lift: none;
  --hm-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 22px 56px -14px rgba(0, 0, 0, .7);
  --hm-scrim: rgba(10, 7, 4, .66);
  --glow: #1d1712;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: linear-gradient(var(--glow), var(--hm-bg) 460px) no-repeat var(--hm-bg); color: var(--hm-ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hm-sprite { position: absolute; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-skip { position: fixed; top: -60px; left: 12px; z-index: 1100; padding: .6rem 1rem; border-radius: 8px; background: var(--hm-card); color: var(--hm-ink); font-weight: 600; }
.hm-skip:focus { top: 12px; }

/* ── The page ─────────────────────────────────────────────────────────── */
.pg-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 56px); }
.pg-head { padding-block: clamp(20px, 4vw, 44px) clamp(20px, 3vw, 32px); }
.pg-head h1, .pg-title { font-size: clamp(2.25rem, 1.45rem + 3.2vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; }
.pg-head h1 em, .pg-title em { color: var(--orange); font-style: normal; }
.pg-lede { max-width: 56ch; margin-top: 14px; color: var(--hm-body); font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }
.pg-link { color: var(--orange); font-weight: 600; text-underline-offset: 3px; }
.pg-more { margin-top: 24px; }
.pg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; padding-block: clamp(20px, 4vw, 44px) clamp(48px, 7vw, 88px); }
.pg-list { display: grid; gap: 16px; margin-top: 28px; }
.pg-list li { display: flex; gap: 12px; color: var(--hm-body); }
.pg-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--orange); }
.pg-list strong { display: block; color: var(--hm-ink); font-weight: 600; }
.pg-list a { font-weight: 600; text-underline-offset: 3px; }
.pg-card { min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--hm-line); border-radius: 20px; background: var(--hm-card); box-shadow: var(--hm-shadow); }

.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 26px; border: 0; border-radius: 12px; background: var(--grad-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 16px rgba(255, 68, 0, .3); color: var(--on-grad); cursor: pointer; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; transition: filter .15s ease; }
.pg-btn:hover { filter: brightness(1.06); }
.pg-btn:disabled { opacity: .6; cursor: wait; }
.pg-btn--wide { width: 100%; }
.pg-btn--line { background: none; border: 1px solid var(--field-line); box-shadow: none; color: var(--hm-ink); font-weight: 600; }
.pg-btn--line:hover { border-color: var(--orange); filter: none; }
.pg-text-btn { padding: 4px 0; border: 0; background: none; color: var(--hm-soft); cursor: pointer; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pg-text-btn:hover { color: var(--orange); }

/* ── Fields ───────────────────────────────────────────────────────────── */
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.f-wide { grid-column: 1 / -1; }
.f-label, .f label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.f small, .f-label small { color: var(--hm-soft); font-size: inherit; font-weight: 400; }
.f input, .f select, .f textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--hm-field); font-size: 1rem; transition: border-color .15s ease; }
.f textarea { min-height: 124px; resize: vertical; }
.f select { padding-right: 40px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8377' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
.f ::placeholder { color: var(--hm-soft); opacity: 1; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--hm-soft); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--orange); outline: 1px solid var(--orange); outline-offset: 0; }
.f [aria-invalid="true"], .f .error { border-color: var(--error); }
.f-hint { margin-top: 6px; color: var(--hm-soft); font-size: .875rem; line-height: 1.45; }
.field-error { display: block; margin-top: 6px; color: var(--error); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.field-error:empty { display: none; }
.f-more { margin-top: 18px; border-top: 1px solid var(--hm-line); }
.f-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--hm-ink); cursor: pointer; font-weight: 600; list-style: none; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more summary::after { content: '+'; color: var(--orange); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.f-more[open] summary::after { content: '\2212'; }
.f-more__body { padding: 4px 0 8px; animation: pg-rise .24s ease both; }
.f-note { margin-top: 18px; color: var(--hm-soft); font-size: .875rem; line-height: 1.5; }
.f-note a { text-decoration: underline; text-underline-offset: 2px; }
.f-submit { margin-top: 18px; }
.f-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--error); border-radius: 12px; color: var(--hm-ink); font-size: .9375rem; }
.f-alert:focus { outline: 0; }

.pg-done { padding: 20px 0; text-align: center; animation: pg-rise .32s ease both; }
.pg-done h2 { margin-top: 16px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.pg-done p { max-width: 44ch; margin: 10px auto 24px; color: var(--hm-body); }
.pg-done:focus { outline: 0; }
.pg-tick { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad-brand); color: var(--on-grad); }
.pg-tick svg { width: 28px; height: 28px; stroke-width: 2.4; }

/* ── js/partner.js's notices ──────────────────────────────────────────── */
.partner-error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--error); border-radius: 12px; font-size: .9375rem; }
.partner-error:focus { outline: 0; }
.partner-success { padding: 20px 0; text-align: center; }
.partner-success h2 { margin-top: 16px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.partner-success p { max-width: 44ch; margin: 10px auto 24px; color: var(--hm-body); }
.partner-success:focus { outline: 0; }
.partner-success-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad-brand); color: var(--on-grad); font-size: 1.75rem; font-weight: 700; }
.roomrr-toast-region { position: fixed; z-index: 1300; inset: auto 16px 16px auto; display: grid; gap: 12px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.roomrr-toast { display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--hm-line); border-left: 4px solid var(--error); border-radius: 14px; background: var(--hm-card); box-shadow: var(--hm-shadow); pointer-events: auto; animation: pg-rise .24s ease both; }
.roomrr-toast.success { border-left-color: var(--ok); }
.roomrr-toast-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--error); color: var(--hm-card); font-weight: 700; }
.roomrr-toast.success .roomrr-toast-icon { background: var(--ok); }
.roomrr-toast-copy { min-width: 0; font-size: .875rem; line-height: 1.45; }
.roomrr-toast-copy strong { display: block; font-size: .9375rem; }
.roomrr-toast-close { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--hm-soft); cursor: pointer; font-size: 1.25rem; }

/* ── Contact: js/support-form.js's states ─────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-error-msg { display: none; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--error); border-radius: 12px; font-size: .9375rem; }
.form-success { display: none; padding: 20px 0; text-align: center; }
.form-success h2 { margin-top: 16px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.form-success p { max-width: 44ch; margin: 10px auto 0; color: var(--hm-body); }
.success-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad-brand); color: var(--on-grad); }
.success-icon svg { width: 28px; height: 28px; }
.support-from-app { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: var(--hm-peach); font-size: .9375rem; }
.btn-loading { display: none; }
.file-drop { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; border: 1px dashed var(--field-line); border-radius: 12px; cursor: pointer; font-weight: 400; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.file-drop:hover, .file-drop.dragover { border-color: var(--orange); background: var(--hm-peach); }
.file-drop svg { width: 22px; height: 22px; margin-bottom: 4px; color: var(--hm-soft); }
.file-drop strong { font-weight: 600; }
.file-drop em { color: var(--orange); font-style: normal; }
.file-drop small { color: var(--hm-soft); font-size: .875rem; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-item { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--hm-peach); font-size: .875rem; }
.file-item svg { flex: none; width: 18px; height: 18px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: none; color: var(--hm-soft); }
.file-remove { flex: none; width: 28px; height: 28px; padding: 5px; border: 0; background: none; cursor: pointer; }

/* ── Find a roommate: the filters ─────────────────────────────────────── */
/* Filters apply as they change. js/roommates.js fills the list, so its elements stay as they are. */
.rf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rf-bar .hm-form { display: flex; flex: 1 1 520px; gap: 10px; min-width: 0; }
.hm-field, .hm-pick { position: relative; display: flex; flex: 1 1 0; align-items: center; min-width: 0; height: 46px; padding-inline: 14px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-field); transition: border-color .15s ease; }
.hm-field:hover, .hm-pick:hover { border-color: var(--orange); }
.hm-field:focus-within, .hm-pick:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.hm-field > svg:first-child { flex: none; width: 18px; height: 18px; color: var(--hm-soft); }
.hm-field select, .hm-pick select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 34px 0 40px; border: 0; outline: 0; appearance: none; background: transparent; cursor: pointer; font-size: .9375rem; font-weight: 600; text-overflow: ellipsis; }
.hm-pick select { padding-left: 14px; }
.hm-field option, .hm-pick option { background: var(--hm-field); color: var(--hm-ink); }
.hm-field__chev, .hm-pick__chev { position: absolute; right: 11px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--hm-soft); pointer-events: none; }
.rf-bar .rm-life summary { padding-left: 40px; font-size: .9375rem; }
.rf-bar .rm-seg { flex: none; border-radius: 12px; }
.rf-bar .rm-seg button { padding-inline: 16px; }
.rm-people { padding-bottom: clamp(32px, 5vw, 56px); }
.rm-head { margin-top: 26px; }
.rm-head .rm-sort { flex: 0 1 210px; width: auto; }
/* Loaded after this file, css/roommates.css sizes this heading for the story page; here it is a card heading like the others. */
.pg-wrap .rm-head h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; color: var(--hm-body); }
.pg-wrap .rm-head h2 strong { font-size: 1.375rem; font-weight: 700; color: var(--hm-ink); }
.pg-wrap .rm-seg button, .pg-wrap .rm-life__menu label { font-size: .9375rem; }
/* The sheet has the rest of a person; a card only needs enough to choose whom to open. */
.rm-grid .rm-bio, .rm-grid .rm-tags li:nth-child(n+3) { display: none; }
.rm-grid .rm-facts { margin-bottom: 16px; }
.rm-grid .rm-btn { background: none; border: 1px solid var(--field-line); color: var(--hm-ink); font-size: .9375rem; font-weight: 600; }
.rm-grid .rm-btn:hover { border-color: var(--orange); color: var(--orange); filter: none; }
.rm-sheet .rm-btn { color: var(--on-grad); }
.rm-grid { margin-bottom: 0; }
.hm-places__none { grid-column: 1 / -1; padding: 40px 16px; border: 1px dashed var(--hm-line); border-radius: 18px; color: var(--hm-body); text-align: center; }
.hm-places__none button { margin-top: 8px; padding: 6px 14px; border: 1px solid var(--field-line); border-radius: 10px; background: none; cursor: pointer; font-weight: 600; }

.rf-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--hm-line); }
.rf-how__n { display: block; margin-bottom: 8px; color: var(--orange); font-size: .875rem; font-weight: 700; }
.rf-how h2 { font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.rf-how p { margin-top: 6px; color: var(--hm-body); font-size: 1rem; }
.rf-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: clamp(48px, 7vw, 88px); padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--hm-peach); }
.rf-cta h2 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.rf-cta p { margin-top: 4px; color: var(--hm-body); }
.rf-cta__do { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.pg-foot { border-top: 1px solid var(--hm-line); color: var(--hm-soft); font-size: .875rem; }
.pg-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 24px; }
.pg-foot ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pg-foot a { display: inline-block; padding-block: 4px; text-decoration: none; }
.pg-foot a:hover { color: var(--orange); }
.pg-foot__mail { font-weight: 600; }

/* ── Add a property ───────────────────────────────────────────────────── */
.ap { max-width: 720px; margin-inline: auto; padding-bottom: clamp(48px, 7vw, 88px); }
.ap .pg-head { padding-bottom: 24px; }
.ap-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; counter-reset: step; }
.ap-progress li { padding-top: 10px; border-top: 3px solid var(--hm-line); color: var(--hm-soft); font-size: .875rem; font-weight: 600; line-height: 1.3; transition: border-color .25s ease, color .25s ease; }
.ap-progress .is-done { border-top-color: var(--orange); }
.ap-progress [aria-current] { border-top-color: var(--orange); color: var(--hm-ink); }
.ap-step { animation: pg-rise .28s ease both; }
.ap-step__title { margin-bottom: 18px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.ap-step__title:focus { outline: 0; }
.ap-group + .ap-group, .f-grid + .ap-group, .ap-group + .f-grid { margin-top: 22px; }
.ap-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-tile, .ap-chip { position: relative; display: block; cursor: pointer; }
.ap-tile input, .ap-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ap-tile span { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 92px; padding: 14px 12px; border: 1px solid var(--field-line); border-radius: 14px; font-size: .9375rem; font-weight: 600; line-height: 1.25; transition: border-color .15s ease, background-color .15s ease; }
.ap-tile svg { width: 22px; height: 22px; color: var(--hm-soft); }
.ap-chip span { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--field-line); border-radius: 999px; font-size: .9375rem; font-weight: 600; line-height: 1.2; transition: border-color .15s ease, background-color .15s ease; }
.ap-tile:hover span, .ap-chip:hover span { border-color: var(--orange); }
.ap-tile input:checked + span, .ap-chip input:checked + span { border-color: var(--orange); background: var(--hm-pop); box-shadow: inset 0 0 0 1px var(--orange); }
.ap-tile input:checked + span svg { color: var(--orange); }
.ap-tile input:focus-visible + span, .ap-chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.ap-pin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ap-pin .pg-btn { min-height: 44px; padding-inline: 16px; font-size: .9375rem; }
.ap-pin svg { width: 18px; height: 18px; }
.ap-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ap-photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--hm-peach); }
.ap-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-photo b { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .68); color: #fff; font-size: .75rem; font-weight: 600; }
.ap-photo button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .68); color: #fff; cursor: pointer; font-size: 1.125rem; line-height: 1; }
.ap-add { display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 1; padding: 8px; border: 1px dashed var(--field-line); border-radius: 12px; color: var(--hm-body); cursor: pointer; font-size: .875rem; font-weight: 600; line-height: 1.25; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.ap-add:hover, .ap-add:focus-within { border-color: var(--orange); background: var(--hm-peach); }
.ap-add svg { width: 24px; height: 24px; color: var(--orange); }
.ap-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ap-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.ap-foot .pg-btn:only-child { margin-left: auto; }
.ap-foot__next { flex: 1 1 auto; max-width: 280px; margin-left: auto; }
.ap-call { display: block; margin: 16px auto 0; }
.ap-otp input { max-width: 240px; font-size: 1.375rem; font-weight: 600; letter-spacing: .24em; }
.ap-status { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-weight: 600; }
.ap-spin { flex: none; width: 24px; height: 24px; border: 3px solid var(--hm-line); border-top-color: var(--orange); border-radius: 50%; animation: pg-spin .8s linear infinite; }
.ap-bar { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: var(--hm-line); }
.ap-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad-brand); transition: width .3s ease; }

@keyframes pg-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pg-spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 960px) {
  .pg-split { grid-template-columns: minmax(0, 1fr); }
  .rf-bar .rm-seg { order: -1; width: 100%; }
  .rf-bar .rm-seg button { flex: 1; padding-inline: 8px; }
  .rf-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .rf-bar .hm-form { flex-wrap: wrap; flex-basis: 100%; }
  .rf-bar .hm-form .hm-field { flex: 1 1 calc(50% - 5px); }
  .rf-bar .hm-field { padding-inline: 10px; }
  .rf-bar .hm-field select { padding: 0 26px 0 34px; font-size: .875rem; }
  .rf-bar .rm-life summary { padding-left: 34px; font-size: .875rem; }
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .f-grid .f-half { grid-column: auto; }
  .ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-tile span { min-height: 80px; }
  .rf-cta__do, .rf-cta__do .pg-btn { width: 100%; }
  .pg-foot__in { flex-direction: column; align-items: flex-start; }
}

/* ── Moving between pages ─────────────────────────────────────────────── */
/* Lives in css/site-nav.css now, so every page the header links to moves the same way. */
@media (prefers-reduced-motion: reduce) {
  .ap-step, .pg-done, .f-more__body, .roomrr-toast { animation: none; }
}
