/* Element defaults, type, the app shell and layout helpers. */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-stretch: 75%;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
svg { flex: none; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
:focus-visible { outline: 3px solid var(--blue-50); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type: Noto Sans Display Condensed; caps only for headlines and labels (brand p.18) */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.title { font-size: 44px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
.h2 { font-size: 22px; line-height: 1.1; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.strong { font-weight: 700; }
.light { font-weight: 300; }
.stat { font-size: 64px; line-height: .95; font-weight: 300; letter-spacing: -.01em; }
.stat-m { font-size: 40px; line-height: 1; font-weight: 300; }
.num { font-variant-numeric: tabular-nums; }
.mission { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); }

/* App shell: rail on the left, content on the right; on a phone a top bar and a tab bar */
.app {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(90deg, var(--surface) 0 var(--rail-w), var(--line) var(--rail-w) calc(var(--rail-w) + 1px), var(--ground) calc(var(--rail-w) + 1px));
}
/* The rail stays in view while the page scrolls, and scrolls its own links in a short window. */
.rail { width: var(--rail-w); padding: 24px 16px 20px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); }
.rail-logo { display: block; padding: 0 8px; }
.rail-logo img { display: block; width: 138px; height: auto; }
.rail-site { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--blue-8); border: 1px solid var(--blue-15); }
.rail-site strong { display: block; font-size: 15px; }
.rail-site span { display: block; font-size: 13px; color: var(--ink-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 14px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; transition: background .15s; }
.nav a .i { color: var(--ink-2); }
.nav a:hover { background: var(--blue-8); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--blue-15); color: var(--blue-deep); }
.nav a[aria-current="page"] .i { color: var(--txm-blue); }
.nav-badge { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--attn-bg); color: var(--attn-ink); }
.rail-user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.rail-user:hover { background: var(--blue-8); }
.rail-user strong { display: block; font-size: 15px; }
.rail-user span { display: block; font-size: 13px; color: var(--ink-2); }
.mtop { display: none; }
.tabbar { display: none; }

.main { flex: 1 1 0; min-width: 0; padding: 30px 40px 56px; }
.wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-title { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; border-left: 4px solid var(--txm-blue); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Layout helpers */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.s-3 { grid-column: span 3; } .s-4 { grid-column: span 4; } .s-5 { grid-column: span 5; }
.s-6 { grid-column: span 6; } .s-7 { grid-column: span 7; } .s-8 { grid-column: span 8; }
.s-9 { grid-column: span 9; } .s-12 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.only-phone { display: none; }
