/* Server-rendered pages. Tokens, pegs, cards, header cards, buttons and the logo come from theme.css. */
.site-wrap, .wrap { width: min(1240px, 100% - 48px); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--r-control); background: var(--yellow); color: #121316; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- header: the rack topper ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--board); border-bottom: 1px solid var(--board-line); box-shadow: 0 6px 16px -14px rgb(0 0 0 / 0.5); }
.site-header-inner { display: flex; align-items: center; gap: 36px; height: 68px; }
.site-header nav { display: flex; gap: 4px; margin-left: auto; }
.site-header nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: var(--r-control); text-decoration: none; color: var(--board-text); font-weight: 600; font-size: 15px; transition: background-color 160ms ease; }
.site-header nav a[aria-current="page"] { background: var(--yellow); color: #121316; }
@media (hover: hover) and (pointer: fine) { .site-header nav a:not([aria-current]):hover { background: rgb(127 127 127 / 0.14); } }
.header-actions { display: flex; gap: 6px; }
.header-actions .button { height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- page heading: a yellow header card ---------- */
.page-sign { margin: 44px 0 36px; max-width: 860px; }
.page-sign .header-card { padding: 44px 40px 34px; }
.page-sign h1 { font-size: clamp(42px, 6vw, 80px); }
.page-sign p { margin-top: 16px; max-width: 60ch; font-size: 19px; font-weight: 500; color: #2a2c30; }
.page-sign .button { margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; width: fit-content; margin-top: 24px; padding: 7px 12px; border-radius: 8px; background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600; box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); }
.crumbs a { color: var(--ink) !important; }
.crumbs a { color: var(--board-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs + .page-sign { margin-top: 20px; }

.section-title { font-size: clamp(30px, 3.6vw, 46px); font-stretch: 84%; font-weight: 850; letter-spacing: -0.012em; line-height: 1.02; max-width: 22ch; color: var(--board-text); }
/* Copy set straight on the pegboard gets a knock-out of board colour, so no hole runs through a letter. */
.section-title, .section-lead, .aisle-head h2, .aisle-head p, .design-info h1, .design-info .lead, .price-line p, .highlights li span, .empty-note, .bulk-copy > p {
  width: fit-content; background-color: var(--board); box-shadow: 0 0 0 8px var(--board); border-radius: 2px;
}
.section-lead { margin-top: 14px; max-width: 58ch; font-size: 18px; color: var(--board-muted); }
.meta { color: var(--muted); font-size: 14px; font-weight: 500; }
.lead { font-size: 20px; line-height: 1.45; color: var(--board-text); }

/* ---------- category tabs: the aisle signs ---------- */
.aisles { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 40px; }
.aisles a {
  height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--r-control);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.aisles a:active { transform: scale(0.97); }
.aisles a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .aisles a[aria-current="page"] { background: var(--yellow); color: #121316; } }
@media (hover: hover) and (pointer: fine) { .aisles a:not([aria-current]):hover { background: var(--card-2); } }

.aisle { padding: 8px 0 48px; }
.aisle-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 18px; }
.aisle-head h2 { font-size: clamp(30px, 3.4vw, 44px); color: var(--board-text); }
.aisle-head h2 a { color: inherit; text-decoration: none; }
.aisle-head p { color: var(--board-muted); font-size: 16px; flex: 1 1 280px; }
.aisle-head .text-link { font-size: 15px; }

/* ---------- the rack: product cards on pegs ---------- */
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 30px 22px; }
.product-tag { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.product-img { display: grid; place-items: center; aspect-ratio: 6 / 5; padding: 0 10px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 18px 20px; border-top: 1.5px dashed var(--line); padding-top: 14px; flex: 1; }
.product-body h2, .product-body h3 { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.product-body > span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.product .sticker { position: absolute; top: 12px; right: 12px; }
.idea-tag .product-body > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hang.product { transition: filter 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .hang.product:hover { animation: swing 900ms var(--ease-out); --swing: 1.6deg; }
  .hang.product:hover .product-body h2, .hang.product:hover .product-body h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); text-underline-offset: 4px; }
}
.hang.swinging { animation: swing 900ms var(--ease-out); }

.mini-rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 18px; }
.mini-tag { display: flex; flex-direction: column; gap: 2px; padding: 30px 14px 14px; text-decoration: none; }
.mini-tag img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; margin-bottom: 8px; }
.mini-tag strong { font-weight: 750; }
.mini-tag small { color: var(--muted); font-size: 13.5px; }

/* ---------- design page ---------- */
.design-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 28px 0 56px; }
.gallery { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.gallery-main { margin: 0; aspect-ratio: 1040 / 800; padding: 34px 3% 3%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main.is-photo { padding: 32px 10px 10px; }
.gallery-main.is-photo img { object-fit: cover; border-radius: 3px; }
.gallery-hang { transform-origin: 50% 15px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 6px; }
.thumb {
  flex: none; display: flex; flex-direction: column; gap: 4px; width: 92px; padding: 5px 5px 7px; border-radius: var(--r-control);
  border: 2px solid transparent; background: var(--card); color: var(--ink); cursor: pointer; text-align: left;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); transition: transform 140ms var(--ease-out), border-color 160ms ease;
}
.thumb:active { transform: scale(0.96); }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 4px; }
.thumb.photo img { object-fit: cover; }
.thumb span { font-size: 12px; font-weight: 650; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .thumb:hover { border-color: var(--field-line); } .thumb[aria-pressed="true"]:hover { border-color: var(--ink); } }

