/* Migrated Home, Inspiration, and Article legacy foundation, 2026-07-29. Current route-owner rules follow. */


/* City Guides archive. Size images independently of the height of adjacent articles. */
.articles-page > .article-list-page {
  --article-list-surface:#1d1d1d;
  --article-list-ink:#f6f4f8;
  --article-list-muted:#b8b5bf;
  --article-list-accent:#bcaaff;
  --article-filter-surface:#23212a;
  --article-filter-selected:#3b2d57;
  --article-list-divider:#ffffff18;
  width:min(100%,1120px);
  max-width:none;
  box-sizing:border-box;
  margin:0 auto;
  padding:24px clamp(16px,3vw,30px) 36px;
  container-type:inline-size;
}

body.day-mode .article-list-page {
  --article-list-surface:#fff;
  --article-list-ink:#211d28;
  --article-list-muted:#655f70;
  --article-list-accent:#563dba;
  --article-filter-surface:#eeebf2;
  --article-filter-selected:#e1d7ff;
  --article-list-divider:#211d281a;
}

.article-list-heading {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin:0 0 14px;
}

.article-list-heading > h1 {
  margin:0;
  color:var(--article-list-ink);
  font-size:clamp(25px,3vw,36px);
  line-height:1.16;
}

.article-list-heading > button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--article-filter-surface);
  color:var(--article-list-ink);
  cursor:pointer;
}

.article-list-heading > button:focus-visible { outline:2px solid var(--article-list-accent); outline-offset:2px; }

:root[data-native-platform="ios"] .article-list-heading { display:contents; }
:root[data-native-platform="ios"] .article-list-heading > button { display:none; }
:root[data-native-platform="ios"] .article-list-heading > h1 { position:absolute; clip-path:inset(50%); }

.article-list-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
}

.article-list-filters a,
.article-pagination a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border:0;
  border-radius:999px;
  background:var(--article-filter-surface);
  color:var(--article-list-muted);
  font-size:13px;
  font-weight:650;
  text-decoration:none;
}

.article-list-filters a[aria-current],
.article-pagination a.active {
  background:var(--article-filter-selected);
  color:var(--article-list-accent);
}

.article-list-filters a:focus-visible,
.article-pagination a:focus-visible,
.article-feature-controls button:focus-visible,
.article-feature-card:focus-visible,
.article-feature-rail:focus-visible,
.article-list-card:focus-visible {
  outline:2px solid var(--article-list-accent);
  outline-offset:2px;
}

:root[data-native-platform="ios"]:not([data-native-input-modality="keyboard"]) .article-list-filters a:focus-visible {
  outline:none;
}

@media (max-width:719px) {
  /* The mobile page frame already supplies the gap below the header. */
  .articles-page > .article-list-page { padding-block-start:0; }
  .article-list-heading { display:contents; }
  .article-list-heading > button { display:none; }
  .article-list-heading > h1 {
    position:absolute;
    max-width:100%;
    margin:0;
    clip-path:inset(50%);
    pointer-events:none;
  }
  .article-list-filters {
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .article-list-filters::-webkit-scrollbar { display:none; }
  .article-list-filters a { flex:none; white-space:nowrap; padding-inline:11px; }
  .article-list-filters a:focus-visible { outline-offset:-2px; }
}

.article-list-page > .article-features {
  max-width:none;
  margin:0 0 16px;
  padding:0;
}
.article-feature-header { display:flex; align-items:center; justify-content:space-between; min-height:36px; }
.article-feature-header h2 { margin:0; color:var(--article-list-ink); font-size:16px; line-height:1.25; }
.article-feature-controls { display:flex; }
.article-feature-controls button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--article-list-muted);
  cursor:pointer;
}
.article-feature-controls button::before { content:""; width:6px; height:6px; border-radius:6px; background:currentColor; }
.article-feature-controls button[aria-current] { color:var(--article-list-accent); }
.article-feature-controls button[aria-current]::before { width:14px; }
.article-feature-rail { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; border-radius:15px; }
.article-feature-rail::-webkit-scrollbar { display:none; }
.article-feature-rail.is-dragging { scroll-snap-type:none; }
.article-feature-card {
  display:grid;
  flex:0 0 100%;
  grid-template-columns:minmax(0,1fr) 45%;
  align-items:stretch;
  height:clamp(130px,23cqw,220px);
  background:#211831;
  color:#fff;
  text-decoration:none;
  scroll-snap-align:start;
}
.article-feature-card strong {
  align-self:center;
  margin-inline:clamp(14px,3cqw,30px);
  font-size:clamp(18px,3.5cqw,31px);
  line-height:1.24;
  text-wrap:pretty;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
.article-feature-card:focus-visible { outline-offset:-3px; }
.article-feature-card .article-list-image { aspect-ratio:auto; border-radius:0; }

.article-list-page > .article-list {
  display:grid;
  gap:14px;
  max-width:none;
  margin:0;
  padding:0;
}
.article-list-group { display:grid; align-content:start; gap:6px; min-width:0; }
.article-list-compact-group, .article-list-card.is-lead { border-radius:13px; background:var(--article-list-surface); }
.article-list-card {
  position:relative;
  min-width:0;
  min-height:58px;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:7px 10px;
  border-radius:9px;
  color:var(--article-list-ink);
  text-decoration:none;
}
.article-list-card + .article-list-card::before {
  content:"";
  position:absolute;
  inset-block-start:0;
  inset-inline:76px 10px;
  border-block-start:1px solid var(--article-list-divider);
  pointer-events:none;
}
.article-list-card.is-lead { min-height:88px; grid-template-columns:101px minmax(0,1fr); gap:12px; padding:8px 10px; }
.article-list-image {
  aspect-ratio:4 / 3;
  min-width:0;
  border-radius:7px;
  display:block;
  overflow:hidden;
  background:var(--oonite-media-placeholder,var(--article-filter-surface));
}
.article-list-image > img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 35%; }
.article-list-card.is-lead .article-list-image { aspect-ratio:7 / 5; border-radius:9px; }
.article-list-copy { min-width:0; }
.article-list-meta { color:var(--article-list-muted); font-size:11px; line-height:1.35; }
.article-list-card h2 {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin:0 0 3px;
  color:inherit;
  font-size:14px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.article-list-card.is-lead h2 { font-size:clamp(16px,3.6cqw,21px); -webkit-line-clamp:3; }
.article-list-card:focus-visible { outline-offset:-2px; }
.article-list .oonite-empty-state { grid-column:1 / -1; }

.article-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:24px; }
.article-pagination a { min-width:44px; box-sizing:border-box; }

@container (min-width:880px) {
  .article-list-page > .article-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.article-detail-page{
  max-width:760px;
  margin:0 auto;
  overflow-x:clip;
}

.article-detail-page .guide-head{
  width:100%;
  min-height:min(76vh,720px);
  padding:28px 22px;
  background-position:center;
  background-size:cover;
}

body.article-route #app .article-detail-page .guide-head h1{
  font-size:clamp(2.25rem,10.1vw,2.875rem);
  font-weight:800;
  line-height:1.12;
  overflow-wrap:anywhere;
  text-wrap:balance;
}

.article-rich-body{
  margin:0;
  white-space:pre-line;
}

body.article-route #app .article-detail-page .article-rich-body,
body.article-route #app .article-detail-page .article-body,
body.article-route #app .article-detail-page .article-rich-body p,
body.article-route #app .article-detail-page .article-rich-body li,
body.article-route #app .article-detail-page .article-body p,
body.article-route #app .article-detail-page .article-body li{
  font-size:.875rem;
  line-height:1.72;
}

.article-rich-body > p{
  margin:0;
}

.article-rich-body > p + p{
  margin-top:1em;
}

.article-rich-body img{
  display:block;
  width:100%;
  height:auto;
  margin:24px 0;
  border-radius:14px;
}

@media (min-width:720px){
.article-detail-page .guide-head{
    overflow:hidden;
  }
}

.article-desktop-heading{
  display:none;
}

@media (min-width:720px){
.article-detail-page{
    padding-bottom:56px;
  }

.article-detail-layout{
    display:grid;
    align-items:start;
    margin:0 auto;
  }

.article-cover-column{
    position:sticky;
    top:92px;
    align-self:start;
  }

.article-detail-page .guide-head{
    width:100%;
    min-height:0;
    aspect-ratio:3 / 4;
    margin:0;
    padding:24px;
    border-radius:22px;
  }

.article-detail-page .guide-head > *{
    display:none;
  }

.article-copy-column{
    min-width:0;
  }

.article-desktop-heading{
    display:block;
    padding:4px 0 26px;
  }

.article-desktop-heading .eyebrow{
    color:var(--accent);
  }

.article-desktop-heading h1{
    max-width:680px;
    margin:0;
    color:inherit;
    font-size:clamp(2.375rem,4.6vw,3.625rem);
    font-weight:800;
    line-height:1.12;
    letter-spacing:-.05em;
    text-wrap:balance;
  }

.article-desktop-heading > p:last-child{
    max-width:580px;
    margin:18px 0 0;
    color:var(--muted);
    font-size:16px;
    line-height:1.5;
  }

.article-copy-column > section,
.article-copy-column > .guide-intro{
    max-width:none;
    margin:0;
    padding-right:0;
    padding-left:0;
  }

.article-copy-column .guide-intro{
    padding-top:0;
  }
}

@media (min-width:1180px){
.article-cover-column{
    top:76px;
  }
}

@media (min-width:720px){
.article-detail-page{
    padding-top:76px;
  }
}

.day-mode .article-detail-page{
  background:var(--luca-day-paper) ;
}

@media (min-width:720px){
.article-detail-page{
    width:100%;
    max-width:none;
  }

.article-detail-layout{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:clamp(20px,2.5vw,36px);
  }

.day-mode .article-cover-column,
.day-mode .article-copy-column{
    min-width:0;
    border:0;
    border-radius:22px;
    background:var(--luca-day-card);
    box-shadow:none;
  }

.day-mode .article-cover-column{
    width:100%;
    padding:12px;
  }

.day-mode .article-detail-page .guide-head{
    width:100%;
    max-width:none;
    border-radius:16px;
  }

.day-mode .article-copy-column{
    padding:clamp(26px,3.2vw,44px);
  }

.day-mode .article-desktop-heading{
    padding-top:0;
  }

.day-mode .article-copy-column > section,
.day-mode .article-copy-column > .guide-intro{
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
}


@media (min-width:720px){
.article-detail-page{
    padding-right:20px;
    padding-left:20px;
  }

.article-detail-layout{
    width:min(100%,1360px);
    max-width:1360px;
  }
}


@media (max-width:719px){
body.article-route .article-detail-page{
    padding-bottom:calc(36px + env(safe-area-inset-bottom));
  }
}

/* Article / guide detail final owner. Keep this route isolated from home accents. */
body.article-route {
  --article-detail-accent: #aa98f2;
}

body.day-mode.article-route {
  --article-detail-accent: #684cff;
}

/* Articles and guides now share the global Page Frame on desktop/tablet. The
   article list/detail internals keep their existing content geometry. */
@media (min-width:720px) {
  #app > .app-shell .app-shell-main-content > .articles-page[data-oonite-page-frame='true'],
  #app > .app-shell .app-shell-main-content > .article-detail-page[data-oonite-page-frame='true'] {
    width:100%;
    max-width:none;
    min-height:0;
    margin:0;
    padding:var(--oonite-page-top) 0 var(--oonite-page-bottom);
    background:transparent;
  }

  #app > .app-shell .app-shell-main-content > .article-detail-page[data-oonite-page-frame='true'] {
    padding-bottom:var(--oonite-page-bottom);
  }
}

