/* Chore Chart Maker — site styles.
   Look: warm cream paper, ink navy, sunny yellow as the brand, five playful accents. Headings Bricolage Grotesque,
   text Inter, charts Patrick Hand (a friendly print hand that young readers can read).
   Chore pictures are inline two-tone SVG: .f tint fill, .s ink outline, .k ink dots, .w white. */
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Patrick"; src: url(/fonts/patrick.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #FFF7EA; --bg2: #FFEFD3; --paper: #FFFFFF; --ink: #22263A; --ink2: #3A3F57; --muted: #62677D; --line: rgba(34, 38, 58, .12); --line2: rgba(34, 38, 58, .2);
  --sun: #FFC53D; --sun2: #FFE7A3; --coral: #FF6B4F; --teal: #12A38A; --sky: #4DA8F0; --berry: #E0528C; --lilac: #9B7BEA; --mint: #BFEBDD;
  --accent: #F2552F; --accent-ink: #FFFFFF; --focus: #2F6FE0;
  --r: 22px; --r2: 30px; --sh: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -22px rgba(64, 42, 10, .35), 0 2px 6px rgba(64, 42, 10, .06);
  --display: "Bricolage", ui-rounded, system-ui, sans-serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --hand: "Patrick", "Bricolage", system-ui, sans-serif;
  --tint: #FFE7A3; --cink: #22263A;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vw 40vw at 100% 0, rgba(255, 197, 61, .22), transparent 70%), radial-gradient(50vw 40vw at 0 30%, rgba(77, 168, 240, .08), transparent 70%); }
