/* A Dose of Awesomeness + Dr Kaylene Henderson: one stylesheet for both brands.
   Put data-brand="adoa" or data-brand="dkh" on <html>, <body> or any section.
   Add data-mode="serious" to a Dr Kaylene Henderson section for the Professional Learning Series.
   Fonts load from Google Fonts here; to self-host, run tools/get_fonts.sh and swap this import
   for the @font-face rules in fonts/fonts.css. */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;700;800&family=Fraunces:opsz,wght,SOFT@9..144,700..800,0..100&family=Poppins:wght@400;500;700&display=swap");

:root {
  /* shared */
  --fam-sun: #FFD23F;
  --fam-purple: #9783FF;         /* shared accent: shapes, illustration accents, highlights on dark; never a text ground */
  --fam-white: #FFFFFF;
  --fam-tomato: #EF3B2D;          /* errors and Help and support only: bands, borders, icons */
  --fam-tomato-deep: #C4291D;     /* the text-safe tomato: support numbers and error text (white 5.7:1) */
  --fam-font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --fam-radius-lg: 36px;          /* large cards */
  --fam-radius-md: 24px;          /* cards on phones, panels */
  --fam-radius-pill: 999px;       /* buttons and tags */
  --fam-space-1: 8px; --fam-space-2: 16px; --fam-space-3: 24px; --fam-space-4: 32px; --fam-space-5: 48px; --fam-space-6: 72px;

  /* A Dose of Awesomeness */
  --adoa-pool: #0077D6;  --adoa-deep: #005DAB;  --adoa-sun: #FFD23F;  --adoa-pink: #F6B5C8;
  --adoa-mint: #62DCC1;  --adoa-ink: #171C22;   --adoa-mist: #F3F6F8; --adoa-white: #FFFFFF;
  /* deep tones: pink, mint and sunshine taken only as dark as white words need (4.5 to 1, the AA floor, so the words on them are always solid white). Grounds for words only, never illustration */
  --adoa-pink-deep: #E6017B; --adoa-mint-deep: #028671; --adoa-sun-deep: #A36B01;
  --adoa-font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;

  /* Dr Kaylene Henderson */
  --dkh-dark: #1E3244;   --dkh-indigo: #4054A5; --dkh-purple: var(--fam-purple); --dkh-cyan: #50C1CD;
  --dkh-sun: #FFD23F;    --dkh-pink: #D5428F;   --dkh-beige: #F9EEE8;  --dkh-light: #E8F7F7;
  --dkh-font-heading: "Poppins", "Avenir Next", system-ui, sans-serif;
}

/* brand themes: components below only read these */
[data-brand="adoa"] {
  --brand-primary: var(--adoa-pool); --brand-on-primary: #FFFFFF;
  --brand-text: var(--adoa-ink);     --brand-muted: #4A5662;
  --brand-ground: var(--adoa-mist);  --brand-link: var(--adoa-deep);
  --brand-lift-bg: linear-gradient(transparent 52%, var(--adoa-sun) 52%, var(--adoa-sun) 92%, transparent 92%);
  --brand-lift-color: inherit;
  --brand-heading: var(--adoa-font-heading); --brand-heading-weight: 800; --brand-heading-axes: "SOFT" 100;
  /* Fraunces has short ascenders: it sits tight */
  --brand-lh-display: 1.04; --brand-lh-h1: 1.06; --brand-lh-h2: 1.1; --brand-lh-h3: 1.2;
  --brand-track-display: -0.01em; --brand-track-h: 0;
  --brand-btn-case: none; --brand-btn-track: 0; --brand-btn-font: var(--fam-font-body); --brand-btn-weight: 700;
}
[data-brand="dkh"] {
  --brand-primary: var(--dkh-indigo); --brand-on-primary: #FFFFFF;
  --brand-text: var(--dkh-dark);      --brand-muted: #4E5E70;
  --brand-ground: var(--dkh-beige);   --brand-link: var(--dkh-indigo);
  --brand-lift-bg: none;              --brand-lift-color: var(--dkh-indigo);
  --brand-heading: var(--dkh-font-heading); --brand-heading-weight: 700; --brand-heading-axes: normal;
  /* Poppins is tall and wide: a little more leading, a little less tracking */
  --brand-lh-display: 1.1; --brand-lh-h1: 1.12; --brand-lh-h2: 1.15; --brand-lh-h3: 1.25;
  --brand-track-display: -0.02em; --brand-track-h: -0.01em;
  --brand-btn-case: uppercase; --brand-btn-track: 0.16em; --brand-btn-font: var(--dkh-font-heading); --brand-btn-weight: 500;
}
[data-brand="dkh"][data-mode="serious"] { --brand-ground: var(--dkh-light); --brand-lift-color: inherit; }
/* dark grounds: lifted words turn Sunshine */
[data-brand] .fam-dark, [data-brand].fam-dark { --brand-text: #FFFFFF; --brand-muted: rgba(255,255,255,0.8); --brand-lift-color: var(--fam-sun); }
[data-brand="adoa"] .fam-dark, [data-brand="adoa"].fam-dark { background: var(--adoa-ink); --brand-lift-color: var(--adoa-ink); }
[data-brand="dkh"] .fam-dark, [data-brand="dkh"].fam-dark { background: var(--dkh-indigo); }

/* base */
[data-brand], [data-brand] *, [data-brand] *::before, [data-brand] *::after { box-sizing: border-box; }
[data-brand] { color: var(--brand-text); font-family: var(--fam-font-body); line-height: 1.5; }
.fam-ground { background: var(--brand-ground); }

/* headlines: each brand's own face. Never mix the two in one piece. */
.fam-display, .fam-h1, .fam-h2, .fam-h3 {
  font-family: var(--brand-heading); font-weight: var(--brand-heading-weight);
  font-variation-settings: var(--brand-heading-axes); text-wrap: balance; margin: 0; color: var(--brand-text);
  letter-spacing: var(--brand-track-h); font-kerning: normal; hyphens: none; hanging-punctuation: first;
}
/* one type scale for both brands: display 44-72, h1 36-56, h2 28-40, h3 22 */
.fam-display { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: var(--brand-lh-display); letter-spacing: var(--brand-track-display); }
.fam-h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: var(--brand-lh-h1); letter-spacing: var(--brand-track-display); }
.fam-h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: var(--brand-lh-h2); }
.fam-h3 { font-size: 1.375rem; line-height: var(--brand-lh-h3); }
/* plain headline for clinical or hard topics, in either brand */
.fam-plain { font-family: var(--fam-font-body) !important; font-weight: 800 !important; font-variation-settings: normal !important; line-height: 1.12 !important; letter-spacing: -0.01em !important; }
.fam-lead { font-size: 1.25rem; line-height: 1.45; color: var(--brand-text); text-wrap: pretty; }
.fam-body, :where([data-brand]) p { line-height: 1.55; text-wrap: pretty; }  /* :where keeps this below the headline classes, so a headline set on a <p> keeps its own leading */
.fam-body { font-size: 1.0625rem; }
.fam-small, .fam-credit { font-size: 0.9375rem; line-height: 1.45; color: var(--brand-muted); }
.fam-label { font-size: 0.875rem; font-weight: 800; line-height: 1.3; color: var(--brand-muted); }
[data-brand="dkh"] .fam-label { font-family: var(--dkh-font-heading); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; }

/* lifting one idea per headline: a sun patch in one brand, a colour change in the other */
.fam-lift { background: var(--brand-lift-bg); color: var(--brand-lift-color); border-radius: 0.25em; padding: 0 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-mode="serious"] .fam-lift { background: none; color: inherit; }

/* buttons */
.fam-btn {
  display: inline-flex; align-items: center; gap: 0.5em; border: 0; cursor: pointer; text-decoration: none;
  border-radius: var(--fam-radius-pill); padding: 0.9em 1.8em; font-family: var(--brand-btn-font); font-weight: var(--brand-btn-weight);
  text-transform: var(--brand-btn-case); letter-spacing: var(--brand-btn-track); font-size: 1rem;
  background: var(--brand-primary); color: var(--brand-on-primary);
}
.fam-btn:hover { filter: brightness(0.92); }
[data-brand="dkh"] .fam-btn:hover { background: var(--dkh-dark); filter: none; }
.fam-btn:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 3px; }
.fam-btn--secondary { background: #FFFFFF; color: var(--brand-text); }
[data-brand="adoa"] .fam-dark .fam-btn, [data-brand="adoa"].fam-dark .fam-btn { background: var(--adoa-sun); color: var(--adoa-ink); }
/* inside the shared platform every button is sentence case Figtree, in the content's brand colour */
.fam-platform .fam-btn { font-family: var(--fam-font-body); font-weight: 700; text-transform: none; letter-spacing: 0; }

/* cards, tags, notes */
.fam-card { background: #FFFFFF; border-radius: var(--fam-radius-lg); padding: var(--fam-space-5); }
.fam-card--tint { background: var(--brand-ground); }
@media (max-width: 640px) { .fam-card { border-radius: var(--fam-radius-md); padding: var(--fam-space-3); } }
.fam-tag { display: inline-block; border-radius: var(--fam-radius-pill); padding: 0.3em 0.9em; font-size: 0.875rem; font-weight: 700; background: var(--brand-ground); color: var(--brand-text); }
.fam-note { border-radius: var(--fam-radius-md); padding: var(--fam-space-2) var(--fam-space-3); background: #FFFFFF; color: var(--brand-text); font-size: 0.9375rem; line-height: 1.5; }
.fam-note::before { content: "Before you start"; display: block; font-weight: 800; margin-bottom: 0.25em; }

/* Dr Kaylene Henderson's shapes: decoration only, hidden in serious mode */
.fam-shape { position: absolute; pointer-events: none; user-select: none; }
[data-mode="serious"] .fam-shape { display: none; }

/* name ribbon: the lower third from Kaylene's earlier videos. A flat band flush to the right edge, with a soft
   swallowtail on the left (two rounded points). The band takes the brand's lead colour; --dark for a deeper band.
   Topic in capitals above, then "presented by", her name and credentials. White text only (6.9:1 on indigo, 4.6:1 on pool). */
.fam-lower-third { display: grid; justify-items: end; gap: .45em; }
.fam-ribbon-topic { font-family: var(--brand-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--brand-text); padding: .3em 1.1em .3em .8em; background: rgba(255,255,255,0.92); border-radius: 999px 0 0 999px; font-size: .78em; }
[data-brand="adoa"] .fam-ribbon-topic { font-family: var(--fam-font-body); font-weight: 800; letter-spacing: .04em; }
.fam-ribbon { position: relative; display: grid; gap: .12em; margin-left: 1.1em; padding: .6em 1.1em .65em .5em; background: var(--brand-ribbon, var(--brand-primary)); color: #FFFFFF; line-height: 1.3; }
.fam-ribbon::before { content: ""; position: absolute; top: 0; bottom: 0; right: calc(100% - 1px); aspect-ratio: 40 / 100; background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100' preserveAspectRatio='none'%3E%3Cpath d='M40 0H7Q1 0 3.5 5.5L21 45Q23.5 50 21 55L3.5 94.5Q1 100 7 100H40Z'/%3E%3C/svg%3E") right / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100' preserveAspectRatio='none'%3E%3Cpath d='M40 0H7Q1 0 3.5 5.5L21 45Q23.5 50 21 55L3.5 94.5Q1 100 7 100H40Z'/%3E%3C/svg%3E") right / 100% 100% no-repeat; }
.fam-ribbon--dark { --brand-ribbon: var(--brand-text); }
[data-brand="dkh"] .fam-ribbon--dark { --brand-ribbon: var(--dkh-dark); }
[data-brand="adoa"] .fam-ribbon--dark { --brand-ribbon: var(--adoa-ink); }
.fam-ribbon__lead, .fam-ribbon__meta { font-size: .8em; }
.fam-ribbon__meta { opacity: .92; }
.fam-ribbon__name { font-family: var(--brand-heading); font-weight: 700; font-variation-settings: var(--brand-heading-axes); font-size: 1.15em; line-height: 1.2; }

/* logos */
.fam-logo { display: block; height: auto; }
.fam-logo--adoa { min-width: 160px; }
.fam-logo--dkh { min-width: 160px; }

/* =====================================================================
   Website and app components. Every component reads the brand theme,
   so the same markup works for both brands.
   ===================================================================== */
[data-brand] { --brand-line: #DCE3E9; --brand-surface: #FFFFFF; }
[data-brand="dkh"] { --brand-line: #E7D9D1; }
[data-brand="dkh"][data-mode="serious"] { --brand-line: #CDE9EA; }

/* layout */
.fam-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.fam-container--narrow { max-width: 760px; }
.fam-section { padding-block: clamp(56px, 8vw, 104px); }
.fam-section--ground { background: var(--brand-ground); }
.fam-section--primary { background: var(--brand-primary); --brand-text: #FFFFFF; --brand-muted: rgba(255,255,255,0.85); color: #FFFFFF; }
[data-brand="adoa"] .fam-section--primary { --brand-lift-bg: none; --brand-lift-color: var(--adoa-sun); }
.fam-stack { display: grid; gap: var(--fam-space-3); align-content: start; }
.fam-row { display: flex; flex-wrap: wrap; gap: var(--fam-space-2); align-items: center; }
.fam-grid { display: grid; gap: var(--fam-space-4); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.fam-split { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 860px) { .fam-split { grid-template-columns: minmax(0, 1fr); } }
.fam-eyebrow { font-size: 0.9375rem; font-weight: 800; color: var(--brand-muted); }
[data-brand="dkh"] .fam-eyebrow { font-family: var(--dkh-font-heading); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8125rem; }
.fam-link { color: var(--brand-link); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* header, nav, footer */
.fam-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--brand-line); }
.fam-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--fam-space-3); min-height: 76px; padding-block: 10px; }
@media (max-width: 760px) { .fam-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; } .fam-header .fam-btn { margin-left: auto; padding: 0.7em 1.2em; font-size: 0.875rem; } .fam-header__logo { max-width: 46vw; height: auto; max-height: 44px; } }
.fam-header__logo { height: 34px; width: auto; }
.fam-nav { display: flex; gap: var(--fam-space-1); margin-left: auto; flex-wrap: wrap; }
.fam-nav a { color: var(--brand-text); text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: var(--fam-radius-pill); }
.fam-nav a:hover, .fam-nav a[aria-current="page"] { background: var(--brand-ground); }
.fam-footer { background: var(--brand-text); color: #FFFFFF; padding-block: 64px 40px; }
[data-brand="dkh"] .fam-footer { background: var(--dkh-dark); }
.fam-footer a { color: #FFFFFF; }
.fam-footer__grid { display: grid; gap: var(--fam-space-4); grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { .fam-footer__grid { grid-template-columns: 1fr 1fr; } }
.fam-footer__small { margin-top: var(--fam-space-5); font-size: 0.875rem; color: rgba(255,255,255,0.75); }

/* help and support: one page with support lines by country, linked quietly from every footer.
   No crisis strip: the sites are for everyday parenting, so help is calm and easy to find, never alarming. */
.fam-footer__help { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fam-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-countries a { font-size: 0.9375rem; font-weight: 700; color: var(--brand-text); text-decoration: none; border: 2px solid var(--brand-line); background: #FFFFFF; border-radius: var(--fam-radius-pill); padding: 7px 14px; }
.fam-countries a:hover, .fam-countries a:focus-visible { border-color: var(--brand-text); }
.fam-helplines { display: grid; gap: 0; margin: 0; }
.fam-helpline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--brand-line); }
.fam-helpline:first-child { border-top: 0; padding-top: 0; }
.fam-helpline dt { font-weight: 800; }
.fam-helpline dd { margin: 0; grid-column: 1; color: var(--brand-muted); font-size: 0.9375rem; line-height: 1.45; }
.fam-helpline .fam-helpline__number { grid-column: 2; grid-row: 1 / span 2; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--brand-text); text-align: right; }
.fam-helpline__number a { color: inherit; text-decoration: none; }
@media (max-width: 480px) { .fam-helpline { grid-template-columns: 1fr; } .fam-helpline .fam-helpline__number { grid-column: 1; grid-row: auto; text-align: left; } }
.fam-helpline-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--brand-line); font-size: 0.9375rem; color: var(--brand-muted); }

/* hero */
.fam-hero { padding-block: clamp(48px, 7vw, 96px); }
.fam-hero__media { position: relative; }
.fam-hero { overflow-x: clip; }
.fam-hero__media img.fam-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--fam-radius-lg); }
.fam-hero__patch { position: absolute; width: 78%; right: -6%; top: -6%; }

/* features */
.fam-feature { display: grid; gap: var(--fam-space-2); align-content: start; }
.fam-feature__icon { width: 64px; height: 64px; }

/* product cards: doses, courses, masterclasses */
.fam-product { background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.fam-product__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.fam-product__body { padding: var(--fam-space-4); display: grid; gap: var(--fam-space-2); align-content: start; }
.fam-product__meta { font-size: 0.9375rem; color: var(--brand-muted); }
.fam-product__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--fam-space-2); margin-top: var(--fam-space-2); }

/* plans */
.fam-plan { background: #FFFFFF; border: 2px solid var(--brand-line); border-radius: var(--fam-radius-lg); padding: var(--fam-space-5); display: grid; gap: var(--fam-space-2); align-content: start; }
.fam-plan--featured { border-color: var(--brand-primary); }
.fam-plan__price { font-size: 2.5rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fam-plan__price small { font-size: 1rem; font-weight: 500; color: var(--brand-muted); }
.fam-plan ul { margin: var(--fam-space-2) 0 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* quotes about the experience (no outcome claims) */
.fam-quote { border-radius: var(--fam-radius-lg); background: var(--brand-ground); padding: var(--fam-space-5); display: grid; gap: var(--fam-space-2); }
.fam-quote p { font-size: 1.25rem; line-height: 1.5; margin: 0; }
.fam-quote cite { font-style: normal; font-weight: 700; color: var(--brand-muted); }

/* steps: course weeks, module lists */
.fam-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.fam-steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 14px 18px; }
.fam-steps li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-ground); }
[data-brand="adoa"] .fam-steps li::before { background: var(--adoa-sun); }
.fam-steps li.is-done::before { content: "✓"; background: var(--brand-primary); color: var(--brand-on-primary); }

/* FAQ */
.fam-faq { display: grid; gap: 12px; }
.fam-faq details { background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 18px 22px; }
.fam-faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fam-faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; }
.fam-faq details[open] summary::after { content: "–"; }
.fam-faq details p { margin: 12px 0 0; }

/* forms */
.fam-field { display: grid; gap: 6px; }
.fam-field label { font-weight: 700; }
.fam-input, .fam-select, .fam-textarea { font: inherit; color: var(--brand-text); background: #FFFFFF; border: 2px solid var(--brand-line); border-radius: 16px; padding: 14px 16px; width: 100%; }
.fam-input:focus, .fam-select:focus, .fam-textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.fam-field--invalid .fam-input { border-color: var(--fam-tomato); }
.fam-hint { font-size: 0.875rem; color: var(--brand-muted); }
.fam-error { font-size: 0.875rem; color: #B42318; font-weight: 700; }
.fam-check { display: flex; gap: 10px; align-items: flex-start; }
.fam-check input { width: 22px; height: 22px; accent-color: var(--brand-primary); margin-top: 2px; }
.fam-signup { display: flex; gap: 10px; flex-wrap: wrap; }
.fam-signup .fam-input { flex: 1 1 240px; border-radius: var(--fam-radius-pill); }

/* badges and chips */
.fam-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--fam-radius-pill); padding: 4px 12px; font-size: 0.8125rem; font-weight: 800; background: var(--brand-ground); color: var(--brand-text); }
.fam-badge--primary { background: var(--brand-primary); color: var(--brand-on-primary); }
.fam-badge--new { background: var(--fam-sun); color: #171C22; }

/* banners and toasts */
.fam-banner { border-radius: var(--fam-radius-md); padding: 16px 20px; background: var(--brand-ground); display: flex; gap: 12px; align-items: flex-start; }
.fam-banner--success { background: #E3F7EF; }
.fam-banner--error { background: #FDECEA; }
.fam-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #171C22; color: #FFFFFF; border-radius: var(--fam-radius-pill); padding: 12px 22px; font-weight: 700; }

/* tabs and the My family / My work switch */
.fam-switch { display: inline-flex; max-width: 100%; overflow-x: auto; background: var(--brand-ground); border-radius: var(--fam-radius-pill); padding: 4px; }
.fam-switch button { white-space: nowrap; }
.fam-switch button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--brand-text); padding: 10px 20px; border-radius: var(--fam-radius-pill); cursor: pointer; }
.fam-switch button[aria-pressed="true"] { background: var(--brand-text); color: #FFFFFF; }
.fam-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--brand-line); }
.fam-tabs a { padding: 12px 16px; font-weight: 700; color: var(--brand-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.fam-tabs a[aria-selected="true"] { color: var(--brand-text); border-color: var(--brand-primary); }
.fam-crumbs { font-size: 0.875rem; color: var(--brand-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.fam-crumbs a { color: inherit; }

/* progress */
.fam-progress { height: 12px; border-radius: var(--fam-radius-pill); background: var(--brand-ground); overflow: hidden; }
.fam-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-primary); }

/* ---------------- app pieces (the shared platform) */
.fam-appbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--brand-line); background: #FFFFFF; }
.fam-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--brand-line); background: #FFFFFF; padding-bottom: env(safe-area-inset-bottom, 0px); }
.fam-tabbar a { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; font-size: 0.75rem; font-weight: 700; color: var(--brand-muted); text-decoration: none; }
.fam-tabbar a[aria-current="page"] { color: var(--brand-primary); }
.fam-tabbar svg { width: 24px; height: 24px; fill: currentColor; }

.fam-dose { background: #FFFFFF; border-radius: var(--fam-radius-lg); padding: var(--fam-space-4); display: grid; gap: 12px; border: 1px solid var(--brand-line); }
.fam-flashcard { background: #FFFFFF; border-radius: var(--fam-radius-lg); padding: var(--fam-space-5) var(--fam-space-4); min-height: 280px; display: grid; gap: 14px; align-content: start; border: 1px solid var(--brand-line); }
.fam-flashcard--say { background: var(--brand-ground); }
.fam-flashcard__kind { font-weight: 800; font-size: 0.875rem; color: var(--brand-muted); }
.fam-flashcard__text { font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: 1.75rem; line-height: var(--brand-lh-h2); letter-spacing: var(--brand-track-h); text-wrap: balance; }
.fam-script { display: grid; gap: 12px; }
.fam-script__not { border: 2px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 16px 20px; color: var(--brand-muted); }
.fam-script__say { background: var(--brand-ground); border-radius: var(--fam-radius-md); padding: 16px 20px; font-weight: 700; }
.fam-support-button { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #FFFFFF; background: var(--fam-tomato-deep); border-radius: var(--fam-radius-pill); padding: 10px 18px; }
.fam-support { border-radius: var(--fam-radius-lg); background: #FFFFFF; border: 3px solid var(--fam-tomato); padding: var(--fam-space-4); display: grid; gap: 12px; }
/* never put an offer, price or upsell inside .fam-support */

.fam-find { display: grid; gap: 12px; }
.fam-bubble { max-width: 85%; border-radius: 22px; padding: 14px 18px; line-height: 1.5; }
.fam-bubble--parent { justify-self: end; background: var(--brand-primary); color: var(--brand-on-primary); border-bottom-right-radius: 6px; }
.fam-bubble--find { justify-self: start; background: var(--brand-ground); border-bottom-left-radius: 6px; }
.fam-bubble__source { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--brand-muted); }
.fam-composer { display: flex; gap: 10px; }
.fam-composer .fam-input { border-radius: var(--fam-radius-pill); }

.fam-feed-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--brand-line); }
.fam-feed-item:first-child { border-top: 0; }
.fam-feed-item img { width: 56px; height: 56px; }
.fam-empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: var(--fam-space-5) var(--fam-space-3); }
.fam-empty img { width: min(320px, 80%); }

.fam-table-wrap { overflow-x: auto; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); }
.fam-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.fam-table th, .fam-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--brand-line); white-space: nowrap; }
.fam-table th { font-size: 0.8125rem; color: var(--brand-muted); background: var(--brand-ground); }
.fam-table tr:last-child td { border-bottom: 0; }

