/* Rail: on computers the menu becomes a black bar down the left side, like an app: logo at the top, pages in a list,
   Book Audition pinned at the bottom. The page itself is calm and white. Onest throughout.
   Below 1180px it falls back to a normal top bar. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2"); }

html.st-rail {
  --display: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --rail: 248px;
}
html.st-rail body { font-size: 17px; line-height: 1.72; }

/* Type */
html.st-rail :is(h1, h2, h3, h4) { font-family: var(--display); color: var(--dark); }
html.st-rail h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
html.st-rail h2 { font-size: clamp(1.65rem, 2.6vw, 2.1rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.16; }
html.st-rail h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.012em; line-height: 1.3; }
html.st-rail h4 { font-size: 1.05rem; font-weight: 650; }
html.st-rail .section-title { text-align: left; margin-bottom: 1.5rem; }
html.st-rail .prose h2 { margin: 2.1em 0 .6em; }
html.st-rail .prose h3 { margin: 1.7em 0 .5em; }
html.st-rail .prose li::marker { color: var(--red); }

/* Buttons */
html.st-rail .btn { font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0; padding: .8rem 1.35rem; border-radius: 8px; }
html.st-rail .btn-outline { border: 1px solid var(--line); color: var(--dark); }
html.st-rail .btn-outline:hover { border-color: var(--dark); background: transparent; color: var(--dark); }

/* The rail */
html.st-rail .site-header { background: var(--black); }
html.st-rail .primary-nav > ul > li > a { color: var(--nav-text); font-weight: 500; font-size: 15px; }
html.st-rail .primary-nav > ul > li.active > a, html.st-rail .primary-nav > ul > li > a:hover { color: var(--white); }
html.st-rail .sub-menu { background: var(--charcoal); border-radius: 10px; padding: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
html.st-rail .sub-menu a { color: var(--nav-text); font-weight: 500; border-radius: 7px; padding: .55rem .85rem; }
html.st-rail .sub-menu a:hover { background: rgba(255,255,255,.08); color: var(--white); }
@media (min-width: 1181px) {
  html.st-rail body { padding-left: var(--rail); }
  html.st-rail .site-header { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 60; border-right: 1px solid rgba(255,255,255,.08); }
  html.st-rail .header-inner { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; height: 100%; max-width: none; padding: 30px 22px 26px; }
  html.st-rail .header-logo img { width: 170px; }
  html.st-rail .primary-nav { flex: 1; display: block; margin-top: 44px; }
  html.st-rail .primary-nav > ul { flex-direction: column; gap: 2px; }
  html.st-rail .primary-nav > ul > li > a { padding: .62rem .8rem; border-radius: 8px; }
  html.st-rail .primary-nav > ul > li > a:hover { background: rgba(255,255,255,.06); }
  html.st-rail .primary-nav > ul > li > a::before { top: 10px; bottom: 10px; left: -22px; right: auto; width: 3px; height: auto; background: var(--red); border-radius: 0 3px 3px 0; transform: scaleY(0); }
  html.st-rail .primary-nav > ul > li.active > a { background: rgba(255,255,255,.08); }
  html.st-rail .primary-nav > ul > li.active > a::before { transform: scaleY(1); }
  html.st-rail .primary-nav > ul > li > a:hover::before { transform: scaleY(0); }
  html.st-rail .primary-nav > ul > li.active > a:hover::before { transform: scaleY(1); }
  /* sub-menus open to the right of the rail; the Style list opens upwards from its row */
  html.st-rail .sub-menu, html.st-rail .nav-style .sub-menu { top: -6px; left: calc(100% + 14px); right: auto; transform: translateX(-6px); }
  html.st-rail .has-children:hover .sub-menu, html.st-rail .has-children:focus-within .sub-menu { transform: none; }
  /* Style opens upward from its own row instead of downward (it's the last item, so top:-6px from the
     general rule above would push a 12-entry list off the bottom) — but it stays anchored to the trigger
     (position: absolute, inherited from the rule above), not pinned to the viewport: a fixed/bottom-of-
     screen position left a visible gap between the trigger and the menu whenever the rail had empty space
     below the nav list, and crossing that gap with the mouse closed the menu before you could reach it.
     It also sits flush against the rail (left: 100%, no gap, no translateX) rather than the usual 14px
     off-set: this list scrolls internally (overflow-y: auto below), which clips the ::before hover-bridge
     used for the other sub-menus' gap, so there's no safe way to bridge a gap here — removing it instead. */
  html.st-rail .nav-style .sub-menu { top: auto; bottom: -6px; left: 100%; transform: none; max-height: calc(100vh - 32px); overflow-y: auto; }
  /* Compact rows (more styles than the menu was first sized for) so the list is short enough to usually
     fit entirely above the trigger without scrolling; overflow-y: auto above is the safety net on short screens. */
  html.st-rail .nav-style .sub-menu a { padding: .4rem .65rem; }
  html.st-rail .nav-style .sub-menu small { font-size: 11.5px; line-height: 1.3; }
  html.st-rail .sub-menu::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 40px; } /* keeps the menu open while the mouse crosses the gap */
  html.st-rail .has-children > a::after { content: "\203A"; float: right; opacity: .5; font-size: 1.1em; }
  html.st-rail .header-cta { display: block; text-align: center; margin-top: 18px; padding: .8rem 1rem; }
  html.st-rail .nav-toggle { display: none; }
  html.st-rail .preview-banner + .site-header { position: fixed; }
}
@media (max-width: 1180px) {
  html.st-rail .primary-nav { border-top: 1px solid rgba(255,255,255,.1); padding: 4px 24px 20px; }
  html.st-rail .primary-nav > ul > li > a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  html.st-rail .sub-menu { box-shadow: none; padding: 0 0 .4rem .8rem; background: transparent; }
}

