/*
Theme Name: Coffee Insurrection B/N/R
Theme URI: https://coffeeinsurrection.com
Author: Coffee Insurrection
Description: Specialty coffee global directory — strict black / white / red palette. Editorial brutalist minimal.
Version: 4.9.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: coffee-insurrection
*/

/* ============================================================
   DESIGN TOKENS — STRICTLY BLACK / WHITE / RED
   ============================================================ */
:root {
  /* Core palette — nothing else */
  --ci-black:       #1a1a1a;
  --ci-off-black:   #242424;
  --ci-dark:        #2e2e2e;
  --ci-mid:         #383838;
  --ci-border:      #444444;
  --ci-border-lt:   #555555;
  --ci-muted:       #999999;
  --ci-subtle:      #bbbbbb;
  --ci-light:       #cccccc;
  --ci-white:       #e8e8e8;
  --ci-bright:      #f0f0f0;
  --ci-off-white:   #e0e0e0;

  /* THE accent — only red */
  --ci-red:         #e81818;
  --ci-red-dk:      #b80e0e;
  --ci-red-lt:      #ff3333;
  --ci-red-dim:     rgba(232, 24, 24, 0.12);
  --ci-red-border:  rgba(232, 24, 24, 0.3);

  /* Typography — stark editorial pairing */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-6: 1.5rem;   --sp-8: 2rem;
  --sp-12: 3rem;    --sp-16: 4rem;    --sp-24: 6rem;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    120ms;
  --dur-med:     250ms;
  --dur-slow:    480ms;

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow: 760px;
  --radius-sm:    0px;   /* sharp corners — brutalist */
  --radius:       2px;
  --radius-lg:    4px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--ci-black);
  color: var(--ci-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  cursor: default;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-xl {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.display-lg {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
}
.display-md {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
}
.display-sm {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.text-lg    { font-size: 1.125rem; }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; letter-spacing: 0.08em; }
.text-muted { color: var(--ci-muted); }
.text-subtle{ color: var(--ci-subtle); }
.text-red   { color: var(--ci-red); }
.text-white { color: var(--ci-white); }
.uppercase  { text-transform: uppercase; }
.mono       { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); text-transform: uppercase; }

/* Red underline accent — the signature element */
.red-rule {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--ci-red);
  margin-bottom: var(--sp-4);
}
.red-rule--lg { width: 80px; height: 4px; }
.red-rule--inline { display: inline-block; margin-bottom: 0; vertical-align: middle; margin-right: var(--sp-3); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--narrow { max-width: var(--max-w-narrow); }
.section           { padding-block: var(--sp-16); }
.section--lg       { padding-block: var(--sp-24); }
.section--sm       { padding-block: var(--sp-8); }
.grid              { display: grid; }
.flex              { display: flex; }
.gap-4             { gap: var(--sp-4); }
.gap-6             { gap: var(--sp-6); }
.gap-8             { gap: var(--sp-8); }
.items-center      { align-items: center; }
.justify-between   { justify-content: space-between; }

/* Dividers */
.divider {
  height: 1px;
  background: var(--ci-border);
  border: none;
}
.divider--red { background: var(--ci-red); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  background: var(--ci-black);
  border-bottom: 1px solid var(--ci-border);
  transition: border-color var(--dur-med);
}
.site-header.scrolled { border-bottom-color: var(--ci-red); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ci-bright);
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.site-logo__accent { color: #ff4444; }
.site-logo__sep {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--ci-red);
  margin-inline: 6px;
  vertical-align: middle;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ci-muted);
  transition: color var(--dur-fast);
  font-family: var(--font-mono);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--ci-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.site-nav a:hover { color: var(--ci-white); }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #b40000; /* WCAG AA: 5.83:1 with white text */
  color: var(--ci-white) !important;
  font-size: 0.7rem !important;
  font-weight: 600;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  font-family: var(--font-mono) !important;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.nav-cta:hover {
  background: #8a0000 !important;
  color: var(--ci-white) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ci-white);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast);
}

/* ============================================================
   HERO — EDITORIAL BRUTALIST
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 60px;
  padding-bottom: var(--sp-16);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ci-border);
}

/* Big decorative background letter */
.hero__bg-letter {
  position: absolute;
  bottom: -8%;
  right: -2%;
  font-family: var(--font-display);
  font-size: clamp(20rem, 50vw, 48rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--ci-border);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* Red vertical stripe */
.hero__stripe {
  position: absolute;
  top: 0; bottom: 0;
  right: clamp(240px, 28vw, 420px);
  width: 3px;
  background: var(--ci-red);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ci-red);
  margin-bottom: var(--sp-6);
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--ci-red);
  display: inline-block;
  animation: blink 1.4s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero__title {
  color: var(--ci-bright);
  margin-bottom: var(--sp-6);
}
.hero__title-line { display: block; }
.hero__title-line--red { color: var(--ci-red); }
.hero__title-line--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ci-bright);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--ci-muted);
  max-width: 440px;
  margin-bottom: var(--sp-8);
  line-height: 1.7;
  font-weight: 300;
}