.design-info { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.design-info h1 { font-size: clamp(40px, 4.6vw, 64px); color: var(--board-text); }
.try-form { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-card); background: var(--card); color: var(--ink); box-shadow: var(--lift-shadow); }
.try-form label { font-weight: 700; font-size: 15px; }
.try-row { display: flex; gap: 8px; }
.try-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r-control); border: 1.5px solid var(--field-line); background: #fff; color: var(--ink); font-size: 18px; font-weight: 600; transition: border-color 160ms ease, box-shadow 160ms ease; }
.try-row input::placeholder { color: #6b717b; font-weight: 500; }
.try-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 212 0 / 0.75); }
.try-row .button { height: 52px; }
.price-line { display: flex; align-items: center; gap: 16px; }
.price-line .sticker { flex: none; }
.price-line p { color: var(--board-muted); font-size: 15px; }
.price-line a { color: var(--board-text); font-weight: 650; }
/* The small print on the back of the pack. */
.facts { margin: 0; padding: 6px 20px; border-radius: var(--r-card); background: var(--card); color: var(--ink); box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; }
.facts div + div { border-top: 1.5px dashed var(--line); }
.facts dt { font-stretch: 75%; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 15px; }

.design-section { padding: 56px 0 8px; }
.design-section > .section-title { margin-bottom: 28px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; max-width: 1040px; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--board-text); }
.highlights svg { flex: none; margin-top: 1px; padding: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #121316; }
.design-about { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.good-for { padding: 22px; border-radius: var(--r-card); background: var(--yellow); color: #121316; }
.good-for h2 { font-size: 22px; font-stretch: 75%; font-weight: 850; text-transform: uppercase; margin-bottom: 14px; }
.good-for ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.good-for li { padding: 5px 11px; border-radius: var(--r-control); background: rgb(255 255 255 / 0.7); font-size: 14px; font-weight: 600; }

/* ---------- paper: long copy on a white sheet ---------- */
.paper { padding: 40px 44px; border-radius: var(--r-card); background: var(--card); color: var(--ink); box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); max-width: 820px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: 30px; font-stretch: 85%; font-weight: 800; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font-size: 21px; color: var(--ink); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); font-weight: 700; }
.prose blockquote { margin-left: 0; padding: 18px 22px; border-radius: var(--r-card); background: var(--yellow); color: #121316; font-weight: 500; }
.prose blockquote p { margin: 0; }
.prose pre { padding: 18px 20px; border-radius: var(--r-control); background: var(--card-2); overflow-x: auto; font-size: 15px; line-height: 1.55; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.prose img { border-radius: var(--r-card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1.5px dashed var(--line); }
.prose th { font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.02em; }

/* ---------- FAQ ---------- */
.faq-card { border-radius: var(--r-card); background: var(--card); color: var(--ink); padding: 4px 28px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); max-width: 860px; }
.faq-card details + details { border-top: 1.5px dashed var(--line); }
.faq-card summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 18px; font-weight: 680; list-style: none; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq-plus { flex: none; position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); transition: transform 240ms var(--ease-out), background-color 160ms ease; }
.faq-plus:empty::before, .faq-plus:empty::after { content: ""; position: absolute; width: 12px; height: 2px; border-radius: 1px; background: currentColor; }
.faq-plus:empty::after { transform: rotate(90deg); }
.faq-card details[open] .faq-plus { transform: rotate(45deg); background: var(--yellow); }
.faq-card details p { padding: 0 48px 22px 0; color: var(--ink-2); max-width: 64ch; }
.faq-card details[open] p { animation: open-answer 260ms var(--ease-out); }
@keyframes open-answer { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- idea tags: little gift tags with a string hole ---------- */
.idea-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.idea-tags a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 16px 0 30px; border-radius: 4px 10px 10px 4px;
  background: var(--card); color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none; box-shadow: 0 1px 1px rgb(0 0 0 / 0.14);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.idea-tags a::before { content: ""; position: absolute; left: 11px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--board); box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.35); }
.idea-tags a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .idea-tags a:hover { background: var(--yellow); color: #121316; transform: rotate(-1.5deg); } }

/* ---------- ideas: one large tag per suggested design ---------- */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 26px; align-items: start; }
.pick-tag { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.pick-img { display: block; aspect-ratio: 10 / 7; padding: 0 14px; }
.pick-img img { width: 100%; height: 100%; object-fit: contain; }
.pick-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 26px 26px; border-top: 1.5px dashed var(--line); }
.pick-copy h2 { font-size: clamp(24px, 2.4vw, 30px); font-stretch: 85%; font-weight: 800; }
.pick-on { color: var(--muted); font-size: 15px; font-weight: 500; }
.pick-on a { color: var(--ink); font-weight: 650; text-decoration-color: var(--red); }
.pick-copy > p:not(.pick-on) { color: var(--ink-2); font-size: 16.5px; max-width: 52ch; }
.pick-copy .button { margin-top: 8px; }

/* ---------- blog ---------- */
.post-lead { margin-bottom: 34px; }
.post-rack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
.post-tag { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-img { display: block; aspect-ratio: 15 / 8; margin: 0 12px; border-radius: 3px; overflow: hidden; background: var(--card-2); }
.post-img img { width: 100%; height: 100%; object-fit: contain; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; }
.post-body h2, .post-body h3 { font-size: 22px; font-weight: 760; line-height: 1.18; }
.post-excerpt { color: var(--ink-2); }
.post.big .post-tag { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; padding-bottom: 12px; }
.post.big .post-img { aspect-ratio: 4 / 3; margin: 0 0 0 12px; }
.post.big .post-body { padding: 24px 40px; gap: 14px; }
.post.big .post-body h2 { font-size: clamp(28px, 3vw, 40px); font-stretch: 85%; font-weight: 800; line-height: 1.04; }
.post.big .post-excerpt { font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  .hang.post:hover { animation: swing 900ms var(--ease-out); --swing: 1.2deg; }
  .hang.post:hover h2, .hang.post:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); text-underline-offset: 4px; }
}
.article { max-width: 860px; margin: 28px auto 0; }
.article-hang { transform-origin: 50% 15px; }
.paper-sheet { padding: 48px 60px 56px; }
.post-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; }
.post-head h1 { font-size: clamp(34px, 4.6vw, 56px); font-stretch: 82%; font-weight: 850; letter-spacing: -0.025em; line-height: 1.02; color: var(--ink); }
.post-head .lead { color: var(--ink-2); }
.post-cover { margin: 0 0 36px; border-radius: 3px; overflow: hidden; background: var(--card-2); aspect-ratio: 15 / 8; }
.post-cover img { width: 100%; height: 100%; object-fit: contain; }
.adjacent { display: flex; justify-content: space-between; gap: 16px; margin: 48px 0 24px; }
.adjacent a { display: flex; flex-direction: column; gap: 4px; max-width: 46%; padding: 16px 20px; border-radius: var(--r-card); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 680; box-shadow: 0 1px 1px rgb(0 0 0 / 0.12); transition: transform 140ms var(--ease-out); }
.adjacent a:active { transform: scale(0.98); }
.adjacent a.next { text-align: right; margin-left: auto; }
.adjacent small { color: var(--muted); font-weight: 600; font-size: 13px; }
.empty-note { color: var(--board-muted); }
.not-found { padding-bottom: 40px; }

