/* ============================================================================
   City Clinic — "warm editorial clinic" design layer.

   Loaded by the engine AFTER its compiled bundle (the documented per-store
   seam), so plain CSS here wins the cascade with no build step. Everything
   site-specific uses the `cc-` prefix; engine tokens are re-pointed up top.

   Direction: cream paper ground, deep ink-navy type, Piazzolla serif display
   over Sofia Sans body, flat 1px warm rules instead of floating shadows,
   arched photo frames, receipt-style dotted price leaders, and an EKG line
   as the recurring brand mark.
   ========================================================================= */

:root {
  /* palette */
  --cc-paper:   #FBF7EF;
  --cc-paper-2: #F3EDDF;
  --cc-line:    #E4DBC8;
  --cc-line-soft: #EDE6D6;
  --cc-ink:     #0D2B4E;
  --cc-ink-2:   #12406E;
  --cc-blue:    #0058A8;
  --cc-sky:     #23AAE1;
  --cc-muted:   #5A6076;
  --cc-muted-2: #8A8FA3;

  /* re-point engine chrome tokens at the new palette */
  --color-bg-soft:  var(--cc-paper-2);
  --color-divider:  var(--cc-line);
  --header-bg:      var(--cc-paper);
  --header-fg:      var(--cc-ink);
  --footer-bg:      var(--cc-ink);
  --footer-fg:      #EDEFF7;
  --footer-copy-bg: #081D36;
  --footer-border:  rgba(237, 239, 247, .14);
  --badge-bg:       var(--cc-blue);
  --badge-fg:       #fff;
  --brand-tint:     #E8F1F9;
}

body {
  background: var(--cc-paper);
  color: var(--cc-ink);
}

/* Headings inherit the display serif site-wide. */
h1, h2, h3 { color: var(--cc-ink); }

/* Engine page shell: let the cream ground show through. */
.page-entry.bg-white { background: transparent; }

::selection { background: var(--cc-sky); color: var(--cc-ink); }

/* ── Paw-trail mark (class names kept from the earlier EKG version) ───── */
.cc-ekg { display: block; width: 9rem; height: 1.8rem; color: var(--cc-sky); }
.cc-ekg--ink { color: var(--cc-blue); }
.cc-ekg--wide { width: 100%; height: 1.75rem; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  /* Footsteps: each paw fades in after the previous one. Opacity only —
     a CSS transform here would override the SVG transform attribute that
     places/rotates each paw. */
  .cc-ekg .cc-paw { opacity: 0; animation: cc-paw-step .45s ease-out forwards; }
  .cc-ekg .cc-paw:nth-of-type(1) { animation-delay: .25s; }
  .cc-ekg .cc-paw:nth-of-type(2) { animation-delay: .55s; }
  .cc-ekg .cc-paw:nth-of-type(3) { animation-delay: .85s; }
  .cc-ekg .cc-paw:nth-of-type(4) { animation-delay: 1.15s; }
}
@keyframes cc-paw-step { to { opacity: 1; } }

/* ── Type helpers ─────────────────────────────────────────────────────── */
.cc-kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cc-blue);
}
.cc-kicker::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--cc-blue);
}
.cc-kicker--bare::before { display: none; }

.cc-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
}
/* Geometric-sans brand (logo match): accent words are heavy + coloured,
   not italic — italics were a device of the earlier serif look. */
.cc-display em, .cc-display i {
  font-style: normal;
  font-weight: 800;
  color: var(--cc-blue);
}
.cc-h1 { font-size: clamp(2.4rem, 4.2vw + .8rem, 4rem); }
.cc-h2 { font-size: clamp(1.9rem, 2.6vw + .8rem, 3rem); }
.cc-h3 { font-size: clamp(1.25rem, 1vw + .9rem, 1.6rem); line-height: 1.25; }