.fam-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { [data-brand] * { transition: none !important; animation: none !important; } }

/* =====================================================================
   Platform, phase 1: parents, Find and Ask Kaylene.
   Same rules as above: read the brand theme only, work in both brands
   and serious mode. Characters and illustrations are A Dose of
   Awesomeness only, so they are hidden inside Dr Kaylene Henderson.
   Live versions with markup: examples/app-components.html
   ===================================================================== */
[data-brand="dkh"] .fam-moment img, [data-brand="dkh"] .fam-choice img { display: none; }
.fam-icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: -0.2em; }
.fam-btn .fam-icon { width: 1.2em; height: 1.2em; }
.fam-btn--quiet { background: transparent; color: var(--brand-link); padding-inline: 1em; }
.fam-btn--danger { background: #FFFFFF; color: var(--fam-tomato-deep); box-shadow: inset 0 0 0 2px var(--fam-tomato-deep); }
.fam-btn--danger:hover { background: var(--fam-tomato-deep); color: #FFFFFF; filter: none; }
.fam-btn--block { width: 100%; justify-content: center; }
.fam-btn[disabled], .fam-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; }
.fam-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--brand-text); cursor: pointer; }
.fam-icon-btn:hover { background: var(--brand-ground); }
.fam-icon-btn:focus-visible, .fam-choice:focus-visible, .fam-chip:focus-visible, .fam-moment:focus-visible, .fam-child-switch button:focus-visible, .fam-toggle input:focus-visible + span, .fam-menu a:focus-visible, .fam-menu button:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 3px; }

/* ---------- account and family */
/* initials avatar: never a photo of a child */
.fam-avatar { --s: 44px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * 0.4); line-height: 1; background: var(--brand-ground); color: var(--brand-text); text-transform: uppercase; }
.fam-avatar--sm { --s: 32px; } .fam-avatar--lg { --s: 64px; }
[data-brand="adoa"] .fam-avatar--sun { background: var(--adoa-sun); color: var(--adoa-ink); }
[data-brand="adoa"] .fam-avatar--mint { background: var(--adoa-mint); color: var(--adoa-ink); }
[data-brand="adoa"] .fam-avatar--pink { background: var(--adoa-pink); color: var(--adoa-ink); }
.fam-avatar--primary { background: var(--brand-primary); color: var(--brand-on-primary); }

.fam-child { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 16px 18px; }
.fam-child__name { font-weight: 800; font-size: 1.0625rem; margin: 0; }
.fam-child__meta { font-size: 0.875rem; color: var(--brand-muted); margin: 0; }
.fam-child--add { grid-template-columns: auto minmax(0, 1fr); border-style: dashed; border-width: 2px; color: var(--brand-link); font-weight: 700; text-decoration: none; cursor: pointer; background: transparent; font: inherit; text-align: left; width: 100%; }

.fam-child-switch { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.fam-child-switch button { display: inline-flex; align-items: center; gap: 8px; flex: none; font: inherit; font-weight: 700; border: 2px solid var(--brand-line); background: #FFFFFF; color: var(--brand-text); border-radius: var(--fam-radius-pill); padding: 4px 16px 4px 4px; cursor: pointer; }
.fam-child-switch button[aria-pressed="true"] { border-color: var(--brand-text); }

/* choices and moment tiles (getting started) */
.fam-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.fam-choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .fam-choice-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.fam-choice { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; padding: 16px 14px; border-radius: 22px; border: 2px solid var(--brand-line); background: #FFFFFF; font: inherit; font-weight: 700; color: var(--brand-text); cursor: pointer; }
.fam-choice img { width: 100%; max-width: 120px; aspect-ratio: 5 / 4; object-fit: contain; }
.fam-choice small { font-weight: 500; font-size: 0.875rem; color: var(--brand-muted); }
.fam-choice__big { font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fam-choice[aria-pressed="true"], .fam-choice[aria-checked="true"] { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent); }
.fam-moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.fam-moment { background: #FFFFFF; border-radius: 28px; padding: 18px 18px 16px; display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--brand-text); font-weight: 800; border: 1px solid var(--brand-line); }
.fam-moment img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; }
.fam-moment small { font-weight: 500; font-size: 0.875rem; color: var(--brand-muted); }

/* sign-in: email link and passkey, never a password */
.fam-auth { width: 100%; max-width: 440px; margin: 0 auto; background: #FFFFFF; border-radius: var(--fam-radius-lg); padding: var(--fam-space-5) var(--fam-space-4); display: grid; gap: var(--fam-space-2); }
@media (max-width: 480px) { .fam-auth { padding: var(--fam-space-4) var(--fam-space-3); border-radius: var(--fam-radius-md); } }
.fam-auth__or { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--brand-muted); }
.fam-auth__or::before, .fam-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--brand-line); }
.fam-auth__sent { text-align: center; display: grid; gap: 10px; justify-items: center; }
.fam-auth__sent .fam-icon { width: 48px; height: 48px; color: var(--brand-primary); }

/* people in a household: invites, second adults */
.fam-people { list-style: none; margin: 0; padding: 0; display: grid; }
.fam-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--brand-line); }
.fam-person:first-child { border-top: 0; }
.fam-person b { display: block; overflow-wrap: anywhere; }
.fam-person small { color: var(--brand-muted); font-size: 0.875rem; }

/* ---------- learning */
.fam-player { container-type: inline-size; display: grid; gap: 0; background: var(--adoa-ink); color: #FFFFFF; border-radius: var(--fam-radius-md); overflow: hidden; }
[data-brand="dkh"] .fam-player { background: var(--dkh-dark); }
.fam-player__screen { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.fam-player__screen img, .fam-player__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fam-player__play { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--brand-primary); color: var(--brand-on-primary); }
[data-brand="adoa"] .fam-player__play { background: var(--adoa-sun); color: var(--adoa-ink); }
.fam-player__play .fam-icon { width: 34px; height: 34px; }
.fam-player__caption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 86%; background: var(--adoa-ink); color: #FFFFFF; font-size: 1rem; line-height: 1.4; padding: 6px 12px; border-radius: 8px; text-align: center; }
.fam-player__bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; }
.fam-player__bar .fam-icon-btn { color: #FFFFFF; width: 40px; height: 40px; }
.fam-player__bar .fam-icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.fam-player__bar .fam-icon-btn[aria-pressed="true"] { background: #FFFFFF; color: var(--adoa-ink); }
.fam-player__time { font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: rgba(255, 255, 255, 0.85); }
@container (max-width: 440px) {
  .fam-player__play { width: 56px; height: 56px; } .fam-player__play .fam-icon { width: 26px; height: 26px; }
  .fam-player__caption { font-size: 0.875rem; bottom: 8px; padding: 4px 10px; }
  .fam-player__bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .fam-player__bar .fam-player__time { display: none; }
  .fam-player__bar .fam-icon-btn:last-child { display: none; }
}
/* the scrubber shows chapter breaks as gaps */
.fam-scrub { position: relative; height: 6px; display: flex; gap: 3px; }
.fam-scrub span { flex: var(--w, 1); border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.fam-scrub span i { display: block; height: 100%; width: var(--p, 0%); background: #FFFFFF; }
.fam-chapters { list-style: none; margin: 0; padding: 4px 0; display: grid; }
.fam-chapters a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 10px 4px; color: var(--brand-text); text-decoration: none; border-radius: 12px; }
.fam-chapters a:hover { background: var(--brand-ground); }
.fam-chapters time { font-size: 0.875rem; color: var(--brand-muted); font-variant-numeric: tabular-nums; }
.fam-chapters a[aria-current="true"] { font-weight: 800; }
.fam-transcript { background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 14px 18px; }
.fam-transcript summary { cursor: pointer; font-weight: 800; }
.fam-transcript p { margin: 10px 0 0; max-width: 65ch; }
.fam-transcript time { font-size: 0.8125rem; color: var(--brand-muted); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* the parts of a dose, with progress */
.fam-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fam-part { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: 18px; padding: 12px 16px; color: var(--brand-text); text-decoration: none; }
.fam-part__mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-ground); }
.fam-part__mark .fam-icon { width: 20px; height: 20px; }
.fam-part__title { font-weight: 700; margin: 0; }
.fam-part__meta { font-size: 0.875rem; color: var(--brand-muted); margin: 0; }
.fam-part.is-done .fam-part__mark { background: var(--brand-primary); color: var(--brand-on-primary); }
.fam-part.is-current { border: 2px solid var(--brand-primary); }
[data-brand="adoa"] .fam-part.is-current .fam-part__mark { background: var(--adoa-sun); }
.fam-part.is-locked { color: var(--brand-muted); background: transparent; }

/* try tonight: one idea, front and centre */
.fam-tonight { border-radius: var(--fam-radius-lg); padding: var(--fam-space-4); display: grid; gap: 12px; background: var(--brand-ground); }
[data-brand="adoa"] .fam-tonight { background: var(--adoa-sun); color: var(--adoa-ink); --brand-muted: #3B3418; }
[data-brand="adoa"] .fam-tonight .fam-btn { background: var(--adoa-ink); color: #FFFFFF; }
[data-brand="adoa"] .fam-tonight .fam-btn--secondary { background: #FFFFFF; color: var(--adoa-ink); }
.fam-tonight__kind { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.875rem; }
.fam-tonight__idea { font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: clamp(1.5rem, 3vw, 2rem); line-height: var(--brand-lh-h2); letter-spacing: var(--brand-track-h); text-wrap: balance; margin: 0; }
.fam-tonight__from { font-size: 0.875rem; color: var(--brand-muted); margin: 0; }

/* filter chips and the card library */
.fam-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.fam-chip { flex: none; font: inherit; font-size: 0.875rem; font-weight: 700; border: 2px solid var(--brand-line); background: #FFFFFF; color: var(--brand-text); border-radius: var(--fam-radius-pill); padding: 7px 14px; cursor: pointer; }
.fam-chip[aria-pressed="true"] { background: var(--brand-text); border-color: var(--brand-text); color: #FFFFFF; }
.fam-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.fam-mini-card { position: relative; background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: 22px; padding: 18px 18px 16px; display: grid; gap: 8px; align-content: start; min-height: 168px; color: var(--brand-text); text-decoration: none; }
.fam-mini-card--say { background: var(--brand-ground); }
.fam-mini-card__kind { font-size: 0.8125rem; font-weight: 800; color: var(--brand-muted); }
.fam-mini-card__text { font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: 1.1875rem; line-height: 1.25; text-wrap: balance; margin: 0; }
.fam-mini-card__from { margin-top: auto; font-size: 0.8125rem; color: var(--brand-muted); }
.fam-mini-card .fam-icon-btn { position: absolute; top: 6px; right: 6px; }

/* a program's steps over the weeks */
.fam-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.fam-timeline li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.fam-timeline li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--brand-line); }
.fam-timeline li:last-child { padding-bottom: 0; } .fam-timeline li:last-child::before { display: none; }
.fam-timeline__dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brand-line); background: #FFFFFF; display: grid; place-items: center; }
.fam-timeline__dot .fam-icon { width: 16px; height: 16px; }
.fam-timeline li.is-done .fam-timeline__dot { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.fam-timeline li.is-done::before { background: var(--brand-primary); }
.fam-timeline li.is-current .fam-timeline__dot { border-color: var(--brand-primary); border-width: 3px; }
[data-brand="adoa"] .fam-timeline li.is-current .fam-timeline__dot { background: var(--adoa-sun); }
.fam-timeline b { display: block; }
.fam-timeline small { color: var(--brand-muted); font-size: 0.875rem; }
.fam-timeline li.is-live .fam-timeline__dot { border-color: var(--brand-text); }

/* a live session: time in the viewer's zone, calendar, then the replay */
.fam-live { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 18px; }
.fam-live__date { border-radius: 16px; background: var(--brand-ground); text-align: center; padding: 8px 0 10px; line-height: 1.1; }
[data-brand="adoa"] .fam-live__date { background: var(--adoa-sun); color: var(--adoa-ink); }
.fam-live__date small { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.fam-live__date b { display: block; font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fam-live__body { display: grid; gap: 6px; min-width: 0; }
.fam-live__body h3 { margin: 0; font-size: 1.0625rem; }
.fam-live__time { font-size: 0.9375rem; color: var(--brand-muted); margin: 0; }
.fam-live__body .fam-row { margin-top: 6px; gap: 8px; }
.fam-live__body .fam-btn { padding: 0.6em 1.2em; font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 420px) { .fam-live { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; } .fam-live__date b { font-size: 1.375rem; } }
.fam-live--now { border: 2px solid var(--fam-tomato); }
.fam-live__on { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 800; color: var(--fam-tomato-deep); }
.fam-live__on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fam-tomato); }

/* ---------- buying */
.fam-locked { display: grid; gap: 14px; }
.fam-locked__head { display: flex; gap: 12px; align-items: center; }
.fam-locked__head .fam-icon { width: 28px; height: 28px; color: var(--brand-muted); }
.fam-locked ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.fam-locked__ways { display: grid; gap: 10px; }
.fam-way { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 2px solid var(--brand-line); border-radius: 18px; padding: 14px 16px; background: #FFFFFF; color: var(--brand-text); text-decoration: none; }
.fam-way b { display: block; }
.fam-way small { color: var(--brand-muted); font-size: 0.875rem; }
.fam-way__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fam-way--best { border-color: var(--brand-primary); }

.fam-summary { background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 20px; display: grid; gap: 0; }
.fam-summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--brand-line); font-variant-numeric: tabular-nums; }
.fam-summary__row:first-of-type { border-top: 0; }
.fam-summary__row span:last-child { white-space: nowrap; }
.fam-summary__row--total { font-weight: 800; font-size: 1.125rem; border-top-width: 2px; border-top-color: var(--brand-text); }
.fam-summary__note { font-size: 0.875rem; color: var(--brand-muted); margin: 10px 0 0; }

.fam-receipt { background: #FFFFFF; border-radius: var(--fam-radius-lg); padding: var(--fam-space-4); display: grid; gap: 14px; justify-items: start; }
.fam-receipt__tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-primary); color: var(--brand-on-primary); }
.fam-receipt__tick .fam-icon { width: 28px; height: 28px; }
.fam-receipt dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; font-size: 0.9375rem; }
.fam-receipt dt { color: var(--brand-muted); }
.fam-receipt dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* school or centre code */
.fam-code-input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.375rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; }
.fam-redeemed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; background: var(--brand-ground); border-radius: var(--fam-radius-md); padding: 18px; }
.fam-redeemed > .fam-icon { width: 28px; height: 28px; color: var(--brand-primary); margin-top: 2px; }
.fam-redeemed p { margin: 4px 0 0; }