/* ---------- closing call to action: a big header card ---------- */
.cta-band { margin: 72px 0 24px; }
.cta-band .header-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 48px 44px; }
.cta-band h2 { font-size: clamp(32px, 3.8vw, 52px); max-width: 18ch; }
.cta-band p { margin-top: 12px; max-width: 50ch; font-size: 17px; font-weight: 500; color: #2a2c30; }

/* ---------- footer: the shelf under the rack ---------- */
.site-foot { margin-top: 64px; padding: 56px 0 36px; border-top: 10px solid var(--ink); background: var(--board); color: var(--board-muted); font-size: 15px; }
@media (prefers-color-scheme: dark) { .site-foot { border-top-color: #33363d; } }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--board-text); }
.foot-brand p { max-width: 30ch; color: var(--board-muted); }
.site-foot h2 { font-size: 13px; font-stretch: 80%; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; color: var(--board-text); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-foot ul a { color: var(--board-muted); text-decoration: none; }
.site-foot ul a:hover { color: var(--board-text); text-decoration: underline; }
.foot-legal { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--board-line); font-size: 14px; }

/* ---------- blog widget: price calculator ---------- */
.prose .calc { margin: 2em 0; padding: 26px; border-radius: var(--r-card); background: var(--card-2); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.calc > * + * { margin-top: 0; }
.calc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.calc-head h3 { margin: 0; font-size: 24px; font-stretch: 80%; font-weight: 850; text-transform: uppercase; color: var(--ink); }
.calc-currency select { height: 40px; width: auto; padding: 0 10px; }
.calc-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.calc fieldset { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px; border: none; border-radius: var(--r-card); background: var(--card); min-width: 0; }
.calc legend { float: left; padding: 0; font-weight: 800; color: var(--ink); font-size: 15px; }
.calc legend + * { clear: left; }
.calc-field small, .calc-markup small { color: var(--muted); font-size: 13px; }
.calc-input { display: flex; align-items: center; height: 44px; border-radius: var(--r-control); border: 1.5px solid var(--field-line); background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.calc-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 212 0 / 0.75); }
.field .calc-input input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent; padding: 0 12px; box-shadow: none; font-variant-numeric: tabular-nums; }
.calc-input.money input { padding-left: 2px; }
.calc-input b { padding-left: 12px; font-weight: 600; color: var(--muted); }
.calc-input em { padding-right: 12px; font-style: normal; font-size: 14px; color: var(--muted); white-space: nowrap; }
.calc-markup { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.calc-markup > span { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); }
.calc-markup output { font-variant-numeric: tabular-nums; }
.calc-markup input { width: 100%; accent-color: var(--red); }
.calc-markup small { display: flex; justify-content: space-between; }
.calc-result { margin-top: 22px; padding: 24px; border-radius: var(--r-card); background: var(--yellow); color: #121316; }
.calc-price { display: flex; flex-direction: column; gap: 4px; }
.calc-price span { font-weight: 650; }
.calc-price strong { font-stretch: 72%; font-weight: 880; font-size: clamp(48px, 7vw, 68px); line-height: 0.95; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.calc-price small { color: #2a2c30; font-size: 15px; }
.calc-bar { display: flex; height: 16px; margin: 18px 0 14px; border-radius: 4px; overflow: hidden; gap: 2px; }
.calc-bar span { flex-basis: 0; min-width: 0; transition: flex-grow 320ms var(--ease-out); }
.calc .seg-material { background: #121316; }
.calc .seg-machine { background: #4b5059; }
.calc .seg-time { background: #8c929b; }
.calc .seg-selling { background: repeating-linear-gradient(-45deg, #121316 0 2px, #fbfbfa 2px 5px); }
.calc .seg-fees { background: #fbfbfa; box-shadow: inset 0 0 0 1.5px #121316; }
.calc .seg-profit { background: var(--red); }
.calc-lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; margin: 0; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.calc-lines dt { display: flex; align-items: center; gap: 8px; }
.calc-lines dt i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.calc-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-lines dd small { display: inline-block; min-width: 3.2em; text-align: right; color: #2a2c30; font-weight: 500; }
.calc-insight { margin: 16px 0 0; padding-top: 14px; border-top: 1.5px dashed rgb(18 19 22 / 0.3); font-size: 15px; }
.calc-insight:empty { display: none; }
.calc-reset { margin-top: 14px; font-size: 14px; }

/* ---------- blog widget: print service ---------- */
.prose .print-service { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 2.2em; padding: 22px 26px; border-radius: var(--r-card); background: var(--yellow); color: #121316; font-size: 16px; line-height: 1.5; }
.prose .print-service h3 { margin: 0 0 4px; font-size: 21px; color: #121316; }
.prose .print-service p { margin: 0; max-width: 46ch; }
.prose .print-service .print-service-code { margin-top: 8px; font-weight: 600; }
.prose .print-service code { padding: 2px 8px; border-radius: 6px; border: 1.5px dashed #121316; background: rgb(255 255 255 / 0.55); font-size: 0.95em; font-weight: 750; }
.prose .print-service .button { background: #121316; border-color: #121316; color: #fff; }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .design-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gallery { position: static; min-width: 0; }
  .design-about { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-header nav { display: none; }
  .header-actions { margin-left: auto; }
  .picks, .post-rack { grid-template-columns: 1fr; }
  .post.big .post-tag { grid-template-columns: 1fr; }
  .post.big .post-img { aspect-ratio: 15 / 8; margin: 0 12px; }
  .post.big .post-body { padding: 20px 22px 14px; }
  .cta-band .header-card { flex-direction: column; align-items: flex-start; padding: 44px 28px 32px; }
  .highlights { grid-template-columns: 1fr; }
  .paper { padding: 28px 24px; }
  .paper-sheet { padding: 36px 24px 36px; }
}
@media (max-width: 640px) {
  .site-wrap, .wrap { width: calc(100% - 32px); }
  .site-header-inner { gap: 12px; }
  .header-actions .button.ghost { display: none; }
  .page-sign { margin: 28px 0 28px; }
  .page-sign .header-card { padding: 38px 22px 26px; }
  .page-sign p { font-size: 17px; }
  .aisles { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 32px; padding: 2px 16px 6px; scrollbar-width: none; }
  .aisles a { flex: none; }
  .rack { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-body h2, .product-body h3 { font-size: 16px; }
  .product-body > span { font-size: 13.5px; }
  .product .sticker { width: 46px; height: 46px; font-size: 16px; top: 8px; right: 8px; }
  .try-row { flex-direction: column; }
  .try-row input { flex: none; }
  .faq-card { padding: 2px 18px; }
  .faq-card summary { font-size: 16.5px; }
  .faq-card details p { padding-right: 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .calc-groups, .calc-lines { grid-template-columns: 1fr; }
  .prose .calc { padding: 16px; margin-left: -8px; margin-right: -8px; }
  .adjacent { flex-direction: column; }
  .adjacent a { max-width: none; }
  .adjacent a.next { margin-left: 0; }
}
@media (max-width: 400px) {
  .rack { grid-template-columns: 1fr; }
}
