/*
 * Chiratter Editorial v0.1.11 — Unified Dark / Lime / Warm Ivory
 * Palette only: preserve every template, player, scroll/snap behavior and CORE binding.
 * Dark canvas for immersion; warm ivory for useful content; lime for primary actions.
 */
:root {
  --bg: #101410;
  --ink: #f3f2ed;
  --muted: #a7b0a4;
  --line: #334036;
  --accent: #d7f37d;
  --dark: #101210;
  --chtr-cream: #f3f2ed;
  --chtr-cream-deep: #e8eae3;
  --ink-on-cream: #192019;
  --muted-on-cream: #5f695f;
  --surface-dark: #1b241d;
}
html { background:#101410; }
body { background: var(--bg); color: var(--ink); }
::selection { background:var(--accent);color:#132016; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {outline:2px solid var(--accent);outline-offset:3px;}
.skip-link:focus { background:var(--accent); color:#132016; }

/* Consistent site chrome on ALL routes, not WATCH-only. */
.site-header { background:#101410;color:var(--ink);border-color:#344037; }
.site-header .brand { color:var(--ink); }
.site-header .brand-period, .brand-period, .accent {color:var(--accent);}
.site-header .header-descriptor {color:#a7b2a6;}
.site-header .header-search {color:var(--ink);}
.desktop-nav {background:#101410;color:var(--ink);border-right-color:#344037;}
.desktop-nav>a {color:#a9b5a9;transition:color .15s ease;}
.desktop-nav>a:hover,.desktop-nav>a[aria-current="page"] {color:var(--accent);}
.desktop-nav .nav-caption {color:#8d9e8d;}
.mobile-nav {background:#101410;color:#b1bdb0;border-top-color:#344037;}
.mobile-nav a[aria-current="page"], .mobile-nav a:hover {color:var(--accent);}

/* Public discovery pages */
.content-main { background:#101410;color:var(--ink); }
.page-intro .eyebrow,.eyebrow {color:var(--accent);}
.page-intro h1 {color:#f5f5ed;}
.page-intro>p:last-child,.page-intro>div {color:#adb8ad;}
.detail-breadcrumb {color:#a5b2a6;}
.detail-breadcrumb a:hover,.text-link:hover {color:var(--accent);}

/* Search remains clearly usable on the dark canvas. */
.discover-search {background:var(--chtr-cream);color:var(--ink-on-cream);border:1px solid #aab7a8;border-bottom:3px solid var(--accent);max-width:820px;padding:0 7px 0 18px;min-height:64px;}
.discover-search input {color:var(--ink-on-cream);background:transparent;padding:17px 10px;min-height:58px;}
.discover-search input::placeholder {color:#687467;opacity:1;}
.discover-search input:focus {outline:none;}
.discover-search:focus-within {border-color:var(--accent);box-shadow:0 0 0 2px #d7f37d38;}
.discover-search button {align-self:center;min-height:44px;background:var(--accent);color:#182318;padding:12px 20px;}
.discover-search button:hover {background:#e7ff9d;}

/* Warm-ivory filter islands break up the black on discovery. */
.filter-section {background:var(--chtr-cream);color:var(--ink-on-cream);padding:24px clamp(18px,2.4vw,32px) 26px;border-top:3px solid var(--accent);}
.filter-section h2 {color:#192119;margin:0 0 20px;}
.filter-section h2 span {color:#657164;}
.filter-section .chip {border-color:#bbc6b9;background:#fff;color:#223125;}
.filter-section .chip:hover,.filter-section .chip:focus-visible {background:var(--accent);color:#162316;border-color:var(--accent);}
.filter-section .text-link {color:#263525;}
.chip {color:#e8eee6;border-color:#536054;background:#1b261d;}
.chip:hover {background:var(--accent);color:#152015;border-color:var(--accent);}
.section-heading {border-bottom-color:#39453b;}
.section-heading h2 {color:#f4f5ee;}
.section-heading span {color:var(--accent);}
.listing-section>.text-link {color:var(--accent);}
.empty-note {color:#b4beb2;}

/* Store and video cards: the original ivory is the secondary signature. */
.place-card,.story-card {display:block;background:var(--chtr-cream);color:var(--ink-on-cream);padding:0 0 18px;border:1px solid #364337;transition:border-color .2s ease,transform .2s ease;overflow:hidden;}
.place-card:hover,.story-card:hover {border-color:var(--accent);transform:translateY(-2px);}
.place-card-image,.story-card-media {background:#222b23;color:#fff;}
.place-card-meta,.story-card-label {color:#566852;padding:0 17px;}
.place-card h3,.story-card h3 {color:#182018;padding:0 17px;}
.place-card p {color:#576457;padding:0 17px;}
.place-card:hover .place-card-image img,.story-card:hover .story-card-media img {transform:scale(1.035);}
.story-card-label {margin-top:16px;}
.story-card h3 {padding:0 17px;margin-bottom:3px;}

/* Pagination, universal CTAs, supportive information. */
.page-numbers {background:#1b251d;color:#e9efe5;border-color:#4b5a4b;}
.page-numbers.current {background:var(--accent);border-color:var(--accent);color:#142016;}
.page-numbers:hover:not(.current) {border-color:var(--accent);color:var(--accent);}
.pill-link,.reservation-link {background:var(--accent);color:#152116;border-color:var(--accent);}
.pill-link:hover,.reservation-link:hover {background:#e8ff9d;color:#152116;}
.secondary-pill {color:#f1f3eb;border-color:#526050;}
.secondary-pill:hover {border-color:var(--accent);color:var(--accent);}

/* Creator pages: readable editorial content inside warm-ivory modules. */
.creator-card {background:var(--chtr-cream);color:var(--ink-on-cream);border-top:3px solid var(--accent);padding:20px;}
.creator-card h2 {color:#192019;}
.creator-card p,.creator-role {color:#536252;}
.creator-card .creator-role {color:#607260;}
.creator-profile {background:var(--chtr-cream);color:var(--ink-on-cream);padding:clamp(20px,3vw,34px);}
.creator-profile .eyebrow {color:#597345;}
.creator-profile h1 {color:#172018;}
.creator-profile .editorial-body,.creator-profile .text-link {color:#2b382c;}
.creator-profile .creator-role {color:#576654;}

/* Story detail: keep player dark, give the metadata/description a light panel. */
.story-player {background:#0b0e0b;}
.story-copy {background:var(--chtr-cream);color:var(--ink-on-cream);padding:clamp(22px,3.1vw,42px);}
.story-copy .eyebrow {color:#627746;}
.story-copy h1 {color:#172017;}
.story-byline {color:#596b59;}
.story-copy .editorial-body {color:#263328;}
.story-copy .pill-link {background:var(--accent);color:#192218;}

/* Legacy editorial/place modules, kept compatible with existing templates. */
.place-hero-copy h1,.place-lead,.place-hero-category {color:var(--ink);}
.place-facts {background:var(--chtr-cream);color:var(--ink-on-cream);}
.place-facts h2,.place-facts dd {color:#182119;}
.place-facts dt {color:#697769;}
.place-facts .info-disclaimer {color:#667566;}
.place-facts .fact-link {color:#263c26;}
.place-facts .pill-link {color:#182318;}
.editorial-body {color:inherit;}

/* Saved list and general pages */
.saved-notice {background:var(--chtr-cream-deep);color:#263627;border-left:3px solid var(--accent);}
.saved-item {border-bottom-color:#354237;}
.saved-item a {color:#f2f4ed;}
.saved-item a:hover {color:var(--accent);}
.saved-item button {color:var(--accent);border-color:#63745e;background:#1b251d;}
.saved-item button:hover {border-color:var(--accent);}
.standalone-content {color:#e4ebe1;}

/* WATCH: preserve existing player's black environment. */
.feed-main {background:#101210;}
.feed-rail button {border-color:#52614f;}
.feed-rail button:hover {border-color:var(--accent);color:var(--accent);}
.chtr-feed-page .site-header,.chtr-feed-page .desktop-nav {background:#101410;}

/* Store detail: the useful ivory visit card matches discovery cards,
   while black reel space is untouched to preserve independent scrolling. */
.chtr-place-dark-page .site-header,.chtr-place-dark-page .desktop-nav {background:#101410;}
.chtr-place-location-card {background:var(--chtr-cream);color:var(--ink-on-cream);border-top-color:var(--accent);}
.chtr-place-location-card h1 {color:#192119;}
.chtr-place-location-row {border-top-color:#d5ddd3;}
.chtr-place-location-row>span {color:#6a7e68;}
.chtr-place-chips span {border-color:#c0cdbf;color:#435a43;}
.chtr-place-action {background:var(--chtr-cream);color:#18281d;border-color:#b8c6b4;}
.chtr-place-action:hover {background:#e5ebe0;}
.chtr-place-action--primary {background:var(--accent);border-color:var(--accent);color:#182218;}
.chtr-place-action--primary:hover {background:#e7ff9d;}
.chtr-place-background {border-top-color:#37483b;}

/* Mobile: preserve high contrast and accessible tap targets. */
@media (max-width:760px) {
  .site-header {background:#101410;}
  .discover-search {padding-left:10px;min-height:54px;}
  .discover-search input {min-height:52px;padding:13px 5px;}
  .discover-search button {padding:12px 13px;font-size:11px;min-height:42px;}
  .filter-section {padding:18px 16px 20px;}
  .place-card-meta,.story-card-label,.place-card h3,.story-card h3,.place-card p {padding-left:12px;padding-right:12px;}
  .creator-profile {padding:18px;}
  .creator-card {padding:14px;}
  .story-copy {padding:22px;}
  .mobile-nav {background:#101410;}
}
@media (prefers-reduced-motion:reduce) {
  .place-card,.story-card,.desktop-nav>a {transition:none;}
}


/* v0.1.12 — compact DISCOVER + area/category video directories */
.chtr-video-directory .page-intro,
.chtr-area-directory .page-intro {
  padding: 0 0 22px;
}
.chtr-video-directory .page-intro h1,
.chtr-area-directory .page-intro h1 {
  font-size: clamp(26px,3.2vw,42px);
  line-height: 1.18;
  letter-spacing: -.065em;
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
}
.chtr-video-directory .page-intro .eyebrow,
.chtr-area-directory .page-intro .eyebrow {font-size:10px;letter-spacing:.15em;}
.chtr-video-directory .page-intro p,
.chtr-area-directory .page-intro p {margin:10px 0 0;}
.chtr-video-directory .listing-section {margin-top:38px;}
.chtr-video-directory .section-heading {margin-bottom:18px;padding-bottom:10px;}
.chtr-video-directory .section-heading h2 {font-size:clamp(18px,2vw,25px);}
.chtr-video-index .chtr-video-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:22px 12px;
}
.chtr-video-tile {min-width:0;display:block;color:var(--ink);text-decoration:none;}
.chtr-video-tile__poster {
  aspect-ratio:9 / 16;overflow:hidden;position:relative;
  display:flex;align-items:center;justify-content:center;
  background:#222c24;border:1px solid #344237;border-radius:3px;
}
.chtr-video-tile__poster img {display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease;}
.chtr-video-tile:hover .chtr-video-tile__poster img {transform:scale(1.035);}
.chtr-video-tile:focus-visible {outline:2px solid var(--accent);outline-offset:3px;}
.chtr-video-tile__play {
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  color:#fff;background:#050805a6;font-size:13px;padding-left:2px;
  pointer-events:none;
}
.chtr-video-tile__empty {color:#f3f2ed;font-weight:900;font-size:20px;letter-spacing:-.07em;}
.chtr-video-tile__empty span {color:var(--accent);}
.chtr-video-tile__meta {padding-top:9px;min-width:0;}
.chtr-video-tile__place {font-size:11px;color:var(--accent);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 5px;}
.chtr-video-tile__meta h3 {
  font-size:12px;font-weight:700;line-height:1.5;letter-spacing:-.025em;
  color:#e9efe5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;overflow-wrap:anywhere;margin:0;
}
.chtr-video-grid>.empty-note {grid-column:1/-1;}
.chtr-video-pagination {margin-top:30px;}
.chtr-video-pagination .page-numbers {display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0;}
.chtr-video-pagination .page-numbers li {margin:0;}
.chtr-video-pagination a.page-numbers,
.chtr-video-pagination span.page-numbers {display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px 12px;}
.chtr-discover-filters {margin-top:65px;}
.chtr-discover-filters .filter-section {margin:0 0 18px;}
.chtr-directory-link {margin:28px 0 0;font-size:12px;}
.chtr-tax-video-directory .chtr-tax-places {margin-top:65px;}
@media(max-width:1100px) and (min-width:761px) {
  .chtr-video-index .chtr-video-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 13px;}
}
@media(max-width:760px) {
  .chtr-video-directory .page-intro,
  .chtr-area-directory .page-intro {padding:0 0 16px;}
  .chtr-video-directory .page-intro h1,
  .chtr-area-directory .page-intro h1 {font-size:clamp(25px,7.5vw,33px);margin:8px 0 3px;}
  .chtr-video-directory .listing-section {margin-top:26px;}
  .chtr-video-directory .section-heading h2 {font-size:20px;}
  .chtr-video-index .chtr-video-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px;}
  .chtr-video-tile__place {font-size:10px;}
  .chtr-video-tile__meta h3 {font-size:11px;}
  .chtr-video-tile__play {width:32px;height:32px;}
  .chtr-discover-filters {margin-top:48px;}
  .chtr-tax-video-directory .chtr-tax-places {margin-top:48px;}
}
@media(prefers-reduced-motion:reduce) {
  .chtr-video-tile__poster img {transition:none;}
}

/* v0.1.15 — mobile WATCH theater: give YouTube Shorts more screen area.
   On phones, reserve only a compact, scrollable metadata/CTA region below the
   official YouTube iframe. The player remains unmodified and unobstructed. */
@media (max-width: 760px) {
  .chtr-feed-page .feed-card--youtube .feed-media {
    /* Earlier layout reserved 35% of the screen. Keep ~19–23% for context. */
    inset: 0 0 clamp(145px, 20%, 185px) 0;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption {
    left: 16px;
    right: 62px;
    bottom: 10px;
    max-height: calc(clamp(145px, 20%, 185px) - 18px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption h2 {
    font-size: clamp(16px, 4.5vw, 19px);
    line-height: 1.3;
    margin-bottom: 5px;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption .feed-eyebrow {
    margin-bottom: 3px;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption .feed-place-name {
    margin-bottom: 4px;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption .feed-links {
    margin-top: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption .feed-primary-link {
    padding: 10px 11px;
  }
  .chtr-feed-page .feed-card--youtube .feed-youtube-switch {
    bottom: 12px;
    right: 7px;
  }
}

/* v0.1.17 — PC WATCH: let the video use space not needed by its metadata.
   The old 32% reserved area left a large blank gap under short videos.
   Keep the YouTube iframe unobstructed, and leave mobile v0.1.15 untouched. */
@media (min-width: 761px) {
  .chtr-feed-page .feed-card--youtube {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .chtr-feed-page .feed-card--youtube .feed-media {
    position: relative;
    inset: auto;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    flex: 0 0 auto;
    max-height: min(40%, 340px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 15px 74px 18px 22px;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption h2 {
    margin-bottom: 6px;
  }
  .chtr-feed-page .feed-card--youtube .feed-caption .feed-links {
    margin-top: 9px;
  }
}

/* Chiratter branding: allow the longer wordmark to fit narrow screens. */
@media (max-width:760px) { .site-header .brand { font-size:clamp(20px,5.2vw,27px);white-space:nowrap; } .site-header .header-descriptor {font-size:7px;letter-spacing:.04em;} }
