/* ===========================================================
   Color4U Design System
   Tokens + reusable components.
   Drop this in any new page:
     <link rel="stylesheet" href="design-system/color4u.css">
   Then use the classes below — no other CSS required.
   =========================================================== */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Ink (text) */
  --ink:        #1a2238;   /* primary text, headlines */
  --ink-2:      #4a5375;   /* body, labels */
  --ink-3:      #7e87a6;   /* meta, hints, captions */

  /* Surfaces */
  --paper:      #ffffff;   /* cards, sheet */
  --bg:         #f7f8fc;   /* page background */
  --bg-tint:    #eef2fb;   /* hero card wash */
  --line:       #e6e8f2;   /* card borders */
  --line-2:     #f0f2f8;   /* dashed dividers */

  /* Primary (blue) */
  --primary:        oklch(56% 0.18 256);
  --primary-ink:    oklch(38% 0.14 256);
  --primary-soft:   oklch(96% 0.025 256);
  --primary-soft-2: oklch(92% 0.045 256);

  /* Accents */
  --accent-coral:  oklch(72% 0.16 32);
  --accent-mint:   oklch(72% 0.11 165);
  --accent-yellow: oklch(86% 0.12 90);
  --accent-pink:   oklch(78% 0.12 0);

  /* Radius */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20,30,60,.04), 0 1px 1px rgba(20,30,60,.03);
  --shadow:    0 2px 8px rgba(20,30,60,.06), 0 12px 30px rgba(20,30,60,.05);
  --shadow-lg: 0 10px 24px rgba(20,30,60,.08), 0 30px 60px rgba(20,30,60,.07);

  /* Spacing scale (rarely used as vars — use px directly in markup) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* Type */
  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body:    "Nunito Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* ── Base typographic resets ── */
.c4-page {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.c4-page p {
  margin: 0 0 1em;
  line-height: 1.5;
}
.c4-page ul, .c4-page ol {
  margin: 0 0 1em;
  padding-left: 2em;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Type scale ──────────────────────────────────────────── */
.t-display-xl {
  font-family: var(--font-display); font-weight: 700;
  font-size: 56px; line-height: 1.05; letter-spacing: -0.02em;
}
.c4-page h1, .t-display {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 10px; padding: 0;
}
.c4-page h2, .t-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 6px; padding: 0;
}
.c4-page h3, .t-h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; line-height: 1.25; margin: 0 0 6px; padding: 0;
}
.t-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.t-body  { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.t-body-sm { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.t-meta  { font-size: 13px; color: var(--ink-3); }
.t-mono  { font-family: var(--font-mono); letter-spacing: .02em; }
.section-sub { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; }

/* ── Header / nav ────────────────────────────────────────── */
.c4-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.c4-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 28px;
  display: grid; grid-template-columns: auto auto 1fr auto;
  align-items: center; gap: 20px;
}
.c4-menu-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center; cursor: pointer;
}
.c4-menu-btn span { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.c4-menu-btn span::before, .c4-menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--ink);
}
.c4-menu-btn span::before { top: -5px; }
.c4-menu-btn span::after  { top: 5px; }

.c4-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.c4-logo img { height: 44px; width: auto; display: block; }

.c4-search { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.c4-search__input {
  width: 100%; height: 42px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg);
  padding: 0 16px 0 44px; font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.c4-search__input::placeholder { color: var(--ink-3); }
.c4-search__input:focus {
  outline: none; border-color: var(--primary);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.c4-search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--paper); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px; z-index: 100; max-height: 400px; overflow-y: auto;
}
.c4-search-result__item {
  display: flex; gap: 14px; align-items: center; padding: 10px 14px;
  border-radius: var(--radius-lg); text-decoration: none !important; color: inherit;
  transition: background .15s; margin-bottom: 2px;
}
.c4-search-result__item:hover { background: var(--bg); text-decoration: none !important; }
.c4-search-result__img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.c4-search-result__title { font-weight: 700; font-size: 15px; margin: 0 0 3px; color: var(--ink); line-height: 1.3; }
.c4-search-result__meta { font-size: 13px; color: var(--ink-3); margin: 0; }
.c4-search__results.sorry-item { padding: 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.c4-search > svg { position: absolute; left: 14px; top: 11px; color: var(--ink-3); }

.c4-nav { display: flex; gap: 22px; align-items: center; font-weight: 600; color: var(--ink-2); }
.c4-nav__link { color: inherit; text-decoration: none; transition: color .15s; display: flex; align-items: center; gap: 6px; }
.c4-nav__link:hover { color: var(--primary-ink); }
.c4-nav__link.has-caret::after {
  content: ""; display: block; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.c4-nav__dropdown-wrap { position: relative; }
.c4-nav__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; left: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); min-width: 440px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1); z-index: 100;
}
.c4-nav__dropdown::before {
  content: ""; position: absolute; top: -15px; left: 0; right: 0; height: 15px; background: transparent;
}
.c4-nav__dropdown-wrap:hover .c4-nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.c4-nav__dropdown-wrap:hover .c4-nav__link.has-caret::after {
  transform: translateY(2px) rotate(225deg);
}
.c4-nav__dropdown-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
  padding: 16px; list-style: none; margin: 0;
}
.c4-nav__dropdown-link {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
}
.c4-nav__dropdown-link:hover { background: var(--bg); color: var(--primary-ink); text-decoration: none; }
.c4-nav__dropdown-footer {
  border-top: 1px solid var(--line); padding: 16px;
}
.c4-nav__dropdown-all {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  border-radius: var(--radius); padding: 8px 12px; transition: color .15s; margin: -8px -8px 0;
}
.c4-nav__dropdown-all:hover { color: var(--primary-ink); text-decoration: none; }
.c4-nav__dropdown-all svg { color: var(--ink-3); }
.c4-nav__dropdown-link:hover { background: var(--bg); color: var(--primary-ink); text-decoration: none; }

