/**
 * Tiny Color Book - Modern Responsive Design System
 * Clean Craft-Studio aesthetic, mobile-first breakpoints, accessible contrast.
 */

:root {
  --font-sans: 'Poppins', 'Poppins Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Brand Palette */
  --primary: #6040A8;
  --primary-hover: #493080;
  --primary-light: #F2ECFC;
  --primary-dark: #321F5E;

  --coral: #C4365C;
  --coral-hover: #A42748;
  --coral-light: #FDEAF0;

  --amber: #B77012;
  --amber-light: #FEF1CE;

  --emerald: #2D755C;
  --emerald-light: #E2F4EA;

  --sky: #2A6A8C;
  --sky-light: #E2F1F9;

  --purple: #7B52C7;
  --purple-light: #EFE8FC;

  /* Surfaces & Ink */
  --slate-900: #291E3A;
  --slate-800: #3B2F4D;
  --slate-700: #4F4260;
  --slate-600: #635675;
  --slate-500: #776A89;
  --slate-400: #9184A3;
  --slate-300: #D9CFE6;
  --slate-200: #EAE3F2;
  --slate-100: #F7F3FA;
  --slate-50:  #FFFDF9;
  --white:     #FFFFFF;

  /* Elevations */
  --shadow-xs: 0 1px 2px rgba(41, 30, 58, 0.05);
  --shadow-sm: 0 2px 6px rgba(41, 30, 58, 0.06), 0 1px 2px rgba(41, 30, 58, 0.04);
  --shadow-md: 0 8px 20px -4px rgba(41, 30, 58, 0.09), 0 2px 6px -2px rgba(41, 30, 58, 0.04);
  --shadow-lg: 0 16px 32px -6px rgba(41, 30, 58, 0.12), 0 4px 10px -3px rgba(41, 30, 58, 0.05);
  --shadow-xl: 0 24px 44px -8px rgba(41, 30, 58, 0.16);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --max-w: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
[id], section[id], article[id], #site-footer, #site-top {
  scroll-margin-top: 84px;
}
body {
  font-family: var(--font-sans);
  background-color: #FAF8FD;
  color: var(--slate-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
body.nav-drawer-open {
  overflow: hidden;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.22;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Skip Link & Reading Progress */
.skip {
  position: absolute; top: -999px; left: 1rem; z-index: 9999;
  background: var(--primary); color: var(--white); padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: 1rem; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 55%, var(--coral) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 999;
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Container */
.wrap {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

/* Breadcrumb */
.tcb-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--slate-500);
  margin: 0.5rem 0 1.5rem;
}
.tcb-breadcrumb a {
  color: var(--slate-600);
}
.tcb-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tcb-breadcrumb-sep {
  color: var(--slate-400);
  font-size: 0.78rem;
}
.tcb-breadcrumb-current {
  color: var(--slate-900);
  font-weight: 600;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 0.75rem 0 0.25rem;
  pointer-events: none;
}
.header-box,
.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 64px;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  box-shadow: 0 8px 24px -6px rgba(41, 30, 58, 0.08), 0 2px 6px rgba(41, 30, 58, 0.035);
  pointer-events: auto;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  height: 42px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.header-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.8vw, 0.5rem);
}
.header-nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
}
.header-nav-links a:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}
.header-nav-links a.active,
.header-cat-trigger.active,
.header-cat-trigger[aria-expanded="true"] {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.header-cat-dropdown {
  position: relative;
}
.header-cat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.header-cat-trigger:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}
.header-cat-chevron {
  transition: transform 0.2s ease;
}
.header-cat-trigger[aria-expanded="true"] .header-cat-chevron {
  transform: rotate(180deg);
}
.header-cat-drawer {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 88vw);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  z-index: 130;
}
.header-cat-drawer[hidden] {
  display: none;
}
.header-cat-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem 0.65rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}
.header-cat-drawer-head a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}
.header-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.header-cat-item {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem !important;
  border-radius: 12px !important;
  color: var(--slate-800) !important;
  transition: background 0.18s ease, color 0.18s ease;
}
.header-cat-item:hover,
.header-cat-item.is-current {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}
.header-cat-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.header-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header-cat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.header-cat-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}
.header-cat-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate-500);
}

