/* look.js: the front page in the style of Cafe Lineup — white and light, a sticky bar on top,
   a light hero with a big search box, tiles, and a tab bar on phones. StudioLineup's own colors:
   teal (yoga), coral (Pilates) and violet (both). Headings in Bricolage Grotesque, text in Figtree. */
/* The fonts (Bricolage Grotesque, Figtree) are added by look.js without holding up the page. */

:root {
  --ground: #ffffff; --panel: #ffffff; --ink: #23204a; --muted: #5f5b80; --line: #e4e7f0; --chip: #f2f4f9;
  --surface: #f4f6fa; --sky: #e2f5f1; --act: #2fd3bf; --act-deep: #17b5a2; --act-soft: #dcf7f2; --act-ink: #10213a;
  --head: "Bricolage Grotesque", Figtree, system-ui, sans-serif; --body: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --lift: 0 1px 2px rgba(35, 32, 74, .06), 0 8px 24px rgba(35, 32, 74, .08); --float: 0 10px 30px rgba(35, 32, 74, .16);
  --shadow: var(--lift); --shadow-s: 0 1px 2px rgba(35, 32, 74, .06), 0 4px 12px rgba(35, 32, 74, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ground: #12152a; --panel: #1b1f3a; --ink: #f2f3ff; --muted: #aab0cc; --line: #2c3156; --chip: #232847;
    --surface: #171b33; --sky: #183a3a; --act: #3fe0c8; --act-deep: #22c3ad; --act-soft: #173a36; --act-ink: #0d1a2e;
    --lift: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); --float: 0 10px 30px rgba(0,0,0,.45); }
}
:root[data-theme="dark"] { --ground: #12152a; --panel: #1b1f3a; --ink: #f2f3ff; --muted: #aab0cc; --line: #2c3156; --chip: #232847;
  --surface: #171b33; --sky: #183a3a; --act: #3fe0c8; --act-deep: #22c3ad; --act-soft: #173a36; --act-ink: #0d1a2e;
  --lift: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); --float: 0 10px 30px rgba(0,0,0,.45); }

body { font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; background: var(--ground); }
h1, h2, h3, .sech h2, .wm, .stat b, .mcard h3 { font-family: var(--head); letter-spacing: -.02em; }
.sech h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- the bar on top */
.lk-top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.lk-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 62px; display: flex; align-items: center; gap: 12px; }
.lk-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.lk-brand svg { width: 38px; height: 38px; }
.lk-wm { font: 800 22px/1 var(--head); letter-spacing: -.03em; }
.lk-wm i { font-style: normal; color: var(--act-deep); } .lk-wm em { font-style: normal; color: #f25f5c; }
.lk-nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.lk-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.lk-nav a:hover { background: var(--surface); }
.lk-nav a[aria-current="page"] { background: var(--sky); }
.lk-acct { position: relative; display: flex; align-items: center; }
.lk-acct #ypm-acct { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.lk-acct #ypm-acct .abtn, .lk-acct #ypm-acct button { font: 700 14px/1.2 var(--body); border-radius: 999px; padding: 8px 14px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: none; }
.lk-acct #ypm-acct > button:last-of-type:not(.lg-sw) { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.lk-acct #ypm-acct .lg-sw { border-color: transparent; background: transparent; padding-inline: 8px; }
.lk-me { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 4px 12px 4px 4px; font: 700 14px var(--body); cursor: pointer; }
.lk-av { width: 32px; height: 32px; border-radius: 50%; background: var(--act); color: var(--act-ink); display: grid; place-items: center; font: 800 13px var(--body); }
.lk-mn { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* signed in: the account buttons become a menu under the name */
/* (closed, only the language switch stays in the bar, before the name) */
.lk-top.in:not(.open) #ypm-acct { order: -1; margin-right: 6px; }
.lk-top.in:not(.open) #ypm-acct > :not(.lg-sw) { display: none !important; }
.lk-top.in.open #ypm-acct { display: flex; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 2px;
  min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--float); z-index: 70; }
.lk-top.in #ypm-acct .who { display: none; }
.lk-top.in.open #ypm-acct button, .lk-top.in.open #ypm-acct > button:last-of-type:not(.lg-sw) { text-align: left; border: 0; background: transparent; color: var(--ink); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.lk-top.in.open #ypm-acct button:hover { background: var(--surface); }
.lk-top.in #ypm-acct #ypm-out { color: #c42b31; }

/* ---------------------------------------------------------------- the hero */
html.lk .wrap { padding-top: 0; }
.wrap > .hero.lk-hero { background: var(--sky) !important; background-image: none !important; color: var(--ink); border-radius: 0 0 40px 40px; box-shadow: none;
  margin: 0 calc(50% - 50vw); padding: 34px max(16px, calc(50vw - 574px)) 36px; overflow: visible; border: 0; }