/* Home hero */
html.st-rail .hero::after { background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%); }
html.st-rail .hero-tall h1, html.st-rail .hero-tall h2 { font-size: clamp(2.8rem, 5.8vw, 4.8rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; max-width: 12ch; }

/* Page banners: a photo strip with the title at the bottom left, lined up with the text */
html.st-rail .hero.hero-slim { max-width: none; margin: 0; min-height: 300px; align-items: flex-end; }
html.st-rail .hero-slim .hero-media img { filter: grayscale(.3); }
html.st-rail .hero.hero-slim::after { background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 65%, rgba(0,0,0,.05) 100%); }
html.st-rail .hero.hero-slim.align-center { text-align: left; }
html.st-rail .hero-slim .hero-content { max-width: var(--narrow); align-items: flex-start; padding-top: 72px; padding-bottom: 36px; }
html.st-rail .hero-slim h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 0; max-width: 20ch; }
html.st-rail .hero-slim + .block { padding-top: 52px; }

/* Sections */
html.st-rail .block { padding: 76px 0; }
html.st-rail .block.space-compact { padding-top: 42px; padding-bottom: 42px; }
html.st-rail .block + .block.rich-text, html.st-rail .rich-text + .block { padding-top: 14px; }

/* Photo and text, cards, people */
html.st-rail .image-text-media::before { display: none; }
html.st-rail .image-text-media img { border-radius: 12px; }
html.st-rail .card-grid { background: var(--gray-50); }
html.st-rail .card-grid :is(h2, .section-title a) { color: var(--dark); }
html.st-rail .card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
html.st-rail .card-media img { aspect-ratio: 4 / 3; }
html.st-rail .card-body { text-align: left; padding: 18px 20px 22px; }
html.st-rail .card-body h3 { font-size: 1.22rem; margin-bottom: .3rem; }
html.st-rail .card-body h3 a { color: var(--dark); }
html.st-rail .card-body h3 a:hover { color: var(--red); }
html.st-rail .card-body p { color: var(--read); font-size: 15px; line-height: 1.6; }
html.st-rail .member img, html.st-rail .member-placeholder { border-radius: 12px; }
html.st-rail .member-name { color: var(--dark); font-weight: 600; }
html.st-rail .bg-gold .member-name { color: var(--white); }