.header-search-form {
  display: inline-flex;
  align-items: center;
  background: var(--slate-100);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0 0.85rem;
  height: 38px;
  width: clamp(160px, 14.5vw, 205px);
  gap: 0.5rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, width 0.25s var(--ease);
}
.header-search-form:focus-within {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 64, 168, 0.12);
  width: clamp(185px, 17vw, 235px);
}
.search-icon {
  color: var(--slate-400);
  flex-shrink: 0;
}
.header-search-form:focus-within .search-icon {
  color: var(--primary);
}
.header-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8125rem;
  width: 100%;
  min-width: 0;
  height: 100%;
  color: var(--slate-800);
}
.header-search-input::placeholder { color: var(--slate-400); }

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mobile-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.mobile-toggle .icon-close { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-menu { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(41, 30, 58, 0.42);
  backdrop-filter: blur(3px);
  z-index: 110;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   AdSense Slots
   ========================================================================== */
.tcb-ad-wrapper {
  margin: 2rem auto;
  text-align: center;
  width: 100%;
  max-width: var(--max-w);
}
.tcb-ad-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.tcb-ad-box {
  background: var(--slate-100);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ==========================================================================
   Homepage Studio Hero
   ========================================================================== */
.print-desk {
  position: relative;
  overflow: hidden;
  background: transparent;
}
.desk-ambient {
  display: none;
}
.desk-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.75rem, 3.8vw, 3.5rem) clamp(1.75rem, 3.5vw, 3rem);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(96, 64, 168, 0.18);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.15rem;
}
.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(45, 117, 92, 0.18);
}

.desk-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--slate-900);
}
.hero-gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 55%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.desk-subtitle {
  max-width: 48ch;
  margin: 1rem 0 1.45rem;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--slate-600);
  line-height: 1.7;
}

.library-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  padding: 4px 4px 4px 1rem;
  border: 1.5px solid var(--slate-300);
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  gap: 0.55rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.library-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(96, 64, 168, 0.12), var(--shadow-md);
}
.library-search-lead-icon {
  color: var(--slate-400);
  flex-shrink: 0;
}
.library-search input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.25rem;
  font-size: 0.95rem;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--slate-900);
}
.library-search input::placeholder { color: var(--slate-400); }
.library-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.library-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(96, 64, 168, 0.28);
}

.hero-quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.quick-tags-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-right: 0.15rem;
}
.quick-tag {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}
.quick-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.desk-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  margin-top: 1.45rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.45rem;
  border-radius: var(--radius-full);
  background: var(--slate-900);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}
.btn-hero-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-hero-secondary:hover {
  color: var(--primary);
  transform: translateX(2px);
}

/* Featured Sheet Showcase Card */
.desk-showcase {
  position: relative;
  max-width: 470px;
  width: 100%;
  margin-inline: auto;
}
.desk-card-back {
  display: none;
}
.desk-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 20px 44px -12px rgba(41, 30, 58, 0.13), 0 4px 12px rgba(41, 30, 58, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.desk-bar, .desk-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.desk-bar {
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--slate-100);
  background: var(--white);
}
.desk-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.desk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.desk-bar-meta {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}
.desk-sheet {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.35rem 1.35rem;
  background: radial-gradient(rgba(96, 64, 168, 0.16) 1px, transparent 1px) 0 0 / 13px 13px, var(--primary-light);
}
.desk-sheet::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  width: 62px;
  height: 15px;
  border-radius: 3px;
  background: rgba(245, 194, 73, 0.85);
  box-shadow: 0 1px 2px rgba(41, 30, 58, 0.12);
  transform: rotate(-4deg);
}
.desk-sheet img {
  width: auto;
  max-width: 90%;
  height: clamp(195px, 21vw, 265px);
  aspect-ratio: 210 / 297;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(41, 30, 58, 0.07);
  padding: 0.65rem;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(50, 31, 94, 0.14);
  transition: transform 0.35s var(--ease);
}
.desk-card:hover .desk-sheet img {
  transform: scale(1.03);
}
.desk-details {
  padding: 0.95rem 1.2rem;
  background: var(--white);
  border-top: 1px solid var(--slate-100);
}
.desk-level-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-500);
}
.desk-details h2 {
  margin-top: 0.15rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}
.desk-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  flex: none;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.desk-open-btn:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* ==========================================================================
   Feature Assurance Strip
   ========================================================================== */
.features-strip-wrap {
  padding-top: 1.75rem;
}
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 64, 168, 0.25);
}
.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.bg-indigo  { background: var(--primary-light); color: var(--primary); }
.bg-rose    { background: var(--coral-light); color: var(--coral); }
.bg-amber   { background: var(--amber-light); color: var(--amber); }
.bg-emerald { background: var(--emerald-light); color: var(--emerald); }
.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
}
.feature-sub {
  font-size: 0.78rem;
  color: var(--slate-500);
  line-height: 1.35;
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section { padding: clamp(2.75rem, 5vw, 4.25rem) 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.section-header-centered {
  text-align: center;
  justify-content: center;
  margin-bottom: 2.75rem;
}
.section-header-centered > div {
  max-width: 720px;
}
.section-header-centered .section-desc {
  margin-inline: auto;
}
.section-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.025em;
}
.section-desc {
  font-size: 0.98rem;
  color: var(--slate-600);
  margin-top: 0.4rem;
  max-width: 58ch;
}
.section-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.home-level-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 0.25rem;
}
.level-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all 0.18s ease;
}
.level-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.view-all-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateX(2px);
}

