/* sundayvisit.com.au/guides/*: answer-first guide pages for families. Static pages with no app
   code, in the same look as /research (research.css): the same paper, inks and fonts, header and footer.
   Newsreader for headings, Outfit for what you read and press.

   Body text 19px or more, nothing under 18px (staticPageTextSize.test.ts). Every clamp() has a plain
   line before it for Chrome 78; flex layouts use margins, not gap (Chrome 78 has no flex gap). */

:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --card: #fffcf7;
  --ink: #13243b;
  --ink-soft: #4a5363;
  --pine: #245447;
  --pine-hover: #1b4338;
  --ring: #8a6420;
  --bezel: #1d2b2a;
  --sun: #f3dfb4;
  --rule: rgba(19, 36, 59, .12);
  /* The Home tiles' colours (theme.css), so each part of the page wears the colour it has in the app. */
  --sky: #d3e0ea;
  --sand: #ecdfc8;
  --sage: #d6e2d3;
  --lavender: #ddd6e7;
  --butter: #f1e6c3;
  --rose: #ecd4cf;
  --mist: #e2e7e1;
  --deep-sky: #46677f;
  --deep-sand: #85673a;
  --deep-sage: #466555;
  --deep-lavender: #635782;
  --deep-butter: #7f7030;
  --deep-rose: #8a5751;
  --deep-mist: #4f5f58;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: 1.25rem;
  --max: 74rem;
}

/* The homepage's text sizes (site-header.js): 100%, then 115% and 130% of it. Wide screens start at 110%, as on the homepage. */
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
html.sv-size-2 { font-size: 115%; }
html.sv-size-3 { font-size: 130%; }
@media (min-width: 768px) {
  html { font-size: 110%; }
  html.sv-size-2 { font-size: 126.5%; }
  html.sv-size-3 { font-size: 143%; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--pine-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 6rem; }

/* ---------- Header: the same as /research ---------- */
.sv-skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 110;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fffdf8;
  font-weight: 600;
  text-decoration: none;
}
.sv-skip:focus { top: .75rem; color: #fffdf8; }
.sv-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: .5rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid rgba(19, 36, 59, .07);
}
.sv-header-home { display: block; flex: none; border-radius: 12px; }
.sv-logo { display: block; width: auto; height: 44px; }
.sv-header-tools { display: flex; align-items: center; }
.sv-header-tools > * + * { margin-left: .6rem; }
.sv-header-link { display: none; }
.sv-header .sv-header-cta { display: none; }

