/* ==========================================================================
   HH Color Lab - shared site chrome (used on every page)
   Header with horizontally scrolling menu, footer, ad spacing, page columns.
   ========================================================================== */

/* ---------- Tokens (fall back to the page's own variables when present) ---------- */
.site-header, .hh-footer {
  --hh-text: var(--text, #f3f1ec);
  --hh-dim: var(--text-dim, var(--dim, #a29fb0));
  --hh-faint: var(--text-faint, #6f6c7d);
  --hh-panel: var(--panel, #1b1a24);
  --hh-panel2: var(--panel-2, #211f2b);
  --hh-border: var(--border, #302e3d);
  --hh-soft: var(--border-soft, #26242f);
  --hh-accent: var(--accent, hsl(60 100% 50%));
}

/* ---------- Page columns (single column; ads sit inside the content) ---------- */
.page-columns { position: relative; z-index: 1; max-width: 1760px; margin: 0 auto; }
.page-main { min-width: 0; }

/* ---------- Brand ---------- */
.site-header .brand, .hh-footer .brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 680; font-size: 18px;
  color: var(--hh-text); letter-spacing: -0.01em; text-decoration: none;
}
.site-header .brand .dot, .hh-footer .brand .dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--hh-accent); box-shadow: 0 0 10px var(--hh-accent);
}

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 12px clamp(12px, 3vw, 32px) 10px;
  border-bottom: 1px solid var(--hh-soft);
}
.hh-nav { position: relative; flex: 1 1 100%; min-width: 0; }
@media (min-width: 1000px) { .hh-nav { flex: 1 1 0; } }

/* the scrolling strip */
.hh-track {
  --fl: 0px; --fr: 0px;
  list-style: none; margin: 0; padding: 4px 2px;
  display: flex; align-items: center; gap: 6px;
  position: relative;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.hh-track::-webkit-scrollbar { display: none; }
.hh-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hh-nav.can-left  .hh-track { --fl: 34px; }
.hh-nav.can-right .hh-track { --fr: 34px; }

.hh-track li { flex: 0 0 auto; scroll-snap-align: start; }
.hh-track a {
  display: block; padding: 8px 14px; border-radius: 100px;
  border: 1px solid transparent;
  color: var(--hh-dim); font: 500 13.5px/1.2 'Inter', system-ui, sans-serif;
  text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  -webkit-user-drag: none;
}
.hh-track a:hover { color: var(--hh-text); background: var(--hh-panel2); border-color: var(--hh-border); }
.hh-track a:focus-visible { outline: 2px solid var(--hh-accent); outline-offset: 1px; color: var(--hh-text); }
.hh-track a[aria-current="page"] { background: var(--hh-accent); color: #111; font-weight: 700; border-color: transparent; }

/* group labels and dividers inside the strip */
.hh-track li.hh-label {
  display: flex; align-items: center; gap: 8px; margin-left: 6px; padding-left: 12px;
  border-left: 1px solid var(--hh-border);
  font: 700 10.5px/1 'Inter', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hh-faint); user-select: none;
}
.hh-track li.hh-label:first-child { margin-left: 0; padding-left: 2px; border-left: 0; }

/* arrow buttons (mouse users) */
.hh-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hh-panel); color: var(--hh-text);
  border: 1px solid var(--hh-border); box-shadow: 0 4px 14px rgba(0,0,0,.45);
  font: 700 17px/1 'Inter', system-ui, sans-serif; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility 0s linear .15s, border-color .15s ease;
}
.hh-arrow:hover, .hh-arrow:focus-visible { border-color: var(--hh-accent); }
.hh-prev { left: 0; } .hh-next { right: 0; }
.hh-nav.can-left  .hh-prev,
.hh-nav.can-right .hh-next { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
@media (hover: none) { .hh-arrow { display: none; } }

/* ---------- Advertisements: plain AdSense unit, only spacing, no colours ---------- */
.hh-ad { grid-column: 1 / -1; margin: 22px 0; text-align: center; }
.hh-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ---------- Footer ---------- */
.hh-footer {
  position: relative; z-index: 1;
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--hh-panel);
  border-top: 1px solid var(--hh-border);
  color: var(--hh-dim); font: 400 14px/1.65 'Inter', system-ui, sans-serif;
}
.hh-footer-inner { max-width: var(--maxw, 1280px); margin: 0 auto; padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 32px) 0; }
.hh-footer a { color: var(--hh-dim); text-decoration: none; }
.hh-footer a:hover, .hh-footer a:focus-visible { color: var(--hh-accent); text-decoration: underline; }
.hh-footer a:focus-visible { outline: 2px solid var(--hh-accent); outline-offset: 2px; border-radius: 4px; }
.hh-footer h3 {
  margin: 0 0 12px; font: 700 12px/1.2 'Inter', system-ui, sans-serif;
  letter-spacing: .1em; text-transform: uppercase; color: var(--hh-text);
}
.hh-footer ul { list-style: none; margin: 0; padding: 0; }
.hh-footer li { margin: 0; }
.hh-footer li a { display: inline-block; padding: 4px 0; }

.hh-f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.hh-f-brand { grid-column: 1 / -1; }
.hh-f-brand p { margin: 10px 0 14px; max-width: 46ch; }
.hh-f-contact { font-size: 13.5px; }
.hh-f-contact li { padding: 2px 0; color: var(--hh-dim); }
.hh-f-contact strong { color: var(--hh-text); font-weight: 600; }
.hh-f-col h3:not(:first-child) { margin-top: 22px; }
@media (min-width: 720px)  { .hh-f-grid { grid-template-columns: repeat(4, 1fr); } .hh-f-brand { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .hh-f-grid { grid-template-columns: 1.7fr repeat(4, 1fr); gap: 32px; } .hh-f-brand { grid-column: auto; } }

.hh-f-trust {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 30px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--hh-soft); font-size: 13px; color: var(--hh-dim);
}
.hh-f-trust span::before { content: "\2713"; color: var(--good, #5fd98a); font-weight: 700; margin-right: 8px; }

.hh-f-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 18px; padding: 16px 0 24px; border-top: 1px solid var(--hh-soft);
  font-size: 12.5px; color: var(--hh-faint);
}
.hh-f-bottom p { margin: 0; max-width: 78ch; }
.hh-f-bottom .hh-top { color: var(--hh-dim); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .hh-track { scroll-behavior: auto; }
  .hh-track a, .hh-arrow { transition: none; }
}
