/* Upload portal styles. Shares tokens and type with the corporate site
   (styles.css in the repository root) so the two read as one brand. */
:root {
  --bg: #f6f7f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #1f2328;
  --text-soft: #545d66;
  --line: rgba(31, 35, 40, 0.12);
  --accent: #6f7a80;
  --accent-deep: #465158;
  --ok: #2f7d4f;
  --warn: #9a6b00;
  --bad: #a3322b;
  --shadow: 0 18px 44px rgba(31, 35, 40, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(111, 122, 128, 0.16), transparent 30%),
    linear-gradient(180deg, #fbfcfc 0%, var(--bg) 56%, #eef1f2 100%);
  min-height: 100vh;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 247, 248, 0.82);
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
}

.navbar, .page, .site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-family: "Source Serif 4", serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.brand small {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }

.page { padding: 3rem 0 4rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1, h2, h3 { font-family: "Source Serif 4", serif; font-weight: 600; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { line-height: 1.65; color: var(--text-soft); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 1.5rem 0;
}

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .grid.two { grid-template-columns: 1fr 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 2.6rem; color: var(--text-soft); line-height: 1.6; }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-deep); color: #fff; font-weight: 600; font-size: 0.9rem;
}

label { display: block; font-weight: 600; font-size: 0.92rem; margin: 1rem 0 0.35rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(70, 81, 88, 0.45);
  outline-offset: 2px;
}
.hint { font-size: 0.85rem; margin: 0.3rem 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 600;
  border-radius: 999px; border: 1px solid var(--accent-deep);
  background: var(--accent-deep); color: #fff;
  cursor: pointer; text-decoration: none;
}
.btn.secondary { background: transparent; color: var(--accent-deep); }
.btn.small { padding: 0.45rem 0.9rem; font-size: 0.85rem; margin-top: 0; }
.btn.danger { border-color: var(--bad); background: var(--bad); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.notice { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 1rem 0; font-size: 0.95rem; }
.notice.ok { border-color: rgba(47, 125, 79, 0.4); background: rgba(47, 125, 79, 0.08); color: var(--ok); }
.notice.warn { border-color: rgba(154, 107, 0, 0.4); background: rgba(154, 107, 0, 0.08); color: var(--warn); }
.notice.bad { border-color: rgba(163, 50, 43, 0.4); background: rgba(163, 50, 43, 0.08); color: var(--bad); }
.notice:empty { display: none; }

.progress { height: 12px; border-radius: 999px; background: rgba(31, 35, 40, 0.1); overflow: hidden; margin: 1rem 0 0.5rem; }
.progress > div { height: 100%; width: 0; background: var(--accent-deep); transition: width 0.2s linear; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 1rem 0 0; font-size: 0.95rem; }
dl.facts dt { color: var(--text-soft); }
dl.facts dd { margin: 0; word-break: break-all; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(31, 35, 40, 0.08); }
.pill.ok { background: rgba(47, 125, 79, 0.14); color: var(--ok); }
.pill.warn { background: rgba(154, 107, 0, 0.14); color: var(--warn); }
.pill.bad { background: rgba(163, 50, 43, 0.14); color: var(--bad); }

.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button { font: inherit; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-strong); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
[hidden] { display: none !important; }

.secret-box { background: #1f2328; color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-top: 1rem; }
.secret-box code { display: block; word-break: break-all; margin: 0.3rem 0 0.8rem; font-size: 0.95rem; }

.site-footer { padding: 2rem 0; color: var(--text-soft); font-size: 0.85rem; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