body.article-route .article-detail-page,
body.article-route .article-detail-layout,
body.article-route .article-cover-column,
body.article-route .article-copy-column,
body.article-route .article-copy-column > *,
body.article-route .article-reading,
body.article-route .article-discussion {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.article-route .article-detail-page {
  width: 100%;
}

body.article-route .guide-head .eyebrow,
body.article-route .article-desktop-heading .eyebrow,
body.article-route .article-copy-column .section-head .eyebrow,
body.article-route .guide-intro small,
body.article-route .guide-place-row > b {
  color: var(--article-detail-accent);
  -webkit-text-fill-color: var(--article-detail-accent);
}

body.article-route .article-reading,
body.article-route .article-rich-body,
body.article-route .article-rich-body > p,
body.article-route .article-desktop-heading,
body.article-route .article-desktop-heading h1,
body.article-route .article-desktop-heading > p,
body.article-route .guide-place-row > div,
body.article-route .guide-place-row strong,
body.article-route .guide-place-row span,
body.article-route .guide-place-row small,
body.article-route .article-discussion {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.article-route .article-reading img,
body.article-route .article-reading video,
body.article-route .article-reading iframe,
body.article-route .article-reading svg,
body.article-route .article-reading canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

body.article-route .article-reading pre,
body.article-route .article-reading table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

body.article-route .guide-place-row {
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  width: 100%;
  max-width: 100%;
}

body.article-route .guide-place-row[href^="/place/"] > div > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.article-route .article-detail-social-actions {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0 2px 10px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

body.article-route .article-detail-social-actions button {
  display: inline-flex;
  width: auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--article-detail-accent);
  -webkit-text-fill-color: var(--article-detail-accent);
  box-shadow: none;
  touch-action: manipulation;
}

body.article-route .article-detail-social-actions button svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body.article-route .article-detail-social-actions .article-like.active {
  color: #ec3f88;
  -webkit-text-fill-color: #ec3f88;
}

body.article-route .article-detail-social-actions .article-like.active svg path {
  fill: currentColor;
}

body.article-route .article-detail-social-actions .save-article.saved {
  color: #684cff;
  -webkit-text-fill-color: #684cff;
}

body.article-route .article-detail-social-actions b {
  margin: 0;
  padding: 0;
  color: currentColor;
  -webkit-text-fill-color: currentColor;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* The legacy tablet rail adds padding to every section. Article details
   already get their horizontal gutter from the copy card, so nested content
   must use that same content box instead of introducing a second rail. */
@media (min-width: 720px) {
  /* The base stylesheet's broad tablet section rule has no route ownership.
     Keep this route's existing card gutter authoritative without !important. */
  #app > .app-shell .app-shell-main-content > .article-detail-page .article-copy-column > section,
  #app > .app-shell .app-shell-main-content > .article-detail-page .article-copy-column > .guide-intro,
  #app > .app-shell .app-shell-main-content > .article-detail-page .article-copy-column .article-discussion {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  #app > .app-shell .app-shell-main-content > .article-detail-page .article-detail-social-actions {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    justify-content: flex-start;
  }

  #app > .app-shell .app-shell-main-content > .article-detail-page .article-discussion .article-comment-form,
  #app > .app-shell .app-shell-main-content > .article-detail-page .article-discussion .article-comment-list {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 719px) {
  body.article-route .article-detail-page,
  body.article-route .article-detail-layout,
  body.article-route .article-cover-column,
  body.article-route .article-copy-column {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  body.article-route .article-detail-page .guide-head {
    width: 100%;
    max-width: 100%;
    margin-top:0;
    border-radius:0;
    box-sizing: border-box;
  }

  body.article-route .article-desktop-heading {
    display: none;
  }
}

@media (max-width:719px) {
  #app > .app-shell .app-shell-main-content > .article-detail-page[data-oonite-page-frame='true'] { padding-top:0; }
}

/* Home / City Pulse route owner: #inspiration. */
.home-city-pulse {
  --home-purple: #8b6cff;
  --home-green: #00ff09;
  --home-ink: #08080a;
  --home-card: #151519;
  background: #08080a;
  color: #f7f7f8;
}

/* Explore App Shell desktop/tablet integration.
   Keep route behavior unchanged while making layout use the shell content rail cleanly. */
.app-shell .home-city-pulse .home-night-hero {
  width: 100%;
  max-width: 100%;
  left: auto;
  transform: none;
  padding-inline: 0;
}

.app-shell .home-city-pulse .home-hero-inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.app-shell .home-city-pulse .home-section,
.app-shell .home-city-pulse .home-night-map {
  width: 100%;
  margin-inline: auto;
}

.app-shell .home-city-pulse .home-section {
  padding-top: clamp(44px, 4.5vw, 64px);
}

/* The legacy desktop section rule adds a second 36px rail inside the App
   Shell. Explore already has its rail from .app-shell-main-content, so the
   route sections must own their horizontal box model here. */
#app > .app-shell .app-shell-main-content > .home-city-pulse > .home-night-hero,
#app > .app-shell .app-shell-main-content > .home-city-pulse > .home-section,
#app > .app-shell .app-shell-main-content > .home-city-pulse > .home-night-map {
  max-width: none;
  margin: 0;
  padding-right: 0;
  padding-left: 0;
  box-sizing: border-box;
}

#app > .app-shell .app-shell-main-content > .home-city-pulse > .home-section {
  padding-top: clamp(44px, 4.5vw, 64px);
}

.app-shell .home-city-pulse .home-latest-moments-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 14px;
}

@media (min-width: 720px) {
  .app-shell .home-city-pulse .home-night-hero {
    padding-top: clamp(44px, 4.5vw, 64px);
  }

#app > .app-shell .app-shell-main-content > .home-city-pulse > .home-night-hero {
  padding-top: clamp(44px, 4.5vw, 64px);
  padding-bottom: clamp(42px, 4vw, 58px);
}

/* The global Page Frame now owns the route's outer top spacing. */
#app > .app-shell .app-shell-main-content > [data-oonite-page-frame='true'].home-city-pulse > .home-night-hero {
  padding-top:0;
}

  .app-shell .home-city-pulse .home-picks-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 16fr) repeat(3, minmax(0, 9fr));
  }

  .app-shell .home-city-pulse .home-night-map {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .95fr);
  }

  #app > .app-shell .app-shell-main-content > .home-city-pulse > .home-night-map {
    padding-top: clamp(44px, 5vw, 68px);
  }

  .app-shell .home-city-pulse .home-city-guides-grid {
    grid-template-columns: minmax(0, 16fr) repeat(3, minmax(0, 9fr));
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .app-shell[data-app-shell-mode='collapsed'] .home-city-pulse {
    --home-ink: #f7f7f8;
  }

  .app-shell[data-app-shell-mode='collapsed'] .home-city-pulse .home-hero-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .85fr);
    gap: 24px;
  }

  .app-shell[data-app-shell-mode='collapsed'] .home-city-pulse .home-night-hero h1 {
    font-size: clamp(46px, 6vw, 60px);
  }

  .app-shell[data-app-shell-mode='collapsed'] .home-city-pulse .home-picks-grid {
    grid-template-columns: minmax(0, 16fr) minmax(0, 9fr);
  }

  .app-shell[data-app-shell-mode='collapsed'] .home-city-pulse .home-city-guides-grid {
    grid-template-columns: minmax(0, 16fr) repeat(3, minmax(0, 9fr));
  }

  .app-shell[data-app-shell-mode='collapsed'] .home-city-pulse .home-latest-moments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile keeps its existing composition and sizing. Only the day-mode Hero
   image treatment is opened up so the city scene remains visible beneath the
   copy. */
@media (max-width: 719px) {
  body.day-mode .app-shell .home-city-pulse .home-night-hero {
    background:
      linear-gradient(90deg, rgba(248,247,250,.86) 0%, rgba(248,247,250,.58) 42%, rgba(248,247,250,.18) 82%, rgba(248,247,250,0) 100%),
      linear-gradient(180deg, rgba(255,255,255,.02) 30%, rgba(245,244,247,.48) 100%),
      var(--home-day-image-active, var(--home-day-image, url("assets/images/home-bangkok-day-mobile.jpg"))) center / cover no-repeat,
      #eceaf0;
  }
}

.home-night-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(900px, 100svh);
  padding: 132px max(30px, calc((100vw - 1280px) / 2 + 30px)) 54px;
  overflow: hidden;
  isolation: isolate;
  left: 50%;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(3,3,5,.94) 0%, rgba(3,3,5,.7) 42%, rgba(3,3,5,.08) 76%),
    linear-gradient(180deg, rgba(0,0,0,.08) 35%, rgba(0,0,0,.72) 100%),
    var(--home-night-image-active, var(--home-night-image, url("assets/images/home-bangkok-night-desktop.jpg"))) center / cover no-repeat,
    #030305;
}

/* City covers are painted by the Hero visual. Its frame never borrows the
   default Bangkok assets, even while the selected city's cover is pending. */
[data-web-home-first-paint] .home-night-hero,
.home-night-hero[data-web-city-cover],
[data-web-directory-home] .home-night-hero,
[data-night-directory-city] .home-night-hero {
  --home-day-image: none;
  --home-night-image: none;
  --home-day-image-mobile: none;
  --home-night-image-mobile: none;
}

.home-night-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: none;
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
  width: min(1280px, 100%);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.home-hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(3,3,5,.94) 0%, rgba(3,3,5,.7) 42%, rgba(3,3,5,.08) 76%),
    linear-gradient(180deg, rgba(0,0,0,.08) 35%, rgba(0,0,0,.72) 100%),
    var(--home-hero-display-image, var(--home-hero-desktop-image)) center / cover no-repeat,
    #030305;
  transition: opacity 480ms ease;
  pointer-events: none;
}

.home-hero-visual.is-active { opacity: 1; }
.home-hero-copy-stage { min-width: 0; }
.home-hero-slide-copy { color: inherit; text-decoration: none; }
.home-hero-slide-copy[hidden] { display: none; }
.home-hero-campaign-kicker {
  color: #d1c8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-hero-campaign-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border:0;
  border-radius: 999px;
  background: rgba(9,8,12,.34);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}
.home-hero-carousel-controls {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3vw, 42px);
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.home-hero-carousel-controls > div { display: flex; align-items: center; gap: 7px; }
.home-hero-carousel-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(8,7,11,.34);
  color: #fff;
  font: inherit;
  font-size: 22px;
  backdrop-filter: blur(10px);
}
.home-hero-carousel-controls [data-home-hero-dot] { width: 8px; height: 8px; border: 0; background: rgba(255,255,255,.42); }
.home-hero-carousel-controls [data-home-hero-dot].is-active { width: 24px; border-radius: 99px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .home-hero-visual { transition: none; } }

.home-night-hero-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 720px;
}

.home-live-now > small {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d1c8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-night-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 7.2vw, 108px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.075em;
}

.home-night-hero h1 em {
  color: var(--home-purple);
  font-style: normal;
}

.home-night-hero-copy > p {
  max-width: 450px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 650;
  line-height: 1.35;
}