/* Questions: rows that open into a light panel */
html.st-rail .faq-item, html.st-rail .faq.faq-solid .faq-item { border: 0; border-radius: 10px; margin: 0 0 4px; }
html.st-rail .faq-item[open] { background: var(--gray-50); }
html.st-rail .faq-item summary, html.st-rail .faq.faq-solid .faq-item summary { background: none; color: var(--dark); font-weight: 600; font-size: 1.04rem; padding: 1rem 1rem; border-radius: 10px; }
html.st-rail .faq-item summary:hover { background: var(--gray-50); }
html.st-rail .faq-item summary::after, html.st-rail .faq.faq-solid .faq-item summary::after { display: grid; place-items: center; content: "+"; flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--gray-100); color: var(--dark); font-size: 1.1rem; }
html.st-rail .faq-item[open] summary::after { content: "\2013"; background: var(--red); color: var(--white); }
html.st-rail .faq-item .prose, html.st-rail .faq.faq-solid .faq-item .prose { border: 0; padding: 0 1rem 1.1rem; }

/* Photos, logos, slider, tabs */
html.st-rail .gallery img, html.st-rail .gallery.gallery-slider img { border-radius: 10px; }
html.st-rail .gallery-logos img { border: 1px solid var(--line); border-radius: 10px; }
html.st-rail .slider-btn { background: var(--black); border-radius: 8px; }
html.st-rail .slider-btn:hover { background: var(--red); }
html.st-rail .tabs-nav { display: inline-flex; gap: 2px; padding: 4px; background: var(--gray-100); border-radius: 10px; margin-bottom: 18px; }
html.st-rail .tabs { text-align: center; }
html.st-rail .tab { border: 0; border-radius: 7px; padding: .45rem 1rem; color: var(--read); font-weight: 500; }
html.st-rail .tab::before { display: none; }
html.st-rail .tabs.js .tab.on { background: var(--white); color: var(--dark); box-shadow: 0 1px 3px rgba(0,0,0,.12); border: 0; }
html.st-rail .tab-panel { border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; text-align: left; font-weight: 400; color: var(--read); max-width: 760px; }

/* Video, embeds, forms, location cards */
html.st-rail .video-frame, html.st-rail .prose iframe, html.st-rail .prose video, html.st-rail .prose figure img, html.st-rail .post-body img { border-radius: 12px; }
html.st-rail .contact-form :is(input, textarea) { border-radius: 8px; }
html.st-rail .location-card { border-radius: 14px; box-shadow: none; }

/* Blog */
html.st-rail .post-grid { gap: 28px; }
html.st-rail .post-card { border: 1px solid var(--line); border-radius: 14px; }
html.st-rail .post-card-body { padding: 16px 18px 20px; }
html.st-rail .post-card time { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
html.st-rail .post-card h3 { font-size: 1.1rem; line-height: 1.35; }
html.st-rail .post-card h3 a:hover { color: var(--red); }
html.st-rail .post-card p { font-size: 15px; line-height: 1.6; color: var(--read); }
html.st-rail .read-more { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px; }
html.st-rail .placeholder-art { text-transform: none; background: var(--gray-100); color: var(--dark); font-size: 1.1rem; }
html.st-rail .sidebar h2 { font-size: 1rem; text-transform: none; letter-spacing: 0; }
html.st-rail .sidebar li a { color: var(--dark); }
html.st-rail .pager a, html.st-rail .pager span { border-radius: 8px; }
html.st-rail .post-cta { border: 1px solid var(--line); background: var(--gray-50); border-radius: 16px; padding: 40px 24px; margin-bottom: 72px; max-width: 760px; }

@media (max-width: 520px) {
  html.st-rail .header-logo img { width: 128px; }
  html.st-rail .header-inner { gap: 10px; }
  html.st-rail .header-cta { padding: .5rem .8rem; font-size: 13.5px; }
}
