/* LiveTrue portal: the "Stage" look. Mobile first; one stylesheet for every page. */

/* Latin Extended (č, š, ž and the like), loaded only when a page uses those letters. */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/big-shoulders-display-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/big-shoulders-display-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --stage: #071232;
  --stage-2: #0D1B47;
  --stage-3: #16255C;
  --haze: #EEF2FB;
  --paper: #FFFFFF;
  --ink: #0A1638;
  --ink-2: #3B4566;
  --muted: #5A6480;
  --rule: #D5DCEC;
  --live: #1F4FD8;
  --live-2: #1A43B8;
  --glow: #C9D5F5;
  --beam: #8FA6EA;
  --field: #8A93A9;
  --error: #A4161A;
  --error-bg: #FCEDEE;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--haze);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--live); text-underline-offset: 3px; }
a:hover { color: var(--live-2); }

:focus-visible { outline: 3px solid var(--live); outline-offset: 2px; }
.bar :focus-visible, .stage-band :focus-visible, .panel-stage :focus-visible { outline-color: var(--glow); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus { top: 12px; }

/* Top bar: the lighting truss */

.bar { background: var(--stage); color: var(--glow); }

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }

.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}

.brand-tag {
  padding: 3px 9px 2px;
  border: 1px solid var(--beam);
  border-radius: 999px;
  color: var(--glow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bar-person {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.bar-name {
  display: block;
  min-width: 44px; /* a full-size target even for a short first name on phones */
  padding: 10px 6px;
  overflow: hidden;
  color: var(--glow);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-name:hover { color: #fff; text-decoration: underline; }
.name-first { display: none; }

.bar-signout {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--beam);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 16px/1 var(--serif);
  cursor: pointer;
}
.bar-signout:hover { background: var(--stage-3); }

.bar-nav { border-top: 1px solid var(--stage-3); }
.bar-nav .bar-inner {
  justify-content: flex-start;
  gap: 4px;
  min-height: 48px;
  overflow-x: auto;
}
.bar-nav a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 48px;
  padding: 3px 12px 0;
  border-bottom: 3px solid transparent;
  color: var(--glow);
  font-size: 17px;
  text-decoration: none;
}
.bar-nav a:hover { color: #fff; }
.bar-nav a[aria-current="page"] { border-bottom-color: var(--beam); color: #fff; }

/* Phase 3B: the count of unread messages on the Messages link (assets/js/common.js). */
.nav-badge {
  display: inline-block;
  min-width: 22px;
  margin-left: 6px;
  padding: 1px 7px 0;
  border-radius: 999px;
  background: var(--glow);
  color: var(--stage);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* Phones: the first name only, and none at all on the narrowest screens. */
@media (max-width: 479px) {
  .name-full { display: none; }
  .name-first { display: inline; }
}

@media (max-width: 339px) {
  .bar-name { display: none; }
}

/* The stage band: sign-in pages and the 404 page */

.stage-band {
  padding: 44px 0 96px;
  background:
    radial-gradient(ellipse 70% 90% at 78% -10%, rgba(143, 166, 234, 0.22), rgba(143, 166, 234, 0) 70%),
    var(--stage);
  color: var(--glow);
}

.stage-title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(56px, 15vw, 96px);
  line-height: 0.9;
}

.stage-lede {
  max-width: 30em;
  margin-top: 16px;
  color: var(--glow);
  font-size: 19px;
  line-height: 1.5;
}

.stage-band .btn { margin-top: 28px; }

.narrow {
  max-width: 512px;
  margin: 0 auto;
  padding: 0 16px;
}

.panel-lift {
  position: relative;
  margin-top: -60px;
  box-shadow: 0 30px 60px -38px rgba(10, 22, 56, 0.45);
}

.after-panel {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 17px;
}

/* Page layout */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 72px;
}

.page-head { margin-bottom: 24px; }

.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--live);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-title {
  font-weight: 900;
  font-size: clamp(48px, 11vw, 80px);
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.5;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 17px;
}

.head-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}
.panel + .panel { margin-top: 20px; }

.panel-title {
  margin-bottom: 16px;
  font-size: 30px;
}

.panel-intro {
  margin: -6px 0 18px;
  color: var(--ink-2);
  font-size: 17px;
}

.panel-stage {
  border-color: var(--stage);
  background: var(--stage);
  color: var(--glow);
}
.panel-stage .panel-title { color: #fff; }

.big-line {
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.05;
}

.grid-2 { display: grid; gap: 20px; }
.grid-2 > .panel + .panel { margin-top: 0; }

.muted { color: var(--muted); }

/* Forms */

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.field input,
.field select,
.copy-row input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  line-height: 1.4;
}

.field input:focus-visible,
.field select:focus-visible,
.copy-row input:focus-visible {
  border-color: var(--live);
  outline: 3px solid var(--live);
  outline-offset: 1px;
}

.field input[readonly] {
  border-color: var(--rule);
  background: var(--haze);
  color: var(--ink-2);
}

.hint {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.form-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 17px;
}

.form-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--live);
  border-radius: 6px;
  background: var(--haze);
  color: var(--ink);
  font-size: 17px;
}