.hero__actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

.hero__stat-bar {
  display: flex;
  gap: 0;
  margin-top: var(--sp-12);
  border-top: 1px solid var(--ci-border);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-8) var(--sp-4) 0;
  border-right: 1px solid var(--ci-border);
  margin-right: var(--sp-8);
}
.hero__stat:last-child { border-right: none; margin-right: 0; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--ci-white);
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero__stat-num span { color: var(--ci-red); }
.hero__stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ci-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-fast);
  white-space: nowrap;
  font-family: var(--font-mono);
  border-radius: 0;
}

.btn--primary {
  background: #b40000; /* WCAG AA: 5.83:1 with white text */
  color: var(--ci-white);
  border-color: #b40000;
}
.btn--primary:hover {
  background: var(--ci-black);
  color: #ff6e6e;
  border-color: #ff6e6e;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ci-white);
  border-color: var(--ci-border-lt);
}
.btn--ghost:hover {
  border-color: var(--ci-white);
  background: transparent;
  transform: translateY(-1px);
}

.btn--white {
  background: var(--ci-white);
  color: var(--ci-black);
  border-color: var(--ci-white);
}
.btn--white:hover {
  background: var(--ci-off-white);
}

.btn--sm  { padding: 0.45rem 1rem; font-size: 0.7rem; }
.btn--lg  { padding: 1rem 2rem; font-size: 0.875rem; }
.btn--icon{ padding: 0.6rem; gap: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #2e2e2e;
  border: 1px solid #555;
  overflow: hidden;
  transition: border-color var(--dur-med), transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.4);
  border-radius: 4px;
  margin-bottom: 0;
}
.card:hover { border-color: var(--ci-red); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.7); }
.card-grid { gap: 2rem; }
.card:hover .card__red-bar { width: 100%; }

.card__red-bar {
  height: 2px;
  background: var(--ci-red);
  width: 0;
  transition: width var(--dur-slow) var(--ease-out);
}

.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ci-dark);
  position: relative;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  filter: grayscale(30%);
}
.card:hover .card__img img { transform: scale(1.05); filter: grayscale(0%); }

/* Red overlay on hover */
.card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ci-red);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity var(--dur-med);
}
.card:hover .card__img::after { opacity: 0.1; }

.card__body { padding: var(--sp-6); }
.card__tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ff6e6e; /* WCAG AA: 4.98:1 on card bg #2e2e2e */
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ci-bright);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.03em;
}
.card__meta { font-size: 0.8rem; color: var(--ci-muted); margin-bottom: var(--sp-3); font-family: var(--font-mono); }
.card__desc { font-size: 0.875rem; color: var(--ci-subtle); line-height: 1.6; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }

/* ── Discover page layout ── */
.ci-discover-layout  { display: flex; gap: 3rem; align-items: flex-start; }
.ci-discover-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 80px; }
.ci-discover-main    { flex: 1; min-width: 0; }
.ci-mobile-filter    { display: none; }
.card-grid .card { border: 1px solid var(--ci-border); border-radius: var(--radius); }

/* ============================================================
   MAP
   ============================================================ */
.map-section { background: var(--ci-off-black); border-top: 1px solid var(--ci-border); border-bottom: 1px solid var(--ci-border); }

.map-wrapper {
  border: 1px solid var(--ci-border);
  overflow: hidden;
  height: 560px;
  position: relative;
}
.map-wrapper #ci-map,
.map-wrapper .shop-map,
.map-wrapper #ci-shop-map-canvas { width: 100%; height: 100%; min-height: 420px; }

/* Leaflet dark overrides */
.leaflet-container {
  background: #0d0d0d !important;
  font-family: var(--font-body) !important;
}
.leaflet-tile { filter: invert(1) hue-rotate(200deg) grayscale(30%) brightness(0.85) contrast(1.1) !important; }
.leaflet-popup-content-wrapper {
  background: var(--ci-off-black) !important;
  border: 1px solid var(--ci-border-lt) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 var(--ci-red) !important;
  color: var(--ci-white) !important;
}
.leaflet-popup-tip { background: var(--ci-off-black) !important; }
.leaflet-popup-content { margin: 14px 18px !important; }
.ci-popup-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ci-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.ci-popup-city { font-size: 0.75rem; color: var(--ci-muted); margin-bottom: 10px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.ci-popup-link { font-size: 0.75rem; color: var(--ci-red); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.leaflet-control-zoom a {
  background: var(--ci-off-black) !important;
  border-color: var(--ci-border) !important;
  color: var(--ci-white) !important;
  border-radius: 0 !important;
}
.leaflet-control-attribution { background: rgba(0,0,0,0.85) !important; color: var(--ci-muted) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--ci-red) !important; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ci-muted);
  font-family: var(--font-mono);
}
.form-input, .form-select, .form-textarea {
  background: var(--ci-black);
  border: 1px solid var(--ci-border-lt);
  border-radius: 0;
  color: var(--ci-white);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--dur-fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ci-red);
  box-shadow: 0 0 0 1px var(--ci-red);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ci-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-error   { font-size: 0.75rem; color: var(--ci-red); font-family: var(--font-mono); }