/* ==========================================================================
   Collection Strip (Chips & Homepage Theme Tiles)
   ========================================================================== */
.theme-shelf { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.shelf-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}
.shelf-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.collection-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.collection-strip::-webkit-scrollbar { display: none; }
.collection-strip-wrap {
  flex-wrap: wrap;
  overflow-x: visible;
  padding: 0;
}

.collection-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 5px 15px 5px 6px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--slate-900);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.collection-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.collection-chip[aria-current="page"],
.collection-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.collection-chip-art {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
}
.collection-chip-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--white);
}
.collection-chip-tiles {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
}
.collection-chip-tiles > span {
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
}
.collection-chip[aria-current="page"] .collection-chip-tiles > span {
  background: var(--primary);
}
.collection-chip-text { display: grid; gap: 1px; white-space: nowrap; }
.collection-chip-name { font-size: 0.84rem; font-weight: 700; line-height: 1.2; }
.collection-chip-count { font-size: 0.72rem; font-weight: 500; color: var(--slate-500); line-height: 1.2; }
.collection-chip[aria-current="page"] .collection-chip-count,
.collection-chip[aria-pressed="true"] .collection-chip-count {
  color: rgba(255, 255, 255, 0.85);
}

/* Homepage Theme Tile Grid */
.theme-shelf .collection-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.4vw, 1.25rem);
  padding: 0;
  overflow: visible;
}
.theme-shelf .collection-chip {
  --tile-paper: var(--primary-light);
  display: grid;
  grid-template-columns: clamp(64px, 5.5vw, 84px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1.15rem);
  min-height: 112px;
  height: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(41, 30, 58, 0.045);
}
.theme-shelf .collection-chip:nth-child(4n+2) { --tile-paper: var(--emerald-light); }
.theme-shelf .collection-chip:nth-child(4n+3) { --tile-paper: var(--amber-light); }
.theme-shelf .collection-chip:nth-child(4n)   { --tile-paper: var(--coral-light); }

.theme-shelf .collection-chip-art {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.6;
  padding: 5px;
  background: var(--tile-paper);
  border: 1px solid rgba(41, 30, 58, 0.07);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(41, 30, 58, 0.07);
  transform: rotate(-3deg);
  transition: transform 0.25s var(--ease);
}
.theme-shelf .collection-chip:hover .collection-chip-art {
  transform: rotate(0deg) scale(1.04);
}
.theme-shelf .collection-chip-art img {
  object-fit: contain;
}
.theme-shelf .collection-chip-all {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border-color: transparent;
}
.theme-shelf .collection-chip-all .collection-chip-art {
  background: var(--primary-light);
}
.theme-shelf .collection-chip-all .collection-chip-count {
  color: rgba(255, 255, 255, 0.85);
}
.theme-shelf .collection-chip-tiles { grid-template-columns: repeat(2, 12px); gap: 4px; }
.theme-shelf .collection-chip-tiles > span { height: 12px; border-radius: 3px; background: var(--primary); }
.theme-shelf .collection-chip-text { gap: 3px; white-space: normal; overflow-wrap: anywhere; }
.theme-shelf .collection-chip-name { font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 700; }
.theme-shelf .collection-chip-count { font-size: 0.82rem; }
.theme-shelf .collection-chip:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ==========================================================================
   Coloring Sheet Card Grid
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.color-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  box-shadow: 0 6px 24px rgba(41, 30, 58, 0.065), 0 1px 4px rgba(41, 30, 58, 0.035);
  position: relative;
}
.color-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(96, 64, 168, 0.14), 0 4px 12px rgba(96, 64, 168, 0.07);
}

.collection-hero-card:nth-child(4n + 1) { --preview-paper: var(--primary-light); }
.collection-hero-card:nth-child(4n + 2) { --preview-paper: var(--coral-light); }
.collection-hero-card:nth-child(4n + 3) { --preview-paper: var(--emerald-light); }
.collection-hero-card:nth-child(4n)     { --preview-paper: var(--amber-light); }

.sheet-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  padding: 0.9rem 0.9rem 0.45rem;
  aspect-ratio: 4 / 5;
}
.sheet-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
  border-radius: 0;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.34s var(--ease);
}
.color-card:hover .sheet-link img {
  transform: scale(1.035);
}