.aside-link {
  margin-top: 12px;
  font-size: 17px;
}

/* Standalone links are full-size tap targets too. */
.aside-link a,
.table td a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.after-text {
  margin: 14px 0 20px;
  color: var(--ink-2);
  font-size: 17px;
}

.invite-form { display: grid; gap: 0 16px; }

/* Buttons: pills */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font: 600 17px/1.25 var(--serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--live-2); color: #fff; }
.btn:disabled { opacity: 0.65; cursor: progress; }

.btn-block { width: 100%; }

.btn-quiet {
  border-color: var(--live);
  background: transparent;
  color: var(--live);
}
.btn-quiet:hover { background: var(--haze); color: var(--live-2); }

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}

.btn-light { background: #fff; color: var(--stage); }
.btn-light:hover { background: var(--glow); color: var(--stage); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.messages:not(:empty) { margin-top: 16px; }
.messages p { margin-bottom: 0; }

/* Copy-once invite link */

.notice {
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--live);
  border-radius: 8px;
  background: var(--haze);
}

.notice-title {
  margin-bottom: 12px;
  font-weight: 600;
}

.copy-row {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.copy-row input { font-size: 16px; }

/* Tables become stacked cards on phones */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.table thead { display: none; }

.table tr {
  display: block;
  margin-bottom: 12px;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.table td {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  overflow-wrap: anywhere;
}

.table td::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.table td.cell-actions { display: block; padding-top: 10px; }
.table td.cell-actions::before { content: none; }

.table-wrap { margin: 0 -4px; }

.empty {
  padding: 18px 0;
  color: var(--ink-2);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.status::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--beam);
}
.status-active::before { background: var(--live); }
.status-disabled { color: var(--muted); }
.status-disabled::before { background: var(--field); }

.tag {
  display: inline-block;
  padding: 4px 10px 3px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  vertical-align: 2px;
}

.tag-quiet { background: var(--haze); color: var(--ink-2); }

/* Today: the set list */

.setlist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}

.setlist li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.setlist-n {
  color: var(--live);
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 0.85;
}

.setlist h3 { font-size: 28px; }
.setlist p { margin-top: 4px; color: var(--ink-2); font-size: 17px; }

/* Facts: definition lists on detail pages */

.facts { margin: 0 0 20px; }

.facts div {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.facts dt { color: var(--ink); font-size: 16px; font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }

.metric {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
}

.metric div {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--haze);
}

.metric dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.counts div {
  padding: 12px;
  border-radius: 8px;
  background: var(--stage);
  color: var(--glow);
}

.counts dt { font-size: 15px; }

.counts dd {
  margin: 4px 0 0;
  color: #fff;
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
}

/* Larger screens */

@media (min-width: 760px) {
  body { font-size: 19px; }
  .bar-inner { padding: 0 32px; }
  .bar-name { max-width: 320px; }
  .page { padding: 48px 32px 96px; }
  .panel { padding: 32px; }
  .stage-band { padding: 64px 0 112px; }
  .copy-row { grid-template-columns: minmax(0, 1fr) auto; }
  .invite-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .invite-form .btn { margin-bottom: 18px; }
  .facts div { grid-template-columns: 10em minmax(0, 1fr); gap: 16px; }
  .facts.facts-stacked div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .table thead { display: table-header-group; }
  .table tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .table td, .table th { display: table-cell; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
  .table td::before { content: none; }
  .table th {
    padding-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }
  .table td.cell-actions { display: table-cell; padding: 10px 0; text-align: right; }
  .table td.cell-actions .actions { justify-content: flex-end; }
  .table-wrap { margin: 0; }
}

@media (min-width: 960px) {
  .grid-2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
