/* Only content buttons; branch header rules are deliberately excluded. */
body[data-city] main .btn, body[data-city] .stick,
body[data-city] .lesson-nudge .btn {
  line-height: 1.2; align-items: center; justify-content: space-between;
  transform: none; transition: background-color .2s, color .2s;
}
body[data-city] main .btn:hover, body[data-city] main .btn:focus-visible,
body[data-city] .stick:hover, body[data-city] .lesson-nudge .btn:hover { transform: none; }
body[data-city] main .btn > span, body[data-city] .stick > span { display: block; line-height: 1.2; }
body[data-city] main .btn i, body[data-city] .stick i,
body[data-city] .lesson-nudge .btn i { flex: 0 0 auto; align-self: center; font-style: normal; }
body[data-city] main .btn svg, body[data-city] .stick svg { display: block; flex: none; }
body[data-city] main .card, body[data-city] main .card:hover { transform: none; }
body[data-city] main .card .ico, body[data-city] main .card:hover .ico { transform: none; }
body[data-city] main .card:not(.play) .ico * { animation: none !important; }
body[data-city] main .card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.lesson-nudge[hidden] { display: none !important; }
.lesson-nudge {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: min(360px, calc(100vw - 48px)); padding: 24px;
  background: var(--cream); color: var(--ink); border: 1px solid var(--bord);
  box-shadow: 0 8px 30px #1a1a1a20; border-radius:12px;
}
.lesson-nudge:not([hidden]) { animation:lesson-in .65s cubic-bezier(.22,.61,.36,1) both; }
@keyframes lesson-in {
 from { opacity:0; transform:translateY(16px); }
 to { opacity:1; transform:translateY(0); }
}
.lesson-nudge h2 { font-size: 26px; line-height: 1.2; margin: 0 28px 12px 0; }
.lesson-nudge p { font-size: 16px; line-height: 1.4; margin-bottom: 18px; }
.lesson-nudge-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  border: 0; background: none; color: var(--ink); font: inherit; font-size: 28px;
  display: grid; place-items: center; line-height: 1;
}
.lesson-nudge .btn { font-size: 15px; padding: 6px 6px 6px 20px; gap: 16px; }
.lesson-nudge .btn i { width: 36px; height: 36px; }
@media(max-width:680px) {
  .lesson-nudge { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); max-height: calc(100svh - 32px); overflow: auto; padding: 20px; }
  .lesson-nudge h2 { font-size: 24px; }
}
@media(prefers-reduced-motion:reduce) { .lesson-nudge, .lesson-nudge * { animation: none !important; transition: none !important; } }

