@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

:root {
  --bg: #061521;
  --panel: #0b2334;
  --line: #29485d;
  --text: #f5f1e8;
  --muted: #88a2b3;
  --gold: #f4b753;
  --cyan: #55c5eb;
  --green: #43d7a0;
  --red: #ef7c78;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(244,183,83,.08), transparent 24%),
    linear-gradient(180deg, rgba(8,23,36,.72), var(--bg) 480px),
    var(--bg);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #061521 0%, rgba(6,21,33,.93) 34%, rgba(6,21,33,.62) 72%, #061521 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 52%),
    url("/assets/champion-hero.jpg") center 16% / cover no-repeat;
  opacity: .42;
  filter: saturate(.75);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6,21,33,.08), var(--bg) 74%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.portal-header { position: sticky; z-index: 20; top: 0; height: 76px; display: flex; align-items: center; gap: 30px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid rgba(144,194,223,.18); background: rgba(6,18,29,.9); backdrop-filter: blur(18px); }
.portal-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.portal-brand img { width: 34px; height: 34px; object-fit: contain; }
.portal-brand strong { color: var(--gold); }
.portal-nav { display: flex; gap: 28px; margin-left: auto; color: #b3c5d2; font-size: 14px; }
.portal-nav a:hover { color: white; }
.portal-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 1px solid rgba(244,183,83,.5); border-radius: 6px; background: var(--gold); color: #071624; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 30px rgba(244,183,83,.16); }
.portal-action:hover { background: #ffd184; }
.portal-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 104px 0 98px; }
.portal-hero { max-width: 760px; margin-bottom: 56px; }
.portal-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portal-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.portal-hero h1 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(52px, 5.2vw, 82px); font-weight: 500; line-height: .98; letter-spacing: 0; }
.portal-hero > p:last-child, .portal-hero > p:not(.portal-kicker) { max-width: 760px; margin: 26px 0 0; color: #c1d2dc; font-size: 18px; line-height: 1.7; }
.docs-hero { max-width: 920px; }
.doc-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.doc-quick-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid rgba(85,197,235,.35); border-radius: 6px; background: rgba(8,28,43,.74); color: #d8f3ff; font-size: 12px; font-weight: 800; }
.doc-quick-actions a:hover { border-color: rgba(244,183,83,.65); color: white; }
.status-summary, .portal-card, .link-card { border: 1px solid rgba(85,197,235,.25); border-radius: 8px; background: linear-gradient(145deg, rgba(15,45,66,.9), rgba(8,28,43,.96)); box-shadow: 0 22px 70px rgba(0,0,0,.18); }
.status-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding: 24px; }
.status-light { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; background: #6d8190; box-shadow: 0 0 0 7px rgba(109,129,144,.1); }
.status-light.online { background: var(--green); box-shadow: 0 0 0 7px rgba(67,215,160,.11); }
.status-light.issue { background: var(--red); box-shadow: 0 0 0 7px rgba(239,124,120,.11); }
.status-summary h2 { margin: 0 0 5px; font-size: 20px; }
.status-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.status-time { margin-left: auto; color: #6f8b9d; font-size: 11px; }
.status-grid, .link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.status-service { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 20px; }
.status-icon, .link-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #345b73; border-radius: 7px; color: var(--cyan); }
.status-icon svg, .link-icon svg { width: 20px; }
.status-service h3 { margin: 0 0 5px; font-size: 14px; }
.status-service p { margin: 0; color: var(--muted); font-size: 11px; }
.status-pill { padding: 7px 10px; border-radius: 999px; background: rgba(109,129,144,.12); color: #9db0bc; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-pill.online { background: rgba(67,215,160,.1); color: var(--green); }
.status-pill.issue { background: rgba(239,124,120,.1); color: var(--red); }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; }
.doc-sidebar { position: sticky; top: 98px; align-self: start; display: grid; gap: 6px; }
.doc-sidebar a { padding: 12px 13px; border-left: 2px solid transparent; border-radius: 5px; color: #a2b9c8; font-size: 12px; font-weight: 700; }
.doc-sidebar a:hover { border-left-color: var(--gold); background: var(--panel); color: white; }
.doc-content { display: grid; gap: 18px; }
.doc-section { scroll-margin-top: 96px; padding: 30px; }
.doc-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.doc-section-title span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(85,197,235,.35); border-radius: 6px; background: rgba(85,197,235,.08); color: var(--cyan); font-size: 11px; font-weight: 900; }
.doc-section h2 { margin: 0 0 8px; font-size: 24px; }
.doc-section h3 { margin: 22px 0 7px; font-size: 14px; color: var(--cyan); }
.doc-section p, .doc-section li { color: var(--muted); font-size: 13px; line-height: 1.7; }
.doc-section ol, .doc-section ul { margin-bottom: 0; padding-left: 20px; }
.doc-section code { padding: 2px 5px; border-radius: 4px; background: #061724; color: var(--gold); }
.doc-note { padding: 12px 14px; border: 1px solid rgba(244,183,83,.28); border-radius: 6px; background: rgba(244,183,83,.07); color: #dcc48c !important; }
.doc-steps, .doc-grid, .doc-data-list, .confidence-row { display: grid; gap: 12px; margin-top: 18px; }
.doc-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doc-steps div, .doc-grid article, .doc-data-list div, .confidence-row div { border: 1px solid rgba(74,112,136,.75); border-radius: 7px; background: rgba(4,18,29,.35); padding: 16px; }
.doc-steps strong, .doc-data-list strong, .confidence-row strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 13px; }
.doc-steps p, .doc-grid p, .doc-data-list span, .confidence-row span { display: block; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.doc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-data-list { grid-template-columns: 1fr; }
.confidence-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.confidence-row div:nth-child(1) { border-color: rgba(85,197,235,.35); }
.confidence-row div:nth-child(2) { border-color: rgba(244,183,83,.35); }
.confidence-row div:nth-child(3) { border-color: rgba(67,215,160,.35); }
.doc-section details { border-top: 1px solid rgba(74,112,136,.55); padding: 14px 0; }
.doc-section details:first-of-type { margin-top: 12px; }
.doc-section summary { cursor: pointer; color: var(--text); font-size: 14px; font-weight: 800; }
.doc-section details p { margin-bottom: 0; }
.link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-card { min-height: 205px; display: flex; flex-direction: column; padding: 24px; color: var(--text); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.link-card:hover { transform: translateY(-3px); border-color: #426b84; }
.link-icon { width: 45px; height: 45px; margin-bottom: 28px; }
.link-card h2 { margin: 0 0 7px; font-size: 17px; }
.link-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.link-card .link-label { margin-top: auto; padding-top: 22px; color: var(--gold); font-size: 11px; font-weight: 800; }
.portal-footer { padding: 28px 20px; border-top: 1px solid var(--line); color: #6f8999; font-size: 11px; text-align: center; }
.copy-feedback { min-height: 18px; margin-top: 14px; color: var(--green); font-size: 11px; }
@media (max-width: 760px) {
  .portal-header { height: 66px; padding: 0 16px; }
  .portal-nav { display: none; }
  .portal-action { margin-left: auto; }
  .portal-main { width: min(100% - 28px, 1180px); padding-top: 46px; }
  .status-grid, .link-grid { grid-template-columns: 1fr; }
  .status-summary { align-items: flex-start; }
  .status-time { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-steps, .doc-grid.two, .confidence-row { grid-template-columns: 1fr; }
}