.form-success { font-size: 0.75rem; color: #22cc66; font-family: var(--font-mono); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 60px;
}

.auth-page__left {
  background: var(--ci-off-black);
  border-right: 1px solid var(--ci-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-16) var(--sp-12);
  position: relative;
  overflow: hidden;
}
.auth-page__left-bg {
  position: absolute;
  bottom: -10%;
  left: -5%;
  font-family: var(--font-display);
  font-size: 22rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--ci-border);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.05em;
}
.auth-page__left-content { position: relative; z-index: 1; }
.auth-page__left-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ci-red);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.auth-page__left-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--ci-red); }
.auth-page__left-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  color: var(--ci-white);
  line-height: 0.9;
  margin-bottom: var(--sp-6);
}
.auth-page__left-title span { color: var(--ci-red); }
.auth-page__left-desc { color: var(--ci-muted); font-size: 0.9rem; max-width: 320px; line-height: 1.7; }

.auth-page__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-16) var(--sp-12);
}

.auth-box__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--ci-white);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.auth-box__sub { font-size: 0.875rem; color: var(--ci-muted); margin-bottom: var(--sp-8); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
  color: var(--ci-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ci-border);
}
.auth-footer { font-size: 0.875rem; color: var(--ci-muted); margin-top: var(--sp-6); }
.auth-footer a { color: var(--ci-red); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
}

.dashboard__sidebar {
  background: var(--ci-off-black);
  border-right: 1px solid var(--ci-border);
  padding: var(--sp-8) 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar__section-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ci-muted);
  padding: var(--sp-4) var(--sp-6) var(--sp-2);
  font-family: var(--font-mono);
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.65rem var(--sp-6);
  font-size: 0.8rem;
  color: var(--ci-muted);
  transition: all var(--dur-fast);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border-left: 2px solid transparent;
  text-transform: uppercase;
}
.sidebar__nav a:hover { color: var(--ci-white); background: var(--ci-dark); }
.sidebar__nav a.active { color: var(--ci-red); border-left-color: var(--ci-red); background: var(--ci-dark); }
.sidebar__icon { width: 14px; height: 14px; opacity: 0.6; flex-shrink: 0; }

.dashboard__main { padding: var(--sp-8); overflow-y: auto; }

.dash-header { margin-bottom: var(--sp-8); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--ci-border); }
.dash-header__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--ci-bright);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.dash-header__sub { color: var(--ci-muted); font-size: 0.875rem; font-family: var(--font-mono); }

/* Stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; margin-bottom: var(--sp-8); background: var(--ci-border); }
.stat-card {
  background: var(--ci-off-black);
  padding: var(--sp-6);
  border-left: 2px solid transparent;
  transition: border-color var(--dur-fast);
}
.stat-card:hover { border-left-color: var(--ci-red); }
.stat-card__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ci-bright);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-card__label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ci-muted); font-family: var(--font-mono); }

/* ============================================================
   SHOP HERO
   ============================================================ */
.shop-hero {
  padding-top: 60px;
  background: var(--ci-off-black);
  border-bottom: 1px solid var(--ci-border);
}

.shop-hero__cover {
  height: 320px;
  background: var(--ci-dark);
  overflow: hidden;
  position: relative;
}
.shop-hero__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.1);
  opacity: 0.7;
}
.shop-hero__cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--ci-off-black) 100%);
}

/* Red stripe on cover */
.shop-hero__cover-stripe {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--ci-red);
}

.shop-hero__info {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  margin-top: -48px;
  position: relative;
  z-index: 1;
}

.shop-hero__logo {
  width: 96px; height: 96px;
  border: 2px solid var(--ci-border-lt);
  background: var(--ci-dark);
  overflow: hidden;
  flex-shrink: 0;
}
.shop-hero__logo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }

.shop-hero__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ci-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: var(--sp-2);
}
.shop-hero__location {
  font-size: 0.75rem;
  color: var(--ci-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Shop Tabs */
.shop-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ci-border); margin-top: var(--sp-6); }
.shop-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  color: var(--ci-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--dur-fast);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.shop-tab.active, .shop-tab:hover { color: var(--ci-white); border-color: var(--ci-red); }
.shop-tab.active { color: var(--ci-red); }

.shop-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-8); padding-block: var(--sp-8); }