/* ── Breadcrumb & Topbar ─────────────────────────────────── */
.c4-cp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 16px;
}
.c4-cp-sharebar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.c4-cp-sharebar__label {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  margin-right: 2px;
}
.c4-cp-share {
  height: 34px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .1s;
}
.c4-cp-share:hover {
  border-color: var(--ink-3);
  color: var(--ink);
  text-decoration: none;
}
.c4-cp-share:active {
  transform: translateY(1px);
}
.c4-cp-share--pin:hover {
  color: oklch(56% 0.21 25);
  border-color: oklch(80% 0.14 25);
}
.c4-cp-share--fb:hover {
  color: oklch(45% 0.18 256);
  border-color: oklch(80% 0.10 256);
}
.c4-cp-share--copy.is-done {
  color: oklch(46% 0.14 165);
  border-color: oklch(80% 0.13 165);
  background: oklch(96% 0.04 165);
}

.c4-crumbs {
  font-size: 13px; color: var(--ink-3);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.c4-crumbs a { color: var(--ink-3); }
.c4-crumbs .sep { opacity: .6; }
.c4-crumbs .here { color: var(--ink-2); font-weight: 600; }

@media (max-width: 768px) {
  .c4-cp-sharebar { width: 100%; justify-content: flex-start; }
}

/* ── Forms ───────────────────────────────────────────────── */
.c4-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.c4-input, .c4-textarea {
  width: 100%; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg);
  padding: 12px 16px; font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.c4-textarea {
  resize: vertical;
  min-height: 120px;
}
.c4-input::placeholder, .c4-textarea::placeholder { color: var(--ink-3); }
.c4-input:focus, .c4-textarea:focus {
  outline: none; border-color: var(--primary);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ── Buttons ─────────────────────────────────────────────── */
.c4-btn {
  height: 52px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; padding: 0 18px;
  transition: transform .08s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.c4-btn:active { transform: translateY(1px); }
.c4-btn--primary {
  background: var(--primary); color: white;
  box-shadow: 0 6px 16px oklch(56% 0.18 256 / .35);
}
.c4-btn--primary:hover { background: var(--primary-ink); }
.c4-btn--secondary {
  background: var(--paper); color: var(--ink); border-color: var(--line);
}
.c4-btn--secondary:hover { border-color: var(--ink-3); color: var(--primary-ink); }
.c4-btn--sm { height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.c4-btn .file-size { font-weight: 500; font-size: 13px; opacity: .85; }

/* Pill button (like / share) */
.c4-pill-btn {
  height: 42px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  font: inherit; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .1s;
  position: relative;
}
.c4-pill-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.c4-pill-btn:active { transform: translateY(1px); }
.c4-pill-btn.is-liked {
  color: var(--accent-coral);
  border-color: oklch(85% 0.08 32);
  background: oklch(98% 0.02 32);
}
.c4-pill-btn.is-liked svg { fill: var(--accent-coral); stroke: var(--accent-coral); }

.c4-pill-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}

.c4-pill-btn:hover[data-tooltip]::after,
.c4-pill-btn:focus-visible[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Pager (ghost arrow circle) */
.c4-pager {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color .15s, border-color .15s, transform .1s;
}
.c4-pager:hover { color: var(--primary-ink); border-color: var(--primary); }
.c4-pager:active { transform: scale(.96); }

/* ── Pills / badges ──────────────────────────────────────── */
.c4-age-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); color: var(--primary-ink);
  border-radius: var(--radius-pill);
  padding: 2px 10px; font-weight: 700; font-size: 13px;
}
.c4-tag-pill {
  display: inline-flex; align-items: center;
  background: var(--bg); color: var(--ink-3);
  padding: 2px 7px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600;
}
.c4-hint-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3);
  background: var(--bg); padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ── Cards ───────────────────────────────────────────────── */
.c4-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.c4-card--lg { border-radius: var(--radius-lg); padding: 28px; }

/* Hero card (tinted wash) */
.c4-hero {
  background: linear-gradient(180deg, var(--bg-tint), transparent 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Meta card (key/value rows) */
.c4-meta-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.c4-meta-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.c4-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--line-2);
  font-size: 14px;
}
.c4-meta-row:last-child { border-bottom: 0; }
.c4-meta-row .k { color: var(--ink-3); }
.c4-meta-row .v { font-weight: 700; color: var(--ink); }

/* Sheet (paper preview) */
.c4-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 8.5 / 11;
}
.c4-sheet img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.c4-sheet__credit {
  position: absolute; left: 12px; bottom: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
  letter-spacing: .04em;
}