/* Fixed lower inset and hover lift; text never participates in card sizing. */
body[data-city] main .card {
  display: grid; grid-template-rows: auto minmax(0, 1fr); align-items: start;
}
body[data-city] main .card > .ico {
  grid-row: 1; align-self: start; transform-origin: center; transform-box: fill-box;
  transition: transform .2s ease;
}
body[data-city] main .card > span:not(.bg-clip):not(.go) {
  min-width: 0; min-height: 0; width: auto;
  font-size: clamp(28px, 3vw, 46px);
  display: block;
  position: absolute; left: 24px; right: 24px; bottom: 32px;
  transform: none; transition: transform .2s ease;
}
body[data-city] main .card .name {
  display: block; position: relative; top: auto;
  font-family: var(--brand-font); font-weight: 400; text-transform: none;
  font-size: clamp(28px, 3vw, 46px); line-height: 1.08;
  height: auto; min-height: 0; max-width: 100%;
  padding: 0;
  transform: none; transition: none;
}
body[data-city] main .card .desc {
  box-sizing: border-box; display: block !important;
  position: absolute; top: 100%; left: 0; width: 100%; max-width: none;
  height: auto; min-height: 0; max-height: 61px;
  margin: 8px 0 0; padding: 0 60px 0 0; overflow: auto;
  font-family: Arial, "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: normal;
  color: #1a1a1a; background: transparent;
  opacity: 0; visibility: hidden;
  transition: opacity .2s;
}
body[data-city] main .card .desc-copy { display: block; min-height: 0; overflow: hidden; }
body[data-city] main .card:hover .desc,
body[data-city] main .card:focus-visible .desc {
  max-height: 61px; margin: 8px 0 0;
}
@media(hover:hover) and (pointer:fine) {
  body[data-city] main .card:hover > .ico { transform: scale(1.08); }
  body[data-city] main .card.vocal:hover > .ico { transform: none; }
  body[data-city] main .card:hover > span:not(.bg-clip):not(.go) {
    transform: translateY(-45px);
  }
  body[data-city] main .card:hover .desc {
    opacity: 1; visibility: visible;
  }
}
body[data-city] main .card .bg,
body[data-city] main .card:hover .bg,
body[data-city] main .card:focus-visible .bg {
  transform: translate(-50%, -50%); transition: none;
}
body[data-city] main .card::before,
body[data-city] main .card::after { transform: none; transition: none; }
body[data-city] main .card:not(.play) .bg * { animation: none !important; }
body[data-city] main .card.vocal.play .voice-pulse {
  animation: voice-pulse .85s ease-in-out var(--voice-delay) both;
  transform-box: fill-box; transform-origin: center;
}
@keyframes voice-pulse {
  0%,100% { transform: none; }
  30% { transform: translateY(-28px) scaleX(1.035); }
  65% { transform: translateY(12px) scaleX(.99); }
}
@media(prefers-reduced-motion:reduce) {
  body[data-city] main .card > .ico,
  body[data-city] main .card:hover > .ico { transform: none; transition: none; }
  body[data-city] main .card > span:not(.bg-clip):not(.go),
  body[data-city] main .card .desc { transition: none; }
}

