/* Shared SALGO surfaces: dark navigation, ivory/gold accents, light reading area. */
:root { --text-main: #202a29; --text-muted: #626e6a; --line-soft: #dfe5e2; --bs-link-color: #72591e; --bs-link-hover-color: #43330d; }
#site-header { background: #111719; border-bottom-color: #ffffff16; }
#site-header .brand-name { color: #f5f5ef; }
#site-header .nav-link { color: #bcc5c1; }
#site-header .nav-link:hover,#site-header .nav-link[aria-current='page'] { color: #fff; text-decoration-color: #cfb776; }
#site-header #headerSearch { background: #ffffff07; border-color: #ffffff26; color: #f5f5ef; }
#site-header #headerSearch::placeholder { color: #a2ada8; }
#site-header .nav-search-submit,#site-header .language-switch { color: #bcc5c1; }
#site-header .language-switch[aria-current='page'] { color: #e4c88a; }
#site-header .navbar-toggler { border-color: #ffffff30; }
#site-header .navbar-toggler-icon { filter: invert(1); }
#site-header .btn { color: #eff1ec; border: 1px solid #ffffff26; background: #ffffff08; }
#site-header .dropdown-menu { border-color: #dfe5e2; }
#site-header .dropdown-menu .dropdown-item { color: #26332e; }
#site-footer { background: #111719; color: #aebbb4; border-color: #ffffff12; }
#site-footer .brand-name,#site-footer .footer-heading { color: #eff1e9; }
#site-footer a { color: #b8c5bd; }
#site-footer a:hover { color: #e4c88a; }
#site-footer a.btn-warning { color: #20241e; background: #ddc38a; border-color: #ddc38a; }
#site-footer .footer-bottom { border-color: #ffffff1c; }
.salgo-page-hero,.salgo-doc-editor-hero,.salgo-error-hero,.awards-v2-hero,.salgo-history-hero { background: radial-gradient(ellipse at 12% 0,#b3994917,transparent 65%),#111719; color: #edf1e9; border-color: #ffffff12; padding: 50px 0 40px; }
:is(.salgo-page-hero,.salgo-doc-editor-hero,.salgo-error-hero,.awards-v2-hero,.salgo-history-hero) :is(h1,h2,.hero-title) { color: #f4f5ee; font-weight: 500; letter-spacing: -.04em; }
:is(.salgo-page-hero,.salgo-doc-editor-hero,.salgo-error-hero,.awards-v2-hero,.salgo-history-hero) :is(p,.hero-subtitle) { color: #b7c3bb; }
:is(.salgo-page-hero,.salgo-doc-editor-hero,.awards-v2-hero) :is(.btn-primary,.btn-warning) { color: #20241e; background: #ddc38a; border-color: #ddc38a; }
:is(.salgo-page-hero,.salgo-doc-editor-hero,.salgo-error-hero,.awards-v2-hero) :is(.btn-outline-secondary,.btn-outline-light,.btn-outline-primary) { color: #e0e7df; border-color: #ffffff40; }
.article-header { background: #f3f5f2; border-bottom: 1px solid #dfe5e2; }
.article-header .article-header-inner { border: 0; padding-bottom: 0; }
.article-header h1 { font-weight: 500; letter-spacing: -.04em; }
.article-deck { color: #62706a; }
.btn { border-radius: 4px; }
.btn-primary,.btn-warning { --bs-btn-bg: #1b2925; --bs-btn-border-color: #1b2925; --bs-btn-hover-bg: #30453a; --bs-btn-hover-border-color: #30453a; }
.form-control:focus,.form-select:focus { border-color: #b69c5e; box-shadow: 0 0 0 3px #cbb37320; }
.publication-row { transition: border-color .2s; }
.publication-row:hover { border-top-color: #bca465; }
.filter-chip.is-active,.filter-chip[aria-current='page'] { background: #1b2925; border-color: #1b2925; color: #f5f5ef; }
.salgo-training-card { border-color: #dfe5e2; }
.salgo-nitc-contact-card { background: #edf1ed; }
.document-attachments { background: #f5f7f4; border-color: #dce3dd; border-radius: 8px; }
.document-attachments-heading h2 { color: #26352b; }
.document-attachment + .document-attachment { border-color: #dfe6df; }
.login-page-wrapper { background: radial-gradient(ellipse at 25% 0,#b399491a,transparent 65%),#111719; }
.login-page-wrapper > .container > .row > :first-child:not(:last-child) :is(h1,h2,h3,p,li) { color: #dfe5dc; }
.login-page-wrapper .login-card { background: #fff; }
.login-page-wrapper .brand-intro :is(.text-dark,.text-secondary) { color: #dfe5dc !important; }
.login-page-wrapper .brand-intro :is(.btn-outline-secondary,.btn-outline-dark) { color: #dfe5dc; border-color: #ffffff40; }
.section-kicker { color: #8b7138; font-size: .67rem; letter-spacing: .09em; font-weight: 500; margin: 0 0 8px; }
.contest-standings { margin-top: 40px; padding-top: 32px; border-top: 1px solid #dce3dd; }
.standings-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.standings-heading h2 { font-size: 1.45rem; margin-bottom: 14px; }
.standings-heading > i { color: #9a7c38; font-size: 1.5rem; }
.standings-note { font-size: .8rem; color: #65726b; line-height: 1.8; max-width: 70ch; }
.standings-division { border: 1px solid #dce3dd; border-radius: 8px; overflow: hidden; margin-top: 22px; }
.standings-division-head { background: #14201b; color: #d9e2d8; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.standings-division-head h3 { color: #edf1e9; font-size: .95rem; margin: 0; }
.standings-division-head span { color: #bbc8bc; font-size: .72rem; }
.standings-scroll { overflow: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.standings-table :is(th,td) { padding: 13px 14px; text-align: right; border-bottom: 1px solid #e9ede7; }
.standings-table th:nth-child(2) { text-align: left; }
.standings-table thead th { background: #f3f6f1; color: #64715f; font-weight: 500; }
.standings-table tbody th { font-weight: 500; }
.standings-table a { color: #293b2b; text-decoration: none; }
.standings-table a:hover { text-decoration: underline; }
.standings-table .standings-rank { text-align: center; color: #86713d; }
.standings-table .standings-total { background: #f6f7ed; font-weight: 600; color: #3f542d; }
.standings-source { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: .68rem; color: #69776b; }
.standings-source p { margin: 0; }
@media(max-width:767.98px) {
  .salgo-page-hero,.salgo-doc-editor-hero,.salgo-error-hero,.awards-v2-hero,.salgo-history-hero { padding: 32px 0; }
  .standings-table :is(th,td) { padding: 12px; }
}