/* Text size: three A's, smallest to largest, like the homepage. Shown only once site-header.js runs. */
.sv-textsize {
  display: inline-flex;
  align-items: flex-end;
  padding: 3px;
  border: 1px solid rgba(19, 36, 59, .18);
  border-radius: 14px;
  background: rgba(255, 252, 247, .7);
}
.sv-textsize[hidden] { display: none; }
.sv-textsize button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--serif);
  line-height: 1;
  cursor: pointer;
}
.sv-textsize button + button { margin-left: 2px; }
.sv-textsize-1 { font-size: 1.125rem; }
.sv-textsize-2 { font-size: 1.4rem; }
.sv-textsize-3 { font-size: 1.7rem; }
.sv-textsize button[aria-pressed="true"] { background: var(--ink); color: #fffdf8; }

.sv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.4rem;
  border-radius: 16px;
  font: 600 1.125rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
a.sv-button-primary { background: var(--pine); color: #fffdf8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 16px -8px rgba(19, 36, 59, .5); }
a.sv-button-primary:hover { background: var(--pine-hover); color: #fffdf8; }

/* ---------- The guide (v4) ----------
   One centred container (--col) carries everything, the opening included, so every part shares one left
   edge. Running text inside it is held to about 700px (--measure) so lines stay easy to read.
   Spacing has two steps only: --gap-card between cards that belong together (opening, checklist, steps),
   --gap-section between parts. Everything sits on the page's own paper, so no band of another colour
   ever shows between parts. */
:root {
  --col: 56rem;
  --measure: 40rem;
  --gap-card: 1.5rem;
  --gap-section: 4rem;
  --card-pad-y: 1.75rem;
  --card-pad-x: 1.4rem;
  --radius-card: 28px;
  --shadow-card: inset 0 0 0 1px rgba(19, 36, 59, .1), 0 1px 2px rgba(19, 36, 59, .05), 0 22px 44px -36px rgba(19, 36, 59, .5);
  --shadow-card-hover: inset 0 0 0 1px rgba(19, 36, 59, .16), 0 2px 4px rgba(19, 36, 59, .06), 0 28px 54px -34px rgba(19, 36, 59, .58);
}
.sv-guide { padding-bottom: var(--gap-section); }
.sv-guide h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.875rem;
  font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.375rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
}
.sv-guide strong { font-weight: 600; }
/* Long links (help-page titles) wrap instead of pushing the page sideways at 320px. */
.sv-guide a { overflow-wrap: anywhere; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.sv-guide a:hover { text-decoration-thickness: 2px; }
.sv-guide p + p, .sv-guide p + ul, .sv-guide p + ol, .sv-guide ul + p, .sv-guide ol + p { margin-top: 1rem; }
.sv-guide h2 + p, .sv-guide h2 + ul, .sv-guide h2 + ol { margin-top: 1rem; }
.sv-guide ul:not(.sv-ticks) { padding-left: 1.4em; list-style: disc; }
.sv-guide ol { padding-left: 1.6em; list-style: decimal; }
.sv-guide li { padding-left: .2em; }
.sv-guide li + li { margin-top: .6rem; }
.sv-guide li::marker { color: var(--pine); }

/* Opening: a large serif title, the photo, then the first words. Stacked on a phone; side by side on a wide screen. */
.sv-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "photo" "intro";
  max-width: var(--col);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
}
.sv-hero h1 {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.5rem;
  font-size: clamp(2.5rem, 1.55rem + 3.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.sv-guide-photo { grid-area: photo; margin-top: 1.5rem; }
.sv-guide-photo img {
  width: 100%;
  border-radius: 24px;
  background: var(--sand);
  box-shadow: 0 1px 2px rgba(19, 36, 59, .06), 0 34px 64px -42px rgba(19, 36, 59, .55);
}
.sv-guide-intro { grid-area: intro; margin-top: 1.5rem; }
.sv-guide-intro p { font-size: 1.3125rem; line-height: 1.6; }
.sv-guide-intro p:first-child { color: var(--ink); }
.sv-guide-intro p + p { color: var(--ink-soft); }

/* Parts: one column each. The checklist follows the opening, and the steps follow the checklist, at the
   card gap; every other part starts one section gap after the last. */
.sv-band { background: transparent; }
.sv-band-inner { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.sv-band { margin-top: var(--gap-section); }
.sv-hero + .sv-band-check { margin-top: calc(var(--gap-card) + .5rem); }
.sv-band-check + .sv-band-steps { margin-top: var(--gap-card); }

/* Cards: the checklist, the steps and the Sunday Visit card share one radius, padding and shadow. */
.sv-checkbox, .sv-step, .sv-app {
  position: relative;
  padding: var(--card-pad-y) var(--card-pad-x) calc(var(--card-pad-y) + .25rem);
  border-radius: var(--radius-card);
}

/* Before you start: a soft green box with ticks, like a list you can work down. */
.sv-checkbox { background: var(--sage); box-shadow: inset 0 0 0 1px rgba(70, 101, 85, .22); }
.sv-checkbox-icon { position: absolute; top: var(--card-pad-y); right: var(--card-pad-x); width: 40px; height: 40px; color: var(--deep-sage); }
.sv-checkbox h2 { padding-right: 3.25rem; }
.sv-guide .sv-ticks { margin-top: 1.25rem; padding-left: 0; list-style: none; }
.sv-ticks li { position: relative; padding-left: 2.75rem; }
.sv-ticks li + li { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid rgba(70, 101, 85, .2); }
.sv-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--deep-sage);
}
.sv-ticks li::after {
  content: "";
  position: absolute;
  left: .62rem;
  top: .42em;
  width: .45rem;
  height: .85rem;
  border: solid #fffdf8;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.sv-ticks li + li::before { top: calc(.85rem + .1em); }
.sv-ticks li + li::after { top: calc(.85rem + .42em); }

/* The five steps: one card each. The number tile sits beside the heading; the small picture in the tile
   colour sits quietly in the corner. */
.sv-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-column-gap: 1.1rem;
  align-items: center;
  background: var(--card);
  box-shadow: var(--shadow-card);
  -webkit-transition: box-shadow .2s ease;
  transition: box-shadow .2s ease;
}
.sv-step:hover { box-shadow: var(--shadow-card-hover); }
.sv-step + .sv-step { margin-top: var(--gap-card); }
.sv-step-badge { grid-column: 1; grid-row: 1; align-self: start; }
.sv-step-body { display: contents; }
.sv-step-body > * { grid-column: 1 / -1; }
.sv-step-body > h2 { margin-top: 1.1rem; }
.sv-step-body > h2 + * { margin-top: 1.25rem; }
.sv-step-body > p, .sv-step-body > ul, .sv-step-body > ol, .sv-app-text p { max-width: var(--measure); }
.sv-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 18px;
  background: var(--tone);
  box-shadow: inset 0 0 0 1px rgba(19, 36, 59, .06);
  color: var(--ink);
  font: 400 2.25rem/1 var(--serif);
  font-variation-settings: "opsz" 72;
}
.sv-step-n::before { content: attr(data-n); }
.sv-step-icon { position: absolute; top: var(--card-pad-y); right: var(--card-pad-x); width: 32px; height: 32px; color: var(--tone-deep); opacity: .85; }
.sv-step-label { display: block; margin-bottom: .25rem; color: var(--tone-deep); font: 600 1.125rem/1.3 var(--sans); letter-spacing: .02em; }
.sv-tone-sky { --tone: var(--sky); --tone-deep: var(--deep-sky); }
.sv-tone-sand { --tone: var(--sand); --tone-deep: var(--deep-sand); }
.sv-tone-sage { --tone: var(--sage); --tone-deep: var(--deep-sage); }
.sv-tone-lavender { --tone: var(--lavender); --tone-deep: var(--deep-lavender); }
.sv-tone-rose { --tone: var(--rose); --tone-deep: var(--deep-rose); }
/* A step's own photo (the chair exercises guide): under its words, no wider than a calm reading width. */
.sv-step-photo { max-width: 30rem; margin-top: 1.25rem; }
.sv-step-photo img { width: 100%; border-radius: 18px; background: var(--sand); }

/* Where Sunday Visit fits: one calm white card. The app's own screens come first: above the words on a
   phone, and beside them on a wide screen with the words wrapping round, so it never reads as a wall of
   words and then a block of phones. */
.sv-app {
  display: flow-root;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.sv-app-text p + p { margin-top: 1.15rem; }
/* Each live app's name and the stores' own badges, under the words (24 Nov 2026): one tap to the listing. Added at
   build by scripts/store-links-apply.mjs once a store link is live. Side by side when there's room, else stacked. */
.sv-app-get { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 1.75rem; }
.sv-app-get-item p { margin: 0; }
.sv-app-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem !important; }
.sv-app-badge { display: inline-flex; align-items: center; min-height: 48px; border-radius: 10px; }
.sv-app-badge img { display: block; width: auto; height: 56px; }
.sv-app-marks { flex-basis: 100%; margin: 0; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.5; }
.sv-app-phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 2rem;
}
.sv-phone {
  flex: none;
  width: 44%;
  max-width: 12.5rem;
  padding: 6px;
  border-radius: 32px;
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 4px rgba(19, 36, 59, .08), 0 30px 60px -30px rgba(19, 36, 59, .6);
}
.sv-phone img { width: 100%; border-radius: 26px; background: #f4efe6; }
.sv-phone + .sv-phone { margin-left: 5%; margin-top: 2.5rem; }

/* Learning together (guide 6): plain words, no card. */
.sv-plain p { max-width: 40rem; }

/* Questions: dividers, one line each that opens, a big target, a plus that turns to a minus, and the focus ring. */
.sv-faq-list { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.sv-faq-item { border-bottom: 1px solid var(--rule); }
.sv-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  margin: 0 -.75rem;
  padding: 1.1rem .75rem;
  list-style: none;
  cursor: pointer;
  border-radius: 14px;
  -webkit-transition: background-color .2s ease;
  transition: background-color .2s ease;
}
.sv-faq-item summary::-webkit-details-marker { display: none; }
.sv-faq-item summary::marker { content: ""; }
.sv-faq-item summary:focus { outline: none; }
.sv-faq-item summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.sv-faq-item summary:hover { background: rgba(19, 36, 59, .04); }
.sv-faq-q { padding-right: 1.25rem; font: 400 1.4375rem/1.3 var(--serif); font-variation-settings: "opsz" 36; }
.sv-faq-item summary:hover .sv-faq-q { color: var(--pine); }
.sv-faq-sign { position: relative; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px rgba(19, 36, 59, .18); }
.sv-faq-item[open] .sv-faq-sign { background: var(--sky); box-shadow: none; }
.sv-faq-sign::before, .sv-faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 2.5px; margin: -1.25px 0 0 -.5rem; border-radius: 2px; background: var(--ink); }
.sv-faq-sign::after { -webkit-transform: rotate(90deg); transform: rotate(90deg); -webkit-transition: -webkit-transform .2s ease; transition: transform .2s ease; }
.sv-faq-item[open] .sv-faq-sign::after { -webkit-transform: none; transform: none; }
.sv-faq-item p { max-width: 40rem; padding: 0 3.5rem 1.75rem 0; color: var(--ink); }

/* ---------- All guides: /guides/ ----------
   The title and a line of intro, then one card per guide: its photo, its title and one sentence from its
   own opening. One column on a phone, two side by side from 640px. The whole card is the link (the title's
   ::after covers it), so there is one link per guide. The photos are decoration here (alt=""): the title
   says where the card goes, and each guide keeps the photo's full description. */
.sv-hero-index .sv-guide-intro { max-width: var(--measure); }
.sv-hero + .sv-band-index { margin-top: calc(var(--gap-card) + 1rem); }
.sv-guide ul.sv-index-list { display: grid; grid-template-columns: minmax(0, 1fr); grid-row-gap: var(--gap-card); grid-column-gap: var(--gap-card); padding-left: 0; list-style: none; }
.sv-guide .sv-index-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); -webkit-transition: box-shadow .2s ease; transition: box-shadow .2s ease; }
.sv-guide .sv-index-card + .sv-index-card { margin-top: 0; }
.sv-index-card:hover { box-shadow: var(--shadow-card-hover); }
.sv-index-card img { flex: none; width: 100%; height: auto; background: var(--sand); }
.sv-index-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; padding: 1.5rem var(--card-pad-x) 1.75rem; }
.sv-guide .sv-index-body h2 { font-size: 1.5rem; font-size: clamp(1.5rem, 1.35rem + .45vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "opsz" 36; text-wrap: pretty; }
.sv-index-body h2 a { color: var(--ink); text-decoration: none; }
.sv-index-body h2 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: var(--radius-card); }
.sv-index-card:hover h2 a { color: var(--pine); text-decoration: underline; text-decoration-thickness: 1px; }
.sv-index-body h2 a:focus-visible { outline: none; }
.sv-index-body h2 a:focus-visible::after { outline: 3px solid var(--ring); outline-offset: -3px; }
.sv-guide .sv-index-body h2 + p { margin-top: .75rem; color: var(--ink-soft); }
.sv-index-go { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-top: auto; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(19, 36, 59, .14); color: var(--pine); -webkit-transition: background-color .2s ease, color .2s ease; transition: background-color .2s ease, color .2s ease; }
.sv-index-body p + .sv-index-go { margin-top: auto; }
.sv-index-body p { margin-bottom: 1.25rem; }
.sv-index-card:hover .sv-index-go { background: var(--pine); color: #fffdf8; box-shadow: none; }
@media (min-width: 640px) {
  .sv-guide ul.sv-index-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sv-index-body { padding: 1.75rem 2rem 2rem; }
}
@media (min-width: 900px) {
  .sv-hero-index .sv-hero-inner, .sv-hero-no-photo .sv-hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "title" "intro"; }
  .sv-hero-index .sv-guide-intro, .sv-hero-no-photo .sv-guide-intro { margin-top: 1.25rem; }
}