/* ---------- settings, privacy, membership */
.fam-settings { list-style: none; margin: 0; padding: 0 18px; background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: var(--fam-radius-md); }
.fam-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--brand-line); }
.fam-setting:first-child { border-top: 0; }
.fam-setting b { display: block; }
.fam-setting small { display: block; color: var(--brand-muted); font-size: 0.875rem; margin-top: 2px; }
a.fam-setting { color: inherit; text-decoration: none; }
.fam-setting__value { color: var(--brand-muted); font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* an on/off switch: a real checkbox underneath */
.fam-toggle { position: relative; display: inline-block; width: 52px; height: 32px; flex: none; }
.fam-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.fam-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #6B7785; transition: background 0.15s; }
.fam-toggle span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: transform 0.15s; }
.fam-toggle input:checked + span { background: var(--brand-primary); }
.fam-toggle input:checked + span::after { transform: translateX(20px); }
/* where an account is stored */
.fam-region { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--fam-radius-pill); padding: 5px 12px 5px 9px; font-size: 0.8125rem; font-weight: 800; background: var(--brand-ground); color: var(--brand-text); }
.fam-region .fam-icon { width: 16px; height: 16px; }
.fam-danger { border: 2px solid var(--brand-line); border-radius: var(--fam-radius-md); padding: 18px; display: grid; gap: 10px; justify-items: start; }
.fam-danger h3 { margin: 0; font-size: 1.0625rem; }
.fam-danger p { margin: 0; color: var(--brand-muted); font-size: 0.9375rem; }

/* ---------- Find and Ask Kaylene */
.fam-thinking { display: inline-flex; gap: 5px; align-items: center; height: 1.5em; }
.fam-thinking i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-muted); animation: fam-dot 1.2s infinite ease-in-out; }
.fam-thinking i:nth-child(2) { animation-delay: 0.15s; } .fam-thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes fam-dot { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.fam-no-match { justify-self: start; max-width: 92%; background: #FFFFFF; border: 2px solid var(--brand-line); border-radius: 22px; border-bottom-left-radius: 6px; padding: 16px 18px; display: grid; gap: 10px; }
.fam-no-match p { margin: 0; }
.fam-no-match__next { display: grid; gap: 8px; }
.fam-no-match__next a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--brand-ground); color: var(--brand-text); text-decoration: none; font-weight: 700; }
.fam-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--brand-muted); }
.fam-feedback .fam-icon-btn { width: 36px; height: 36px; color: var(--brand-muted); }
.fam-feedback .fam-icon-btn[aria-pressed="true"] { color: var(--brand-text); background: var(--brand-ground); }
.fam-allowance { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--brand-muted); }
.fam-allowance__dots { display: inline-flex; gap: 4px; }
.fam-allowance__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary); }
.fam-allowance__dots i.is-used { background: var(--brand-line); }
.fam-disclaimer { font-size: 0.8125rem; color: var(--brand-muted); margin: 0; }

/* the Help and support sheet: support lines first, calm steps, never an offer */
.fam-support-sheet { display: grid; gap: 16px; }
.fam-support-sheet__danger { background: var(--fam-tomato-deep); color: #FFFFFF; border-radius: var(--fam-radius-md); padding: 16px 18px; display: grid; gap: 4px; }
.fam-support-sheet__danger a { color: #FFFFFF; font-size: 1.75rem; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; }
.fam-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fam-lines a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border: 2px solid var(--brand-line); border-radius: 16px; color: var(--brand-text); text-decoration: none; }
.fam-lines small { display: block; color: var(--brand-muted); font-size: 0.8125rem; }
.fam-lines span:last-child { font-weight: 800; color: var(--fam-tomato-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fam-calm { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 1.0625rem; }

/* ---------- system: sheets, dialogs, menus, loading, search */
.fam-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(23, 28, 34, 0.5); display: grid; place-items: center; padding: 16px; }
.fam-scrim--sheet { place-items: end center; padding: 0; }
.fam-modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #FFFFFF; border-radius: var(--fam-radius-lg); padding: var(--fam-space-4); display: grid; gap: 14px; }
.fam-modal__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.fam-modal__head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.fam-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.fam-sheet { width: min(640px, 100%); max-height: 88dvh; overflow: auto; background: #FFFFFF; border-radius: var(--fam-radius-lg) var(--fam-radius-lg) 0 0; padding: 10px var(--fam-space-3) calc(var(--fam-space-3) + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.fam-sheet::before { content: ""; justify-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--brand-line); }
/* shown in place, inside a page or a phone frame */
.fam-modal--inline, .fam-sheet--inline { box-shadow: 0 12px 40px rgba(23, 28, 34, 0.16); }
.fam-menu { list-style: none; margin: 0; padding: 6px; min-width: 220px; background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: 18px; box-shadow: 0 12px 32px rgba(23, 28, 34, 0.14); display: grid; }
.fam-menu a, .fam-menu button { display: flex; align-items: center; gap: 10px; width: 100%; font: inherit; font-weight: 600; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--brand-text); text-decoration: none; cursor: pointer; }
.fam-menu a:hover, .fam-menu button:hover { background: var(--brand-ground); }
.fam-menu hr { border: 0; border-top: 1px solid var(--brand-line); margin: 6px 4px; }
.fam-menu .is-danger { color: var(--fam-tomato-deep); }
.fam-skeleton { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--brand-line) 0%, var(--brand-ground) 50%, var(--brand-line) 100%); background-size: 200% 100%; animation: fam-shimmer 1.4s infinite linear; }
.fam-skeleton--text { height: 14px; } .fam-skeleton--title { height: 24px; width: 60%; } .fam-skeleton--card { height: 168px; border-radius: 22px; } .fam-skeleton--circle { width: 44px; height: 44px; border-radius: 50%; }
@keyframes fam-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fam-search { position: relative; }
.fam-search .fam-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--brand-muted); pointer-events: none; }
.fam-search .fam-input { padding-left: 50px; border-radius: var(--fam-radius-pill); }
.fam-results { list-style: none; margin: 0; padding: 0; display: grid; }
.fam-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--brand-line); color: var(--brand-text); text-decoration: none; }
.fam-results li:first-child .fam-result { border-top: 0; }
.fam-result b { display: block; }
.fam-result small { color: var(--brand-muted); font-size: 0.875rem; }
.fam-result mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--brand-primary); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* =====================================================================
   Platform, phase 2: the app screens (27 November 2026).
   My family opens on Today; My work opens on My library. The card deck is the one
   moving part: swipe to move on, double tap to unpack. Behaviour is in js/fam-deck.js.
   Everything on a card is positive: there is no "not that".
   ===================================================================== */
