[data-collection] {
  --collection-page: #f0f1e7;
  --collection-hero: #193a2b;
  --collection-veil: 24 55 41;
  --collection-accent: #f3d297;
  --collection-strong: #2c5440;
  --collection-muted: #4f6457;
  --collection-wash: #e1e9da;
  --collection-field: #f2f4ec;
  --collection-line: #cbd8c9;
  --collection-surface: #fbfaf2;
  background: var(--collection-page);
}

[data-collection="event"] {
  --collection-page: #f5eae1;
  --collection-hero: #4b211b;
  --collection-veil: 69 28 21;
  --collection-accent: #f7c59a;
  --collection-strong: #7d3e30;
  --collection-muted: #725249;
  --collection-wash: #f0dcd0;
  --collection-field: #faf1e9;
  --collection-line: #e4c9bd;
  --collection-surface: #fff8f1;
}

[data-collection="journal"] {
  --collection-page: #f5efe2;
  --collection-hero: #5c4128;
  --collection-veil: 80 55 32;
  --collection-accent: #ffda9e;
  --collection-strong: #704c2b;
  --collection-muted: #6d5b45;
  --collection-wash: #ece0c8;
  --collection-field: #f8f1e2;
  --collection-line: #e1d1b7;
  --collection-surface: #fff9ed;
}

[data-collection] .main-nav a.active, [data-collection] .main-nav a:hover {
  color: var(--collection-strong);
}

[data-collection] .main-nav a::after { background: var(--collection-strong); }
[data-collection] .site-footer {
  border-color: var(--collection-line);
  background: var(--collection-wash);
}
[data-collection] .account-button { background: var(--collection-surface); }

.collection-hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(372px, 33.5vw, 462px);
  overflow: clip;
  border-radius: 30px;
  color: #fff9eb;
  background: var(--collection-hero);
  box-shadow: 0 15px 36px #32281626;
}

.collection-hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: settle-in .85s var(--ease) both;
}

.collection-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(270deg, rgb(var(--collection-veil) / .55), rgb(var(--collection-veil) / .35) 33%, transparent 65%);
}

.collection-hero-body {
  max-width: 60%;
  padding: clamp(36px, 5.35vw, 77px);
  animation: content-in .55s var(--ease) both;
}

.collection-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  border: 1px solid #ffe4b864;
  border-radius: 100px;
  background: #ffefcb14;
  color: #fff1d3;
  font-size: .9rem;
  font-weight: 720;
}
.collection-eyebrow svg { width: 18px; height: 18px; color: var(--collection-accent); }

.collection-hero h1 {
  margin-block: 17px 13px;
  font-size: clamp(2.9rem, 5.6vw, 5.6rem);
  line-height: 1.12;
  letter-spacing: -.059em;
  font-weight: 900;
}
.collection-hero h1 em {
  color: var(--collection-accent);
  font-style: normal;
}
.collection-intro { max-width: 32ch; color: #fff9eb; font-size: clamp(.98rem, 1.05vw, 1.14rem); }

.collection-cta {
  margin-top: 20px;
  background: var(--collection-accent);
  color: #3d291b;
  box-shadow: 0 5px 14px #1c180d46, inset 0 1px 1px #ffffffad;
}
.collection-cta:hover { background: #fff1ce; }
.collection-cta:focus-visible { outline-color: #fff7e7; }
.collection-cta svg { width: 18px; height: 18px; }

.collection-results {
  padding-block: clamp(36px, 5.1vw, 64px) clamp(90px, 9vw, 128px);
  scroll-margin-top: 10px;
}
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 17px;
}
.collection-heading h2 {
  color: var(--collection-strong);
  font-size: clamp(1.72rem, 3.6vw, 2.58rem);
  line-height: 1.28;
  letter-spacing: -.04em;
  font-weight: 880;
}
.collection-count {
  flex-shrink: 0;
  padding: 4px 13px;
  border: 1px solid var(--collection-line);
  border-radius: 99px;
  color: var(--collection-strong);
  background: var(--collection-wash);
  font-size: .86rem;
  font-weight: 760;
}
.collection-count:empty { visibility: hidden; }
.collection-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--collection-muted);
  font-size: .86rem;
}
.collection-note svg { width: 16px; height: 16px; }