/* ---------- Footer: the same as /research ---------- */
.sv-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-row-gap: 2rem;
  max-width: var(--col);
  margin: 0 auto;
  padding: 3rem var(--gutter) 3.5rem;
  font-size: 1.125rem;
}
.sv-footer .sv-logo { height: 44px; }
.sv-footer-brand p { margin-top: .5rem; color: var(--ink-soft); }
.sv-footer-links, .sv-footer-social { display: flex; flex-wrap: wrap; margin: -.4rem 0 0 -1.25rem; }
.sv-footer-links a, .sv-footer-social a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; margin: .2rem 0 0 1.25rem; color: var(--ink); }
.sv-footer-social a { color: var(--ink-soft); }
.sv-footer-legal { color: var(--ink-soft); max-width: 46em; }
/* SVWD-30: the email address breaks only when it is wider than the line (200% text on a phone); break-word first
   for Chrome 78, which has no overflow-wrap: anywhere. */
.sv-footer-legal a { overflow-wrap: break-word; overflow-wrap: anywhere; }

/* SVWD-30: 200% text on a phone. The side gutter and the rem-sized FAQ sign, tick column and paddings stay at their
   standard-text px sizes, so standard text looks the same and the words get the line back. Chrome 78, which has no
   min(), keeps the rem sizes. Words wider than the whole line (emails, web addresses) break as a last resort; tables
   and the word scramble's letters keep whole words. */
