/* Podium Pathway shared header: brand, section tabs and workbench switcher on row one; page tabs on row two. */
.podium-header.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand sections switch" "pages pages pages";
  align-items: center;
  height: auto;
  gap: 0 28px;
  padding: 0 var(--gutter);
}
.podium-header .brand { grid-area: brand; min-height: 56px; height: auto; font-size: 18px; font-weight: 700; letter-spacing: 0; gap: 10px; }
.podium-header .brand-mark {
  display: block;
  width: 48px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 0;
  box-shadow: none;
  background: url('./assets/podium-pathway-mark.svg') center / contain no-repeat;
}
.podium-header .header-meta { display: none; }

.section-tabs { grid-area: sections; display: flex; gap: 4px; min-width: 0; }
.section-tabs a {
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.section-tabs a:hover { color: var(--ink); background: var(--surface-2); }
.section-tabs a[aria-current="true"] { color: var(--ink); background: var(--raised); }

.podium-header .page-tabs {
  grid-area: pages;
  width: auto;
  min-width: 0;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 calc(var(--gutter) - 12px);
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(22, 26, 28, 0.6);
}
.podium-header .page-tabs::-webkit-scrollbar { display: none; }
.podium-header .page-tabs a { min-height: 42px; flex: 0 0 auto; font-size: 13px; }

/* Dropdown triggers share one look: a quiet button with a chevron instead of the native disclosure marker. */
.workbench-switch, .page-picker { position: relative; min-width: 0; }
.workbench-switch { grid-area: switch; justify-self: end; }
.workbench-switch summary, .page-picker summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s;
}
.workbench-switch summary { height: 34px; padding: 0 30px 0 12px; }
.workbench-switch summary::-webkit-details-marker, .page-picker summary::-webkit-details-marker { display: none; }
.workbench-switch summary::after, .page-picker summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s, margin-top .15s;
}
.workbench-switch[open] summary::after, .page-picker[open] summary::after { transform: rotate(225deg); margin-top: -1px; }
.workbench-switch summary:hover, .page-picker summary:hover { border-color: var(--line-strong); }

.workbench-menu, .page-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  z-index: 40;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.workbench-menu { right: 0; width: 260px; max-width: calc(100vw - 32px); }
.workbench-menu-label, .page-picker-section > span { display: block; padding: 8px 10px 6px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.workbench-menu a, .workbench-planned { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border-radius: 5px; color: var(--ink); text-decoration: none; }
.workbench-menu a:hover { background: var(--raised); }
.workbench-menu a[aria-current] { background: var(--accent-soft); }
.workbench-status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.workbench-menu a .workbench-status { color: var(--accent); }
.workbench-planned { color: var(--muted); }

.page-picker { grid-area: picker; display: none; }
.page-picker summary { height: 40px; padding: 0 34px 0 12px; }
.page-picker-group { color: var(--muted); font-weight: 400; }
.page-picker-group::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.page-picker-page { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-picker-menu { left: 0; right: 0; max-height: min(70vh, 560px); overflow-y: auto; }
.page-picker-section + .page-picker-section { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.page-picker-section a { display: block; padding: 11px 10px; border-radius: 5px; color: var(--ink-2); text-decoration: none; }
.page-picker-section a:hover { background: var(--raised); }
.page-picker-section a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }

@media (max-width: 900px) {
  .podium-header.topbar { gap: 0 16px; }
  .section-tabs a { padding: 7px 9px; }
}

/* Phones: brand and switcher share one row, a single page picker replaces both tab rows, and the header scrolls away. */
@media (max-width: 700px) {
  .podium-header.topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand switch" "picker picker";
    gap: 0 12px;
    padding-bottom: 10px;
    backdrop-filter: none;
  }
  .podium-header .brand { min-height: 52px; font-size: 16px; }
  .podium-header .brand-mark { width: 36px; height: 18px; }
  .section-tabs, .podium-header .page-tabs { display: none; }
  .page-picker { display: block; }
  .workbench-switch summary { height: 32px; font-size: 12px; }
}
@media (max-width: 360px) {
  .workbench-switch summary span { display: none; }
  .workbench-switch summary { width: 38px; padding: 0; }
  .workbench-switch summary::after { right: 15px; }
}

.lap25-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 48px; padding: 28px 16px; border-top: 1px solid var(--line); color: var(--muted); font: 12px var(--sans, sans-serif); }
.lap25-footer strong { color: var(--ink-2); font-weight: 600; }
.lap25-footer img { display: block; width: 50px; height: 36px; object-fit: contain; opacity: .85; }

