/* ---------- Design tokens ---------- */
:root {
  --bg: #fff8ee;
  --bg-2: #fff1dd;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #efe2cc;
  --accent: #f2603c;
  --accent-dark: #d94a27;
  --accent-ink: #ffffff;
  --focus: #2563eb;
  --warn-bg: #fff3bf;
  --warn-ink: #5c4400;
  --shadow-sm: 0 1px 2px rgba(60, 40, 10, .08), 0 2px 8px rgba(60, 40, 10, .06);
  --shadow-md: 0 6px 24px rgba(60, 40, 10, .12);
  --shadow-cover: 0 2px 4px rgba(30, 20, 5, .18), 0 12px 28px rgba(30, 20, 5, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  /* category colours: strong + soft tint */
  --c-coloring: #1d8fc7; --t-coloring: #e2f3fc;
  --c-christmas: #c23a2b; --t-christmas: #fde7e2;
  --c-workbooks: #5a46d6; --t-workbooks: #ebe8fd;
  --c-picture-books: #c77a0a; --t-picture-books: #fdf0da;
  --c-puzzles: #2c3a57; --t-puzzles: #e6eaf2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d; --bg-2: #1c1f26; --surface: #20242c; --ink: #eef0f4; --muted: #a8afbd; --line: #2f3440;
    --accent: #ff7a54; --accent-dark: #ff8f6e; --accent-ink: #16181d; --warn-bg: #4a3b00; --warn-ink: #ffe8a3;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 6px 24px rgba(0,0,0,.4);
    --c-coloring: #5cc0ef; --t-coloring: #17303d;
    --c-christmas: #ff8a7a; --t-christmas: #3a1f1c;
    --c-workbooks: #a89bff; --t-workbooks: #262145;
    --c-picture-books: #f2b24c; --t-picture-books: #3a2c14;
    --c-puzzles: #b9c4dc; --t-puzzles: #252c3a;
    color-scheme: dark;
  }
}
.cat-coloring { --c: var(--c-coloring); --t: var(--t-coloring); }
.cat-christmas { --c: var(--c-christmas); --t: var(--t-christmas); }
.cat-workbooks { --c: var(--c-workbooks); --t: var(--t-workbooks); }
.cat-picture-books { --c: var(--c-picture-books); --t: var(--t-picture-books); }
.cat-puzzles { --c: var(--c-puzzles); --t: var(--t-puzzles); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.preview-banner { background: var(--warn-bg); color: var(--warn-ink); text-align: center; padding: 6px 16px; font-size: 14px; font-weight: 600; }

/* ---------- Buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 13px 24px; font: 700 17px/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(242, 96, 60, .35); transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 96, 60, .4); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-small { padding: 9px 16px; font-size: 15px; box-shadow: none; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--t, var(--bg-2)); color: var(--c, var(--muted)); }
.pill-lang { background: var(--bg-2); color: var(--muted); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.kicker { font: 700 14px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--c, var(--accent-dark)); margin-bottom: 8px; }
.kicker a { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--font-display); color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.main-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg-2); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--bg-2); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-md); min-width: 160px; }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-menu li a:hover { background: var(--bg-2); }
.lang-menu li a[aria-current] { font-weight: 700; color: var(--accent-dark); }
@media (max-width: 640px) {
  .header-row { padding-top: 8px; padding-bottom: 6px; min-height: 0; }
  .main-nav { order: 3; width: 100%; margin: 0 -8px; padding-bottom: 2px; }
  .lang-menu { margin-left: auto; }
}

/* ---------- Layout pieces ---------- */
.section { margin-top: 56px; }
.section-title { margin-bottom: 18px; }
.page-head { padding-top: 24px; }
.page-head h1 { margin-bottom: 10px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 80% 0%, #ffe2c2 0%, transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 40px 0 24px; }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); } }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 64px 0 40px; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art { position: relative; height: 300px; }
@media (min-width: 860px) { .hero-art { height: 380px; } }
.fan { position: absolute; width: 46%; max-width: 220px; border-radius: 8px; box-shadow: var(--shadow-cover); transition: transform .3s ease; }
.fan-1 { left: 50%; top: 4%; transform: translateX(-50%) rotate(-1deg); z-index: 3; }
.fan-2 { left: 8%; top: 14%; transform: rotate(-9deg); z-index: 2; }
.fan-3 { right: 8%; top: 14%; transform: rotate(8deg); z-index: 1; }
.hero-art:hover .fan-2 { transform: rotate(-12deg) translateX(-8px); }
.hero-art:hover .fan-3 { transform: rotate(11deg) translateX(8px); }
.hero-root { padding: 64px 0; }
.lang-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lang-grid a { display: block; height: 100%; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.lang-grid strong { font: 800 20px var(--font-display); display: block; }
.lang-grid span { color: var(--muted); font-size: 15px; }
.lang-grid a:hover { box-shadow: var(--shadow-md); }

/* ---------- Category tiles ---------- */
.cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-tile { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--t); color: var(--ink); text-decoration: none; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 6px; }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-name { font: 800 18px/1.2 var(--font-display); }
.cat-desc { font-size: 14px; color: var(--muted); }
.cat-count { font-size: 13px; font-weight: 700; color: var(--c); margin-top: 4px; }

/* ---------- Shelves and grids ---------- */
.shelf-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; }
.shelf-head h2 { margin: 0; }
.shelf-head h2 a { color: var(--ink); text-decoration: none; }
.shelf-head h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); margin-right: 10px; vertical-align: .18em; }
.shelf-more { margin-left: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 16px; margin: 0 -2px; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .row-scroll { grid-auto-columns: minmax(170px, 23%); } }
@media (min-width: 1000px) { .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

.series-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.series-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--t); color: var(--c); font-weight: 700; font-size: 15px; text-decoration: none; }
.feature { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: clamp(18px, 4vw, 40px); align-items: center; padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--t); color: var(--ink); text-decoration: none; transition: box-shadow .2s ease; }
.feature:hover { box-shadow: var(--shadow-md); }
.feature-cover img { border-radius: 8px; box-shadow: var(--shadow-cover); transition: transform .2s ease; }
.feature:hover .feature-cover img { transform: rotate(-2deg) translateY(-3px); }
.feature-body { display: grid; gap: 8px; }
.feature-title { font: 800 clamp(22px, 3vw, 30px)/1.15 var(--font-display); }
.feature-sub { color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); }
.feature-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--c); font: 800 17px var(--font-display); margin-top: 6px; }