/* Related card (thumbnail + label) */
.c4-related-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.c4-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: oklch(86% 0.06 256);
  text-decoration: none;
}
.c4-related-card__thumb {
  aspect-ratio: 8.5 / 11; background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
}
.c4-related-card__thumb svg { width: 80%; height: 80%; }
.c4-related-card__meta { padding: 12px 14px 14px; }
.c4-related-card__title { font-weight: 700; font-size: 14px; color: var(--ink); margin: 0 0 4px; }
.c4-related-card__chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Swatch (palette chip + meta + use) */
.c4-swatch {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  transition: transform .12s, border-color .15s, box-shadow .15s;
}
.c4-swatch:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.c4-swatch:active { transform: translateY(0); }
.c4-swatch__chip {
  width: 56px; height: 56px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  flex-shrink: 0;
}
.c4-swatch__meta { min-width: 0; }
.c4-swatch__name { font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.2; }
.c4-swatch__hex {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3); margin-top: 2px;
  letter-spacing: .02em;
}
.c4-swatch__use { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
.c4-swatch__copy {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  color: var(--ink); font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-pill);
  opacity: 0; transform: translateY(-2px);
  transition: opacity .15s, transform .15s;
  pointer-events: none; border: 1px solid var(--line);
}
.c4-swatch:hover .c4-swatch__copy { opacity: 1; transform: translateY(0); }
.c4-swatch.is-copied .c4-swatch__copy { opacity: 1; transform: translateY(0); background: var(--primary); color: white; border-color: var(--primary); }
.c4-swatch.is-copied { border-color: var(--primary); }

/* Tip (numbered step) */
.c4-tip h4 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.c4-tip .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 12px; display: grid; place-items: center; font-weight: 700;
}
.c4-tip p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* Details strip (chip row) */
.c4-details-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
}
.c4-details-strip__item { display: flex; flex-direction: column; min-width: 0; }
.c4-details-strip__item .k {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 700;
}
.c4-details-strip__item .v { font-size: 15px; color: var(--ink); font-weight: 700; }
.c4-details-strip__divider { width: 1px; height: 32px; background: var(--line); }

/* Inline tail text (text-with-links closer) */
.c4-tail-text {
  color: var(--ink-2); font-size: 15px; line-height: 1.7;
  display: flex; flex-direction: column; gap: 6px;
  max-width: 80ch;
}
.c4-tail-text p { margin: 0; }
.c4-tail-text a {
  color: var(--primary-ink); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: oklch(78% 0.10 256);
}
.c4-tail-text a:hover { text-decoration-color: var(--primary); }

/* Toast */
.c4-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: white; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 100;
  pointer-events: none;
}
.c4-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer ──────────────────────────────────────────────── */
.c4-footer {
  margin-top: 64px; background: var(--paper); border-top: 1px solid var(--line);
}
.c4-footer__inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
}
.c4-footer__brand .tag { color: var(--ink-3); font-size: 14px; line-height: 1.35; max-width: 30ch; margin-top: 10px; }
.c4-footer__col h5 {
  margin: 0 0 14px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3);
}
.c4-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.c4-footer__col a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.c4-footer__col a:hover { color: var(--primary-ink); }