/* Detail blocks */
.detail-block { margin-bottom: var(--sp-8); }
.detail-block p { margin-bottom: 1em; line-height: 1.75; color: var(--ci-light); }
.detail-block p:last-child { margin-bottom: 0; }
.detail-block ul, .detail-block ol { margin-bottom: 1em; padding-left: 1.5em; color: var(--ci-light); }
.detail-block li { margin-bottom: .35em; line-height: 1.65; }
.detail-block__title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ci-muted);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--ci-border);
}

.hours-grid { display: grid; grid-template-columns: 100px 1fr; gap: var(--sp-1) var(--sp-4); font-size: 0.875rem; }
.hours-grid .day { color: var(--ci-muted); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hours-grid .time { color: var(--ci-white); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: var(--ci-dark);
  border: 1px solid var(--ci-border-lt);
  font-size: 0.7rem;
  color: var(--ci-subtle);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge--red { border-color: var(--ci-red-border); color: var(--ci-red); background: var(--ci-red-dim); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Info card (sidebar on shop page) */
.info-card {
  background: var(--ci-dark);
  border: 1px solid var(--ci-border);
  border-top: 2px solid var(--ci-red);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.info-card__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ci-bright);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--ci-border);
}
.info-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
  font-size: 0.875rem;
  color: var(--ci-subtle);
}
.info-row svg { flex-shrink: 0; margin-top: .15rem; }
.info-row a { color: var(--ci-white); }
.info-row a:hover { color: var(--ci-red); }

/* ============================================================
   PROFILE / NOTES
   ============================================================ */
.profile-page { padding-top: calc(60px + var(--sp-12)); padding-bottom: var(--sp-16); }
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-8); }

.profile-card {
  background: var(--ci-off-black);
  border: 1px solid var(--ci-border);
  border-top: 2px solid var(--ci-red);
  padding: var(--sp-8);
  text-align: center;
  position: sticky;
  top: calc(60px + var(--sp-6));
  align-self: start;
}
.profile-avatar {
  width: 80px; height: 80px;
  background: var(--ci-dark);
  border: 1px solid var(--ci-border-lt);
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); }
.profile-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--ci-bright);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-1);
}
.profile-since { font-size: 0.7rem; color: var(--ci-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-6); }

/* Notes panel */
.notes-panel {
  background: var(--ci-off-black);
  border: 1px solid var(--ci-border);
}
.notes-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6);
  border-bottom: 1px solid var(--ci-border);
}
.notes-panel__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--ci-white);
  letter-spacing: 0.04em;
}
.notes-panel__body { padding: var(--sp-6); }

.note-card {
  background: var(--ci-dark);
  border: 1px solid var(--ci-border);
  border-left: 3px solid var(--ci-red);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  transition: border-color var(--dur-fast);
}
.note-card:hover { border-color: var(--ci-border-lt); border-left-color: var(--ci-red); }
.note-card__shop {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ci-red);
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
}
.note-card__text { font-size: 0.9rem; color: var(--ci-light); line-height: 1.6; }
.note-card__date { font-size: 0.7rem; color: var(--ci-muted); margin-top: var(--sp-2); font-family: var(--font-mono); letter-spacing: 0.08em; }
.note-card__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }

