:root {
  --uc-red: #e30e13;
  --uc-blue: #004775;
  --uc-dark-grey: #222323;
  --uc-grey: #878787;
  --uc-light-grey: #f8f9fa;

  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #3B3735;
  --text-muted: #878787;
  --accent: var(--uc-red);
  --accent-dark: #b80b0f;
  --accent-blue: var(--uc-blue);
  --border: #878787;
  --line-border: #b80b0f;
  --sidebar-width: 260px;
  --header-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--uc-dark-grey);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 3rem 1rem 2rem 1.5rem;
  z-index: 100;
  border-bottom: 3px solid var(--uc-red);
}
.site-header .logo {
  height: 36px;
  margin-right: 1.2rem;
}
.site-header h1 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; }
.site-header .subtitle { font-size: 0.85rem; color: #adb5bd; margin-left: 1rem; }

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  z-index: 50;
}
.sidebar a {
  display: block;
  padding: 0.55rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar a:hover { background: #e9ecef; border-left-color: var(--uc-red); }
.sidebar a.active { color: var(--uc-red); font-weight: 600; border-left-color: var(--uc-red); background: #fce4e4; }
.sidebar .section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 1rem 1.5rem 0.3rem;
  font-weight: 700;
}

/* MAIN CONTENT */
.main {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 2.5rem 3rem 4rem;
}

/* TYPOGRAPHY */
h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--uc-dark-grey); }
h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--line-border); color: var(--uc-dark-grey); }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.8rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; margin-top: 1.2rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

a { color: var(--accent-blue); }
a:hover { color: #003356; }

/* TABLES */
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border: 1px solid var(--border); }
th { background: var(--uc-dark-grey); color: #fff; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:nth-child(even) { background: var(--bg-alt); }

/* CALLOUTS */
.callout { padding: 1rem 1.2rem; border-radius: 6px; margin-bottom: 1.5rem; border-left: 4px solid; }
.callout-info { background: #e7f1ff; border-color: var(--accent-blue); }
.callout-warn { background: #fff3cd; border-color: #ffc107; }
.callout-danger { background: #f8d7da; border-color: var(--uc-red); }
.callout-success { background: #d1e7dd; border-color: #198754; }
.callout > strong:first-child { display: block; margin-bottom: 0.3rem; }

/* FLOW STEPS */
.flow-step { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.flow-step .step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--uc-red);
  color: #fff; font-weight: 700; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; margin-right: 1rem; margin-top: 0.1rem;
}
.flow-step .step-content { flex: 1; }
.flow-step .step-content strong:first-child { display: block; margin-bottom: 0.2rem; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--accent-blue); text-decoration: none; }

/* FAQ */
.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { font-size: 1.05rem; margin-top: 0; margin-bottom: 0.4rem; color: var(--uc-dark-grey); }
.faq-item p { margin-bottom: 0.5rem; }

/* FEATURE LIST */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; }
.feature-bullet { color: var(--uc-red); font-weight: 700; flex-shrink: 0; margin-top: 0.15rem; }

/* PRINT STYLES */
@media print {
  .sidebar, .site-header { display: none; }
  .main { margin: 0; padding: 1cm; max-width: none; }
  body { font-size: 11pt; }
  h1 { font-size: 20pt; }
  h2 { font-size: 16pt; page-break-after: avoid; }
  h3 { font-size: 13pt; page-break-after: avoid; }
  table { page-break-inside: avoid; font-size: 9pt; }
  .callout { page-break-inside: avoid; }
  .faq-item { page-break-inside: avoid; }
  a { color: var(--text); text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: var(--text-muted); }
  .no-print-url::after { content: none; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
}