.collection-controls {
  display: grid;
  gap: 15px;
  margin-bottom: 28px;
  padding: clamp(12px, 2.5vw, 25px);
  border: 1px solid #fffdf6;
  border-radius: 22px;
  background: var(--collection-surface);
  box-shadow: 5px 7px 22px #51403312, -3px -3px 10px #fff7;
}
.collection-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px;
}
.collection-field { display: grid; min-width: 0; gap: 4px; }
.collection-field-label {
  color: var(--collection-muted);
  font-size: .85rem;
  font-weight: 690;
}
.collection-input {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 47px;
  padding-inline-start: 12px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--collection-line);
  border-radius: 12px;
  background: var(--collection-field);
  color: var(--collection-strong);
}
.collection-input input,
.collection-input select {
  align-self: stretch;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding-inline-end: 8px;
  color: var(--collection-strong);
  font-size: .91rem;
}
.collection-input select {
  padding-inline-end: 30px;
  appearance: none;
  cursor: pointer;
  font-weight: 700;
}
.collection-input input:focus-visible, .collection-input select:focus-visible {
  outline-offset: -2px;
}
.collection-input input::placeholder { color: var(--collection-muted); opacity: 1; }
.collection-input .select-chevron { color: var(--collection-strong); }
.collection-filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; }
.collection-filter-row .filter-chips { margin: 0; gap: 7px; }
.collection-filter-row .chip {
  color: var(--collection-strong);
  background: var(--collection-field);
  border-color: var(--collection-line);
}
.collection-filter-row .chip[aria-pressed="true"] {
  color: #fffaf0;
  background: var(--collection-strong);
  border-color: transparent;
}
.collection-saved {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  min-height: 36px;
  cursor: pointer;
  color: var(--collection-strong);
  font-size: .84rem;
  font-weight: 680;
}
.collection-saved input {
  margin: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--collection-strong);
}

.collection-grid .listing { background: var(--collection-surface); }
.collection-grid .card-badge, .collection-grid .card-foot .btn {
  color: var(--collection-strong);
  background: var(--collection-wash);
}
.collection-grid .card-foot .btn:hover { background: var(--collection-line); }
.collection-grid .card-foot { border-color: var(--collection-line); }
.collection-grid .card-meta, .collection-grid .card-meta svg,
.collection-grid .card-foot .city-name, .collection-grid .event-price { color: var(--collection-muted); }
.collection-event-city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block: -7px 9px;
  color: var(--collection-muted);
  font-size: .85rem;
}
.collection-empty {
  padding: 38px 14px;
  color: var(--collection-muted);
  background: var(--collection-surface);
  border-color: var(--collection-line);
}
.collection-empty svg { color: var(--collection-strong); }
.collection-empty .btn { margin-top: 12px; border-color: var(--collection-line); }

.journal-empty-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  align-items: stretch;
  overflow: clip;
  border: 1px solid var(--collection-line);
  border-radius: 23px;
  background: var(--collection-wash);
}
.journal-empty-copy {
  padding: clamp(25px, 5vw, 66px);
  align-self: center;
  color: var(--collection-strong);
}
.journal-empty-copy h3 { font-size: clamp(1.34rem, 2.5vw, 1.85rem); font-weight: 850; }
.journal-empty-copy p { max-width: 34ch; margin-top: 6px; color: var(--collection-muted); }
.journal-empty-panel img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; }
.collection-action {
  margin-top: 16px;
  background: var(--collection-strong);
  color: #fff8e8;
}
.collection-action:hover { background: #5c3d22; }
.collection-entry { min-width: 0; }
.collection-entry .flow-entry-card {
  width: 100%;
  background: var(--collection-surface);
  border-color: var(--collection-line);
  padding: 8px;
}
.collection-entry .flow-compact { min-height: 236px; }
.collection-entry .flow-compact .flow-stamp { width: min(78%, 152px); }
.collection-entry .flow-entry-edit { color: var(--collection-strong); }

@media (max-width: 760px) {
  .collection-hero { min-height: 370px; border-radius: 23px; }
  .collection-hero-body { max-width: 69%; padding: 35px 25px; }
  .collection-hero-art { object-position: 37% center; }
  .collection-hero::before {
    background: linear-gradient(270deg, rgb(var(--collection-veil) / .9), rgb(var(--collection-veil) / .52) 56%, transparent);
  }
}

@media (max-width: 540px) {
  .collection-hero { min-height: 442px; align-items: flex-start; }
  .collection-hero-body { max-width: 100%; padding: 23px 20px 142px; }
  .collection-hero h1 { font-size: clamp(2.48rem, 10.6vw, 3.15rem); }
  .collection-hero-art { object-position: 23% 63%; }
  .collection-hero::before {
    background: linear-gradient(180deg, rgb(var(--collection-veil) / .96), rgb(var(--collection-veil) / .9) 35%, rgb(var(--collection-veil) / .32) 75%, transparent);
  }
  .collection-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .collection-search { grid-column: 1 / -1; }
  .collection-input { min-height: 42px; padding-inline-start: 7px; gap: 5px; }
  .collection-input > svg { width: 15px; height: 15px; }
  .collection-input select { padding-inline-end: 23px; font-size: .8rem; }
  .collection-input .select-chevron { inset-inline-end: 5px; }
  .collection-filter-row .chip { min-height: 36px; padding-inline: 9px; font-size: .79rem; }
  .journal-empty-panel { grid-template-columns: 1fr; }
  .journal-empty-panel img { max-height: 175px; }
}
