/* SIDRA Downloads — the approved portal design (v4, 9 September 2026).
 *
 * Source of truth: docs/design/downloads-portal-design-v4.html. Tokens, header,
 * rail, hero, buttons, file details, previous releases, edge pages and footer
 * are taken from that reference.
 *
 * Two mechanical differences forced by this app's CSP (default-src 'self',
 * which blocks inline style attributes as well as inline <style>):
 *   - the mockup's per-element `style="--d:.05s"` reveal delays are classes
 *     (.d1 … .d6) declared here;
 *   - .reveal runs as a CSS animation instead of a JS-toggled .visible class,
 *     so the entrance also works with JavaScript unavailable.
 *
 * Fonts stay self-hosted for the same-origin CSP: no CDN, no Google Fonts.
 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* Keep the landing layout stable while automatic sign-in is in progress.
 * Without JavaScript the manual page is the default. */
.signin-page main {
  display: grid;
}
.signin-page main > .stage {
  grid-area: 1 / 1;
}
.signin-page .signin-pending {
  display: none;
}
html[data-signin] .signin-pending {
  display: block;
}
html[data-signin] .signin-content,
html[data-signin] .signin-account,
html[data-signin] #acct-hint {
  visibility: hidden;
}
.signin-pending .signin-pending-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-top: 30px;
}
html[data-signin='checking'] .signin-redirecting,
html[data-signin='redirecting'] .signin-checking {
  display: none;
}

/* ---------- tokens ---------- */
/* Dark is the portal's default (Director, 9 September 2026). The bare :root
 * carries the dark palette, so a visitor who has never used the toggle sees
 * dark whatever their operating system prefers. An explicit choice is stored
 * as data-theme and wins in both directions; light is the only override. */
:root {
  --green: #5a9a3e;
  --green-dark: #68912e;
  --accent: #8fc271;
  --bg-page: #15170f;
  --bg-header: rgba(21, 23, 15, 0.92);
  --ink: #f1f3ec;
  --text-body: #a4ab9b;
  --text-muted: #929b83;
  --hairline: #2d3122;
  --chip-bg: rgba(143, 194, 113, 0.1);
  --chip-border: #2d3122;
  --btn-bg: #477c32;
  --btn-bg-hover: #3d6b2b;
  --btn-fg: #fff;
  --foot-bg: #15170f;
  --foot-fg: #929b83;
  --foot-fg-hover: #a4ab9b;
  --foot-line: #23271a;
  --sage: #929b83;
  --hairline-soft: #23271a;
  --bg-card: #1c1f15;
  --tint: rgba(143, 194, 113, 0.1);
  --danger: #e07a70;
  --danger-tint: rgba(224, 122, 112, 0.12);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --flow-fg: var(--accent);
  --flow-border: rgba(143, 194, 113, 0.45);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --accent: #42742e;
  --bg-page: #f2f1ea;
  --bg-header: rgba(242, 241, 234, 0.92);
  --ink: #14070b;
  --text-body: #5c5a52;
  --text-muted: #6b6d5f;
  --hairline: #dcdacc;
  --chip-bg: #e9efe2;
  --chip-border: #dcdacc;
  --btn-bg: #477c32;
  --btn-bg-hover: #3d6b2b;
  --btn-fg: #fff;
  --foot-bg: #f2f1ea;
  --foot-fg: #6b6d5f;
  --foot-fg-hover: #5c5a52;
  --foot-line: #e6e4d8;
  --sage: #6b6d5f;
  --hairline-soft: #e6e4d8;
  --bg-card: #faf9f4;
  --tint: #e9efe2;
  --danger: #c0392b;
  --danger-tint: #fdf2f2;
  --flow-fg: var(--ink);
  --flow-border: rgba(90, 154, 62, 0.55);
  color-scheme: light;
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}
html {
  background: var(--bg-page);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg-page);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}
.sr,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- silk background ---------- */
.silk {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.silk canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.silk-on {
  background-color: transparent;
}

/* ---------- header ---------- */
.top-rule {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  z-index: 101;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.03em;
  white-space: nowrap;
  min-height: 44px;
}
.wordmark b {
  color: var(--accent);
  font-weight: 800;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tint);
}
.theme-btn svg {
  width: 15px;
  height: 15px;
}
.theme-btn .moon {
  display: none;
}
.theme-btn .sun {
  display: block;
}
:root[data-theme='light'] .theme-btn .moon {
  display: block;
}
:root[data-theme='light'] .theme-btn .sun {
  display: none;
}