/* ============================================================
   SEARCH
   ============================================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--ci-black);
  border: 1px solid var(--ci-border-lt);
  padding: var(--sp-3) var(--sp-4);
  max-width: 600px;
  transition: border-color var(--dur-fast);
}
.search-bar:focus-within { border-color: var(--ci-red); box-shadow: 0 0 0 1px var(--ci-red); }
.search-bar input { flex: 1; background: transparent; border: none; color: var(--ci-white); outline: none; }
.search-bar input::placeholder { color: var(--ci-muted); }
.search-icon { color: var(--ci-muted); width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.filter-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-block: var(--sp-6); }
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  background: transparent;
  border: 1px solid var(--ci-border-lt);
  font-size: 0.7rem;
  color: #b8b8b8;
  cursor: pointer;
  transition: all var(--dur-fast);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--ci-red);
  color: #ffffff;
  background: rgba(232, 24, 24, 0.25);
}

/* ============================================================
   NOTICES
   ============================================================ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid;
  font-size: 0.875rem;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.notice--success { background: rgba(34,204,102,.08); border-color: rgba(34,204,102,.3); color: #22cc66; }
.notice--error   { background: var(--ci-red-dim); border-color: var(--ci-red-border); color: var(--ci-red); }
.notice--info    { background: rgba(255,255,255,.05); border-color: var(--ci-border-lt); color: var(--ci-light); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--ci-border);
}
.section-header__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ci-red);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-header__label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ci-red);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ci-bright);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ci-off-black);
  border-top: 1px solid var(--ci-border);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ci-red) 30%, var(--ci-red) 70%, transparent 100%);
  opacity: 0.6;
}

.footer-top {
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--ci-border);
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  color: #e8e8e8;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
  line-height: 1;
}
.footer-brand__logo span { color: var(--ci-red); }
.footer-brand__desc { font-size: 1rem; color: #c5c5c5; line-height: 1.75; max-width: 280px; }

.footer-col__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e8e8e8;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--ci-border);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-4); }
.footer-col a { font-size: 1rem; color: #c5c5c5; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--ci-red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6) var(--sp-6);
  font-size: 0.875rem;
  color: #c5c5c5;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fade-up   { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
.animate-fade-in   { animation: fadeIn var(--dur-slow) var(--ease-out) both; }
.animate-slide-in  { animation: slideInLeft var(--dur-slow) var(--ease-out) both; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--ci-border-lt);
  border-top-color: var(--ci-red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-detail-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-page__left { display: none; }
  .auth-page__right { padding: var(--sp-8); }
  .dashboard { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  /* Hide red vertical stripe — looks broken on narrow screens */
  .hero__stripe { display: none; }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--ci-off-black);
    padding: var(--sp-8);
    gap: var(--sp-4);
    border-top: 1px solid var(--ci-border);
    z-index: 99;
    overflow-y: auto;
  }
  .site-nav.open a { font-size: 1rem; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { padding-block: var(--sp-8); }
  .footer-brand { margin-bottom: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--ci-border); }
  .footer-brand__logo { font-size: 1.25rem; }
  .footer-brand__desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; padding: var(--sp-4); }
  .form-row { grid-template-columns: 1fr; }
  .hero__stat-bar { flex-wrap: wrap; gap: var(--sp-4); }
  .map-wrapper { height: 380px; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard__sidebar { display: none; }
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 !important;
  }
  .card-grid .card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .card-grid .card {
    margin-bottom: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
  }
  .card-grid[style*="gap"] {
    gap: 1rem !important;
  }
  /* Archive grid on phone: single column, proper spacing */
  #ci-archive-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 !important;
  }

  /* ── Discover page: mobile layout ── */
  .ci-mobile-filter  { display: none; }
  .ci-discover-sidebar { display: none; }
  .ci-discover-layout { display: block; }
  .ci-discover-main   { width: 100%; }

  /* ── Mobile horizontal swipe carousel ── */
  .card-grid--swipe {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0 !important;
    padding-bottom: .75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: none !important;
    background: transparent !important;
  }
  .card-grid--swipe::-webkit-scrollbar { display: none; }
  .card-grid--swipe .card {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: start;
    border: 1px solid var(--ci-border) !important;
    border-radius: var(--radius);
    margin-right: 1px;
  }
  .card-grid--swipe .card:first-child { margin-left: 1rem; }
  .card-grid--swipe .card:last-child  { margin-right: 1rem; }

  /* Swipe hint */
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    font-family: var(--font-mono);
    color: var(--ci-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .75rem;
    padding-left: 1rem;
  }
  .swipe-hint svg { animation: swipe-arrow 1.4s ease-in-out infinite; }
  @keyframes swipe-arrow {
    0%, 100% { transform: translateX(0);   opacity: 1; }
    50%       { transform: translateX(6px); opacity: .5; }
  }

  /* Pagination hidden on mobile (use swipe instead) */
  .ci-pagination { display: none; }
}

/* WP Admin Bar */
.admin-bar .site-header { top: 32px; }
.admin-bar .dashboard { margin-top: calc(60px + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ============================================================
   BLOG — Archive & Single Post
   ============================================================ */

/* ── Blog Archive Grid ──────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #2e2e2e;
  border: 1px solid var(--ci-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-med), transform var(--dur-med), box-shadow var(--dur-med);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.blog-card:hover {
  border-color: var(--ci-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.7);
}

.blog-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-out), filter .4s;
  filter: grayscale(20%);
}
.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.blog-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.4) 100%);
}

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .75rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.blog-card__cat {
  font-size: .65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ci-red);
  background: var(--ci-red-dim);
  border: 1px solid var(--ci-red-border);
  padding: .15rem .5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .15s;
}
.blog-card__cat:hover { background: rgba(232,24,24,.22); }
.blog-card__date,
.blog-card__read {
  font-size: .7rem;
  font-family: var(--font-mono);
  color: var(--ci-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.blog-card__date::before { content: '·'; margin-right: .5rem; }

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.05;
  color: var(--ci-bright);
  margin: 0;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.blog-card__title a:hover { color: var(--ci-red); }

.blog-card__excerpt {
  font-size: .875rem;
  color: var(--ci-subtle);
  line-height: 1.65;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--ci-border);
  margin-top: auto;
}
.blog-card__author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--ci-muted);
  font-family: var(--font-mono);
}
.blog-card__avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ci-border);
  filter: grayscale(30%);
}
.blog-card__more {
  font-size: .7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ci-red);
  text-decoration: none;
  transition: letter-spacing .15s;
}
.blog-card__more:hover { letter-spacing: .16em; }

/* Pagination for blog archive */
.page-numbers { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; }
.page-numbers li a,
.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .75rem;
  font-size: .7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ci-muted);
  border: 1px solid var(--ci-border);
  border-radius: 2px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.page-numbers li a:hover { color: var(--ci-white); border-color: var(--ci-red); }
.page-numbers li .current { background: var(--ci-red); color: var(--ci-black); border-color: var(--ci-red); }

/* ── Single Post Hero ───────────────────────────────────── */
.post-hero {
  position: relative;
  background: var(--ci-off-black);
  border-bottom: 1px solid var(--ci-border);
  overflow: hidden;
}
.post-hero__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.post-hero__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}
.post-hero__cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,26,.65) 0%, rgba(26,26,26,.92) 100%);
}
.post-hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.5rem;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.post-hero__cat {
  font-size: .65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ci-red);
  background: var(--ci-red-dim);
  border: 1px solid var(--ci-red-border);
  padding: .15rem .5rem;
  border-radius: 2px;
  text-decoration: none;
}
.post-hero__sep { color: var(--ci-border); }
.post-hero__meta span {
  font-size: .7rem;
  font-family: var(--font-mono);
  color: var(--ci-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ci-bright);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: .95;
  margin: 0 0 1.25rem;
}
.post-hero__excerpt {
  font-size: 1.1rem;
  color: var(--ci-subtle);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.post-hero__avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  border: 2px solid var(--ci-border);
  object-fit: cover;
}