.sheet-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: var(--shadow-xs);
}
.level-easy     { background: #DCFCE7; color: #166534; }
.level-medium   { background: #E0F2FE; color: #075985; }
.level-detailed { background: #F3E8FF; color: #6B21A8; }

.color-card .sheet-badge {
  top: 0.85rem;
  left: 0.85rem;
  border: none;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.015em;
  padding: 0.24rem 0.68rem;
  box-shadow: 0 2px 8px rgba(41, 30, 58, 0.06);
}
.color-card .sheet-badge.level-easy     { background: #EAFBF0; color: #15803D; }
.color-card .sheet-badge.level-medium   { background: #EEF6FF; color: #0369A1; }
.color-card .sheet-badge.level-detailed { background: #F3EEFF; color: #6040A8; }

.card-body {
  padding: 0.78rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  background: linear-gradient(180deg, #FCF9FF 0%, var(--white) 100%);
  border-top: 1px solid rgba(96, 64, 168, 0.07);
}
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(96, 64, 168, 0.08);
  padding: 0.16rem 0.56rem;
  border-radius: var(--radius-full);
  width: fit-content;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
a.card-category:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}
.card-free-tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9A90AC;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.38;
  margin: 0;
  overflow-wrap: anywhere;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }

/* ==========================================================================
   SEO Articles, Printing Guide & FAQ
   ========================================================================== */
.seo-articles-section {
  background: transparent;
  padding: clamp(2.5rem, 4.5vw, 3.75rem) 0;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
.article-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 6px 24px rgba(41, 30, 58, 0.05), 0 1px 4px rgba(41, 30, 58, 0.03);
  position: relative;
  overflow: hidden;
}
.article-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}
.article-item-kids::before { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.article-item-adults::before { background: linear-gradient(90deg, var(--primary), var(--emerald)); }
.article-header-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.article-icon { font-size: 1.3rem; }
.article-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}
.article-item h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.article-item p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.72;
  margin-bottom: 1.15rem;
}
.article-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.article-checklist li {
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--slate-700);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.article-checklist li::before {
  content: "";
  width: 0.42rem;
  height: 0.72rem;
  margin-top: 0.25rem;
  border-right: 2.5px solid var(--emerald);
  border-bottom: 2.5px solid var(--emerald);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.print-guide-section {
  padding: clamp(2.5rem, 4.5vw, 3.75rem) 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.35rem;
  box-shadow: 0 6px 24px rgba(41, 30, 58, 0.05), 0 1px 4px rgba(41, 30, 58, 0.03);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 10px rgba(96, 64, 168, 0.22);
}
.step-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.45rem; }
.step-card p  { font-size: 0.875rem; color: var(--slate-600); line-height: 1.6; }

/* FAQ Accordion */
.faq-section {
  background: transparent;
  padding: clamp(2.5rem, 4.5vw, 3.75rem) 0 1.25rem;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 92px;
}
.faq-intro .section-desc {
  margin-top: 0.6rem;
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-contact-link:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}
.faq-list {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(41, 30, 58, 0.05), 0 1px 4px rgba(41, 30, 58, 0.03);
}
.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.2s ease;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item[open] {
  background: #FCFAFF;
}
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  list-style: none;
  transition: color 0.18s ease;
}
.faq-item summary:hover {
  color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-700);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--primary-light);
  color: var(--primary);
}
.faq-content {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.7;
}
.faq-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Archive, Category & Collections Templates
   ========================================================================== */
.archive-main,
.collections-page-main,
.error-page {
  padding: 1.75rem 0 4.5rem;
}

.archive-hero-card {
  background: linear-gradient(135deg, #FFF7DF 0%, #FFFDF7 60%, #F4EDFF 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.archive-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 50%, var(--coral) 100%);
}
.archive-hero-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.archive-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--white);
  border: 1px solid rgba(96, 64, 168, 0.16);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}
.archive-count-chip {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--slate-200);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}
.archive-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}
.archive-hero-desc {
  font-size: 1rem;
  color: var(--slate-600);
  max-width: 68ch;
  line-height: 1.68;
  margin-bottom: 1.6rem;
}

.archive-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.archive-search-wrapper {
  flex: 1 1 220px;
  position: relative;
  display: flex;
  align-items: center;
}
.archive-search-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--slate-400);
  pointer-events: none;
  width: 17px;
  height: 17px;
}
.archive-search-input {
  width: 100%;
  height: 46px;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0 1rem 0 2.65rem;
  font-size: 0.9375rem;
  color: var(--slate-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.archive-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 64, 168, 0.12);
}

.archive-select-wrapper {
  position: relative;
  flex: 0 1 240px;
  min-width: 200px;
}
.archive-filter-select {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--white);
  background-image: none !important;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.6rem 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
  outline: none;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.archive-filter-select::picker-icon {
  display: none !important;
}
.archive-filter-select::-ms-expand {
  display: none;
}
.archive-filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 64, 168, 0.12);
}
.archive-select-arrow {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--slate-500);
  width: 16px;
  height: 16px;
}

