/*
 * RCC visual source of truth.
 *
 * ClusterDocs-3 (MkDocs Material) is the reference visual grammar for RCC web
 * surfaces: compact primary app bar, light navigation/content surfaces,
 * restrained elevation, small radii, clear typography and Material-like
 * controls. Product-specific layouts may extend these primitives but must not
 * reintroduce a competing dark-rail or large marketing-card design system.
 *
 * Keep this file dependency-free and safe to serve as static CSS. Copies are
 * synchronized by scripts/sync-rcc-branding.py.
 */
:root {
  color-scheme: light;
  --rcc-navy: #4051b5;
  --rcc-navy-2: #303f9f;
  --rcc-cyan: #536dfe;
  --rcc-cyan-light: #eef0ff;
  --rcc-cyan-strong: #3f51b5;
  --rcc-green: #2e7d32;
  --rcc-red: #c62828;
  --rcc-amber: #9a6700;
  --rcc-ink: rgba(0, 0, 0, .87);
  --rcc-muted: rgba(0, 0, 0, .60);
  --rcc-line: #e0e0e0;
  --rcc-paper: #ffffff;
  --rcc-background: #f5f5f5;
  --rcc-surface-start: #ffffff;
  --rcc-topbar-surface: #4051b5;
  --rcc-border-soft: #e0e0e0;
  --rcc-border-topbar: rgba(0, 0, 0, .12);
  --rcc-hero-end: #4051b5;
  --rcc-hero-text: rgba(0, 0, 0, .60);
  --rcc-status-dot: #2e7d32;
  --rcc-success-bg: #edf7ed;
  --rcc-success-text: #1b5e20;
  --rcc-error-bg: #fdecea;
  --rcc-error-text: #b71c1c;
  --rcc-warning-bg: #fff8e1;
  --rcc-warning-text: #6d4c00;
  --rcc-unknown-bg: #f5f5f5;
  --rcc-unknown-text: rgba(0, 0, 0, .60);
  --rcc-input-border: #757575;
  --rcc-surface-sunken: #fafafa;
  --rcc-focus-ring: rgba(63, 81, 181, .24);
  --rcc-code-bg: #f5f5f5;
  --rcc-code-border: #e0e0e0;
  --rcc-success-border: #a5d6a7;
  --rcc-error-border: #ef9a9a;
  --rcc-warning-border: #ffe082;
  --rcc-danger-bg: #fff8f8;
  --rcc-danger-severe-border: #ef9a9a;
  --rcc-status-dot-halo: rgba(46, 125, 50, .14);
  --rcc-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  --rcc-shadow-sm: 0 1px 3px rgba(0, 0, 0, .12);
  --rcc-radius-button: 4px;
  --rcc-radius-icon: 4px;
  --rcc-radius-card: 4px;
  --rcc-radius-panel: 6px;
  --rcc-radius-hero: 6px;
  --rcc-radius-pill: 999px;
  --rcc-font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: var(--rcc-navy);
  --navy-2: var(--rcc-navy-2);
  --cyan: var(--rcc-cyan);
  --cyan-light: var(--rcc-cyan-light);
  --cyan-strong: var(--rcc-cyan-strong);
  --green: var(--rcc-green);
  --red: var(--rcc-red);
  --amber: var(--rcc-amber);
  --ink: var(--rcc-ink);
  --muted: var(--rcc-muted);
  --line: var(--rcc-line);
  --paper: var(--rcc-paper);
  --background: var(--rcc-background);
  --shadow: var(--rcc-shadow);
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("InterVariable.woff2") format("woff2");
}
.rcc-brand { color: var(--rcc-ink); font-family: var(--rcc-font-family); font-synthesis: none; }
.rcc-brand a:where(:not(.button, .rcc-button)) { color: var(--rcc-navy); text-underline-offset: 3px; }
.rcc-brand a:where(:not(.button, .rcc-button)):hover { color: var(--rcc-navy-2); }
.rcc-brand .rcc-button,
.rcc-brand button.rcc-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 36px; padding: .55rem .9rem; border: 1px solid transparent;
  border-radius: var(--rcc-radius-button); background: var(--rcc-navy); color: var(--rcc-paper);
  box-shadow: var(--rcc-shadow-sm); font: 600 .9rem var(--rcc-font-family); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
}
.rcc-brand .rcc-button:hover,
.rcc-brand button.rcc-button:hover { background: var(--rcc-navy-2); color: var(--rcc-paper); }
.rcc-brand .rcc-button-secondary { background: var(--rcc-paper); border-color: var(--rcc-line); color: var(--rcc-navy); box-shadow: none; }
.rcc-brand .rcc-button-secondary:hover { background: var(--rcc-surface-sunken); border-color: #bdbdbd; }
.rcc-brand .rcc-card { background: var(--rcc-paper); border: 1px solid var(--rcc-line); border-radius: var(--rcc-radius-card); box-shadow: var(--rcc-shadow-sm); }
.rcc-brand .rcc-eyebrow { color: var(--rcc-navy); font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.rcc-brand .rcc-status-active { background: var(--rcc-success-bg); color: var(--rcc-success-text); }
.rcc-brand .rcc-status-warning { background: var(--rcc-warning-bg); color: var(--rcc-warning-text); }
.rcc-brand .rcc-status-critical { background: var(--rcc-error-bg); color: var(--rcc-error-text); }
.rcc-brand .breadcrumbs { max-width: 1220px; margin: 0 auto; padding: .75rem 0 0; color: var(--rcc-muted); font-size: .82rem; }
.rcc-brand .breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.rcc-brand .breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.rcc-brand .breadcrumbs li + li::before { content: "/"; color: #bdbdbd; }
.rcc-brand .breadcrumbs a { font-weight: 500; text-decoration: none; }
.rcc-brand .breadcrumbs [aria-current="page"] { color: var(--rcc-ink); font-weight: 600; }
.rcc-brand .topbar { background: var(--rcc-navy); color: var(--rcc-paper); border-bottom: 1px solid var(--rcc-border-topbar); box-shadow: 0 1px 2px rgba(0,0,0,.18); backdrop-filter: none; }
.rcc-brand .topbar .brand-copy strong { color: var(--rcc-paper); }
.rcc-brand .topbar .brand-copy span { color: rgba(255,255,255,.75); }
.rcc-brand .topbar .brand-copy { border-left-color: rgba(255,255,255,.28); }
.rcc-brand .topbar .nav a { color: rgba(255,255,255,.90); border-radius: var(--rcc-radius-button); font-weight: 500; }
.rcc-brand .topbar .nav a:hover { background: #5766be; color: var(--rcc-paper); }
.rcc-brand .topbar .nav .current { background: #5f6dc1; color: var(--rcc-paper); font-weight: 650; }
.rcc-brand .topbar .nt { color: rgba(255,255,255,.68); }

/* SFTPGo is a third-party surface. These high-specificity rules operate only
 * through its supported extra_css branding hook and intentionally leave vendor
 * templates/behavior untouched. They supersede the older RCC 20px-card skin
 * while preserving the existing light-theme/dark-collapse guard. */
html body.app-blank { background: var(--rcc-background) !important; color: var(--rcc-ink); }
html body.app-blank #app_root .bg-body.rounded,
html #app_root .card,
html #app_root .modal-content,
html #app_root .dropdown-menu {
  border: 1px solid var(--rcc-line) !important;
  border-radius: var(--rcc-radius-card) !important;
  box-shadow: var(--rcc-shadow-sm) !important;
}
html #app_root .btn { border-radius: var(--rcc-radius-button) !important; font-weight: 600; }
html #app_root .btn-primary,
html body.app-blank #sign_in_form .btn-primary { background: var(--rcc-navy) !important; border-color: var(--rcc-navy) !important; }
html #app_root .btn-primary:hover,
html #app_root .btn-primary:focus,
html body.app-blank #sign_in_form .btn-primary:hover,
html body.app-blank #sign_in_form .btn-primary:focus { background: var(--rcc-navy-2) !important; border-color: var(--rcc-navy-2) !important; }
html #app_root .form-control,
html #app_root .form-select { border-radius: var(--rcc-radius-button) !important; }