/* ── Single Post Content ────────────────────────────────── */
.post-content {
  color: var(--ci-white);
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ci-bright);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 2.5rem 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--ci-red);
  line-height: 1;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ci-bright);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 2rem 0 .75rem;
  line-height: 1;
}
.post-content h4 {
  font-size: 1rem;
  color: var(--ci-bright);
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content a { color: var(--ci-red); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--ci-red-lt); }
.post-content strong { color: var(--ci-bright); font-weight: 600; }
.post-content em { color: var(--ci-subtle); }
.post-content blockquote {
  border-left: 3px solid var(--ci-red);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--ci-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p {
  color: var(--ci-subtle);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}
.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-content li { margin-bottom: .4rem; color: var(--ci-white); }
.post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--ci-border);
  margin: 1.5rem 0;
}
.post-content figure { margin: 2rem 0; }
.post-content figcaption {
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--ci-muted);
  text-align: center;
  margin-top: .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.post-content pre {
  background: var(--ci-dark);
  border: 1px solid var(--ci-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  font-size: .85rem;
  color: var(--ci-subtle);
  margin-bottom: 1.5rem;
}
.post-content code {
  background: var(--ci-dark);
  border: 1px solid var(--ci-border);
  border-radius: 3px;
  padding: .1em .35em;
  font-size: .9em;
  color: var(--ci-red-lt);
}
.post-content pre code { background: none; border: none; padding: 0; color: inherit; }
.post-content hr {
  border: none;
  border-top: 1px solid var(--ci-border);
  margin: 2.5rem 0;
}
.post-content .wp-block-image figcaption { color: var(--ci-muted); }

/* ── Author Box ─────────────────────────────────────────── */
.post-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--ci-dark);
  border: 1px solid var(--ci-border);
  border-left: 3px solid var(--ci-red);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 3rem;
}
.post-author-box__avatar {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  border: 2px solid var(--ci-border);
  object-fit: cover;
  flex-shrink: 0;
}
.post-author-box__label {
  font-size: .65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ci-muted);
  margin-bottom: .2rem;
}
.post-author-box__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ci-bright);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.post-author-box__bio {
  font-size: .875rem;
  color: var(--ci-subtle);
  line-height: 1.65;
  margin: 0;
}

/* ── Prev/Next Nav ──────────────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ci-border);
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.5rem;
  background: var(--ci-off-black);
  text-decoration: none;
  transition: background .15s;
}
.post-nav__item:hover { background: var(--ci-dark); }
.post-nav__item--next { text-align: right; }
.post-nav__dir {
  font-size: .65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ci-red);
}
.post-nav__ttl {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ci-bright);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.1;
}

/* ── Blog mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-hero__content { padding: 2.5rem 0 2rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
  .post-author-box { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE CAROUSEL SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* Section wrapper */
.ci-hp-section {
  padding: 4rem 0 0;
  border-top: 1px solid var(--ci-border);
  overflow: hidden;
}
.ci-hp-section--dark {
  background: var(--ci-off-black);
}

/* Section header */
.ci-hp-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ci-border);
}
.ci-hp-section__label {
  font-size: .7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #ffffff;
  margin-bottom: .5rem;
}
.ci-hp-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ci-white);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}

/* Carousel wrapper */
.ci-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding-bottom: 3rem;
}

/* Carousel scroll container */
.ci-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem 2rem 1rem;
  scrollbar-width: none;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.ci-carousel::-webkit-scrollbar { display: none; }