/* Fixed copy of a table's header row while the table is scrolled past the top bar. */
.sticky-head { position: fixed; z-index: 25; overflow: hidden; pointer-events: none; }
.sticky-head table { border-collapse: collapse; table-layout: fixed; }
.sticky-head thead th {
  position: static;
  background: var(--surface-2, #1c2123);
  box-shadow: 0 1px 0 var(--line, #2a3133), 0 8px 16px rgba(0, 0, 0, .35);
}
.sticky-head[hidden] { display: none; }

/* Loading placeholders */
.skeleton-row td { border-bottom: 1px solid var(--line-soft, #1f2527); }
.skeleton-bar { display: block; height: 11px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: skeleton 1.4s ease-in-out infinite; }
.skeleton-row td:first-child .skeleton-bar { width: 60%; }
.skeleton-row td:last-child .skeleton-bar { width: 45%; }
@keyframes skeleton { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-bar { animation: none; } }

/* Comfortable tap targets on phones: table links and controls reach the 44px guideline. */
@media (max-width: 700px) {
  .table-wrap td, .table-scroll td, .planner-table td { padding-block: 13px; }
  .table-wrap td a, .table-scroll td a, .table-wrap td button:not(.count-button), .table-scroll td button,
  .meeting-title, .planner-table td a, .day-meeting {
    display: inline-block;
    min-height: 30px;
    padding-block: 7px;
    line-height: 1.35;
  }
  .lap25-footer { flex-wrap: wrap; gap: 10px 14px; text-align: center; }
  .lap25-footer a { flex-basis: 100%; margin: 0 !important; }
}

/* Sortable column headers */
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
th.num .sort-button, .num .sort-button { justify-content: flex-end; }
.sort-button:hover { color: var(--ink, #e8ecea); }
.sort-arrow { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .25; }
.sort-button[data-direction="asc"] .sort-arrow { opacity: .9; transform: rotate(225deg) translate(-2px, -2px); }
.sort-button[data-direction="desc"] .sort-arrow { opacity: .9; }
.sort-button:focus-visible { outline: 2px solid var(--accent, #57f1db); outline-offset: 2px; border-radius: 4px; }

/* Inline glossary */
.glossary-mark {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid var(--line-strong, #3a4345);
  border-radius: 50%;
  background: none;
  color: var(--muted, #8a9692);
  font: 500 10px/1 var(--sans, sans-serif);
  cursor: help;
  vertical-align: 1px;
}
.glossary-mark:hover, .glossary-mark[aria-expanded="true"] { color: var(--accent, #57f1db); border-color: var(--accent, #57f1db); }
.glossary-tip {
  position: fixed;
  z-index: 60;
  max-width: min(320px, calc(100vw - 16px));
  padding: 10px 12px;
  border: 1px solid var(--line-strong, #3a4345);
  border-radius: 6px;
  background: #232a2c;
  color: var(--ink, #e8ecea);
  font: 400 12px/1.5 var(--sans, sans-serif);
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}
.glossary-tip[hidden] { display: none; }

/* Distance views within Championships / Closing Speed. */
.closing-sections{display:flex;gap:8px;max-width:1200px;margin:24px auto 0;padding:0 24px;box-sizing:border-box}.closing-sections a{display:block;padding:11px 20px;border:1px solid var(--line);border-radius:7px;color:var(--muted);text-decoration:none;font-size:14px}.closing-sections a[aria-current="page"]{color:var(--accent);border-color:var(--accent);background:var(--surface)}@media(max-width:700px){.closing-sections{padding:0 16px;margin-top:18px}.closing-sections a{flex:1;text-align:center;padding:11px 8px}}
