/* Final component layer: keep legacy page composition, unify shared UI at every breakpoint.
   Screen-only rules deliberately leave the printable PNG layout untouched. */
@media screen {
  :root {--ink:var(--ui-ink);--muted:var(--ui-muted);--purple:var(--ui-accent);--line:var(--ui-line);--secondary-copy:var(--ui-muted)}
  body {font-family:var(--ui-font);color:var(--ui-ink);font-size:16px;line-height:1.6;padding:24px 0;background-color:#f1eff7}
  .site-shell {width:calc(100% - 48px);max-width:1440px;margin-inline:auto;border-radius:28px;min-height:calc(100dvh - 48px);display:flex;flex-direction:column}
  .site-shell>main {flex:1;min-width:0}
  .site-shell .container,.catalog-page .container {width:calc(100% - 64px);max-width:1320px;margin-inline:auto}
  .site-shell .header {background:transparent;border-bottom:1px solid var(--ui-line)}
  .site-shell .header-inner {height:88px;min-height:88px;display:flex;flex-wrap:nowrap;gap:12px;padding-block:0}
  .site-shell .brand {font-size:30px;line-height:1;gap:8px;flex-shrink:0;color:#574187;white-space:nowrap}
  .site-shell .pencil-logo {width:40px;height:48px;flex-shrink:0}
  .site-shell .desktop-nav {display:flex;align-items:center;justify-content:center;gap:4px;order:0;flex:1;margin:0;min-width:0}
  .site-shell .desktop-nav a {font-size:14px;line-height:20px;min-height:44px;padding:12px 10px;white-space:nowrap;border-radius:10px;gap:6px;color:var(--ui-muted)}
  .site-shell .desktop-nav a.active,.site-shell .desktop-nav a:hover {background:var(--ui-soft);color:var(--ui-accent)}
  .site-shell .header-search,.site-shell .favorites-button,.site-shell .menu-button {width:44px;height:44px;min-width:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;color:var(--ui-accent);margin:0}
  .site-shell .header-search svg,.site-shell .favorites-button svg,.site-shell .menu-button svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .site-shell .header-search:hover,.site-shell .favorites-button:hover,.site-shell .menu-button:hover {background:var(--ui-soft)}
  .site-shell .menu-button {display:none}
  .site-shell .language {font-size:12px;line-height:20px;padding:4px 8px;border-radius:8px;color:var(--ui-muted);background:transparent;border:1px solid var(--ui-line)}
  .site-shell .mobile-nav {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px;padding:8px 16px 16px;border-top:1px solid var(--ui-line)}
  .site-shell .mobile-nav a {padding:10px 12px;min-height:44px;border-radius:10px;font-size:14px;line-height:24px;color:var(--ui-muted)}
  .site-shell .mobile-nav a.active {background:var(--ui-soft);color:var(--ui-accent);font-weight:700}
  .site-shell :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid var(--ui-accent);outline-offset:3px}
  .site-shell button:disabled {opacity:.5;cursor:not-allowed;transform:none}
  .site-shell .button,.site-shell .outline-button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:10px;font:700 14px/22px var(--ui-font);text-align:center;text-decoration:none;box-shadow:none}
  .site-shell .button {background:var(--ui-accent);color:#fff;border:1px solid var(--ui-accent)}
  .site-shell .button:hover {background:var(--ui-accent-hover);border-color:var(--ui-accent-hover)}
  .site-shell .outline-button {background:#fff;color:var(--ui-accent);border:1px solid #d4c9e6}
  .site-shell .outline-button:hover {background:var(--ui-soft);border-color:var(--ui-accent)}
  .site-shell .text-link {font-size:14px;line-height:22px;min-height:44px;display:inline-flex;align-items:center;gap:8px;color:var(--ui-accent)}
  .site-shell :is(.section,.topics.section,.learning,.seasons) {padding-block:24px}
  .site-shell .section-title,.site-shell .related-heading {margin:0 0 20px;gap:16px;align-items:flex-start}
  .site-shell .section-title h2,.site-shell .related-heading h2 {font-size:28px;line-height:1.3;letter-spacing:-.6px;margin:0;font-weight:800}
  .site-shell .section-title p,.site-shell .related-heading p {font-size:15px;line-height:1.6;color:var(--ui-muted);margin:8px 0 0;max-width:760px}
  .site-shell .center {margin-top:24px}
  .site-shell .hero {padding-block:24px;min-height:0;column-gap:32px}
  .hero .hero-copy {width:100%;min-width:0;container-type:normal}
  .hero h1 {font-size:clamp(32px,3.5vw,50px);line-height:1.15;letter-spacing:-1.3px;margin:0 0 20px}
  .hero h1>span {color:var(--ui-accent);margin-inline-start:0}
  .hero .hero-copy>p,.hero .hero-copy>p small {font-size:16px;line-height:1.6;white-space:normal;color:var(--ui-muted)}
  .hero .hero-copy>p {margin:0 0 24px;max-width:none}
  .hero .hero-art {width:100%;max-width:560px;margin:0;justify-self:center}
  .hero-discovery {padding:8px;border:1px solid var(--ui-line);border-radius:20px;background:#f8f6fc;box-shadow:none}
  .hero .search-form,.catalog-content .catalog-search {width:100%;max-width:none;height:56px;min-height:56px;padding:5px 5px 5px 16px;gap:12px;border:1px solid var(--ui-line);border-radius:12px;background:#fff;box-shadow:none;margin:0;display:flex;align-items:center}
  .hero .search-form input,.catalog-content .catalog-search input {font:400 16px/24px var(--ui-font);color:var(--ui-ink);min-width:0;flex:1;width:100%;height:44px;border:0;padding:0;background:transparent}
  .hero .search-form input::placeholder,.catalog-content .catalog-search input::placeholder {color:var(--ui-muted);opacity:1}
  .hero .search-form button,.catalog-content .catalog-search button {height:44px;min-height:44px;align-self:center;padding:10px 18px;border:0;border-radius:10px;background:var(--ui-accent);color:#fff;font:700 14px/24px var(--ui-font);box-shadow:none;white-space:nowrap}
  .hero .search-form button:hover,.catalog-content .catalog-search button:hover {background:var(--ui-accent-hover)}
  .hero .search-form:focus-within,.catalog-content .catalog-search:focus-within {border-color:var(--ui-accent);box-shadow:0 0 0 3px #7254b519}
  .hero .search-form input:focus-visible,.catalog-content .catalog-search input:focus-visible {outline:none}
  .hero .suggestions {display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;max-width:none}
  .hero .suggestions>a {display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;font-size:13px;line-height:22px;color:var(--ui-muted);border:1px solid var(--ui-line);box-shadow:none;border-radius:999px;background:#fff}
  .hero .suggestions>a:hover {background:var(--ui-soft);color:var(--ui-accent)}
  .hero .hero-notes {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
  .hero .hero-notes>span {display:flex;align-items:center;gap:8px;min-height:44px;height:auto;padding:8px;border-radius:10px;background:var(--ui-soft);white-space:normal}
  .hero .hero-note-copy strong {font-size:12px;line-height:1.4;white-space:normal;font-weight:600;color:var(--ui-muted)}
  .hero .hero-notes b {width:20px;height:20px;flex:0 0 20px;background:transparent;box-shadow:none}
  .hero .hero-notes b svg {width:20px;height:20px}
  .site-shell .card-grid,.site-shell .education-grid,.site-shell .related-colorings .card-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:stretch}
  .site-shell .coloring-card {display:flex;flex-direction:column;height:100%;min-width:0;border:1px solid var(--ui-line);border-radius:16px;background:#fff;box-shadow:none;overflow:hidden;transition:border-color .16s,box-shadow .16s}
  .site-shell .coloring-card:hover {transform:none;border-color:#baaad5;box-shadow:0 4px 16px #4632590c}
  .site-shell .coloring-card .card-picture {position:relative;flex:none;width:100%;aspect-ratio:1;height:auto;min-height:0;padding:12px;border:0;background:#fff}
  .site-shell .coloring-card .card-picture img {position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);object-fit:contain}
  .site-shell .coloring-card .card-body {display:flex;flex:1;flex-direction:column;min-width:0;padding:0 12px 12px}
  .site-shell .coloring-card .card-body h3 {font:700 14px/20px var(--ui-font);min-height:40px;margin:0 0 8px;white-space:normal;overflow:visible;overflow-wrap:anywhere;color:var(--ui-ink)}
  .site-shell .coloring-card .card-chips {display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:52px;margin:0 0 12px}
  .site-shell .coloring-card .card-chips>span {font-size:12px;line-height:18px;padding:2px 6px;border:0;border-radius:6px;max-width:100%;overflow-wrap:anywhere}
  .site-shell .coloring-card .category-chip {color:#644c89;background:var(--ui-soft)}
  .site-shell .coloring-card .age-chip {color:#586474;background:#f1f3f6}
  .site-shell .coloring-card .card-rating {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;min-height:24px;margin-top:auto}
  .site-shell .coloring-card .rating-stars {font-size:16px;letter-spacing:0;color:#dedee8}
  .site-shell .rating-stars-fill {color:#bf850d}
  .site-shell .coloring-card .rating-value,.site-shell .coloring-card .rating-votes {font-size:12px;line-height:20px;color:var(--ui-muted)}
  .site-shell .coloring-card .card-open {display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;margin:8px 0 0;font:700 13px/20px var(--ui-font);border:0;border-radius:10px;background:var(--ui-soft);color:var(--ui-accent);box-shadow:none;text-align:center}
  .site-shell .coloring-card .card-open:hover {background:#e6ddf4;color:var(--ui-accent-hover)}
  .site-shell .card-favorite.education-favorite {top:8px;right:8px;width:44px;height:44px;padding:10px;border:1px solid #eee8f5;border-radius:50%;background:#fffffff2;color:var(--ui-accent)}
  .site-shell .card-favorite.education-favorite svg {width:22px;height:22px;stroke-width:1.8}
  .site-shell .card-favorite.education-favorite.is-saved {background:var(--ui-soft);color:var(--ui-accent-hover)}
  .site-shell .topic-grid,.site-shell .collection-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .site-shell .topic {min-height:188px;border-radius:16px;padding:20px;box-shadow:none}
  .site-shell .topic-copy,.site-shell .topic:nth-child(6) .topic-copy {width:60%;min-height:0;gap:0}
  .site-shell .topic strong,.site-shell .topic:nth-child(6) strong {font-size:20px;line-height:1.3;letter-spacing:-.3px;max-width:none}
  .site-shell .topic small {font-size:14px;line-height:1.5;color:var(--ui-muted);max-width:none;margin:8px 0 16px}
  .site-shell .topic-art {width:40%;height:132px;right:0;bottom:0;margin:0}
  .site-shell .topic-arrow {margin-top:auto;width:32px;height:32px;box-shadow:none}
  .site-shell .age-section {margin:0;padding-block:24px;background:transparent;border:0}
  .site-shell .age-section>.container {width:calc(100% - 64px);max-width:1320px;padding:0;background:transparent;border-radius:0}
  .site-shell .age-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .site-shell .age-card {position:relative;min-height:152px;padding:20px;border-radius:16px;overflow:hidden;text-align:left;align-items:flex-start}
  .site-shell .age-copy {position:relative;top:auto;left:auto;width:60%;max-width:none;z-index:1}
  .site-shell .age-card strong {font-size:18px;line-height:1.3}
  .site-shell .age-card small,.site-shell .age-card:last-child small,.site-shell .age-card:nth-child(5) small {font-size:14px;line-height:1.5;max-width:none;margin-top:8px;color:var(--ui-muted)}
  .site-shell .age-character,.site-shell .age-card:last-child .age-character {position:absolute;width:38%;height:124px;right:4px;bottom:0;object-fit:contain;transform:none}
  .site-shell .collection-card {min-height:160px;border-radius:16px;padding:16px 44px 16px 12px;gap:12px;box-shadow:none}
  .site-shell .collection-copy strong {font-size:18px;line-height:1.3}
  .site-shell .collection-copy small {font-size:14px;line-height:1.5;color:var(--ui-muted)}
  .site-shell .season-grid {gap:16px}
  .site-shell .season {min-height:176px;padding:24px;border-radius:16px;gap:20px;box-shadow:none}
  .site-shell .season small,.site-shell .season em {font-size:13px;line-height:1.5;color:var(--ui-muted)}
  .site-shell .season strong {font-size:24px;line-height:1.3;margin:8px 0}
  .site-shell .season-symbol {flex-basis:100px;width:100px}
  .catalog-page .catalog-layout {display:grid;grid-template-columns:248px minmax(0,1fr);gap:24px;padding-block:24px 40px;align-items:start}
  .catalog-layout>.breadcrumbs {grid-column:1/-1;grid-row:1;margin:0}
  .catalog-layout>.catalog-intro {grid-column:1/-1;grid-row:2;min-height:0;width:100%;margin:0;padding:24px;border:1px solid var(--ui-line);border-radius:20px;background:#f2eef9}
  .catalog-intro h1 {font-size:32px;line-height:1.25;letter-spacing:-.6px;margin:0 0 12px;max-width:none;text-wrap:wrap}
  .catalog-intro>div {width:100%;max-width:none}
  .catalog-intro p {font-size:15px;line-height:1.6;color:var(--ui-muted);max-width:none}
  .catalog-page .catalog-layout>.catalog-content,.catalog-layout:has(.coloring-card:nth-child(25))>.catalog-content {grid-column:2;grid-row:3;align-self:start;gap:16px;padding:0;position:static}
  .catalog-page .catalog-layout>.catalog-sidebar {grid-column:1;grid-row:3;align-self:start;padding:12px;border-radius:16px;border-color:var(--ui-line);box-shadow:none;top:16px;max-height:none}
  .catalog-page .catalog-grid,.catalog-layout:has(.coloring-card:nth-child(25)) .catalog-grid {grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;flex:none;align-content:start;grid-auto-rows:auto}
  .catalog-layout:has(.coloring-card:nth-child(25)) .catalog-bottom,.catalog-content .catalog-bottom {position:static;top:auto;left:auto;right:auto;margin:8px 0 0;padding-top:20px}
  .catalog-content>#active-filters {margin:0;gap:8px;align-items:center;min-height:32px}
  #active-filters #result-count {margin:0 8px 0 0;font-size:14px;line-height:24px;color:var(--ui-muted);white-space:normal}
  .site-shell .filter-chip {margin:0;padding:4px 10px;min-height:32px;align-items:center;border:1px solid #e5dcef;background:var(--ui-soft);font-size:13px;line-height:22px}
  .site-shell .breadcrumbs,.site-shell .coloring-breadcrumbs {display:flex;flex-wrap:wrap;gap:8px;line-height:24px;font-size:13px;color:var(--ui-muted)}
  .site-shell .breadcrumbs a,.site-shell .coloring-breadcrumbs a {color:var(--ui-muted)}
  .site-shell .page-link {min-width:44px;min-height:44px;padding:8px 12px;border-radius:10px;border-color:var(--ui-line);font-size:14px;line-height:24px;color:var(--ui-accent)}
  .site-shell .page-link[aria-current] {background:var(--ui-accent);color:#fff;border-color:var(--ui-accent)}
  .site-shell #pagination,.site-shell .related-pagination {justify-content:center;gap:8px}
  .site-shell .catalog-empty {padding:40px 24px;background:#f8f6fc;border:1px solid var(--ui-line);border-radius:16px}
  .site-shell .catalog-empty h2 {font-size:24px;line-height:1.3;margin:12px 0;color:var(--ui-ink)}
  .site-shell .catalog-empty p {font-size:15px;line-height:1.6;color:var(--ui-muted);margin:0 0 20px}
  .site-shell .coloring-main {padding-block:24px 40px}
  .site-shell .coloring-layout {grid-template-columns:minmax(0,min(42%,480px)) minmax(0,1fr);align-items:start;padding:20px;gap:28px;border-radius:20px;border-color:var(--ui-line);box-shadow:none}
  .site-shell .drawing-preview {padding:0;border:0;border-radius:12px;background:#fff;align-self:start}
  .site-shell .drawing-sheet {border:1px solid var(--ui-line);border-radius:12px;box-shadow:none}
  .site-shell .drawing-sheet img {inset:16px;width:calc(100% - 32px);height:calc(100% - 32px)}
  .site-shell .drawing-sheet .detail-favorite {top:12px;right:12px;border-radius:10px}
  .site-shell .drawing-info {padding:4px 0 0;gap:14px}
  .site-shell .drawing-info h1 {font-size:30px;line-height:1.25;letter-spacing:-.6px}
  .site-shell .drawing-description {white-space:normal;overflow:visible;text-overflow:clip;font-size:16px;line-height:1.6;color:var(--ui-muted)}
  .site-shell .drawing-tags span {font-size:13px;line-height:20px;padding:4px 8px;border-radius:6px}
  .site-shell .drawing-actions {gap:12px}
  .site-shell .drawing-actions .button,.site-shell .drawing-actions .outline-button {min-height:48px;border-radius:10px;font-size:15px;padding:12px}
  .site-shell .drawing-about {margin:0;padding:18px 0 0;border:0;border-top:1px solid var(--ui-line);border-radius:0;background:transparent}
  .site-shell .drawing-about h2 {font-size:20px;line-height:1.4;margin-bottom:8px;letter-spacing:-.3px}
  .site-shell .drawing-about p {font-size:15px;line-height:1.7;color:var(--ui-muted)}
  .site-shell .drawing-actions {margin-bottom:4px}
  .site-shell .coloring-vote legend {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .site-shell .rating-control {gap:8px 16px}
  .site-shell .related-colorings {margin-top:32px}
  .site-shell .closing p,.site-shell .closing strong {font:500 16px/1.7 var(--ui-font);color:var(--ui-muted)}
  .site-shell footer {margin-top:24px;padding:24px 0 16px;border-top:1px solid var(--ui-line);background:#f8f6fc}
  .site-shell .footer-universal-main {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px}
  .site-shell .footer-universal-brand {display:flex;flex-direction:row;align-items:center;gap:16px;min-width:0}
  .site-shell .footer-universal-main .brand {font-size:24px;min-height:44px}
  .site-shell .footer-universal-main .pencil-logo {width:30px;height:36px}
  .site-shell .footer-universal-tagline {margin:0;font-size:13px;line-height:1.45;color:var(--ui-muted);text-align:left;max-width:180px}
  .site-shell .footer-universal-actions,.site-shell .footer-universal-contact {display:flex;align-items:center;margin:0}
  .site-shell .footer-universal-actions>strong,.site-shell .footer-universal-contact>strong {font-size:13px;line-height:20px;font-weight:700;color:var(--ui-ink)}
  .site-shell .footer-universal-actions>div {display:flex;flex-wrap:nowrap;align-items:center;gap:16px}
  .site-shell .footer-universal-actions a,.site-shell .footer-universal-contact a {display:inline-flex;align-items:center;min-height:40px;font-size:14px;line-height:22px;color:var(--ui-muted);text-decoration:none}
  .site-shell .footer-universal-actions a:hover,.site-shell .footer-universal-contact a:hover {color:var(--ui-accent)}
  .site-shell .footer-universal-actions a.active {color:var(--ui-accent);font-weight:700}
  .site-shell .footer-universal-contact a {gap:8px;overflow-wrap:anywhere}
  .site-shell .footer-universal-contact {justify-self:end}
  .site-shell .footer-universal-contact svg {width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .site-shell .footer-universal-bottom {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding-top:12px;font-size:12px;line-height:20px;color:var(--ui-muted);border-top:1px solid var(--ui-line)}
  .site-status:not(:empty) {max-width:560px;left:16px;right:16px;margin-inline:auto;bottom:16px;padding:16px;font-size:14px;border:1px solid var(--ui-line);box-shadow:0 8px 32px #30334620;border-radius:12px}
  .site-shell .empty-page {display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:16px;min-height:360px;padding-block:48px}
  .site-shell .empty-page h1 {font-size:32px;line-height:1.25;margin:0}
  .site-shell .empty-page p {margin:0;color:var(--ui-muted)}
}
@media screen and (min-width:761px) {
  .site-shell .hero {align-items:stretch}
  .site-shell .hero-copy {display:flex;flex-direction:column;align-self:stretch}
  .site-shell .hero-copy .hero-notes {margin-top:auto}
  .site-shell .hero-art {display:flex;align-items:stretch;align-self:stretch}
  .site-shell .hero-art>img {width:100%;height:100%;object-fit:contain}
}
@media screen and (min-width:1100px) {
  .site-shell #popular-grid,.site-shell #education-grid,.site-shell #related-grid {grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media screen and (max-width:1099px) {
  .site-shell .desktop-nav {display:none}
  .site-shell .header-inner {height:76px;min-height:76px;gap:8px}
  .site-shell .header-inner>.brand {margin-right:auto}
  .site-shell .menu-button {display:inline-flex}
  .site-shell .language {display:none}
  .site-shell .card-grid,.site-shell .education-grid,.site-shell .related-colorings .card-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
  .site-shell .collection-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-shell .topic-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-shell .footer-universal-main {grid-template-columns:1fr auto}
  .site-shell .footer-universal-brand {grid-column:1/-1}
  .site-shell .footer-universal-contact {grid-column:2}
}
@media screen and (min-width:761px) and (max-width:899px) {
  .site-shell .hero {grid-template-columns:1fr 0.7fr;gap:20px;align-items:stretch}
  .hero .hero-art {align-self:stretch}
  .hero .hero-notes {grid-template-columns:1fr}
  .site-shell .card-grid,.site-shell .education-grid,.site-shell .related-colorings .card-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-page .catalog-layout {grid-template-columns:220px minmax(0,1fr);gap:16px}
  .catalog-page .catalog-grid,.catalog-layout:has(.coloring-card:nth-child(25)) .catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-shell .coloring-layout {grid-template-columns:1fr;max-width:720px;margin-inline:auto}
  .site-shell .drawing-preview {max-width:400px;justify-self:center}
  .site-shell .drawing-actions {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (min-width:900px) and (max-width:1099px) {
  .site-shell .coloring-layout {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}
  .site-shell .drawing-info>h1 {font-size:26px}
  .site-shell .drawing-actions {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:760px) {
  body {padding:0;background:#faf9fd}
  .site-shell,.catalog-page .site-shell {width:100%;min-height:100dvh;border-radius:0;box-shadow:none}
  .site-shell .container,.catalog-page .container,.site-shell .age-section>.container {width:calc(100% - 32px);margin-inline:auto}
  .site-shell .header-inner {height:72px;min-height:72px;gap:4px}
  .site-shell .brand {font-size:26px;letter-spacing:-1px;gap:4px}
  .site-shell .pencil-logo {width:30px;height:40px}
  .site-shell .hero {grid-template-columns:1fr;gap:20px;padding-block:24px}
  .hero h1 {font-size:34px;line-height:1.15;letter-spacing:-1px;text-wrap:pretty}
  .hero h1 br {display:none}
  .hero h1>span {margin-left:.15em}
  .hero .hero-art {width:100%;max-width:400px;aspect-ratio:auto}
  .hero .hero-notes {grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero .hero-notes>span {flex-direction:column;gap:4px;text-align:center;padding:8px 4px}
  .hero .hero-note-copy strong {font-size:12px}
  .site-shell .section-title h2,.site-shell .related-heading h2 {font-size:24px}
  .site-shell .section-title {flex-wrap:wrap}
  .site-shell .section-title p {font-size:15px;max-width:none}
  .site-shell .section-title>.text-link {max-width:none;text-align:left;padding:0}
  .site-shell .card-grid,.site-shell .education-grid,.site-shell .related-colorings .card-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .site-shell .coloring-card .card-body {padding:0 10px 10px}
  .site-shell .coloring-card .card-body h3 {font-size:14px;line-height:20px}
  .site-shell .coloring-card .card-picture {padding:10px}
  .site-shell .coloring-card .card-picture img {inset:10px;width:calc(100% - 20px);height:calc(100% - 20px)}
  .site-shell .coloring-card .card-open {font-size:12px;min-height:44px}
  .site-shell .topic-grid,.site-shell .age-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .site-shell .topic {min-height:240px;padding:16px}
  .site-shell .topic-copy,.site-shell .topic:nth-child(6) .topic-copy {width:100%;height:100%;padding-bottom:64px;position:relative}
  .site-shell .topic strong,.site-shell .topic:nth-child(6) strong {font-size:18px;line-height:1.3}
  .site-shell .topic small {font-size:13px;margin:8px 0 12px}
  .site-shell .topic-art {height:76px;width:52%;right:4px;bottom:4px}
  .site-shell .topic-arrow {position:absolute;bottom:0;left:0}
  .site-shell .age-card {min-height:196px;padding:16px}
  .site-shell .age-copy {width:100%;padding-bottom:68px}
  .site-shell .age-card strong {font-size:18px}
  .site-shell .age-card small,.site-shell .age-card:last-child small,.site-shell .age-card:nth-child(5) small {font-size:13px}
  .site-shell .age-character,.site-shell .age-card:last-child .age-character {height:80px;width:56%;right:4px;bottom:0}
  .site-shell .collection-grid,.site-shell .season-grid {grid-template-columns:1fr;gap:12px}
  .site-shell .collection-card {min-height:132px;padding:16px 44px 16px 12px}
  .site-shell .collection-card>img {height:100px;width:32%}
  .site-shell .season {min-height:140px;padding:20px}
  .site-shell .season strong {font-size:24px}
  .catalog-page .catalog-layout {display:flex;flex-direction:column;gap:16px;padding-block:16px 32px}
  .catalog-layout>.catalog-intro {padding:20px;border-radius:16px;min-height:0}
  .catalog-intro h1 {font-size:28px;line-height:1.25}
  .catalog-intro>img {display:none}
  .catalog-intro p {font-size:15px}
  .catalog-page .catalog-layout>.catalog-content {width:100%;gap:16px}
  .catalog-page .catalog-grid,.catalog-layout:has(.coloring-card:nth-child(25)) .catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .catalog-page .catalog-layout>.catalog-sidebar {position:static;max-height:none;width:100%}
  .catalog-filter-toggle {width:100%;min-height:44px;margin:0;border-radius:10px;padding:10px 16px;font-size:14px;line-height:24px;color:var(--ui-accent);border-color:var(--ui-line)}
  .catalog-filter-toggle[aria-expanded=true] {background:var(--ui-soft);border-color:#cdbbdf}
  .site-shell .coloring-main {padding-block:16px 32px}
  .site-shell .coloring-layout {padding:16px;gap:24px;border-radius:16px;grid-template-columns:1fr}
  .site-shell .drawing-info h1 {font-size:28px}
  .site-shell .drawing-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .site-shell .drawing-actions .button,.site-shell .drawing-actions .outline-button {font-size:14px;padding:10px 8px}
  .site-shell .catalog-empty {padding:32px 16px}
  .site-shell footer {padding-top:24px}
  .site-shell .footer-universal-main {grid-template-columns:1fr;gap:24px}
  .site-shell .footer-universal-brand {grid-column:auto;flex-direction:column;align-items:flex-start;gap:8px}
  .site-shell .footer-universal-contact {grid-column:auto}
  .site-shell .footer-universal-actions>div {flex-wrap:wrap;gap:2px 16px}
  .site-shell .footer-universal-bottom {flex-wrap:wrap;gap:4px;margin-top:24px}
  .site-shell .empty-page {min-height:360px}
}
@media screen and (max-width:359px) {
  .site-shell .brand {font-size:22px}.site-shell .pencil-logo {width:24px;height:36px}
  .site-shell .header-inner {gap:0}
  .hero h1 {font-size:30px}
  .hero .search-form,.catalog-content .catalog-search {padding-left:10px;gap:8px}
  .hero .search-form button,.catalog-content .catalog-search button {padding-inline:12px}
  .site-shell .drawing-actions {grid-template-columns:1fr}
  .site-shell .coloring-card .card-rating {gap:0 4px}
}
@media (prefers-reduced-motion:reduce) {
  .site-shell * {scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