/* Branch header follows the main page scale, while keeping the branch picker. */
body[data-city] { --header-height:calc(260px * 240 / 567); }
body[data-city] .top {
  display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between;
  height:var(--header-height); min-height:var(--header-height);
  padding:8px max(clamp(24px,5vw,72px),calc((100% - var(--header-content))/2)); gap:24px;
}
body[data-city] .top .brand { width:260px; min-width:260px; margin:0; }
body[data-city] .top-right { display:flex; align-items:center; gap:28px; }
body[data-city] .top .top-right > .btn {
  width:230px; min-width:230px; height:54px; box-sizing:border-box;
  padding:6px; border-radius:27px; font-family:var(--brand-font);
  font-size:16px; letter-spacing:0; text-transform:none; transform:none;
}
body[data-city] .top .btn i { width:40px; height:40px; background:var(--cream); color:var(--bord); }
body[data-city] .top .btn i svg { width:20px; height:20px; }
body[data-city] .top .branch-btn { font-family:var(--brand-font); letter-spacing:0; text-transform:none; }
@media(max-width:1000px) {
  body[data-city] .hero > .stage { display:none; }
  body[data-city] .hero { grid-template-columns:minmax(0,1fr); min-height:0; padding-bottom:48px; }
  body[data-city] .top-right { gap:16px; }
}
@media(max-width:760px) {
  body[data-city] { --header-height:104px; }
  body[data-city] .top {
    display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:38px 30px;
    align-content:center; gap:8px 12px; padding:12px 24px;
  }
  body[data-city] .top .brand { grid-column:1; grid-row:1; width:180px; min-width:0; max-width:100%; }
  body[data-city] .top-right { display:contents; }
  body[data-city] .top .branch { grid-column:1 / -1; grid-row:2; justify-self:end; }
  body[data-city] .top .branch-btn { min-height:30px; padding:4px 12px; font-size:13px; line-height:20px; }
  body[data-city] .top .top-right > .btn {
    grid-column:2; grid-row:1; width:156px; min-width:156px; height:38px;
    font-size:12px; padding:4px; gap:8px;
  }
  body[data-city] .top .btn i { width:28px; height:28px; }
  body[data-city] .top .btn i svg { width:14px; height:14px; }
}
@media(max-width:380px) {
  body[data-city] .top .brand { width:142px; }
  body[data-city] .top .top-right > .btn { width:126px; min-width:126px; font-size:10px; }
}
/* Descriptions rise with their title, using the site's own typeface. */
body[data-city] main .card .desc {
  position:static; top:auto; padding:0; margin:0; max-height:0; overflow:hidden;
  font-family:var(--brand-font); font-size:20px; line-height:1.3;
  text-transform:none; letter-spacing:0;
  transition:max-height .35s ease,margin .35s ease,opacity .25s ease,visibility .25s;
}
body[data-city] main .card > span:not(.bg-clip):not(.go) { bottom:24px; }
body[data-city] main .card.is-active .desc,
body[data-city] main .card:focus-visible .desc {
  max-height:104px; margin-top:10px; opacity:1; visibility:visible;
}
body[data-city] main .card.is-active > span:not(.bg-clip):not(.go),
body[data-city] main .card:focus-visible > span:not(.bg-clip):not(.go) { transform:none; }
@media(hover:hover) and (pointer:fine) {
  body[data-city] main .card:hover .desc { max-height:104px; margin-top:10px; opacity:1; visibility:visible; }
  body[data-city] main .card:hover > span:not(.bg-clip):not(.go) { transform:none; }
}
/* Connected steps remain readable; scroll emphasizes progress rather than hiding content. */
body[data-city] .steps::after { background:var(--bord); transition:width .2s linear,height .2s linear; }
body[data-city].js .step > *,
.js body[data-city] .step > * { opacity:.55; transform:none; transition:opacity .35s ease,color .35s ease; }
body[data-city].js .step.on > *,
.js body[data-city] .step.on > * { opacity:1; transform:none; }
body[data-city] .step::before { box-sizing:border-box; border-color:var(--ink); }
body[data-city] .step.is-current::before { box-shadow:0 0 0 5px #9b3e4714; }
@media(max-width:680px) {
  body[data-city] .steps { gap:32px; }
  body[data-city] .steps::before,
  body[data-city] .steps::after {
    display:block; left:16px; right:auto; top:var(--steps-start,22px);
    width:2px; height:var(--steps-track,0px);
  }
  body[data-city] .steps::after { height:var(--steps-fill,0px); }
  body[data-city] .step { padding-left:56px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-city] main .card .desc, body[data-city] .steps::after,
  .js body[data-city] .step > * { transition:none; }
}

body[data-city] .top .top-right > .btn { background:transparent; color:var(--ink); border:1px solid var(--ink); }
body[data-city] .top .top-right > .btn:hover { background:var(--ink); color:var(--cream); }
body[data-city] .top .top-right > .btn i svg path {
  fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}

/* Reserve the arrow column so descriptions wrap instead of passing underneath it. */
body[data-city] main .card .desc {
  box-sizing:border-box; padding-right:64px; white-space:normal; overflow-wrap:break-word;
}
body[data-city] main .card.is-active .desc,
body[data-city] main .card:focus-visible .desc { max-height:156px; }
@media(hover:hover) and (pointer:fine) {
  body[data-city] main .card:hover .desc { max-height:156px; }
}
@media(max-width:680px) { body[data-city] main .card { min-height:280px; } }
/* Stable header button geometry; icons never shrink or drift with label metrics. */
body[data-city] .top .top-right > .btn {
  position:relative; display:inline-flex; align-items:center; justify-content:flex-start;
  line-height:1.2; white-space:nowrap; padding:8px 54px 8px 20px;
}
body[data-city] .top .btn i,
body[data-city] .top .btn:hover i {
  position:absolute; top:50%; right:6px; margin:0; flex:none;
  transform:translateY(-50%); transition:none; color:var(--bord);
}
body[data-city] .top .branch-btn {
  position:relative; box-sizing:border-box; width:154px; height:54px;
  display:flex; align-items:center; border:1px solid var(--ink);
  padding:8px 36px 8px 16px; font-size:16px; line-height:1.2; gap:0;
}
body[data-city] .top .branch-btn > svg:not(.capsule-caption) {
  position:absolute; right:14px; top:50%; margin-top:-6px; width:12px; height:12px; flex:none;
}
body[data-city] .top .branch-btn > svg.capsule-caption {
  position:absolute; inset:0; width:100%!important; height:100%!important; max-width:none;
  margin:0; padding:0; pointer-events:none; overflow:visible;
  transform:none!important; transition:none!important; animation:none!important;
  fill:currentColor; stroke:none; flex:none;
}
@media(max-width:760px) {
  body[data-city] .top .top-right > .btn { padding:4px 38px 4px 12px; }
  body[data-city] .top .btn i { right:4px; }
  body[data-city] .top .branch-btn {
    width:112px; height:30px; min-height:30px; font-size:13px;
    padding:4px 28px 4px 12px;
  }
  body[data-city] .top .branch-btn > svg:not(.capsule-caption) { right:10px; width:10px; height:10px; margin-top:-5px; }
}

/* Exact home-page CTA markup and visual dimensions, without the old .btn/.sm cascade. */
body[data-city] .top .header-cta,
body[data-city] .top .header-cta:hover,
body[data-city] .top .header-cta:focus-visible {
  position:relative; box-sizing:border-box; display:flex; align-items:center;
  width:230px; min-width:230px; height:54px; min-height:54px; flex:0 0 230px;
  font-family:var(--brand-font); font-size:16px!important; font-weight:400; line-height:1.2;
  letter-spacing:0; text-transform:none; white-space:nowrap;
  padding:8px 12px; gap:8px; border:1px solid var(--ink); border-radius:27px;
  background:transparent; color:var(--ink); transform:none;
  transition:background-color .2s,border-color .2s,color .2s;
}
body[data-city] .top .header-cta:hover,
body[data-city] .top .header-cta:focus-visible { background:var(--ink); color:var(--cream); }
body[data-city] .top .header-cta > svg.header-cta-icon:not(.capsule-caption) {
  position:absolute; right:6px; top:0; bottom:0; margin:auto 0;
  width:40px; height:40px; flex:0 0 40px; transform:none; transition:none; overflow:visible;
}
body[data-city] .top .header-cta .header-cta-icon circle { fill:var(--cream); stroke:none; }
body[data-city] .top .header-cta .header-cta-icon path {
  fill:none; stroke:var(--bord); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
@media(min-width:601px) and (max-width:760px) {
  body[data-city] { --header-height:120px; }
  body[data-city] .top { grid-template-rows:54px 30px; }
}
@media(max-width:760px) {
  body[data-city] .top .header-cta { grid-column:2; grid-row:1; justify-self:end; }
}
@media(max-width:600px) {
  body[data-city] .top .header-cta,
  body[data-city] .top .header-cta:hover,
  body[data-city] .top .header-cta:focus-visible {
    width:156px; min-width:0; height:38px; min-height:38px; flex:1 1 156px;
    font-size:12px!important; padding:6px 8px; border-radius:19px;
  }
  body[data-city] .top .header-cta > svg.header-cta-icon:not(.capsule-caption) {
    width:28px; height:28px; right:4px; flex-basis:28px;
  }
}

/* Branch pages show the current location as text, without a switcher. */
body[data-city] .top-right { min-width:0; }
body[data-city] .branch-current {
  display:flex; flex-direction:column; gap:2px; min-width:0; max-width:240px;
  font-family:var(--brand-font); font-size:16px; line-height:1.3; color:var(--ink);
}
body[data-city] .branch-current-address { font-size:14px; color:#786c62; overflow-wrap:break-word; }
@media(max-width:760px) {
  body[data-city] .top { grid-template-rows:auto auto; height:auto; min-height:var(--header-height); }
  body[data-city] .branch-current {
    grid-column:1 / -1; grid-row:2; justify-self:end; max-width:100%;
    flex-direction:row; flex-wrap:wrap; align-items:baseline; justify-content:flex-end;
    column-gap:8px; row-gap:2px; font-size:14px;
  }
}

body[data-city] .top .branch-current,
body[data-city] .top .branch-current > span {
  font-family:"Architexture","Century Gothic",sans-serif;
  font-weight:400; font-style:normal; font-synthesis:none;
}

/* Keep location information with the brand, separate from the enrollment action. */
body[data-city] .top .header-identity {
  display:flex; align-items:center; gap:24px; min-width:0; flex:1 1 auto;
}
body[data-city] .top .top-right { flex:0 0 auto; }
body[data-city] .top .branch-current {
  box-sizing:border-box; border-left:1px solid #9b3e4740; padding-left:24px;
  min-height:54px; justify-content:center; gap:4px; max-width:260px;
  flex:0 1 auto; font-size:18px; line-height:1.2;
}
body[data-city] .top .branch-current-address { font-size:14px; line-height:1.3; }
@media(max-width:1000px) {
  body[data-city] .top .header-identity { gap:16px; }
  body[data-city] .top .branch-current { padding-left:16px; font-size:16px; }
  body[data-city] .top .branch-current-address { font-size:14px; }
}
@media(max-width:760px) {
  body[data-city] .top .header-identity { display:contents; }
  body[data-city] .top .branch-current {
    justify-self:start; align-items:baseline; justify-content:flex-start;
    min-height:0; max-width:100%; padding-left:10px; border-left:2px solid var(--bord);
    flex-direction:row; gap:4px 10px; font-size:14px; line-height:1.3;
  }
  body[data-city] .top .branch-current-address { font-size:14px; }
}

@media(width < 1400px) {
  body[data-city] main .card .desc { font-size:17px; line-height:1.35; }
}

/* Full-width short direction cards on tablets and phones, with readable descriptions. */
@media(max-width:1000px) {
  body[data-city] #dirs .grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  body[data-city] #dirs .card,
  body[data-city] #dirs .card:hover,
  body[data-city] #dirs .card:focus-visible {
    display:grid; grid-template-columns:52px minmax(0,1fr); align-items:center;
    gap:14px; min-height:132px; height:auto; padding:16px; opacity:1;
    transform:none; transition:none; text-align:left;
  }
  body[data-city] #dirs .card > .ico,
  body[data-city] #dirs .card:hover > .ico {
    grid-column:1; grid-row:1; width:auto; height:52px; max-width:52px;
    align-self:center; justify-self:center; transform:none;
  }
  body[data-city] #dirs .card > span:not(.bg-clip):not(.go),
  body[data-city] #dirs .card:hover > span:not(.bg-clip):not(.go),
  body[data-city] #dirs .card.is-active > span:not(.bg-clip):not(.go) {
    position:static; grid-column:2; grid-row:1; width:auto; min-width:0;
    padding-right:32px; transform:none; align-self:center;
  }
  body[data-city] #dirs .card .name { font-size:clamp(22px,3.2vw,28px); line-height:1.1; max-width:none; }
  body[data-city] #dirs .card .desc,
  body[data-city] #dirs .card:hover .desc,
  body[data-city] #dirs .card.is-active .desc,
  body[data-city] #dirs .card:focus-visible .desc {
    position:static; max-height:none; height:auto; margin:6px 0 0; padding:0;
    font-size:14px; line-height:1.25; opacity:1; visibility:visible; overflow:visible; transition:none;
  }
  body[data-city] #dirs .card .go,
  body[data-city] #dirs .card:hover .go,
  body[data-city] #dirs .card:focus-visible .go {
    width:28px; height:28px; right:12px; top:50%; bottom:auto; transform:translateY(-50%);
  }
  body[data-city] #dirs .card .go svg { width:14px; height:14px; }
  body[data-city] #dirs .card .bg { height:max(calc(100% + 32px),220px); }
  body[data-city] #dirs .card .bg-clip .bg { height:max(100%,220px); }
  body[data-city] #dirs .card::before,
  body[data-city] #dirs .card::after { background-size:auto max(100%,220px); }
  body[data-city] .poster { width:min(100%,240px); justify-self:center; margin:0; }
  body[data-city] .poster .tag { left:10px; right:10px; bottom:10px; padding:8px 10px; font-size:10px; }
  body[data-city] .arch { width:min(100%,220px); justify-self:center; }
}