@media (max-width: 30rem) {
  :root { --gutter: 20px; }
  .sv-faq-item summary { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .sv-faq-sign { width: 2.75rem; width: min(2.75rem, 44px); height: 2.75rem; height: min(2.75rem, 44px); }
  .sv-faq-q { padding-right: 1.25rem; padding-right: min(1.25rem, 20px); }
  .sv-faq-item p { padding-right: 3.5rem; padding-right: min(3.5rem, 56px); }
  .sv-ticks li { padding-left: 2.75rem; padding-left: min(2.75rem, 44px); }
  .sv-ticks li::before { width: 1.75rem; width: min(1.75rem, 28px); height: 1.75rem; height: min(1.75rem, 28px); }
  .sv-hero h1 { font-size: 2.5rem; font-size: min(clamp(2.5rem, 1.55rem + 3.4vw, 4.25rem), 52px); }
  main, .sv-footer { overflow-wrap: break-word; overflow-wrap: anywhere; }
  main table, .ws-jumble { overflow-wrap: normal; }
  /* The footer links' negative start margin stays at 20px too: in a right-to-left page (/ar) it sits on the scrolling
     side. */
  .sv-footer-links, .sv-footer-social { margin-left: -1.25rem; margin-left: max(-1.25rem, -20px); }
  .sv-footer-links a, .sv-footer-social a { margin-left: 1.25rem; margin-left: min(1.25rem, 20px); }
}

/* SVWD-34: the same last resort between a phone and 640px, where 200% text left the email address on the Chinese
   interstate guides (and the 。 that can't start a line) 11px past a 540px screen. */
@media (min-width: 30.0625rem) and (max-width: 639.98px) {
  main, .sv-footer { overflow-wrap: break-word; overflow-wrap: anywhere; }
  main table, .ws-jumble { overflow-wrap: normal; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .sv-header .sv-header-cta { display: inline-flex; min-height: 48px; }
  :root { --card-pad-y: 2.25rem; --card-pad-x: 2.5rem; --gap-section: 5rem; }
  .sv-step { grid-column-gap: 1.5rem; }
  .sv-step-body > h2 { grid-column: 2; grid-row: 1; align-self: center; margin-top: 0; padding-right: 2.75rem; }
  .sv-step-n { width: 4.5rem; height: 4.5rem; border-radius: 20px; font-size: 2.75rem; }
  .sv-step-icon { width: 36px; height: 36px; }
  /* SVWD-34: with enlarged text a step's side padding, number tile, gap and the heading's room for the 36px corner
     picture stay at their standard-text px sizes (the caps are the 110% root's, from 768px, and 52.8px is the 3rem
     padding from 900px; below that the rem size is the smaller), so a long word in a step heading ("emergencySMS")
     still fits at 700px with 200% text. Chrome 78, which has no min(), keeps the rem sizes. */
  .sv-step { grid-column-gap: 1.5rem; grid-column-gap: min(1.5rem, 26.4px); padding-left: var(--card-pad-x); padding-left: min(var(--card-pad-x), 52.8px); padding-right: var(--card-pad-x); padding-right: min(var(--card-pad-x), 52.8px); }
  .sv-step-body > h2 { padding-right: 2.75rem; padding-right: min(2.75rem, 48.4px); }
  .sv-step-n { width: 4.5rem; width: min(4.5rem, 79.2px); height: 4.5rem; height: min(4.5rem, 79.2px); font-size: 2.75rem; font-size: min(2.75rem, 48.4px); }
  .sv-step-icon { right: var(--card-pad-x); right: min(var(--card-pad-x), 52.8px); }
  /* SVWD-33: with enlarged text the two phones keep their standard-text px sizes (200px and 40px; 220px and 44px from
     768px, where the root is 110%), so at 768px with 200% text they stay on the screen. Chrome 78, which has no min(),
     keeps the rem sizes. */
  .sv-phone { width: 12.5rem; width: min(12.5rem, 220px); }
  .sv-phone + .sv-phone { margin-left: 2.5rem; margin-left: min(2.5rem, 44px); }
}

@media (min-width: 900px) {
  .sv-header { position: -webkit-sticky; position: sticky; top: 0; }
  .sv-logo { height: 56px; }
  .sv-header-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .8rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
  .sv-header-link:hover { background: rgba(19, 36, 59, .06); color: var(--ink); }
  .sv-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". photo" "title photo" "intro photo" ". photo";
    grid-column-gap: 3.5rem;
    padding-top: 4.5rem;
  }
  /* The photo fills the height of the title and intro beside it (cover, centred; the image file is unchanged),
     up to a gentle portrait shape, and sits centred against them. */
  .sv-guide-photo { position: relative; align-self: center; height: 100%; min-height: 20rem; max-height: 34rem; margin-top: 0; }
  .sv-guide-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .sv-hero h1 { font-size: 3.25rem; font-size: clamp(2.75rem, 1.4rem + 2vw, 3.375rem); }
  :root { --card-pad-x: 3rem; }
  .sv-app-phones { float: right; margin: .25rem 0 1.75rem 3rem; }
  .sv-phone { width: 8.75rem; padding: 5px; border-radius: 24px; }
  .sv-phone img { border-radius: 19px; }
  .sv-phone + .sv-phone { margin-left: .875rem; }
  .sv-guide-photo img { border-radius: 32px; }
  .sv-guide-intro { margin-top: 1.75rem; max-width: var(--measure); }
  .sv-guide-intro p { font-size: 1.25rem; }
  .sv-footer {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "brand links" "brand social" "legal legal";
    grid-column-gap: 3rem;
    grid-row-gap: 1.25rem;
    align-items: start;
  }
  .sv-footer-brand { grid-area: brand; }
  .sv-footer-links { grid-area: links; }
  .sv-footer-social { grid-area: social; }
  .sv-footer-legal { grid-area: legal; margin-top: 1.5rem; }
}

@media (min-width: 1100px) {
  .sv-header { padding-left: 2.5rem; padding-right: 2.5rem; min-height: 84px; }
  .sv-logo { height: 64px; }
}

@media print {
  .sv-header, .sv-footer-social { display: none !important; }
  .sv-app-phones, .sv-app-get, .sv-step-badge, .sv-faq-sign { display: none !important; }
  .sv-index-go { display: none !important; }
  .sv-checkbox, .sv-step, .sv-app, .sv-index-card { box-shadow: none; border: 1px solid var(--rule); background: none; }
  /* A checklist prints whole, on one page (GSC follow-up, 19 Nov 2026). */
  .sv-checkbox { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.sv-hero-title { grid-area: title; }
.sv-hero-title h1 { grid-area: auto; }
.guide-byline { margin: .85rem 0 0; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.45; }
.guide-more { max-width: var(--col); margin: var(--gap-section) auto 0; padding: 0 var(--gutter); }
.guide-more li a { display: block; min-height: 48px; padding-top: .65rem; padding-bottom: .65rem; }
.sv-team-signoff { margin-top: 2rem; }


/* The guides index, grouped (23 Nov 2026): six topics at the top that jump to six sections, each section
   marked with a Home tile colour. In each topic up to three guides show their picture and the rest are a short list,
   so the page is a fraction of its old length on a phone. Built by scripts/guides-index. */
.sv-index .sv-tone-sage { --tone: var(--sage); --tone-deep: var(--deep-sage); }
.sv-index .sv-tone-sky { --tone: var(--sky); --tone-deep: var(--deep-sky); }
.sv-index .sv-tone-sand { --tone: var(--sand); --tone-deep: var(--deep-sand); }
.sv-index .sv-tone-butter { --tone: var(--butter); --tone-deep: var(--deep-butter); }
.sv-index .sv-tone-lavender { --tone: var(--lavender); --tone-deep: var(--deep-lavender); }
.sv-index .sv-tone-rose { --tone: var(--rose); --tone-deep: var(--deep-rose); }
.sv-index .sv-band-index .sv-band-inner, .sv-index .sv-hero-index .sv-hero-inner { max-width: var(--max); }

/* The topics at the top. Two looks: a contents list (.sv-topics-contents: serif names on thin lines) and photo
   cards (.sv-topics-photos: a photograph from the topic, its name and count under it). */
.sv-guide ul.sv-topic-tiles { margin: 0; padding: 0; list-style: none; }
.sv-guide .sv-topic-tile { margin: 0; padding: 0; }
.sv-guide .sv-topic-tile + .sv-topic-tile { margin-top: 0; }
.sv-topics-contents .sv-topic-tile { border-top: 1px solid var(--rule); }
.sv-topics-contents .sv-topic-tile:last-child { border-bottom: 1px solid var(--rule); }
.sv-topics-contents .sv-topic-tile a { display: flex; align-items: center; min-height: 3.5rem; padding: .85rem 0; color: var(--ink); text-decoration: none; }
.sv-topics-contents .sv-topic-name { flex: 1 1 auto; font: 400 1.375rem/1.25 var(--serif); letter-spacing: -.01em; font-variation-settings: "opsz" 30; }
.sv-topics-contents .sv-topic-count { flex: none; margin-left: 1rem; color: var(--ink-soft); font: 400 1.125rem/1.2 var(--sans); }
.sv-topics-contents .sv-topic-tile svg { flex: none; margin-left: .75rem; color: var(--pine); }
.sv-topics-contents .sv-topic-pic { display: none; }
.sv-topics-contents .sv-topic-tile a:hover .sv-topic-name { color: var(--pine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.sv-topic-tile a:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
@media (min-width: 640px) {
  .sv-guide .sv-topics-contents ul.sv-topic-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-column-gap: 2.5rem; }
  .sv-topics-contents .sv-topic-tile:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .sv-guide .sv-topics-contents ul.sv-topic-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-column-gap: 3rem; }
  .sv-topics-contents .sv-topic-tile:nth-last-child(3) { border-bottom: 1px solid var(--rule); }
  .sv-topics-contents .sv-topic-tile a { padding: 1.1rem 0; }
  .sv-topics-contents .sv-topic-name { font-size: 1.5rem; }
}
.sv-guide .sv-topics-photos ul.sv-topic-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-column-gap: 1rem; grid-row-gap: 1.5rem; }

.sv-topics-photos .sv-topic-tile a { display: block; color: var(--ink); text-decoration: none; }
.sv-topics-photos .sv-topic-pic { display: block; width: 100%; height: 8.5rem; border-radius: 18px; -o-object-fit: cover; object-fit: cover; background: var(--sand); }
.sv-topics-photos .sv-topic-name { display: block; margin-top: .7rem; font: 400 1.25rem/1.2 var(--serif); letter-spacing: -.005em; font-variation-settings: "opsz" 24; text-wrap: balance; }
.sv-topics-photos .sv-topic-count { display: block; margin-top: .25rem; color: var(--ink-soft); font: 400 1.125rem/1.2 var(--sans); }
.sv-topics-photos .sv-topic-tile svg { display: none; }
.sv-topics-photos .sv-topic-tile a:hover .sv-topic-name { color: var(--pine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* Five topics: on a phone the first (the biggest) runs the full width over two pairs. */
.sv-guide .sv-topics-photos .sv-topic-tile:first-child { grid-column: 1 / -1; }
.sv-topics-photos .sv-topic-tile:first-child .sv-topic-pic { height: 11.5rem; }
@media (min-width: 640px) {
  /* Two then three. */
  .sv-guide .sv-topics-photos ul.sv-topic-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sv-guide .sv-topics-photos .sv-topic-tile, .sv-guide .sv-topics-photos .sv-topic-tile:first-child { grid-column: span 2; }
  .sv-guide .sv-topics-photos .sv-topic-tile:nth-child(-n+2) { grid-column: span 3; }
  .sv-topics-photos .sv-topic-pic, .sv-topics-photos .sv-topic-tile:first-child .sv-topic-pic { height: 10rem; }
  .sv-topics-photos .sv-topic-tile:nth-child(-n+2) .sv-topic-pic { height: 13rem; }
}
@media (min-width: 900px) {
  /* All five in a row. */
  .sv-guide .sv-topics-photos ul.sv-topic-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-column-gap: 1.25rem; }
  .sv-guide .sv-topics-photos .sv-topic-tile, .sv-guide .sv-topics-photos .sv-topic-tile:first-child, .sv-guide .sv-topics-photos .sv-topic-tile:nth-child(-n+2) { grid-column: auto; }
  .sv-topics-photos .sv-topic-pic, .sv-topics-photos .sv-topic-tile:first-child .sv-topic-pic, .sv-topics-photos .sv-topic-tile:nth-child(-n+2) .sv-topic-pic { height: 12.5rem; border-radius: 20px; }
}

.sv-topic { margin-top: 3.25rem; }
.sv-topic-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; padding-top: 1.1rem; border-top: 4px solid var(--tone); }
.sv-guide .sv-topic-head h2 { margin: 0 1rem 0 0; font-size: 1.875rem; font-size: clamp(1.875rem, 1.6rem + .9vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; }
.sv-topic-head .sv-topic-count { margin: 0; color: var(--ink-soft); font: 500 1.125rem/1.3 var(--sans); }

.sv-guide .sv-topic ul.sv-index-list { grid-row-gap: 0; grid-column-gap: var(--gap-card); }
.sv-topic .sv-index-body h3 { margin: 0; font: 500 1.375rem/1.22 var(--serif); letter-spacing: -.01em; font-variation-settings: "opsz" 30; text-wrap: pretty; }
.sv-topic .sv-index-body h3 a { color: var(--ink); text-decoration: none; }
.sv-topic .sv-index-body h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
.sv-topic .sv-index-lead .sv-index-body h3 a::after { border-radius: var(--radius-card); }
.sv-topic .sv-index-card:hover h3 a { color: var(--pine); text-decoration: underline; text-decoration-thickness: 1px; }
.sv-topic .sv-index-body h3 a:focus-visible { outline: none; }
.sv-topic .sv-index-body h3 a:focus-visible::after { outline: 3px solid var(--ring); outline-offset: 2px; }
.sv-guide .sv-topic .sv-index-body h3 + p { margin-top: .4rem; margin-bottom: 0; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.5; }
.sv-topic .sv-index-go { display: none; }

/* Picture cards. */
.sv-guide .sv-topic .sv-index-lead { margin-bottom: var(--gap-card); }
.sv-topic .sv-index-lead img { height: 13.5rem; -o-object-fit: cover; object-fit: cover; }
.sv-topic .sv-index-lead .sv-index-body { padding: 1.25rem var(--card-pad-x) 1.4rem; }

/* The list: one line between rows, the arrow at the right. On a phone the second and third picture guides join it,
   and the list shows titles only, so a topic fits in a screen or two; from 640px each row has its line too. */
.sv-guide .sv-topic .sv-index-text, .sv-guide .sv-topic .sv-index-lead + .sv-index-lead { margin: 0; overflow: visible; border-radius: 0; border-top: 1px solid var(--rule); background: none; box-shadow: none; }
.sv-topic .sv-index-text .sv-index-body, .sv-topic .sv-index-lead + .sv-index-lead .sv-index-body { padding: 1.05rem 3.75rem 1.1rem 0; }
.sv-topic .sv-index-text .sv-index-go, .sv-topic .sv-index-lead + .sv-index-lead .sv-index-go { position: absolute; top: 50%; right: 0; display: flex; width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0; }
.sv-topic .sv-index-lead + .sv-index-lead img { display: none; }
.sv-topic .sv-index-text .sv-index-body p, .sv-topic .sv-index-lead + .sv-index-lead .sv-index-body p { display: none; }
.sv-topic .sv-index-text:hover, .sv-topic .sv-index-lead + .sv-index-lead:hover { box-shadow: none; }

@media (min-width: 640px) {
  .sv-topic { margin-top: 4rem; }
  /* Six columns: a picture card takes two, a list row three, so the list runs in two columns under the pictures. */
  .sv-guide .sv-topic ul.sv-index-list { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-column-gap: var(--gap-card); }
  .sv-guide .sv-topic .sv-index-lead, .sv-guide .sv-topic .sv-index-lead + .sv-index-lead { grid-column: span 2; overflow: hidden; margin-bottom: 1.75rem; border-top: 0; border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
  .sv-topic .sv-index-lead + .sv-index-lead img { display: block; }
  .sv-topic .sv-index-text .sv-index-body p, .sv-topic .sv-index-lead + .sv-index-lead .sv-index-body p { display: block; }
  .sv-topic .sv-index-lead + .sv-index-lead .sv-index-body { padding: 1.25rem var(--card-pad-x) 1.4rem; }
  .sv-topic .sv-index-lead + .sv-index-lead .sv-index-go { display: none; }
  .sv-topic .sv-index-lead + .sv-index-lead:hover { box-shadow: var(--shadow-card-hover); }
  .sv-topic .sv-index-lead img { height: 11rem; }
  .sv-guide .sv-topic .sv-index-text { grid-column: span 3; }
  .sv-guide .sv-leads-2 .sv-index-lead, .sv-guide .sv-leads-2 .sv-index-lead + .sv-index-lead { grid-column: span 3; }
  .sv-leads-2 .sv-index-lead img { height: 15rem; }
  /* One picture only: it runs the full width, picture beside its words. */
  .sv-guide .sv-leads-1 .sv-index-lead { grid-column: 1 / -1; flex-direction: row; }
  .sv-leads-1 .sv-index-lead img { width: 50%; height: auto; min-height: 15rem; }
  .sv-leads-1 .sv-index-lead .sv-index-body { justify-content: center; padding: 2rem 2.25rem; }
}
@media (min-width: 900px) {
  .sv-topic { scroll-margin-top: 1rem; }
  .sv-topic .sv-index-lead img { height: 14rem; }
  .sv-guide .sv-topic ul.sv-index-list { grid-column-gap: 2rem; }
}
@media print {
  .sv-topics { display: none; }
  .sv-topic .sv-index-lead img { display: none !important; }
}
