/* Shared site header + footer for every thirtysecondtimeout.com page.
   Inserted by chrome.py; all classes are prefixed tsx- so they never collide with a page's own CSS. */
:root {
  --tsx-navy: #011432;
  --tsx-navy-2: #0b2350;
  --tsx-line: rgba(255, 255, 255, .12);
  --tsx-ink: #f5f7fa;
  --tsx-muted: #b0bcd2;
  --tsx-orange: #fd5b02;
  --tsx-orange-2: #ff7a2e;
}

.tsx-bar, .tsx-bar *, .tsx-foot, .tsx-foot * { box-sizing: border-box; }
.tsx-bar, .tsx-foot { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.tsx-bar a, .tsx-foot a { text-decoration: none; }

/* ── Header ── */
.tsx-bar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(1, 20, 50, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--tsx-line);
  color: var(--tsx-ink);
}
.tsx-bar__in {
  max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 20px;
  display: flex; align-items: center; gap: 24px;
}
.tsx-brand { display: flex; align-items: center; gap: 10px; color: var(--tsx-ink); flex: none; }
.tsx-brand img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.tsx-brand span { font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tsx-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tsx-links a {
  color: var(--tsx-muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.tsx-links a:hover { color: var(--tsx-ink); background: rgba(255, 255, 255, .06); }
.tsx-links a[aria-current="page"] { color: var(--tsx-ink); box-shadow: inset 0 -2px 0 var(--tsx-orange); border-radius: 0; }
.tsx-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--tsx-orange); color: #fff !important; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; transition: background .15s, transform .15s;
}
.tsx-cta:hover { background: var(--tsx-orange-2); transform: translateY(-1px); }
.tsx-cta svg { width: 14px; height: 14px; fill: currentColor; }

/* Mobile menu: a <details> so it works without JavaScript */
.tsx-menu { display: none; margin-left: auto; position: relative; }
.tsx-menu > summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; color: var(--tsx-ink); border: 1px solid var(--tsx-line);
}
.tsx-menu > summary::-webkit-details-marker { display: none; }
.tsx-menu > summary svg { width: 20px; height: 20px; stroke: currentColor; }
.tsx-menu[open] > summary { background: rgba(255, 255, 255, .08); }
.tsx-menu__panel {
  position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px));
  background: var(--tsx-navy-2); border: 1px solid var(--tsx-line); border-radius: 16px;
  padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.tsx-menu__panel a { display: block; color: var(--tsx-ink); font-weight: 600; font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.tsx-menu__panel a:hover, .tsx-menu__panel a[aria-current="page"] { background: rgba(255, 255, 255, .07); }
.tsx-menu__panel a[aria-current="page"] { color: var(--tsx-orange-2); }
.tsx-menu__panel small { display: block; color: var(--tsx-muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.tsx-menu__panel .tsx-cta { display: flex; justify-content: center; margin: 8px 4px 4px; padding: 12px; }

@media (max-width: 980px) {
  .tsx-links, .tsx-bar__in > .tsx-cta { display: none; }
  .tsx-menu { display: block; }
}
@media (max-width: 380px) { .tsx-brand span { font-size: 12px; } }

/* ── Footer ── */
.tsx-foot { background: var(--tsx-navy); color: var(--tsx-muted); border-top: 1px solid var(--tsx-line); }
.tsx-foot__in {
  max-width: 1200px; margin: 0 auto; padding: 48px 20px 28px;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
}
.tsx-foot__brand p { font-size: 14px; line-height: 1.6; margin: 14px 0 18px; max-width: 300px; }
.tsx-foot h4 { color: var(--tsx-ink); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 14px; }
.tsx-foot ul { list-style: none; margin: 0; padding: 0; }
.tsx-foot li { margin: 0 0 10px; font-size: 14px; }
.tsx-foot li a { color: var(--tsx-muted); transition: color .15s; }
.tsx-foot li a:hover { color: var(--tsx-ink); }
.tsx-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tsx-orange-2); margin-left: 6px; }
.tsx-foot__base {
  max-width: 1200px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid var(--tsx-line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px;
}
.tsx-foot__base a { color: var(--tsx-muted); }
.tsx-foot__base a:hover { color: var(--tsx-ink); }
.tsx-social { display: flex; gap: 8px; }
.tsx-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--tsx-line); color: var(--tsx-ink); font-size: 14px; font-weight: 800;
}
.tsx-social a:hover { border-color: var(--tsx-orange); color: var(--tsx-orange-2); }
.tsx-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 820px) {
  .tsx-foot__in { grid-template-columns: 1fr 1fr; }
  .tsx-foot__brand { grid-column: 1 / -1; }
}

/* Guard against pages that style bare header/footer/nav tags (d30and0, coach-directory, schedules). */
header.tsx-bar { display: block; height: auto; max-width: none; margin: 0; padding: 0; color: var(--tsx-ink); }
footer.tsx-foot { display: block; max-width: none; margin: 0; padding: 0; font-size: 14px; color: var(--tsx-muted); border-top: 1px solid var(--tsx-line); gap: 0; }
.tsx-bar nav, .tsx-foot nav { gap: 2px; }
.tsx-menu__panel { display: block; }

/* Account link: "Sign in" when signed out, initials + "Account" when signed in */
.tsx-acct {
  display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--tsx-ink); font-size: 14px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tsx-line); transition: border-color .15s, background .15s;
}
.tsx-acct:hover { border-color: rgba(255, 255, 255, .35); }
.tsx-acct[aria-current="page"] { border-color: var(--tsx-orange); }
.tsx-acct__dot { display: none; }
.tsx-acct.is-in { padding: 4px 14px 4px 4px; }
.tsx-acct.is-in .tsx-acct__dot {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tsx-orange); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
@media (max-width: 980px) {
  .tsx-bar__in > .tsx-acct { margin-left: auto; }
  .tsx-bar__in > .tsx-acct + .tsx-cta + .tsx-menu { margin-left: 0; }
  .tsx-menu { margin-left: 8px; }
  .tsx-bar__in > .tsx-acct ~ .tsx-menu { margin-left: 8px; }
}
@media (max-width: 420px) { .tsx-acct__label { display: none; } .tsx-acct:not(.is-in) .tsx-acct__label { display: inline; } .tsx-acct:not(.is-in) { padding: 7px 12px; } }
@media (max-width: 980px) { .tsx-bar__in { gap: 10px; } }
@media (max-width: 480px) {
  .tsx-bar__in { padding: 0 16px; }
  .tsx-brand { gap: 8px; min-width: 0; }
  .tsx-brand span { font-size: 12px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; }
}