html.lk { overflow-x: hidden; }
.lk-hero > :not(.lk-hgrid):not(.lk-search):not(.lk-try):not(header) { display: none; }
.lk-hgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: stretch; }
.lk-hcopy { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.lk-eye { margin: 0 0 6px; font: 700 15px var(--body); color: var(--muted); }
.wrap > .hero.lk-hero .lk-h1 { font: 800 clamp(38px, 5.4vw, 64px)/1 var(--head); letter-spacing: -.04em; margin: 0 0 14px; color: var(--ink); }
.lk-lead { margin: 0 0 18px; font-size: 17px; color: var(--muted); max-width: 46ch; }
.lk-stats .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.lk-stats .stat { align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: none; }
.lk-stats .stat:nth-child(3) { display: none; }
.lk-stats .stat b { font: 800 26px/1.1 var(--head); color: var(--ink); }
.lk-stats .stat:first-child b { color: var(--act-deep); }
.lk-stats .stat span { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.lk-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink); }
.lk-why li { display: flex; gap: 10px; align-items: baseline; }
.lk-why b { font-weight: 800; }
.lk-hmap { min-width: 0; display: flex; flex-direction: column; }
.lk-hmap .mapsec { flex: 1; height: auto; min-height: 420px; margin: 0; border-radius: 24px; border: 0; box-shadow: var(--lift); }
.lk-hmap .gnote { margin: 8px 4px 0; font-size: 12.5px; color: var(--muted); }

.lk-search { display: flex; align-items: center; gap: 6px; background: var(--panel); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--float);
  max-width: 760px; margin: 26px 0 0; border: 2px solid transparent; }
.lk-search:focus-within { border-color: var(--focus); }
.lk-search > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.lk-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px var(--body); color: var(--ink); height: 48px; outline: none; }
.lk-st .stpick { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; background: var(--surface); border-radius: 999px; box-shadow: none; border: 0; }
.lk-st .stpick > span { display: none; }
.lk-st .stpick select { border: 0; background-color: transparent; color: var(--ink); font: 600 14px var(--body); height: 44px; padding: 0 30px 0 14px; border-radius: 999px; max-width: 170px; box-shadow: none; }
.lk-go { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--act); color: var(--act-ink); font: 800 16px var(--body);
  box-shadow: inset 0 -2px 0 var(--act-deep); cursor: pointer; }