.cc-lead {
  font-size: clamp(1.05rem, .4vw + .95rem, 1.25rem);
  line-height: 1.7;
  color: var(--cc-muted);
  max-width: 34em;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--cc-blue);
  background: var(--cc-blue);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.cc-btn:hover { background: var(--cc-ink); border-color: var(--cc-ink); color: #fff; transform: translateY(-1px); }
.cc-btn svg { width: 1rem; height: 1rem; }

.cc-btn--ghost { background: transparent; color: var(--cc-ink); border-color: var(--cc-ink); }
.cc-btn--ghost:hover { background: var(--cc-ink); color: var(--cc-paper); }

.cc-btn--paper { background: var(--cc-paper); border-color: var(--cc-paper); color: var(--cc-ink); }
.cc-btn--paper:hover { background: var(--cc-sky); border-color: var(--cc-sky); color: var(--cc-ink); }

.cc-btn--line { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.cc-btn--line:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

.cc-textlink {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--cc-blue);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.cc-textlink:hover { border-color: var(--cc-blue); }
.cc-textlink svg { width: .95rem; height: .95rem; transition: transform .18s ease; }
.cc-textlink:hover svg { transform: translateX(3px); }

/* ── Section scaffolding ──────────────────────────────────────────────── */
.cc-section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.cc-wrap { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 1.5rem); }

.cc-rule-top { border-top: 1px solid var(--cc-line); }

.cc-head { display: flex; flex-direction: column; gap: 1.1rem; max-width: 44rem; }
.cc-head--row {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cc-head--row > div { display: flex; flex-direction: column; gap: 1.1rem; max-width: 44rem; }
.cc-head .cc-sub { color: var(--cc-muted); font-size: 1.05rem; line-height: 1.65; max-width: 36em; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.cc-hero { position: relative; overflow: hidden; }
.cc-hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
@media (min-width: 60rem) { .cc-hero-grid { grid-template-columns: 1.05fr .95fr; } }

.cc-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.cc-hero-copy .cc-ekg { margin-top: .4rem; }
.cc-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .6rem; }
.cc-hero-note { font-size: .9rem; color: var(--cc-muted-2); }
.cc-hero-note a { color: var(--cc-blue); font-weight: 600; }

/* Arched portrait/photo frame — the site's recurring shape. */
.cc-arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  border: 1px solid var(--cc-line);
  background: var(--cc-paper-2);
}
.cc-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-hero-media { position: relative; max-width: 30rem; margin-inline: auto; width: 100%; }
.cc-hero-media .cc-arch { aspect-ratio: 4 / 4.7; }
.cc-hero-media::after {
  /* offset echo of the arch — quiet depth without a drop shadow */
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--cc-line);
  border-radius: 999px 999px 18px 18px;
  z-index: -1;
}
.cc-hero-card {
  position: absolute;
  left: -1.25rem;
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1.1rem;
  background: var(--cc-paper);
  border: 1px solid var(--cc-line);
  border-radius: 12px;
}
.cc-hero-card strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.cc-hero-card span { font-size: .8rem; color: var(--cc-muted); line-height: 1.3; }

/* ── USP rule-row ─────────────────────────────────────────────────────── */
.cc-usp { border-block: 1px solid var(--cc-line); background: var(--cc-paper); }
.cc-usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.cc-usp-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.4rem 1.5rem;
  border-top: 1px solid var(--cc-line-soft);
}
@media (min-width: 40rem) {
  .cc-usp-item { border-top: 0; border-left: 1px solid var(--cc-line-soft); }
  .cc-usp-item:first-child { border-left: 0; padding-left: 0; }
}
.cc-usp-item svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--cc-blue); margin-top: .1rem; }
.cc-usp-item strong { display: block; font-weight: 700; font-size: .98rem; }
.cc-usp-item span { font-size: .88rem; color: var(--cc-muted); }

/* ── Service index (numbered, ruled) ──────────────────────────────────── */
.cc-index {
  display: grid;
  border-top: 1px solid var(--cc-line);
  border-left: 1px solid var(--cc-line);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 40rem) { .cc-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cc-index { grid-template-columns: repeat(4, 1fr); } }
.cc-index--wide { }
@media (min-width: 64rem) { .cc-index--wide { grid-template-columns: repeat(2, 1fr); } }

.cc-index-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-right: 1px solid var(--cc-line);
  border-bottom: 1px solid var(--cc-line);
  background: transparent;
  transition: background .18s ease;
}
.cc-index-item:hover { background: #fff; }
.cc-index-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--cc-muted-2);
}
.cc-index-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.25; }
.cc-index-item p { font-size: .92rem; line-height: 1.6; color: var(--cc-muted); }
.cc-index-item .cc-more {
  margin-top: auto;
  padding-top: .4rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cc-blue);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.cc-index-item:hover .cc-more { opacity: 1; transform: none; }
.cc-index-item .cc-more svg { width: .9rem; height: .9rem; }
/* row variant for the full-services page */
.cc-index--wide .cc-index-item { flex-direction: row; align-items: flex-start; gap: 1.2rem; }
.cc-index--wide .cc-index-item > div { display: flex; flex-direction: column; gap: .45rem; }
.cc-index--wide .cc-index-item .cc-more { opacity: 1; transform: none; }

.cc-glyph { width: 2.1rem; height: 2.1rem; flex: none; }
/* Arch-shaped tinted tile behind the duotone service illustrations —
   echoes the logo's filled style and the site's arch photo frames. */
