/* Shared site-wide dark mode. Keeps agency danger/status colors meaningful. */
.scofmp-theme-toggle{position:fixed;bottom:18px;right:18px;z-index:9999;display:flex;align-items:center;gap:7px;padding:10px 15px;background:#1f3b4c;color:#fff;border:1px solid #7794a0;border-radius:999px;box-shadow:0 4px 15px #0004;cursor:pointer;font:600 13px Arial,sans-serif}
.scofmp-theme-toggle:hover,.scofmp-theme-toggle:focus-visible{background:#326479;outline:2px solid #b9dce5;outline-offset:2px}
html[data-scofmp-theme="dark"]{color-scheme:dark;--bg:#101a22;--text:#e5edf2;--white:#182630;--nav:#2b4350;--nav-text:#f2f5f7;--nav-text-hover:#fff;--sidebar-left-bg:#202e38;--sidebar-text:#e8f0f4;--sidebar-title-color:#eaf3f7;--sidebar-link-border:#526471}
html[data-scofmp-theme="dark"] body{background:#101a22;color:#e5edf2}
html[data-scofmp-theme="dark"] .wrapper,html[data-scofmp-theme="dark"] .main-content,html[data-scofmp-theme="dark"] main,html[data-scofmp-theme="dark"] article{color:#e5edf2}
html[data-scofmp-theme="dark"] .main-content,html[data-scofmp-theme="dark"] .content,html[data-scofmp-theme="dark"] .card,html[data-scofmp-theme="dark"] .panel,html[data-scofmp-theme="dark"] .table-responsive{background-color:#182630;color:#e5edf2}
html[data-scofmp-theme="dark"] .bg-white,html[data-scofmp-theme="dark"] .bg-light,html[data-scofmp-theme="dark"] .alert-light{background-color:#20313c!important;color:#e5edf2!important}
html[data-scofmp-theme="dark"] .text-dark,html[data-scofmp-theme="dark"] .text-body,html[data-scofmp-theme="dark"] .text-muted{color:#c5d4dc!important}
html[data-scofmp-theme="dark"] a:not(.btn){color:#9bd8f1}
html[data-scofmp-theme="dark"] .sidebar-left a,html[data-scofmp-theme="dark"] .sidebar-right a{color:#e6f0f5}
html[data-scofmp-theme="dark"] table:not(.lb-table){color:#e8f0f4;background:#1a2c37}
html[data-scofmp-theme="dark"] table:not(.lb-table) th{background:#274554;color:#f2f6f9}
html[data-scofmp-theme="dark"] table:not(.lb-table) td{border-color:#4a5c67}
html[data-scofmp-theme="dark"] input,html[data-scofmp-theme="dark"] select,html[data-scofmp-theme="dark"] textarea{background:#243843;color:#edf4f7;border-color:#607683}
html[data-scofmp-theme="dark"] input::placeholder,html[data-scofmp-theme="dark"] textarea::placeholder{color:#bdcbd1}
html[data-scofmp-theme="dark"] .modal-content,html[data-scofmp-theme="dark"] .dropdown-menu{background:#20313c;color:#edf4f7}
@media(max-width:640px){.scofmp-theme-toggle{bottom:10px;right:10px;padding:9px 12px}.scofmp-theme-label{font-size:12px}}

/* V53: consistent contrast and surfaces across the public website. */
html[data-scofmp-theme="dark"] .main-content .welcome h1,
html[data-scofmp-theme="dark"] .main-content .welcome h2,
html[data-scofmp-theme="dark"] .main-content h1,
html[data-scofmp-theme="dark"] .main-content h2,
html[data-scofmp-theme="dark"] .main-content h3,
html[data-scofmp-theme="dark"] .main-content h4,
html[data-scofmp-theme="dark"] .main-content strong,
html[data-scofmp-theme="dark"] .main-content .welcome .subtitle{color:#eef5f8}
html[data-scofmp-theme="dark"] .main-content .welcome .datetime{color:#a9c0cc}
html[data-scofmp-theme="dark"] .main-content .welcome-rule{border-color:#486170;background:#486170}
.scofmp-longboard-callout{margin:14px 0 20px;padding:18px 22px;border:1px solid #cbded3;border-radius:10px;background:#f1f7f3;color:#183b3a}
.scofmp-longboard-callout strong{color:inherit}
.scofmp-longboard-callout a{color:#126e91}
html[data-scofmp-theme="dark"] .scofmp-longboard-callout{background:#203744;border-color:#4c6a79;color:#ecf6f9}
html[data-scofmp-theme="dark"] .scofmp-longboard-callout a{color:#9cdbf3}
html[data-scofmp-theme="dark"] .main-content :is(.fires-section,.sr-section,.ar-section,.rx-section,.tr-section){background:#1c2d38;border-color:#47606b;box-shadow:none}
html[data-scofmp-theme="dark"] .main-content :is(.fires-table,.sr-table,.ar-table,.rx-table,.tr-table) thead th{background:#2b4553;color:#eef6f9}
html[data-scofmp-theme="dark"] .main-content :is(.fires-table,.sr-table,.ar-table,.rx-table,.tr-table) tbody tr:nth-child(even){background:#233846}
html[data-scofmp-theme="dark"] .main-content :is(.fires-table,.sr-table,.ar-table,.rx-table,.tr-table) tbody tr:hover{background:#305061}
html[data-scofmp-theme="dark"] .main-content :is(.fires-table,.sr-table,.ar-table,.rx-table,.tr-table) tbody td{border-color:#3c5360}
html[data-scofmp-theme="dark"] .main-content :is(.fires-table,.sr-table,.ar-table,.rx-table,.tr-table){color:#e6f0f4}
html[data-scofmp-theme="dark"] .main-content .fires-section :is(.status,.status-box,.status-card,.fire-status){color:#203b28}
html[data-scofmp-theme="dark"] .main-content .fires-section :is(.status,.status-box,.status-card,.fire-status) strong{color:inherit}
html[data-scofmp-theme="dark"] .main-content .fires-section :is(.status,.status-box,.status-card,.fire-status) a{color:#154f66}
html[data-scofmp-theme="dark"] .main-content :is(.bg-white,.bg-light){background-color:#233846!important;color:#eef5f8!important}
html[data-scofmp-theme="dark"] .main-content :is(.bg-white,.bg-light) strong{color:inherit}
html[data-scofmp-theme="dark"] .under-bar .tab-link:hover{color:#f5f8fa!important;background:#36505d}
html[data-scofmp-theme="dark"] .under-bar .tab-link.active{background:#121e27;color:#fff!important}


/* V54: Training tables and general chart/table readability */
html[data-scofmp-theme="dark"] .tr-section,
html[data-scofmp-theme="dark"] .tr-table-wrap {background:#172b37!important;border-color:#49616d!important;color:#e8f2f6!important}
html[data-scofmp-theme="dark"] .tr-section-header{background:#244b59!important}
html[data-scofmp-theme="dark"] .tr-section-header h2{color:#fff!important}
html[data-scofmp-theme="dark"] .tr-table{background:#172b37!important;color:#e8f2f6!important}
html[data-scofmp-theme="dark"] .tr-table thead th{background:#294958!important;color:#f7fbfd!important;border-color:#607986!important}
html[data-scofmp-theme="dark"] .tr-table tbody td,
html[data-scofmp-theme="dark"] .tr-table tbody th{color:#e8f2f6!important;border-color:#405d6c!important;background:transparent!important}
html[data-scofmp-theme="dark"] .tr-table tbody tr{background:#1b303d!important;border-color:#405d6c!important}
html[data-scofmp-theme="dark"] .tr-table tbody tr:nth-child(even){background:#294452!important}
html[data-scofmp-theme="dark"] .tr-table tbody tr:hover{background:#355b6a!important}
html[data-scofmp-theme="dark"] .tr-table tbody td a{color:#a6e3ff!important}
html[data-scofmp-theme="dark"] .tr-note,
html[data-scofmp-theme="dark"] .tr-announce-body{background:#203846!important;color:#e8f2f6!important;border-color:#476474!important}
html[data-scofmp-theme="dark"] .past-divider-row td{background:#244b3d!important;color:#f2fff6!important}
html[data-scofmp-theme="dark"] .past-divider-btn{color:#b5e7c3!important;border-color:#8fd1a3!important}
html[data-scofmp-theme="dark"] .tr-empty{color:#b4c8d2!important}
html[data-scofmp-theme="dark"] .main-content table:not(.lb-table):not(.tr-table) tbody td,
html[data-scofmp-theme="dark"] .main-content table:not(.lb-table):not(.tr-table) tbody th{color:#e9f2f6}
html[data-scofmp-theme="dark"] .main-content table:not(.lb-table):not(.tr-table) tbody tr:nth-child(even){background-color:#294250}
html[data-scofmp-theme="dark"] .main-content table:not(.lb-table):not(.tr-table) tbody tr:nth-child(odd){background-color:#1c303d}
html[data-scofmp-theme="dark"] .main-content table:not(.lb-table):not(.tr-table) tbody tr:hover{background-color:#355768}
@media print{
 html[data-scofmp-theme="dark"] .tr-table tbody td,
 html[data-scofmp-theme="dark"] .tr-table tbody th{color:#111!important;background:#fff!important}
 html[data-scofmp-theme="dark"] .tr-table thead th{color:#111!important;background:#eee!important}
}
