/* design: v2 */
/* birthplantemplate.com, design v2 A, "The little suitcase" (design/home-v2-A.png, picked by James on 27 Nov 2026).
   A dusk sky from dusk blue to rose and apricot over felt hills; the felt toys are Blender renders (renders/,
   public/img/felt/). Below the sky, soft pale-sage ground with cream panels and lilac and sage section heads, sage
   buttons and plum ink. Averia Serif Libre for headings and the wordmark, Sora for text (both OFL, self-hosted).
   Light surfaces in dark mode too (color-scheme: light), so every pair is checked once, by tests/design.test.ts. The plan
   sheets (.bp-*) keep their three styles and the print layout at the end. */

@font-face { font-family: "Averia Serif Libre"; src: url("/fonts/averia-serif-libre-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Averia Serif Libre"; src: url("/fonts/averia-serif-libre-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/fonts/sora.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --brand: #5b79a5;        /* dusk blue: the top of the sky */
  --bg: #e6e8da;           /* pale sage ground, the reading surface */
  --card: #fbf5ec;         /* cream panels and cards */
  --band: #f6ecf3;         /* the pale rose-lilac of the country row and soft bands */
  --text: #4a3b52;         /* plum ink */
  --muted: #5e4d68;
  --line: #d9d2c4;
  --link: #6b4a86;
  --on-brand: #ffffff;
  --sky-1: #6c88b9;
  --sky-2: #c7b3d6;
  --sky-3: #ecbcc2;
  --sky-4: #fcd0b0;
  --apricot: #f5b48b;
  --sage: #8db79e;
  --lilac: #c9b7d9;
  --lilac-tint: #e4d3ea;   /* lilac section heads */
  --sage-tint: #dde3cf;    /* sage section heads */
  --gold: #f2c14e;
  --btn: #4f7a5b;          /* the sage button, deep enough for white words */
  --btn-hover: #456e51;
  --btn-text: #ffffff;
  --tile-lilac: #d9c6e6;
  --tag-bg: #e4d3ea;
  --tag-text: #4a3b52;
  --display: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --hdr: 104px;
  --soft: 0 10px 30px rgba(74, 59, 82, 0.12), 0 2px 6px rgba(74, 59, 82, 0.08);
  color-scheme: light;
}
@media (max-width: 760px) { :root { --hdr: 84px; --radius: 18px; } }

/* ---------- type ---------- */
body { font-family: var(--sans); font-size: 17.5px; line-height: 1.62; background: var(--bg); color: var(--text); }
main { overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.005em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; margin: 0.1em 0 0.3em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 1.2em 0 0.35em; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--apricot); }
.wrap { max-width: 1240px; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }
::selection { background: var(--lilac); color: var(--text); }
.small, .src { font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.section-sub { color: var(--muted); margin-top: -0.2em; }
.more { margin: 14px 0 0; font-weight: 600; }
.more a::after { content: " \203A"; }
.note { background: var(--card); border: 2px dashed var(--line); border-radius: 14px; padding: 12px 16px; }
img.felt { display: block; height: auto; max-width: none; }
.rays { position: absolute; width: 34px; height: 34px; pointer-events: none; }

/* ---------- header: on the sky, the wordmark on its cloud and the menu as a soft pill ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; border: 0; }
.header-row { max-width: 1440px; padding: 14px clamp(16px, 3.6vw, 56px) 0; justify-content: flex-start; gap: 10px 36px; align-items: flex-start; }
.brand { text-decoration: none; }
.brand:hover { text-decoration: none; }
.logo { position: relative; display: inline-block; padding: 26px 50px 24px 54px; margin: -8px 0 0 -14px; }
.logo-cloud { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: 0; filter: drop-shadow(0 4px 8px rgba(74, 59, 82, 0.18)); }
.brand svg.logo-star { position: absolute; left: 24px; bottom: 26px; width: 24px; height: 24px; z-index: 2; }
.wordmark { position: relative; z-index: 1; display: block; font-family: var(--display); font-weight: 700; font-size: 1.95rem; line-height: 0.98; letter-spacing: 0.005em; text-shadow: 0 1px 0 #ffffff; }
.wordmark br + .wm-word { margin-left: 0.55em; }
.main-nav { margin-top: 22px; background: rgba(255, 250, 246, 0.94); border-radius: 999px; padding: 6px 12px; box-shadow: var(--soft); gap: 0 4px; }
.main-nav a { font-weight: 600; font-size: 0.98rem; color: var(--text); padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--lilac-tint); text-decoration: none; }
/* between phone and desktop the menu pill sits on its own row under the wordmark */
@media (min-width: 761px) and (max-width: 1000px) {
  :root { --hdr: 168px; }
  .header-row { flex-wrap: wrap; gap: 4px 20px; }
  .main-nav { margin-top: 2px; }
  .main-nav a { padding: 8px 12px; }
  .wordmark { font-size: 1.6rem; }
}
@media (max-width: 760px) {
  .header-row { flex-wrap: nowrap; justify-content: space-between; align-items: center; padding-top: 10px; }
  .logo { padding: 16px 34px 15px 38px; margin: -4px 0 0 -8px; }
  .wordmark { font-size: 1.22rem; }
  .brand svg.logo-star { width: 18px; height: 18px; left: 16px; bottom: 16px; }
  /* the menu button: three plum bars, the word "Menu" kept for screen readers */
  .menu-btn { width: 48px; height: 44px; padding: 0; border: 0; border-radius: 14px; font-size: 0; color: transparent; background: rgba(255, 250, 246, 0.9) linear-gradient(var(--text), var(--text)) center 14px / 22px 3px no-repeat; box-shadow: var(--soft); position: relative; }
  .menu-btn::before, .menu-btn::after { content: ""; position: absolute; left: 13px; width: 22px; height: 3px; border-radius: 2px; background: var(--text); }
  .menu-btn::before { top: 20.5px; }
  .menu-btn::after { top: 27px; }
  .has-menu .header-row { flex-wrap: wrap; }
  .has-menu.menu-open .main-nav { width: 100%; margin-top: 6px; border-radius: 22px; padding: 6px 16px; background: #fffaf6; }
  .has-menu.menu-open .main-nav a { border-top: 1px solid var(--line); border-radius: 0; padding: 12px 4px; }
  .has-menu.menu-open .main-nav a:first-child { border-top: 0; }
  .has-menu:not(.js-menu) .main-nav { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--btn); color: var(--btn-text); border: 0; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; padding: 11px 26px; cursor: pointer; text-decoration: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 6px 14px rgba(79, 122, 91, 0.32); }
.btn:hover { background: var(--btn-hover); color: var(--btn-text); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-big { font-size: 1.4rem; padding: 14px 36px; }
.btn-quiet { background: var(--card); color: var(--text); box-shadow: var(--soft); }
.btn-quiet:hover { background: #ffffff; color: var(--text); }
.btn-link { background: none; border: 0; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 4px; }
.btn:focus-visible, .btn-link:focus-visible, .tile:focus-visible, .bp-styles button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* ---------- the sky (home hero) ---------- */
.sky { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 150px, var(--sky-3) 330px, var(--sky-4) 520px, #fcd9bd 100%); padding-top: var(--hdr); }
.sky-cloud { position: absolute; z-index: -1; opacity: 0.95; }
.sc-1 { width: 300px; left: 33%; top: 92px; }
.sc-2 { width: 190px; right: 3%; top: 250px; }
.sky-hills { position: absolute; left: 0; right: 0; bottom: -40px; width: 100%; min-width: 1100px; z-index: 0; pointer-events: none; }
.hero-in { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3.6vw, 56px); display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 0 20px; align-items: start; min-height: 560px; }
.hero-text { position: relative; z-index: 5; padding: 46px 0 150px 34px; }
.hero h1 { color: var(--text); font-size: clamp(2.7rem, 5.6vw, 5rem); margin: 0 0 18px; letter-spacing: -0.012em; }
.hero-sub { font-size: 1.16rem; line-height: 1.55; margin: 0 0 28px; max-width: 30em; color: var(--text); font-weight: 450; }
.hero-go { position: relative; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin: 0; }
.hero-alt { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.r-h1 { left: -4px; top: 58px; transform: rotate(-8deg); }
.r-btn { left: -40px; top: 14px; transform: rotate(-6deg); }

/* the stage: the suitcase holding the plan, the felt things floating round it at different depths */
.stage { position: relative; height: 600px; margin-top: -40px; }
.stage .felt { position: absolute; filter: drop-shadow(0 10px 14px rgba(74, 59, 82, 0.2)); }
.case { position: absolute; left: 50%; bottom: 0; width: 640px; margin-left: -330px; z-index: 3; }
.case .f-case { position: relative; width: 100%; filter: drop-shadow(0 18px 20px rgba(74, 59, 82, 0.25)); }
.case-sheet { position: absolute; transform-origin: 50% 50%; padding: 0; color: #4a3b52; font-family: var(--sans); overflow: hidden; container-type: inline-size; }
.hs-title { font-family: var(--display); font-weight: 700; font-size: 10.4cqi; white-space: nowrap; line-height: 1.05; margin: 9cqi 5cqi 0 8cqi; color: #4a3b52; padding-bottom: 6px; background: linear-gradient(90deg, #9c80bd, rgba(156, 128, 189, 0)) left bottom / 86% 2px no-repeat; }
.hs-title::after { content: ""; display: inline-block; width: 7cqi; height: 6.4cqi; margin-left: 2.5cqi; vertical-align: 0.1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 14S1 9.6 1 5a3.6 3.6 0 0 1 7-1.2A3.6 3.6 0 0 1 15 5c0 4.6-7 9-7 9z' fill='none' stroke='%23c9566b' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.hs-ticks { list-style: none; margin: 4.5cqi 5cqi 0 8cqi; padding: 0; font-size: 5.7cqi; line-height: 1.3; }
.hs-ticks li { position: relative; padding: 0.5cqi 0 1.6cqi 9.5cqi; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ticks li::before { box-sizing: border-box; width: 6.6cqi !important; height: 6.6cqi !important; border-width: max(1.2px, 0.8cqi) !important; border-radius: 1cqi !important; }
.hs-ticks li::after { left: 1.6cqi !important; width: 4.2cqi !important; height: 2.2cqi !important; border-width: 0 0 1.1cqi 1.1cqi !important; }
.hs-ticks li::before, .ms-ticks li::before { content: ""; position: absolute; left: 0; top: 0.24em; width: 15px; height: 15px; border: 2px solid #5e8d68; border-radius: 3px; background: #ffffff; }
.hs-ticks li::after, .ms-ticks li::after { content: ""; position: absolute; left: 4px; top: calc(0.24em + 1px); width: 11px; height: 6px; border-left: 3px solid #4f7a5b; border-bottom: 3px solid #4f7a5b; transform: rotate(-48deg); }
.ms-sprig { display: block; height: 22px; margin: 6px auto 0; width: 60%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M6 12h108' stroke='%237f9f6c' stroke-width='2' stroke-linecap='round'/%3E%3Cg fill='%238fb07e'%3E%3Cellipse cx='24' cy='8' rx='7' ry='3.2' transform='rotate(-25 24 8)'/%3E%3Cellipse cx='24' cy='16' rx='7' ry='3.2' transform='rotate(25 24 16)'/%3E%3Cellipse cx='46' cy='8' rx='7' ry='3.2' transform='rotate(-25 46 8)'/%3E%3Cellipse cx='46' cy='16' rx='7' ry='3.2' transform='rotate(25 46 16)'/%3E%3Cellipse cx='74' cy='8' rx='7' ry='3.2' transform='rotate(25 74 8)'/%3E%3Cellipse cx='74' cy='16' rx='7' ry='3.2' transform='rotate(-25 74 16)'/%3E%3Cellipse cx='96' cy='8' rx='7' ry='3.2' transform='rotate(25 96 8)'/%3E%3Cellipse cx='96' cy='16' rx='7' ry='3.2' transform='rotate(-25 96 16)'/%3E%3C/g%3E%3Ccircle cx='60' cy='12' r='3.5' fill='%23e98f98'/%3E%3C/svg%3E") center / contain no-repeat; }
.f-moon { width: 112px; right: -14px; top: -16px; z-index: 1; transform: rotate(8deg); }
.r-moon { right: 92px; top: 6px; transform: rotate(40deg) scale(-1, 1); }
.f-hat { width: 132px; left: 2%; top: 32px; z-index: 2; transform: rotate(-12deg); }
.f-booties { width: 178px; left: -4%; top: 190px; z-index: 2; transform: rotate(-4deg); }
.f-ball { width: 168px; left: 6%; bottom: 40px; z-index: 2; }
.f-lavender { width: 124px; right: 15%; top: 50px; z-index: 4; transform: rotate(14deg); }
.r-lav { right: 12%; top: 30px; transform: rotate(80deg); }
.f-tea { width: 150px; right: -2%; top: 170px; z-index: 2; transform: rotate(6deg); }
.f-band { width: 116px; right: 5%; top: 350px; z-index: 2; transform: rotate(-10deg); }
.stage .f-cloud-a { width: 260px; right: -60px; top: 40px; z-index: 0; filter: none; opacity: 0.9; }
.stage .f-cloud-b { width: 150px; left: 26%; top: -70px; z-index: 0; filter: none; opacity: 0.85; }
@media (max-width: 1320px) { .f-booties { left: 2%; top: 200px; width: 160px; } .f-hat { left: 6%; } }
@media (max-width: 1180px) {
  .hero-in { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
  .case { width: 540px; margin-left: -260px; }
  .f-booties { left: 0; width: 140px; top: 210px; }
  .f-hat { width: 112px; left: 4%; }
  .f-ball { width: 140px; left: 2%; }
}
@media (max-width: 980px) {
  .stage .f-cloud-b { display: none; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 20px 0 0 16px; max-width: 640px; }
  .stage { height: 560px; margin: -10px auto 0; width: 100%; max-width: 640px; }
  .sky-hills { min-width: 900px; }
}
@media (max-width: 600px) {
  .hero-text { padding: 8px 0 0 8px; }
  .hero h1 { font-size: 2.75rem; margin-bottom: 12px; }
  .hero-sub { font-size: 1.04rem; margin-bottom: 20px; }
  .btn-big { font-size: 1.22rem; padding: 12px 28px; }
  .r-h1 { left: auto; right: 22px; top: 12px; transform: rotate(80deg) scale(0.85); }
  .r-btn { display: none; }
  .stage { height: 420px; margin-top: 6px; }
  .case { width: 380px; margin-left: -186px; bottom: 6px; }
  .f-hat { width: 84px; left: -2%; top: 18px; }
  .f-booties { width: 108px; left: -6%; top: 148px; }
  .f-ball { width: 98px; left: -2%; bottom: 40px; }
  .f-lavender { width: 76px; right: 1%; top: 8px; }
  .f-tea { width: 92px; right: -5%; top: 136px; }
  .f-band { width: 74px; right: -1%; top: 262px; }
  .f-moon { width: 66px; right: 6px; top: -34px; }
  .r-moon, .r-lav, .stage .f-cloud-b { display: none; }
  .stage .f-cloud-a { width: 170px; right: -70px; top: 70px; }
  .sky-cloud.sc-1 { width: 150px; left: 58%; top: 18px; }
  .sky-cloud.sc-2 { display: none; }
  .sky-hills { min-width: 760px; left: 50%; transform: translateX(-50%); }
  .case-sheet .ms-sprig { height: 14px; margin-top: 2px; }
}

/* ---------- the meadow: the builder as soft tinted panels ---------- */
.meadow { position: relative; padding: 0 clamp(12px, 2.2vw, 32px) 30px; margin-top: -8px; }
.meadow-in { max-width: 1400px; margin: 0 auto; background: #edf0e3; border-radius: 34px; padding: 26px clamp(14px, 1.8vw, 26px) 20px; box-shadow: var(--soft); border: 1.5px solid rgba(255, 255, 255, 0.7); position: relative; }
.ribbon { display: inline-block; position: relative; font-size: 1.5rem; margin: 0 0 14px 6px; padding: 8px 22px 9px; background: #f8e9dc; border-radius: 14px; transform: rotate(-1.2deg); box-shadow: 0 3px 8px rgba(74, 59, 82, 0.12); line-height: 1.1; }
.ribbon::after { content: ""; position: absolute; right: -10px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: #f8e9dc; transform: rotate(45deg); border-radius: 3px; z-index: -1; }
.ribbon-small { font-family: var(--sans); font-weight: 500; font-size: 0.95rem; }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 256px); gap: 22px; align-items: start; scroll-margin-top: 10px; }
.b-form, .bp-side { min-width: 0; }
@media (max-width: 1320px) { .builder { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); } .b-aside { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px; align-items: stretch; } }
@media (max-width: 1000px) { .builder { grid-template-columns: 1fr; } .b-aside { grid-template-columns: 1fr; } }

/* the form: cream cards, each section head a lilac or sage strip */
.bf { min-width: 0; }
.bf-set { border: 0; border-radius: 18px; background: var(--card); padding: 0 16px 14px; margin: 0 0 14px; min-width: 0; box-shadow: 0 2px 8px rgba(74, 59, 82, 0.08); overflow: hidden; }
.bf-set legend { float: left; width: calc(100% + 32px); margin: 0 -16px 10px; padding: 9px 16px 8px; font-family: var(--display); font-weight: 700; font-size: 1.16rem; line-height: 1.2; display: flex; align-items: center; gap: 8px; background: var(--lilac-tint); color: var(--text); }
.bf-set:nth-of-type(even) legend { background: var(--sage-tint); }
.bf-set legend + * { clear: both; }
.bf-settings { background: var(--card); }
.bf-settings legend { background: var(--sage-tint); }
.bf-legend-icon { width: 28px; height: 28px; color: var(--text); --icon-fill: #ffffff; flex: none; }
.bf-row { margin: 10px 0; clear: both; }
.bf-label { display: block; font-weight: 650; margin: 0 0 5px; font-size: 0.96rem; }
.bf-row input, .bf-row textarea, .bf-row select, .print-pick select, .bag-top select { width: 100%; font: inherit; font-size: 0.98rem; padding: 9px 14px; border: 1.5px solid #cdbfd6; border-radius: 12px; background: #ffffff; color: var(--text); }
.bf-row select, .print-pick select, .bag-top select { appearance: none; background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a3b52' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; padding-right: 36px; }
.bf-row textarea { resize: vertical; }
.bf-row input::placeholder, .bf-row textarea::placeholder { color: #6e6274; }
.has-style-chips .bf-row:has(input[name="s"]) { display: none; }
/* one-of choices: a radio circle, the picked one in a sage pill */
.picks { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.pick { display: inline-flex; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { position: relative; border-radius: 999px; padding: 6px 14px 6px 34px; background: transparent; font-weight: 550; font-size: 0.95rem; cursor: pointer; line-height: 1.3; }
.pick span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; margin-top: -9px; border: 2px solid #8a7a92; border-radius: 50%; background: #ffffff; }
.pick input:checked + span { background: #cfe0c9; }
.pick input:checked + span::before { border-color: #4f7a5b; box-shadow: inset 0 0 0 3px #ffffff; background: #4f7a5b; }
.pick input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.bf-q { margin: 12px 0 6px; }
.bf-qt { font-weight: 650; margin: 0 0 6px; font-size: 0.98rem; }
.bf-one { font-weight: 500; font-size: 0.84rem; color: var(--muted); }
.bf-help { font-size: 0.9rem; color: var(--muted); margin: 0 0 8px; }
/* the choices: a sage tick box and the words, as a plain list */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: 2px 14px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 10px; border-radius: 10px; padding: 5px 8px 5px 34px; cursor: pointer; line-height: 1.35; font-size: 0.95rem; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-icon { display: none; }
.choice::before { content: ""; position: absolute; left: 6px; top: 6px; width: 18px; height: 18px; border: 2px solid #8a7a92; border-radius: 5px; background: #ffffff; }
.choice:has(input[type="radio"])::before { border-radius: 50%; }
.choice:hover { background: #f3ede4; }
.choice:has(input:checked)::before { background: #5e8d68; border-color: #4f7a5b; }
.choice:has(input:checked)::after { content: ""; position: absolute; left: 11px; top: 10px; width: 9px; height: 5px; border-left: 2.5px solid #ffffff; border-bottom: 2.5px solid #ffffff; transform: rotate(-48deg); }
.choice:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 1px; }

/* the live sheet, its style chips and the tiles beside it */
.bp-side { scroll-margin-top: 10px; }
.bp-sticky { position: sticky; top: 14px; background: #f8efe9; border-radius: 26px; padding: 18px 16px 14px; box-shadow: 0 2px 10px rgba(74, 59, 82, 0.1); }
@media (max-width: 1000px) { .bp-sticky { position: static; } }
.bp-styles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0 0 14px; font-size: 0.92rem; }
.bp-styles-l { margin-right: 12px; font-weight: 550; }
.bp-styles button { font: inherit; font-weight: 600; color: var(--text); background: #fffaf6; border: 1.5px solid #e3d8e4; padding: 6px 16px; cursor: pointer; margin-left: -1.5px; }
.bp-styles button:first-of-type { border-radius: 999px 0 0 999px; }
.bp-styles button:last-of-type { border-radius: 0 999px 999px 0; }
.bp-styles button[aria-pressed="true"] { background: #cfe0c9; border-color: #b5ccad; }
.bp-stage { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; align-items: start; }
.bp-actions { display: flex; flex-direction: column; gap: 10px; }
.bp-actions[hidden] { display: none; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 0.8rem; font-weight: 650; line-height: 1.2; text-align: center; border: 0; border-radius: 16px; padding: 12px 8px 10px; cursor: pointer; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.08), 0 4px 10px rgba(74, 59, 82, 0.16); }
.tile svg { width: 30px; height: 30px; }
.tile-print { background: var(--btn); color: #ffffff; }
.tile-print:hover { background: var(--btn-hover); }
.tile-word { background: var(--tile-lilac); color: var(--text); }
.tile-share, .tile-text { background: #fffaf3; color: var(--text); }
.tile-word:hover, .tile-share:hover, .tile-text:hover { filter: brightness(1.04); }
.bp-actions .btn-link { font-size: 0.86rem; }
.bp-status { margin: 8px 0 0; font-weight: 600; color: #3f6a4c; min-height: 1.4em; font-size: 0.92rem; }
.bp-privacy { margin: 4px 0 0; font-size: 0.82rem; }
.bp-jump { display: none; }
@media (max-width: 1000px) {
  .bp-jump { display: block; position: sticky; top: calc(100vh - 64px); z-index: 5; margin: 0 auto 12px; width: max-content; max-width: 100%; background: var(--btn); color: var(--btn-text); border-radius: 999px; padding: 11px 24px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(79, 122, 91, 0.4); }
}
@media (max-width: 560px) {
  .bp-stage { grid-template-columns: 1fr; }
  .bp-actions { order: -1; }
  .bp-preview { order: 0; }
  .bp-styles-l { display: none; }
  .bp-styles button { padding: 6px 12px; font-size: 0.86rem; }
  .bp-actions { flex-direction: row; flex-wrap: wrap; }
  .bp-actions .tile { flex: 1 1 40%; flex-direction: row; justify-content: center; font-size: 0.84rem; padding: 10px; }
  .tile svg { width: 24px; height: 24px; }
  .bp-sticky { padding: 14px 10px 12px; }
}
.bp-preview { max-height: calc(100vh - 210px); overflow: auto; border-radius: 6px; scrollbar-width: thin; container-type: inline-size; }
@container (max-width: 470px) { .bp-preview .bp-body { columns: 1; } }
@media (max-width: 1000px) { .bp-preview { max-height: none; } }

/* the aside: the nine templates and the hospital bag */
.b-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 14px; }
@media (max-width: 1320px) { .b-aside { position: static; } }
.b-tpls { position: relative; background: #fbf3ea; border-radius: 22px; padding: 18px 16px 16px; box-shadow: 0 2px 10px rgba(74, 59, 82, 0.1); }
.heart-list { list-style: none; margin: 0; padding: 0 0 0 4px; max-width: 13rem; }
.heart-list li { position: relative; padding: 3px 0 3px 26px; }
.heart-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 16px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 14S1 9.6 1 5a3.6 3.6 0 0 1 7-1.2A3.6 3.6 0 0 1 15 5c0 4.6-7 9-7 9z' fill='%23e98f98'/%3E%3C/svg%3E") center / contain no-repeat; }
.heart-list a { color: var(--text); text-decoration: none; font-weight: 550; }
.heart-list a:hover { text-decoration: underline; text-decoration-color: var(--apricot); }
.tiny-sheets { position: absolute; right: 14px; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.tiny { display: block; width: 62px; height: 74px; background: #ffffff; border-radius: 4px; box-shadow: 0 3px 8px rgba(74, 59, 82, 0.16); position: relative; }
.tiny::before { content: ""; position: absolute; inset: 18px 10px 10px 10px; background: repeating-linear-gradient(#cdbfd6 0 2px, transparent 2px 9px); }
.tiny-1 { transform: rotate(5deg); background: #fff linear-gradient(90deg, #f5b48b, #f2c14e, #8db79e, #9fb3dd) 10px 7px / 30px 7px no-repeat; }
.tiny-2 { transform: rotate(-3deg); background: #fff linear-gradient(#8fb07e, #8fb07e) 10px 8px / 40px 3px no-repeat; }
.tiny-3 { transform: rotate(4deg); background: #fff linear-gradient(#9fb3dd, #9fb3dd) 10px 8px / 34px 4px no-repeat; }
.bag-card { display: flex; align-items: center; gap: 4px; background: #f3d9ec; border-radius: 22px; padding: 6px 18px 6px 4px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.12rem; box-shadow: 0 2px 10px rgba(74, 59, 82, 0.1); }
.bag-card .f-bag-card { width: 116px; margin: -18px 0 -6px -6px; filter: drop-shadow(0 6px 8px rgba(74, 59, 82, 0.2)); }
.bag-card span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.bag-card span::after { content: " \203A"; text-decoration: none; display: inline-block; margin-left: 4px; }
.bag-card:hover span { text-decoration-color: var(--apricot); text-decoration-thickness: 3px; }

/* under the panels: the country row and the wish line */
.meadow-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 14px 20px; align-items: center; margin-top: 22px; }
@media (max-width: 1100px) { .meadow-foot { grid-template-columns: 1fr; } }
.country-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--band); border-radius: 999px; padding: 10px 20px; box-shadow: 0 2px 8px rgba(74, 59, 82, 0.08); }
@media (max-width: 700px) { .country-row { border-radius: 22px; } }
.cr-title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.cr-globe { width: 28px; height: 28px; color: #5b79a5; }
.cr-list { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 4px 8px; background: #fffaf6; border-radius: 999px; }
.cr-pick { position: relative; display: inline-block; padding: 4px 8px 4px 25px; color: var(--text); text-decoration: none; font-size: 0.86rem; font-weight: 550; border-radius: 999px; white-space: nowrap; }
.cr-pick::before { content: ""; position: absolute; left: 6px; top: 50%; width: 13px; height: 13px; margin-top: -8px; border: 2px solid #8a7a92; border-radius: 50%; background: #ffffff; }
.cr-pick[aria-current="true"]::before { border-color: #4f7a5b; background: #4f7a5b; box-shadow: inset 0 0 0 2.5px #ffffff; }
.cr-pick:hover { background: var(--lilac-tint); }
.wish { position: relative; margin: 0; padding: 12px 26px 12px 28px; background: #fffaf6; border-radius: 22px; font-style: italic; font-size: 0.98rem; line-height: 1.45; box-shadow: 0 2px 8px rgba(74, 59, 82, 0.08); }
.wish::after { content: ""; position: absolute; right: 10px; top: 8px; width: 18px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 14S1 9.6 1 5a3.6 3.6 0 0 1 7-1.2A3.6 3.6 0 0 1 15 5c0 4.6-7 9-7 9z' fill='none' stroke='%23c9566b' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.r-wish { left: -14px; top: -14px; width: 28px; height: 28px; }

/* ---------- home: the panels and questions below ---------- */
.panels { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: var(--radius); padding: 0 24px 22px; box-shadow: var(--soft); overflow: hidden; }
.panel > h2:first-child { margin: 0 -24px 16px; padding: 14px 24px 12px; font-size: 1.4rem; background: var(--lilac-tint); }
.panel-sage > h2:first-child { background: var(--sage-tint); }
.how { list-style: none; counter-reset: how; padding: 0; margin: 0; }
.how li { counter-increment: how; position: relative; padding: 2px 0 16px 56px; }
.how li::before { content: counter(how); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: #cfe0c9; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }
.faq-band { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px 30px; align-items: start; margin-top: 30px; }
.faq-art .f-faq { width: 100%; filter: drop-shadow(0 12px 16px rgba(74, 59, 82, 0.18)); }
@media (max-width: 760px) { .faq-band { grid-template-columns: 1fr; } .faq-art { width: 170px; margin: 0 auto -18px; position: relative; z-index: 1; } }
.faqs details { border-bottom: 1.5px solid var(--line); padding: 10px 0; }
.faqs details:last-child { border-bottom: 0; }
.faqs summary { font-weight: 650; cursor: pointer; }
.faqs summary::marker { color: #9c80bd; }
.faqs p { margin: 8px 0 4px; }

/* ---------- chips and tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { display: inline-block; background: #fffaf6; border: 1.5px solid #e3d8e4; border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 0.92rem; color: var(--text); text-decoration: none; }
.chip:hover, .chip.is-current { background: #cfe0c9; border-color: #b5ccad; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; line-height: 1.3; padding: 2px 9px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); margin-right: 4px; }

/* ---------- the sheet of paper ---------- */
.paper { background: #fffdf9; color: #2f2535; border-radius: 6px; box-shadow: 0 1px 0 #e9dfd2, 0 10px 24px rgba(74, 59, 82, 0.16); padding: 26px 28px; font-size: 13.5px; line-height: 1.42; }
.bp-plan { --ink: #2f2535; --accent: #5e8d68; --soft: #f3ecdf; --icon-fill: #f5c7a5; color: var(--ink); font-family: var(--sans); }
.bp-plan h2, .bp-plan h3 { color: var(--ink); }
.bp-title { font-family: var(--display); font-weight: 700; font-size: 2em; line-height: 1.05; margin: 0 0 4px; letter-spacing: 0; color: var(--ink); }
.bp-type { margin: 0 0 10px; font-weight: 600; color: #3f6a4c; }
.bp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; margin: 0 0 10px; }
.bp-field { display: flex; gap: 6px; min-width: 0; }
.bp-field dt { font-weight: 700; white-space: nowrap; }
.bp-field dt::after { content: ":"; }
.bp-field dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bp-key { grid-template-columns: 1fr; background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.bp-key .bp-field { display: block; }
.bp-body { columns: 2; column-gap: 22px; }
.bp-sec { break-inside: avoid; margin: 0 0 10px; }
.bp-sec h3 { font-family: var(--display); font-weight: 700; font-size: 1.12em; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.bp-sec-icon { width: 22px; height: 22px; flex: none; }
.bp-lines { margin: 0; padding-left: 1.1em; }
.bp-lines li { margin: 0 0 2px; }
.bp-lines li::marker { color: var(--accent); }
.bp-closing { margin: 10px 0 0; font-style: italic; border-top: 1.5px solid var(--accent); padding-top: 6px; }
.bp-empty { color: #5b5346; font-style: italic; }
.bp-notes p { margin: 0; }
/* meadow: colour. On screen it gets the board's look: the title between sprigs, the birth in a sage pill, lilac
   section heads and green ticks; the printed sheet keeps the plain rules below so it stays on one page */
.bp-meadow .bp-head { border-left: 6px solid var(--accent); padding-left: 12px; }
@media screen {
  .bp-meadow .bp-head { border-left: 0; padding-left: 0; text-align: center; }
  .bp-meadow .bp-title { display: inline-block; padding: 0 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24'%3E%3Cpath d='M2 22C10 16 20 10 32 4' stroke='%237f9f6c' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cg fill='%238fb07e'%3E%3Cellipse cx='10' cy='12' rx='6' ry='2.8' transform='rotate(-70 10 12)'/%3E%3Cellipse cx='17' cy='8' rx='6' ry='2.8' transform='rotate(-70 17 8)'/%3E%3Cellipse cx='24' cy='4' rx='5' ry='2.5' transform='rotate(-70 24 4)'/%3E%3Cellipse cx='16' cy='17' rx='6' ry='2.8' transform='rotate(10 16 17)'/%3E%3Cellipse cx='24' cy='12' rx='5' ry='2.5' transform='rotate(10 24 12)'/%3E%3C/g%3E%3C/svg%3E") left center / 32px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24'%3E%3Cg transform='matrix(-1 0 0 1 34 0)'%3E%3Cpath d='M2 22C10 16 20 10 32 4' stroke='%237f9f6c' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cg fill='%238fb07e'%3E%3Cellipse cx='10' cy='12' rx='6' ry='2.8' transform='rotate(-70 10 12)'/%3E%3Cellipse cx='17' cy='8' rx='6' ry='2.8' transform='rotate(-70 17 8)'/%3E%3Cellipse cx='24' cy='4' rx='5' ry='2.5' transform='rotate(-70 24 4)'/%3E%3Cellipse cx='16' cy='17' rx='6' ry='2.8' transform='rotate(10 16 17)'/%3E%3Cellipse cx='24' cy='12' rx='5' ry='2.5' transform='rotate(10 24 12)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") right center / 32px no-repeat; }
  .bp-meadow .bp-type { display: block; background: #dfe9d6; color: #2f2535; border-radius: 999px; padding: 4px 14px; font-style: italic; font-weight: 500; }
  .bp-meadow .bp-fields { text-align: left; }
  .bp-meadow .bp-sec h3 { border-bottom: 0; background: var(--lilac-tint); border-radius: 8px; padding: 3px 10px 3px 6px; }
  .bp-meadow .bp-lines { list-style: none; padding-left: 0; }
  .bp-meadow .bp-lines li { position: relative; padding-left: 20px; }
  .bp-meadow .bp-lines li::before { content: ""; position: absolute; left: 3px; top: 0.3em; width: 10px; height: 5px; border-left: 2.5px solid #4f7a5b; border-bottom: 2.5px solid #4f7a5b; transform: rotate(-48deg); }
  .bp-meadow .bp-closing { border-top: 0; text-align: center; background: #f3ecdf; border-radius: 10px; padding: 6px 10px; }
}
/* simple: black and white, saves ink */
.bp-simple { --accent: #2f2535; --soft: #f1f1f1; --icon-fill: #ffffff; }
.bp-simple .bp-type { color: var(--ink); }
/* visual: icon tiles */
.bp-visual .bp-body { columns: 1; }
.bp-tiles { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.bp-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; border: 1.5px solid #e2d6e6; border-radius: 10px; padding: 6px 4px; font-size: 0.86em; line-height: 1.15; font-weight: 600; background: #fffaf6; }
.bp-tile .bp-icon { width: 34px; height: 34px; color: var(--ink); }
.bp-icon .f { fill: var(--icon-fill); }
/* blank templates */
.bp-blank .bp-fields { grid-template-columns: 1fr 1fr; }
.bp-blank .bp-field { display: block; }
.bp-blank .bp-field dd { border-bottom: 1px solid #9a9080; height: 1.5em; }
.bp-blank .bp-long { grid-column: 1 / -1; }
.bp-blank .bp-long dd { height: 3em; }
.bp-q { font-weight: 700; margin: 6px 0 2px; }
.bp-q span { font-weight: 400; color: #5b5346; }
.bp-boxes { list-style: none; margin: 0; padding: 0; }
.bp-boxes li { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 2px; }
.bp-box { flex: none; width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 2px; margin-top: 3px; }
.bp-write { height: 5em; border-bottom: 1px solid #9a9080; background: repeating-linear-gradient(transparent 0 1.45em, #d9cbb8 1.45em calc(1.45em + 1px)); }
@media (max-width: 600px) { .paper { padding: 16px; font-size: 12.5px; } .bp-body { columns: 1; } .bp-fields { grid-template-columns: 1fr; } .bp-meadow .bp-title { padding: 0 34px; background-size: 26px, 26px; } }

/* ---------- templates ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 18px; }
@media (min-width: 900px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tpl-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--card); border-radius: var(--radius); padding: 12px 12px 16px; box-shadow: var(--soft); }
.tpl-card:nth-child(3n + 1) .tpl-thumb { background: var(--lilac-tint); }
.tpl-card:nth-child(3n + 2) .tpl-thumb { background: var(--sage-tint); }
.tpl-card:nth-child(3n) .tpl-thumb { background: #f8dccb; }
.tpl-card:hover { background: #ffffff; }
.tpl-card:hover .tpl-name { text-decoration: underline; text-decoration-color: var(--apricot); text-decoration-thickness: 3px; }
.tpl-thumb { display: block; height: 190px; overflow: hidden; border-radius: 14px; position: relative; margin-bottom: 12px; }
.tpl-thumb .paper.mini { position: absolute; top: 14px; left: 50%; width: 560px; transform: translateX(-50%) scale(0.4) rotate(-1.5deg); transform-origin: top center; pointer-events: none; }
.tpl-name { font-family: var(--display); font-weight: 700; font-size: 1.24rem; line-height: 1.2; padding: 0 4px; }
.tpl-blurb { color: var(--muted); font-size: 0.93rem; line-height: 1.45; margin-top: 4px; padding: 0 4px; }
.tpl-open { text-align: center; background: transparent; padding: 0; margin: 0 0 24px; }
.tpl-open .btn { position: relative; }
.tpl-open .btn::before, .tpl-open .btn::after { content: ""; position: absolute; top: 50%; width: 26px; height: 30px; margin-top: -15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M20 6l-7 4M22 15h-8M20 24l-7-4' stroke='%23f2c14e' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tpl-open .btn::before { left: -38px; transform: scaleX(-1); }
.tpl-open .btn::after { right: -38px; }
.tpl-open .small { margin: 14px auto 0; max-width: 40rem; }
.example { margin: 22px 0; }
.example .paper { max-width: 760px; }
.example figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

/* ---------- facts, words, steps, checklists ---------- */
.facts { padding: 4px 20px; list-style: none; background: var(--card); border-radius: var(--radius); box-shadow: var(--soft); }
.facts li { padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 12px 26px; background: var(--card); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--soft); }
.words dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.words dd { margin: 0; color: var(--muted); }
.steps { padding-left: 0; list-style: none; counter-reset: st; }
.steps > li { counter-increment: st; position: relative; padding: 0 0 6px 58px; }
.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0.6em; width: 42px; height: 42px; border-radius: 50%; background: #cfe0c9; font-family: var(--display); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }
.steps h2 { font-size: 1.32rem; margin: 0.9em 0 0.2em; }
.check { list-style: none; padding: 12px 20px; columns: 2 18rem; column-gap: 28px; background: var(--card); border-radius: 18px; box-shadow: 0 2px 8px rgba(74, 59, 82, 0.08); }
.check li { break-inside: avoid; padding: 3px 0 3px 28px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border: 2px solid #8a7a92; border-radius: 4px; background: #ffffff; }
.print-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 16px; align-items: end; background: var(--card); border-radius: var(--radius); padding: 10px 20px; margin-bottom: 20px; box-shadow: var(--soft); }
#pp-preview .paper { max-width: 820px; }

/* ---------- hospital bag ---------- */
.bag-top { display: grid; grid-template-columns: auto minmax(0, 16rem) auto 1fr; gap: 8px 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px 20px; margin-bottom: 18px; box-shadow: var(--soft); }
.bag-top .bf-label { margin: 0; }
.bag-count { margin: 0; font-weight: 700; color: #3f6a4c; }
@media (max-width: 760px) { .bag-top { grid-template-columns: 1fr; } }
.bag-group { border: 0; border-radius: 18px; background: var(--card); padding: 0 18px 12px; margin: 0 0 14px; box-shadow: 0 2px 8px rgba(74, 59, 82, 0.08); overflow: hidden; }
.bag-group legend { float: left; width: calc(100% + 36px); margin: 0 -18px 8px; padding: 9px 18px 8px; font-family: var(--display); font-weight: 700; font-size: 1.22rem; background: var(--lilac-tint); }
.bag-group:nth-of-type(even) legend { background: var(--sage-tint); }
.bag-group legend + * { clear: both; }
.bag { list-style: none; padding: 0; margin: 0; columns: 2 20rem; column-gap: 26px; }
.bag li { break-inside: avoid; padding: 4px 0; }
.bag label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bag input { width: 20px; height: 20px; margin-top: 3px; accent-color: #4f7a5b; flex: none; }
.bag input:checked + span { text-decoration: line-through; color: var(--muted); }

/* ---------- article pages: the sky head with its felt scene, soft panels below ---------- */
.article-wrap { position: relative; max-width: 1240px; padding-top: 0; }
.crumbs { position: absolute; z-index: 3; top: calc(var(--hdr) + 18px); left: 24px; right: 24px; margin: 0; font-size: 0.88rem; color: var(--text); }
.crumbs a { color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .crumbs { left: 16px; } }
.page-head { position: relative; isolation: isolate; max-width: none; margin: 0 calc(50% - 50vw) 34px; padding: calc(var(--hdr) + 56px) max(24px, calc(50vw - 596px)) 96px; background: linear-gradient(180deg, rgba(230, 232, 218, 0) calc(100% - 44px), var(--bg) 100%), url("/img/felt/hills-low.webp") center bottom / max(1400px, 100%) auto no-repeat, linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 150px, var(--sky-3) 320px, var(--sky-4) 100%); }
.page-head::after { content: ""; position: absolute; z-index: -1; left: 40%; top: 74px; width: 260px; height: 95px; background: url("/img/felt/cloud-a.webp") center / contain no-repeat; opacity: 0.85; }
.page-head h1 { color: var(--text); font-size: clamp(2.2rem, 4.6vw, 3.7rem); margin-top: 0; }
.page-head .lede { color: var(--text); font-size: 1.16rem; line-height: 1.5; max-width: 34em; }
.page-head .byline, .page-head .byline a { color: var(--text); font-size: 0.86rem; }
.page-head.has-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 10px 40px; align-items: center; }
.page-head-art { width: auto; position: relative; z-index: 1; }
.page.has-toc .page-head { grid-column: 1 / -1; }
@media (min-width: 1100px) { .page.has-toc { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 48px; } }
.page-body { max-width: 820px; }
.page-body > h2 { display: inline-block; font-size: 1.42rem; margin: 1.6em 0 0.6em; padding: 7px 18px 6px; border-radius: 14px; background: var(--lilac-tint); }
.page-body > h2:nth-of-type(even) { background: var(--sage-tint); }
.page-body > ul:not([class]) { list-style: none; padding: 12px 20px; background: var(--card); border-radius: 18px; box-shadow: 0 2px 8px rgba(74, 59, 82, 0.08); }
.page-body > ul:not([class]) li { position: relative; padding: 4px 0 4px 28px; }
.page-body > ul:not([class]) li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 11px; height: 6px; border-left: 3px solid #4f7a5b; border-bottom: 3px solid #4f7a5b; transform: rotate(-48deg); }
.page-body .faqs { background: var(--card); border-radius: var(--radius); padding: 6px 22px; box-shadow: var(--soft); }
.toc { background: var(--card); border: 0; border-radius: 18px; box-shadow: 0 2px 8px rgba(74, 59, 82, 0.08); }
.toc-title { font-family: var(--display); font-weight: 700; }
.toc a { color: var(--text); }
@media (max-width: 760px) {
  .page-head { padding: calc(var(--hdr) + 46px) 16px 70px; background-size: auto, 900px auto, auto; }
  .crumbs { top: calc(var(--hdr) + 8px); }
  .page-head.has-art { grid-template-columns: 1fr; }
  .page-head::after { left: auto; right: -40px; top: 40px; width: 170px; }
  .page-head h1 { font-size: 2.3rem; }
  .page-head .lede { font-size: 1.04rem; }
}

/* the felt scenes in the page heads */
.scene { position: relative; aspect-ratio: 470 / 330; max-width: 470px; margin: 0 auto; }
.scene .felt { position: absolute; filter: drop-shadow(0 8px 12px rgba(74, 59, 82, 0.2)); }
.scene .f-bed { left: 0; right: 0; bottom: 4%; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(74, 59, 82, 0.2)); }
.mini-sheet { position: absolute; left: 13%; top: 11%; width: 52%; padding: 5% 5% 3%; background: #fffdf9; border-radius: 5px; box-shadow: 0 8px 18px rgba(74, 59, 82, 0.2); transform: rotate(-4deg); color: #4a3b52; z-index: 2; }
.ms-title { font-family: var(--display); font-weight: 700; font-size: clamp(0.98rem, 1.9vw, 1.32rem); line-height: 1.08; text-align: center; margin: 0 0 6px; }
.ms-ticks, .ms-boxes { list-style: none; margin: 0; padding: 0; font-size: clamp(0.66rem, 1.15vw, 0.82rem); line-height: 1.3; }
.ms-ticks li, .ms-boxes li { position: relative; padding: 2px 0 3px 22px; }
.ms-ticks li::before { width: 12px; height: 12px; top: 0.2em; }
.ms-ticks li::after { left: 3px; top: 0.3em; width: 8px; height: 4px; border-width: 0 0 2.5px 2.5px; }
.ms-boxes li::before { content: ""; position: absolute; left: 0; top: 0.22em; width: 12px; height: 12px; border: 2px solid #8a7a92; border-radius: 3px; background: #ffffff; }
.mini-sheet .ms-sprig { height: 16px; }
.scene .f-bunny { width: 27%; right: 4%; bottom: 0; z-index: 3; }
.scene .f-globe { width: 27%; right: 5%; bottom: 4%; z-index: 3; }
.scene .f-tea-s { width: 28%; right: 4%; bottom: 4%; z-index: 3; }
.scene .f-lav-s { width: 20%; right: 9%; top: 24%; z-index: 3; transform: rotate(12deg); }
.scene .f-booties-s { width: 36%; right: 2%; bottom: 6%; z-index: 3; }
.scene-bag .f-bag { width: 58%; left: 8%; bottom: 10%; z-index: 2; }
.scene-bag .f-hat-s { width: 26%; right: 6%; top: 4%; z-index: 3; transform: rotate(12deg); }
.scene-bag .f-booties-s { width: 36%; right: 0; bottom: 4%; }
.scene-moon { aspect-ratio: 470 / 400; max-width: 360px; }
.scene-moon .f-mooncloud { width: 100%; left: 0; top: 0; }

/* the 404: the kit draws it without a page head, so it gets its own sky */
.article-wrap > .page:not(:has(.page-head)) { margin: 0 calc(50% - 50vw); padding: calc(var(--hdr) + 40px) max(24px, calc(50vw - 596px)) 230px; min-height: 520px; background: url("/img/felt/moon-cloud.webp") right max(24px, calc(50vw - 560px)) top calc(var(--hdr) + 10px) / 280px auto no-repeat, url("/img/felt/hills-low.webp") center bottom / max(1400px, 100%) auto no-repeat, linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 150px, var(--sky-3) 320px, var(--sky-4) 100%); }
@media (max-width: 760px) { .article-wrap > .page:not(:has(.page-head)) { background-size: 150px auto, 900px auto, auto; padding-top: calc(var(--hdr) + 150px); background-position: right 16px top calc(var(--hdr) + 6px), center bottom, 0 0; } }

/* ---------- footer: the hills, then the soft sage ground ---------- */
.site-footer { position: relative; background: url("/img/felt/hills-low.webp") center top / max(1400px, 100%) auto no-repeat, linear-gradient(180deg, transparent 0, transparent 150px, #d7dfc8 150px); color: var(--text); margin-top: 60px; padding-top: 180px; font-size: 0.92rem; border: 0; }
.site-footer a, .site-footer h2, .site-footer h3, .site-footer p { color: var(--text); }
.footer-col h2 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; }
.site-footer .small, .site-footer .footer-note, .footer-legal p { color: var(--text); }
.footer-legal::before { border-color: #bfc9ae; }
@media (max-width: 760px) { .site-footer { background-size: 900px auto, auto; padding-top: 140px; background-image: url("/img/felt/hills-low.webp"), linear-gradient(180deg, transparent 0, transparent 100px, #d7dfc8 100px); } }

/* ---------- print: only the sheet ---------- */
@media print {
  @page { margin: 11mm; }
  body { background: #ffffff; font-size: 10.5pt; }
  .site-header, .site-footer, .hero, .sky, .bf, .b-form, .b-aside, .bp-actions, .bp-styles, .ribbon, .bp-jump, .meadow-foot, .panels, .faq-band, .band, .page-head, .crumbs, .tpl-open, .print-pick, .toc, .faqs, .bp-status, .bp-privacy, noscript { display: none !important; }
  body.printing-plan main > *:not(.wrap):not(.meadow), body.printing-plan .bp-side > .bp-sticky > *:not(.bp-stage), body.printing-plan .page-body > *:not(.bp-preview):not(.example) { display: none !important; }
  body.printing-plan .article-wrap > *:not(article) { display: none !important; }
  .meadow, .meadow-in, .bp-sticky { padding: 0; margin: 0; background: none; box-shadow: none; border: 0; border-radius: 0; }
  .builder, .bp-stage { display: block; margin: 0; }
  .bp-preview { max-height: none; overflow: visible; }
  .paper { box-shadow: none; padding: 0; font-size: 10pt; border-radius: 0; background: #ffffff; }
  .bp-plan { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bag-top button, .bag-top select { display: none; }
  .bag-group legend { float: none; width: auto; margin: 0; background: none; }
  .bp-visual .bp-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
  .bp-visual .bp-tile { padding: 3px 2px; font-size: 0.8em; gap: 1px; }
  .bp-visual .bp-tile .bp-icon { width: 24px; height: 24px; }
  .bp-visual .bp-sec { margin-bottom: 6px; }
  .bp-visual .bp-sec h3 { font-size: 1.05em; }
  .bp-blank { font-size: 8.6pt; line-height: 1.3; }
  .bp-blank .bp-body { columns: 3; column-gap: 14px; }
  .bp-blank .bp-title { font-size: 1.7em; }
  .bag-group { break-inside: avoid; }
}