.cc-glyph-tile {
  display: inline-grid;
  place-items: center;
  width: 3.9rem;
  height: 3.9rem;
  flex: none;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, #fff 0%, var(--brand-tint, #E8F1F9) 100%);
  border: 1px solid var(--cc-line);
}
.cc-glyph-tile--lg { width: 5.2rem; height: 5.2rem; padding-top: .3rem; }
.cc-glyph-tile--lg .cc-glyph { width: 2.9rem; height: 2.9rem; }

/* ── Stats band (ink) ─────────────────────────────────────────────────── */
.cc-band {
  background: var(--cc-ink);
  color: #EDEFF7;
  position: relative;
  overflow: hidden;
}
.cc-band .cc-display, .cc-band h2, .cc-band h3 { color: #fff; }
/* On dark surfaces the deep brand blue vanishes — switch accents to sky. */
.cc-band .cc-kicker, .cc-cta .cc-kicker { color: var(--cc-sky); }
.cc-band .cc-kicker::before, .cc-cta .cc-kicker::before { background: var(--cc-sky); }
.cc-band .cc-display em, .cc-cta .cc-display em { color: var(--cc-sky); font-weight: 600; }

.cc-stats { display: grid; gap: 1px; background: rgba(237,239,247,.16); border-block: 1px solid rgba(237,239,247,.16); }
@media (min-width: 40rem) { .cc-stats { grid-template-columns: repeat(3, 1fr); } }
.cc-stat { background: var(--cc-ink); padding: clamp(1.6rem, 3vw, 2.6rem) 1.5rem; }
.cc-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  line-height: 1;
  color: #fff;
}
.cc-stat strong em { font-style: normal; color: var(--cc-sky); }
.cc-stat span { display: block; margin-top: .65rem; font-size: .95rem; color: rgba(237,239,247,.72); }

/* ── Team ─────────────────────────────────────────────────────────────── */
.cc-team-row {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: .5rem 1rem;
  scrollbar-width: none;
}
.cc-team-row::-webkit-scrollbar { display: none; }
.cc-team-row .cc-team-card { flex: none; width: min(17rem, 78vw); scroll-snap-align: start; }

.cc-team-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3.25rem); }
@media (min-width: 40rem) { .cc-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cc-team-grid { grid-template-columns: repeat(4, 1fr); } }

.cc-team-card { display: flex; flex-direction: column; gap: 1rem; }
.cc-team-card .cc-arch { aspect-ratio: 4 / 4.6; transition: transform .25s ease; }
.cc-team-card:hover .cc-arch { transform: translateY(-4px); }
.cc-team-card .cc-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--cc-blue);
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, transparent 70%),
    var(--cc-paper-2);
}
.cc-team-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; line-height: 1.2; }
.cc-team-card .cc-role { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-blue); margin-top: .3rem; }
.cc-team-card .cc-spec { font-size: .9rem; color: var(--cc-muted); margin-top: .35rem; line-height: 1.55; }

/* ── CTA panel ────────────────────────────────────────────────────────── */
.cc-cta {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--cc-ink);
  color: #EDEFF7;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.cc-cta .cc-display { color: #fff; max-width: 18em; }
.cc-cta p { color: #fff; max-width: 40em; }
.cc-cta .cc-ekg--wide { position: absolute; left: 0; right: 0; bottom: 1.4rem; color: #fff; opacity: .8; }
.cc-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }

/* ── Page hero band (inner pages) ─────────────────────────────────────── */
.cc-pagehead { border-bottom: 1px solid var(--cc-line); background: var(--cc-paper); }
.cc-pagehead-inner { padding-block: clamp(2.75rem, 6vw, 5rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.cc-pagehead h1 { max-width: 20em; }
.cc-pagehead .cc-lead { max-width: 42em; }

/* ── Price list (receipt style) ───────────────────────────────────────── */
.cc-price-meta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--cc-muted);
  background: #fff;
}
.cc-price-meta strong { color: var(--cc-ink); }

.cc-toc {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cc-ink);
}
/* Edge fade + clickable triple-chevron buttons: scroll the pill row on
   click, with a light sweeping across the arrows (opacity wave) so it's
   obvious the row continues. Static arrows under reduced motion. */
