/* Recon Platform brand-pack surface — shared stylesheet.
   Palette is the locked platform brand: navy #1B3A6B, red #B91C1C, light gray #EEF1F7,
   mid gray #D0D8EA, dark #1A2333, gray #64748B, dark navy #0F2345, and red-light
   #FCA5A5 for readable accent text on dark surfaces. */
:root {
  --navy: #1B3A6B;
  --red: #B91C1C;
  --red-hover: #991B1B;
  --page: #EEF1F7;
  --panel: #FFFFFF;
  --ink: #1A2333;
  --body: #475569;
  --muted: #475569;
  --line: #D0D8EA;
  --tile-light: #FFFFFF;
  --tile-dark: #0F2345;
  --accent: var(--red);
  --accent-text: var(--red);
  --shadow: 0 1px 2px rgba(26, 35, 51, 0.06), 0 8px 24px rgba(26, 35, 51, 0.06);
  --shadow-deep: 0 32px 80px -55px #071831;
  --motion-press: 140ms;
  --motion-fast: 160ms;
  --motion-enter: 240ms;
  --ease-standard: cubic-bezier(0.23, 1, 0.32, 1);
  --focus-ring: var(--red);
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #EEF1F7;
    --page: #0A1A33;
    --panel: #0F2345;
    --ink: #EEF1F7;
    --body: #9CA3AF;
    --muted: #9CA3AF;
    --line: #274C82;
    --accent-text: #FCA5A5;
    --focus-ring: #FCA5A5;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
button, input { font: inherit; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 3px;
}
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: var(--panel); position: sticky; top: 0; z-index: 10;
}
.bar a { text-decoration: none; }
.wordmark {
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px;
  color: var(--navy);
}
.wordmark span { color: var(--accent-text); }
.bar nav { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 72px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 10px;
}
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 44px 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0 0 4px; }
p.lede { font-size: 17px; color: var(--muted); max-width: 68ch; margin: 0 0 8px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero { padding: 28px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 780px) { .hero { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.hero img { width: 100%; height: auto; display: block; border-radius: 8px; }
.hero .shot { background: var(--tile-dark); padding: 14px; border-radius: 10px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.supplemental-library { margin-top: 44px; }
.supplemental-library, .supplemental-group { scroll-margin-top: 120px; }
.supplemental-library > h2 { margin-top: 0; }
.supplemental-library > .lede { margin-bottom: 24px; }
.supplemental-group + .supplemental-group { margin-top: 36px; }
.supplemental-group > h3 { margin: 0 0 8px; scroll-margin-top: 120px; font-size: 17px; }
.supplemental-group > .lede { margin-bottom: 14px; font-size: 14px; }
.catalog-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catalog-preview { min-width: 0; margin: 0; display: grid; gap: 6px; }
.catalog-preview figcaption {
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.catalog-preview .tile { min-height: 96px; padding: 10px; }
.catalog-preview .tile img { max-height: 72px; }
.tile {
  display: flex; align-items: center; justify-content: center;
  min-height: 132px; padding: 16px; border-radius: 8px; border: 1px solid var(--line);
}
.tile.light { background: var(--tile-light); }
.tile.dark { background: var(--tile-dark); border-color: #274C82; }
.tile img { max-width: 100%; max-height: 100px; height: auto; display: block; }
.meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.name { font-size: 13px; font-weight: 600; word-break: break-word; }
.dl {
  margin-top: auto; align-self: flex-start; display: inline-block;
  padding: 7px 13px; border-radius: 6px; background: var(--accent); color: #FFFFFF;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
}
.actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions .dl { margin-top: 0; }
.direct {
  display: inline-block; padding: 6px 0; color: var(--navy); font-size: 12px;
  font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.logout-form { display: inline-flex; margin: 0; }
.logout-form .direct {
  min-height: 44px; padding: 6px 0; border: 0; background: transparent;
  text-decoration: underline; cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard);
}
.logout-form .direct:hover { color: var(--accent-text); }
.email-card {
  padding: 20px; display: grid; gap: 18px; grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 640px) { .email-card { grid-template-columns: 1fr; } }
.email-card .tile { min-height: 110px; }
.asset-url {
  display: block; margin: 10px 0 14px; padding: 10px 12px; overflow-wrap: anywhere;
  border: 1px solid var(--line); border-radius: 6px; background: var(--page);
  color: var(--ink); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.swatch { padding: 14px; display: flex; align-items: center; gap: 12px; }
.chip { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.hex { font: 600 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
ul.notes { margin: 0; padding: 18px 18px 18px 34px; }
ul.notes li { margin: 0 0 8px; color: var(--ink); }
ul.notes li:last-child { margin-bottom: 0; }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 20px; font-size: 13px; color: var(--muted); }

/* The login is a small extension of the pack library, not a separate product surface. */
.login-page { background: var(--page); }
.login-shell {
  min-height: 100dvh; display: grid; place-items: center;
  padding: clamp(24px, 6vw, 72px) 20px;
}
.login-panel {
  position: relative; width: min(100%, 520px); overflow: hidden;
  padding: clamp(28px, 6vw, 48px); border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); box-shadow: var(--shadow-deep);
  animation: login-enter var(--motion-enter) var(--ease-standard) both;
}
.login-panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: var(--navy);
}
.login-panel::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 22%; height: 6px;
  background: var(--accent);
}
.login-wordmark {
  display: inline-block; margin: 0 0 44px; color: var(--navy);
  font-size: 13px; font-weight: 750; letter-spacing: 0.14em; text-decoration: none;
  text-transform: uppercase;
}
.login-wordmark span { color: var(--accent-text); }
.login-panel h1 { max-width: 12ch; font-size: clamp(32px, 7vw, 48px); }
.login-intro { max-width: 48ch; margin: 0 0 28px; color: var(--body); }
.login-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink);
  transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.field input:hover { border-color: var(--muted); }
.field input:focus-visible { border-color: var(--red); box-shadow: 0 0 0 3px var(--focus-ring); outline: none; }
.login-submit {
  min-height: 48px; margin-top: 4px; padding: 12px 18px; border: 0; border-radius: 8px;
  background: var(--red); color: #FFFFFF; cursor: pointer; font-weight: 750;
  transition: background-color var(--motion-fast) var(--ease-standard), transform var(--motion-press) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.login-submit:hover { background: var(--red-hover); box-shadow: 0 10px 24px -16px #1A2333; }
.login-submit:active { transform: scale(0.98); }
.form-error {
  margin: 0 0 20px; padding: 12px 14px; border-radius: 8px;
  background: #FEE2E2; color: #991B1B; font-size: 14px; font-weight: 650;
}
.login-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

@keyframes login-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .login-shell { padding: 16px; }
  .login-panel { padding: 32px 24px 28px; }
  .login-wordmark { margin-bottom: 36px; }
}

@media (max-width: 680px) {
  .bar { align-items: flex-start; flex-direction: column; padding: 14px 20px; gap: 8px; }
  .bar nav { width: 100%; flex-wrap: wrap; gap: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-panel { animation: none; }
  .login-submit, .field input, .logout-form .direct { transition-duration: 0s; }
}