/* ---------- Book card ---------- */
.card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.card-cover { display: block; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-cover); background: var(--t); aspect-ratio: 17 / 22; transition: transform .2s ease, box-shadow .2s ease; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 4px 8px rgba(30,20,5,.2), 0 18px 36px rgba(30,20,5,.22); }
.card-body { display: grid; gap: 6px; }
.card-title { font: 700 16px/1.3 var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--accent-dark); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cover-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; width: 100%; height: 100%; color: var(--muted); font-weight: 700; background: var(--bg-2); }
.cover-placeholder.big { aspect-ratio: 17/22; border-radius: 8px; font-size: 22px; }

/* ---------- Catalogue filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { border: 0; cursor: pointer; font: 700 15px/1 var(--font-display); padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.chip span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--c, var(--ink)); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.group-title { display: flex; align-items: center; gap: 10px; }
.group-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.catalog-group[hidden] { display: none; }

/* ---------- Printables ---------- */
.band { margin-top: 64px; padding: 48px 0; background: var(--bg-2); }
.band-head { max-width: 640px; margin-bottom: 24px; }
.band-head p { color: var(--muted); font-size: 18px; }
.printable-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 18px; }
.printable-grid.single { grid-template-columns: minmax(0, 720px); }
.printable { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); align-items: start; }
.printable-thumb img { border-radius: 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.printable h3 { font-size: 17px; margin-bottom: 6px; }
.printable p { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.printable-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.printable .small a { font-weight: 600; }

/* ---------- How it works ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; position: relative; padding: 22px 20px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(s); position: absolute; top: 16px; right: 18px; font: 800 36px/1 var(--font-display); color: var(--line); }
.step-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent-dark); margin-bottom: 10px; }
.step-icon .icon { width: 24px; height: 24px; }
.steps p { margin: 0; }

/* ---------- Guides list ---------- */
.guide-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guide-cards a { display: grid; gap: 6px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; border-top: 4px solid var(--accent); }
.guide-cards a:hover { box-shadow: var(--shadow-md); }
.guide-cards strong { font: 800 18px/1.3 var(--font-display); }
.guide-cards span { color: var(--muted); font-size: 15px; }

/* ---------- Book page ---------- */
.book { display: grid; gap: 28px; padding-top: 16px; }
.book > *, .guide-layout > *, .hero-grid > *, .feature > * { min-width: 0; }
.book-info h1, .card-title, .feature-title { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 900px) { .book { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; } .book-gallery { position: sticky; top: 88px; } }
.gallery-main { display: grid; place-items: center; background: var(--t); border-radius: var(--radius); padding: clamp(16px, 4vw, 36px); min-height: 280px; }
.gallery-main img { max-height: 640px; width: auto; border-radius: 6px; box-shadow: var(--shadow-cover); }
.gallery-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.gallery-thumbs button { border: 0; padding: 0; background: var(--surface); border-radius: 8px; cursor: pointer; width: 76px; height: 76px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.gallery-thumbs button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--accent); }
.gallery-thumbs button[aria-pressed="true"] img, .gallery-thumbs button:hover img { opacity: 1; }
.book-info h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.subtitle { font-size: 18px; color: var(--muted); }
.byline { font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.facts li { background: var(--surface); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-sm); }
.facts span { display: block; font-size: 13px; color: var(--muted); }
.facts strong { font: 800 17px/1.3 var(--font-display); }
.buy-box { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-md); margin: 24px 0; border: 2px solid var(--t); }
.btn-buy { width: 100%; font-size: 19px; padding: 16px 24px; }
.buy-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.stores { margin-top: 12px; font-size: 15px; }
.stores summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); }
.stores ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.stores a { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg); text-decoration: none; color: var(--ink); }
.stores a:hover { background: var(--bg-2); }
.stores a span { display: block; font-size: 12px; color: var(--muted); }
.book-body { margin-top: 48px; }
.buy-bar { display: none; }
@media (max-width: 899px) {
  .book-page { padding-bottom: 76px; }
  .buy-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -4px 20px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .25s ease; }
  .buy-bar.show { transform: none; }
  .buy-bar-title { flex: 1; min-width: 0; font: 700 15px/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buy-bar .btn { width: auto; font-size: 16px; padding: 12px 18px; }
}
.lang-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pills a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-pills a:hover { box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- Share ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.share-label { font-weight: 700; font-size: 14px; color: var(--muted); margin-right: 4px; }
.share-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); text-decoration: none; }
.share-btn .icon { width: 20px; height: 20px; }
.share-btn:hover { color: #fff; box-shadow: none; background: var(--ink); }
.s-pinterest:hover { background: #e60023; } .s-facebook:hover { background: #1877f2; } .s-whatsapp:hover { background: #25d366; }
.s-telegram:hover { background: #229ed9; } .s-vk:hover { background: #0077ff; } .s-x:hover { background: #000; }
.share-btn.done { background: #1e8e5a; color: #fff; box-shadow: none; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; font-size: 18px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 10px; margin: 18px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose-intro { margin-top: 12px; }
.prose .tip { background: var(--bg-2); padding: 14px 18px; border-radius: 12px; }

/* ---------- Guide ---------- */
.guide-layout { display: grid; gap: 40px; margin-top: 12px; }
@media (min-width: 960px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 260px; } .guide-aside { position: sticky; top: 88px; align-self: start; } }
.guide-aside h2 { font-size: 18px; }
.aside-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
@media (min-width: 960px) { .aside-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: #1d2433; color: #d7dbe4; padding: 40px 0 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid p { color: #aeb5c4; font-size: 15px; margin-top: 12px; max-width: 40ch; }
.brand-footer { color: #fff; }
.footer-base { border-top: 1px solid #333c4f; margin-top: 28px; padding-top: 16px; font-size: 13px; color: #8f97a8; }

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