/* Layout idea: the pieces you set on the left, the stack you pay pinned on the right; on a phone the stack comes first and a bottom bar keeps it in reach. */
:root {
  color-scheme: light;

  /* The box of blocks: six named colors. Everything else is mixed from these. */
  --paper: #F6F7F9;   /* cool chalk, the table the blocks sit on */
  --ink: #18213A;     /* deep navy for all text and outlines */
  --red: #D83B23;
  --blue: #2553D8;
  --yellow: #F5B91F;
  --green: #12805A;

  /* Extra blocks for shares with five to eight families. */
  --pink: #EC78A8;
  --teal: #19A3B2;
  --violet: #7446C4;
  --wood: #C79158;

  --display: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --white: #fff;
  --ink-70: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --ink-20: color-mix(in srgb, var(--ink) 20%, var(--paper));
  --ink-08: color-mix(in srgb, var(--ink) 8%, var(--paper));
  --r-block: 22px;
  --r-piece: 14px;
  --gutter: 16px;
}

/* Family slots: a color, the text color that sits on it, and (in app.js) a shape. */
.f0 { --fc: var(--red); --fon: var(--white); }
.f1 { --fc: var(--blue); --fon: var(--white); }
.f2 { --fc: var(--yellow); --fon: var(--ink); }
.f3 { --fc: var(--green); --fon: var(--white); }
.f4 { --fc: var(--pink); --fon: var(--ink); }
.f5 { --fc: var(--teal); --fon: var(--ink); }
.f6 { --fc: var(--violet); --fon: var(--white); }
.f7 { --fc: var(--wood); --fon: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.5 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3, .brand { text-wrap: balance; font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
input:focus-visible { outline-offset: 0; }

.shape { width: 26px; height: 26px; flex: none; color: var(--fc); overflow: visible; }
.shape.tiny { width: 14px; height: 14px; }
.ico, .step svg, .add-family svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hint { color: var(--ink-70); font-size: .9375rem; line-height: 1.45; max-width: 46ch; }

/* ---------- header ---------- */
.top {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
  grid-template-areas: "logo title reset";
  max-width: 920px; margin: 0 auto; padding: 10px var(--gutter) 4px;
}
.logo { grid-area: logo; width: 34px; height: 34px; }
.brand { grid-area: title; font-size: 1.125rem; margin: 0; }
.promise { grid-area: promise; color: var(--ink-70); font-size: .9375rem; line-height: 1.35; margin-top: 2px; }
.reset { display: flex; align-items: center; justify-content: flex-end; margin-left: auto; }
.top .reset { grid-area: reset; margin-right: -10px; }
.top:has(#reset-confirm:not([hidden])) { grid-template-areas: "logo title title" "reset reset reset"; }
.top:has(#reset-confirm:not([hidden])) .reset { margin: 8px 0 0; }
.confirm { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-piece);
  border: 2px solid var(--ink); background: var(--white);
  font-weight: 700; font-size: .9375rem; white-space: nowrap;
  box-shadow: inset 0 -3px 0 var(--ink-08);
}
.btn.solid { background: var(--ink); color: var(--white); box-shadow: none; }
.btn.quiet { border-color: transparent; background: transparent; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--ink-20); padding: 0 10px; }
.btn:active { transform: translateY(1px); }
.btn.quiet:hover { text-decoration-color: var(--ink); }

.x {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 12px; color: var(--ink-70);
}
.x:hover { background: var(--ink-08); color: var(--ink); }

/* ---------- intro ---------- */
.intro { max-width: 920px; margin: 0 auto; padding: 22px var(--gutter) 26px; display: grid; gap: 12px; }
.intro h1 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 20ch; }
.intro p { color: var(--ink-70); font-size: 1.0625rem; line-height: 1.5; max-width: 60ch; }

/* ---------- layout ---------- */
.layout {
  max-width: 920px; margin: 0 auto; padding: 10px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px;
}
.inputs { display: grid; gap: 0; min-width: 0; }
.step-sec + .step-sec { margin-top: 40px; padding-top: 40px; border-top: 2px solid var(--ink-08); }
.result { min-width: 0; padding-top: 40px; border-top: 2px solid var(--ink-08); }

/* ---------- the result: the one loud thing on the page ---------- */
.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.result-head h2 { font-size: 1.625rem; }
.hours-pick { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-70); }