.lk-go:hover { background: var(--act-deep); }
.lk-try { margin: 12px 0 0 6px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lk-t { border: 0; background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: 600 13.5px var(--body); cursor: pointer; }
.lk-t:hover { background: var(--panel); }

/* ---------------------------------------------------------------- tiles */
.lk-moods, .lk-areas { margin-top: 30px; }
.lk-rh { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.lk-rh h2 { font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--head); margin: 0; }
.lk-all { font-weight: 700; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; white-space: nowrap; }
.lk-all:hover { background: var(--surface); }
.lk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.lk-mood { display: grid; justify-items: center; gap: 2px; padding: 12px 8px 10px; border: 2px solid transparent; border-radius: 22px; background: var(--surface);
  cursor: pointer; color: var(--ink); font: inherit; text-align: center; transition: transform .15s; }
.lk-mood:hover { background: var(--act-soft); transform: translateY(-2px); }
.lk-mood[aria-pressed="true"] { background: var(--act-soft); border-color: var(--act-deep); }
.lk-mood .e { font-size: 24px; line-height: 1.1; margin-bottom: 2px; }
.lk-mood b { font-size: 14px; line-height: 1.2; }
.lk-mood .n { font-size: 12.5px; color: var(--muted); }
.lk-areas #metro { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0 !important; background: none; border: 0; box-shadow: none; overflow: visible; }
.lk-areas #metro button { display: flex; align-items: flex-end; min-height: 88px; text-align: left; border: 2px solid transparent; border-radius: 22px; padding: 16px; cursor: pointer;
  font: 700 17px/1.15 var(--head); color: #23204a; box-shadow: none; transition: transform .15s; }
.lk-areas #metro button:nth-child(6n+1) { background: #c9f2ea; } .lk-areas #metro button:nth-child(6n+2) { background: #ffd9d6; }
.lk-areas #metro button:nth-child(6n+3) { background: #e3d9ff; } .lk-areas #metro button:nth-child(6n+4) { background: #ffe9b0; }
.lk-areas #metro button:nth-child(6n+5) { background: #cfe6ff; } .lk-areas #metro button:nth-child(6n+6) { background: #ffd6ea; }
.lk-areas #metro button:hover { transform: translateY(-2px); filter: brightness(1.03); }
.lk-areas #metro button[aria-pressed="true"] { border-color: #23204a; }
.lk-oldnav { display: none !important; }
html.lk #mapTop { border-radius: 24px; }
html.lk #calTop { margin-top: 34px; }

/* ---------------------------------------------------------------- the rest of the page, lighter */
html.lk .btn { border-radius: 999px; font-family: var(--body); font-weight: 700; }
html.lk .btn.pri { background: var(--act); border-color: var(--act); color: var(--act-ink); box-shadow: inset 0 -2px 0 var(--act-deep); }
html.lk .btn.pri:hover { background: var(--act-deep); border-color: var(--act-deep); }
html.lk .chip { font-family: var(--body); }
html.lk .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
html.lk .filters, html.lk .x-card, html.lk #list, html.lk .dgrp, html.lk .studio-card { border-radius: 22px; }
html.lk #days .day[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
html.lk #days .day[aria-pressed="true"] span { color: color-mix(in srgb, var(--ground) 80%, transparent); }
html.lk .seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
html.lk .sech h2::after { display: none; }
html.lk #x-soonbox .x-card { background: var(--surface); border: 0; box-shadow: none; }
html.lk #x-soonbox .x-card:hover { background: var(--act-soft); }

/* ---------------------------------------------------------------- phones: the tab bar */
.lk-tabs { display: none; }
@media (max-width: 999px) {
  .lk-hgrid { grid-template-columns: minmax(0, 1fr); }
  .lk-hmap { display: none; }
  html.lk #mapTop { margin-top: 24px; }
}
@media (max-width: 880px) {
  .lk-nav { display: none; }
  .lk-acct { margin-left: auto; }
  /* phones, signed out: just "Sign in" (dark) and the language switch; the rest is in the tab bar and menus */
  .lk-top:not(.in) #ypm-acct > :not(#ypm-in):not(.lg-sw) { display: none !important; }
  .lk-top:not(.in) #ypm-acct #ypm-in { background: var(--ink); border-color: var(--ink); color: var(--ground); }
  .lk-acct #ypm-acct .lg-sw { padding-inline: 6px; }
  .lk-mn { display: none; }
  .lk-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--panel); border-top: 1px solid var(--line); }
  .lk-tabs a { flex: 1; display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; }
  .lk-tabs svg { width: 24px; height: 24px; }
  .lk-tabs a[aria-current="page"] { color: var(--ink); }
  .lk-tabs a[aria-current="page"] svg { background: var(--act); color: var(--act-ink); border-radius: 999px; padding: 2px 14px; width: 52px; box-sizing: content-box; height: 22px; }
  html.lk body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  html.lk .as-btn { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  html.lk .as-box { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 210px); }
  .wrap > .hero.lk-hero { border-radius: 0 0 28px 28px; padding: 20px 16px 24px; }
  .lk-lead { font-size: 16px; }
  .lk-stats .stat { padding: 8px 10px; }
  .lk-stats .stat b { font-size: 20px; }
  .lk-search { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 8px 16px; }
  .lk-search input { flex: 1 1 calc(100% - 40px); }
  .lk-st { flex: 1 1 120px; min-width: 0; display: flex; }
  .lk-st .stpick { flex: 1; min-width: 0; width: auto; }
  .lk-st .stpick { overflow: hidden; }
  .lk-st .stpick select { width: 100%; min-width: 0; max-width: 100%; }
  .lk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lk-mood { padding: 12px 6px 10px; }
  .lk-areas #metro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-areas #metro button { min-height: 76px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .lk-mood, .lk-areas #metro button { transition: none; } }
@media print { .lk-top, .lk-tabs { display: none; } }
@media (max-width: 430px) {
  .lk-in { padding-inline: 12px; }
  .lk-brand { gap: 6px; } .lk-brand svg { width: 32px; height: 32px; }
  .lk-wm { font-size: 18px; }
  .lk-acct #ypm-acct { gap: 2px; }
  .lk-acct #ypm-acct .abtn, .lk-acct #ypm-acct button { font-size: 13px; padding: 7px 11px; }
  .lk-acct #ypm-acct .lg-sw { padding-inline: 4px; }
}
/* laptops: fewer words in the bar so the account buttons fit */
@media (max-width: 1560px) and (min-width: 881px) {
  .lk-top:not(.in) #ypm-acct #ypm-up { display: none; }
  .lk-nav a[href="#events"] { display: none; }
  .lk-nav a { padding-inline: 10px; }
}
@media (max-width: 1180px) and (min-width: 881px) {
  .lk-nav a[href="/for-studios.html"], .lk-nav a[href="/classes/"] { display: none; }
  .lk-acct #ypm-acct .abtn, .lk-acct #ypm-acct button { padding-inline: 11px; }
}