.archive-filter-btn {
  height: 46px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0 1.45rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.18s ease;
}
.archive-filter-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.archive-quick-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(41, 30, 58, 0.08);
}
.archive-pills-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-500);
  white-space: nowrap;
}
.archive-pills-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.archive-pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  transition: all 0.2s ease;
}
.archive-pill-link:hover,
.archive-pill-link.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.archive-hero-card.has-category-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 2rem;
  align-items: center;
}
.archive-hero-art {
  display: flex;
  justify-content: center;
}
.archive-hero-art-frame {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 240px;
}
.archive-hero-art-frame img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
.archive-hero-art-badge {
  position: absolute;
  bottom: -11px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.archive-collection-strip {
  margin-bottom: 1.75rem;
}

.empty-catalog-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
}
.empty-state-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.65rem;
}
.empty-catalog-state h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.empty-catalog-state p {
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

/* Pagination */
.tcb-pagination {
  margin-top: 2.75rem;
  display: flex;
  justify-content: center;
}
.archive-seo-section {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--slate-200);
}
.archive-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}
.archive-seo-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 6px 24px rgba(41, 30, 58, 0.05), 0 1px 4px rgba(41, 30, 58, 0.03);
}
.archive-seo-card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.archive-seo-card p {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}
.archive-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.archive-seo-links a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.36rem 0.85rem;
  border-radius: var(--radius-full);
  transition: background 0.18s ease, color 0.18s ease;
}
.archive-seo-links a:hover {
  background: var(--primary);
  color: var(--white);
}
.tcb-pagination .nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.tcb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tcb-pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.tcb-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Collections Directory */
.collections-header {
  padding: 0.5rem 0 2rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--slate-200);
}
.collections-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.collections-header-meta .section-kicker {
  margin-bottom: 0;
}
.collections-total-dot {
  color: var(--slate-300);
}
.collections-total-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
}
.collections-page-title {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.65rem;
}
.collections-page-desc {
  font-size: 1.02rem;
  color: var(--slate-600);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}
.collections-jump-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.collections-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.2s ease;
}
.collections-jump-link span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-400);
}
.collections-jump-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.collections-jump-link:hover span {
  color: var(--primary);
}

.collections-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.collection-hero-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(41, 30, 58, 0.065), 0 1px 4px rgba(41, 30, 58, 0.035);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}
.collection-hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(96, 64, 168, 0.14), 0 4px 12px rgba(96, 64, 168, 0.07);
}
.col-card-art {
  height: 230px;
  background:
    radial-gradient(rgba(96, 64, 168, 0.12) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--preview-paper, var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
}
.col-paper-frame {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 210 / 297;
  background: var(--white);
  border: 1px solid rgba(41, 30, 58, 0.07);
  border-radius: 4px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -6px rgba(41, 30, 58, 0.15), 0 3px 8px -2px rgba(41, 30, 58, 0.07);
  transition: transform 0.35s var(--ease);
}
.col-paper-frame::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 44px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(254, 241, 206, 0.92) 0%, rgba(248, 224, 162, 0.85) 100%);
  box-shadow: 0 1px 3px rgba(41, 30, 58, 0.12);
  pointer-events: none;
}
.collection-hero-card:hover .col-paper-frame {
  transform: translateY(-2px) scale(1.03);
}
.col-paper-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.col-count-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.col-card-content {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.col-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.col-title { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.015em; }
.col-title a { color: inherit; }
.col-title a:hover { color: var(--primary); }
.col-description {
  font-size: 0.89rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.col-card-footer {
  display: flex;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--slate-100);
}
.col-btn-view {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-800);
  transition: color 0.2s ease;
}
.col-btn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.collection-hero-card:hover .col-btn-view {
  color: var(--primary);
}
.collection-hero-card:hover .col-btn-arrow {
  background: var(--primary);
  color: var(--white);
  transform: translateX(3px);
}

.collections-guide-box {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--slate-200);
}
.collections-guide-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}
.guide-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--coral);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.45rem;
}
.collections-guide-header h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.collections-guide-header p { color: var(--slate-600); font-size: 0.96rem; }
.collections-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.pillar-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  text-align: left;
  box-shadow: 0 4px 18px rgba(41, 30, 58, 0.05), 0 1px 3px rgba(41, 30, 58, 0.03);
}
.pillar-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}
.pillar-card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 0.45rem; }
.pillar-card p  { font-size: 0.875rem; color: var(--slate-600); line-height: 1.6; }

/* ==========================================================================
   Policy, About, Contact & 404 Pages
   ========================================================================== */
.policy-page-main { padding: 1.75rem 0 4.5rem; }
.policy-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}
.policy-layout-single {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}
.policy-sidebar { position: sticky; top: 88px; }
.policy-sidebar-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--slate-100);
}
.sidebar-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}
.sidebar-header h3 { font-size: 1.1rem; font-weight: 800; }
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
}
.sidebar-link-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: all 0.2s ease;
}
.sidebar-link-item:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}
.sidebar-link-item.is-active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.sidebar-active-indicator { margin-left: auto; font-size: 1.15rem; line-height: 1; }
.sidebar-trust-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1.25rem;
}
.trust-badge { font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 0.35rem; }
.trust-text  { font-size: 0.8125rem; color: var(--slate-600); line-height: 1.55; margin-bottom: 0.65rem; }
.trust-support-link { font-size: 0.8125rem; font-weight: 700; color: var(--primary); }