.cc-toc .cc-wrap { position: relative; }
.cc-toc-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 6rem;
  border: 0;
  cursor: pointer;
  padding: 0 1rem;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--cc-sky);
  transition: opacity .2s ease;
}
.cc-toc-btn--next {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(90deg, transparent, var(--cc-ink) 55%);
}
.cc-toc-btn--prev {
  left: 0;
  justify-content: flex-start;
  background: linear-gradient(270deg, transparent, var(--cc-ink) 55%);
  opacity: 0;
  pointer-events: none;
}
.cc-toc--scrolled .cc-toc-btn--prev { opacity: 1; pointer-events: auto; }
.cc-toc--end .cc-toc-btn--next { opacity: 0; pointer-events: none; }
.cc-toc-btn:hover .cc-toc-arrows { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .cc-toc-btn--next .cc-toc-arrows {
    background: linear-gradient(90deg,
      rgba(35, 170, 225, .3) 35%, #fff 50%, rgba(35, 170, 225, .3) 65%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cc-toc-sweep 1.6s ease-in-out infinite;
  }
  .cc-toc-btn--next:hover .cc-toc-arrows { animation-play-state: paused; color: transparent; background-image: linear-gradient(90deg, #fff, #fff); }
}
@keyframes cc-toc-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}
.cc-toc-row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-block: .8rem;
  padding-right: 4.5rem;
  scrollbar-width: none;
}
.cc-toc-row::-webkit-scrollbar { display: none; }
.cc-toc-row a {
  flex: none;
  padding: .5rem 1rem;
  border: 1px solid rgba(237, 239, 247, .35);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: #EDEFF7;
  background: transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cc-toc-row a:hover { color: var(--cc-ink); border-color: var(--cc-sky); background: var(--cc-sky); }

.cc-price-section { padding-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 5rem; }
.cc-price-section > h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  display: flex;
  align-items: baseline;
  gap: .9rem;
}
.cc-price-row .cc-price-main { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-price-row .cc-price-alt { color: var(--cc-muted-2); font-size: .85rem; white-space: nowrap; min-width: 8.5rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .cc-price-row .cc-price-alt { min-width: 0; } }
.cc-price-note {
  margin-top: .7rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--cc-muted);
  padding-left: .9rem;
  border-left: 2px solid var(--cc-sky);
  max-width: 52em;
  white-space: pre-line;
}

.cc-price-table { margin-top: 1.4rem; border-top: 1px solid var(--cc-line); }
.cc-price-row {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--cc-line-soft);
  font-size: .95rem;
}
.cc-price-row .cc-price-name { color: var(--cc-ink); }
.cc-price-row .cc-price-dots {
  flex: 1;
  min-width: 2rem;
  border-bottom: 1px dotted var(--cc-muted-2);
  transform: translateY(-.28em);
}

.cc-price-row--group { border-bottom: 0; padding-bottom: .1rem; }
.cc-price-row--group .cc-price-name {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cc-blue);
  padding-top: .6rem;
}

.cc-price-foot { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--cc-line); color: var(--cc-muted); font-size: .95rem; }

/* ── Singles (service / team) ─────────────────────────────────────────── */
.cc-single-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 56rem) { .cc-single-grid { grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); align-items: start; } }
.cc-single-grid--portrait { }
@media (min-width: 56rem) { .cc-single-grid--portrait { grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.6fr); } }

.cc-aside { position: sticky; top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cc-aside-card { border: 1px solid var(--cc-line); border-radius: 14px; background: #fff; padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.cc-aside-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.cc-aside-card ul { display: flex; flex-direction: column; }
.cc-aside-card li { border-top: 1px solid var(--cc-line-soft); }
.cc-aside-card li:first-child { border-top: 0; }
.cc-aside-card li a { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; font-size: .92rem; color: var(--cc-muted); transition: color .15s ease; }
.cc-aside-card li a:hover { color: var(--cc-blue); }
.cc-aside-card li a svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--cc-blue); }

.cc-meta-list { display: flex; flex-direction: column; }
.cc-meta-list > div { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 0; border-top: 1px solid var(--cc-line-soft); }
.cc-meta-list > div:first-child { border-top: 0; }
.cc-meta-list dt { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-muted-2); }
.cc-meta-list dd { font-size: .95rem; color: var(--cc-ink); }
.cc-meta-list dd a { color: var(--cc-blue); font-weight: 600; }

.cc-crumb { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--cc-muted); transition: color .15s ease; }
.cc-crumb:hover { color: var(--cc-blue); }
.cc-crumb svg { width: .9rem; height: .9rem; }

/* ── Gallery grid (template-gallery + GLightbox) ──────────────────────── */
.cc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.cc-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--cc-line);
  background: var(--cc-paper-2);
}
.cc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cc-gallery-item:hover img { transform: scale(1.045); }
.cc-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(23, 34, 70, .28));
  opacity: 0;
  transition: opacity .25s ease;
}
.cc-gallery-item:hover::after { opacity: 1; }
/* Every 7th tile spans 2×2 for an editorial rhythm (wide screens only). */
@media (min-width: 48rem) {
  .cc-gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
}

