/* Jaidee redesign (public pages): watercolour paper world. Copied from
   docs/design/mockup/redesign/redesign.css; app-only additions are at the end.
   Layout: painted art layer (Jaidee, scenes, avatars) over crisp, flat UI taken from the paintings' colours.
   One deliberate light look (paper), so every colour is set explicitly here. */
:root {
    color-scheme: light;
    --paper: #FBF3F4;        /* blush paper (chosen 2026-11-10) */
    --paper-deep: #F4E6E8;
    --card: #FFFCFC;
    --ink: #3B302B;          /* brown-grey ink outline */
    --ink-soft: #6F625A;
    --line: #EBD9DC;
    --rose: #C93F70;         /* Jaidee's hair: the one signature colour */
    --rose-deep: #A82F5A;
    --rose-wash: #F7D6E1;
    --moss: #5F7F4A;
    --moss-wash: #DCE6CF;
    --ochre: #B57F22;
    --ochre-wash: #F5E3BD;
    --rain: #5E7C92;
    --rain-wash: #D6E3EC;
    --plum: #7A5A8C;
    --plum-wash: #E6DCEC;
    --bark: #8A6248;
    --bark-wash: #EBDCCF;
    --font-display: 'Mali', 'Noto Sans Thai', system-ui, sans-serif;
    --font-body: 'Noto Sans Thai', system-ui, sans-serif;
    --radius-hand: 22px 18px 24px 16px;  /* slightly uneven, like a cut paper edge */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    /* faint paper grain */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.35; }
p { margin: 0; }

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* painted images keep their paper white out of the way */
.paint { mix-blend-mode: multiply; }
/* Jaidee cut-outs are transparent WebP. Keep each at or below half its pixel height so it stays sharp on 2x screens. */
.pose { display: block; width: auto; max-width: 100%; height: auto; }
.hero-art .pose { height: 240px; margin-inline: auto; }
.page-hero .art .pose { height: 230px; margin-inline: auto; }
.thanks .card img.pose, .calm .card img.pose { width: auto; height: 210px; max-width: none; border-radius: 0; justify-self: center; }
.reply-art.pose { width: auto; height: 170px; }
.rule-pose { display: inline-block; height: 72px; width: auto; margin-right: 4px; vertical-align: bottom; }

/* ------------------------------------------------------------------ header */
.site-header { padding-block: 14px; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-header .logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--rose-deep); }
.help-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card); color: var(--ink) !important;
    border: 1.5px solid var(--rain); border-radius: 999px;
    padding: 4px 14px; font-weight: 600;
}
.help-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rain); }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: 12px 28px; }
.hero .wrap {
    display: grid; gap: 8px 36px; align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
}
.hero-art { position: relative; justify-self: center; padding-inline: 12px; }
.hero-art::before {   /* wash behind Jaidee */
    content: ""; position: absolute; inset: 12% -8% 4% -8%; z-index: -1;
    background: radial-gradient(closest-side, var(--rose-wash), transparent 75%);
    border-radius: 50%;
}
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3.2vw, 33px); color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--rose); }
.hero h1 .nw, .preview-title .nw { white-space: nowrap; }
.hero .lede { margin-top: 10px; font-size: 18px; color: var(--ink-soft); max-width: 34em; }