.policy-content-area { min-width: 0; }
.policy-article-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.8vw, 3.25rem);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.policy-article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 50%, var(--coral) 100%);
}
.policy-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
}
.policy-header-badge {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}
.policy-main-title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.policy-meta-strip {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.contact-quick-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-card-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  min-width: 0;
}
.contact-icon { font-size: 1.4rem; margin-bottom: 0.45rem; display: block; }
.contact-card-item h4 { font-size: 0.92rem; margin-bottom: 0.25rem; }
.contact-card-item p  { font-size: 0.8125rem; font-weight: 600; color: var(--primary); overflow-wrap: anywhere; word-break: normal; margin-bottom: 0.2rem; }
.contact-card-item small { font-size: 0.75rem; color: var(--slate-500); }

.policy-prose { font-size: 1.02rem; line-height: 1.8; color: var(--slate-700); }
.policy-prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--slate-100);
}
.policy-prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.65rem; }
.policy-prose p  { margin-bottom: 1.2rem; }
.policy-prose ul, .policy-prose ol { margin: 0.9rem 0 1.4rem 1.25rem; list-style: none; }
.policy-prose li { margin-bottom: 0.65rem; position: relative; padding-left: 1.45rem; }
.policy-prose li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.48rem;
  width: 0.4rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--emerald);
  border-bottom: 2.5px solid var(--emerald);
  transform: rotate(45deg);
}
.policy-prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.policy-prose figure.wp-block-table {
  margin: 1.75rem 0;
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}
.policy-prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.policy-prose th { background: var(--slate-100); padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--slate-200); }
.policy-prose td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--slate-100); }

.tcb-contact-form {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1.75rem 0;
}
.tcb-form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.tcb-form-group label { font-size: 0.875rem; font-weight: 700; color: var(--slate-800); }
.tcb-form-group .required { color: var(--coral); }
.tcb-form-group input,
.tcb-form-group textarea {
  width: 100%;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tcb-form-group input:focus,
.tcb-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 64, 168, 0.12);
}
.tcb-contact-submit {
  min-height: 46px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 1.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.tcb-contact-submit:hover { background: var(--primary-hover); transform: translateY(-1px); }
.tcb-contact-success {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--emerald-light);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  color: #14532D;
}
.tcb-success-icon { font-size: 1.4rem; }

.policy-footer-notice {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-top: 2.75rem;
}
.policy-footer-notice .notice-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.policy-footer-notice h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.policy-footer-notice p  { font-size: 0.875rem; color: var(--slate-600); margin: 0; }

/* 404 Page */
.error-hero-card { margin-bottom: 2.5rem; }
.error-search { margin-top: 0.25rem; }
.error-section { margin-bottom: 2.75rem; }
.error-subhead { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: 1rem; }

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  color: var(--slate-600);
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  margin-top: auto;
}
.footer-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7FF 100%);
  border: 1px solid var(--slate-200);
  border-radius: 26px;
  padding: clamp(1.75rem, 4vw, 2.85rem) clamp(1.4rem, 3.8vw, 2.75rem) clamp(1.25rem, 2.5vw, 1.65rem);
  box-shadow: 0 12px 34px -10px rgba(41, 30, 58, 0.08), 0 2px 6px rgba(41, 30, 58, 0.03);
}
.footer-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 55%, var(--coral) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 2.25rem 1.75rem;
  margin-bottom: 2rem;
}
.footer-brand-col .site-logo {
  margin-bottom: 0.85rem;
}
.footer-brand-col .site-logo img {
  height: 46px;
  width: auto;
}
.footer-tagline {
  font-size: 0.89rem;
  color: var(--slate-600);
  line-height: 1.65;
  max-width: 32ch;
  margin-bottom: 0;
}
.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.85rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  color: var(--slate-700);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  font-size: 0.82rem;
  color: var(--slate-500);
}
.footer-bottom-copy strong { color: var(--slate-900); }
.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal-links a { color: var(--slate-600); font-weight: 500; }
.footer-legal-links a:hover { color: var(--primary); }
.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary) !important;
  font-weight: 700 !important;
  background: var(--white);
  border: 1px solid rgba(96, 64, 168, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}