/* ── Prose (entry content on cream) ───────────────────────────────────── */
.cc-prose { font-size: 1.02rem; line-height: 1.75; color: #303650; max-width: 46em; }
.cc-prose p, .cc-prose ul, .cc-prose ol { margin-bottom: 1.1em; }
.cc-prose ul { padding-left: 1.2em; list-style: disc; }
.cc-prose ol { padding-left: 1.2em; list-style: decimal; }
.cc-prose li { margin-bottom: .35em; }
.cc-prose strong { color: var(--cc-ink); }
.cc-prose a { color: var(--cc-blue); text-decoration: underline; text-underline-offset: 3px; }
.cc-prose h2, .cc-prose h3 { font-family: var(--font-display); font-weight: 600; margin: 1.6em 0 .6em; }
.cc-prose h2 { font-size: 1.5rem; }
.cc-prose h3 { font-size: 1.2rem; }
.cc-prose img { border-radius: 14px; border: 1px solid var(--cc-line); }

/* ── Products strip heading tweak (engine cards stay) ─────────────────── */
.cc-products { background: #fff; border-block: 1px solid var(--cc-line); }

/* ── Blog post (content-single override) ──────────────────────────────── */
.cc-post-meta {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cc-muted-2);
}
.cc-post-figure {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cc-paper-2);
}
.cc-post-figure-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cc-post-pages { margin-top: 2rem; font-size: .9rem; color: var(--cc-muted); }
.cc-post-pages a { color: var(--cc-blue); text-decoration: underline; text-underline-offset: 3px; }

.cc-post-tags { margin-top: 2.5rem; }
.cc-tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.cc-tag-list a {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--cc-muted);
  transition: color .15s ease, border-color .15s ease;
}
.cc-tag-list a:hover { color: var(--cc-blue); border-color: var(--cc-blue); }

.cc-post-nav {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--cc-line);
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40rem) { .cc-post-nav { grid-template-columns: 1fr 1fr; } }
.cc-post-nav-link--next { text-align: right; }
.cc-post-nav-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cc-muted-2);
}
.cc-post-nav-title {
  display: block;
  margin-top: .35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cc-ink);
  transition: color .15s ease;
}
.cc-post-nav-link:hover .cc-post-nav-title { color: var(--cc-blue); }

.cc-post-comments { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--cc-line); }
.cc-post-comments .comment-reply-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.cc-post-comments .comment-notes { font-size: .88rem; color: var(--cc-muted); margin: .6rem 0 1.2rem; }
.cc-post-comments .comment-form label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-muted-2); margin-bottom: .35rem; }
.cc-post-comments .comment-form p { margin-bottom: 1.1rem; }
.cc-post-comments .comment-form input[type="text"],
.cc-post-comments .comment-form input[type="email"],
.cc-post-comments .comment-form input[type="url"],
.cc-post-comments .comment-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cc-ink);
  font: inherit;
  transition: border-color .15s ease;
}
.cc-post-comments .comment-form input:focus,
.cc-post-comments .comment-form textarea:focus { outline: none; border-color: var(--cc-blue); }
.cc-post-comments .comment-form .submit {
  display: inline-flex;
  padding: .9rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--cc-blue);
  background: var(--cc-blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.cc-post-comments .comment-form .submit:hover { background: var(--cc-ink); border-color: var(--cc-ink); }
.cc-post-comments .comment-form-cookies-consent label { display: inline; font-size: .85rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--cc-muted); }

/* ── text-white restoration on engine chrome ──────────────────────────
   The engine styles header/drawer links with UNLAYERED rules (e.g.
   `.site-header a { color: inherit }`), which beat Tailwind's `.text-white`
   utility because it sits inside @layer utilities. Any accent pill using
   text-white therefore inherited the dark header colour. Mirror the utility
   unlayered, at high enough specificity, so those buttons are truly white. */
a.text-white,
button.text-white,
.site-header a.text-white,
.site-header button.text-white,
.hr-mobile-drawer a.text-white,
.hr-mobile-drawer .hr-mobile-row > a.text-white { color: #fff; }

/* ── Entry reveal (subtle, CSS-only) ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .cc-rise { animation: cc-rise .7s cubic-bezier(.2,.65,.25,1) both; }
  .cc-rise-2 { animation: cc-rise .7s cubic-bezier(.2,.65,.25,1) .12s both; }
  .cc-rise-3 { animation: cc-rise .7s cubic-bezier(.2,.65,.25,1) .24s both; }
}
@keyframes cc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