.blocks { display: flex; flex-direction: column; gap: 8px; }
.block {
  --pad: 16px;
  container-type: inline-size;
  min-width: 0;
  background: var(--fc); color: var(--fon);
  border-radius: var(--r-block);
  padding: 14px var(--pad) 20px;
  box-shadow: inset 0 -7px 0 rgb(0 0 0 / .15);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  grid-template-areas: "name amt" "per amt" "detail detail";
}
.block h3 { grid-area: name; display: flex; align-items: center; gap: 9px; font-size: 1.125rem; min-width: 0; align-self: end; }
.block h3 .shape { color: var(--fon); width: 22px; height: 22px; }
.bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block .amt {
  grid-area: amt; justify-self: end;
  font: 600 2.75rem/1 var(--display); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.block.long .amt { font-size: 2.125rem; }
.cents { font-size: .5em; font-weight: 600; margin-left: .04em; letter-spacing: 0; }
.block .per { grid-area: per; font-size: .875rem; font-weight: 600; opacity: .88; align-self: start; padding-left: 31px; }
.block .detail { grid-area: detail; margin-top: 10px; padding-top: 9px; border-top: 2px solid color-mix(in srgb, var(--fon) 28%, transparent); font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.4; }
.block .detail span { white-space: nowrap; }
.block .detail strong { font-weight: 700; margin-right: 8px; white-space: nowrap; }
.block.small { padding: 10px var(--pad) 15px; box-shadow: inset 0 -5px 0 rgb(0 0 0 / .15); border-radius: 18px; }
.block.small .amt { font-size: 2rem; }
.block.small.long .amt { font-size: 1.625rem; }
.block.small .detail { margin-top: 7px; padding-top: 6px; }

@keyframes bump { 0% { transform: translateY(5px); opacity: .55; } 100% { transform: none; opacity: 1; } }
.amt.bump { animation: bump .28s cubic-bezier(.2, .9, .3, 1.2); }

.sharebar { display: flex; gap: 3px; margin-top: 10px; height: 30px; }
.seg-part {
  flex: 0 1 0; min-width: 30px; overflow: hidden;
  display: flex; align-items: center; gap: 6px; padding: 0 9px;
  background: color-mix(in srgb, var(--fc) 16%, var(--white));
  border: 2px solid var(--fc); border-radius: 10px;
  font-size: .8125rem; font-variant-numeric: tabular-nums; line-height: 1;
}
.seg-part b { font-weight: 700; }

.sums { margin-top: 18px; font-variant-numeric: tabular-nums; }
.sums > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 2px solid var(--ink-08); }
.sums dt { color: var(--ink-70); }
.sums dd { font-weight: 700; text-align: right; white-space: nowrap; }
.sums small { font-weight: 500; font-size: .875rem; color: var(--ink-70); margin-left: 4px; }
.sums .grand { border-bottom: 0; border-top: 3px solid var(--ink); margin-top: -2px; padding-top: 11px; }
.sums .grand dt { color: var(--ink); font-weight: 700; }
.sums .grand dd { font: 600 1.5rem/1.1 var(--display); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; min-height: 44px; }
.copied { font-weight: 700; color: var(--green); opacity: 0; transition: opacity .15s; }
.copied.on { opacity: 1; }
.copied.bad { color: var(--red); }

/* ---------- input sections ---------- */
.step-sec > h2, .log-head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; margin-bottom: 16px; }
.num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--ink); color: var(--paper); border-radius: 9px;
  font: 600 1.0625rem/1 var(--display); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .3);
}
.num svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; }
.rate label { display: block; font-weight: 700; margin-bottom: 8px; }
.rate .hint { margin-top: 8px; }

.stepper { display: inline-flex; align-items: stretch; gap: 6px; }
.step {
  flex: none; width: 52px; min-height: 56px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-piece); background: var(--ink-08); color: var(--ink);
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--ink) 12%, transparent);
}
.step:hover { background: var(--ink-20); }
.step:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.field {
  display: flex; align-items: center; gap: 2px; padding: 0 14px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-piece);
  font: 600 1.75rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.field:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.field input { width: 3.4ch; min-width: 0; border: 0; background: none; padding: 0; text-align: center; outline: none; font-variant-numeric: tabular-nums; }
