/* 2027 tickets & camps directory.
   Layout is a 100dvh column: the header and the tabs/search bar stay put,
   and only #tc-scroll moves. The bar is not position:sticky, so it cannot
   cover the cards (including on phones with safe areas). */

html:has(body.tc-page) { height: 100%; overflow: hidden; }

body.tc-page {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  body.tc-page { color-scheme: dark; }
}

body.tc-page .wrap {
  max-width: 1080px;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}

body.tc-page .site-header {
  flex: 0 0 auto;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
}
body.tc-page .home-btn { height: 36px; }
body.tc-page .title-home {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .35em;
}

.tc-pin {
  flex: 0 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 4;
}
.tc-pin-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  padding-bottom: 6px;
}
.tc-tabs { display: flex; gap: 6px; flex: 0 0 auto; }
.tc-tab, .tc-pill, .tc-jump {
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
}
.tc-tab {
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
}
.tc-tab[aria-selected="true"],
.tc-pill[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .tc-tab[aria-selected="true"],
  .tc-pill[aria-pressed="true"] {
    background: var(--accent);
    color: #14112b;
    border-color: var(--accent);
  }
}
.tc-tab:focus-visible, .tc-pill:focus-visible, .tc-jump:focus-visible, #tc-search:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tc-search-label { flex: 1 1 auto; min-width: 0; display: flex; }
#tc-search {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.tc-tools { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.tc-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.tc-chips::-webkit-scrollbar { display: none; }
.tc-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tc-sortrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tc-jump-label { display: inline-flex; }
.tc-jump-label[hidden] { display: none; }
.tc-jump {
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
}

.tc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.tc-scroll > .wrap { padding-top: 12px; }

.tc-note { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tc-group { margin: 0 0 22px; }
.tc-group h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.tc-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}
.tc-card h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 800; }
.tc-conf {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tc-detail { margin: 0; font-size: 15px; line-height: 1.4; }
.tc-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.tc-kind {
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--up) 14%, transparent);
  color: var(--up);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}
.tc-kind.is-general {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tc-go {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #14112b;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  text-decoration: none;
  line-height: 1;
}
.tc-go:hover, .tc-go:focus-visible { background: #ffe389; color: #14112b; }
.tc-go:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tc-empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.tc-empty h2 { margin: 0 0 6px; font-size: 1.05rem; }
.tc-empty p { margin: 0; color: var(--muted); }

body.tc-page .site-footer a { color: inherit; }

.tc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
