/* GOM adaptation of the CCISS / bcgov Bootstrap 5 theme.
   See vendor/THEME-SOURCES.md for provenance. */
@font-face { font-family:BCSans; src:url('fonts/BCSans-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:BCSans; src:url('fonts/BCSans-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:BCSans; src:url('fonts/BCSans-Italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:BCSans; src:url('fonts/BCSans-BoldItalic.woff2') format('woff2'); font-weight:700; font-style:italic; font-display:swap; }
body { background:#fff; color:#494949; font-family:BCSans,'Noto Sans',Verdana,Arial,sans-serif; }
/* Context plots sit below trial vectors (pane 400) and never intercept input. */
#map .leaflet-speciesPlots-pane,
#map .leaflet-speciesPlots-pane * { pointer-events:none !important; }
.navbar { background:#003366 !important; border-bottom:3px solid #fcba19;
  color:white; padding:12px 0; margin-bottom:20px; box-shadow:0 2px 4px #3333; }
.navbar .navbar-brand { color:white; height:auto; padding:0; margin-right:40px; text-decoration:none; }
.bcgov-brand { display:flex; align-items:center; gap:24px; color:white; }
.navbar .navbar-toggler { border-color:#ffffff99; }
.navbar .navbar-toggler-icon { filter:none; }
.bcgov-logo { display:inline-flex; flex-shrink:0; }
.bcgov-logo img { width:155px; height:auto; }
.bcgov-title { font-size:1.55rem; font-weight:700; line-height:1.25; }
.bcgov-title span { display:block; font-size:1rem; font-weight:400; margin-top:4px; }
.well,.home-card { background:#fff; border:1px solid #ced4da; border-radius:4px; }
.trial-sidebar { padding:20px; background:#f8f9fa; }
.btn-primary { background:#38598a; border-color:#38598a; color:white; }
.btn-primary:hover,.btn-primary:active { background:#003366; border-color:#003366; color:white; }
.btn-default,.btn-secondary { background:#fff; color:#38598a; border:1px solid #38598a; }
.btn-default:hover,.btn-secondary:hover { background:#edf2f7; color:#003366; }
#main_tab { border:0; margin-bottom:0; gap:8px; }
#main_tab .nav-link { color:white; border-radius:0; font-weight:700; padding:12px 20px; }
#main_tab .nav-link:hover { color:white; background:#38598a; }
#main_tab .nav-link.active { color:white; background:#38598a; box-shadow:inset 0 -3px #fcba19; }
.home-intro { border-left:5px solid #fcba19; padding:20px 24px; margin:24px 0; }
.home-lead { display:grid; grid-template-columns:minmax(0, min(30%, 260px)) minmax(0, 1fr);
  gap:24px; align-items:stretch; padding:0; }
.home-logo-frame { position:relative; min-width:0; min-height:0; }
.home-lead-logo { position:absolute; inset:0; width:100%; height:100%;
  max-width:none; max-height:none; object-fit:contain; object-position:center; margin:0; }
.home-lead-text { margin:0; }
.home-logo-action { grid-column:1; grid-row:2; text-align:center; padding-top:8px; }
.home-logo-action .btn { max-width:100%; white-space:normal; }
@media(max-width:600px) {
  .home-lead { grid-template-columns:minmax(0, 1fr) minmax(0, 3fr); gap:16px; }
}
.home-intro h2,.home-card h3,.tree-info h4 { color:#003366; }
.home-intro > small { color:#38598a; font-weight:700; letter-spacing:.04em; }
.home-metric { background:#f1f4f8; border-top:4px solid #38598a; border-radius:4px; }
.home-metric strong { color:#003366; }
.tree-info { background:#f1f4f8; border-color:#ced4da; border-radius:4px; }
.trial-meta dt,.muted { color:#595959; }
.modal-header { background:#003366; color:white; border-bottom:3px solid #fcba19; }
.modal-header .modal-title { color:white; }
.modal-header .btn-close { filter:invert(1) grayscale(100%) brightness(200%); }
.form-control:focus,.form-select:focus,.selectize-input.focus { border-color:#38598a; box-shadow:0 0 0 3px #38598a33; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #fcba19; outline-offset:3px; }
.tree-cell:focus-visible { outline:3px solid #38598a; }
.tree-cell[aria-pressed=true] { box-shadow:inset 0 0 0 3px #38598a; }
@media(max-width:600px) {
  .bcgov-brand { gap:12px; }
  .navbar .navbar-brand { margin-right:12px; }
  .bcgov-logo img { width:110px; }
  .bcgov-title { font-size:1.25rem; }
  .bcgov-title span { font-size:.85rem; }
  #main_tab .nav-link { padding:10px 16px; }
}
