/* Paycheck Planner */
:root {
  color-scheme: light;
  --ink: #18242c; --muted: #55636d; --line: #dde4e9; --paper: #fff; --bg: #f3f6f8; --soft: #eef3f6;
  --accent: #23648a; --accent-dark: #17506e; --accent-soft: #e2eff6; --gold: #8b5a14;
  --good: #1e6b34; --good-bg: #e5f6e9; --good-line: #b9e3c4;
  --warn: #7a5200; --warn-bg: #fdf3df; --warn-line: #f0d9a8;
  --bad: #8a2c1f; --bad-bg: #fbe7e4; --bad-line: #f0bdb4;
  --field: #75848e;   /* form borders: at least 3:1 against white (WCAG 1.4.11) */
  --focus: #b35c00;
  --radius: 12px;
  /* charts (the validated reference palette, slots 1-4, and its chrome) */
  --surface: #fcfcfb; --grid: #e1e0d9; --axis: #c3c2b7; --tick: #6f6d68;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s-gray: #a8a69f;
  --s1-soft: #cde2fb;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #ecebe7; --muted: #b3b1a8; --line: #2f3336; --paper: #1a1a19; --bg: #111314; --soft: #222526;
    --accent: #6fb1d8; --accent-dark: #0f3a52; --accent-soft: #1d3442; --gold: #d9a24a;
    --good: #7fd69a; --good-bg: #16301f; --good-line: #2c5a3a;
    --warn: #f2c66d; --warn-bg: #33270e; --warn-line: #5c4718;
    --bad: #f3a196; --bad-bg: #3a1a16; --bad-line: #6b2d25;
    --field: #7d8a92; --focus: #ffb35c;
    --surface: #1a1a19; --grid: #2c2c2a; --axis: #383835; --tick: #9a988f;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s-gray: #6b6a64;
    --s1-soft: #1c3550;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.btn, .brand, .menu a, .nav a, .nav-out, .tile a, a.card-link { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: #17506e; padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header and menu */
.site-header { background: #17506e; color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a, .nav-out { color: rgba(255,255,255,.92); padding: 7px 10px; border-radius: 8px; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a.active, .nav-out:hover { background: rgba(255,255,255,.15); }
.nav a.cta { background: #c47e1a; color: #1b1203; font-weight: 700; }
.nav a.cta:hover { background: #d99130; }
.menu { background: #134661; }
.switcher select { width: auto; min-height: 34px; padding: 4px 8px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); font-size: .88rem; max-width: 200px; }
.switcher select option { color: #18242c; background: #fff; }
.menu-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu-row::-webkit-scrollbar { display: none; }
.menu a { color: rgba(255,255,255,.88); padding: 10px 12px; font-size: .92rem; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.menu a.active { color: #fff; border-bottom-color: #f0b04a; font-weight: 650; }

main.wrap { padding-top: 22px; padding-bottom: 48px; }
h1 { font-size: 1.65rem; margin: 0 0 10px; line-height: 1.2; } h2 { font-size: 1.18rem; margin: 0 0 12px; line-height: 1.3; } h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.tight { margin-top: 0; margin-bottom: 4px; } .spaced { margin-top: 26px; }
.muted { color: var(--muted); } .small { font-size: .87rem; } .tiny { font-size: .78rem; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; } .grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid { margin-bottom: 16px; }
.grid > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; } .row.gap { gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; gap: 12px; flex-wrap: wrap; } .row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }

/* Messages */
.flash, .alert { border-radius: 10px; padding: 11px 15px; margin-bottom: 16px; font-weight: 500; }
.flash, .alert.ok { background: var(--good-bg); border: 1px solid var(--good-line); color: var(--good); }
.flash.error, .alert.error { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.alert.info { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); }
.alert p { margin: 4px 0 0; font-weight: 400; }

/* Buttons and forms */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); padding: 8px 17px; border-radius: 999px; font-weight: 600; font-size: .93rem; cursor: pointer; font-family: inherit; line-height: 1.3; min-height: 40px; }
@media (prefers-color-scheme: dark) { .btn { color: #0b1e2a; } }
.btn:hover { filter: brightness(1.08); }
.btn.outline { background: transparent; color: var(--accent); }
.btn.outline:hover { background: var(--accent-soft); filter: none; }
.btn.small { padding: 4px 12px; font-size: .84rem; min-height: 30px; } .btn.wide { width: 100%; }
.btn.danger { background: #a33; border-color: #a33; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn:disabled { opacity: .55; cursor: default; }
button.link { background: none; border: 0; padding: 2px 0; min-height: 24px; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 15px; min-width: 0; } legend { font-weight: 600; font-size: .9rem; margin-bottom: 5px; padding: 0; }
.field { margin-bottom: 14px; } .field > label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--field); border-radius: 8px; font: inherit; background: var(--paper); color: var(--ink); min-height: 42px; }
input[inputmode=decimal] { font-variant-numeric: tabular-nums; }
textarea { min-height: 80px; resize: vertical; }
.hint { color: var(--muted); font-size: .84rem; margin: 5px 0 0; }
label.check { display: flex; gap: 8px; align-items: baseline; font-weight: 400; margin: 5px 0; font-size: .94rem; } label.check input { width: auto; flex: none; }
.fields { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.money-input { display: flex; align-items: stretch; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; background: var(--paper); }
.money-input span { padding: 9px 4px 9px 11px; color: var(--muted); background: var(--soft); display: flex; align-items: center; }
.money-input input { border: 0; border-radius: 0; min-width: 0; }
.money-input:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.money-input input:focus-visible { outline: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .84rem; cursor: pointer; min-height: 30px; }
.chip:hover { border-color: var(--accent); }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '▸'; font-size: .8em; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > .more-body { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { details.more > summary::before { transition: none; } }

/* Badges */
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--accent-soft); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.off { background: var(--soft); color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 650; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

/* Figures */
.hero-label { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 0; }
.hero-figure { font-size: 3.1rem; font-weight: 700; line-height: 1.05; margin: 4px 0 6px; letter-spacing: -.01em; }
.hero-figure.bad { color: var(--bad); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.tile .label { font-size: .84rem; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.tile .value { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.tile .sub { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.status { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; margin: 0 0 4px; }
.status + p { margin-top: 0; }
.status-ok { color: var(--good); } .status-warn { color: var(--warn); } .status-bad { color: var(--bad); }

/* Meters: the fill carries the state; the track is a lighter step */
.meter { height: 8px; border-radius: 999px; background: var(--s1-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--s1); min-width: 2px; }
.meter.goal { background: color-mix(in srgb, var(--s3) 22%, var(--paper)); } .meter.goal > span { background: var(--s3); }
.meter.over > span { background: #d03b3b; }
.meter.near > span { background: #c98500; }
.meter-row { margin: 10px 0; }
.meter-row .row.between { font-size: .9rem; margin-bottom: 4px; gap: 8px; flex-wrap: nowrap; }

/* The tall segmented bar: where a paycheck goes */
.segbar { display: flex; gap: 2px; height: 28px; margin: 6px 0 10px; }
.segbar > span { border-radius: 4px; display: flex; align-items: center; padding: 0 7px; font-size: .78rem; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; }
.segbar > span.dark-text { color: #0b0b0b; }
.seg-bills { background: var(--s1); } .seg-spend { background: var(--s2); } .seg-save { background: var(--s3); } .seg-invest { background: var(--s4); }
.seg-gray { background: var(--s-gray); } .seg-extra { background: color-mix(in srgb, var(--s2) 40%, var(--paper)); }
@media (prefers-color-scheme: dark) { .segbar > span.seg-gray, .segbar > span.seg-extra { color: #fff; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .key { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .key.line { height: 3px; border-radius: 2px; width: 16px; }
.legend strong { color: var(--ink); font-weight: 650; }

/* Charts */
.chart { position: relative; width: 100%; min-height: 220px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.chart .tip { position: absolute; pointer-events: none; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.14); border-radius: 8px; padding: 8px 10px; font-size: .82rem; line-height: 1.35; min-width: 140px; max-width: 260px; z-index: 5; }
.chart .tip[hidden] { display: none; }
.chart .tip .t-head { color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.chart .tip .t-row { display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.chart .tip .t-row .k { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.chart .tip .t-row .k i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.chart .tip .t-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.chart .tip .t-note { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.chart-note { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
details.table-view { margin-top: 10px; }
details.table-view > summary { cursor: pointer; font-size: .85rem; color: var(--accent); font-weight: 600; min-height: 28px; display: inline-flex; align-items: center; }
details.table-view .table-wrap { max-height: 360px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
details.table-view table { font-size: .85rem; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; }
.list .what { flex: 1; min-width: 0; }
.list .what strong { display: block; overflow-wrap: anywhere; }
.list .meta { font-size: .84rem; color: var(--muted); display: block; }
.list .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.list .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.list li.overdue .meta { color: var(--bad); font-weight: 600; }

/* Paycheck cards on the plan */
.paychecks { display: grid; gap: 12px; }
.paycheck { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 14px 16px; }
.paycheck.catchup { border-left: 4px solid var(--s1); }
.paycheck .pc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.paycheck .pc-date { font-weight: 700; font-size: 1.02rem; }
.paycheck .pc-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.paycheck .pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin-top: 6px; font-size: .9rem; }
.paycheck .pc-grid .k { color: var(--muted); font-size: .8rem; font-weight: 600; display: block; }
.paycheck .pc-grid .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.paycheck .pc-bills { margin: 8px 0 0; padding: 0; list-style: none; font-size: .87rem; color: var(--muted); }
.paycheck .pc-bills li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.paycheck .pc-bills li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }

/* Tips */
.tips { list-style: none; padding: 0; margin: 0; }
.tips li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tips li:last-child { border-bottom: 0; }
.tips .ti { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; background: var(--soft); }
.tips .t-warn .ti { background: var(--warn-bg); } .tips .t-good .ti { background: var(--good-bg); }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: .76rem; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal .day { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; min-height: 92px; padding: 5px 6px; font-size: .78rem; min-width: 0; }
.cal .day.out { background: transparent; border-style: dashed; opacity: .6; }
.cal .day.today { border: 2px solid var(--accent); }
.cal .day .dn { font-weight: 700; font-size: .85rem; }
.cal .ev { display: block; border-radius: 5px; padding: 2px 5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.pay { background: var(--good-bg); color: var(--good); font-weight: 650; }
.cal .ev.bill { background: var(--soft); color: var(--ink); }
.cal .ev.bill.big { background: var(--accent-soft); font-weight: 650; }
.cal .ev.event { background: var(--warn-bg); color: var(--warn); }
.cal .bal { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal .bal.low { color: var(--bad); font-weight: 700; }
.cal-mon { display: none; }
@media (max-width: 700px) {
  .cal { display: block; }
  .cal .dow, .cal .day.out, .cal .day.quiet { display: none; }
  .cal-mon { display: inline; }
  .cal .bal { display: inline; margin: 0 0 0 auto; }
  .cal .day { min-height: 0; margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
  .cal .day .dn { min-width: 74px; }
  .cal .ev { white-space: normal; }
}

/* Landing */
.hero { background: linear-gradient(160deg, #17506e, #23648a 60%, #2f7a9c); color: #fff; border-radius: 16px; padding: 34px 28px; margin-bottom: 20px; }
.hero h1 { font-size: 2.2rem; color: #fff; max-width: 760px; }
.hero p { font-size: 1.1rem; max-width: 680px; color: rgba(255,255,255,.93); }
.hero .btn { background: #f0b04a; border-color: #f0b04a; color: #1b1203; }
.hero .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #0b1e2a; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.checklist .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--field); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.checklist li.done .ck { background: var(--good); border-color: var(--good); color: #fff; }
.lesson { margin: 0; }
.lesson-btn { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 0; cursor: pointer; font: inherit; color: inherit; }
.lesson-btn .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--field); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.lesson-btn.done .ck { background: var(--good); border-color: var(--good); color: #fff; }
.lesson-btn.done > span:last-child { color: var(--muted); }
.lesson-btn:hover .ck { border-color: var(--accent); }
/* A child's own page */
.kid-hero { text-align: center; padding: 26px 16px 8px; }
.kid-hero .big { font-size: 3.4rem; font-weight: 800; line-height: 1.05; margin: 6px 0; }
.jar-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.jar-card { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 14px 8px; text-align: center; }
.jar-card .e { font-size: 2.2rem; display: block; }
.jar-card .n { font-weight: 700; color: var(--muted); }
.jar-card .a { font-size: 1.5rem; font-weight: 800; }
.jar-spend { border-color: color-mix(in srgb, var(--s2) 55%, var(--line)); } .jar-save { border-color: color-mix(in srgb, var(--s3) 55%, var(--line)); } .jar-give { border-color: color-mix(in srgb, var(--s1) 45%, var(--line)); }
@media (max-width: 420px) { .jar-card .a { font-size: 1.2rem; } .kid-hero .big { font-size: 2.6rem; } }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 4px 0; }

@media (max-width: 700px) {
  /* the menu scrolls sideways on a phone: a fade at the edge shows there's more */
  .menu-row { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 40px; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.4rem; }
  .hero { padding: 24px 18px; } .hero h1 { font-size: 1.6rem; }
  .hero-figure { font-size: 2.5rem; }
  .card { padding: 16px; }
  .list > li { flex-wrap: wrap; }
  .list .acts { width: 100%; justify-content: flex-start; }
}
@media print {
  .site-header, .site-footer, .btn, form { display: none !important; }
  body { background: #fff; }
  .card { border-color: #ccc; break-inside: avoid; }
}