img, svg { display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 12px; }
.ui { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* two-tone pictures */
.ci { width: 40px; height: 40px; flex: none; overflow: visible; }
.ci .f { fill: var(--tint); }
.ci .s { fill: none; stroke: var(--cink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ci .k { fill: var(--cink); }
.ci .w { fill: #fff; }

/* type */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 750; }
h1 { font-size: clamp(42px, 6.4vw, 82px); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
em { font-style: normal; }
h1 em, h2 em { position: relative; z-index: 0; white-space: nowrap; }
h1 em::after, h2 em::after { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .04em; height: .36em; border-radius: .2em; background: var(--sun); transform: rotate(-1.2deg); opacity: .9; }
h2 em::after { height: .3em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink2); max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  background: #fff; padding: 9px 14px 9px 11px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(64, 42, 10, .3); }
.eyebrow .ui { width: 17px; height: 17px; }
.eyebrow .eb { width: 22px; height: 22px; margin: -4px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; padding: 14px 22px; border-radius: 16px;
  background: var(--ink); color: #fff; font: 650 16px/1 var(--sans); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s, background .2s; box-shadow: 0 10px 20px -12px rgba(34, 38, 58, .7); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 26px -14px rgba(242, 85, 47, .9), 0 0 0 1px rgba(0, 0, 0, .04) inset; }
.btn.lg { padding: 18px 28px; font-size: 18px; border-radius: 18px; }
.btn.sm { padding: 10px 16px; font-size: 15px; border-radius: 13px; }
.linkbtn { border: 0; background: none; padding: 6px 0; color: var(--accent); font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 247, 234, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.logo svg { width: 38px; height: 38px; transform: rotate(-6deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover svg { transform: rotate(6deg) scale(1.05); }
.logo b { color: var(--accent); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 14px; border-radius: 12px; font-weight: 550; font-size: 15.5px; color: var(--ink2); }
.nav a:not(.btn):hover, .nav a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; border: 0; background: #fff; width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 0 0 1px var(--line); place-items: center; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 70px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--sh), 0 0 0 1px var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px; font-size: 17px; }
  .nav .btn { margin: 6px 0 0; padding: 15px; }
}

/* hero */
.hero { position: relative; padding: clamp(40px, 7vw, 86px) 0 clamp(24px, 3vw, 36px); text-align: center; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin: 22px auto 18px; max-width: 12em; }
.hero .lead { margin: 0 auto; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-weight: 600; font-size: 15.5px; color: var(--ink2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ui { color: var(--teal); stroke-width: 2.6; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art .ci { position: absolute; width: clamp(60px, 7vw, 96px); height: auto; filter: drop-shadow(0 12px 14px rgba(64, 42, 10, .18)); }
.hero-art .h1i { left: 5%; top: 22%; transform: rotate(-10deg); --tint: #CDE8FF; }
.hero-art .h2i { right: 6%; top: 18%; transform: rotate(9deg); --tint: #FFD3C9; }
.hero-art .h3i { left: 10%; bottom: 6%; transform: rotate(12deg); --tint: var(--sun); width: clamp(48px, 5vw, 70px); }
.hero-art .h4i { right: 10%; bottom: 4%; transform: rotate(-8deg); --tint: var(--mint); }
@media (max-width: 1000px) { .hero-art { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ci { animation: bob 7s ease-in-out infinite; }
  .hero-art .h2i { animation-delay: -2s; } .hero-art .h3i { animation-delay: -4s; } .hero-art .h4i { animation-delay: -5.5s; }
}
@keyframes bob { 50% { translate: 0 -10px; } }

/* page head */
.phead { padding: clamp(28px, 5vw, 60px) 0 clamp(16px, 2.5vw, 28px); }
.phead h1 { font-size: clamp(36px, 5.2vw, 64px); margin: 18px 0 16px; max-width: 16em; }
.crumbs { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta .ui { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- the maker */
.tool-sec { padding: 8px 0 clamp(30px, 4vw, 50px); }
.maker { position: relative; background: var(--paper); border-radius: var(--r2); box-shadow: var(--sh), 0 0 0 1px var(--line); padding: clamp(18px, 3.4vw, 40px); min-height: 560px; }
.maker::before { content: ""; position: absolute; left: 50%; top: -14px; width: 120px; height: 28px; translate: -50% 0; rotate: -2deg; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px), var(--sun); opacity: .92; box-shadow: 0 4px 8px -4px rgba(64, 42, 10, .3); }
.maker.done { padding: clamp(14px, 2.4vw, 28px); min-height: 0; }
.skel { display: grid; gap: 18px; }
.skel > div, .sk-grid i { background: linear-gradient(90deg, #F6EEDF, #FBF6EC, #F6EEDF); background-size: 200% 100%; border-radius: 14px; }
@media (prefers-reduced-motion: no-preference) { .skel > div, .sk-grid i { animation: sk 1.4s linear infinite; } }
@keyframes sk { to { background-position: -200% 0; } }
.sk-tabs { height: 46px; } .sk-q { height: 44px; width: 60%; margin: 10px auto 0; } .sk-h { height: 20px; width: 40%; margin: 0 auto; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; background: none !important; }
.sk-grid i { height: 150px; }
.nojs { text-align: center; color: var(--muted); }

.wz-tabs { list-style: none; padding: 0; margin: 0 0 28px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.wz-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
.wz-tab b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); font: 700 14px/1 var(--sans); color: var(--ink2); box-shadow: 0 0 0 1px var(--line) inset; }
.wz-tab[aria-current] { background: var(--ink); color: #fff; }
.wz-tab[aria-current] b { background: var(--sun); color: var(--ink); box-shadow: none; }
.wz-tab:disabled { opacity: .45; cursor: default; }
.wz-tab:not(:disabled):not([aria-current]):hover { background: var(--bg); color: var(--ink); }
@media (max-width: 640px) { .wz-tab span { display: none; } .wz-tab { padding: 4px; } .wz-tab[aria-current] span { display: inline; } .wz-tab[aria-current] { padding-right: 14px; } }
.wz-panel { max-width: 920px; margin: 0 auto; }
.wz-q { text-align: center; font-size: clamp(28px, 3.6vw, 42px); outline: none; }
.wz-h { text-align: center; color: var(--muted); margin: 10px auto 28px; max-width: 34em; }
.wz-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 34px; }
.wz-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--bg); padding: 16px 20px; border-radius: 16px; font-weight: 600; cursor: pointer; }
.wz-back:hover { background: var(--bg2); }
.wz-nav > span:empty { display: none; }
.wz-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.wz-note .ui { width: 16px; height: 16px; }

/* option cards */
.opts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.opts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; }
.opts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .opts.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .opts.c2 { grid-template-columns: minmax(0, 1fr); } }
.opt { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px 18px; border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--bg); box-shadow: 0 0 0 1.5px transparent inset; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, background .2s; }
.opt:hover { transform: translateY(-3px); background: #FFF2DB; }
.opt[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 2.5px var(--ink) inset, 0 14px 24px -16px rgba(34, 38, 58, .55); }
.opt[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.oi { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: #fff; margin-bottom: 8px; box-shadow: 0 0 0 1px var(--line); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.opt:hover .oi, .opt[aria-pressed="true"] .oi { transform: rotate(-6deg) scale(1.05); }
.opt[aria-pressed="true"] .oi { background: var(--sun2); box-shadow: none; }
.oi .ci { width: 48px; height: 48px; }
.ot { font: 700 18px/1.2 var(--display); letter-spacing: -.01em; }
.opt small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.sub { margin-top: 26px; text-align: center; }
.sub-q { font-weight: 650; margin: 0 0 12px; text-align: center; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 15px; background: var(--bg); box-shadow: 0 0 0 1px var(--line) inset; }
.seg button { border: 0; background: none; padding: 10px 18px; border-radius: 11px; cursor: pointer; font-weight: 600; font-size: 15.5px; min-width: 52px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg.sm button { padding: 7px 12px; font-size: 14px; }

/* kids */
.kids { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.kid { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; background: var(--bg); }
.kid-av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #fff; flex: none; }
.kid:nth-child(6n+1) .kid-av { --tint: var(--sun2); } .kid:nth-child(6n+2) .kid-av { --tint: #CDE8FF; } .kid:nth-child(6n+3) .kid-av { --tint: #FFD3C9; }
.kid:nth-child(6n+4) .kid-av { --tint: var(--mint); } .kid:nth-child(6n+5) .kid-av { --tint: #E6DBFF; } .kid:nth-child(6n) .kid-av { --tint: #FFD6E7; }
.kid-av .ci { width: 38px; height: 38px; }
.kid-name, .age, .fields input, .fields select, .own input { font: 500 17px/1.2 var(--sans); color: var(--ink); background: #fff; border: 0; border-radius: 13px; box-shadow: 0 0 0 1.5px var(--line2) inset; padding: 14px 15px; min-height: 52px; }
.kid-name { flex: 1; min-width: 0; }
.age { width: 112px; flex: none; appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2322263A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; }
.kid-name:focus, .age:focus, .fields input:focus, .fields select:focus, .own input:focus { outline: none; box-shadow: 0 0 0 2.5px var(--ink) inset; }
.kid-rm { border: 0; background: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.kid-rm:hover { background: #fff; color: var(--accent); }
.add-kid { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; width: min(640px, 100%); padding: 16px; border-radius: 20px; border: 2px dashed var(--line2); background: none; font-weight: 650; cursor: pointer; color: var(--ink2); }
.add-kid:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }
@media (max-width: 480px) { .kid { flex-wrap: wrap; } .kid-name { flex-basis: calc(100% - 64px); } .age { flex: 1; } }

/* chores */
.ktabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: -6px 0 18px; }
.ktabs button { border: 0; background: var(--bg); border-radius: 999px; padding: 9px 16px; font-weight: 650; cursor: pointer; }
.ktabs button small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: #fff; font-size: 12.5px; margin-left: 4px; }
.ktabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.ktabs button[aria-selected="true"] small { background: var(--sun); color: var(--ink); }
.cnt { text-align: center; font-weight: 650; color: var(--teal); margin: -10px 0 16px; }
.cnt.warn { color: var(--accent); }
.own { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 22px; }
.own input { flex: 1; min-width: 0; }
.own button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--ink); color: #fff; padding: 0 18px; border-radius: 13px; font-weight: 650; cursor: pointer; }
.cg { margin-bottom: 20px; }
.cg h4 { font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border: 0; border-radius: 16px; background: var(--bg); cursor: pointer; font-weight: 550; font-size: 15.5px; line-height: 1.2; text-align: left;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .15s, box-shadow .15s; }
.chip .ci { width: 38px; height: 38px; padding: 3px; border-radius: 12px; background: #fff; --tint: #EFE7D8; }
.chip i { display: none; }
.chip:hover { transform: translateY(-2px); background: #FFF2DB; }
.chip.sug { box-shadow: 0 0 0 1.5px rgba(255, 197, 61, .9) inset; }
.chip.sug::before { content: "★"; position: absolute; top: -7px; left: -5px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; color: var(--ink); background: var(--sun); border-radius: 50%; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; padding-right: 10px; }
.chip[aria-pressed="true"] .ci { --tint: var(--sun); }
.chip[aria-pressed="true"] i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); }
.chip[aria-pressed="true"] i .ui { width: 14px; height: 14px; stroke-width: 3; color: #fff; }
.wz-panel .linkbtn { display: block; margin: 6px auto 0; }

/* reward & goal fields */
.fields { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
.fields.col { flex-direction: column; align-items: stretch; max-width: 560px; margin-inline: auto; }
.fields label { display: grid; gap: 6px; font-weight: 650; font-size: 15px; }
.fields label.grow { flex: 1; min-width: 220px; }
.num { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 13px; box-shadow: 0 0 0 1.5px var(--line2) inset; padding: 4px; }
.num button { border: 0; background: var(--bg); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.num output { min-width: 44px; text-align: center; font: 700 22px/1 var(--display); }
.money { display: flex; gap: 6px; }
.money select { width: 84px; }
.money input { width: 110px; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.idea { border: 0; background: var(--bg); border-radius: 999px; padding: 8px 13px; font-size: 14.5px; font-weight: 550; cursor: pointer; }
.idea:hover { background: var(--sun2); }

/* style step */
.themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme { border: 0; border-radius: 20px; padding: 10px 10px 12px; background: var(--bg); cursor: pointer; display: grid; gap: 8px; font-weight: 650; font-size: 15px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.theme:hover { transform: translateY(-3px); }
.theme[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 2.5px var(--ink) inset; }
.sw { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 66px; }
.sw i { border-radius: 9px; }
.sw i:first-child { grid-row: span 2; background: var(--t1); } .sw i:nth-child(2) { background: var(--t2); box-shadow: 0 0 0 1px var(--line) inset; } .sw i:nth-child(3) { background: var(--t3); }
.toggles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 26px; }
.sw-l { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.sw-l input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--line2); transition: background .2s; flex: none; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.sw-l input:checked + .tg { background: var(--teal); }
.sw-l input:checked + .tg::after { transform: translateX(20px); }
.sw-l input:focus-visible + .tg { outline: 3px solid var(--focus); outline-offset: 2px; }

/* themes (chart palettes) */
.th-sunny { --t1: #FFC53D; --t2: #FFF4D1; --t3: #FF6B4F; --tint: #FFE29A; }
.th-ocean { --t1: #3E9EEA; --t2: #E3F2FF; --t3: #12A38A; --tint: #BFE0FF; }
.th-garden { --t1: #3DB56E; --t2: #E5F7EA; --t3: #FFB020; --tint: #BDEBCB; }
.th-berry { --t1: #E0528C; --t2: #FDE7F0; --t3: #9B7BEA; --tint: #FFC7DC; }
.th-space { --t1: #3E4290; --t2: #ECEDFB; --t3: #FFC53D; --tint: #CFD2FF; }
.th-simple { --t1: #22263A; --t2: #F3F3F1; --t3: #22263A; --tint: #E7E7E4; }

/* ---------------------------------------------------------------- output */
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.bar-l, .bar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.act { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 11px 16px; border-radius: 14px; background: var(--bg); font-weight: 650; font-size: 15.5px; cursor: pointer; }
.act:hover { background: var(--bg2); }
.act.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 22px -14px rgba(242, 85, 47, .9); }
.act.ic { padding: 11px; }
.tip { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #FFF6DD; font-size: 15px; color: var(--ink2); }
.tip .ui { color: #E2A20F; fill: var(--sun); }
.sheets { display: grid; gap: 22px; }

/* a sheet: landscape page on screen */
.sheet { position: relative; overflow: hidden; container-type: inline-size; background: #fff; border-radius: 18px; padding: 3.2cqi 3.4cqi 2.4cqi; box-shadow: 0 0 0 1px var(--line), 0 20px 34px -24px rgba(64, 42, 10, .45);
  --cink: #22263A; font-family: var(--hand); color: var(--ink); }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1.6cqi; background: var(--t1); }
.deco { position: absolute; inset: 0; pointer-events: none; }
.deco .ci { position: absolute; width: 6cqi; height: 6cqi; opacity: .9; --tint: var(--t2); }
.deco .d1 { right: 2.6cqi; top: 3.4cqi; transform: rotate(12deg); --tint: var(--t1); }
.deco .d2 { right: 9.6cqi; top: 2.6cqi; width: 4.2cqi; height: 4.2cqi; transform: rotate(-8deg); }
.deco .d3 { right: 15cqi; top: 4cqi; width: 3.4cqi; height: 3.4cqi; --tint: var(--t3); }
.ink .deco { display: none; }
.sh-h { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 2cqi; margin: 1cqi 21cqi 2.2cqi 0; }
.sh-t h3 { font: 400 5.2cqi/1 var(--hand); letter-spacing: 0; color: var(--ink); }
.sh-t p { margin: .8cqi 0 0; font: 400 2.2cqi/1.2 var(--hand); color: var(--muted); }
.sh-week { display: flex; align-items: flex-end; gap: 1cqi; font: 400 1.9cqi/1 var(--hand); color: var(--muted); white-space: nowrap; }
.sh-week i { display: block; width: 14cqi; border-bottom: .18cqi solid var(--line2); }
.grid { width: 100%; border-collapse: separate; border-spacing: .6cqi; table-layout: fixed; margin: -.6cqi; width: calc(100% + 1.2cqi); }
.grid th { font: 400 2.1cqi/1 var(--hand); color: var(--ink); padding: .6cqi 0; }
.grid thead th { background: var(--t1); color: #fff; border-radius: 1.2cqi; padding: 1cqi 0; }
.th-sunny .grid thead th { color: var(--ink); }
.grid thead th.cn { background: none; color: var(--muted); text-align: left; padding-left: 1cqi; }
.grid th.cn { width: 30%; }
.grid tbody th.cn { text-align: left; }
.grid tbody th.cn { padding: 0; font-size: 2.3cqi; line-height: 1.05; }
.cnw { display: flex; align-items: center; gap: 1.2cqi; height: 100%; min-height: 6.2cqi; background: var(--t2); border-radius: 1.2cqi; padding: .5cqi 1.2cqi .5cqi .5cqi; }
.rowi { width: 5cqi; height: 5cqi; background: #fff; border-radius: 1.2cqi; padding: .3cqi; }
.d0 .box { height: 7.6cqi; } .d0 .cnw { min-height: 7.6cqi; font-size: 2.6cqi; } .d0 .rowi { width: 5.8cqi; height: 5.8cqi; }
.d1 .box { height: 5.4cqi; } .d1 .cnw { min-height: 5.4cqi; } .d1 .rowi { width: 4.4cqi; height: 4.4cqi; }
.d2 .box { height: 4.6cqi; } .d2 .cnw { min-height: 4.6cqi; font-size: 2.1cqi; } .d2 .rowi { width: 3.8cqi; height: 3.8cqi; } .d2 .sh-h { margin-bottom: 1.4cqi; } .d2 .sh-t h3 { font-size: 4.4cqi; }
.d3 .box { height: 3.8cqi; border-radius: 1cqi; } .d3 .cnw { min-height: 3.8cqi; font-size: 1.9cqi; padding-block: .2cqi; } .d3 .rowi { width: 3.2cqi; height: 3.2cqi; padding: .15cqi; } .d3 .sh-h { margin-bottom: 1cqi; } .d3 .sh-t h3 { font-size: 3.8cqi; } .d3 .grid { border-spacing: .45cqi; } .d3 .wk li { padding: .4cqi; font-size: 1.9cqi; } .d3 .wk .box { width: 4.6cqi; height: 3.8cqi; }
.grid td { text-align: center; }
.box { position: relative; display: grid; place-items: center; width: 100%; height: 6.2cqi; border: .25cqi dashed var(--line2); border-radius: 1.4cqi; background: #fff; cursor: pointer; padding: 0; }
.box .st { width: 64%; height: 64%; --tint: var(--t1); opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity .15s, transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.box .st .s { stroke: var(--ink); }
.box.on { border-style: solid; border-color: transparent; background: var(--t2); }
.box.on .st { opacity: 1; transform: none; }
.box:hover { border-color: var(--t1); }
.box.pop .st { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { 0% { transform: scale(.2) rotate(-40deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: none; } }
.wk { margin-top: 1.8cqi; }
.wk h4 { font: 400 2.3cqi/1 var(--hand); color: var(--muted); letter-spacing: 0; margin: 0 0 1cqi; }
.wk ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqi; }
.wk li { display: flex; align-items: center; gap: 1cqi; padding: .7cqi; border-radius: 1.4cqi; background: var(--t2); font-size: 2.2cqi; line-height: 1.05; }
.wk .box { width: 6.4cqi; flex: none; height: 5cqi; }
.fam + .fam { margin-top: 1.8cqi; }
.fam-n { display: flex; align-items: center; gap: 1cqi; font: 400 2.8cqi/1 var(--hand); letter-spacing: 0; margin-bottom: .6cqi; }
.family .grid thead th { padding: .6cqi 0; }
.family .cnw { min-height: 4.6cqi; } .family .box { height: 4.6cqi; }
.family .rowi { width: 4cqi; height: 4cqi; }
.sh-f { display: flex; align-items: center; gap: 2cqi; margin-top: 2.2cqi; padding-top: 1.6cqi; border-top: .2cqi dashed var(--line2); }
.rw { display: flex; align-items: center; gap: 1.2cqi; font-size: 2.5cqi; }
.rw b { font-weight: 400; }
.rwi { width: 5.4cqi; height: 5.4cqi; --tint: var(--t1); }
.track { display: flex; flex-wrap: wrap; gap: .5cqi; flex: 1; justify-content: flex-end; }
.track i { width: 2cqi; height: 2cqi; border-radius: 50%; box-shadow: 0 0 0 .18cqi var(--line2) inset; }
.track i.on { background: var(--t1); box-shadow: none; }
.brand { margin-left: auto; font: 600 1.5cqi/1 var(--sans); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.track + .brand { margin-left: 2cqi; }
.cnt-s { font-size: 2.4cqi; color: var(--muted); margin-left: auto; }
.cnt-s + .brand { margin-left: 2cqi; }
/* sticker chart */
.spots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1.6cqi 1.4cqi; }
.sticker.n15 .spots, .sticker.n25 .spots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sticker.n15 .spots { padding: 0 14cqi; }
.sticker.n25 .spots { padding: 0 18cqi; }
.spots li { position: relative; display: grid; justify-items: center; gap: .5cqi; }
.spots .box { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; border-width: .3cqi; }
.sticker.n15 .spots .box, .sticker.n25 .spots .box { width: 72%; }
.spots small { font: 400 1.8cqi/1 var(--hand); color: var(--muted); }
.spots li:nth-child(5n) .box:not(.on) { border-color: var(--t1); border-style: solid; }
.spots .box:not(.on) .st { opacity: .1; transform: none; }
.party .rwi { animation: wiggle .6s ease-in-out 3; }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.2); } 75% { transform: rotate(12deg) scale(1.2); } }
/* routine chart */
.rcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqi; }
.rcol h4 { display: flex; align-items: center; gap: 1cqi; font: 400 3cqi/1 var(--hand); letter-spacing: 0; padding: 1cqi 1.4cqi; border-radius: 1.6cqi; background: var(--t1); color: #fff; margin-bottom: 1.2cqi; }
.th-sunny .rcol h4 { color: var(--ink); }
.rcol h4 .rowi { width: 4.4cqi; height: 4.4cqi; }
.rcol ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1cqi; }
.rcol li { display: flex; align-items: center; gap: 1.2cqi; padding: .8cqi; border-radius: 1.6cqi; background: var(--t2); font-size: 2.4cqi; line-height: 1.05; }
.rcol li span { flex: 1; }
.rpic { width: 6.4cqi; height: 6.4cqi; background: #fff; border-radius: 1.4cqi; padding: .4cqi; }
.rcol .box { width: 5.4cqi; height: 5.4cqi; flex: none; }
/* options */
.nopics .rowi, .nopics .rpic { display: none; }
.ink .sheet::before { height: .5cqi; }
.ink .grid thead th, .ink .rcol h4 { background: none; color: var(--ink); box-shadow: 0 0 0 .2cqi var(--ink) inset; }
.ink .grid tbody th.cn, .ink .wk li, .ink .rcol li { background: #fff; box-shadow: 0 0 0 .15cqi var(--line2) inset; }
.ink .ci { --tint: #fff; }
@media (max-width: 700px) {
  .sheets { overflow-x: auto; margin-inline: -12px; padding: 4px 12px 14px; scroll-snap-type: x proximity; }
  .sheet { min-width: 640px; scroll-snap-align: start; }
  .bar .act span { display: none; } .bar .act.primary span { display: inline; }
  .wz-nav { position: sticky; bottom: 10px; z-index: 5; margin-top: 26px; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgba(34, 38, 58, .5); }
  .wz-nav .btn.lg { flex: 1; padding: 16px; }
  .chip { font-size: 15px; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(46px, 7vw, 92px) 0; }
.sec.tight { padding: clamp(26px, 4vw, 52px) 0; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.sec-h p { color: var(--muted); margin: 8px 0 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: #fff; text-decoration: none; box-shadow: 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 22px 34px -22px rgba(64, 42, 10, .45); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; flex: 1; }
.card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 15px; }
.card:hover .go { color: var(--accent); }
.badge { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 19px; background: var(--bg); margin-bottom: 4px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover .badge { transform: rotate(-8deg) scale(1.06); }
.badge .ci { width: 44px; height: 44px; }
.tint1 { --tint: var(--sun2); } .tint1 .badge, .tint1 .art-top { background: #FFF5D8; }
.tint2 { --tint: #CDE8FF; } .tint2 .badge, .tint2 .art-top { background: #EAF5FF; }
.tint3 { --tint: #FFD3C9; } .tint3 .badge, .tint3 .art-top { background: #FFEEE9; }
.tint4 { --tint: var(--mint); } .tint4 .badge, .tint4 .art-top { background: #E8F8F2; }
.tint5 { --tint: #E6DBFF; } .tint5 .badge, .tint5 .art-top { background: #F3EEFF; }
.tint6 { --tint: #FFD6E7; } .tint6 .badge, .tint6 .art-top { background: #FFF0F6; }
.cta-wide { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--r2); background: var(--ink); color: #fff; text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.cta-wide:hover { transform: translateY(-3px); }
.cta-wide > span:first-child { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--sun); flex: none; --tint: #fff; }
.cta-wide > span:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.cta-wide b { font: 700 22px/1.2 var(--display); }
.cta-wide small { color: rgba(255, 255, 255, .75); font-size: 15px; }
.cta-wide > .ui { width: 26px; height: 26px; }

/* posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 22px 34px -22px rgba(64, 42, 10, .45); }
.art-top { display: grid; place-items: center; height: 150px; }
.art-top .ci { width: 84px; height: 84px; transform: rotate(-6deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.post:hover .art-top .ci { transform: rotate(6deg) scale(1.08); }
.post .bd { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.post h3 { font-size: 20px; line-height: 1.2; }
.post p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; flex: 1; }
.post .m { font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* article */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .art { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink2); }
.prose .lede { font-size: 20px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg2); font-weight: 700; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.tip-box, .prose .tip { display: block; padding: 18px 20px 18px 22px; border-radius: 18px; background: #FFF6DD; border-left: 5px solid var(--sun); }
.prose .tip p { margin: 0; }
.age-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 1.2em 0; }
.al-g { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--line); }
.al-g h4 { font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.al-g ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.al-g li { display: flex; align-items: center; gap: 10px; margin: 0 !important; color: var(--ink); font-weight: 550; font-size: 15.5px; }
.al-g .ci { width: 32px; height: 32px; --tint: var(--sun2); }
.al-g em { margin-left: auto; font-size: 12.5px; font-weight: 650; color: var(--muted); background: var(--bg); padding: 3px 8px; border-radius: 8px; }
.sources { margin-top: 2.4em; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; }
.sources b { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 6px; }
.sources ul { margin: 0; padding-left: 1.2em; }
.toc { position: sticky; top: 96px; font-size: 15px; }
.toc b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--accent); }
.side-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; }
.side-card b { color: var(--sun); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.side-card span { font-weight: 600; line-height: 1.35; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; padding: 20px 22px; font: 650 18px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ui { transition: transform .25s; flex: none; }
.faq details[open] summary .ui { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--ink2); }
.faq .a p { margin: 0; }

/* house ad */
.house { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: center; overflow: hidden; padding: clamp(26px, 4vw, 52px); border-radius: var(--r2);
  background: radial-gradient(80% 120% at 100% 0, rgba(255, 197, 61, .35), transparent 60%), var(--ink); color: #fff; }
.house h2 { color: #fff; margin: 10px 0 12px; }
.house p { color: rgba(255, 255, 255, .78); margin: 0 0 22px; max-width: 32em; }
.house .k { font: 700 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.house .btn { background: var(--sun); color: var(--ink); }
.house .fine { display: block; margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.phone { justify-self: center; width: 230px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 9px; background: #0D0F18; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6), 0 0 0 2px #3a3f57; rotate: 4deg; }
.phone-s { height: 100%; border-radius: 32px; overflow: hidden; padding: 30px 16px; text-align: center; color: #fff; background: linear-gradient(170deg, #E8C79A, #C9925B); }
.phone .dt { font: 600 12px/1 var(--sans); opacity: .9; }
.phone .tm { font: 700 54px/1.05 var(--sans); letter-spacing: -.02em; margin-bottom: 18px; }
.note { display: grid; gap: 5px; text-align: left; padding: 14px 14px 16px; border-radius: 4px; background: #FFE58A; color: #2A2016; font: 400 15px/1.2 var(--hand); rotate: -2deg; box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .4); }
.note b { font-weight: 400; font-size: 19px; }
.note .x { text-decoration: line-through; opacity: .55; }
@media (max-width: 760px) { .house { grid-template-columns: minmax(0, 1fr); } .phone { width: 190px; } }

/* footer */
.foot { margin-top: 40px; padding: 56px 0 34px; background: #fff; border-top: 1px solid var(--line); font-size: 15px; }
.foot-g { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 860px) { .foot-g { grid-template-columns: 1fr 1fr; } .foot-g > div:first-child { grid-column: 1 / -1; } }
.foot p { color: var(--muted); max-width: 26em; }
.foot h4 { font-size: 15px; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; color: var(--ink2); }
.foot ul a:hover { color: var(--accent); }
.foot-b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.doc h2 { margin-top: 1.6em; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- print: only the charts */
@media print {
  body { background: #fff; }
  body::before, .top, .foot, .skip, .hero, .phead, .sec, .bar, .tip, .wz, .maker::before { display: none !important; }
  main > *:not(.tool-sec) { display: none !important; }
  .tool-sec, .tool-sec .wrap, .maker { padding: 0 !important; margin: 0 !important; width: auto !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; min-height: 0 !important; }
  .sheets { display: block; }
  .sheet { break-after: page; page-break-after: always; box-shadow: none; border-radius: 0; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .box { border-style: solid; }
  .box:not(.on) .st { display: none; }
  .spots .box:not(.on) .st { display: block; opacity: .1; }
  .sheet { display: flex; flex-direction: column; }
  .sh-b { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .sh-b.rcols { display: grid; align-content: center; }
  .deco .ci, .box .st { transition: none; animation: none; }
}
.fields.col .seg { align-self: flex-start; } .fields.col .sub-q { text-align: left; margin: 6px 0 -4px; }