.c4-footer__avatars { display: flex; gap: 16px; margin-bottom: 16px; }
.c4-footer__avatar { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.c4-footer__avatar:hover { color: var(--primary-ink); }
.c4-footer__avatar .img-wrap { position: relative; width: 44px; height: 44px; }
.c4-footer__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: oklch(96% 0.01 50); }
.c4-footer__avatar .badge { position: absolute; bottom: -2px; right: -4px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 0 2px var(--paper); }
.c4-footer__avatar .badge svg { width: 10px; height: 10px; }
.c4-footer__avatar .badge-ig { background: #E1306C; }
.c4-footer__avatar .badge-in { background: #0077b5; }
ul.c4-footer__social { display: flex; flex-direction: row; gap: 16px; padding: 0; margin: 0; list-style: none; }
.c4-footer__social a { display: flex; color: var(--ink-3); transition: color .15s; }
.c4-footer__social a:hover { color: var(--primary-ink); }

.c4-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 32px; max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px;
}
.c4-footer__bottom-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.c4-footer__bottom-links a { color: var(--ink-3); text-decoration: none; }
.c4-footer__bottom-links a:hover { color: var(--primary-ink); }

/* ── Mobile Menu ─────────────────────────────────────────── */
.c4-mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s 0.4s;
}
.c4-mobile-menu.open { visibility: visible; pointer-events: auto; transition: visibility 0s 0s; }
.c4-mobile-menu__overlay {
  position: absolute; inset: 0; background: rgba(10, 15, 30, 0.5); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.c4-mobile-menu.open .c4-mobile-menu__overlay { opacity: 1; }
.c4-mobile-menu__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: 85%; max-width: 360px;
  background: var(--paper); box-shadow: 20px 0 60px rgba(0,0,0,0.15);
  transform: translateX(-100%); transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.c4-mobile-menu.open .c4-mobile-menu__panel { transform: translateX(0); }
.c4-mobile-menu__header { padding: 24px; display: flex; justify-content: flex-end; }
.c4-mobile-menu__close {
  background: var(--bg); border: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: background .15s, color .15s;
}
.c4-mobile-menu__close:hover { background: var(--line); color: var(--ink); }
.c4-mobile-menu__nav { list-style: none; padding: 0 24px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.c4-mobile-menu__link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; font-weight: 700; font-size: 17px; color: var(--ink);
  text-decoration: none; border-radius: var(--radius-lg); transition: background .15s, color .15s;
}
.c4-mobile-caret { margin-left: auto; color: var(--ink-3); transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1); }
.c4-mobile-menu__link.is-open .c4-mobile-caret { transform: rotate(180deg); }
.c4-mobile-menu__link:hover, .c4-mobile-menu__link:active { background: var(--bg); color: var(--primary-ink); text-decoration: none; }
.c4-mobile-menu__sub {
  list-style: none; padding: 4px 0 12px 28px; margin: 0;
  display: none; flex-direction: column; gap: 4px;
}
.c4-mobile-menu__sub a {
  display: block; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: var(--radius); transition: background .15s, color .15s;
}
.c4-mobile-menu__sub a:hover, .c4-mobile-menu__sub a:active { color: var(--primary-ink); background: var(--bg); text-decoration: none; }
.c4-mobile-menu__divider { height: 1px; background: var(--line); margin: 32px 24px; }
.c4-mobile-menu__nav--small .c4-mobile-menu__link, .c4-mobile-menu__nav--small a {
  padding: 10px 18px; font-weight: 600; font-size: 15px; color: var(--ink-3); text-decoration: none;
}

/* ── To Top Button ───────────────────────────────────────── */
.c4-totop {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: white; display: grid; place-items: center;
  box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
}
.c4-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.c4-totop:hover { background: var(--primary-ink); transform: translateY(-3px); }

/* ── Layout helpers ──────────────────────────────────────── */
.c4-page { max-width: 1180px; margin: 0 auto; padding: 16px 32px 80px; }
.c4-section { margin-top: 56px; }
.c4-stack { display: flex; flex-direction: column; gap: 10px; }
.c4-row   { display: flex; align-items: center; gap: 10px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .c4-footer__inner { grid-template-columns: 1fr 1fr; }
  .c4-header__inner { grid-template-columns: auto auto 1fr; gap: 12px; padding: 10px 16px; }
  .c4-logo img { height: 36px; }
  .c4-search { max-width: none; }
  .c4-nav { display: none; }
  h1, .t-display { font-size: 34px; }
}

@media (max-width: 600px) {
  .c4-footer__inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .c4-footer__bottom { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
}