.home-live-now {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 28px;
  border: 0;
  border-radius: 24px;
  background: rgba(10,10,13,.54);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.home-live-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-live-metrics > span {
  display: grid;
  gap: 8px;
}

.home-live-metrics strong,
.home-live-metrics b {
  color: var(--home-purple);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.06em;
}

.home-live-metrics [data-home-live-count]:empty,
.home-live-metrics [data-home-live-venues]:empty {
  display:block;
  width:1.5em;
  height:.85em;
  border-radius:8px;
  background:rgba(255,255,255,.18);
}

.home-live-now em {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.home-live-now > a {
  display: inline-flex;
  width: 100%;
  max-width: none;
  justify-self: center;
  justify-content: space-between;
  align-items: center;
  min-height:max(44px,var(--oonite-control-height,44px));
  padding: 0 14px;
  border:0;
  border-radius: 12px;
  background: rgba(139,108,255,.12);
  color: #c9bdff;
  font-size:var(--oonite-control-font-size,14px);
  font-weight: 800;
  text-decoration: none;box-sizing:border-box;}

.home-live-now > a > span {
  font-size: 18px;
  line-height: 1;
}

.home-live-community {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-live-community[hidden] { display: none; }
.home-live-error { margin: 0; padding: 10px; color: rgba(255,255,255,.8); font-size: 11px; }
.home-live-retry { margin:0 0 8px 10px; min-height:44px; padding:8px 14px; border:1px solid rgba(185,170,243,.35); border-radius:12px; background:rgba(139,108,255,.14); color:#d6ccff; font:700 12px/1.3 "DM Sans",sans-serif; cursor:pointer; appearance:none; }
.home-live-retry:hover,.home-live-retry:focus-visible { background:rgba(139,108,255,.24); outline:2px solid #b8a8ff; outline-offset:2px; }

.home-live-activity {
  display: grid;
  grid-template-columns: var(--activity-avatar-width,34px) minmax(0,1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 50px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
  transition: background .18s ease;
}

.home-live-activity:hover,
.home-live-activity:focus-visible {
  background: rgba(255,255,255,.12);
}

.home-live-activity-avatar {
  position: relative;
  display: block;
  width: var(--activity-avatar-width,34px);
  height: 34px;
}

.home-live-avatar-extra {
  position: absolute;
  right: -5px;
  bottom: -4px;
  padding: 2px 3px;
  border-radius: 5px;
  background: #1d1d1d;
  color: #fff;
  font-size: 8px;
}

.home-live-person,
.home-live-person > img,
.home-live-person > span:not(.member-identity-badge) {
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: #28242f;
  object-fit: cover;
}

.home-live-activity-avatar.is-group .home-live-person {
  position:absolute;
  top:3px;
  left:calc(var(--avatar-index) * 8px);
  width:28px;
  height:28px;
  border:2px solid #151319;
  border-radius:50%;
  background:#28242f;
  overflow:hidden;
}

.home-live-activity-avatar.is-group .home-live-person > img,
.home-live-activity-avatar.is-group .home-live-person > span:not(.member-identity-badge) {
  width:100%;
  height:100%;
}

.home-live-activity-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}

.home-live-activity-copy > span,
.home-live-activity-copy small {
  overflow: hidden;
  line-height: 1.25;
}

.home-live-activity-copy > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 10px;
  font-weight: 500;
}

.home-live-activity-copy small {
  min-width: 0;
  color: rgba(255,255,255,.67);
  font-size: 9px;
  font-weight: 400;
}

.home-live-activity > time {
  color: rgba(255,255,255,.46);
  font-size:var(--oonite-meta-font-size,10px);
  font-weight: 400;
  white-space: nowrap;
}

.home-live-activity-chevron { font-size: 18px; color: rgba(255,255,255,.55); }

@media (min-width: 720px) {
  .home-live-activity-copy > span { -webkit-line-clamp: 1; }
}

.home-live-now strong.is-rolling,
.home-live-now b.is-rolling {
  animation: home-live-number-roll .65s cubic-bezier(.2,.75,.25,1);
}

.home-section {
  width: min(1280px, calc(100% - 60px));
  margin: 0 auto;
  padding: clamp(56px, 6vw, 82px) 0 0;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.home-section-head p,
.home-night-map header p {
  margin: 6px 0 0;
  color: #77777f;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: normal;
}

.home-section-head h2,
.home-night-map header h2 {
  margin: 0;
  color: transparent;
  background-image: linear-gradient(105deg, #7659ff 5%, #b4a5ff 58%, #7659ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: none;
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.055em;
}

.home-section-head > a {
  display:inline-flex;
  min-width:44px;
  min-height:44px;
  align-items:center;
  justify-content:flex-end;
  padding:0;
  color: #f8f8fa;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

/* All city homes, including Web first paint, use the same section typography. */
#app .community-city-experiment :is(.home-section-head, .home-night-map header, .night-tonight-section > header) h2,
#app .community-city-experiment .home-city-updates > h2 {
  color: transparent;
  background-image: linear-gradient(105deg, #7659ff 5%, #b4a5ff 58%, #7659ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: none;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.home-section-head > a span {
  color: var(--home-purple);
}

/* One compact route affordance for every Explore section. */
.home-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0 0 10px;
  color: var(--home-purple) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  text-decoration: none;
}

body.day-mode .home-more-link { color: #684cff !important; }

.home-picks-grid {
  display: grid;
  grid-template-columns: minmax(0, 16fr) repeat(3, minmax(0, 9fr));
  align-items: start;
  gap: 16px;
  min-height: 0;
}

.home-pick-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  display: grid;
  align-items: end;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
  background-color: #19191d;
  background-image: var(--home-pick-cover);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  border: 0;
}

.home-pick-card.is-featured {
  aspect-ratio: 4 / 3;
  box-shadow: none;
}

.home-pick-shade {
  position: absolute;
  inset: 0;
}

.home-pick-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,7,.12) 0%, rgba(5,5,7,.04) 35%, rgba(5,5,7,.3) 55%, rgba(5,5,7,.88) 100%);
}

.home-pick-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 20px;
}

.home-pick-copy small {
  color: var(--home-green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.home-pick-copy strong {
  max-width: 18ch;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.035em;
}

.home-pick-card.is-featured .home-pick-copy strong {
  max-width: 14ch;
  font-size: clamp(34px, 4.2vw, 58px);
}

.home-pick-copy span,
.home-pick-copy time {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 400;
}

.home-pick-copy em {
  margin-top: 4px;
  color: rgba(255,255,255,.88);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.home-pick-signals {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  padding-top: 12px;
  border-top:0;
}

.home-pick-signals b {
  color: #d0c6ff;
  font-size: 10px;
  font-weight: 850;
}

.home-hero-city {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-live-now > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-live-now > header > small { margin: 0; }

.home-live-now > header > time{
  color: rgba(255,255,255,.62);
  font-size:var(--oonite-meta-font-size,10px);
  font-weight: 500;
}

body.day-mode .home-live-now > header > time { color: rgba(22,20,27,.52); }

body.day-mode .home-pick-card,
body.day-mode .home-pick-card strong,
body.day-mode .home-pick-card em,
body.day-mode .home-pick-card time,
body.day-mode .home-pick-card span:not(.event-category-badge),
body.day-mode .home-pick-card small {
  color: #fff;
}

body.day-mode .home-pick-card .home-pick-signals b { color: #d0c6ff; }

.home-pick-card.is-empty {
  background:
    radial-gradient(circle at 80% 20%, rgba(139,108,255,.42), transparent 36%),
    linear-gradient(135deg, #18151f, #09090b);
}

.home-night-map {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: clamp(30px, 5vw, 70px);
  width: min(1280px, calc(100% - 60px));
  margin: 0 auto;
  padding: clamp(62px, 7vw, 92px) 0 0;
  align-items: stretch;
}

.home-night-map > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.home-night-map header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.home-night-map header h2 {
  font-size: clamp(17px, 1.7vw, 23px);
}

.home-night-map header a {
  display:inline-flex;
  min-width:44px;
  min-height:44px;
  align-items:center;
  justify-content:flex-end;
  color: var(--home-purple);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

.home-flow-visual {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.018);
}

.home-flow-panel ol {
  list-style: none;
}

.home-flow-panel li {
  position: absolute;
  display: grid;
  gap: 3px;
  width: 126px;
  transform: translateX(-50%);
}

.home-flow-panel li:nth-child(1) { top: 162px; left: 12%; }
.home-flow-panel li:nth-child(2) { top: 88px; left: 28%; }
.home-flow-panel li:nth-child(3) { top: 42px; left: 50%; text-align: center; }
.home-flow-panel li:nth-child(4) { top: 88px; left: 72%; text-align: right; }
.home-flow-panel li:nth-child(5) { top: 162px; left: 88%; text-align: right; }

.home-flow-panel li::after {
  position: absolute;
  top: 66px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: 0 0 10px rgba(0,255,9,.65);
}

.home-flow-panel time,
.home-calendar-list time {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.home-flow-panel li span {
  align-content: start;
}

.home-flow-panel li strong {
  color: #fff;
}

.home-flow-panel li small {
  color: #77777f;
}

.home-calendar-panel {
  padding: 0;
  background: transparent;
}

.home-calendar-list {
  display: grid;
}

.home-calendar-empty {
  display: grid;
  min-height: 164px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  border: 1px solid rgba(139,108,255,.18);
  border-radius: 16px;
  text-align: center;
}

.home-calendar-empty strong { font-size: 16px; }
.home-calendar-empty p { margin: 0; color: #85858d; font-size: 12px; }
.home-calendar-empty a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 6px;
  padding: 0 16px;
  border-radius: 999px;
  background: #684cff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.home-calendar-list > a {
  display: grid;
  grid-template-columns:4.75rem 50px minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  margin-bottom: 5px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #fff;
  text-decoration: none;
}

.home-calendar-list > a:nth-child(2) {
  background: rgba(139,108,255,.16);
}

.home-calendar-list > a > i {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}

.home-calendar-list time { display:grid;gap:3px;min-width:0;white-space:normal;overflow-wrap:anywhere; }
.home-calendar-list [data-recommendation-date] {
  font-size: .625rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: keep-all;
}
.home-calendar-list time small { color: #66666e; font-size: 8px; }

.home-calendar-list > a > span {
  min-width:0;overflow-wrap:anywhere;
  display: grid;
  gap: 4px;
}

.home-calendar-list strong {
  font-size: 16px;
  font-weight: 800;
}

.home-calendar-list small {
  color: #85858d;
  font-size: 11px;
}

.home-calendar-list b {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(139,108,255,.14);
  color: #cfc4ff;
  font-size: 8px;
  font-weight: 850;
}

.home-calendar-list > a:first-child b {
  background: linear-gradient(105deg, #f2cf67, #ffdf84);
  color: #201600;
}

.home-calendar-list > a:nth-child(2) b {
  background: #ff5b35;
  color: #fff;
}

body.day-mode .home-night-map header a {
  color: #171719;
}

.home-city-guides {
  padding-top: clamp(48px, 6vw, 78px);
  padding-bottom: clamp(46px, 6vw, 76px);
}

.home-city-guides > header.home-section-head {
  margin-bottom: 18px;
}

.home-city-guides > header.home-section-head > a {
  color: #9c5cff;
}

.home-city-guides-grid {
  display: grid;
  grid-template-columns: minmax(0, 16fr) repeat(3, minmax(0, 9fr));
  align-items: start;
  gap: 16px;
}

.home-city-guide-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(104px, 1.12fr) auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #121216;
  color: #f5f5f7;
  transition: transform .2s ease;
}

/* City Guides: hover movement belongs only to precise mouse-style input.
   Touch activation stays still before the approved detail transition. */
@media (hover:hover) and (pointer:fine) {
  .home-city-guide-card:hover {
    transform: translateY(-3px);
  }
}

.home-city-guide-image {
  display: block;
  min-height: 0;
  background: #1d1d21 center / cover no-repeat;
}

.home-city-guide-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px 14px 13px;
}

.home-city-guide-copy strong {
  font-size: 15px;
  line-height: 1.12;
}

.home-city-guide-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #d0ced5;
  font-size: 12px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-city-guide-copy small {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  color: #9a98a1;
  font-size: 10px;
}

.home-city-guide-copy small b {
  color: #00ff09;
  font-weight: 800;
}

.home-city-guide-copy small b::before {
  content: "•";
  margin-right: 5px;
}

.home-city-guide-card.is-featured {
  aspect-ratio: 4 / 3;
  display: block;
}

.home-city-guide-card.is-featured .home-city-guide-image {
  position: absolute;
  inset: 0;
}

.home-city-guide-card.is-featured::after {
  position: absolute;
  inset: 20% 0 0;
  background: linear-gradient(180deg, transparent, rgba(4,4,7,.9));
  content: "";
}

.home-city-guide-card.is-featured .home-city-guide-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
}

.home-city-guide-card.is-featured .home-city-guide-copy strong {
  font-size: 19px;
  color:#fff;
  text-shadow: none;
}

.home-city-guide-card.is-featured .home-city-guide-copy > span {
  max-width: 360px;
  color: #f7f6fa;
  font-size: 13px;
  text-shadow: none;
}

body.day-mode .home-city-guide-card {
  color: #171719;
}

body.day-mode .home-city-guide-card {
  background: #fff;
}

body.day-mode .home-city-guide-copy > span {
  color: #55515d;
}

body.day-mode .home-city-guide-card.is-featured,
body.day-mode .home-city-guide-card.is-featured .home-city-guide-copy > span {
  color: #fff;
}

.home-latest-moments {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.home-latest-moments-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 12px;
}

/* The shared Page Frame owns the standalone feed's outer top spacing. */
html:not([data-native-platform="ios"]) #app .home-moments-page > .home-latest-moments {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 0;
  padding-inline: 0;
}
html:not([data-native-platform="ios"]) .home-moments-page .home-section-head {
  margin: 0 0 20px;
}

html:not([data-native-platform="ios"]) .home-moments-page .home-section-head h1 {
  margin: 0;
}

@media (max-width: 719px) {
  html:not([data-native-platform="ios"]) #app .home-moments-page > .home-latest-moments {
    width: calc(100% - 32px);
    margin-inline: auto;
  }
}

#app .home-moments-page .home-latest-moments-grid {
  grid-template-columns:repeat(var(--oonite-public-feed-columns,2),minmax(0,1fr));
}

.home-calendar-list > a.is-ended { opacity: .48; }

.home-calendar-list > a.is-ended > b {
  background: rgba(124,92,255,.1);
  color: #8a78d2;
}

.home-latest-moments-grid .home-moment-card {
  min-width: 0;
}
/* Both cold and populated cards reserve two title lines and the interaction
   row. The cover keeps one paint until its own image is ready. */
.home-moments-page .home-moment-card .moment-profile-copy strong {
  min-height: 2lh;
}
.home-moments-page [data-moments-feed-placeholder] .moment-profile-like {
  grid-column: 2;
}
.home-moments-page .home-moment-card .moment-profile-cover:not(.is-image-loaded):not(.is-image-error):not(.is-sensitive-preview) {
  background-color: var(--oonite-media-placeholder, var(--moment-loading-low));
  background-image: none !important;
  animation: none;
}
@media (max-width: 719px) {
  .home-latest-moments-grid [data-moments-feed-placeholder]:nth-child(n+5) { display: none; }
}


.home-latest-moments-grid .moment-profile-cover.is-image-loaded {
  animation: home-image-reveal .22s ease both;
}

.home-latest-moments-grid .moment-profile-cover {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 16px;
  background-color: var(--moment-loading-low, #e5e3e9);
}

.home-latest-moments-grid .moment-profile-copy {
  padding: 12px 2px 4px;
}

.home-latest-moments-grid .moment-profile-copy strong {
  color: #f5f5f7;
  font-size: 14px;
}

.home-latest-moments-grid .moment-profile-meta {
  padding-right: 2px;
  padding-left: 2px;
}

.home-latest-moments-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 0;
  color: var(--account-muted, var(--muted, #979797));
  font-size: 12px;
  line-height: 1.45;
}

.home-latest-moments-retry{
  justify-self:start;
  width:auto;
  min-height:44px;
  margin-top:12px;
  padding:10px 18px;
  border:0;
  border-radius:999px;
  background:color-mix(in srgb,var(--luca-purple) 12%,transparent);
  color:var(--luca-purple);
  font-family:inherit;
  font-size:13px;
  font-weight:750;
  line-height:1.35;
  text-align:center;
  cursor:pointer;
}
.home-latest-moments-retry:focus-visible{outline:2px solid var(--luca-purple);outline-offset:2px}

body.day-mode .home-city-pulse {
  background: #f3f2f6;
  color: #171719;
}

body.day-mode .home-night-hero {
  background:
    linear-gradient(90deg, rgba(248,247,250,.95) 0%, rgba(248,247,250,.72) 42%, rgba(248,247,250,.08) 78%),
    linear-gradient(180deg, rgba(255,255,255,.05) 38%, rgba(245,244,247,.68) 100%),
    var(--home-day-image-active, var(--home-day-image, url("assets/images/home-bangkok-day-desktop.jpg"))) center / cover no-repeat,
    #eceaf0;
}

body.day-mode .home-hero-visual {
  background:
    linear-gradient(90deg, rgba(248,247,250,.92) 0%, rgba(248,247,250,.66) 42%, rgba(248,247,250,.08) 78%),
    linear-gradient(180deg, rgba(255,255,255,.05) 38%, rgba(245,244,247,.58) 100%),
    var(--home-hero-display-image, var(--home-hero-desktop-image)) center / cover no-repeat,
    #eceaf0;
}
body.day-mode .home-hero-campaign-kicker { color: #684cff; }
body.day-mode .home-hero-campaign-cta { border-color: rgba(104,76,255,.24); background: rgba(255,255,255,.62); color: #4e32c8; }
body.day-mode .home-hero-carousel-controls button { border-color: rgba(40,30,75,.22); background: rgba(255,255,255,.58); color: #29242f; }
body.day-mode .home-hero-carousel-controls [data-home-hero-dot] { background: rgba(45,35,75,.3); }
body.day-mode .home-hero-carousel-controls [data-home-hero-dot].is-active { background: #684cff; }

body.day-mode .home-night-hero::before {
  background: none;
}

body.day-mode .home-night-hero h1,
body.day-mode .home-night-hero-copy > p {
  color: #171719;
}

body.day-mode .home-night-hero h1 em,
body.day-mode .home-night-hero-copy > small {
  color: #684cff;
}

body.day-mode .home-live-now {
  background: rgba(255,255,255,.64);
  box-shadow: none;
}

body.day-mode .home-live-now > small {
  color: #684cff;
}

body.day-mode .home-live-now strong,
body.day-mode .home-live-now b,
body.day-mode .home-live-now > p {
  color: #684cff;
}

body.day-mode .home-live-now em {
  color: #65656b;
}

body.day-mode .home-live-now > a {
  border-color: rgba(104,76,255,.16);
  background: rgba(104,76,255,.075);
  color: #684cff;
}

body.day-mode .home-live-activity {
  background: rgba(51,42,82,.055);
  color: #171719;
}

body.day-mode .home-live-activity:hover,
body.day-mode .home-live-activity:focus-visible {
  background: rgba(109,76,255,.1);
}

body.day-mode .home-live-activity-copy small { color:#686470; }
body.day-mode .home-live-activity > time { color:#8b8693; }
body.day-mode .home-live-activity-avatar.is-group .home-live-person { border-color:#fff; }

body.day-mode .home-section-head h2,
body.day-mode .home-night-map header h2,
body.day-mode .home-flow-panel time,
body.day-mode .home-flow-panel li strong,
body.day-mode .home-calendar-list time,
body.day-mode .home-calendar-list strong {
  color: #171719;
}

body.day-mode .home-section-head h2,
body.day-mode .home-night-map header h2 {
  color: transparent;
}

body.day-mode .home-section-head > a {
  color: #171719;
}

body.day-mode .home-flow-panel li::before {
  border-color: #f3f2f6;
}

body.day-mode .home-calendar-panel {
  background: transparent;
  box-shadow: none;
}

body.day-mode .home-calendar-list > a {
  background: rgba(255,255,255,.7);
  color: #171719;
}

body.day-mode .home-flow-visual {
  background: rgba(255,255,255,.56);
}

body.day-mode .home-latest-moments-grid .moment-profile-copy strong {
  color: #171719;
}

@keyframes home-live-number-roll {
  from { opacity: .35; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-moment-loading {
  to { background-position: -120% 0; }
}

@keyframes home-flow-now-pulse {
  to {
    background: #ff9a3d;
    box-shadow: 0 0 0 7px rgba(255,154,61,.13), 0 0 22px rgba(255,91,53,.85);
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .home-night-hero {
    min-height: clamp(650px, 82svh, 820px);
    padding-right: 24px;
    padding-left: 24px;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 34px;
  }

  .home-night-hero h1 {
    font-size: clamp(48px, 7vw, 66px);
  }

  .home-live-now {
    padding: 22px;
  }

  .home-picks-grid {
    grid-template-columns: minmax(0, 16fr) minmax(0, 9fr);
  }

  .home-pick-card:nth-child(n + 3) {
    display: none;
  }

  .home-night-map {
    gap: 44px;
  }
}

@media (max-width: 719px) {
  .home-night-hero {
    --home-day-image-active: var(--home-day-image-mobile, var(--home-day-image));
    --home-night-image-active: var(--home-night-image-mobile, var(--home-night-image));
    min-height: max(620px, 88svh);
    padding: 96px 16px 24px;
    background-image:
      linear-gradient(90deg, rgba(3,3,5,.88) 0%, rgba(3,3,5,.56) 42%, rgba(3,3,5,.04) 78%),
      linear-gradient(180deg, rgba(0,0,0,.04) 35%, rgba(0,0,0,.5) 100%),
      var(--home-night-image-active, var(--home-night-image, url("assets/images/home-bangkok-night-mobile.jpg")));
    background-position: center, center, 64% center;
  }
  .home-night-hero[data-home-hero-count]:not([data-home-hero-count="1"]) { padding-bottom: 68px; }

  body.day-mode .app-shell .home-city-pulse .home-night-hero {
    background-position: center, center, 28% center;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-hero-visual {
    background-image:
      linear-gradient(90deg, rgba(3,3,5,.88) 0%, rgba(3,3,5,.56) 42%, rgba(3,3,5,.04) 78%),
      linear-gradient(180deg, rgba(0,0,0,.04) 35%, rgba(0,0,0,.5) 100%),
      var(--home-hero-mobile-image);
    background-position: center, center, center;
    background-size: auto, auto, cover;
  }

  body.day-mode .home-hero-visual {
    background-image:
      linear-gradient(90deg, rgba(248,247,250,.86) 0%, rgba(248,247,250,.58) 42%, rgba(248,247,250,.18) 82%, rgba(248,247,250,0) 100%),
      linear-gradient(180deg, rgba(255,255,255,.02) 30%, rgba(245,244,247,.48) 100%),
      var(--home-hero-mobile-image);
  }

  .home-hero-carousel-controls { right: 18px; bottom: 10px; }
  .home-hero-carousel-controls > button { width: 40px; height: 40px; }

  .home-night-hero-copy {
    gap: 14px;
  }

  .home-night-hero h1 {
    max-width: 340px;
    font-size: clamp(42px, 12vw, 54px);
  }

  .home-night-hero-copy > p {
    max-width: 300px;
    font-size: 14px;
  }

  .home-live-now {
    gap: 15px;
    padding: 18px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
  }

  .home-live-metrics {
    gap: 16px;
  }

  .home-live-metrics strong,
  .home-live-metrics b {
    font-size: clamp(32px, 10vw, 42px);
  }

  .home-live-now > a {
    min-height:max(44px,var(--oonite-control-height,44px));
    padding-right: 6px;
    padding-left: 6px;border:0;box-sizing:border-box;font-size:var(--oonite-control-font-size,14px);}

  .home-section,
  .home-night-map {
    width: calc(100% - 32px);
    padding-top: 50px;
  }

  .home-section-head {
    align-items: center;
    margin-bottom: 20px;
  }

  .home-section-head h2 {
    font-size: 21px;
  }

  .home-section-head > a {
    font-size: 11px;
  }

  .home-picks-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-rows: clamp(180px, 56.5vw, 240px);
    grid-template-columns: 82% 66% 66%;
    grid-auto-columns: 66%;
    gap: 10px;
    min-height: 0;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-picks-grid::-webkit-scrollbar { display: none; }

  .home-pick-card,
  .home-pick-card.is-featured,
  .home-pick-card:nth-child(n) {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .home-pick-card:nth-child(n + 4) {
    display: none;
  }

  .home-night-map {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-night-map header h2 {
    font-size: 20px;
  }


  .home-flow-panel li,
  body.day-mode .home-flow-panel li:nth-child(n) {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    width: 88px;
  }

  .home-flow-panel li:nth-child(1), body.day-mode .home-flow-panel li:nth-child(1) { top: 140px; left: 12%; text-align: left; }
  .home-flow-panel li:nth-child(2), body.day-mode .home-flow-panel li:nth-child(2) { top: 76px; left: 31%; text-align: left; }
  .home-flow-panel li:nth-child(3), body.day-mode .home-flow-panel li:nth-child(3) { top: 38px; left: 50%; text-align: center; }
  .home-flow-panel li:nth-child(4), body.day-mode .home-flow-panel li:nth-child(4) { top: 76px; left: 69%; text-align: right; }
  .home-flow-panel li:nth-child(5), body.day-mode .home-flow-panel li:nth-child(5) { top: 140px; left: 88%; text-align: right; }
  .home-flow-panel li::after, body.day-mode .home-flow-panel li::after { top: 58px; left: 50%; }
  .home-flow-panel li strong { font-size: 13px; }
  .home-flow-panel li small { font-size: 9px; }
  .home-flow-panel time { font-size: 10px; }
  .home-calendar-panel {
    padding: 0;
  }

  .home-city-guides {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .home-city-guides > header.home-section-head {
    margin-bottom: 14px;
  }

  .home-city-guides > header.home-section-head > a {
    font-size: 12px;
  }

  .home-city-guides > header.home-section-head > a span {
    display: none;
  }

  .home-city-guides-grid {
    grid-auto-flow: column;
    grid-auto-rows: clamp(180px, 56.5vw, 240px);
    grid-template-columns: 82% 66% 66%;
    grid-auto-columns: 66%;
    gap: 10px;
    min-height: 0;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-city-guides-grid::-webkit-scrollbar {
    display: none;
  }

  .home-city-guide-card,
  .home-city-guide-card.is-featured {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 16px;
    scroll-snap-align: start;
    min-height: 0;
    max-height: none;
  }

  .home-city-guide-card.is-featured {
    display: block;
  }

  .home-city-guide-card:nth-child(n+4) {
    display: none;
  }

  .home-city-guide-copy small b {
    display: none;
  }

  .home-calendar-list > a {
    grid-template-columns:min(5rem,24%) 46px minmax(0,1fr) auto;
    gap: clamp(6px,2.5vw,12px);
  }

  .home-calendar-list > a > i {
    width: 46px;
    height: 46px;
  }

  .home-latest-moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .home-latest-moments {
    padding-bottom: 80px;
  }

  .home-latest-moments-grid .moment-profile-copy strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-live-now strong.is-rolling,
  .home-live-now b.is-rolling {
    animation: none;
  }

  .home-live-activity {
    transition: none;
  }
}

/* Explore desktop polish — 2026-08-21.
   The route keeps its existing modules and data-driven markup. These rules
   only tune the desktop/tablet frame: a clearer first screen, a tighter
   discovery rhythm, and a more legible image treatment in day mode. Mobile
   remains owned by the rules above and is intentionally untouched. */
@media (min-width: 720px) {
  .home-pick-copy strong {
    font-size: 24px;
    line-height: 1.15;
  }

  .home-pick-card.is-featured .home-pick-copy strong {
    font-size: 30px;
    line-height: 1.12;
  }

  .app-shell .home-city-pulse {
    background: var(--app-shell-surface-page, #f5f5f7);
  }

  .app-shell .home-city-pulse .home-night-hero {
    min-height: clamp(540px, 68svh, 640px);
    padding-bottom: clamp(36px, 4vw, 52px);
    border-radius: 24px;
  }

  .app-shell .home-city-pulse .home-hero-inner {
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, .84fr);
    gap: clamp(28px, 4vw, 48px);
    padding-inline: clamp(24px, 3vw, 48px);
  }

  .app-shell .home-city-pulse .home-night-hero h1 {
    max-width: 620px;
    font-size: clamp(54px, 5.7vw, 80px);
  }

  .app-shell .home-city-pulse .home-live-now {
    width: min(100%, 344px);
    justify-self: end;
    padding: 24px;
    border-radius: 22px;
  }

  .app-shell .home-city-pulse .home-live-metrics {
    gap: 16px;
  }

  .app-shell .home-city-pulse .home-live-metrics strong,
  .app-shell .home-city-pulse .home-live-metrics b {
    font-size: clamp(38px, 3.5vw, 54px);
  }

  .app-shell .home-city-pulse .home-section {
    padding-top: clamp(40px, 4vw, 54px);
  }

  .app-shell .home-city-pulse .home-night-map {
    padding-top: clamp(48px, 4.5vw, 60px);
    gap: clamp(24px, 3.2vw, 40px);
  }

  .app-shell .home-city-pulse .home-city-guides {
    padding-top: clamp(44px, 4.2vw, 58px);
    padding-bottom: clamp(42px, 4.5vw, 62px);
  }

  .app-shell .home-city-pulse .home-latest-moments {
    padding-bottom: clamp(56px, 6vw, 78px);
  }

  .app-shell .home-city-pulse .home-latest-moments-empty {
    padding-top: 18px;
    padding-bottom: 0;
  }

  body.day-mode .app-shell .home-city-pulse .home-night-hero {
    background:
      linear-gradient(90deg, rgba(248,247,250,.84) 0%, rgba(248,247,250,.54) 34%, rgba(248,247,250,.12) 70%, rgba(248,247,250,0) 100%),
      linear-gradient(180deg, rgba(255,255,255,.02) 34%, rgba(245,244,247,.42) 100%),
      var(--home-day-image-active, var(--home-day-image, url("assets/images/home-bangkok-day-desktop.jpg"))) center / cover no-repeat,
      #eceaf0;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .app-shell .home-city-pulse .home-night-hero {
    min-height: clamp(520px, 70svh, 600px);
  }

  .app-shell .home-city-pulse .home-hero-inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(240px, .82fr);
    gap: 24px;
  }

  .app-shell .home-city-pulse .home-live-now {
    width: min(100%, 300px);
    padding: 20px;
  }

}

/* Explore audit refresh — 2026-08-12. */
.home-pick-type {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b9aaf3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: none;
}

body.day-mode .home-pick-type { color: #8d79d9; }

.home-pick-card { --home-pick-cover: none; }

.home-flow-visual {
  flex: 1 1 auto;
  min-height: 260px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(139,108,255,.45) transparent;
  scrollbar-width: none;
}

.home-flow-scroll-strip {
  display:flex;
  width:max-content;
}

.home-flow-timezone {
  position: sticky;
  z-index: 5;
  top: 12px;
  left: 14px;
  display: block;
  width: max-content;
  margin-bottom: -23px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b9aaf3;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

body.night-mode .home-flow-timezone {
  color: #b9aaf3;
}

body.day-mode .home-flow-timezone {
  background: transparent;
  color: #8d79d9;
}

.home-flow-track {
  position: relative;
  flex:0 0 1500px;
  width: 1500px;
  height: 240px;
  margin-top: 34px;
}

.home-flow-time-band {
  position: absolute;
  top: var(--flow-band-top, -34px);
  height: var(--flow-band-height, 274px);
  left: var(--flow-current-x, 0px);
  width: 120px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,155,73,.14), rgba(255,155,73,.24) 52%, rgba(255,155,73,.14));
  pointer-events: none;
}

.home-flow-time-band::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: rgba(249,155,76,.40);
}

body.night-mode .home-flow-time-band {
  background: linear-gradient(180deg, rgba(255,152,64,.08), rgba(255,152,64,.16) 52%, rgba(255,152,64,.08));
}

.home-flow-track > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-flow-track > svg path.home-flow-area {
  fill: var(--home-flow-area-gradient);
  stroke: none;
  vector-effect: non-scaling-stroke;
}

.home-flow-track > svg path.home-flow-line {
  fill: none;
  stroke: #7549ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(117,73,255,.3));
}

.home-flow-track > svg path.home-flow-current-segment {
  fill: none;
  stroke: var(--home-flow-current-gradient);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255,112,67,.4));
}

.home-flow-track > svg path.home-flow-current-accent {
  fill:none;
  stroke:var(--home-flow-current-gradient);
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:4.75;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 0 4px rgba(255,112,67,.3));
}

.home-flow-track > svg path.home-flow-current-core {
  fill:none;
  stroke:var(--home-flow-current-gradient);
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:6;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 0 5px rgba(255,112,67,.38));
}

.home-flow-panel ol {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
}

.home-flow-panel li,
.home-flow-panel li:nth-child(n),
body.day-mode .home-flow-panel li:nth-child(n) {
  position: absolute;
  top: var(--flow-y);
  left: var(--flow-x);
  display: block;
  width: 0;
  height: 0;
  padding: 0;
  text-align: center;
  scroll-snap-align: center;
  transform: none;
}

.home-flow-panel li::after { content: none; }

.home-flow-panel li > i {
  display:none;
}

.home-flow-now {
  position:absolute;
  z-index:5;
  top:var(--flow-now-y);
  left:var(--flow-now-x);
  width:0;
  height:0;
  pointer-events:none;
}
.home-flow-now > time {
  position:absolute;
  bottom:30px;
  left:50%;
  padding:4px 7px;
  border-radius:999px;
  background:#ffc28b;
  color:#4c2b16;
  font-size:10px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  transform:translateX(-50%);
}

.home-flow-panel li > time {
  position: absolute;
  right: 50%;
  bottom: 13px;
  width: max-content;
  transform: translateX(50%);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.home-flow-panel li span { position: absolute; top: 14px; left: 50%; display: grid; gap: 4px; width: 118px; transform: translateX(-50%); }
.home-flow-panel li strong { font-size: 14px; line-height: 1.15; }
.home-flow-panel li small { max-width: 15ch; font-size: 10px; line-height: 1.35; }
body.day-mode .home-flow-panel li > time { color: #171719; }

/* Current Bangkok period remains distinct in both themes. */
.home-flow-panel li.is-current > time,
.home-flow-panel li.is-current strong { color: #ffad70; }
body.day-mode .home-flow-panel li.is-current > time,
body.day-mode .home-flow-panel li.is-current strong { color: #b64b13; }


.home-city-guide-link { display: contents; color: inherit; }
.home-city-guide-copy { padding-right: 14px; }
.home-guide-byline { display: flex !important; align-items: center; gap: 8px; margin-top: 7px; }
.home-guide-byline img { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; object-fit: cover; background: var(--oonite-media-placeholder,#35333d); }
.home-guide-byline > span { display: grid; gap: 2px; }
.home-guide-byline b { font-size: 10px; line-height: 1.1; }
.home-guide-byline small { color: #9996a0; font-size:var(--oonite-meta-font-size,10px); line-height: 1.1; }

@keyframes home-image-reveal {
  from { opacity: .65; }
  to { opacity: 1; }
}

@media (max-width: 719px) {
  /* Keep the mobile Hero crop on the two seated, front-facing guests. The day
     treatment has an extra colour layer, so declare all four positions here;
     otherwise browsers can fall back to the shorthand's centred crop. */
  body.day-mode .home-city-pulse .home-night-hero {
    background-position: center, center, 24% center, center;
  }

  body.night-mode .home-city-pulse .home-night-hero {
    background-position: center, center, 64% center;
  }

  .home-pick-card,
  .home-pick-card.is-featured,
  .home-pick-card:nth-child(n) {
    grid-template-rows: 1fr;
    align-items: end;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .home-pick-shade { grid-row: 1; }
  .home-pick-copy {
    grid-row: 1;
    min-height: 0;
    align-content: end;
    padding: 16px 17px 18px;
    background: none;
    backdrop-filter: none;
  }
  .home-pick-copy strong,
  .home-pick-card.is-featured .home-pick-copy strong { max-width: 18ch; font-size: 22px; line-height: 1.15; }
  .home-pick-type { top: 12px; left: 12px; }
  body.day-mode .home-pick-copy { background: none; }
  .home-flow-visual { min-height: 288px; margin-right: -16px; border-radius: 14px 0 0 14px; }
  .home-flow-track { width: 1500px; }
  .home-city-guide-copy,
  .home-city-guide-card.is-featured .home-city-guide-copy { padding-right: 14px; }
  .home-guide-byline { margin-top: 5px; }
  .home-guide-byline img { width: 24px; height: 24px; flex-basis: 24px; }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .home-flow-visual { min-height: 272px; }
  .home-flow-track { width: 1500px; }
  .home-city-guide-copy,
  .home-city-guide-card.is-featured .home-city-guide-copy { padding-right: 14px; }
}

@media (min-width: 1280px) {
  .home-flow-track { width: 100%; min-width: 1500px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-lazy-background],
  .is-image-loaded,
  .home-flow-panel li.is-current > i { animation: none; }
}
.article-reading>.article-layout-text+.article-layout-text{margin-top:28px}
.article-layout-image{margin:34px 0}.article-layout-image img{display:block;width:100%;max-height:760px;border-radius:14px;object-fit:cover}.article-layout-image figcaption{margin-top:10px;color:var(--muted,#979797);font-size:11px;line-height:1.5}
.article-layout-says{margin:34px 0;padding:28px;border-radius:16px;background:#1d1d1d;color:#fff}.article-layout-says small{display:block;margin-bottom:14px;color:#00ff09;font-size:10px;font-weight:800;letter-spacing:.14em}.article-layout-says strong{display:block;font-size:clamp(18px,2vw,25px);line-height:1.45}
.article-inline-place{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:16px;align-items:center;margin:28px 0;padding:22px;border:1px solid rgba(151,151,151,.28);border-radius:15px;background:#1d1d1d;color:#fff;text-decoration:none}.article-inline-place>b{color:#00ff09;font-size:11px}.article-inline-place>div{display:grid;gap:7px}.article-inline-place strong{font-size:17px}.article-inline-place span{color:#b8b8b8;font-size:12px;line-height:1.5}.article-inline-place i{color:#00ff09;font-size:22px;font-style:normal}.article-inline-place .site-location-line{display:flex;align-items:center;gap:6px;color:#979797}.article-inline-place .site-location-line svg{width:13px}
.article-layout-places{margin:36px 0;padding:26px;border-radius:18px;background:#111;color:#fff}.article-layout-places>div:first-child small{color:#00ff09;font-size:9px;font-weight:800;letter-spacing:.14em}.article-layout-places>div:first-child h2{margin:8px 0 20px;font-size:28px}.article-layout-places .article-inline-place{margin:9px 0;background:#202020}.article-layout-places .article-inline-place.compact span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
body.article-route .article-layout-says small,
body.article-route .article-layout-places>div:first-child small,
body.article-route .article-inline-place>b,
body.article-route .article-inline-place>i{color:var(--article-detail-accent);-webkit-text-fill-color:var(--article-detail-accent)}
body.article-route .article-inline-place .site-location-line{color:#979797;-webkit-text-fill-color:#979797}
.day-mode .article-layout-says{border:1px solid #dedede;background:#fff;color:#1d1d1d}
.day-mode .article-layout-says small,.day-mode .article-inline-place>b,.day-mode .article-inline-place i,.day-mode .article-layout-places>div:first-child small{color:#087a19}
body.article-route.day-mode .article-layout-says small,
body.article-route.day-mode .article-layout-places>div:first-child small,
body.article-route.day-mode .article-inline-place>b,
body.article-route.day-mode .article-inline-place>i{color:var(--article-detail-accent);-webkit-text-fill-color:var(--article-detail-accent)}
body.article-route.day-mode .article-inline-place .site-location-line{color:#696969;-webkit-text-fill-color:#696969}
.day-mode .article-inline-place{border-color:#dedede;background:#fff;color:#1d1d1d}
.day-mode .article-inline-place span{color:#595959}
.day-mode .article-inline-place .site-location-line{color:#696969}
.day-mode .article-layout-places{border:1px solid #dedede;background:#fff;color:#1d1d1d}
.day-mode .article-layout-places .article-inline-place{background:#fafafa}
@media(max-width:640px){.article-layout-says{padding:22px}.article-inline-place{grid-template-columns:34px minmax(0,1fr) auto;padding:17px;gap:10px}.article-inline-place strong{font-size:15px}.article-layout-places{padding:18px}}

/* Web/tablet: the timeline owns its height; recommendations follow below. */
@media (min-width:720px) {
  :root:not([data-native-platform="ios"]) .app-shell .home-night-map {
    grid-template-columns:minmax(0,1fr);
    align-items:start;
  }
  :root:not([data-native-platform="ios"]) .app-shell .home-flow-visual {
    flex:0 0 auto;
  }
  :root:not([data-native-platform="ios"]) .app-shell .home-calendar-list {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 16px;
  }
  :root:not([data-native-platform="ios"]) .app-shell .home-calendar-list > a {
    grid-template-columns:76px 50px minmax(0,1fr) auto;
    gap:12px;
    margin-bottom:0;
  }
  :root:not([data-native-platform="ios"]) .app-shell .home-calendar-empty {
    grid-column:1 / -1;
  }
}
@media (min-width:720px) and (max-width:1023px) {
  :root:not([data-native-platform="ios"]) .app-shell .home-calendar-list {
    grid-template-columns:minmax(0,1fr);
  }
}

@media(max-width:719px){
 :root:not([data-native-platform="ios"]) .home-city-pulse > .home-night-hero { left:0; width:100%; transform:none; box-sizing:border-box; }
 :root:not([data-native-platform="ios"]) .home-night-event-logo { width:46px; height:46px; flex:0 0 46px; }
 :root:not([data-native-platform="ios"]) .has-venue-logo { background-size:contain; background-repeat:no-repeat; }
}

/* Category chips own their ink and compact geometry inside photographic Picks. */
.home-calendar-list > a > .home-event-labels{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.home-event-labels .home-event-status{display:inline-block;width:max-content;max-width:100%;padding:1px 5px;border-radius:4px;font-size:10px;font-weight:700;line-height:14px;letter-spacing:normal;color:#724100;background:#ffe6ad}
body.night-mode .home-event-labels .home-event-status{color:#ffe3a8;background:#4b3618}
.home-event-labels .home-event-status.is-ended{color:var(--home-muted,#85858d);background:transparent}

/* Photographic Picks keep their existing colors. */
.home-pick-type .event-category-badge{--event-pick-ink:#a7e9c0;background:transparent;color:var(--event-pick-ink);text-shadow:none}
.home-pick-type .event-category-badge[data-event-kind="festival"]{--event-pick-ink:#ffd09b}
.home-pick-type .event-category-badge[data-event-kind="special"]{--event-pick-ink:#ddc4ff}

/* Owner clarified: retain each existing activity slot and fill it proportionally;
   thumbnail requests preserve the source before slot-owned overflow cropping. */
.home-pick-card[data-event-image-role="logo"],
.home-calendar-list > a > i[data-event-image-role="logo"]{background-size:cover;background-repeat:no-repeat}

/* Guides video blocks stay inside the existing reading rail and scroll owner. */
.article-layout-video{margin:24px 0;max-width:100%;min-width:0}
oonite-article-video{display:block;position:relative;width:100%;aspect-ratio:16/9;min-height:200px;overflow:hidden;border-radius:14px;background:#111;color:#fff}
oonite-article-video>iframe,.article-video-poster{position:absolute;inset:0;width:100%;height:100%;border:0}
.article-video-poster{padding:0;display:block;cursor:pointer;background:#111;color:#fff;border-radius:0}
.article-video-poster img{display:block;width:100%;height:100%;object-fit:cover;opacity:.9}
.article-video-poster svg{position:absolute;top:50%;left:50%;width:64px;height:46px;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 10px #0006)}
.article-video-poster:focus-visible{outline:3px solid #9f89ff;outline-offset:-4px}
.article-video-status:empty{display:none}
.article-video-status{position:absolute;bottom:0;left:0;right:0;padding:10px 12px;background:#111e;color:#fff;font-size:13px;line-height:1.5;pointer-events:none}
.article-layout-video figcaption{margin-top:9px;color:var(--muted,#979797);font-size:13px;line-height:1.6}
/* Override legacy article-image natural-size rules only for the video poster. */
.article-layout-video .article-video-poster img{width:100%!important;height:100%!important;max-width:none;max-height:none;aspect-ratio:auto;margin:0}
.article-layout-video .article-video-poster svg{width:64px!important;height:46px!important;flex:none}

/* Responsive Web parity: shared Bangkok content, website-owned frame. */
.community-city-experiment { --community-city-gutter:0px; }
.community-city-experiment { min-width:0; padding:0; }
.community-city-experiment :is(.home-section, .home-night-map) {
  width:100%; max-width:none; margin:24px 0; padding:0;
}
.community-city-experiment .home-section-head { margin-bottom:12px; }
.community-city-experiment .home-section-head h2 { font-size:22px; line-height:1.2; }
.community-city-experiment .home-pick-copy strong { font-size:23px; }
.community-city-experiment .home-latest-moments-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.community-city-experiment .home-picks-grid,
.community-city-experiment .home-flow-visual,
.community-city-experiment [data-horizontal-rail] {
  box-sizing:border-box;
  width:calc(100% + 2 * var(--community-city-gutter));
  max-width:none;
  margin-inline:calc(-1 * var(--community-city-gutter));
  overscroll-behavior-inline:contain;
}
.community-city-experiment :is(.home-picks-grid, [data-horizontal-rail]):not(.home-flow-visual) {
  padding-inline:var(--community-city-gutter);
  scroll-padding-inline:var(--community-city-gutter);
}
.community-city-experiment .home-pick-card:nth-child(n + 4) { display:grid; }
.community-city-experiment .home-flow-visual { border-radius:0; }
.community-city-hero {
  position:relative; isolation:isolate; display:grid; align-items:end; overflow:hidden;
  grid-template-rows:1fr auto;
  box-sizing:border-box; min-height:66.667svh;
  margin-inline:calc(-1 * var(--community-city-gutter));
  padding:0 var(--community-city-gutter) 16px;
  background:#171421; color:white;
}
.community-city-hero .home-night-hero-copy {
  position:relative; z-index:1; width:auto; max-width:none; gap:14px; padding:16px 0 24px; color:white;
}
.community-city-hero:not([data-home-hero-count="1"]) { padding-bottom:52px; }
.community-city-hero h1 { margin:0; font-size:clamp(42px,12vw,54px); font-weight:900; line-height:.92; letter-spacing:-.075em; color:white; text-shadow:0 2px 12px rgba(12,8,20,.65); }
.community-city-hero h1 em {
  color:#e5d7ff;
  font-style:normal;
  -webkit-text-fill-color:currentColor;
}
.community-city-hero .home-night-hero-copy > p { max-width:300px; margin:0; font-size:14px; font-weight:650; line-height:1.35; color:#f5f2fb; }
.community-city-hero .home-hero-carousel-controls { bottom:4px; }
.community-city-hero .home-hero-visual {
  background:linear-gradient(0deg,rgba(12,8,20,.92),rgba(12,8,20,.49) 35%,rgba(12,8,20,.08) 65%,transparent 82%),
    var(--home-hero-display-image, var(--home-hero-desktop-image)) center / cover no-repeat, #171421;
}

.community-city-hero > .home-live-now {
  position:relative; z-index:1; justify-self:start;
  box-sizing:border-box; width:min(100%, 270px); min-width:0;
  padding:10px 12px; gap:8px; border-radius:14px;
}
.community-city-hero .home-live-metrics { gap:12px; }
.community-city-hero .home-live-metrics :is(strong,b) { font-size:25px; }
.community-city-hero .home-live-metrics em { font-size:11px; }
.community-city-hero > .home-live-now > a { min-height:max(44px,var(--oonite-control-height,44px)); font-size:var(--oonite-control-font-size,14px); }
.community-city-experiment .home-pick-copy :is(strong, em) {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.community-city-hero .home-hero-campaign-kicker {
  display:block; margin:0 0 8px; color:#efdaff; font-size:11px; letter-spacing:.16em;
}

.community-city-hero:has(> .home-live-now) {
  overflow:visible;
  padding-bottom:0;
  margin-bottom:calc(var(--city-live-half-height, 82px) + 34px);
}
.community-city-hero > .home-live-now {
  justify-self:center;
  width:min(100%, 440px);
  transform:translateY(50%);
  padding:20px;
  gap:14px;
  border:1px solid rgba(225,215,255,.23);
  background:rgba(32,26,48,.77);
  -webkit-backdrop-filter:blur(22px) saturate(140%);
  backdrop-filter:blur(22px) saturate(140%);
}
body.day-mode .community-city-hero > .home-live-now {
  background:rgba(250,248,254,.76);
}
.community-city-hero:has(> .home-live-now) .home-hero-carousel-controls {
  bottom:calc(var(--city-live-half-height, 82px) + 4px);
}
.community-city-hero:has(> .home-live-now) .home-night-hero-copy {
  /* The card moves down by half its height without moving its grid row. */
  inset-block-start:var(--city-live-half-height, 82px);
}
.community-city-hero:has(> .home-live-now)[data-home-hero-count="1"] .home-night-hero-copy {
  padding-bottom:12px;
}
.community-city-hero:has(> .home-live-now):not([data-home-hero-count="1"]) .home-night-hero-copy {
  padding-bottom:46px;
}


@media (min-width:720px) {
  .community-city-experiment .community-city-hero { min-height:460px; border-radius:28px; padding-inline:32px; }
  .community-city-experiment .community-city-hero .home-night-hero-copy { max-width:660px; }
  .community-city-experiment .community-city-hero h1 { font-size:clamp(46px,5vw,72px); }
  .community-city-experiment .community-city-hero > .home-live-now { width:min(100%,560px); }
  .community-city-experiment .home-latest-moments-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
}
@media (max-width:719px) {
  .community-city-experiment { --community-city-gutter:20px; }
  .community-city-experiment .community-city-hero { inline-size:100vw; min-height:350px; aspect-ratio:1; }
  .community-city-experiment .home-picks-grid {
    /* Keep both ratios aligned and preserve the 240px phone height limit. */
    grid-template-columns:min(80%, 320px);
    grid-auto-columns:min(45%, 180px);
    grid-auto-rows:auto;
  }
  .community-city-experiment .home-pick-card {
    height:auto;
    aspect-ratio:3 / 4;
  }
  .community-city-experiment .home-pick-card.is-featured { aspect-ratio:4 / 3; }
  .community-city-experiment .home-pick-copy {
    min-width:0;
    gap:4px;
    padding:12px;
  }
  .community-city-experiment .home-pick-card:not(.is-featured) .home-pick-copy strong {
    font-size:clamp(16px, 4vw, 22px);
  }
  .community-city-experiment .home-pick-copy strong,
  .community-city-experiment .home-pick-copy time,
  .community-city-experiment .home-pick-copy em {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    overflow-wrap:anywhere;
  }
  .community-city-experiment .home-pick-copy > span {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
@media (max-width:359px) {
  .community-city-experiment .home-pick-copy em { -webkit-line-clamp:1; }
}

.community-city-experiment .community-city-hero .home-hero-visual { background-image:linear-gradient(0deg,rgba(12,8,20,.88),rgba(12,8,20,.12) 70%),var(--home-hero-display-image, var(--home-hero-desktop-image)); background-position:center; background-size:cover; }
body.day-mode .community-city-experiment .community-city-hero h1 { color:white; text-shadow:0 2px 12px rgba(12,8,20,.35); }
body.day-mode .community-city-experiment .community-city-hero h1 em { color:#e5d7ff; }
body.day-mode .community-city-experiment .community-city-hero .home-night-hero-copy > p { color:#f5f2fb; }
@media (max-width:719px) {
 body.my-night-route .my-night-route-page:has(.community-city-experiment) [data-night-tab-panel="city"] { padding:0 16px; }
 .community-city-experiment { --community-city-gutter:16px; }
 .community-city-experiment .community-city-hero h1 { font-size:clamp(38px,10vw,48px); }
}
/* Override the shared semantic-section frame only inside the Bangkok surface. */
#app .my-night-route-page .community-city-experiment { width:100%; max-width:none; padding:0; margin:0; }
#app .my-night-route-page .community-city-hero { max-width:none; padding:0 var(--community-city-gutter) 0; margin-inline:calc(-1 * var(--community-city-gutter)); }
@media (max-width:719px) {
 #app .my-night-route-page [data-night-tab-panel="city"]:has(.community-city-experiment) { padding:0; }
}
@media (min-width:720px) {
 #app .app-shell .my-night-route-page .community-city-experiment :is(.home-section,.home-night-map,.home-picks-grid,.home-flow-visual,[data-community-city-guides]) { box-sizing:border-box; width:100%; max-width:none; margin-inline:0; padding-inline:0; }
}
#app .community-city-experiment .night-tonight-empty { padding-block:22px; }
#app .community-city-experiment .city-module-empty-note { margin:8px 0 0; color:var(--muted,#979797); font-size:13px; line-height:1.5; }

/* Bangkok wide Hero reuses Explore's frame, inner grid and content spacing. */
@media (min-width:720px) {
 #app .my-night-route-page .community-city-experiment > .home-night-hero { box-sizing:border-box; width:100%; max-width:none; left:auto; transform:none; margin:0; padding-inline:0; }
 #app .my-night-route-page .community-city-experiment .home-section { margin-block:0; padding-top:clamp(40px,4vw,54px); }
}
#app .community-city-experiment .night-tonight-empty .nearby-live-loading,
#app .community-city-experiment .night-tonight-picks .nearby-live-loading { min-height:44px; }
#app .my-night-route-page .community-city-experiment [data-community-city-modules] .night-tonight-section { box-sizing:border-box; width:100%; max-width:none; margin-inline:0; padding-inline:0; }

/* Editorial placements keep the existing four-card composition, filling only
   the configured slots; phone keeps the existing edge-to-edge scrolling rail. */
[data-featured-grid] { grid-template-columns:minmax(0,16fr) repeat(var(--featured-secondary-count,3),minmax(0,9fr)); }
[data-featured-grid] .home-pick-card:nth-child(n) { display:grid; }

/* Editorial links remain recognizable and long addresses wrap inside the reading rail. */
.article-rich-body a[href]{color:#684cff;text-decoration:underline;text-underline-offset:.16em;overflow-wrap:anywhere}
body.night-mode .article-rich-body a[href]{color:#b49bff}

/* Homepage Moments owns theme tokens even outside the account/My Night routes. */
body.day-mode .home-latest-moments-grid {
  --moment-loading-low:#e5e3e9;
  --moment-loading-high:#efedf2;
}
body.night-mode .home-latest-moments-grid {
  --moment-loading-low:#18181c;
  --moment-loading-high:#222228;
}

/* On the homepage, rounding belongs to the cover rather than the copy. */
#app .home-tonight-picks .home-pick-card {
  overflow: visible;
}

#app .home-tonight-picks .home-pick-shade {
  border-radius: inherit;
}

:root:not([data-native-platform="ios"]) #app .home-tonight-picks .home-pick-card:not(.is-empty) {
  background-color: var(--oonite-media-placeholder, #e8e5ee);
}

:root:not([data-native-platform="ios"]) #app .home-tonight-picks .home-pick-card:not(.is-empty) .home-pick-shade {
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,7,.4) 65%, rgba(5,5,7,.88) 100%);
}

#app .home-tonight-picks .home-pick-placeholder {
  background:var(--oonite-media-placeholder, #1d1d1d);
}

#app .home-tonight-picks .home-pick-copy {
  border-radius: 0;
  overflow: visible;
}

@media (max-width: 719px) {
  body.mobile-content-layout #app .home-tonight-picks .home-pick-card:nth-child(n) {
    border-radius: 0;
  }
  body.mobile-content-layout #app .community-city-experiment .home-tonight-picks .home-pick-copy {
    min-block-size:114px;
    box-sizing:border-box;
  }
  #app .community-city-experiment > .community-city-hero:has(> .home-live-now) {
    --city-live-half-height:108px;
    --city-live-exposed-height:144px;
  }
  #app .community-city-experiment > .community-city-hero > .home-live-now {
    min-block-size:216px;
  }
}

@media (min-width:720px) and (max-width:1279px) {
  #app .community-city-experiment.wide-home .wide-rail > .home-live-now {
    min-block-size:204px;
  }
}

/* The lead and the list have their own surfaces on wide screens. */
.home-city-guides{container-type:inline-size}
.home-guide-editorial{--guide-ink:#1d1d1f;--guide-muted:#6e6e73;--guide-surface:#fff;display:grid;gap:0;overflow:hidden;border-radius:22px;background:var(--guide-surface);color:var(--guide-ink)}
body.night-mode .home-guide-editorial{--guide-ink:#f5f4f8;--guide-muted:#aaa7b4;--guide-surface:#1c1a23}
.home-guide-editorial .home-guide-feature,.home-guide-editorial .home-guide-recommendations a{color:var(--guide-ink);text-decoration:none;min-width:0;overflow-wrap:anywhere}
.home-guide-feature{display:grid;align-self:start;gap:0;max-width:none;line-height:1.3}
.home-guide-feature-image{display:block;aspect-ratio:16/9;background:var(--oonite-media-placeholder,#efedf2)}
.home-guide-feature-image > img,.home-guide-thumb > img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%}
.home-guide-feature-copy{display:grid;gap:6px;padding:16px 18px}
.home-guide-feature-copy>strong{font-size:clamp(20px,1.6vw,25px);line-height:1.3}
.home-guide-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--guide-muted);font-size:12px;line-height:1.45;font-weight:400}
.home-guide-date{display:block;color:var(--guide-muted);font-size:11px;line-height:1.4;font-weight:400}
.home-guide-recommendations{list-style:none;padding:2px 0 10px;margin:0;min-width:0}
.home-guide-recommendations a{display:flex;align-items:center;gap:13px;min-height:88px;padding:10px 16px;box-sizing:border-box;background:transparent;border:0}
.home-guide-thumb{display:block;width:80px;aspect-ratio:4/3;flex:0 0 80px;overflow:hidden;border-radius:8px;background:var(--oonite-media-placeholder,#efedf2)}
.home-guide-row-copy > strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-guide-row-copy{display:grid;gap:5px;flex:1;min-width:0}
.home-guide-row-copy>strong{font-size:15px;line-height:1.3;font-weight:700}
.home-guide-recommendations a>svg{flex:0 0 14px;width:14px;color:var(--guide-muted)}
.home-guide-recommendations a:is(:hover,:focus-visible){background:var(--oonite-pill-surface,rgba(120,112,140,.08))}
.home-city-guides .home-more-link{display:inline-flex;align-items:center;gap:4px}
@container (min-width:560px) {
  .home-guide-editorial { gap:12px; overflow:visible; background:transparent; }
  .home-guide-feature,.home-guide-recommendations { border-radius:16px; overflow:hidden; background:var(--guide-surface); }
  .home-guide-recommendations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:4px; }
  .home-guide-recommendations a { min-height:80px; padding:10px; gap:10px; border-radius:12px; }
}
@container (min-width:950px) {
  .home-guide-editorial:has(.home-guide-recommendations) { grid-template-columns:minmax(0,2fr) minmax(0,3fr); align-items:start; }
}

/* Home recommendations keep one photo and a scan-friendly venue list. */
.home-late-desktop-image { display:none; }

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  grid-auto-flow: row;
  align-items: start;
  gap: 0 !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick {
  grid-column: 1 !important;
  grid-row: auto !important;
  min-height: 0 !important;
  height: auto !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:first-child {
  display: block !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:first-child .night-tonight-pick-image {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 156px;
  aspect-ratio: 16 / 10 !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:not(:first-child) {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  box-sizing: border-box;
  padding: 6px 0;
  border: 0;
  border-bottom:0;
  border-radius: 0 !important;
  background: none;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:not(:first-child) .night-tonight-pick-image {
  display: block !important;
  position: static !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 0 !important;
  aspect-ratio: 1 !important;
  border-radius: 7px;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks .night-tonight-pick-copy {
  display: flex !important;
  position: static !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 12px 12px !important;
  color: var(--account-text) !important;
  background: none !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:not(:first-child) .night-tonight-pick-copy {
  padding: 0 8px 0 0 !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks .night-tonight-pick-copy strong {
  order: -1;
  font-size: 14px !important;
  white-space: normal;
  overflow-wrap: anywhere;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks .night-tonight-pick-copy small {
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--account-muted) !important;
}

body #app .community-city-experiment .night-tonight-module-picks .home-late-picks .night-tonight-pick-copy > em {
  display: none;
}

@media (min-width: 720px) {
  body #app .community-city-experiment .night-tonight-module-picks .home-late-picks:has(> :nth-child(2)) {
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) !important;
    column-gap: clamp(14px, 2vw, 24px) !important;
  }

  body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:first-child {
    grid-row: 1 / span 4 !important;
    width:100%;
    max-width:none;
  }

  body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:first-child .night-tonight-pick-image {
    aspect-ratio:16 / 9 !important;
    max-height:none;
  }

  body #app .community-city-experiment .night-tonight-module-picks .home-late-picks > .night-tonight-pick:not(:first-child) {
    grid-column: 2 !important;
  }
}

/* The poster category remains readable on both light logos and photography. */
#app .home-pick-type .event-category-badge{background:rgba(28,24,35,.93);color:#fff;border:0}
#app .home-live-now>a{border:0;box-shadow:none;color:var(--oonite-accent,#684cff)}
#app .home-live-now>a>svg{flex:none;width:20px;height:20px;color:inherit}
body.night-mode #app .home-live-now>a{color:#c9bdff}

.home-calendar-list a>span:has(>strong){min-width:0}
.home-calendar-list a>span>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:normal;font-size:13px;line-height:1.25}

#app .community-city-hero > .home-live-now { border:0; box-shadow:none; }
@media(max-width:719px) {
  #app .my-night-route-page .community-city-experiment .home-section,
  #app .my-night-route-page .community-city-experiment .night-tonight-section {
    padding-block-start:28px;
  }
}

#app .home-room-authors:not([hidden]) {
  display:grid;
  gap:2px;
  align-content:center;
  text-align:end;
  min-width:0;
  max-width:42%;
  position:absolute;
  inset-inline-end:12px;
  inset-block-end:10px;
}
#app .home-room-authors>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
#app .home-room-author-label { color:var(--muted,#979797); }
#app .night-tonight-pick:has(.home-room-authors:not([hidden])) .night-tonight-pick-copy {
  position:relative;
  padding-inline-end:44%;
}

@media (max-width:719px) {
  .community-city-experiment .community-city-hero .home-hero-visual {
    background-position:center, var(--city-cover-position, center);
  }
  [data-web-city-cover] [data-home-hero-visual] {
    --home-hero-display-image: var(--home-hero-mobile-image);
  }
}

@media (max-width:719px) {
  .community-city-hero:has(> .home-live-now) {
    margin-bottom:calc(var(--city-live-exposed-height,108px) + 28px);
  }
  .community-city-hero > .home-live-now {
    transform:translateY(66.667%);
  }
  .community-city-hero:has(> .home-live-now) .home-night-hero-copy {
    inset-block-start:var(--city-live-exposed-height,108px);
  }
  .community-city-hero:has(> .home-live-now) .home-hero-carousel-controls {
    bottom:calc(var(--city-live-exposed-height,108px) + 4px);
  }
  .home-moments-page .home-moment-card:not([data-moments-feed-placeholder]) { align-self:start; }
  .home-moments-page .home-moment-card:not([data-moments-feed-placeholder]) .moment-profile-copy strong { min-height:0; }
}


/* Keep regional editorial updates next to Guides on the city content rail. */
#app .home-city-updates {
  margin-block:24px;
  padding-block:0;
}
.home-city-updates > h2 {
  margin:0 0 10px;
  font-size:18px;
}
.home-city-updates > div {
  display:grid;
  gap:8px;
}
.city-update-card {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:64px;
  padding:8px 12px;
  border-radius:14px;
  background:var(--home-card, #17171c);
  color:inherit;
  text-decoration:none;
}
body.day-mode .city-update-card { background:#fff; }
.city-update-card img {
  flex:0 0 56px;
  width:56px;
  height:56px;
  border-radius:8px;
  object-fit:cover;
}
.city-update-card strong {
  display:-webkit-box;
  overflow:hidden;
  font-size:14px;
  line-height:1.35;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.city-update-card time {
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}

.home-latest-moments-grid .moment-profile-cover:has(> .moment-feed-photo) {
  animation: none;
}
.home-latest-moments-grid .moment-feed-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* City-module navigation is separate from actions inside the cards. */
:root:not([data-native-platform="ios"]) body #app .community-city-experiment:not([data-community-city-id])
header:has(> :is(.section-more-link,[data-city-area-map])) {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto;
  align-items:start!important;
  justify-items:start;
  gap:4px 12px;
}
:root:not([data-native-platform="ios"]) body #app .community-city-experiment:not([data-community-city-id])
header
> :is(.section-more-link,[data-city-area-map]) {
  display:inline-flex!important;
  min-width:44px;
  min-height:44px!important;
  max-inline-size:none;
  align-items:flex-start!important;
  justify-self:end;
  justify-content:flex-end!important;
  gap:3px;
  margin:0!important;
  padding:3px 0 0!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.4!important;
  letter-spacing:normal;
  text-align:end;
  white-space:nowrap;
}
:root:not([data-native-platform="ios"]) body #app .community-city-experiment:not([data-community-city-id])
header
> :is(.section-more-link,[data-city-area-map]) > svg {
  flex:0 0 15px;
  width:15px;
  height:15px;
}
:root:not([data-native-platform="ios"]) #app .community-city-experiment:not([data-community-city-id]) .home-city-editorial-updates {
  container-type:inline-size;
}
:root:not([data-native-platform="ios"]) body #app .community-city-experiment:not([data-community-city-id])
:is(.home-city-guides,.home-city-editorial-updates) > header.home-section-head {
  min-block-size:44px;
  margin-block-end:14px!important;
}
:root:not([data-native-platform="ios"]) #app .community-city-experiment:not([data-community-city-id])
:is(.home-city-guides,.home-city-editorial-updates) :is(.home-guide-feature-copy,.home-guide-row-copy) {
  min-inline-size:0;
  grid-template-columns:minmax(0,1fr);
}
:root:not([data-native-platform="ios"]) #app .community-city-experiment:not([data-community-city-id])
:is(.home-city-guides,.home-city-editorial-updates) .home-guide-date {
  display:block;
  min-inline-size:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
:root:not([data-native-platform="ios"]) #app .community-city-experiment:not([data-community-city-id])
:is(.home-city-guides,.home-city-editorial-updates) :is(.home-guide-feature-copy > strong,.home-guide-row-copy > strong) {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-inline-size:0;
  overflow:hidden;
  overflow-wrap:anywhere;
  white-space:normal;
}
:root:not([data-native-platform="ios"]) #app .community-city-experiment:not([data-community-city-id])
:is(.home-city-guides,.home-city-editorial-updates) .home-guide-feature-copy > strong {
  font-size:17px;
}
:root:not([data-native-platform="ios"]) #app .community-city-experiment:not([data-community-city-id])
:is(.home-city-guides,.home-city-editorial-updates) .home-guide-description {
  display:none;
}

@media (max-width:719px) {
  #app .community-city-experiment:not([data-community-city-id])
  :is(.home-calendar-panel header h2,.home-calendar-list > a > span > strong,.home-event-labels > *) {
    display:block;
    min-inline-size:0;
    max-inline-size:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  #app .community-city-experiment:not([data-community-city-id]) .home-calendar-panel header > div {
    min-inline-size:0;
  }
  #app .community-city-experiment:not([data-community-city-id]) .home-calendar-list > a > .home-event-labels {
    max-inline-size:88px;
  }
}

/* Web article archive. Each publication day is one card. */
.articles-page > .article-timeline { width:100%; }
.article-timeline > .article-list-filters { margin:0 0 22px; }
.article-timeline .timeline-intro { display:grid;gap:20px;margin:0 0 26px; }
.article-timeline .timeline-feature,
.article-timeline .timeline-latest,
.article-timeline .timeline-day {
  min-width:0;border:1px solid var(--article-list-divider);border-radius:16px;
  background:var(--article-list-surface);overflow:hidden;
}
.article-timeline .timeline-feature a { display:flex;flex-direction:column;height:100%;color:var(--article-list-ink); }
.article-timeline .timeline-feature .timeline-feature-cover { aspect-ratio:2.65;border-radius:0; }
.article-timeline .timeline-feature-copy { display:grid;align-content:center;gap:6px;padding:15px 18px;color:var(--article-list-ink); }
.article-timeline .timeline-feature-copy > small { color:var(--article-list-accent);font-weight:670; }
.article-timeline .timeline-feature-copy > strong { color:var(--article-list-ink);font-size:clamp(19px,2.7vw,27px);line-height:1.3; }
.article-timeline .timeline-feature-copy > span { color:var(--article-list-muted); }
.article-timeline .timeline-latest { padding:16px 18px 8px; }
.article-timeline .timeline-latest h2 { margin:0 0 6px;font-size:17px;color:var(--article-list-ink); }
.article-timeline .timeline-latest .timeline-day-items { padding:0; }
.article-timeline .timeline-latest .timeline-entry { grid-template-columns:60px minmax(0,1fr) 14px;min-height:67px; }
.article-timeline .timeline-section { display:block;margin:0; }
.article-timeline .timeline-section > header { display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px; }
.article-timeline .timeline-section h2 { margin:0;font-size:20px;color:var(--article-list-ink); }
.article-timeline .timeline-section > header span { color:var(--article-list-muted);font-size:13px; }
.article-timeline .timeline-days { display:grid;list-style:none;grid-template-columns:minmax(0,1fr);gap:14px;padding:0;margin:0; }
.article-timeline .timeline-day-lead { display:block;padding:0;color:var(--article-list-ink); }
.article-timeline .timeline-day-cover { aspect-ratio:2.35;border-radius:0; }
.article-timeline .timeline-day-copy { display:grid;gap:5px;padding:10px 12px 12px; }
.article-timeline .timeline-day-copy h3 { margin:0;font-size:16px;line-height:1.35;color:var(--article-list-ink); }
.article-timeline .timeline-date { display:flex;justify-content:space-between;gap:8px;font-size:12px; }
.article-timeline .timeline-date time,.article-timeline .timeline-date small,.article-timeline .timeline-date span { color:var(--article-list-muted); }
.article-timeline .timeline-date small { font-size:inherit;white-space:nowrap; }
.article-timeline .timeline-day-items { list-style:none;margin:0;padding:0 11px; }
.article-timeline .timeline-day-lead + .timeline-day-items { border-top:1px solid var(--article-list-divider); }
.article-timeline .timeline-day-items li + li { border-top:1px solid var(--article-list-divider); }
.article-timeline .timeline-entry { display:grid;align-items:center;grid-template-columns:55px minmax(0,1fr) 14px;gap:9px;min-height:64px;padding:6px 0; }
.article-timeline .timeline-entry .article-list-image { aspect-ratio:4/3;border-radius:7px; }
.article-timeline .timeline-entry-copy { display:grid;gap:3px;min-width:0; }
.article-timeline .timeline-entry-copy small { color:var(--article-list-accent);font-size:11px; }
.article-timeline .timeline-entry-copy strong { color:var(--article-list-ink);font-size:13px;line-height:1.35; }
.article-timeline .timeline-entry svg { color:var(--article-list-accent); }
.article-timeline .timeline-entry:hover strong,.article-timeline .timeline-day-lead:hover h3 { color:var(--article-list-accent); }
.article-timeline :is(.timeline-day-copy h3,.timeline-entry-copy strong) {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;
}
.article-timeline .article-list-image.is-fallback img { object-fit:contain;padding:12%; }
@media(min-width:720px){
  .articles-page > .article-timeline { margin-inline:0;padding-inline:0; }
}
@media(min-width:761px){
  .article-timeline .timeline-days { grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:15px; }
  .article-timeline .timeline-days.is-packed { grid-auto-rows:1px;row-gap:0;grid-auto-flow:dense; }
  .article-timeline .timeline-day-cover { aspect-ratio:1.97; }
  .article-timeline .timeline-day-copy h3 { font-size:14px; }
  .article-timeline .timeline-entry { grid-template-columns:45px minmax(0,1fr) 12px; }
}
@media(min-width:960px){
  .article-timeline .timeline-intro:has(.timeline-latest) { grid-template-columns:minmax(0,1.39fr) minmax(0,1fr); }
  .article-timeline .timeline-feature .timeline-feature-cover { max-height:260px; }
  .article-timeline .timeline-days { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(min-width:1200px){
  .article-timeline .article-list-heading > h1 { font-size:30px; }
  .article-timeline .timeline-intro { margin-block-end:24px; }
  .article-timeline .timeline-feature a {
    display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);min-height:204px;
  }
  .article-timeline .timeline-feature .timeline-feature-cover {
    position:relative;align-self:stretch;height:auto;max-height:none;aspect-ratio:auto;
  }
  .article-timeline .timeline-feature-copy { padding:18px 20px; }
  .article-timeline .timeline-feature-copy > strong { font-size:clamp(20px,1.6vw,26px); }
  .article-timeline .timeline-latest { padding:12px 16px 6px; }
  .article-timeline .timeline-latest h2 { margin-block-end:4px; }
  .article-timeline .timeline-latest .timeline-entry {
    grid-template-columns:44px minmax(0,1fr) 14px;min-height:44px;padding-block:5px;
  }
  .article-timeline .timeline-days { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .article-timeline .timeline-day-cover { position:relative;width:100%;aspect-ratio:2.5;max-height:152px; }
  .article-timeline :is(.timeline-feature-cover,.timeline-day-cover) > img {
    position:absolute;inset:0;width:100%;height:100%;object-position:center 48%;
  }
}
@media(min-width:1536px){
  .article-timeline .timeline-days { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .article-timeline .timeline-days:has(> :nth-child(4):last-child) { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