/* Prev/Next buttons */
.ci-carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--ci-dark);
  border: 1px solid var(--ci-border);
  color: var(--ci-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  position: relative;
  z-index: 2;
  border-radius: 2px;
  line-height: 1;
  margin: 0 .5rem;
  align-self: center;
}
.ci-carousel-btn:hover {
  background: var(--ci-red);
  border-color: var(--ci-red);
  color: #fff;
}

/* Cards */
.ci-hp-card {
  flex-shrink: 0;
  width: 240px;
  border: 1px solid var(--ci-border);
  background: var(--ci-dark);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: border-color .2s, transform .2s;
  border-radius: 2px;
  overflow: hidden;
}
.ci-hp-card:hover {
  border-color: var(--ci-red);
  transform: translateY(-3px);
}

.ci-hp-card__img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--ci-off-black);
  position: relative;
  flex-shrink: 0;
}
.ci-hp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.ci-hp-card:hover .ci-hp-card__img img {
  transform: scale(1.05);
}
.ci-hp-card__no-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  background: var(--ci-dark);
}

/* Region card overlay */
.ci-hp-card--region .ci-hp-card__img {
  height: 180px;
}
.ci-hp-card__region-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,.7) 0%, transparent 60%);
}
.ci-hp-card__region-name {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
}

/* Card body */
.ci-hp-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}
.ci-hp-card__tag {
  font-size: .65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ci-red);
}
.ci-hp-card__title {
  font-size: .925rem;
  font-weight: 600;
  color: var(--ci-bright);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ci-hp-card__meta {
  font-size: .75rem;
  color: var(--ci-muted);
  margin: 0;
}

/* Empty state */
.ci-carousel__empty {
  padding: 3rem 2rem;
  color: var(--ci-muted);
  font-size: .875rem;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
  .ci-hp-section { padding: 2.5rem 0 0; }
  .ci-hp-card { width: 200px; }
  .ci-hp-card__img { height: 130px; }
  .ci-carousel-btn { width: 36px; height: 36px; font-size: 1.2rem; margin: 0 .25rem; }
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════ */
.ci-breadcrumb { font-size: .75rem; }
.ci-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ci-breadcrumb__link {
  color: var(--ci-muted);
  text-decoration: none;
  transition: color .15s;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
}
.ci-breadcrumb__link:hover { color: var(--ci-red); }
.ci-breadcrumb__sep { color: var(--ci-border); font-size: .8rem; }
.ci-breadcrumb__item--current {
  color: var(--ci-white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
}

/* ── Nearby section mobile gap ───────────────────────────────── */
@media (max-width: 768px) {
  .card-grid[style*="gap"] {
    gap: 1rem !important;
  }
}


/* ── High contrast fixes for dark sections ───────────────────── */
.ci-hp-section--dark .ci-hp-section__label { color: #ffffff; }
.ci-hp-section--dark .ci-hp-section__title { color: #ffffff; }
.ci-hp-section .ci-hp-section__label { color: #ffffff; }
.ci-hp-section .ci-hp-section__title { color: #ffffff; }

/* ── Mobile readability improvements ────────────────────────── */
@media (max-width: 768px) {
  /* HIGH CONTRAST overrides for mobile */
  :root {
    --ci-white:  #ffffff;
    --ci-light:  #f0f0f0;
    --ci-subtle: #dddddd;
    --ci-muted:  #bbbbbb;
  }

  /* Nav menu links */
  .site-nav a {
    font-size: 1rem;
    padding: .6rem .5rem;
    color: #ffffff !important;
  }
  .nav-cta {
    font-size: .9rem;
    padding: .55rem 1rem;
  }
  .nav-search-btn {
    color: #ffffff !important;
  }

  /* Hero text */
  .hero__eyebrow {
    font-size: .8rem;
    letter-spacing: .12em;
    color: #ffffff !important;
  }
  .hero__title {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
    color: #ffffff !important;
  }
  .hero__sub {
    font-size: 1rem;
    line-height: 1.65;
    color: #f0f0f0 !important;
  }
  .hero__stat-num {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    color: #ffffff !important;
  }
  .hero__stat-label {
    font-size: .7rem;
    letter-spacing: .1em;
    color: #dddddd !important;
  }

  /* Buttons */
  .btn--lg {
    font-size: 1rem;
    padding: .85rem 1.75rem;
  }
  .btn--sm {
    font-size: .875rem;
    padding: .5rem .9rem;
  }
  .btn--ghost {
    color: #ffffff !important;
    border-color: rgba(255,255,255,.5) !important;
  }

  /* Section labels and titles */
  .ci-hp-section__label {
    font-size: .75rem;
    letter-spacing: .12em;
    color: var(--ci-red) !important;
  }
  .ci-hp-section__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    color: #ffffff !important;
  }

  /* Card text */
  .ci-hp-card__title {
    font-size: .95rem;
    color: #ffffff !important;
  }
  .ci-hp-card__meta {
    font-size: .78rem;
    color: #dddddd !important;
  }
  .ci-hp-card__tag {
    color: #ffffff !important;
  }

  /* Shop cards */
  .card__title {
    color: #ffffff !important;
  }
  .card__meta {
    color: #dddddd !important;
  }
  .card__tag {
    color: #dddddd !important;
  }

  /* Section descriptions */
  .ci-hp-section p,
  .section p {
    color: #f0f0f0 !important;
  }

  /* Body text */
  body {
    font-size: 1rem;
  }
  p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Mobile nav hamburger */
  .hamburger {
    width: 36px;
    height: 36px;
  }
  .hamburger span {
    background: #ffffff !important;
  }
}

/* ============================================================
   ENTRY CONTENT — Guides, Magazine, Blog posts
   ============================================================ */
.entry-content p {
  margin-bottom: 1.4rem;
  color: var(--ci-muted);
  line-height: 1.8;
}
.entry-content h2,
.entry-content h2.wp-block-heading {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ci-white);
  letter-spacing: .04em;
  margin: 2.75rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ci-border);
  line-height: 1.2;
}
.entry-content h3,
.entry-content h3.wp-block-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ci-white);
  letter-spacing: .04em;
  margin: 2rem 0 .75rem;
  line-height: 1.25;
}
.entry-content h4,
.entry-content h4.wp-block-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ci-white);
  margin: 1.5rem 0 .5rem;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  color: var(--ci-muted);
  line-height: 1.8;
}
.entry-content li {
  margin-bottom: .45rem;
}
.entry-content li:last-child {
  margin-bottom: 0;
}
.entry-content strong,
.entry-content b {
  color: var(--ci-white);
  font-weight: 600;
}
.entry-content a {
  color: #ff6e6e;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover {
  color: var(--ci-white);
}
.entry-content blockquote {
  border-left: 3px solid var(--ci-red);
  padding: .75rem 0 .75rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--ci-muted);
  font-style: italic;
  line-height: 1.75;
}
.entry-content figure {
  margin: 1.75rem 0;
}
.entry-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.entry-content figcaption {
  font-size: .75rem;
  color: var(--ci-subtle, #555);
  font-family: var(--font-mono);
  margin-top: .4rem;
  text-align: center;
}
/* WordPress table block */
.entry-content .wp-block-table {
  margin: 1.75rem 0;
  overflow-x: auto;
}
.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  color: var(--ci-muted);
}
.entry-content .wp-block-table th {
  background: var(--ci-off-black);
  color: var(--ci-white);
  font-weight: 600;
  text-align: left;
  padding: .6rem .9rem;
  border: 1px solid var(--ci-border);
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.entry-content .wp-block-table td {
  padding: .6rem .9rem;
  border: 1px solid var(--ci-border);
  vertical-align: top;
}
.entry-content .wp-block-table tr:nth-child(even) td {
  background: rgba(255,255,255,.02);
}
/* First paragraph after h2/h3 — no extra top margin */
.entry-content h2 + p,
.entry-content h3 + p {
  margin-top: 0;
}
/* Horizontal rule */
.entry-content hr {
  border: none;
  border-top: 1px solid var(--ci-border);
  margin: 2.5rem 0;
}


/* Main article grid: content + sidebar */

/* ── GUIDE / MAGAZINE / ROASTER — Responsive ───────────────── */
.ci-article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.ci-article-hero-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}
.ci-article-hero-wrap--tall { height: 420px; }
.ci-article-hero-wrap > div { pointer-events: none; }
.ci-article-body { max-width: 760px; padding-block: 2.5rem 1rem; }