/* Visual labels for the header's icon buttons. The invisible bridge keeps
 * the tooltip open when the pointer crosses the gap to read it. */
.control-hint {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.control-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 130;
  width: max-content;
  max-width: min(240px, calc(100vw - 48px));
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 3px 12px rgb(0 0 0 / 12%);
  font: 500 12px/1.4 var(--font-sans);
}
.control-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 9px;
}

/* ---------- mobile menu ----------
 * A native <details>: the panel opens and closes with no script, needs no
 * focus trap, and sits under the header rather than covering the page. The
 * rail carries the same groups at desktop widths, and exactly one of the two
 * is displayed at a time, so only one navigation is ever exposed. */
.navmenu {
  display: none;
  position: relative;
}
.burger {
  list-style: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.burger::-webkit-details-marker {
  display: none;
}
.burger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tint);
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bars i {
  display: block;
  width: 13px;
  height: 1.5px;
  background: var(--ink);
}
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow:
    0 12px 40px rgba(20, 7, 11, 0.14),
    0 2px 8px rgba(20, 7, 11, 0.06);
  padding: 8px 14px 14px;
  z-index: 120;
}

/* ---------- account menu ---------- */
.menu {
  position: relative;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--accent);
  font: 700 12px var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.avatar:hover,
.avatar[aria-expanded='true'] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(90, 154, 62, 0.25);
}
.avatar.ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--text-muted);
}
.avatar.ghost svg {
  width: 17px;
  height: 17px;
}
.avatar.ghost:hover,
.avatar.ghost[aria-expanded='true'] {
  background: var(--tint);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow:
    0 12px 40px rgba(20, 7, 11, 0.14),
    0 2px 8px rgba(20, 7, 11, 0.06);
  padding: 8px;
  z-index: 120;
}
.menu-panel[hidden] {
  display: none;
}
.menu-id {
  margin: 0;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.menu-id .ov {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}
.menu-id b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.menu-id .em {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.menu-sep {
  height: 1px;
  background: var(--hairline-soft);
  margin: 4px 8px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: var(--ink);
  font: 500 14px var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}
.menu-item:hover {
  background: var(--tint);
  color: var(--accent);
}
.menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex: none;
}
.menu-item:hover svg {
  color: var(--accent);
}
/* Sign out stays the existing POST form; the form is only a menu row wrapper. */
.menu-form {
  margin: 0;
}

/* ---------- page frame ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.stage.top {
  justify-content: flex-start;
  padding-top: 44px;
  padding-bottom: 72px;
}
.slabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.slabel b {
  color: var(--accent);
  font-weight: 500;
}
.slabel::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline-soft);
}
.slabel .sl {
  color: var(--sage);
  margin: 0 2px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 30px;
}
h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
  max-width: 820px;
  text-wrap: balance;
}
h1 .dash {
  color: var(--sage);
}
h1 .go {
  color: var(--accent);
}
/* Preserve the approved large display green; small controls use the darker accent. */
:root[data-theme='light'] h1 .go {
  color: #5a9a3e;
}

h1 .num {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero h1 {
  max-width: none;
}
.lede {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 560px;
}
.lede .sl {
  color: var(--sage);
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(90, 154, 62, 0.25);
}
.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.btn-primary:hover svg {
  transform: translateX(3px);
}
/* ---------- .btn-flow (landing Sign in) ----------
 *
 * The signed-out hero's one call to action. An outline pill in the theme's
 * green that fills from the centre on hover, eases its corners to the portal's
 * 10px, and slides the arrow through: the leading arrow leaves right while a
 * second one arrives from the left. Colours are tokens only; --flow-fg and
 * --flow-border carry the per-theme resting state, --btn-bg/--btn-fg the hover.
 * Applied to the landing Sign in anchor only — .btn-primary is unchanged. */
.btn-flow {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  min-height: 44px;
  padding: 12px 32px;
  border: 1.5px solid var(--flow-border);
  border-radius: 100px;
  background: transparent;
  color: var(--flow-fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.15s ease;
}
.btn-flow:hover,
.btn-flow:focus-visible {
  border-color: transparent;
  color: var(--btn-fg);
  border-radius: 10px;
}
.btn-flow:active {
  transform: scale(0.95);
}
.btn-flow .fl-text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: transform 0.8s ease-out;
}
.btn-flow:hover .fl-text,
.btn-flow:focus-visible .fl-text {
  transform: translateX(12px);
}
.btn-flow .fl-fill {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--btn-bg);
  opacity: 0;
  transition:
    width 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    height 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-flow:hover .fl-fill,
.btn-flow:focus-visible .fl-fill {
  width: 480px;
  height: 480px;
  opacity: 1;
}
.btn-flow svg {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  transition:
    left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-flow .fl-in {
  left: -25%;
}
.btn-flow .fl-out {
  right: 16px;
}
.btn-flow:hover .fl-in,
.btn-flow:focus-visible .fl-in {
  left: 16px;
}
.btn-flow:hover .fl-out,
.btn-flow:focus-visible .fl-out {
  right: -25%;
}
@media (prefers-reduced-motion: reduce) {
  .btn-flow .fl-fill,
  .btn-flow .fl-in {
    display: none;
  }
  .btn-flow:hover .fl-text,
  .btn-flow:focus-visible .fl-text {
    transform: translateX(-12px);
  }
  .btn-flow:hover .fl-out,
  .btn-flow:focus-visible .fl-out {
    right: 16px;
  }
  .btn-flow:hover,
  .btn-flow:focus-visible {
    background: var(--btn-bg);
  }
}
.bracket {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.bracket .br {
  color: var(--sage);
}
.bracket.reveal-hover {
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-row:hover .bracket.reveal-hover,
.cta-row:focus-within .bracket.reveal-hover {
  opacity: 1;
  transform: translateX(0);
}
@media (hover: none) {
  .bracket.reveal-hover {
    opacity: 1;
    transform: none;
  }
}
.bracket-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}
.bracket-cta .br {
  color: var(--sage);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.bracket-cta:hover {
  color: var(--accent);
}
.bracket-cta:hover .br:first-child {
  transform: translateX(-3px);
}
.bracket-cta:hover .br:last-child {
  transform: translateX(3px);
}
.copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
}
.stamp {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 2;
  text-align: right;
  white-space: nowrap;
}
.stamp b {
  color: var(--ink);
  font-weight: 500;
}
.stamp .sl {
  color: var(--accent);
}
.notice {
  margin: 0 0 18px;
}

/* ---------- portal shell and rail ---------- */
.shell {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.rail {
  position: sticky;
  top: 82px;
  padding-top: 64px;
}
.rail-cap {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  margin-top: 26px;
}
.rail-cap:first-child {
  margin-top: 0;
}
.rail a,
.nav-panel a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-body);
  text-decoration: none;
  transition:
    color 0.15s ease,
    padding-left 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rail a i,
.nav-panel a i {
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  color: var(--sage);
  flex-shrink: 0;
}
.rail a:hover,
.nav-panel a:hover {
  color: var(--ink);
  padding-left: 6px;
}
.rail a.on,
.nav-panel a.on {
  color: var(--ink);
}
.rail a.on i,
.nav-panel a.on i {
  color: var(--accent);
}

/* The rail's Help group speaks the products' grammar — a cap, then rows — but
 * carries no numerals: help links are not a sequence, and numbering them would
 * claim an order that does not exist. The mono "docs" marker says the link
 * leaves the portal, matching the account menu's own external marker. */
/* The cap carries the 26px group separation, but wrapping it in .rail-help
 * makes it a :first-child again and re-triggers the reset meant only for the
 * cap at the very top of the rail. Restore it so Help sits off the list above
 * by the same gap Utilities sits off Software. */
.rail-help .rail-cap {
  margin-top: 26px;
}
.rail-help a {
  justify-content: space-between;
  gap: 12px;
}
.rail-help a .lbl {
  flex: 1;
}
.rail-help a .ext {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--sage);
  flex-shrink: 0;
}
.rail-help a:hover .ext {
  color: var(--accent);
}

/* ---------- content column ---------- */
/* A grid item defaults to min-width:auto, which would let the release tables
 * widen the page instead of scrolling inside .grp-b. */
.content {
  min-width: 0;
}
.content .hero {
  padding-top: 64px;
}
.content .slabel {
  margin-bottom: 26px;
}
.content h1 {
  font-size: clamp(40px, 5vw, 62px);
  max-width: 18ch;
}
.content .lede {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 70ch;
}
.content .cta-row {
  margin-top: 26px;
}
.desc {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
  max-width: none;
}
.ext {
  font-size: 0.85em;
  margin-left: 2px;
  color: var(--sage);
}

/* ---------- download buttons: two-line split ---------- */
.hero .cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(max-content, var(--download-button-width, 300px)));
  gap: 14px;
  align-items: start;
}
.hero .cta-row.single {
  grid-template-columns: minmax(max-content, var(--download-button-width, 300px));
}
.platform-downloads {
  --download-button-width: 340px;
}
.platform-downloads .bt,
.platform-downloads .bs {
  white-space: normal;
}
.cta {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cta .btn-primary,
.cta .btn-secondary {
  width: 100%;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  min-height: 60px;
  overflow: hidden;
  text-align: left;
}
.cta .btn-primary:hover svg {
  transform: none;
}
.cta .bl {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 16px 11px 20px;
  white-space: nowrap;
}
.cta .bt {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cta .bs {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 1;
}
.cta .bm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  align-self: stretch;
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cta .bm .fmt {
  opacity: 1;
}
.cta .ba {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 16px 0 2px;
}
.cta .ba svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s ease;
}
.cta .btn-primary:hover .ba svg,
.cta .btn-secondary:hover .ba svg {
  transform: translateY(2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tint);
  color: var(--accent);
  border: 1px solid var(--chip-border);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(90, 154, 62, 0.14);
}
.btn-secondary .bm {
  border-left-color: var(--chip-border);
}
.btn-secondary svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- pills ---------- */
.pill {
  display: inline-block;
  vertical-align: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1.4;
}
.pill.on {
  color: var(--accent);
  border-color: transparent;
  background: var(--tint);
}
.pill.off {
  color: var(--text-muted);
  background: var(--bg-card);
  border-color: var(--hairline-soft);
}

/* ---------- signed line + file details ---------- */
.signed {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-body);
}
.signed b {
  color: var(--ink);
  font-weight: 600;
}
.fd-t {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* display:inline-flex above would otherwise beat the UA [hidden] rule, leaving
 * both the toggle and its no-JS <summary> fallback on screen. */
.fd-t[hidden] {
  display: none;
}
.fd-t:hover {
  text-decoration: underline;
}
.fd-t .chev {
  display: inline-block;
  font-size: 9px;
  transition: transform 0.2s;
}
.fd-t[aria-expanded='true'] .chev {
  transform: rotate(180deg);
}
.files {
  margin-top: 16px;
  display: grid;
  gap: 0;
}
.files[hidden] {
  display: none;
}
/* The panels are native <details> so they open without JavaScript; portal.js
 * hides the summary and hands control to the mono .fd-t toggle. A <summary>
 * carrying .fd-t therefore picks up the same type as the button. */
summary.fd-t {
  list-style: none;
}
summary.fd-t::-webkit-details-marker {
  display: none;
}
details[open] > summary.fd-t .chev {
  transform: rotate(180deg);
}
.fd-wrap > summary.fd-t {
  padding: 12px 20px;
}
.files-head {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.files-head b {
  font-weight: 500;
  color: var(--ink);
}
.files-head .sl {
  color: var(--sage);
  margin: 0 8px;
}
/* No card. The panel is the only container, and one hairline between the two
 * files does the separating work that a fill, a border and a radius were
 * doing between them. Matches Previous releases, which is also a ruled list. */
.file {
  padding: 16px 0;
}
.file + .file {
  border-top: 1px solid var(--hairline-soft);
}
.file-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.file .ft {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.file .fs {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.file .fs .sep {
  color: var(--sage);
}
.file .fn {
  margin: 8px 0 0;
  color: var(--text-muted);
}
.file .fn a {
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px dotted var(--sage);
  padding-bottom: 1px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.file .fn a:hover {
  color: var(--accent);
  border-bottom-style: solid;
  border-color: var(--accent);
}
.file .fn .dla {
  color: var(--accent);
  margin-left: 2px;
}
.mono-line {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-body);
  overflow-wrap: anywhere;
}
/* "auto auto 1fr" keeps the label, the hash and Copy together at the left and
 * gives the slack to the right. The old "auto 1fr auto" stranded Copy at the
 * far edge of a wide content column, away from the value it copies. */
.hash {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 12px;
  width: calc(100% + 20px);
  margin: 8px -10px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.hash:hover,
.hash:focus-visible {
  background: var(--tint);
  outline: none;
}
.hash.did {
  background: var(--tint);
}
.hash .copy {
  pointer-events: none;
}
.hash .hk {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hash .hv {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- previous releases ---------- */
.sec {
  padding-top: 64px;
}
.sec h2 {
  margin-top: 22px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0;
}
.sec-lede {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 76ch;
}
.grp {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  overflow: hidden;
}
.grp-h {
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.grp-h::-webkit-details-marker {
  display: none;
}
.grp-h:hover .grp-name {
  color: var(--accent);
}
.grp-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: color 0.15s;
}
.grp-name b {
  font-family: var(--mono);
  font-weight: 500;
}
.grp-n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.grp-n .chev {
  font-size: 9px;
  transition: transform 0.2s;
}
.grp[open] .grp-n .chev {
  transform: rotate(180deg);
}
.table-scroll-hint {
  display: none;
  margin: 0;
  padding: 0 20px 10px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}
.table-scroll-hint span {
  margin-left: 6px;
}
.grp.table-at-end .table-scroll-hint {
  visibility: hidden;
}
.grp-b {
  border-top: 1px solid var(--hairline-soft);
  overflow-x: auto;
}
.grp table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.grp th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.grp td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--text-body);
  vertical-align: baseline;
}
.grp tbody tr:last-child td {
  border-bottom: 0;
}
.grp td.v b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}
.grp td.sz {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.grp td .dl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.grp td .dl:hover {
  text-decoration: underline;
}
.grp td.fd {
  text-align: right;
}
.grp td .na {
  color: var(--text-muted);
  opacity: 0.6;
}
.grp .fd-row td {
  background: var(--bg-page);
  padding: 0;
}
.grp .fd-row[hidden] {
  display: none;
}
.fdp {
  margin: 0 20px;
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 18px;
}
.fdf {
  padding: 12px 0 4px;
}
.fdf + .fdf {
  border-top: 1px solid var(--hairline-soft);
}
.fdf-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fdn {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--sage);
  padding-bottom: 1px;
  overflow-wrap: anywhere;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.fdn:hover {
  color: var(--accent);
  border-bottom-style: solid;
  border-color: var(--accent);
}
.fdn .dla {
  color: var(--accent);
  margin-left: 2px;
}
.fdb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fdb .sep {
  color: var(--sage);
}
.fdp .hash {
  width: calc(100% + 16px);
  margin: 6px -8px 0;
  padding: 7px 8px 9px;
  border-top: 0;
  border-radius: 8px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--foot-bg);
  transition: background 0.3s ease;
}
.footer-bar {
  border-top: 1px solid var(--foot-line);
}
.footer-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copy {
  font-size: 13px;
  color: var(--foot-fg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.footer-copy a {
  color: var(--foot-fg);
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px 2px;
}
.footer-copy a:hover {
  color: var(--foot-fg-hover);
}
.footer-icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  flex-shrink: 0;
}
.footer-sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* ---------- entrance ---------- */
/* The mockup toggles a .visible class from JS; a keyframe with the same
 * curve and per-element delay keeps the entrance without a JS dependency. */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  animation: reveal-in 0.7s ease var(--d, 0s) both;
}
.d1 {
  --d: 0.05s;
}
.d2 {
  --d: 0.1s;
}
.d3 {
  --d: 0.15s;
}
.d4 {
  --d: 0.2s;
}
.d5 {
  --d: 0.25s;
}
.d6 {
  --d: 0.3s;
}

/* ---------- simple pages (404) ---------- */
.page-simple {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 96px;
  display: block;
}
.page-simple .eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.page-simple h1 {
  font-size: clamp(32px, 4vw, 48px);
}
.page-simple h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-simple p,
.page-simple li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}
.page-simple ul {
  padding-left: 20px;
}
.page-simple a {
  color: var(--accent);
}

/* ---------- design preview banner (npm run dev:design only) ---------- */
.preview-banner {
  position: relative;
  z-index: 130;
  background: var(--tint);
  border-bottom: 1px solid var(--hairline);
  color: var(--text-body);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.preview-banner a {
  color: var(--accent);
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  /* The rail's groups move into the header's hamburger panel, so the whole
   * navigation — Software, Utilities and Help — reaches a phone instead of
   * sliding off the edge of a scrolling product strip. */
  .rail {
    display: none;
  }
  .navmenu {
    display: block;
  }
  /* .header-inner spreads its children, which the hamburger turns into three:
   * the wordmark would float in the middle. The burger and the wordmark are
   * one left-hand group, so let them flow from the left and pin the account
   * controls to the right instead. */
  .header-inner {
    justify-content: flex-start;
    gap: 14px;
  }
  .header-inner .top-right {
    margin-left: auto;
  }
  .content .hero {
    padding-top: 32px;
  }
}

@media (max-width: 860px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stamp {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .grp.table-overflows .table-scroll-hint {
    display: block;
  }
  .stage {
    padding: 48px 24px 80px;
    justify-content: flex-start;
  }
  /* previous releases: drop the columns File details already carries */
  .grp th:nth-child(2),
  .grp td:nth-child(2),
  .grp th:nth-child(3),
  .grp td:nth-child(3) {
    display: none;
  }
  .grp-h {
    flex-wrap: wrap;
  }
  .file-h {
    flex-direction: column;
    gap: 2px;
  }
  .hash {
    grid-template-columns: auto auto;
  }
  .hash .hv {
    grid-column: 1 / -1;
  }
  .signed {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-primary,
  .btn-flow {
    width: 100%;
    justify-content: center;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .cta-row,
  .hero .cta-row.single {
    grid-template-columns: 1fr;
  }
  .hero .cta-row.platform-downloads {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta .btn-primary {
    justify-content: space-between;
  }
}

@media (max-width: 360px) {
  .platform-downloads .bl {
    padding-left: 10px;
    padding-right: 8px;
  }
  .platform-downloads .bt {
    font-size: 14px;
  }
  .platform-downloads .bm {
    padding-left: 8px;
    padding-right: 8px;
  }
  .platform-downloads .ba {
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  * {
    transition: none !important;
  }
}

/* ---------- contact page (/contact) ----------
 *
 * The contact page speaks the portal's own grammar rather than porting the
 * sidraintersection.com layout: a numbered section label, the two-line hero
 * with the green second line, the mono stamp at the right (the edge pages'
 * device), and the form under the hero as section 02, the way Previous
 * releases sits under Current release. Only the Cognito form itself
 * is shared with the public site (AD-17, AD-18, AD-19).
 *
 * The form's overrides live in contact-form.css and are sent into Cognito's
 * cross-origin iframe. This stylesheet only controls the outer layout.
 */
/* .hero-row carries a 30px top margin for the edge pages, where nothing sits
 * between the label and the row; here .content .slabel already gives 26px. */
.contact-hero .hero-row {
  margin-top: 0;
}
/* Two lines, like every other hero: the cap is loosened only enough for the
 * green line to hold on one line at the widest breakpoint. */
.contact-hero h1 {
  max-width: 24ch;
}
/* The stamp is uppercase mono; a linked phone number keeps the stamp's own
 * ink and takes the accent only on hover, like the rail rows. */
.stamp a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.stamp a:hover,
.stamp a:focus-visible {
  color: var(--accent);
}
/* Section 02: the form. .sec supplies the 64px section gap. */
.contact-form {
  margin-top: 26px;
  max-width: 640px;
}
#contact-form {
  display: block;
  width: 100%;
  border: 0;
  scroll-margin-top: 96px;
}