/* Card kinds: the same colour on screen as on the printed cards */
.fam-kind--say { background: var(--adoa-pink); color: var(--adoa-ink); border-color: var(--adoa-pink); }
.fam-kind--do { background: var(--adoa-pool); color: #FFFFFF; border-color: var(--adoa-pool); }
.fam-kind--notice { background: var(--adoa-sun); color: var(--adoa-ink); border-color: var(--adoa-sun); }
.fam-kind--remember { background: var(--adoa-mint); color: var(--adoa-ink); border-color: var(--adoa-mint); }
.fam-kind--say .fam-lift, .fam-kind--notice .fam-lift, .fam-kind--remember .fam-lift { background: linear-gradient(transparent 52%, #FFFFFF 52%, #FFFFFF 92%, transparent 92%); color: inherit; }
.fam-kind--do .fam-lift { background: none; color: var(--adoa-sun); }
.fam-kind--say .fam-flashcard__kind, .fam-kind--notice .fam-flashcard__kind, .fam-kind--remember .fam-flashcard__kind { color: var(--adoa-ink); }
.fam-kind--do .fam-flashcard__kind { color: #FFFFFF; }

/* The deck */
.fam-deck { position: relative; height: 380px; touch-action: pan-y; -webkit-user-select: none; user-select: none; outline: none; }
.fam-deck:focus-visible { outline: 3px solid var(--adoa-ink); outline-offset: 8px; border-radius: 36px; }
.fam-deck__card { position: absolute; inset: 0; border-radius: 32px; padding: 26px 24px 20px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; opacity: 0; pointer-events: none; transform: scale(0.94); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s; will-change: transform; }
.fam-deck__card::before { content: ""; position: absolute; right: 18px; top: 16px; width: 50px; aspect-ratio: 1; background: url("../elements/adoa/svg/adoa-stars-ink.svg") center / contain no-repeat; }
.fam-deck__card.fam-kind--do::before { background-image: url("../elements/adoa/svg/adoa-stars-white.svg"); }
.fam-deck__card.is-top { opacity: 1; pointer-events: auto; transform: none; z-index: 3; cursor: grab; box-shadow: 0 18px 36px -20px rgba(23, 28, 34, 0.4); }
.fam-deck__card.is-second { opacity: 1; z-index: 2; transform: rotate(-4deg) translateY(4px); }
.fam-deck__card.is-third { opacity: 1; z-index: 1; transform: rotate(5deg) translateY(10px); }
.fam-deck__card.is-second > *, .fam-deck__card.is-third > *, .fam-deck__card.is-second::before, .fam-deck__card.is-third::before { visibility: hidden; }
.fam-deck__card.is-dragging { transition: none; cursor: grabbing; }
.fam-deck__card.is-leaving { transition: transform 0.28s ease-in, opacity 0.28s ease-in; opacity: 0; }
.fam-deck__kind, .fam-deck__label { font-weight: 800; font-size: 0.875rem; }
.fam-deck__line { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 2.125rem; line-height: 1.08; margin: 0; align-self: center; text-wrap: balance; }
.fam-deck__sub { margin: 0; font-size: 1.0625rem; }
.fam-deck__by { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; padding-top: 12px; border-top: 1px solid rgba(23, 28, 34, 0.18); }
.fam-kind--do .fam-deck__by { border-top-color: rgba(255, 255, 255, 0.35); }
.fam-deck__by img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.fam-deck__more { display: none; }
/* unpacked: the card grows in place and the others step back */
.fam-deck.is-open { height: auto; }
.fam-deck.is-open .fam-deck__card.is-top { position: relative; grid-template-rows: auto; cursor: default; }
.fam-deck.is-open .fam-deck__card.is-second, .fam-deck.is-open .fam-deck__card.is-third { opacity: 0; }
.fam-deck.is-open .fam-deck__line { font-size: 1.5rem; padding-right: 56px; }
.fam-deck.is-open .fam-deck__sub, .fam-deck.is-open .fam-deck__by { display: none; }
.fam-deck.is-open .fam-deck__card.is-top { padding: 22px 22px 18px; }
.fam-deck.is-open .fam-deck__more { display: grid; gap: 12px; padding-top: 2px; }
.fam-deck__more p { margin: 2px 0 0; }
.fam-deck__try { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.1875rem; line-height: 1.2; }
.fam-deck__dose { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.72); color: var(--adoa-ink); text-decoration: none; font-weight: 800; }
.fam-deck__dose small { display: block; font-weight: 500; font-size: 0.8125rem; }
/* The two cards behind are turned a few degrees, so their corners hang about 25px below the stack. Clear them. */
.fam-deck__actions { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 44px; }
.fam-roundbtn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--brand-line); background: #FFFFFF; color: var(--adoa-ink); display: grid; place-items: center; cursor: pointer; }
.fam-roundbtn--sm { width: 38px; height: 38px; }
.fam-roundbtn .fam-icon { width: 20px; height: 20px; }
.fam-roundbtn[aria-pressed="true"], .fam-roundbtn[aria-expanded="true"] { background: var(--adoa-ink); border-color: var(--adoa-ink); color: #FFFFFF; }
.fam-roundbtn:focus-visible { outline: 3px solid var(--adoa-sun); outline-offset: 3px; }
.fam-hint { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 10px 0 0; font-size: 0.875rem; color: var(--brand-muted); }
.fam-hint .fam-icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .fam-deck__card, .fam-deck__card.is-leaving { transition: none; } }

/* Screens: the device frame and what goes inside it */
.fam-world { padding-block: clamp(48px, 7vw, 96px); }
.fam-worldhead { display: grid; gap: 12px; justify-items: start; }
.fam-worldhead h2 { margin: 0; }
.fam-worldhead p { margin: 0; }
.fam-screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); align-items: start; }
.fam-screen { margin: 0; display: grid; gap: 16px; justify-items: center; }
.fam-screen figcaption { display: grid; gap: 2px; text-align: center; max-width: 30ch; }
.fam-screen figcaption b { font-size: 1.0625rem; }
.fam-screen figcaption span { font-size: 0.9375rem; color: var(--brand-muted); line-height: 1.4; }
.fam-phone { background: #fff; border-radius: 44px; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; height: 680px; width: 100%; max-width: 330px;
  box-shadow: 0 0 0 1px var(--brand-line), 0 0 0 9px #fff, 0 0 0 10px var(--brand-line), 0 30px 60px -24px rgba(23, 28, 34, 0.28); margin: 10px; font-size: 15px; }
.fam-phone .fam-phone__status { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 2px; font-size: 13px; font-weight: 700; color: var(--brand-text); background: #fff; }
.fam-phone .fam-phone__status .fam-phone__dots { display: inline-flex; gap: 4px; }
.fam-phone .fam-phone__status .fam-phone__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-text); opacity: 0.8; }
.fam-phone .fam-appbar { padding: 10px 20px 12px; border-bottom: 0; min-height: 52px; }
.fam-phone .fam-phone__body { background: #fff; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: none; overscroll-behavior: contain; }
.fam-phone .fam-phone__body::-webkit-scrollbar { display: none; }
.fam-phone .fam-dose { padding: 20px; border-radius: 26px; }
.fam-phone .fam-h3 { font-size: 1.1875rem; margin: 0; }
.fam-phone .fam-switch { justify-self: start; overflow: visible; }
.fam-view > * { flex: none; }
.fam-view > .fam-switch { align-self: flex-start; }
.fam-view > .fam-btn { align-self: stretch; }
.fam-phone .fam-switch button { font-size: 13px; padding-inline: 14px; }
.fam-phone .fam-result { padding: 10px 2px; }
.fam-phone .fam-result small { display: block; color: var(--brand-muted); font-size: 0.8125rem; }
.fam-phone .fam-btn { padding: 0.8em 1.5em; font-size: 0.9375rem; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.fam-phone .fam-btn .fam-icon { width: 18px; height: 18px; }
.fam-tabbar.fam-tabbar--5 { grid-template-columns: repeat(5, 1fr); }
.fam-tabbar.fam-tabbar--3 { grid-template-columns: repeat(3, 1fr); }
.fam-phone .fam-tabbar a { font-size: 11px; padding: 9px 2px 12px; }
.fam-phone .fam-tabbar svg { width: 22px; height: 22px; }
.fam-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.fam-tag.is-on { background: var(--brand-primary); color: var(--brand-on-primary); }
/* Today: the way into Shuffle */
.fam-shufflerow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--adoa-sun); color: var(--adoa-ink); text-decoration: none; }
.fam-shufflerow small { display: block; font-size: 0.8125rem; }
.fam-ministack { position: relative; width: 34px; height: 40px; }
.fam-ministack i { position: absolute; inset: 0; border-radius: 8px; background: #fff; border: 1.5px solid var(--adoa-ink); }
.fam-ministack i:nth-child(1) { transform: rotate(-12deg) translate(-3px, 2px); }
.fam-ministack i:nth-child(2) { transform: rotate(8deg) translate(3px, 1px); }
/* Shuffle: one card at a time, with the next ones waiting behind it */
/* The Dose library: Kaylene on every row, because the teaching is always her */
.fam-doselist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fam-doserow { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--brand-text); }
.fam-doserow b { display: block; line-height: 1.25; }
.fam-doserow small { display: block; color: var(--brand-muted); font-size: 0.8125rem; margin-top: 2px; }
.fam-doserow .fam-badge { margin-top: 6px; }
.fam-thumb { position: relative; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; background: var(--brand-ground); display: block; }
.fam-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.fam-thumb i { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); display: grid; place-items: center; }
.fam-thumb i .fam-icon { width: 12px; height: 12px; }
/* Card sets */
.fam-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fam-set { display: grid; gap: 4px; padding: 10px 10px 12px; border-radius: 22px; background: var(--brand-ground); text-decoration: none; color: var(--brand-text); text-align: center; font-size: 0.9375rem; }
.fam-set img { width: 100%; aspect-ratio: 5 / 3.4; object-fit: contain; }
/* Ask Kaylene */
.fam-ask { display: grid; gap: 12px; padding: 20px; border-radius: 26px; background: var(--brand-ground); }
.fam-ask__count { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--brand-line); }
.fam-ask__count small { display: block; color: var(--brand-muted); font-size: 0.8125rem; }
.fam-faces { display: inline-flex; }
.fam-faces i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--brand-ground); margin-left: -8px; background: var(--adoa-pool); }
.fam-faces i:first-child { margin-left: 0; background: var(--adoa-pink); }
.fam-faces i:nth-child(2) { background: var(--adoa-mint); }
.fam-metoo { border: 1.5px solid var(--brand-line); background: #fff; color: var(--brand-text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.8125rem; font-weight: 800; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.fam-metoo.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.fam-metoo .fam-icon { width: 14px; height: 14px; }
/* My work: modules and a certificate */
.fam-modules { list-style: none; margin: 0; padding: 0; display: grid; }
.fam-modules li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--brand-line); color: var(--brand-muted); }
.fam-modules li:first-child { border-top: 0; }
.fam-modules li b { display: block; color: var(--brand-text); }
.fam-modules li small { display: block; font-size: 0.8125rem; }
.fam-modules li.is-done .fam-icon, .fam-modules li.is-now .fam-icon { color: var(--brand-primary); }
.fam-modules li.is-now { background: var(--brand-ground); border-radius: 16px; padding-inline: 12px; border-top-color: transparent; }
.step-panel[hidden] { display: none !important; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.choice { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px; border-radius: 22px; border: 2px solid var(--brand-line, #DCE3E9); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: inherit; }
.choice img { width: 100%; max-width: 120px; aspect-ratio: 5 / 4; object-fit: contain; }
.choice[aria-pressed="true"] { border-color: var(--adoa-pool, #0077D6); box-shadow: 0 0 0 3px rgba(0, 119, 214, .18); }
@media (max-width: 640px) { .fam-phone { height: auto; min-height: 560px; } }
/* Doses library: illustrated covers and filter chips (visual only) */
.fam-product__cover.is-illo { object-fit: contain; background: var(--brand-ground); padding: 12px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .fam-label { margin-right: 4px; }
.chips button.fam-tag { border: 0; font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.chips .fam-tag[aria-pressed="true"] { background: var(--brand-primary); color: var(--brand-on-primary); }
.fam-product__body .fam-badge { justify-self: start; }
.fam-section--primary .fam-btn--secondary { color: var(--adoa-ink, #171C22); }
/* Phone header: keep the menu on one scrolling row instead of wrapping into three. */
@media (max-width: 640px) {
  .fam-header .fam-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
  .fam-header .fam-nav::-webkit-scrollbar { display: none; }
  .fam-header .fam-nav a { white-space: nowrap; }
}

/* Card kinds carry colour, the same on screen as on the printed cards */
/* Today opens on the sunrise */
.fam-hello { display: grid; gap: 12px; justify-items: start; padding: 6px 0 10px; }
.fam-hello__hi { margin: 0; color: #fff; font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: 1.875rem; line-height: 1.05; }
.fam-hello .fam-switch { background: rgba(255, 255, 255, 0.92); }
.fam-tonight { display: grid; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--brand-line); text-decoration: none; color: var(--brand-text); }
.fam-tonight__still { position: relative; display: block; aspect-ratio: 16 / 8.2; background: var(--adoa-sun); }
.fam-tonight__still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.fam-tonight__still i { position: absolute; left: 14px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.fam-tonight__still i .fam-icon { width: 16px; height: 16px; }
.fam-tonight__still b { position: absolute; right: 12px; bottom: 14px; background: rgba(23, 28, 34, 0.78); color: #fff; font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.fam-tonight__body { display: grid; gap: 4px; padding: 14px 18px 18px; }
.fam-tonight__t { font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: 1.5rem; line-height: 1.1; }
.fam-tonight__s { font-size: 0.9375rem; }
/* Card sets take turns with the palette */
.fam-sets .fam-set:nth-child(4n+1) { background: var(--adoa-pink); }
.fam-sets .fam-set:nth-child(4n+2) { background: var(--adoa-sun); }
.fam-sets .fam-set:nth-child(4n+3) { background: var(--adoa-mint); }
.fam-sets .fam-set:nth-child(4n+4) { background: var(--adoa-mist); }
.fam-set b { font-weight: 800; }
/* The library leads with this week's answer */
.fam-newdose { display: grid; gap: 2px; text-decoration: none; color: var(--brand-text); }
.fam-newdose__still { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--adoa-sun); margin-bottom: 8px; }
.fam-newdose__still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.fam-newdose__still i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; }
.fam-newdose__still i .fam-icon { width: 20px; height: 20px; }
.fam-newdose__still .fam-badge { position: absolute; left: 12px; top: 12px; }
.fam-newdose b { font-size: 1.0625rem; line-height: 1.25; }
.fam-newdose small { color: var(--brand-muted); font-size: 0.8125rem; }
/* Ask Kaylene: your question, in the brand's own blue */
.fam-ask { background: var(--adoa-pool); color: #fff; }
.fam-ask .fam-label, .fam-ask .fam-h3, .fam-ask small { color: #fff; }
.fam-ask .fam-ask__count { border-top-color: rgba(255, 255, 255, 0.35); }
.fam-ask .fam-faces i { border-color: var(--adoa-pool); }
.fam-ask .fam-faces i:nth-child(3) { background: var(--adoa-sun); }
.fam-phone__illo { width: 150px; align-self: center; margin: -4px 0 -6px; }
.fam-phone .fam-way--best { background: var(--adoa-mist); }
/* My work: her watercolour, her course covers, her certificate */
.fam-course { padding: 0 0 18px !important; overflow: hidden; }
.fam-course > *:not(.fam-course__cover) { margin-inline: 18px !important; }
.fam-course__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.fam-certimg { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--brand-line), 0 14px 28px -18px rgba(30, 50, 68, 0.5); display: block; }
.fam-metoo[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }

/* One phone, many views: js/fam-app.js shows one at a time */
.fam-view { display: flex; flex-direction: column; gap: 16px; padding: 6px 18px 26px; min-height: 100%; outline: none; }
.fam-view[hidden], .fam-tabbar[hidden] { display: none; }
.fam-view--sunrise { background: url("../backgrounds/svg/adoa-sunrise-pool-portrait.svg") center top / 100% 250px no-repeat; }
.fam-view--sunrise .fam-hello__hi { padding-top: 6px; }
.fam-view--mist { background: var(--adoa-mist); }
.fam-view--water { background: url("../backgrounds/svg/dkh-watercolour-indigo-portrait.svg") center top / 100% 150px no-repeat; padding-top: 22px; }
.fam-view--water > h2:first-child { color: #FFFFFF; margin: 0 0 34px; }
.fam-apphead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 18px 10px; background: #FFFFFF; min-height: 46px; }
.fam-apphead img { height: 24px; display: block; }
.fam-phone[data-mode="work"] .fam-apphead img { height: 32px; }
/* The family / work switch: small, right of the logo, and only rendered for people who have both */
.fam-modeswitch { display: inline-flex; padding: 3px; border-radius: var(--fam-radius-pill); background: var(--brand-ground); flex: none; }
.fam-modeswitch button { border: 0; background: transparent; color: var(--brand-muted); font: inherit; font-size: 12px; font-weight: 800; line-height: 1; padding: 6px 10px; border-radius: var(--fam-radius-pill); cursor: pointer; }
.fam-modeswitch button[aria-pressed="true"] { background: var(--brand-text); color: #FFFFFF; }
.fam-modeswitch button:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
.fam-backbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; margin: -6px -18px 0; padding: 8px 18px; background: rgba(255, 255, 255, 0.94); font-weight: 800; }
.fam-backbar a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-link); text-decoration: none; font-weight: 800; }
.fam-backbar .fam-icon { width: 18px; height: 18px; }
.fam-view--mist .fam-backbar { background: rgba(243, 246, 248, 0.94); }
.fam-findbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--fam-radius-pill); background: #FFFFFF; border: 1.5px solid var(--brand-line); color: var(--brand-muted); text-decoration: none; font-size: 0.9375rem; }
.fam-findbar .fam-icon { width: 18px; height: 18px; }
.fam-panel { background: #FFFFFF; border-radius: 22px; padding: 14px 16px; box-shadow: 0 10px 24px -16px rgba(23, 28, 34, 0.4); }
.fam-sectionhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 -6px; }
.fam-sectionhead h3 { margin: 0; font-size: 1.0625rem; }
.fam-sectionhead a { font-size: 0.8125rem; font-weight: 800; color: var(--brand-link); text-decoration: none; }
/* The pieces the views are made of */
.fam-phone[data-mode="family"] .fam-apphead [data-for="work"], .fam-phone[data-mode="work"] .fam-apphead [data-for="family"] { display: none; }
.fam-tabbar.fam-tabbar--2 { grid-template-columns: repeat(2, 1fr); }
.fam-viewtitle { font-size: 1.5rem; margin: 4px 0 0; }
.fam-view .fam-hello { padding: 10px 0 2px; }
.fam-view .fam-hello__hi { margin: 0; color: #FFFFFF; font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.875rem; line-height: 1.05; }
.fam-view .fam-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; }
.fam-btn--line { border: 1.5px solid var(--brand-line); }
.fam-swap__on { display: none; align-items: center; gap: 6px; }
.fam-swap[aria-pressed="true"] .fam-swap__off { display: none; }
.fam-swap[aria-pressed="true"] .fam-swap__on { display: inline-flex; }
.fam-swap__off { display: inline-flex; align-items: center; gap: 6px; }
.fam-swap[aria-pressed="true"] { background: var(--brand-ground); color: var(--brand-text); border-color: transparent; }
button.fam-tag { border: 0; font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.fam-tag[aria-pressed="true"] { background: var(--brand-primary); color: var(--brand-on-primary); }
button.fam-tag:focus-visible, .fam-metoo:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
.fam-dosevideo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--adoa-sun); }
.fam-dosevideo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.fam-dosevideo i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; }
.fam-dosevideo i .fam-icon { width: 22px; height: 22px; }
.fam-dosevideo figcaption { position: absolute; left: 12px; top: 12px; background: rgba(23, 28, 34, 0.78); color: #FFFFFF; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 11px; }
.fam-minicards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fam-minicard { border-radius: 22px; padding: 16px; display: grid; gap: 8px; align-content: start; min-height: 132px; }
.fam-minicard > span { font-size: 0.8125rem; font-weight: 800; }
.fam-minicard > b { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.0625rem; line-height: 1.15; }
.fam-minicard > small { font-size: 0.75rem; align-self: end; }
.fam-notice { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--adoa-sun); color: var(--adoa-ink); text-decoration: none; }
.fam-notice small { display: block; font-size: 0.8125rem; }
.fam-kayhead { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding-top: 4px; }
.fam-kayhead img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.fam-askbox { border-radius: 22px; resize: none; font: inherit; line-height: 1.45; }
.fam-shufflerow--big { padding: 20px 18px; }
a.fam-dose { text-decoration: none; color: inherit; }
.fam-view .fam-phone__illo { width: 170px; align-self: center; margin: 4px 0 -4px; }


/* =====================================================================
   The working phone, second pass (27 November 2026, after the design review).
   Everything here is scoped to [data-fam-app], the root js/fam-app.js drives.
   - A real phone size: 390 x 844, shorter only when the window is.
   - Three kinds of screen, set on the view as data-kind and copied to the root:
       root   a tab's own screen: logo header and tab bar
       inner  one bar (back, title), tab bar stays
       focus  one bar, no tab bar (Shuffle, a Dose, Ask)
   - Three roles that never share a look: a button (filled, one per screen),
     a pick (a choice you switch on: tinted, with a tick), a status (plain text).
   - A row that opens something ends in a chevron; one that does not is plain.
   - Spacing: 28 between sections, 12 from a heading to its content.
   ===================================================================== */
[data-fam-app] { --app-tint: color-mix(in srgb, var(--brand-primary) 13%, #FFFFFF); --app-tint-line: color-mix(in srgb, var(--brand-primary) 38%, #FFFFFF);
  display: flex; flex-direction: column; width: 390px; max-width: 100%; height: clamp(660px, calc(100svh - 48px), 844px); border-radius: 52px; font-size: 16px; line-height: 1.45; }
@media (max-width: 640px) { [data-fam-app].fam-phone { height: clamp(660px, calc(100svh - 48px), 844px); min-height: 0; } }
[data-fam-app] .fam-phone__status { padding: 16px 32px 6px; font-size: 15px; flex: none; }
[data-fam-app] .fam-phone__body { flex: 1; min-height: 0; }
[data-fam-app] .fam-apphead { flex: none; padding: 4px 12px 8px 20px; min-height: 52px; }
[data-fam-app] .fam-apphead img { height: 28px; }
[data-fam-app][data-mode="work"] .fam-apphead img { height: 38px; }
[data-fam-app][data-kind="inner"] .fam-apphead, [data-fam-app][data-kind="focus"] .fam-apphead { display: none; }
[data-fam-app][data-kind="focus"] nav.fam-tabbar { display: none !important; }
/* The family / work switch: one quiet word, naming the other side. Rendered only for people who have both. */
[data-fam-app] .fam-modeswitch { background: none; padding: 0; }
[data-fam-app] .fam-modeswitch button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; background: none; color: var(--brand-muted); font-size: 14px; font-weight: 700; border-radius: var(--fam-radius-pill); }
[data-fam-app] .fam-modeswitch button[aria-pressed="true"] { display: none; }
[data-fam-app] .fam-modeswitch button:hover { color: var(--brand-text); }
[data-fam-app] .fam-modeswitch .fam-icon { width: 16px; height: 16px; }
[data-fam-app] .fam-tabbar { flex: none; padding-bottom: 20px; }
[data-fam-app] .fam-tabbar a { font-size: 11px; padding: 10px 2px 4px; gap: 3px; min-height: 52px; }
[data-fam-app] .fam-tabbar a[aria-current="page"] { font-weight: 800; }
[data-fam-app] .fam-tabbar svg { width: 24px; height: 24px; }

/* A view, its bar, its title */
[data-fam-app] .fam-view { padding: 8px 20px 40px; gap: 28px; }
[data-fam-app] .fam-view > .fam-btn { align-self: stretch; }
.fam-navbar { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: minmax(44px, auto) 1fr minmax(44px, auto); align-items: center; gap: 4px; margin: -8px -12px -12px; padding: 4px 0; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fam-navbar > b { text-align: center; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-navbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--brand-text); text-decoration: none; cursor: pointer; }
.fam-navbtn:hover { background: var(--brand-ground); }
.fam-navbtn .fam-icon { width: 22px; height: 22px; }
.fam-navact { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; margin-right: 4px; border-radius: var(--fam-radius-pill); background: var(--brand-primary); color: var(--brand-on-primary); font-weight: 800; font-size: 15px; text-decoration: none; }
.fam-navbtn:focus-visible, .fam-navact:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
.fam-pagetitle { margin: 4px 0 0; font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: 2rem; line-height: 1.08; letter-spacing: var(--brand-track-display); text-wrap: balance; }
.fam-pagetitle--sm { font-size: 1.625rem; }
.fam-titleblock { display: grid; gap: 8px; }
.fam-titleblock p { margin: 0; text-wrap: pretty; }
.fam-muted { color: var(--brand-muted); }
[data-fam-app] .fam-small { font-size: 0.875rem; text-wrap: pretty; }

/* Sections and rows */
.fam-sec { display: grid; gap: 12px; }
.fam-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fam-sec__head h3 { margin: 0; font-family: var(--fam-font-body); font-size: 1.125rem; font-weight: 800; line-height: 1.25; letter-spacing: 0; }
[data-brand="dkh"] .fam-sec__head h3 { font-family: var(--dkh-font-heading); font-weight: 700; }
.fam-sec__head a { flex: none; white-space: nowrap; font-size: 0.875rem; font-weight: 800; color: var(--brand-link); text-decoration: none; padding: 6px 0; }
.fam-sec > p { margin: 0; }
.fam-rows { list-style: none; margin: 0; padding: 0; }
.fam-rows > li + li { border-top: 1px solid var(--brand-line); }
.fam-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 60px; padding: 10px 0; color: var(--brand-text); text-decoration: none; }
.fam-item--lead { grid-template-columns: auto minmax(0, 1fr) auto; }
.fam-item b { display: block; font-weight: 800; line-height: 1.3; }
.fam-item small { display: block; color: var(--brand-muted); font-size: 0.875rem; line-height: 1.35; margin-top: 1px; }
.fam-item > .fam-icon { width: 18px; height: 18px; color: var(--brand-muted); }
.fam-item__lead { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-ground); display: grid; place-items: center; }
.fam-item__lead .fam-icon { width: 20px; height: 20px; }
.fam-group { background: var(--brand-ground); border-radius: 24px; padding: 4px 18px; }
.fam-group--pad { padding: 18px; display: grid; gap: 14px; }
.fam-group--pad p { margin: 0; }
.fam-group .fam-rows > li + li { border-top-color: color-mix(in srgb, var(--brand-text) 10%, transparent); }

/* Button sizes inside the phone; the fill comes from .fam-btn */
[data-fam-app] .fam-btn { min-height: 52px; padding: 0 24px; font-size: 1rem; justify-content: center; text-align: center; }
[data-fam-app] .fam-btn--line { background: #FFFFFF; color: var(--brand-text); border: 1.5px solid var(--brand-line); }
[data-fam-app] .fam-btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; background: var(--app-tint); color: var(--brand-text); flex: none; }
[data-brand="dkh"][data-fam-app] .fam-btn--sm { font-size: 0.75rem; letter-spacing: 0.12em; }
[data-fam-app] .fam-swap[aria-pressed="true"] { background: var(--brand-ground); color: var(--brand-text); border-color: transparent; }

/* A pick: a choice you switch on. Tinted with a tick, never a filled button. */
.fam-pickrow { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-pickrow--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
.fam-pickrow--scroll::-webkit-scrollbar { display: none; }
.fam-pick { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--fam-radius-pill); border: 1.5px solid var(--brand-line); background: #FFFFFF; color: var(--brand-text); font: inherit; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
span.fam-pick { cursor: default; }
.fam-pick .fam-icon { display: none; width: 16px; height: 16px; color: var(--brand-link); }
.fam-pick[aria-pressed="true"], .fam-pick.is-on { background: var(--app-tint); border-color: var(--app-tint-line); padding-left: 12px; }
.fam-pick[aria-pressed="true"] .fam-icon, .fam-pick.is-on .fam-icon { display: inline; }
.fam-pick--past { background: var(--brand-ground); border-color: transparent; color: var(--brand-muted); }
.fam-pick--sm { min-height: 34px; padding: 0 13px; font-size: 0.875rem; }
.fam-pick--sm.is-on { padding-left: 12px; }
.fam-pick--sm .fam-icon { display: none !important; }
.fam-pickrow.is-full .fam-pick[aria-pressed="false"] { opacity: 0.5; }
.fam-pick:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
.fam-aside { display: none; margin: 0; font-size: 0.875rem; font-weight: 700; }
.fam-sec:has(.is-refused) .fam-aside--full, .fam-sec:has(.fam-pick[aria-pressed="true"]) .fam-aside--thanks { display: block; }
/* A status: what is true, in plain words. Not tappable, so not a pill. */
.fam-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 800; color: var(--brand-text); }
.fam-status .fam-icon { width: 16px; height: 16px; color: var(--brand-link); }
.fam-status--new::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--adoa-sun); box-shadow: 0 0 0 1.5px var(--adoa-ink); }

/* Colour grounds for tiles and topic thumbnails */
.fam-c-pink { background: var(--adoa-pink); } .fam-c-sun { background: var(--adoa-sun); } .fam-c-mint { background: var(--adoa-mint); }
.fam-c-tint { background: color-mix(in srgb, var(--adoa-pool) 22%, #FFFFFF); }
/* A Dose in a list: its topic's picture, never the same photo of Kaylene twice */
.fam-drows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fam-drow { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--brand-text); text-decoration: none; }
.fam-drow b { display: block; font-weight: 800; line-height: 1.3; text-wrap: pretty; }
.fam-drow small { display: block; color: var(--brand-muted); font-size: 0.875rem; margin-top: 2px; }
.fam-drow .fam-status { margin-top: 4px; }
.fam-topic { position: relative; width: 72px; height: 72px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; }
.fam-topic img { width: 88%; height: 88%; object-fit: contain; }
.fam-topic i { position: absolute; right: 5px; bottom: 5px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; color: var(--adoa-ink); display: grid; place-items: center; }
.fam-topic i .fam-icon { width: 11px; height: 11px; }

/* Video frames: Kaylene's photo lives here, with the play mark out of her way */
.fam-media { position: relative; display: block; margin: 0; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 10; background: var(--adoa-sun); }
.fam-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.fam-playmark { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: var(--adoa-ink); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(23, 28, 34, 0.5); }
.fam-playmark .fam-icon { width: 18px; height: 18px; }
.fam-dur { position: absolute; right: 14px; bottom: 14px; background: rgba(23, 28, 34, 0.8); color: #FFFFFF; font-size: 0.8125rem; font-weight: 700; border-radius: var(--fam-radius-pill); padding: 4px 12px; }

/* Today */
[data-fam-app] .fam-view--today { padding-top: 0; }
.fam-todayhead { display: grid; gap: 14px; margin: 0 -20px -4px; padding: 16px 20px 22px; background: var(--adoa-pool); border-radius: 0 0 30px 30px; }
.fam-todayhead p { margin: 0; color: #FFFFFF; font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.875rem; line-height: 1.05; }
[data-fam-app] .fam-findbar { min-height: 52px; padding: 0 18px; border: 0; font-size: 1rem; white-space: nowrap; overflow: hidden; }
[data-fam-app] .fam-findbar--line { border: 1.5px solid var(--brand-line); }
.fam-lead-dose { display: block; border-radius: 28px; overflow: hidden; background: var(--brand-ground); color: var(--brand-text); text-decoration: none; }
.fam-lead-dose .fam-media { border-radius: 0; }
.fam-lead-dose__body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.fam-lead-dose__body .fam-status { color: var(--brand-muted); }
.fam-lead-dose__t { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.625rem; line-height: 1.1; text-wrap: balance; }
.fam-focusline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -12px; }
.fam-focusline > b { font-size: 0.875rem; margin-right: 2px; }
.fam-focusline > a { margin-left: auto; font-size: 0.875rem; font-weight: 800; color: var(--brand-link); text-decoration: none; padding: 6px 0; }
.fam-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 24px; border: 1.5px solid var(--brand-line); background: #FFFFFF; color: var(--brand-text); text-decoration: none; }
.fam-tile b { display: block; font-weight: 800; }
.fam-tile small { display: block; color: var(--brand-muted); font-size: 0.875rem; }
.fam-tile > .fam-icon { width: 18px; height: 18px; color: var(--brand-muted); }
.fam-tile--sun { background: var(--adoa-sun); border-color: transparent; }
.fam-tile--sun small, .fam-tile--sun > .fam-icon { color: var(--adoa-ink); }
.fam-tile--stack { grid-template-columns: 1fr; justify-items: start; gap: 12px; padding: 16px 18px 18px; }
.fam-tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fam-fan { position: relative; width: 38px; height: 50px; margin: 0 14px; }
.fam-fan i { position: absolute; inset: 0; border-radius: 9px; background: var(--adoa-pink); box-shadow: 0 0 0 2px #FFFFFF; }
.fam-fan i:nth-child(1) { background: var(--adoa-mint); transform: rotate(-18deg) translate(-11px, 3px); }
.fam-fan i:nth-child(2) { background: var(--adoa-pool); transform: rotate(16deg) translate(11px, 2px); }

/* Cards */
[data-fam-app] .fam-sets { gap: 12px; }
[data-fam-app] .fam-set { border-radius: 24px; padding: 14px 12px 16px; font-size: 1rem; }
[data-fam-app] .fam-set.fam-c-pink { background: var(--adoa-pink); } [data-fam-app] .fam-set.fam-c-sun { background: var(--adoa-sun); }
[data-fam-app] .fam-set.fam-c-mint { background: var(--adoa-mint); } [data-fam-app] .fam-set.fam-c-tint { background: color-mix(in srgb, var(--adoa-pool) 22%, #FFFFFF); }
.fam-kcards { display: grid; gap: 12px; }
.fam-kcard { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px 12px; align-items: baseline; padding: 20px; border-radius: 24px; text-decoration: none; }
.fam-kcard > span { font-size: 0.875rem; font-weight: 800; }
.fam-kcard > b { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.25rem; line-height: 1.15; text-wrap: balance; }
.fam-who { grid-column: 2; display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; margin-top: 6px; }
.fam-who i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; color: var(--adoa-ink); font-style: normal; font-weight: 800; font-size: 0.75rem; margin-right: -12px; box-shadow: 0 0 0 2px currentColor; }
.fam-who i:last-of-type { margin-right: 0; }
.fam-kind--say .fam-who i, .fam-kind--notice .fam-who i, .fam-kind--remember .fam-who i { box-shadow: 0 0 0 1.5px var(--adoa-ink); }
.fam-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--fam-radius-pill); background: var(--brand-ground); }
.fam-seg--fit { display: flex; }
.fam-seg__b { flex: 1 1 auto; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--fam-radius-pill); background: transparent; color: var(--brand-muted); font: inherit; font-size: 0.875rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.fam-seg__b[aria-pressed="true"] { background: #FFFFFF; color: var(--brand-text); box-shadow: 0 2px 8px -4px rgba(23, 28, 34, 0.4); }
.fam-seg__b:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }

/* Shuffle, full screen: the card, two things to do with it, and a way on */
[data-fam-app] .fam-view--deck { background: var(--adoa-mist); gap: 0; padding-bottom: 28px; }
[data-fam-app] .fam-view--deck .fam-navbar { background: rgba(243, 246, 248, 0.94); margin-bottom: 0; }
.fam-deckstage { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 16px 4px 0; }
.fam-deckwrap { position: relative; }
[data-fam-app] .fam-deck { height: clamp(380px, calc(100svh - 420px), 500px); }
[data-fam-app] .fam-deck.is-open { height: auto; }
[data-fam-app] .fam-deck__card { border-radius: 36px; padding: 28px 28px 24px; gap: 14px; }
[data-fam-app] .fam-deck__card::before { content: none; }
[data-fam-app] .fam-deck__card.is-second { transform: rotate(-2.5deg) translateY(6px); }
[data-fam-app] .fam-deck__card.is-third { transform: rotate(2.5deg) translateY(10px); }
[data-fam-app] .fam-deck__kind, [data-fam-app] .fam-deck__label { font-size: 0.9375rem; }
[data-fam-app] .fam-deck__line { font-size: 2.5rem; line-height: 1.06; }
[data-fam-app] .fam-deck__sub { font-size: 1.125rem; text-wrap: pretty; }
[data-fam-app] .fam-deck__by { border-top: 0; padding-top: 0; font-size: 0.8125rem; opacity: 0.85; }
[data-fam-app] .fam-deck__by img { display: none; }
[data-fam-app] .fam-deck.is-open .fam-deck__line { font-size: 1.75rem; padding-right: 0; }
[data-fam-app] .fam-deck.is-open .fam-deck__card.is-top { padding: 28px; }
[data-fam-app] .fam-deck__more { gap: 18px; }
[data-fam-app] .fam-deck__try { font-size: 1.375rem; }
/* the lifted phrase: a whole marker behind the words, not a stripe through them */
[data-fam-app] .fam-kind--say .fam-lift, [data-fam-app] .fam-kind--notice .fam-lift, [data-fam-app] .fam-kind--remember .fam-lift { background: linear-gradient(transparent 14%, #FFFFFF 14%, #FFFFFF 92%, transparent 92%); padding: 0 0.14em; margin: 0 -0.14em; border-radius: 8px; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fam-deckacts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.fam-quietbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 0; border-radius: var(--fam-radius-pill); background: #FFFFFF; color: var(--adoa-ink); font: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer; }
.fam-quietbtn .fam-icon { width: 18px; height: 18px; }
.fam-quietbtn--bare { background: transparent; }
.fam-quietbtn[aria-pressed="true"], .fam-quietbtn[aria-expanded="true"] { background: var(--adoa-ink); color: #FFFFFF; }
.fam-quietbtn:focus-visible { outline: 3px solid var(--adoa-pool); outline-offset: 2px; }
.fam-quietbtn .fam-on, .fam-quietbtn[aria-pressed="true"] .fam-off, .fam-quietbtn[aria-expanded="true"] .fam-off { display: none; }
.fam-quietbtn[aria-pressed="true"] .fam-on, .fam-quietbtn[aria-expanded="true"] .fam-on { display: inline; }
/* shown once: gone at the first touch */
.fam-coach { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); z-index: 4; margin: 0; background: var(--adoa-ink); color: #FFFFFF; border-radius: var(--fam-radius-pill); padding: 8px 16px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; pointer-events: none; transition: opacity 0.2s; }
.is-used .fam-coach, .fam-deck.is-open ~ .fam-coach { opacity: 0; }

/* A Dose, and its card */
.fam-byline { display: grid; gap: 2px; font-size: 0.875rem; color: var(--brand-muted); }
.fam-byline b { color: var(--brand-text); }
.fam-dosecard { position: relative; display: grid; gap: 10px; padding: 22px 76px 24px 22px; border-radius: 24px; }
.fam-dosecard > span { font-size: 0.875rem; font-weight: 800; }
.fam-dosecard > b { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.5rem; line-height: 1.12; text-wrap: balance; }
.fam-dosecard .fam-quietbtn { position: absolute; right: 14px; top: 14px; min-height: 40px; padding: 0 14px; font-size: 0.8125rem; }

/* Offers: the locked moment, and a program's group */
.fam-offer { display: grid; gap: 10px; padding: 20px; border-radius: 24px; border: 1.5px solid var(--brand-line); background: #FFFFFF; }
.fam-offer--best { border: 2px solid var(--brand-primary); }
.fam-offer > b { font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.fam-offer > p { margin: 0; color: var(--brand-muted); font-size: 0.9375rem; }
.fam-offer .fam-btn { margin-top: 6px; }
.fam-offer__t { font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: 1.5rem; line-height: 1.12; }
.fam-withillo { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.fam-withillo img { width: 96px; }
.fam-numsteps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.fam-numsteps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 56px; padding: 8px 0; }
.fam-numsteps li + li { border-top: 1px solid var(--brand-line); }
.fam-numsteps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--brand-ground); display: grid; place-items: center; font-weight: 800; font-size: 0.875rem; }
.fam-numsteps b { display: block; font-weight: 800; }
.fam-numsteps small { display: block; color: var(--brand-muted); font-size: 0.875rem; }
[data-fam-app] .fam-phone__illo { width: 150px; align-self: center; margin: 0 0 -8px; }
.fam-center { text-align: center; justify-items: center; }

/* Kaylene, Ask, Me */
.fam-face { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--adoa-sun); position: relative; flex: none; }
.fam-face img { position: absolute; width: 250%; max-width: none; left: -78%; top: -26%; }
.fam-kayhead2 { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; }
.fam-kayhead2 p { margin: 4px 0 0; }
[data-fam-app] .fam-metoo { min-height: 40px; padding: 0 14px; font-size: 0.875rem; gap: 6px; }
[data-fam-app] .fam-metoo .fam-icon { display: none; width: 16px; height: 16px; color: var(--brand-link); }
[data-fam-app] .fam-metoo[aria-pressed="true"] { background: var(--app-tint); border-color: var(--app-tint-line); color: var(--brand-text); }
[data-fam-app] .fam-metoo[aria-pressed="true"] .fam-icon { display: inline; }
.fam-n-on, li:has(.fam-metoo[aria-pressed="true"]) .fam-n-off { display: none; }
li:has(.fam-metoo[aria-pressed="true"]) .fam-n-on { display: inline; }
[data-fam-app] .fam-askbox { min-height: 168px; padding: 16px 18px; font-size: 1.0625rem; }
[data-fam-app] .fam-disclaimer { margin: 0; font-size: 0.8125rem; color: var(--brand-muted); }
.fam-mehead { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 4px; }
.fam-mehead > i { width: 56px; height: 56px; border-radius: 50%; background: var(--adoa-sun); color: var(--adoa-ink); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 1.375rem; }
.fam-mehead .fam-pagetitle { margin: 0; }

/* My work: one course card, real text, one progress line */
.fam-coursecard { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; border: 1.5px solid var(--brand-line); background: #FFFFFF; color: var(--brand-text); text-decoration: none; }
.fam-coursecard__band { padding: 12px 20px; background: var(--brand-ground); font-family: var(--dkh-font-heading); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.fam-coursecard__body { display: grid; gap: 12px; padding: 18px 20px 20px; }
.fam-coursecard__t { font-family: var(--dkh-font-heading); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.fam-coursecard small { color: var(--brand-muted); font-size: 0.875rem; }
.fam-coursecard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
[data-fam-app] .fam-coursecard .fam-progress { height: 8px; }
[data-fam-app] .fam-modules li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 8px; min-height: 60px; }
[data-fam-app] .fam-modules li .fam-icon { width: 24px; height: 24px; }
[data-fam-app] .fam-modules li.is-now { padding-inline: 12px; margin-inline: -4px; }
[data-fam-app] .fam-modules li.is-now + li { border-top-color: transparent; }
.fam-ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand-text) 28%, transparent); justify-self: center; }
.fam-feature { display: grid; gap: 4px; color: var(--brand-text); text-decoration: none; }
.fam-feature .fam-media { aspect-ratio: 16 / 9; margin-bottom: 10px; }
.fam-feature b { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.fam-feature small { color: var(--brand-muted); font-size: 0.875rem; }
.fam-offer .fam-label { margin: 0; }
.fam-dl { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--app-tint); color: var(--brand-text); display: grid; place-items: center; cursor: pointer; }
.fam-dl .fam-icon { width: 20px; height: 20px; }
.fam-dl .fam-on, .fam-dl[aria-pressed="true"] .fam-off { display: none; }
.fam-dl[aria-pressed="true"] .fam-on { display: grid; }
.fam-dl:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
.fam-deck__card[hidden] { display: none; }

/* In focus, Find and Keep (28 November 2026). One place for what was kept, one verb for keeping it. */
[data-fam-app] [hidden] { display: none !important; }
.fam-pane { display: grid; gap: 28px; }
.fam-panelname { display: none; margin: 0; font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-variation-settings: var(--brand-heading-axes); font-size: 1.5rem; line-height: 1.12; }
.fam-view.is-all .fam-panelname { display: block; }
.fam-view.is-all .fam-pane > .fam-btn, .fam-view.is-all > [data-show-panel="all"] { display: none; }
.fam-sec__head--page { align-items: center; }
.fam-sec__head--page .fam-pagetitle { margin: 0; }
.fam-sets--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-fam-app] .fam-sets--3 { gap: 10px; }
[data-fam-app] .fam-sets--3 .fam-set { padding: 10px 6px 12px; border-radius: 20px; font-size: 0.875rem; line-height: 1.2; }
.fam-findinput { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: var(--fam-radius-pill); background: var(--brand-ground); color: var(--brand-muted); }
.fam-findinput .fam-icon { flex: none; width: 18px; height: 18px; }
.fam-findinput input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--brand-text); font: inherit; font-size: 1rem; outline: none; }
.fam-findinput input::-webkit-search-cancel-button { display: none; }
.fam-findinput:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 30%, transparent); }
.fam-found { display: grid; gap: 28px; }
button.fam-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.fam-item:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
.fam-item .fam-status--own { margin-top: 4px; }
.fam-status--own .fam-icon { color: var(--brand-link); }
.fam-keep { min-height: 40px; padding: 0 14px; background: var(--brand-ground); font-size: 0.8125rem; }
.fam-navbar .fam-keep { min-height: 36px; margin-right: 4px; }
.fam-dosecard .fam-keep { background: #FFFFFF; }
.fam-dosecard .fam-keep[aria-pressed="true"], .fam-keep[aria-pressed="true"] { background: var(--adoa-ink); color: #FFFFFF; }
[data-fam-app] .fam-askbox--sm { min-height: 104px; }
[data-fam-app] .fam-faq { gap: 10px; }
[data-fam-app] .fam-faq details { border-radius: 20px; padding: 16px 18px; }
[data-fam-app] .fam-faq details p { color: var(--brand-muted); font-size: 0.9375rem; }
.fam-sec > .fam-byline { margin: 0; }
.fam-textbtn { justify-self: start; align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--brand-link); font: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer; }
.fam-textbtn:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
[data-fam-app] .fam-small a { color: var(--brand-link); font-weight: 800; text-decoration: none; }
.fam-kcards:empty { display: none; }

/* Card first, topics, the card screen, plans (28 November 2026, second pass). */
[data-plan="free"] [data-plan-only="member"], [data-plan="member"] [data-plan-only="free"] { display: none !important; }
.fam-leadcard { display: grid; gap: 14px; padding: 22px; border-radius: 28px; }
.fam-leadcard__for { font-size: 0.875rem; font-weight: 800; }
.fam-leadcard__card { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.fam-leadcard__card > span { font-size: 0.875rem; font-weight: 800; }
.fam-leadcard__card > b, .fam-bigcard > b { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.875rem; line-height: 1.1; text-wrap: balance; }
.fam-leadcard__dose { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 60px; padding: 10px 16px; border-radius: 20px; background: #FFFFFF; color: var(--adoa-ink); text-decoration: none; font-weight: 800; font-size: 0.9375rem; }
.fam-leadcard__dose small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--brand-muted); }
.fam-leadcard__dose .fam-icon { width: 28px; height: 28px; color: var(--brand-link); }
.fam-leadcard__dose--line { border: 1.5px solid var(--brand-line); }
.fam-leadcard a:focus-visible, .fam-leadcard__dose:focus-visible { outline: 3px solid var(--adoa-ink); outline-offset: 2px; }
.fam-bigcard { display: grid; gap: 10px; align-content: center; min-height: 240px; padding: 28px 24px; border-radius: 28px; }
.fam-bigcard > span { font-size: 0.875rem; font-weight: 800; }
.fam-topichead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.fam-topichead > div { display: grid; gap: 8px; justify-items: start; }
.fam-topichead .fam-pagetitle { margin: 0; }
.fam-topic--lg { width: 104px; height: 104px; border-radius: 26px; }
.fam-set--add { align-content: center; justify-items: center; background: #FFFFFF !important; border: 1.5px dashed var(--brand-line); color: var(--brand-link); }
.fam-set--add .fam-icon { width: 24px; height: 24px; }
.fam-pick [data-plan-only] .fam-icon { display: inline; width: 14px; height: 14px; color: var(--brand-muted); vertical-align: -2px; }
.fam-status--lock { color: var(--brand-muted); }
.fam-status--lock .fam-icon { color: var(--brand-muted); }
a.fam-textbtn { display: inline-flex; align-items: center; text-decoration: none; }
.fam-textbtn.fam-center { justify-self: center; align-self: center; }
.fam-planswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; font-weight: 800; }
.fam-planswitch > span { display: inline-flex; padding: 4px; border-radius: var(--fam-radius-pill); background: #FFFFFF; border: 1.5px solid var(--brand-line); }
.fam-planswitch button { min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--fam-radius-pill); background: transparent; color: var(--brand-muted); font: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer; }
.fam-planswitch button[aria-pressed="true"] { background: var(--adoa-ink); color: #FFFFFF; }
.fam-planswitch button:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
.fam-drow .fam-status + .fam-status { margin-left: 12px; }
.fam-pickrow--chips { gap: 6px; flex-wrap: nowrap; }
.fam-pickrow--chips .fam-pick { padding: 0 12px; gap: 4px; }

/* Cards, 28 November: the eyebrow says when a card applies and the line is one insight, so a kept card stacks. */
.fam-kcard { grid-template-columns: minmax(0, 1fr); }
.fam-kcard > span, .fam-dosecard > span, .fam-bigcard > span, .fam-leadcard__card > span { font-weight: 600; }
[data-fam-app] .fam-deck__kind { font-weight: 600; }
[data-fam-app] .fam-deck__line { font-size: 2.125rem; line-height: 1.08; }
[data-fam-app] .fam-deck.is-open .fam-deck__line { font-size: 1.5rem; }
[data-fam-app] .fam-deck__try, .fam-cardtry { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.1875rem; line-height: 1.25; }
.fam-leadcard__card > b { font-size: 1.75rem; }
.fam-bigcard { min-height: 0; padding: 26px 24px 30px; }
.fam-bigcard > b { font-size: 1.75rem; }
.fam-cardvideo { display: grid; gap: 10px; color: var(--brand-text); text-decoration: none; }
.fam-cardvideo > span:last-child b { display: block; font-weight: 800; }
.fam-cardvideo > span:last-child small { display: block; font-size: 0.875rem; color: var(--brand-muted); }
.fam-cardvideo:focus-visible { outline: 3px solid var(--adoa-ink); outline-offset: 4px; border-radius: 20px; }
.fam-who { grid-column: 1; }

/* Find says once what the AI does: it looks, it does not answer. */
.fam-ainote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--brand-surface-soft, color-mix(in srgb, var(--adoa-pool) 8%, #FFFFFF)); font-size: 0.875rem; line-height: 1.4; color: var(--brand-text); }
.fam-ainote .fam-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--brand-link); }

/* Card sizes, 28 November (later): an insight is a sentence, so it is set smaller and never held on one line. The front
   carries one line on what to try; the opened card and the card screen set their detail in body type. */
.fam-deck__line { font-size: 1.75rem; line-height: 1.12; text-wrap: balance; overflow-wrap: break-word; }
.fam-deck__sub { font-size: 1rem; line-height: 1.4; text-wrap: pretty; }
.fam-deck.is-open .fam-deck__line { font-size: 1.375rem; padding-right: 0; }
.fam-deck__try { font-family: inherit; font-weight: 600; font-variation-settings: normal; font-size: 1rem; line-height: 1.4; }
.fam-deck__more p { font-size: 0.9375rem; line-height: 1.45; }
[data-fam-app] .fam-deck__card { grid-template-rows: auto 1fr auto; }
[data-fam-app] .fam-deck__line { font-size: 1.875rem; line-height: 1.1; align-self: end; }
[data-fam-app] .fam-deck__sub { font-size: 1.0625rem; line-height: 1.4; align-self: start; }
[data-fam-app] .fam-deck__card { grid-template-rows: auto 1fr 1fr auto; }
[data-fam-app] .fam-lift, .fam-deck__card .fam-lift { white-space: normal; }
.fam-cardtry { font-family: inherit; font-weight: 600; font-variation-settings: normal; font-size: 1rem; line-height: 1.45; }
.fam-bigcard > b, .fam-leadcard__card > b { font-size: 1.625rem; line-height: 1.12; }
.fam-kcard > b { font-size: 1.125rem; line-height: 1.2; }
.fam-dosecard > b { font-size: 1.3125rem; }
.fam-deck.is-open .fam-deck__line { padding-right: 52px; }
[data-fam-app] .fam-deck.is-open .fam-deck__line { padding-right: 0; }

/* ── Four kinds of thing, four grounds (28 November 2026) ──
   A card is its topic's colour at full strength. A Dose stands on that colour, softened. A deep dive is the night, with the moon.
   A program is the sunrise: a plain sun coming up behind a hill. The ground runs from the status bar through the bar into the head of the page,
   so the top of the screen says which kind of thing you are in before a word is read. */
[data-fam-app][data-skin="tone-say"] { --skin: color-mix(in srgb, var(--adoa-pink) 42%, #FFFFFF); }
[data-fam-app][data-skin="tone-do"] { --skin: color-mix(in srgb, var(--adoa-pool) 14%, #FFFFFF); }
[data-fam-app][data-skin="tone-notice"] { --skin: color-mix(in srgb, var(--adoa-sun) 38%, #FFFFFF); }
[data-fam-app][data-skin="tone-remember"] { --skin: color-mix(in srgb, var(--adoa-mint) 34%, #FFFFFF); }
[data-fam-app][data-skin="night"] { --skin: var(--adoa-ink); --skin-ink: #FFFFFF; }
[data-fam-app][data-skin="sunrise"] { --skin: var(--adoa-pool); --skin-ink: #FFFFFF; }
[data-fam-app][data-skin] .fam-phone__status { background: var(--skin); color: var(--skin-ink, var(--adoa-ink)); }
[data-fam-app][data-skin] .fam-phone__status .fam-phone__dots i { background: currentColor; }
[data-fam-app] .fam-view[data-skin] .fam-navbar { margin-inline: -20px; padding-inline: 8px; background: var(--skin); color: var(--skin-ink, var(--adoa-ink)); }
[data-fam-app] .fam-view[data-skin] .fam-navbtn { color: inherit; }
[data-fam-app] .fam-view[data-skin] .fam-navbtn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }

/* A Dose: the tinted head holds when it applies, the title and the video; the tint stops half way down the video. */
.fam-dosehead { display: grid; gap: 10px; margin: -16px -20px 0; padding: 4px 20px 0; background: linear-gradient(var(--skin) 0, var(--skin) calc(100% - 132px), transparent calc(100% - 132px)); }
.fam-dosehead:has([data-dose-video][hidden]) { background: var(--skin); padding-bottom: 28px; border-radius: 0 0 32px 32px; }
.fam-dosehead__when { margin: 0; font-size: 0.875rem; font-weight: 700; }
.fam-dosehead .fam-pagetitle { margin: 0 0 8px; }
.fam-dosehead [data-dose-video] { display: grid; gap: 12px; }
.fam-dosehead [data-dose-video][hidden] { display: none; }
.fam-dosehead .fam-byline { margin: 0; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; }
.fam-dosebody { display: grid; gap: 22px; margin-top: -6px; }
.fam-dosebody section { display: grid; gap: 6px; }
.fam-dosebody section[hidden] { display: none; }
.fam-dosebody p { margin: 0; }
.fam-doseshort { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.375rem; line-height: 1.16; text-wrap: balance; }
.fam-takeaway { display: grid; gap: 14px; padding: 22px 18px 20px; border-radius: 28px; background: var(--adoa-mist); }
.fam-takeaway h3 { margin: 0 0 2px; font-size: 1.0625rem; font-weight: 800; }
.fam-takeaway p { margin: 0; }
.fam-takeaway__acts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.fam-takeaway__acts .fam-quietbtn { min-height: 48px; padding: 0 14px; font-size: 0.875rem; background: #FFFFFF; }
.fam-takeaway__acts .fam-quietbtn[aria-pressed="true"] { background: var(--adoa-ink); color: #FFFFFF; }

/* A cover: what a deep dive (night) or a program (sunrise) opens on. Only something bought has one. */
.fam-cover { display: grid; gap: 10px; justify-items: start; align-content: start; min-height: 268px; margin: -16px -20px 0; padding: 10px 20px 30px; border-radius: 0 0 32px 32px;
  background: var(--skin) right bottom / cover no-repeat; color: #FFFFFF; }
.fam-cover--night { background-image: url("../backgrounds/svg/adoa-moon-night-16x9.svg"); }
.fam-cover--sunrise { background-image: url("../backgrounds/svg/adoa-sunrise-pool-16x9.svg"); }
.fam-cover p { margin: 0; }
.fam-cover__meta, .fam-cover__by { font-size: 0.8125rem; font-weight: 700; }
.fam-cover__t { margin: 2px 0 0; font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 2.125rem; line-height: 1.04; color: #FFFFFF; text-wrap: balance; }
.fam-cover__s { font-size: 1.0625rem; line-height: 1.35; max-width: 22ch; text-wrap: balance; }
.fam-seal { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px 8px 10px; border-radius: var(--fam-radius-pill); background: var(--adoa-sun); color: var(--adoa-ink); font-size: 0.875rem; font-weight: 800; }
.fam-seal .fam-icon { width: 18px; height: 18px; }

/* A deep dive: where you are up to, then its parts as a numbered contents list. */
.fam-resume { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; align-items: center; }
.fam-resume .fam-media { aspect-ratio: 1; border-radius: 20px; }
.fam-resume .fam-playmark { display: none; }
.fam-resume .fam-dur { right: 8px; bottom: 8px; }
.fam-resume b { display: block; margin: 2px 0 10px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.fam-resume .fam-progress { height: 8px; }
.fam-resume .fam-progress > span { background: var(--adoa-ink); }
.fam-resume .fam-btn { grid-column: 1 / -1; background: var(--adoa-ink); color: #FFFFFF; }
[data-fam-app] .fam-resume .fam-swap[aria-pressed="true"] { background: var(--adoa-mist); color: var(--adoa-ink); }
.fam-chaps { list-style: none; margin: 0; padding: 0; counter-reset: chap; }
.fam-chap { counter-increment: chap; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 10px 0; }
.fam-chap + .fam-chap { border-top: 1px solid var(--brand-line); }
.fam-chap::before { content: counter(chap); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--adoa-mist); font-size: 0.9375rem; font-weight: 800; }
.fam-chap.is-done::before { background: var(--adoa-ink); color: #FFFFFF; }
.fam-chap.is-now::before { background: var(--adoa-sun); }
.fam-chap b { display: block; font-weight: 800; }
.fam-chap small { display: block; color: var(--brand-muted); font-size: 0.875rem; }

/* A program: your group, then the path, drawn as one line through the weeks. */
.fam-yourgroup { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 18px; border-radius: 28px; background: var(--adoa-mist); }
.fam-yourgroup img { width: 76px; }
.fam-yourgroup b { display: block; margin: 2px 0 6px; font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.375rem; line-height: 1.12; text-wrap: balance; }
.fam-yourgroup p { margin: 0; font-size: 0.9375rem; color: var(--brand-muted); }
.fam-yourgroup .fam-btn { grid-column: 1 / -1; background: #FFFFFF; }
.fam-path { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.fam-path li { counter-increment: step; position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.fam-path li:last-child { padding-bottom: 0; }
.fam-path li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--adoa-pool); background: #FFFFFF; color: var(--adoa-deep); font-size: 0.9375rem; font-weight: 800; }
.fam-path li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--adoa-pool) 35%, #FFFFFF); }
.fam-path li:last-child::after { display: none; }
.fam-path li.is-next::before { background: var(--adoa-pool); color: #FFFFFF; }
.fam-path b { display: block; padding-top: 4px; font-weight: 800; }
.fam-path small { display: block; color: var(--brand-muted); font-size: 0.875rem; }

/* Covers on a shelf, and the small cover that leads a row. A Dose is a video still; a bought thing is a cover. */
.fam-covs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fam-covs--3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; gap: 10px; margin-right: -20px; padding-right: 20px; overflow-x: auto; scrollbar-width: none; }
.fam-covs--3::-webkit-scrollbar { display: none; }
.fam-cov { display: grid; gap: 6px; align-content: start; aspect-ratio: 4 / 5; padding: 16px 14px; border-radius: 22px; background: var(--adoa-ink) url("../backgrounds/svg/adoa-moon-night-portrait.svg") right bottom / cover no-repeat; color: #FFFFFF; text-decoration: none; }
.fam-cov--sunrise { background-color: var(--adoa-pool); background-image: url("../backgrounds/svg/adoa-sunrise-pool-portrait.svg"); }
.fam-cov__kind { font-size: 0.75rem; font-weight: 700; }
.fam-cov b { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.375rem; line-height: 1.05; text-wrap: balance; }
.fam-cov small { font-size: 0.8125rem; font-weight: 700; }
.fam-cov:focus-visible { outline: 3px solid var(--adoa-sun); outline-offset: 2px; }
.fam-covs--3 .fam-cov { padding: 14px 12px; border-radius: 18px; }
.fam-covs--3 .fam-cov b { font-size: 1.0625rem; line-height: 1.08; }
.fam-covs--3 .fam-cov__kind { font-size: 0.6875rem; }
.fam-covs--3 .fam-cov small { display: none; }
.fam-item--cov { grid-template-columns: auto minmax(0, 1fr) auto; }
.fam-covdot { display: block; width: 44px; height: 56px; border-radius: 10px; background: var(--adoa-ink) url("../backgrounds/svg/adoa-moon-night-portrait.svg") right bottom / cover no-repeat; }
.fam-covdot--sunrise { background-color: var(--adoa-pool); background-image: url("../backgrounds/svg/adoa-sunrise-pool-portrait.svg"); }

/* A scene strip: one wide, low scene at the foot of a page or a section (illustrations/svg/strips/).
   A Dose of Awesomeness only, one per page. The strip tiles sideways: a phone shows its middle, a wide screen repeats it. */
.fam-strip { display: block; height: clamp(104px, 15vw, 208px); margin: 0; background: center bottom / auto 100% repeat-x; }
.fam-strip--street { background-image: url("../illustrations/svg/strips/street-day.svg"); }
.fam-strip--park { background-image: url("../illustrations/svg/strips/park.svg"); }
.fam-strip--path { background-image: url("../illustrations/svg/strips/path.svg"); }
.fam-strip--hills { background-image: url("../illustrations/svg/strips/hills.svg"); }
/* night: for night-time topics only (bedtime, sleep, night fears) */
.fam-strip--night { background-color: var(--adoa-ink); background-image: url("../illustrations/svg/strips/street-night.svg"); }
.fam-strip + .fam-footer { margin-top: 0; }
[data-brand="dkh"] .fam-strip, [data-mode="serious"] .fam-strip { display: none; }

/* ── Colour as a band, not a flood (29 November 2026) ──
   A screen of full-colour boxes shouts. In the app a box is white, and its topic's colour is a band along the bottom,
   like the label on a can. Full colour is kept for the one thing a screen is about: a Dose's head, a cover. */
.fam-kind--say, .fam-c-pink { --tone: var(--adoa-pink); --tone-ink: var(--adoa-ink); }
.fam-kind--notice, .fam-c-sun { --tone: var(--adoa-sun); --tone-ink: var(--adoa-ink); }
.fam-kind--remember, .fam-c-mint { --tone: var(--adoa-mint); --tone-ink: var(--adoa-ink); }
.fam-kind--do, .fam-c-tint { --tone: var(--adoa-pool); --tone-ink: #FFFFFF; }
/* Deep tones (29 November 2026): put data-tones="deep" on a page or a section and the same four colours carry white words
   instead of ink. Pictures keep their light grounds; only a band or a box with words on it goes deep. */
[data-tones="deep"] .fam-kind--say, [data-tones="deep"] .fam-c-pink { --tone: var(--adoa-pink-deep); --tone-ink: #FFFFFF; }
[data-tones="deep"] .fam-kind--notice, [data-tones="deep"] .fam-c-sun { --tone: var(--adoa-sun-deep); --tone-ink: #FFFFFF; }
[data-tones="deep"] .fam-kind--remember, [data-tones="deep"] .fam-c-mint { --tone: var(--adoa-mint-deep); --tone-ink: #FFFFFF; }
[data-tones="deep"] .fam-c-tint { --tone: var(--adoa-pool); --tone-ink: #FFFFFF; }
[data-tones="deep"] [class*="fam-kind--"] { background: var(--tone); color: var(--tone-ink); border-color: var(--tone); }
[data-tones="deep"] [class*="fam-kind--"] .fam-flashcard__kind { color: #FFFFFF; }
[data-tones="deep"] [class*="fam-kind--"] .fam-lift { background: none; color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* topic tiles: the picture on white, the name on the band */
[data-fam-app] .fam-set[class*="fam-c-"] { padding: 0; gap: 0; overflow: hidden; background: #FFFFFF; border: 1.5px solid var(--brand-line); }
[data-fam-app] .fam-set[class*="fam-c-"] img { padding: 8px 8px 4px; }
[data-fam-app] .fam-set[class*="fam-c-"] b { display: grid; gap: 1px; padding: 8px 4px 9px; background: var(--tone); color: var(--tone-ink); line-height: 1.15; }
.fam-set b small { font-weight: 600; font-size: 0.75rem; }
/* a Dose in a list: its picture on white, a thin band under it */
[data-fam-app] .fam-topic[class*="fam-c-"] { background: #FFFFFF; border: 1.5px solid var(--brand-line); box-shadow: inset 0 -14px 0 var(--tone); }
[data-fam-app] .fam-topic[class*="fam-c-"] img { margin-top: -10px; }
[data-fam-app] .fam-topic--lg[class*="fam-c-"] { box-shadow: inset 0 -20px 0 var(--tone); }
[data-fam-app] .fam-topic i { box-shadow: 0 0 0 1.5px var(--adoa-ink); }
/* a kept card: its words on white, its topic's band beneath */
[data-fam-app] .fam-kcard[class*="fam-kind--"] { background: #FFFFFF; color: var(--adoa-ink); border: 1.5px solid var(--brand-line); box-shadow: inset 0 -16px 0 var(--tone); padding: 18px 20px 32px; }
[data-fam-app] .fam-kcard .fam-who i { box-shadow: 0 0 0 1.5px var(--adoa-ink); }
/* Today's card: the insight on white, the way into its Dose on the band */
[data-fam-app] .fam-leadcard[class*="fam-kind--"] { padding: 0; gap: 0; overflow: hidden; background: #FFFFFF; color: var(--adoa-ink); border: 1.5px solid var(--brand-line); }
[data-fam-app] .fam-leadcard__card { padding: 20px 22px 22px; }
[data-fam-app] .fam-leadcard__dose { border-radius: 0; background: var(--tone); color: var(--tone-ink); padding: 12px 22px; }
[data-fam-app] .fam-leadcard__dose small, [data-fam-app] .fam-leadcard__dose .fam-icon { color: inherit; }
/* the first card in onboarding */
[data-fam-app] .fam-dosecard[class*="fam-kind--"] { background: #FFFFFF; color: var(--adoa-ink); border: 1.5px solid var(--brand-line); box-shadow: inset 0 -18px 0 var(--tone); padding-bottom: 40px; }
[data-fam-app] .fam-dosecard .fam-keep { background: var(--adoa-mist); }
/* a card in Shuffle: white, with the band carrying who it is from. The cards behind it stay full colour, so the stack reads. */
.fam-deck__card[class*="fam-kind--"] { --pad: 24px; background: #FFFFFF; color: var(--adoa-ink); overflow: hidden; }
.fam-deck__card[class*="fam-kind--"]::before { background-image: url("../elements/adoa/svg/adoa-stars-ink.svg"); }
.fam-deck__card[class*="fam-kind--"] .fam-deck__by { margin: 6px calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: 12px var(--pad) 14px; border-top: 0; background: var(--tone); color: var(--tone-ink); opacity: 1; }
.fam-deck__card.is-second[class*="fam-kind--"], .fam-deck__card.is-third[class*="fam-kind--"] { background: var(--tone); }
[data-fam-app] .fam-deck__card[class*="fam-kind--"] { --pad: 28px; }
[data-fam-app] .fam-deck__card[class*="fam-kind--"] .fam-deck__by { margin-bottom: -24px; font-size: 0.875rem; font-weight: 700; }
.fam-deck.is-open .fam-deck__card[class*="fam-kind--"] { box-shadow: inset 0 -14px 0 var(--tone), 0 18px 36px -20px rgba(23, 28, 34, 0.4); }

/* ── Kept: where everything kept lives ── */
.fam-pick--count { gap: 6px; }
.fam-pick--count > i { font-style: normal; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--adoa-mist); font-size: 0.75rem; font-weight: 800; }
.fam-pick--count[aria-pressed="true"] > i { background: #FFFFFF; color: var(--adoa-ink); }
.fam-keptgroup { gap: 10px; }
.fam-keptgroup > h4 { margin: 0; }
.fam-keptgroup:not(:has(.fam-kcard:not([hidden]), li:not([hidden]))) { display: none; }
.fam-pane { display: grid; gap: 24px; }
.fam-pane[hidden] { display: none; }
.fam-keptempty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 18px; border-radius: 24px; border: 1.5px dashed var(--brand-line); }
.fam-keptempty[hidden] { display: none; }
.fam-keptempty .fam-icon { width: 22px; height: 22px; color: var(--brand-muted); }
.fam-keptempty p { margin: 0; font-size: 0.9375rem; color: var(--brand-muted); }
.fam-keptempty b { color: var(--brand-text); }
/* the Keep confirmation: it says where the thing went */
[data-fam-app] .fam-toast { position: absolute; left: 12px; right: 12px; bottom: 76px; transform: none; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--adoa-ink); color: #FFFFFF; font-size: 0.9375rem; font-weight: 700; }
[data-fam-app] .fam-toast[hidden] { display: none; }
[data-fam-app] .fam-toast a { flex: none; padding: 6px 14px; border-radius: var(--fam-radius-pill); background: var(--adoa-sun); color: var(--adoa-ink); text-decoration: none; font-size: 0.875rem; }
[data-fam-app] .fam-toast a[hidden] { display: none; }
[data-fam-app][data-kind="focus"] .fam-toast { bottom: 20px; }
[data-fam-app] { position: relative; }
[data-fam-app] .fam-tabbar a { position: relative; }
[data-fam-app] .fam-tabbar a.has-new::after { content: ""; position: absolute; top: 8px; left: calc(50% + 6px); width: 10px; height: 10px; border-radius: 50%; background: var(--adoa-sun); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px var(--adoa-ink); }
/* a scene strip at the foot of a screen in the app */
[data-fam-app] .fam-strip--app { height: 78px; margin: 4px -20px -40px; flex: none; }
/* Kept's topic picker: a two-by-two grid, so every topic and "Everything" is in view with its count */
.fam-pickrow--chips:has(.fam-pick--count) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex-wrap: wrap; }
.fam-pickrow--chips .fam-pick--count { justify-content: space-between; min-height: 48px; padding: 0 12px 0 16px; }
/* the first-visit hint sits on the top edge of the card, clear of the band */
[data-fam-app] .fam-coach { bottom: auto; top: -14px; }

/* ── Working on (29 Nov 2026): up to three topics a parent is working on. They are shown by position, never by a badge. */
/* why Today's card is this card: one quiet line above it */
.fam-sec--lead { gap: 8px; }
.fam-because { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8125rem; font-weight: 700; color: var(--brand-muted); }
.fam-because .fam-icon { width: 15px; height: 15px; flex: none; }
.fam-because b { color: var(--brand-text); font-weight: 800; }
/* a row led by its topic's picture, with at most one plain word of action at the end */
.fam-item--thumb { grid-template-columns: auto minmax(0, 1fr) auto; }
.fam-item--thumb .fam-topic { width: 52px; height: 52px; border-radius: 16px; }
[data-fam-app] .fam-item--thumb .fam-topic[class*="fam-c-"] { box-shadow: inset 0 -10px 0 var(--tone); }
[data-fam-app] .fam-item--thumb .fam-topic[class*="fam-c-"] img { margin-top: -7px; }
.fam-pilltext { font-style: normal; font-size: 0.8125rem; font-weight: 800; color: var(--adoa-ink); background: var(--brand-ground); border-radius: var(--fam-radius-pill); padding: 9px 14px; white-space: nowrap; }
/* "Work on this" is the twin of Keep: the same quiet button, ink when it is on */
.fam-workbtn { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.fam-worknote { margin: -12px 0 0; }
.fam-rows--one { background: var(--brand-ground); border-radius: 20px; padding: 2px 16px; }
.fam-rows--one .fam-item__lead { background: #FFFFFF; }
/* Kept: every topic has a panel; under Everything the empty ones stay out of the way */
.fam-panes { display: contents; }
.fam-view.is-all .fam-pane.is-empty { display: none; }
p.fam-keptempty > span { font-size: 0.9375rem; color: var(--brand-muted); }
/* the three stars: for the moment something is going better */
[data-fam-app] .fam-phone__illo--stars { width: 128px; margin: 0 0 4px; }

/* ── Cards (29 Nov 2026): a feed, one card to a screen, swipe up for the next. It is finite: it ends with the three stars. */
[data-fam-app] .fam-view--feed { padding: 0; gap: 0; height: 100%; min-height: 0; }
.fam-feedhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; padding: 4px 20px 12px; }
.fam-feedhead .fam-pagetitle { margin: 0; }
.fam-feedhead .fam-small { margin: 2px 0 0; }
.fam-feedpos { flex: none; margin-top: 4px; padding: 6px 12px; border-radius: var(--fam-radius-pill); background: var(--brand-ground); font-size: 0.8125rem; font-weight: 800; white-space: nowrap; }
.fam-feed { position: relative; flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.fam-feed::-webkit-scrollbar { display: none; }
.fam-feedcard { position: relative; box-sizing: border-box; height: 100%; min-height: 440px; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 12px; padding: 2px 20px 16px; }
[data-fam-app] .fam-feedcard__card { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 0; border-radius: 28px; overflow: hidden; background: #FFFFFF; color: var(--adoa-ink); border: 1.5px solid var(--brand-line); text-decoration: none; }
.fam-feedcard__when { font-size: 0.9375rem; font-weight: 700; }
.fam-feedcard__line { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.75rem; line-height: 1.1; text-wrap: balance; }
.fam-feedcard__try { margin-top: auto; font-size: 1rem; line-height: 1.4; }
.fam-feedcard__try small { display: block; margin-bottom: 2px; font-size: 0.8125rem; font-weight: 800; color: var(--brand-muted); }
.fam-feedcard__by { display: flex; align-items: center; gap: 10px; min-height: 56px; box-sizing: border-box; margin: 6px -22px 0; padding: 6px 68px 6px 22px; background: var(--tone); color: var(--tone-ink); font-size: 0.8125rem; font-weight: 800; }
.fam-feedcard__by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #FFFFFF; }
.fam-feedcard__acts { display: flex; gap: 10px; }
.fam-feedcard__acts .fam-quietbtn { min-height: 48px; padding: 0 16px; font-size: 0.875rem; background: var(--brand-ground); text-decoration: none; }
.fam-feedcard__acts .fam-quietbtn:last-child { flex: 1; }
.fam-feedcard__acts .fam-keep[aria-pressed="true"] { background: var(--adoa-ink); color: #FFFFFF; }
.fam-feedcard--end { align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px 28px; }
.fam-feedcard--end img { width: 112px; }
.fam-feedcard--end .fam-pagetitle, .fam-feedcard--end p { margin: 0; }
.fam-feedcard--end .fam-btn { align-self: stretch; margin-top: 10px; }
.fam-feedhint { position: absolute; left: 0; right: 0; top: 0; margin: 0; pointer-events: none; display: none; }
/* Today: the kept card that comes back */
[data-remind] .fam-kcard { padding: 16px 18px 26px; }
.fam-feedcard__pic { flex: 1; min-height: 0; width: 100%; max-height: 150px; object-fit: contain; margin: auto 0; }
.fam-feedcard__try { margin-top: 0; }
/* on the feed the line that says what happened sits at the top, clear of the card's buttons */
[data-fam-app]:has(.fam-view--feed:not([hidden])) .fam-toast { bottom: auto; top: 148px; }

/* ── My work, extended (29 November 2026): the Dr Kaylene Henderson side of the app ──
   A shop and a shelf. The same quiet parts throughout: a course card, a plain list of parts, a certificate.
   A leader's Team screens use the same rows. Nothing here celebrates, counts days or asks anyone back. */
[data-fam-app]:not([data-role="leader"]) [data-role-only="leader"], [data-fam-app][data-role="leader"] [data-role-only="staff"] { display: none !important; }
.fam-tabbar.fam-tabbar--auto { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.fam-status--from .fam-icon { color: var(--brand-muted); }
.fam-coursecard .fam-status { font-size: 0.8125rem; }
.fam-shelf { display: grid; gap: 16px; }
.fam-signpost { margin: 0; }
.fam-kindline { margin: 0; font-family: var(--dkh-font-heading); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-muted); }
.fam-certimg { display: block; width: 100%; border-radius: 8px; border: 1.5px solid var(--brand-line); }
.fam-bigtick { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-primary); color: var(--brand-on-primary); margin-bottom: 12px; }
.fam-bigtick .fam-icon { width: 32px; height: 32px; }
.fam-points { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.fam-pull { margin: 0; padding: 20px 22px; border-radius: 24px; background: var(--brand-ground); font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-size: 1.1875rem; line-height: 1.3; text-wrap: balance; }
.fam-textbtn .fam-on, .fam-textbtn[aria-pressed="true"] .fam-off, .fam-pick .fam-on, .fam-pick[aria-pressed="true"] .fam-off { display: none; }
.fam-textbtn[aria-pressed="true"] .fam-on, .fam-pick[aria-pressed="true"] .fam-on { display: inline; }
.fam-steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s3; }
.fam-steps3 li { counter-increment: s3; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--brand-ground); }
.fam-steps3 li::before { content: counter(s3); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; font-weight: 800; }
.fam-steps3 small { color: var(--brand-muted); font-size: 0.875rem; }
.fam-asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fam-asks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; border-radius: 24px; background: var(--brand-ground); font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-size: 1.1875rem; line-height: 1.3; }
.fam-asks i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-primary); color: var(--brand-on-primary); font-style: normal; font-size: 1rem; }
.fam-ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.fam-ticks li + li { border-top: 1px solid var(--brand-line); }
.fam-tick { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; min-height: 60px; padding: 8px 0; border: 0; background: none; color: var(--brand-text); font: inherit; text-align: left; cursor: pointer; }
.fam-tick > .fam-icon { width: 28px; height: 28px; padding: 5px; border-radius: 9px; border: 2px solid color-mix(in srgb, var(--brand-text) 30%, transparent); color: transparent; }
.fam-tick[aria-pressed="true"] > .fam-icon { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.fam-tick b { display: block; font-weight: 800; } .fam-tick small { color: var(--brand-muted); font-size: 0.875rem; }
.fam-tick:focus-visible { outline: 3px solid var(--fam-sun); outline-offset: 2px; border-radius: 12px; }
.fam-teamhead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fam-teamhead > :last-child { grid-column: 1 / -1; }
.fam-stat { display: grid; gap: 2px; padding: 16px 18px; border-radius: 20px; background: var(--brand-ground); color: var(--brand-text); text-decoration: none; }
.fam-stat b { font-family: var(--brand-heading); font-weight: var(--brand-heading-weight); font-size: 1.25rem; line-height: 1.15; }
.fam-stat small { color: var(--brand-muted); font-size: 0.8125rem; }
.fam-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fam-person { grid-template-columns: minmax(0, 1fr) auto auto; }
.fam-person__what { text-align: right; font-size: 0.875rem; font-weight: 700; }
.fam-codebox { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 18px 20px; border-radius: 24px; border: 2px dashed color-mix(in srgb, var(--brand-text) 28%, transparent); }
.fam-codebox small { grid-column: 1 / -1; color: var(--brand-muted); font-size: 0.8125rem; }
.fam-codebox b { font-family: var(--brand-heading); font-size: 1.625rem; letter-spacing: 0.08em; }
[data-fam-app] .fam-serious .fam-note { background: var(--brand-ground); }
[data-fam-app] .fam-note a, .fam-signpost a { color: var(--brand-link); font-weight: 700; }

/* ── The same app at a desk (29 November 2026) ──
   One responsive product, not two: data-frame="web" on the root shows the same screens the way they sit in a browser.
   The tabs become a rail down the left, the logo sits above it, and a screen keeps a readable column. Below 1000px the
   frame is always the phone, so the switch that sets it is hidden there. */
.fam-webbar { display: none; }
.fam-frameswitch { display: none; }
@media (min-width: 1000px) {
  .fam-frameswitch { display: flex; }
  [data-fam-app][data-frame="web"] { display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "bar bar" "head body" "rail body";
    width: 100%; max-width: 1200px; height: clamp(680px, calc(100svh - 64px), 800px); margin: 0; border-radius: 16px; position: relative;
    box-shadow: 0 0 0 1px var(--brand-line), 0 30px 60px -24px rgba(23, 28, 34, 0.28); }
  [data-fam-app][data-frame="web"] .fam-phone__status { display: none; }
  [data-fam-app][data-frame="web"] .fam-webbar { grid-area: bar; display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; align-items: center; padding: 9px 16px; background: var(--adoa-mist); border-bottom: 1px solid var(--brand-line); }
  .fam-webbar span { display: inline-flex; gap: 7px; }
  .fam-webbar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--adoa-ink) 18%, #FFFFFF); }
  .fam-webbar b { padding: 5px 16px; border-radius: var(--fam-radius-pill); background: #FFFFFF; color: var(--brand-muted); font-family: var(--fam-font-body); font-size: 13px; font-weight: 500; text-align: center; }
  [data-fam-app][data-mode="family"] .fam-webbar [data-for="work"], [data-fam-app][data-mode="work"] .fam-webbar [data-for="family"] { display: none; }
  [data-fam-app][data-frame="web"] .fam-apphead { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 24px 22px 14px; min-height: 0; border-right: 1px solid var(--brand-line); background: #FFFFFF; }
  [data-fam-app][data-frame="web"] .fam-apphead img { height: 34px; }
  [data-fam-app][data-frame="web"][data-mode="work"] .fam-apphead img { height: 46px; }
  [data-fam-app][data-frame="web"] .fam-modeswitch button { padding: 0; min-height: 32px; }
  [data-fam-app][data-frame="web"] nav.fam-tabbar:not([hidden]) { grid-area: rail; display: flex !important; flex-direction: column; gap: 4px; padding: 8px 12px 20px; border-top: 0; border-right: 1px solid var(--brand-line); }
  [data-fam-app][data-frame="web"] .fam-tabbar a { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 14px; font-size: 15px; }
  [data-fam-app][data-frame="web"] .fam-tabbar a:hover { background: var(--brand-ground); }
  [data-fam-app][data-frame="web"] .fam-tabbar a[aria-current="page"] { background: var(--app-tint); color: var(--brand-text); }
  [data-fam-app][data-frame="web"] .fam-phone__body { grid-area: body; }
  [data-fam-app][data-frame="web"] .fam-view { width: min(100%, 720px); margin-inline: auto; padding-top: 28px; padding-bottom: 56px; }
  [data-fam-app][data-frame="web"] .fam-view[data-mode="work"] { width: min(100%, 880px); }
  [data-fam-app][data-frame="web"] .fam-view[data-mode="work"][data-kind="inner"], [data-fam-app][data-frame="web"] .fam-view[data-kind="focus"] { width: min(100%, 720px); }
  [data-fam-app][data-frame="web"] .fam-view[data-view="work-meeting"] { width: min(100%, 880px); }
  [data-fam-app][data-frame="web"] .fam-view[data-mode="work"] > .fam-btn, [data-fam-app][data-frame="web"] .fam-view[data-mode="work"] .fam-sec > .fam-btn { align-self: flex-start; justify-self: start; min-width: 240px; }
  [data-fam-app][data-frame="web"] .fam-certimg { max-width: 520px; }
  [data-fam-app][data-frame="web"] .fam-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  [data-fam-app][data-frame="web"] .fam-teamhead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-fam-app][data-frame="web"] .fam-teamhead > :last-child { grid-column: auto; }
  [data-fam-app][data-frame="web"] .fam-acts { grid-template-columns: repeat(2, max-content); }
  [data-fam-app][data-frame="web"] .fam-steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-fam-app][data-frame="web"] .fam-person { grid-template-columns: minmax(0, 1fr) 220px auto; }
  [data-fam-app][data-frame="web"] .fam-person__what { text-align: left; }
  [data-fam-app][data-frame="web"] .fam-asks li { font-size: 1.5rem; padding: 22px 26px; }
  [data-fam-app][data-frame="web"] .fam-toast { left: auto; right: 24px; bottom: 24px; width: 380px; }
  [data-fam-app][data-frame="web"]:has(.fam-view--feed:not([hidden])) .fam-toast { top: 64px; bottom: auto; }
  [data-frame-follows][data-frame="web"] { grid-template-columns: minmax(0, 1fr); }
  [data-frame-follows][data-frame="web"] .appstage__phone { position: static; }
  [data-frame-follows][data-frame="web"] .appstage__notes { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  [data-frame-follows][data-frame="web"] .appstage__notes > .fam-planswitch { grid-column: 1 / -1; margin: 0; }
}

/* Reminder Cards (30 November 2026). One tap target, the card: it opens the video. Keep is the only button and it is an icon
   on the card's own band, so nothing sits under the card. The band shows what a tap does (play, or a book where there is no video). */
.fam-feedcard__go { margin-left: auto; display: grid; }
.fam-feedcard__go .fam-icon { width: 28px; height: 28px; }
.fam-feedcard__keep { position: absolute; right: 32px; bottom: 22px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.fam-feedcard__keep .fam-icon { width: 24px; height: 24px; }
.fam-feedcard__keep[aria-pressed="true"] { background: #FFFFFF; color: var(--adoa-ink); }
.fam-feedcard__keep:focus-visible { outline: 3px solid var(--adoa-ink); outline-offset: 2px; }
.fam-feedcard__card:focus-visible { outline: 3px solid var(--adoa-pool); outline-offset: 2px; }
.fam-feedtips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 0.8125rem; font-weight: 700; color: var(--brand-muted); transition: opacity 0.3s; }
.fam-feedtips span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fam-feedtips .fam-icon { width: 16px; height: 16px; color: var(--adoa-ink); }
.fam-feedtips.is-seen { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fam-feedtips { transition: none; } }

/* This is for you if…: the first thing on an Advice Pack someone does not own. Each line is a moment in a parent's own words,
   set as a quiet row so a parent recognises their week before reading what is included. */
.fam-forif__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fam-forif__list li { position: relative; padding: 12px 14px 12px 36px; border-radius: 16px; background: color-mix(in srgb, var(--adoa-pink) 30%, #FFFFFF); font-weight: 700; line-height: 1.35; color: var(--adoa-ink); }
.fam-forif__list li::before { content: ""; position: absolute; left: 15px; top: 1.15em; width: 9px; height: 9px; border-radius: 50%; background: var(--adoa-ink); }

/* What's inside: everything a deep dive comes with, shown as things. A sheet looks like a page, the audio like a disc,
   so the list reads as a set worth having before a word of it is read. Art is decoration; the words carry the meaning. */
.fam-inside__n { font-size: 0.8125rem; font-weight: 800; color: var(--brand-muted); }
.fam-things { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fam-thing { display: grid; gap: 10px; align-content: start; padding: 10px 10px 14px; border-radius: 22px; background: #FFFFFF; border: 1.5px solid var(--brand-line); }
.fam-thing__art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; background: color-mix(in srgb, var(--adoa-pink) 48%, #FFFFFF); }
.fam-thing--audio .fam-thing__art { background: color-mix(in srgb, var(--adoa-mint) 42%, #FFFFFF); }
.fam-thing--ladder .fam-thing__art { background: color-mix(in srgb, var(--adoa-sun) 46%, #FFFFFF); }
.fam-thing--wheel .fam-thing__art { background: color-mix(in srgb, var(--adoa-pool) 18%, #FFFFFF); }
.fam-thing__sheet { position: relative; width: 44%; aspect-ratio: 3 / 4; display: grid; place-items: start center; padding-top: 18%; box-sizing: border-box; border-radius: 6px; background: #FFFFFF; color: var(--adoa-ink); box-shadow: 0 8px 16px -10px rgba(23, 28, 34, 0.5); transform: rotate(-5deg); }
.fam-thing__sheet::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 16%; height: 7px; border-top: 2px solid var(--brand-line); border-bottom: 2px solid var(--brand-line); }
.fam-thing__sheet .fam-icon { width: 22px; height: 22px; }
.fam-thing:nth-child(even) .fam-thing__sheet { transform: rotate(4deg); }
.fam-thing__disc { width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--adoa-ink); color: #FFFFFF; }
.fam-thing__disc .fam-icon { width: 26px; height: 26px; }
.fam-thing__words { display: grid; gap: 2px; padding: 0 4px; }
.fam-thing__words small { font-size: 0.75rem; font-weight: 800; color: var(--brand-muted); }
.fam-thing__words b { font-weight: 800; line-height: 1.2; }
.fam-thing__words span { font-size: 0.8125rem; line-height: 1.35; color: var(--brand-muted); }
.fam-thing .fam-btn, .fam-thing .fam-keep { justify-self: start; margin: 2px 4px 0; }
.fam-thing--wide { grid-column: 1 / -1; grid-template-columns: 104px minmax(0, 1fr); align-items: center; padding: 10px; }
.fam-thing--wide .fam-thing__art { aspect-ratio: 1; }
.fam-thing--video { margin-bottom: 12px; }
.fam-thing--video .fam-media { aspect-ratio: 16 / 9; border-radius: 14px; }

/* Quick Advice, Reminder Cards, Advice Packs (30 November 2026, back to Kaylene's own names).
   A Quick Advice video is always shown by a still from it, with a play mark: that is how a video is told from a card.
   .fam-still is the still; .fam-qa is the video as a card; .fam-rail is a row of them that scrolls sideways. */
.fam-still { position: relative; display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 10; background: var(--adoa-mist); }
.fam-still img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fam-still .fam-playmark { left: 12px; bottom: 12px; width: 44px; height: 44px; }
.fam-still--sm { border-radius: 14px; }
.fam-still--sm .fam-playmark { left: 6px; bottom: 6px; width: 26px; height: 26px; box-shadow: none; }
.fam-still--sm .fam-playmark .fam-icon { width: 11px; height: 11px; }
.fam-media--pic img { object-position: 50% 30%; }
.fam-qa { display: grid; gap: 12px; align-content: start; padding: 10px 10px 16px; border: 1.5px solid var(--brand-line); border-radius: 28px; background: var(--adoa-white); color: var(--adoa-ink); text-decoration: none; }
.fam-qa .fam-still { border-radius: 20px; }
.fam-qa .fam-qa__words { padding: 0 8px; }
.fam-qa__words { display: grid; gap: 4px; padding: 0 2px; }
.fam-qa__words > small { font-size: 0.8125rem; font-weight: 700; color: var(--brand-muted); }
.fam-qa__words > b { font-weight: 800; font-size: 1.0625rem; line-height: 1.25; text-wrap: balance; }
.fam-qa__n { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.8125rem; font-weight: 700; color: var(--brand-muted); }
.fam-qa__n .fam-icon { width: 16px; height: 16px; color: var(--adoa-ink); }
.fam-qa:focus-visible { outline: 3px solid var(--adoa-pool); outline-offset: 4px; border-radius: 28px; }
.fam-qa--lead .fam-qa__words > b { font-family: var(--adoa-font-heading); font-variation-settings: "SOFT" 100; font-size: 1.5rem; line-height: 1.1; }
.fam-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 14px; margin-right: -20px; padding-right: 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.fam-rail::-webkit-scrollbar { display: none; }
.fam-rail > * { scroll-snap-align: start; }
.fam-rail--covs { grid-auto-columns: 42%; gap: 12px; }
/* An Advice Pack's cover is its own photograph, as Kaylene already sells it. */
.fam-cov--pic { aspect-ratio: auto; padding: 0 0 4px; gap: 3px; border-radius: 0; background: none; color: var(--adoa-ink); }
.fam-cov--pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 6px; display: block; background: var(--adoa-mist); }
.fam-cov--pic .fam-cov__kind, .fam-cov--pic small { color: var(--brand-muted); }
.fam-cov--pic b { font-size: 1.0625rem; line-height: 1.12; }
.fam-cov--pic:focus-visible { outline: 3px solid var(--adoa-pool); outline-offset: 4px; border-radius: 18px; }
/* The Reminder Cards that come out of a Quick Advice video: one or more, each kept on its own with the bookmark. */
.fam-takeaway .fam-sec__head { margin: 0; }
.fam-rcs { display: grid; gap: 10px; }
.fam-rc { position: relative; }
/* More than one: a row to swipe sideways, one card at a time with the next showing at the edge. */
.fam-rcs:has(> .fam-rc + .fam-rc) { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
.fam-rcs::-webkit-scrollbar { display: none; }
.fam-rcs > .fam-rc { scroll-snap-align: start; }
.fam-rcs > .fam-rc > .fam-kcard { box-sizing: border-box; height: 100%; }
.fam-rc .fam-kcard { padding-right: 64px; }
.fam-rc__keep { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--adoa-mist); color: var(--adoa-ink); display: grid; place-items: center; cursor: pointer; }
.fam-rc__keep .fam-icon { width: 22px; height: 22px; }
.fam-rc__keep[aria-pressed="true"] { background: var(--adoa-ink); color: #FFFFFF; }
.fam-rc__keep:focus-visible { outline: 3px solid var(--adoa-pool); outline-offset: 2px; }
.fam-takeaway__acts:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.fam-view--feed .fam-navbar .fam-feedpos { margin: 0; }
.fam-view--feed .fam-feedhead { padding: 0 20px 10px; }
.fam-view--feed .fam-navbar { grid-template-columns: 44px minmax(0, 1fr) auto; margin: 0; padding: 4px 16px 4px 8px; }
.fam-view--feed .fam-navbar .fam-feedpos { min-width: 44px; text-align: center; }

/* ── Today, tuned (30 November 2026) ──
   Top to bottom: Find (the one AI-powered thing, so it carries the sparkle), one Reminder Card that changes every visit,
   the next live session, what is in focus, then the Quick Advice not yet watched as a feed. */
[data-fam-app] .fam-findbar--ai { gap: 10px; color: var(--adoa-ink); font-weight: 700; }
[data-fam-app] .fam-findbar--ai > span { flex: 1; }
[data-fam-app] .fam-findbar--ai .fam-icon:first-child { width: 22px; height: 22px; color: var(--adoa-pool); }
[data-fam-app] .fam-findbar--ai .fam-icon:last-child { color: var(--brand-muted); }
/* the Reminder Card on Today: the one full-colour thing on the screen. It takes its topic's colour from .fam-kind--* */
/* The card sits on the edge of a second one, so it reads as a stack to flick through. It swipes sideways; the page still scrolls. */
.fam-dailystack { position: relative; padding-bottom: 8px; }
.fam-dailystack::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 48px; border-radius: 0 0 24px 24px; background: var(--brand-line);; transition: opacity .2s ease-out; }
/* While the card is dragged or flying, the edge underneath goes, so nothing grey is left on its own when the card leaves. */
.fam-dailystack.is-moving::before { opacity: 0; transition: none; }
.fam-dailycard { position: relative; z-index: 1; border-radius: 28px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.fam-dailycard:active { cursor: grabbing; }
.fam-dailycard img { -webkit-user-drag: none; }
.fam-dailycard__tap { display: grid; gap: 10px; align-content: start; min-height: 196px; box-sizing: border-box; padding: 22px 20px 16px; color: inherit; text-decoration: none; }
.fam-dailycard__when { font-size: 0.875rem; font-weight: 700; }
.fam-dailycard__line { font-family: var(--adoa-font-heading); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.625rem; line-height: 1.1; text-wrap: balance; }
.fam-dailycard__try { font-size: 1rem; line-height: 1.4; }
.fam-dailycard__by { display: flex; align-items: center; gap: 7px; min-height: 44px; margin-top: auto; padding: 6px 94px 0 0; font-size: 0.8125rem; font-weight: 800; white-space: nowrap; }
.fam-dailycard__by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #FFFFFF; }
.fam-dailycard__by .fam-icon { width: 24px; height: 24px; }
.fam-dailycard__acts { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.fam-dailycard__acts button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; display: grid; place-items: center; cursor: pointer; }
.fam-dailycard__acts .fam-icon { width: 22px; height: 22px; }
.fam-dailycard__acts button[aria-pressed="true"] { background: #FFFFFF; color: var(--adoa-ink); }
.fam-dailycard__acts button:focus-visible, .fam-dailycard__tap:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
/* the next live session: a date and one line. Shown to everyone; on the free plan it carries the Membership mark */
.fam-nextlive { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 22px; background: #FFFFFF; border: 1.5px solid var(--brand-line); color: var(--brand-text); text-decoration: none; }
.fam-nextlive .fam-live__date { padding: 7px 0 8px; }
.fam-nextlive .fam-live__date b { font-size: 1.375rem; }
.fam-nextlive__words { display: grid; gap: 2px; min-width: 0; }
.fam-nextlive__words > small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.8125rem; font-weight: 800; color: var(--brand-muted); }
.fam-nextlive__words > b { font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-wrap: balance; }
.fam-nextlive__words > span { font-size: 0.875rem; color: var(--brand-muted); }
.fam-nextlive > .fam-icon { width: 18px; height: 18px; color: var(--brand-muted); }
.fam-nextlive:focus-visible { outline: 3px solid var(--adoa-pool); outline-offset: 3px; }
/* Quick Advice as a feed: wide stills, one under the other */
.fam-qafeed { display: grid; gap: 28px; }
.fam-qafeed:not(:has(> :not([hidden]))) { display: none; }
.fam-qa--feed .fam-still { aspect-ratio: 16 / 9; border-radius: 20px; }
.fam-qa--feed .fam-still .fam-playmark { width: 48px; height: 48px; }
.fam-qa--feed .fam-qa__words > b { font-family: var(--adoa-font-heading); font-variation-settings: "SOFT" 100; font-size: 1.375rem; line-height: 1.12; }
.fam-qa--feed .fam-qa__n { flex-wrap: wrap; gap: 4px 10px; }
.fam-qa--feed .fam-qa__n .fam-status .fam-icon { width: 14px; height: 14px; color: inherit; }
.fam-uptodate { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--adoa-mist); font-size: 0.9375rem; }
.fam-uptodate .fam-icon { width: 22px; height: 22px; flex: none; color: var(--adoa-mint-deep); }
.fam-qafeed + .fam-uptodate + .fam-group, .fam-qafeed + .fam-uptodate[hidden] + .fam-group { margin-top: 4px; }
@media (min-width: 1000px) {
  [data-fam-app][data-frame="web"] .fam-qafeed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