.rate .field input { width: 4.2ch; }
.affix { color: var(--ink-70); font-size: .7em; white-space: nowrap; }
.stepper.small .step { width: 44px; min-height: 44px; border-radius: 12px; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.stepper.small .field { font-size: 1.25rem; padding: 0 10px; border-radius: 12px; }
.stepper.small .affix { font-size: .75em; margin-left: 2px; }
.step:disabled, .taxpct.off .field { opacity: .4; cursor: default; }

/* families */
#families { display: grid; gap: 14px; }
.fam { background: var(--white); border-radius: var(--r-block); padding: 8px 8px 14px 16px; border-left: 10px solid var(--fc); box-shadow: 0 1px 0 var(--ink-20); }
.fam-head { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.name {
  min-width: 0; border: 0; border-bottom: 2px solid transparent; background: none; border-radius: 0;
  padding: 4px 2px; outline: none; text-overflow: ellipsis;
}
.name:hover { border-bottom-color: var(--ink-20); }
.name:focus { border-bottom-color: var(--ink); }
.fam-name { flex: 1 1 8ch; width: 8ch; font: 600 1.25rem/1.2 var(--display); height: 44px; }
.fam-rate { flex: none; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink-70); white-space: nowrap; padding-right: 6px; }
.fam-rate:last-child { padding-right: 12px; }
.kids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding-right: 8px; }
.kid {
  display: flex; align-items: center; max-width: 100%; min-height: 48px; padding-left: 12px;
  background: var(--paper); border: 2px solid var(--ink-20); border-radius: 999px;
}
.kid-name { font-weight: 600; margin-left: 6px; height: 40px; max-width: 14ch; flex: 0 1 auto; }
.sur {
  flex: none; display: inline-flex; align-items: center; min-height: 32px; margin-left: 4px; padding: 0 11px;
  border: 2px solid var(--ink-20); border-radius: 999px; background: var(--white);
  font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; position: relative;
}
button.sur::after { content: ""; position: absolute; inset: -9px -4px; } /* 44px+ tap area */
button.sur:hover, button.sur[aria-expanded="true"] { border-color: var(--ink); }
.sur.base { border-style: dashed; color: var(--ink-70); font-weight: 600; }
.kid.is-custom .sur { background: var(--ink); border-color: var(--ink); color: var(--white); }
.kid .x { margin-left: 0; border-radius: 999px; }
.add-kid {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px;
  border: 2px dashed var(--ink-20); border-radius: 999px; background: none; font-weight: 700; font-size: .9375rem;
}
.add-kid:hover { border-color: var(--ink); border-style: solid; }
.fam > .hint { margin-top: 8px; }
.sur-edit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px;
  margin: 12px 8px 0 0; padding: 14px; background: var(--paper); border-radius: var(--r-piece);
}
.sur-edit > label { font-weight: 600; }
.sur-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sur-edit .hint { grid-column: 1 / -1; font-size: .875rem; }

.add-family {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 14px;
  border: 2px dashed var(--ink-20); border-radius: var(--r-block); background: none; font-weight: 700;
}
.add-family:hover { border-color: var(--ink); border-style: solid; }
#family-limit { margin-top: 12px; }

/* split */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--ink-08); border-radius: 18px; max-width: 440px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 48px; padding: 0 10px; border-radius: 12px; font-weight: 700; text-align: center; cursor: pointer; line-height: 1.2; }
.seg input:checked + label { background: var(--ink); color: var(--white); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .3); }
.seg input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg + .hint, .taxrow + .hint { margin-top: 12px; }