.footer-back-to-top:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .mobile-toggle { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1.15rem 1.15rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 120;
  }
  .header-nav.is-open {
    display: flex;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
  }
  .header-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .header-nav-links a,
  .header-cat-trigger {
    font-size: 0.96rem;
    padding: 0.7rem 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .header-cat-dropdown {
    width: 100%;
  }
  .header-cat-drawer {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0.65rem;
    margin: 0.25rem 0 0.45rem;
  }
  .header-cat-drawer-head {
    padding: 0 0.2rem 0.5rem;
    margin-bottom: 0.45rem;
  }
  .header-cat-drawer-head a {
    width: auto !important;
    min-height: auto !important;
    padding: 0.2rem 0.35rem !important;
  }
  .header-cat-grid {
    gap: 0.35rem;
  }
  .header-cat-item {
    background: var(--white);
    min-height: auto !important;
  }
  .header-search-form,
  .header-search-form:focus-within {
    width: 100%;
    height: 44px;
    margin-top: 0.15rem;
  }
  .header-search-input { font-size: 1rem; }
}

@media (max-width: 1000px) {
  .theme-shelf .collection-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collections-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-layout,
  .archive-seo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .faq-intro {
    position: static;
  }
  .features-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .desk-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .desk-copy {
    text-align: center;
  }
  .desk-subtitle {
    margin-inline: auto;
  }
  .library-search {
    margin-inline: auto;
  }
  .desk-cta-row {
    justify-content: center;
  }
  .desk-showcase {
    max-width: 440px;
  }
  .archive-hero-card.has-category-art {
    grid-template-columns: minmax(0, 1fr);
  }
  .archive-hero-art {
    order: -1;
  }
  .policy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .policy-sidebar { position: static; }
  .sidebar-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .sidebar-link-item {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
  }
  .sidebar-link-item.is-active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
  }
  .sidebar-active-indicator,
  .sidebar-trust-box {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .collections-pillars-grid,
  .contact-quick-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 3rem, var(--max-w));
  }
  .site-header {
    padding: 0.55rem 0 0.2rem;
  }
  .header-box,
  .site-header-inner {
    height: 58px;
    padding: 0 0.85rem 0 1rem;
    border-radius: 16px;
  }
  .site-logo img { height: 36px; }
  .mobile-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--slate-100);
    border-color: transparent;
  }
  .header-nav.is-open { max-height: calc(100dvh - 80px); }

  .tcb-breadcrumb {
    margin: 0.25rem 0 0.85rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .tcb-breadcrumb a,
  .tcb-breadcrumb-sep {
    flex-shrink: 0;
  }
  .tcb-breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .archive-main,
  .collections-page-main,
  .error-page {
    padding: 0.9rem 0 3.25rem;
  }
  .archive-hero-card {
    padding: 1.05rem;
    border-radius: 18px;
    margin-bottom: 1.05rem;
  }
  .archive-hero-card.has-category-art {
    gap: 0.85rem;
  }
  .archive-hero-art {
    justify-content: flex-start;
  }
  .archive-hero-art-frame {
    width: 92px;
    height: 112px;
    padding: 0.45rem;
    border-radius: 14px;
  }
  .archive-hero-top-row {
    margin-bottom: 0.5rem;
    gap: 0.45rem;
  }
  .archive-hero-tag,
  .archive-count-chip {
    font-size: 0.68rem;
    padding: 0.24rem 0.65rem;
  }
  .archive-hero-title {
    font-size: 1.42rem;
    line-height: 1.16;
    margin-bottom: 0.4rem;
  }
  .archive-hero-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.95rem;
  }

  .collections-header {
    padding: 0.25rem 0 1.25rem;
    margin-bottom: 1.25rem;
  }
  .collections-page-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .collections-jump-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .collections-jump-bar::-webkit-scrollbar {
    display: none;
  }
  .collections-jump-link {
    flex: 0 0 auto;
    font-size: 0.78rem;
    padding: 0.34rem 0.75rem;
  }
  .collections-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }
  .col-card-art {
    height: 210px;
    padding: 1.25rem 1rem 1rem;
  }
  .col-card-content {
    padding: 1.05rem 1.15rem 1.15rem;
  }
  .col-btn-view {
    min-height: 40px;
  }
  .collections-guide-box {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .archive-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
  }
  .archive-search-wrapper {
    grid-column: 1 / -1;
  }
  .archive-search-input,
  .archive-filter-select {
    font-size: 1rem;
  }
  .archive-search-input,
  .archive-filter-select,
  .archive-filter-btn {
    height: 44px;
  }
  .archive-filter-btn {
    font-size: 0.9rem;
  }
  .library-search input {
    font-size: 1rem;
  }
  .archive-select-wrapper {
    max-width: none;
    min-width: 0;
  }
  .archive-filter-btn {
    width: auto;
    padding: 0 1.05rem;
  }

  .archive-quick-pills {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
  }
  .archive-pills-label {
    display: none;
  }
  .archive-pills-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    padding: 2px 16px 2px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
  }
  .archive-pills-list::-webkit-scrollbar { display: none; }
  .archive-pill-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.25rem 0.78rem;
    font-size: 0.78rem;
  }

  .collection-strip:not(.collection-strip-wrap) {
    padding: 2px 20px 4px 2px;
    margin-bottom: 1.15rem;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  }
  .archive-collection-strip .collection-chip {
    min-height: 44px;
    padding: 4px 12px 4px 5px;
    gap: 0.5rem;
    scroll-snap-align: start;
  }
  .archive-collection-strip .collection-chip-art {
    width: 34px;
    height: 34px;
  }
  .archive-collection-strip .collection-chip-name {
    font-size: 0.8rem;
  }
  .archive-collection-strip .collection-chip-count {
    font-size: 0.68rem;
  }

  .tcb-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
  }
  .policy-footer-notice { flex-direction: column; }
  .tcb-contact-submit { width: 100%; }
}