.entry-content { color: #d4d4d4; }
.entry-content p { color: #d4d4d4; }
.entry-content p:empty { display: none; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  color: #ffffff; font-weight: 700;
  margin-top: 2rem; margin-bottom: 1rem; line-height: 1.3;
}
.entry-content strong, .entry-content b { color: #ffffff; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure.wp-block-table { overflow-x: auto; }

/* iPad */
@media (max-width: 1024px) {
  .ci-article-grid { display: block; }
  .ci-article-grid > div + div { margin-top: 2rem; }
  .ci-article-grid [style*="sticky"] { position: static !important; top: auto !important; }
  .ci-article-body { max-width: 100%; }
}

/* Phone */
@media (max-width: 640px) {
  .ci-article-hero-wrap { height: 200px; }
  .ci-article-hero-wrap--tall { height: 240px; }
}


/* ── Pagination responsive ──────────────────────────────────── */
#ci-pagination-bar {
  flex-wrap: wrap;
  gap: .4rem;
}
#ci-pagination-bar .btn--sm {
  min-width: 36px;
  padding: .4rem .6rem;
  font-size: .8rem;
}
@media (max-width: 480px) {
  #ci-pagination-bar .btn--sm {
    min-width: 32px;
    padding: .35rem .5rem;
    font-size: .75rem;
  }
}