/* taxes */
.taxrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; max-width: 440px; }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 56px; height: 32px; margin: 0; }
.track { flex: none; width: 56px; height: 32px; border-radius: 999px; background: var(--ink-20); padding: 4px; transition: background .15s; }
.knob { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 0 rgb(0 0 0 / .18); transition: transform .15s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track .knob { transform: translateX(24px); }
.switch input:focus-visible + .track { outline: 3px solid var(--ink); outline-offset: 2px; }

/* log */
.log { padding-top: 32px; border-top: 3px solid var(--ink); }
.log-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.log-head h2 { margin-bottom: 0; }
.num.alt { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .15); }
.entries { display: grid; gap: 10px; }
.entry { background: var(--white); border-radius: 18px; padding: 8px 8px 12px 14px; box-shadow: 0 1px 0 var(--ink-20); }
.entry-top { display: flex; align-items: center; gap: 8px; }
.entry-label { flex: 1 1 4ch; width: 4ch; font: 600 1.1875rem/1.2 var(--display); height: 44px; }
.entry-kids { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 6px 0 0; }
.here {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px; max-width: 100%;
  border: 2px solid var(--ink-20); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: .9375rem;
}
.here span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.here[aria-pressed="false"] { background: none; border-style: dashed; color: var(--ink-70); }
.here[aria-pressed="false"] span { text-decoration: line-through; }
.here[aria-pressed="false"] .shape { opacity: .35; }
.here em { font-style: normal; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.here:hover { border-color: var(--ink); }
.entry-cost { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin: 12px 6px 0 0; padding-top: 10px; border-top: 2px solid var(--ink-08); font-variant-numeric: tabular-nums; }
.minis { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--ink-70); font-weight: 600; }
.mini { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.entry-cost strong { margin-left: auto; font: 600 1.1875rem/1 var(--display); }
.owes { margin: 30px 0 12px; font-size: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.owes small { font: 600 .875rem/1.3 var(--body); color: var(--ink-70); }
#log-empty { margin-bottom: 2px; }

/* footer */
.how { max-width: 920px; margin: 0 auto; padding: 36px var(--gutter) 40px; }
.how h2 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 18px; text-wrap: balance; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 32px; }
.how h3 { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; margin: 0 0 6px; }
.how p { margin: 0; color: var(--ink-70); font-size: .9375rem; line-height: 1.5; max-width: 46ch; }

.foot { max-width: 920px; margin: 0 auto; padding: 22px var(--gutter) 120px; border-top: 2px solid var(--ink-08); color: var(--ink-70); font-size: .875rem; display: grid; gap: 6px; }
.foot p { max-width: 70ch; }

/* phone: the answer follows you */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--white); border: 0; text-align: left;
  transform: translateY(110%); transition: transform .2s ease-out;
}
.mbar.on { transform: none; }
.mbar:focus-visible { outline-color: var(--yellow); outline-offset: -4px; }
.mbar-label { flex: none; font-size: .75rem; line-height: 1.25; opacity: .8; }
.mbar-label b { display: block; font-size: .875rem; opacity: 1; }
.mbar-items { display: flex; gap: 6px; overflow: hidden; margin-left: auto; min-width: 0; }
.mbar-item {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 40px; padding: 0 12px 2px 10px;
  background: var(--fc); color: var(--fon); border-radius: 12px; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .16);
  font: 600 1.125rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.mbar-item .shape { color: var(--fon); width: 14px; height: 14px; }

@media (max-width: 420px) {
  .promise { font-size: .875rem; }
  .entry-top .stepper.small .field input { width: 2.9ch; }
  .sur-edit { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 620px) {
  :root { --gutter: 28px; }
  .block { --pad: 20px; }
}

/* desktop: inputs left, the stack pinned right */
@media (min-width: 980px) {
  .top, .top:has(#reset-confirm:not([hidden])) { grid-template-areas: "logo title reset"; column-gap: 12px; padding-top: 26px; padding-bottom: 14px; }
  .top .reset, .top:has(#reset-confirm:not([hidden])) .reset { margin: 0 -10px 0 auto; }
  .logo { width: 40px; height: 40px; }
  .brand { font-size: 1.25rem; }
  .intro { padding-top: 40px; padding-bottom: 40px; }
  .intro h1 { font-size: 2.75rem; }
  .step-sec + .step-sec { margin-top: 52px; padding-top: 52px; }
  .promise { align-self: start; margin-top: 0; }
  .layout { padding-top: 14px; }
  .result { margin-top: 8px; padding-top: 52px; }
  .result-head { margin-bottom: 16px; }
  .result-head h2 { font-size: 2rem; }
  .mbar { padding-left: max(var(--gutter), calc((100vw - 920px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - 920px) / 2 + var(--gutter))); }

  .result .blocks { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .result .block {
    flex: var(--w) 1 172px; --pad: 22px; padding: 20px var(--pad) 26px; box-shadow: inset 0 -9px 0 rgb(0 0 0 / .15);
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "amt" "per" "detail"; align-content: start;
  }
  .result .block h3 { font-size: 1.25rem; align-self: auto; }
  .result .block .amt { justify-self: start; margin-top: 26px; font-size: clamp(1.5rem, calc(96cqi / var(--u, 4)), 4.75rem); }
  .result .blocks.many .block .amt { font-size: clamp(1.5rem, calc(96cqi / var(--u, 4)), 2.75rem); }
  .result .block .per { padding-left: 0; margin-top: 6px; font-size: .9375rem; }
  .result .block .detail { margin-top: 18px; padding-top: 12px; }
  .result .block .detail span, .result .block .detail strong { display: block; margin: 0; }
  .result .block .detail strong { font-size: 1rem; margin-bottom: 2px; }
  .sharebar { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