@media (max-width: 540px) {
  .desk-layout {
    padding-block: 1.5rem 1.85rem;
    gap: 1.5rem;
  }
  .desk-copy h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.3rem);
  }
  .desk-subtitle {
    margin: 0.65rem auto 1.15rem;
    font-size: 0.91rem;
    line-height: 1.58;
    max-width: 34ch;
  }
  .desk-card-back {
    display: none;
  }
  .desk-card {
    border-radius: 18px;
    box-shadow: var(--shadow-md);
  }
  .desk-bar {
    padding: 0.68rem 1rem;
  }
  .desk-bar-label {
    font-size: 0.8rem;
  }
  .desk-bar-meta {
    font-size: 0.7rem;
    padding: 0.18rem 0.55rem;
  }
  .desk-sheet {
    padding: 1.25rem 1rem 1.05rem;
  }
  .desk-sheet::after {
    top: 0.72rem;
    width: 54px;
    height: 14px;
  }
  .desk-sheet img {
    height: 220px;
    padding: 0.5rem;
    border-radius: 4px;
  }
  .desk-details {
    padding: 0.82rem 1rem;
    text-align: left;
  }
  .desk-details h2 {
    font-size: 0.96rem;
  }
  .desk-open-btn {
    min-height: 38px;
    padding: 0.42rem 0.88rem;
    font-size: 0.8rem;
  }

  .features-strip-wrap {
    padding-top: 1.1rem;
  }
  .features-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .feature-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.82rem 0.78rem;
    border-radius: 16px;
  }
  .feature-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .feature-title {
    font-size: 0.84rem;
  }
  .feature-sub {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .theme-shelf {
    padding-block: 1.75rem;
  }
  .section {
    padding: 2rem 0;
  }
  .theme-shelf .collection-chip {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0.9rem 0.65rem;
    gap: 0.55rem;
  }
  .theme-shelf .collection-chip-art {
    width: 64px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .color-card {
    padding: 0;
    border-radius: 16px;
  }
  .color-card:hover {
    transform: none;
  }
  .sheet-link {
    padding: 0.55rem 0.55rem 0.25rem;
    border-radius: 0;
    aspect-ratio: 4 / 5;
  }
  .sheet-link img {
    border-radius: 0;
  }
  .color-card .sheet-badge {
    top: 0.55rem;
    left: 0.55rem;
    font-size: 0.61rem;
    padding: 0.16rem 0.5rem;
  }
  .card-body {
    padding: 0.55rem 0.72rem 0.75rem;
    gap: 0.32rem;
  }
  .card-category {
    font-size: 0.68rem;
    padding: 0.14rem 0.45rem;
  }
  .card-free-tag {
    font-size: 0.54rem;
    letter-spacing: 0.04em;
  }
  .card-title {
    font-size: 0.85rem;
    line-height: 1.32;
  }
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
  .faq-list {
    border-radius: 18px;
  }
  .faq-item summary {
    padding: 1rem 1.15rem;
    font-size: 0.94rem;
    min-height: 52px;
  }
  .faq-content {
    padding: 0 1.15rem 1.1rem;
    font-size: 0.88rem;
  }
  .footer-box {
    border-radius: 20px;
    padding: 1.5rem 1.25rem 1.15rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.45rem 1rem;
    margin-bottom: 1.5rem;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-col:last-child .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
  }
  .footer-links a {
    min-height: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .footer-legal-links {
    width: 100%;
    justify-content: space-between;
  }
  .footer-back-to-top {
    min-height: 42px;
    padding: 0.42rem 0.95rem;
  }
  .desk-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.15rem;
    margin-top: 1.15rem;
  }
  .library-search button span {
    display: none;
  }
  .library-search button {
    width: 44px;
    padding: 0;
  }
}

@media (max-width: 380px) {
  .card-grid {
    gap: 0.65rem;
  }
  .color-card {
    padding: 0;
  }
  .card-body {
    padding: 0.5rem 0.58rem 0.65rem;
  }
  .card-free-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