.ask {
    margin-top: 22px; display: flex; gap: 10px; align-items: center;
    background: var(--card); border: 2px solid var(--ink);
    border-radius: var(--radius-hand); padding: 8px 8px 8px 20px;
    box-shadow: 4px 5px 0 var(--rose-wash);
}
.ask input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 18px; color: var(--ink); padding: 8px 0;
}
.ask input::placeholder { color: #9A8D84; }
.ask button {
    flex: none; border: 0; cursor: pointer; border-radius: 50%;
    width: 52px; height: 52px; background: var(--rose); color: #fff;
    font-size: 24px; line-height: 1; display: grid; place-items: center;
}
.ask button:hover { background: var(--rose-deep); }
.examples { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.examples span { font-size: 14px; color: var(--ink-soft); margin-right: 2px; }
.chip {
    font: inherit; font-size: 14px; cursor: pointer; color: var(--ink);
    background: var(--paper-deep); border: 1px solid var(--line);
    border-radius: 999px; padding: 4px 14px;
}
.chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.privacy { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ sections */
.section { padding-block: 26px; }
.section-head { display: flex; align-items: baseline; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.section-head p { color: var(--ink-soft); font-size: 15px; }
.section-head .spacer { flex: 1; }
.text-button {
    font: inherit; font-size: 15px; cursor: pointer; background: none; border: 0;
    color: var(--rose-deep); text-decoration: underline; text-underline-offset: 4px; padding: 0;
}

/* topic tiles: painted vignette placeholders (wash + name) */
.topics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.topic {
    position: relative; overflow: hidden; text-align: left; cursor: pointer;
    font: inherit; color: var(--ink); background: var(--card);
    border: 1px solid var(--line); border-radius: 16px;
    padding: 58px 14px 12px; min-height: 104px;
}
.topic::before {   /* watercolour blot; real tiles get a painted scene */
    content: ""; position: absolute; top: -18px; right: -14px; width: 104px; height: 84px;
    background: radial-gradient(closest-side, var(--tint, var(--rose-wash)) 55%, transparent);
    border-radius: 46% 54% 60% 40%;
    opacity: .95;
}
.topic strong { position: relative; font-weight: 600; font-size: 16px; display: block; }
.topic:hover { border-color: var(--tint-deep, var(--rose)); }

/* ------------------------------------------------------------------ feed */
.feed-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.feed { columns: 2 300px; column-gap: 18px; }
.feed > * { break-inside: avoid; margin-bottom: 18px; }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: grid; gap: 12px; }
.rail-label { font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }
.rail .enc { transition: opacity .6s ease; }
.rail .enc.fading { opacity: 0; }
.enc.enc-inline { display: none; }

.story {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 18px; display: grid; gap: 10px;
}
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none;
    border: 2px solid var(--card); box-shadow: 0 0 0 1.5px var(--line);
}
.who-text { font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.who-text strong { color: var(--ink); font-weight: 600; display: block; font-size: 15px; }
.story .problem { font-weight: 600; font-size: 17px; line-height: 1.55; }
.story .label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.story .label.coped { color: var(--moss); }
.story .label.cheer { color: var(--rose-deep); }
.story .tag {
    justify-self: start; font-size: 12px; padding: 1px 10px; border-radius: 999px;
    background: var(--paper-deep); color: var(--ink-soft);
}

/* ------------------------------------------------------------------ encouragement card */
.enc {
    position: relative; overflow: hidden;
    background: var(--enc-bg, var(--rose-wash));
    border-radius: var(--radius-hand);
    padding: 18px 18px 16px; min-height: 230px;
    display: flex; flex-direction: column; gap: 12px;
    color: var(--ink);
}
.enc .enc-kicker { font-size: 12px; letter-spacing: .05em; color: var(--ink-soft); position: relative; }
.enc blockquote {
    margin: 0; position: relative; max-width: 78%;
    font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.5;
}
.enc .enc-jaidee {
    position: absolute; right: 8px; bottom: 6px; width: auto; height: 128px; max-width: 34%; object-fit: contain; object-position: bottom right;
}
.enc .enc-jaidee.bust { height: 100px; max-width: 30%; }
.enc .enc-credit { margin-top: auto; display: flex; align-items: center; gap: 10px; position: relative; max-width: 72%; }
.enc .enc-credit .avatar { width: 38px; height: 38px; border-color: var(--enc-bg, var(--rose-wash)); }
.enc .enc-credit span { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.enc .enc-credit strong { display: block; color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ donate band */
.donate-band { padding-block: 34px; }
.donate-band .inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px;
    background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.donate-band img { width: 100%; height: 100%; object-fit: cover; }
.donate-band .copy { padding: 26px 28px 26px 0; display: grid; gap: 12px; }
.donate-band h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.donate-band p { color: var(--ink-soft); }
.button {
    justify-self: start; display: inline-block; text-decoration: none; cursor: pointer;
    font: inherit; font-weight: 600; color: #fff; background: var(--rose);
    border: 0; border-radius: 999px; padding: 10px 22px;
}
.button:hover { background: var(--rose-deep); color: #fff; }
.button.quiet { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.button.quiet:hover { background: var(--paper-deep); color: var(--ink); }

/* ------------------------------------------------------------------ footer */
.site-footer { padding-block: 30px 40px; border-top: 1px solid var(--line); margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.site-footer .partners { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.site-footer .partners img { height: 34px; width: auto; }

/* ------------------------------------------------------------------ router result */
.reply { padding-block: 8px 10px; }
.reply .wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.reply-art { width: 150px; }
.you-said {
    justify-self: end; max-width: 520px; background: var(--paper-deep); border-radius: 18px 18px 4px 18px;
    padding: 10px 16px; font-size: 16px; grid-column: 2;
}
.bubble {
    position: relative; background: var(--card); border: 2px solid var(--ink);
    border-radius: var(--radius-hand); padding: 18px 20px; display: grid; gap: 12px;
}
.bubble::before {   /* tail toward Jaidee */
    content: ""; position: absolute; left: -12px; top: 34px; width: 20px; height: 20px;
    background: var(--card); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
}
.bubble p.say { font-family: var(--font-display); font-size: 20px; line-height: 1.55; font-weight: 500; }
.route { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.route b { color: var(--ink); background: var(--ochre-wash); border-radius: 999px; padding: 1px 12px; font-weight: 600; }
.refine { display: flex; flex-wrap: wrap; gap: 8px; }
.disclaimer { font-size: 13px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ crisis */
.calm { background: var(--rain-wash); padding-block: 26px 34px; }
.calm .card {
    background: var(--card); border-radius: 24px; padding: 26px;
    display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start;
}
.calm .card img { width: 170px; border-radius: 50%; }
.calm h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--ink); }
.calm .card p { font-size: 18px; color: var(--ink); max-width: 36em; }
.lines { display: grid; gap: 12px; margin-top: 18px; }
.line {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center;
    border: 1.5px solid var(--rain); border-radius: 16px; padding: 12px 18px; background: var(--card);
}
.line .num { font-size: 34px; font-weight: 700; color: var(--rain); letter-spacing: .02em; font-variant-numeric: tabular-nums; grid-row: span 2; }
.line strong { font-size: 17px; }
.line span { font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 999px) {
    .feed-layout { grid-template-columns: minmax(0, 1fr); }
    .rail { display: none; }
    .enc.enc-inline { display: flex; }
}
@media (max-width: 760px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); text-align: left; }
    .hero-art { max-width: 190px; order: -1; justify-self: start; margin-left: 4px; }
    .hero h1 { font-size: 21px; }
    .hero .lede { font-size: 16px; }
    .nav { gap: 12px; font-size: 14px; }
    .nav .hide-sm { display: none; }
    .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .topic { min-height: 64px; padding: 28px 10px 8px; border-radius: 12px; }
    .topic strong { font-size: 14px; line-height: 1.35; }
    .topic::before { width: 70px; height: 56px; top: -14px; right: -12px; }
    .donate-band .inner { grid-template-columns: minmax(0, 1fr); }
    .donate-band .copy { padding: 0 20px 22px; }
    .reply .wrap { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
    .reply-art { width: 76px; }
    .bubble p.say { font-size: 18px; }
    .calm .card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .calm .card img { width: 120px; }
    .calm h1 { font-size: 26px; }
    .site-footer .partners { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rail .enc { transition: none; }
}

/* ================================================================== pages added in the second pass */

/* page intro used by donate, about, help */
.page-hero { padding-block: 10px 22px; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px; align-items: center; }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.8vw, 40px); }
.page-hero .lede { margin-top: 10px; font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.page-hero .art { justify-self: center; max-width: 240px; }
.page-hero .art.scene { max-width: 100%; border-radius: 22px; overflow: hidden; }
.page-hero .art.group { max-width: 380px; width: 100%; }
.page-hero .art.group img { display: block; width: 100%; height: auto; }
.page-hero.trio .wrap { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "jaidee copy"; gap: 28px; }
.page-hero.trio .art.jaidee { grid-area: jaidee; max-width: none; }
.page-hero.trio .art.jaidee img { display: block; height: 220px; width: auto; }
.page-hero.trio .copy { grid-area: copy; }
.promises { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.promise { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.promise::before { content: "✓ "; color: var(--moss); font-weight: 700; }

/* donation form */
.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 600; font-size: 18px;
    background: var(--rose-wash); color: var(--rose-deep); grid-row: span 3;
}
.step > label, .step .step-title { font-weight: 600; font-size: 18px; line-height: 1.45; }
.step .hint { font-size: 14px; color: var(--ink-soft); }
.step textarea, .field input {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
    border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; resize: vertical;
}
.step textarea { min-height: 120px; }
.step textarea:focus, .field input:focus { outline: none; border-color: var(--rose); background: var(--card); }
.topic-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
    display: inline-block; font-size: 14px; cursor: pointer; border-radius: 999px; padding: 4px 12px;
    background: var(--paper-deep); border: 1px solid var(--line);
}
.pick input:checked + span { background: var(--ink); color: var(--card); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.field { display: grid; gap: 4px; font-size: 15px; font-weight: 600; min-width: 0; }
.field .pick span { font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tip { font-size: 14px; background: var(--ochre-wash); border-radius: 12px; padding: 10px 14px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form-foot p { font-size: 13px; color: var(--ink-soft); max-width: 32em; }
.preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: grid; gap: 12px; }
.preview-panel { background: var(--rose-wash); border: 1.5px dashed var(--rose); border-radius: 22px; padding: 18px 16px 16px; display: grid; gap: 10px; }
.preview-badge { justify-self: start; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 12px; border-radius: 999px; }
.preview-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0; }
.preview-panel .story { box-shadow: 0 6px 18px rgba(120, 60, 80, .12); border-color: transparent; }
.cert-note { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; color: var(--ink-soft);
             background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.cert-note img { border-radius: 6px; border: 1px solid var(--line); }

/* thank-you */
.thanks { padding-block: 10px 20px; }
.thanks .card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
                display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; }
.thanks h1 { font-family: var(--font-display); font-weight: 600; font-size: 32px; }
.thanks .card p { font-size: 17px; color: var(--ink-soft); margin-top: 8px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.next-steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.next-steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 600; width: 32px; height: 32px; border-radius: 50%;
                         display: grid; place-items: center; background: var(--moss-wash); color: var(--moss); }
.next-steps li.done::before { background: var(--moss); color: var(--card); content: "✓"; }
.next-steps strong { font-size: 16px; }
.next-steps span { font-size: 14px; color: var(--ink-soft); }
.support-block { background: var(--rain-wash); border-radius: 20px; padding: 20px 22px; display: grid; gap: 10px; }
.support-block h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }

/* about */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.three a { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; }
.three a:hover { border-color: var(--rose); }
.three .thumb { height: 150px; background: var(--tint, var(--rose-wash)); display: grid; place-items: center; overflow: hidden; }
.three .thumb img { height: 140px; width: auto; }
.three .thumb img.cover { height: 100%; width: 100%; object-fit: cover; mix-blend-mode: normal; }
.three .body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.three h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.three p { font-size: 15px; color: var(--ink-soft); }
.stat-line { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-top: 14px; }
.stat-line b { font-family: var(--font-display); font-size: 34px; color: var(--rose); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-line span { color: var(--ink-soft); font-size: 15px; }
.prose { max-width: 42em; display: grid; gap: 12px; font-size: 17px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-top: 10px; }
.prose h3 { font-size: 19px; font-weight: 600; margin-top: 6px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: grid; gap: 6px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.flow li { position: relative; padding: 0 16px 0 0; display: grid; gap: 6px; }
.flow li::before { content: ""; height: 14px; width: 14px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px var(--rose-wash); margin: 4px 0 10px 4px; }
.flow li::after { content: ""; position: absolute; top: 10px; left: 26px; right: 8px; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow strong { font-size: 16px; }
.flow span { font-size: 14px; color: var(--ink-soft); }
.note-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 8px; max-width: 48em; }
.note-box h3 { font-size: 17px; font-weight: 600; }
.note-box p { font-size: 15px; color: var(--ink-soft); }

/* help */
.levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.article-card { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; }
.article-card:hover { border-color: var(--rose); }
.article-card .thumb { height: 120px; position: relative; overflow: hidden; background: var(--tint, var(--moss-wash)); }
.article-card .thumb::after { content: ""; position: absolute; width: 140px; height: 110px; right: -20px; bottom: -30px; border-radius: 48% 52% 40% 60%;
                              background: radial-gradient(closest-side, var(--tint-deep, var(--moss)) 0, transparent 100%); opacity: .35; }
.article-card .body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.article-card strong { font-size: 16px; line-height: 1.45; }
.article-card span { font-size: 13px; color: var(--ink-soft); }
.search-row { display: flex; gap: 10px; max-width: 520px; }
.search-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 18px; color: var(--ink); }
.search-row input:focus { outline: none; border-color: var(--rose); }
.hospital { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: grid; gap: 2px; max-width: 520px; margin-top: 12px; }
.hospital strong { font-size: 16px; }
.hospital span { font-size: 14px; color: var(--ink-soft); }

/* article */
.article { padding-block: 6px 20px; }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.back { font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.article-head { display: grid; gap: 10px; margin: 10px 0 18px; }
.article-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 38px); }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.share { display: flex; gap: 10px; align-items: center; }
.share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 0; }
.share img { width: 18px; height: 18px; }
.article-banner { height: 220px; border-radius: 22px; background: var(--moss-wash); position: relative; overflow: hidden; margin-bottom: 20px; }
.article-banner img { position: absolute; right: 24px; bottom: 8px; height: 200px; width: auto; }
.article-banner::before { content: ""; position: absolute; left: -40px; top: -30px; width: 320px; height: 240px; border-radius: 52% 48% 60% 40%;
                          background: radial-gradient(closest-side, var(--rain-wash), transparent); }
.breath { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0; }
.breath div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; display: grid; gap: 2px; }
.breath b { font-family: var(--font-display); font-size: 34px; color: var(--rain); font-weight: 600; }
.breath span { font-size: 14px; color: var(--ink-soft); }
.aside-stack { display: grid; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }

@media (max-width: 999px) {
    .donate-layout { grid-template-columns: minmax(0, 1fr); }
    .preview { position: static; }
    .article .wrap { grid-template-columns: minmax(0, 1fr); }
    .aside-stack { position: static; }
    .next-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .page-hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .page-hero .art { order: -1; justify-self: start; max-width: 180px; }
    .page-hero .art.scene { max-width: 100%; }
    .page-hero .art.group { max-width: 260px; }
    .page-hero.trio .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "jaidee" "copy"; }
    .page-hero.trio .art.jaidee img { height: 150px; }
    .page-hero .lede { font-size: 16px; }
    .form-card { padding: 18px; }
    .step { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 10px; }
    .step-num { width: 32px; height: 32px; font-size: 15px; }
    .step > label, .step .step-title { font-size: 16px; }
    .fields { grid-template-columns: minmax(0, 1fr); }
    .thanks .card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .thanks .card img { max-width: 160px; }
    .thanks h1 { font-size: 26px; }
    .next-steps { grid-template-columns: minmax(0, 1fr); }
    .three { grid-template-columns: minmax(0, 1fr); }
    .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .flow li { grid-template-columns: 24px minmax(0, 1fr); padding: 0; }
    .flow li::before { grid-row: span 2; margin: 6px 0 0 4px; }
    .flow li::after { display: none; }
    .breath { grid-template-columns: minmax(0, 1fr); }
    .article-banner { height: 160px; }
    .article-banner img { height: 150px; }
}
a.chip { text-decoration: none; display: inline-block; }
.journey-note { margin-top: 14px; max-width: 46em; font-size: 15px; color: var(--ink-soft); }

@media (max-width: 760px) {
    .hero-art .pose { height: 120px; margin-inline: 0; }
    .page-hero .art .pose { height: 170px; margin-inline: 0; }
    .thanks .card img.pose, .calm .card img.pose { height: 150px; justify-self: start; }
    .reply-art.pose { width: auto; height: 110px; }
}

/* ------------------------------------------------------------------ breadcrumb */
.crumbs ol { list-style: none; margin: 0 auto; padding-block: 6px 4px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--ink-soft); opacity: .6; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--rose); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs:has(+ .calm) { background: var(--rain-wash); }
.rail-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; }
.rail-head p { margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
.pose.flip { transform: scaleX(-1); }

/* ================================================================== app additions */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flash-list { display: grid; gap: 8px; padding-block: 8px; }
.flash { background: var(--ochre-wash); border-radius: 12px; padding: 10px 14px; font-size: 15px; }

/* feed: two plain columns filled by redesign.js (cards never move as more load) */
.feed { columns: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.feed > * { margin-bottom: 0; }
.feed-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.feed-col:empty { display: none; }
@media (min-width: 700px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feed-col:empty { display: grid; } }
.feed-more { justify-self: center; margin-top: 18px; }
.feed-notice { background: var(--ochre-wash); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }

/* the whole story card opens its permalink */
.story { position: relative; }
.story .story-open { color: inherit; text-decoration: none; }
.story .story-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.story:hover { border-color: var(--rose); }
.story .story-open:focus-visible { outline: none; }
.story:has(.story-open:focus-visible) { outline: 3px solid var(--ochre); outline-offset: 3px; }
.story mark { background: var(--ochre-wash); color: inherit; border-radius: 4px; padding: 0 2px; }
.story .admin-hide { position: relative; z-index: 1; justify-self: end; font: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 2px 12px; }
.story.single .story-open::after { display: none; }
.story.single:hover { border-color: var(--line); }
dialog.hide-dialog { border: 1px solid var(--line); border-radius: 18px; padding: 20px; max-width: 420px; background: var(--card); color: var(--ink); }
dialog.hide-dialog::backdrop { background: rgba(59, 48, 43, .35); }

a.topic { text-decoration: none; color: var(--ink); }

/* results */
.browse-ask { max-width: 640px; margin-bottom: 18px; }
.browse-ask .ask { margin-top: 0; }
.feedback { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; max-width: 640px; }
.feedback p { font-size: 15px; }

/* story permalink */
.story-main { display: grid; gap: 14px; }
.story.single { padding: 22px; }
.story.single h1.problem { font-family: var(--font-body); font-size: 20px; line-height: 1.55; }

/* crisis: hotline numbers are tap-to-call */
.line a.num { text-decoration: none; }
.line.no-num .num { font-size: 18px; font-weight: 600; }
.line strong a { color: var(--ink); }
.calm-more { margin-top: 14px; font-size: 15px; }

/* share form */
.field-errors { list-style: none; margin: 6px 0 0; padding: 0; color: var(--rose-deep); font-size: 14px; font-weight: 600; }
.step textarea { width: 100%; }
.support-block .lines { margin-top: 4px; }

/* help: hospital results */
.hospitals { display: grid; gap: 10px; margin-top: 16px; }
.hospital-province { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.hospital a { color: var(--rose-deep); }

/* article */
.share a.share-btn, .share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 0; }
.share .copied { font-size: 13px; color: var(--moss); }
.prose img.article-img { border-radius: 16px; }
.prose .iframe-container { position: relative; aspect-ratio: 16 / 9; }
.prose .iframe-item { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.talk-box { margin-top: 22px; }
.admin-tools { font-size: 14px; background: var(--ochre-wash); border-radius: 12px; padding: 8px 14px; margin-bottom: 10px; }
/* article without the side column (wording change 2026-11-19) */
.article.solo .wrap { grid-template-columns: minmax(0, 46em); }
.page-hero .lede + .lede { margin-top: 8px; }
.page-hero .stat-line { gap: 2px 8px; }
@media (max-width: 760px) { .page-hero .stat-line b { font-size: 26px; } }
.line strong a { text-decoration: none; }
.line strong a:hover, .line strong a:focus-visible { text-decoration: underline; }
.calm-page .crumbs { background: var(--rain-wash); }
/* a 9-10 digit number takes the full row on phones, the name goes under it */
@media (max-width: 760px) {
    .line.long-num { grid-template-columns: minmax(0, 1fr); }
    .line.long-num .num { grid-row: auto; font-size: 26px; }
}

/* privacy policy: long legal text */
.prose.policy { font-size: 16px; }
.prose.policy h2 { font-size: 21px; }
.prose.policy h3 { font-size: 17px; }
