/* theme.css - the Ocean County Skywarn look, 2026-11-19. Same idea as the other sites: one layer over Bootstrap 4 and style.css, loaded after style.css and BEFORE mobile.css
   (so the phone fixes still win). It only restyles; no page markup depends on it. Remove the <link> line from a head file to switch it off for that area.
   This site keeps its storm photo. The photo is tinted a little darker so ALL text can be white and still read well, and tables, forms and pop-ups sit on
   dark translucent panels. One accent colour (orange, taken from the Skywarn logo) is used for buttons, links and rules.
   Print and PDF pages are not restyled (they do not load style.css). */

:root {
  --sk-accent: #c2570a;
  --sk-accent-dark: #9f4606;
  --sk-accent-light: #ffb066;
  --sk-accent-rgb: 255, 176, 102;
  --sk-ink: #ffffff;
  --sk-muted: #cdd5e2;
  --sk-panel: rgba(8, 14, 28, .72);
  --sk-panel-strong: rgba(8, 14, 28, .88);
  --sk-line: rgba(255, 255, 255, .22);
  --sk-radius: 10px;
  --sk-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- base: the storm photo with a dark tint over it ---------- */
body {
  background-color: #0b1220;
  background-image: linear-gradient(rgba(6, 12, 26, .50), rgba(6, 12, 26, .50)), url("/img/background2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: var(--sk-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--sk-ink); font-weight: 600; letter-spacing: -.01em; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
a { color: var(--sk-accent-light); }
a:hover { color: #ffd2a3; text-decoration: underline; }
hr { border: 0; height: 1px; background: var(--sk-line); margin: 1rem 0; }
hr.siteLine { border: 0; height: 2px; background: var(--sk-accent-light); }
img { max-width: 100%; }
pre { color: var(--sk-ink); }
/* Bootstrap colour helpers that the old pages used on a dark photo: red, yellow and blue text becomes white or the accent */
.text-primary, .text-info, .text-site, .text-admin, .text-dark, .text-body { color: var(--sk-ink) !important; }
/* the red and orange text (brand name, menu links, page headings) stays as it was; headings inside forms, pop-ups and dialogs are always white */
form :is(h1, h2, h3, h4, h5, h6), .modal :is(h1, h2, h3, h4, h5, h6), body:not(:has(.navbar)) :is(h1, h2, h3, h4, h5, h6) { color: var(--sk-ink) !important; }
.text-muted, small, .small { color: var(--sk-muted) !important; }
.bg-site { background-color: transparent !important; }
.bg-info { background-color: var(--sk-accent) !important; }
.border-site { border: 1px solid var(--sk-line) !important; border-radius: 8px; }

/* ---------- top bar (public and admin) ---------- */
.navbar.navbar-light {
  position: sticky;
  top: 0;
  z-index: 1020;
  margin-top: 0 !important;
  padding: .5rem 1rem;
  background: var(--sk-panel-strong) !important;
  border-top: 3px solid var(--sk-accent-light);
  box-shadow: 0 1px 0 var(--sk-line), 0 6px 16px rgba(0, 0, 0, .3);
}
.navbar-brand { display: inline-flex; align-items: center; margin-right: .5rem; color: var(--sk-ink); font-weight: 600; }
.navbar-brand img { height: 66px; width: auto; border-radius: 6px; }
.navbar-brand span { font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.navbar h4 { margin: 0; font-size: 1.15rem; }
.navbar .navbar-nav .nav-link, .navbar-light .navbar-nav .nav-link {
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: 8px;
  white-space: nowrap;
  font-size: .92rem;
}
.navbar-light .navbar-nav .nav-link:not([class*="text-"]) { color: var(--sk-ink); }
.navbar .navbar-nav .nav-link:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.navbar-light .navbar-toggler { border: 1px solid var(--sk-line); }
.navbar-light .navbar-toggler-icon { filter: invert(1); }
.dropdown-menu { background: var(--sk-panel-strong); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); box-shadow: var(--sk-shadow); padding: .35rem; }
.dropdown-item { color: var(--sk-ink); border-radius: 6px; font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(255, 255, 255, .14); color: var(--sk-accent-light); }
.navbar-small { min-height: 0; padding: 0; height: 6px; }

/* ---------- buttons ---------- */
.btn { border-radius: 8px; font-weight: 500; transition: background .12s, color .12s, box-shadow .12s; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px rgba(var(--sk-accent-rgb), .35); }
.btn-primary, .btn-site, .btn-danger, .btn-success, .btn-info, .btn-warning {
  background: var(--sk-accent); border-color: var(--sk-accent); color: #fff;
}
.btn-primary:hover, .btn-site:hover, .btn-danger:hover, .btn-success:hover, .btn-info:hover, .btn-warning:hover { background: var(--sk-accent-dark); border-color: var(--sk-accent-dark); color: #fff; }
.btn-secondary { background: rgba(255, 255, 255, .16); border-color: var(--sk-line); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, .26); border-color: var(--sk-line); color: #fff; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger, .btn-outline-light, .btn-outline-info, .btn-outline-warning {
  border: 1px solid var(--sk-accent-light); color: var(--sk-accent-light); background: transparent;
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover, .btn-outline-light:hover, .btn-outline-info:hover, .btn-outline-warning:hover { background: var(--sk-accent); border-color: var(--sk-accent); color: #fff; }
.btn-link { color: var(--sk-accent-light); }
.btn-block + .btn-block { margin-top: .5rem; }
/* admin menu pages: one panel with big, plain, centred links (Net Tools, Posts ...) */
.card-body a.btn-lg.btn-block { border-radius: 8px; font-weight: 500; background: rgba(255, 255, 255, .10) !important; border: 1px solid var(--sk-line) !important; color: var(--sk-ink) !important; }
.card-body a.btn-lg.btn-block:hover { background: rgba(255, 255, 255, .22) !important; color: var(--sk-accent-light) !important; text-decoration: none; }
/* white title bars on the menu cards (they have bg-white in the markup) become the dark panel */
.card-header.bg-white, .card.bg-white, .bg-white.card-body { background: rgba(255, 255, 255, .08) !important; }
.card-header.bg-white h5, .card-header.bg-white h6 { color: var(--sk-ink) !important; text-shadow: none; }

/* ---------- forms: white fields with dark text (easy to read), white labels ---------- */
label { font-weight: 500; color: var(--sk-ink); margin-bottom: .25rem; }
.form-control, .custom-select, select.form-control {
  background-color: #fff; border: 1px solid #c8cfda; border-radius: 8px; color: #1e2530;
}
.form-control::placeholder { color: #6a7280; }
.form-control:focus, .custom-select:focus { border-color: var(--sk-accent-light); box-shadow: 0 0 0 3px rgba(var(--sk-accent-rgb), .3); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--sk-accent); }
.input-group-text { border-radius: 8px; background: rgba(255, 255, 255, .16); border-color: var(--sk-line); color: var(--sk-ink); font-weight: 500; }
.invalid-feedback { font-size: .8rem; color: #ffb3b3; }
.alert { border-radius: var(--sk-radius); border-width: 1px; background: var(--sk-panel-strong); color: var(--sk-ink); }
.alert-danger { border-color: #ff8f8f; border-left: 4px solid #ff8f8f; }
.alert-success { border-color: #7ad9a0; border-left: 4px solid #7ad9a0; }
.alert-warning, .alert-info { border-color: var(--sk-accent-light); border-left: 4px solid var(--sk-accent-light); }
.alert a { color: var(--sk-accent-light); }

/* ---------- tables, cards, lists, modals ---------- */
.table {
  color: var(--sk-ink);
  background: var(--sk-panel);
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--sk-line);
  border-radius: var(--sk-radius);
  box-shadow: var(--sk-shadow);
  overflow: hidden;
}
.table thead th, .table th {
  border-top: 0;
  border-bottom: 1px solid var(--sk-line);
  background: rgba(255, 255, 255, .08);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--sk-muted);
}
.table td { border-top: 1px solid var(--sk-line); vertical-align: middle; color: var(--sk-ink); }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .10); }
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table-borderless { box-shadow: none; border: 0; background: transparent; }
.table-borderless tbody tr:hover { background: transparent; }
.table-responsive { border-radius: var(--sk-radius); }
.table th small, .table th .text-info { color: var(--sk-muted) !important; }
.card { color: var(--sk-ink); background: var(--sk-panel); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); box-shadow: var(--sk-shadow); }
.card-header { background: rgba(255, 255, 255, .08); color: var(--sk-ink); border-bottom: 1px solid var(--sk-line); border-radius: var(--sk-radius) var(--sk-radius) 0 0; }
.card-header h5, .card-header h6 { margin: 0; }
.list-group-item { background: var(--sk-panel); color: var(--sk-ink); border-color: var(--sk-line); }
.modal-content { background: var(--sk-panel-strong); color: var(--sk-ink); border: 1px solid var(--sk-line); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.modal-header, .modal-footer { border-color: var(--sk-line); }
.modal-header .close, .close { color: #fff; text-shadow: none; opacity: .8; }
.badge { font-weight: 600; }
.badge-danger { border-radius: 999px; background: var(--sk-accent); }
.bg-post { background-color: var(--sk-panel); border-radius: 8px; }
.bg-reply { background-color: rgba(255, 255, 255, .10); border-radius: 8px; }
.img-thumbnail { background: rgba(255, 255, 255, .85); border: 1px solid var(--sk-line); border-radius: 8px; }
button.img-thumbnail img, .img-thumbnail > img { max-width: none; height: auto; }
td:has(> button.img-thumbnail) { white-space: nowrap; }

/* ---------- sign-in, forgot and reset pages: one clean panel ---------- */
#login .col-md-6.ml-auto, #login .col-md-6 {
  background: var(--sk-panel-strong);
  border: 1px solid var(--sk-line);
  border-radius: 14px;
  box-shadow: var(--sk-shadow);
  padding: 1.5rem !important;
}
#login h4 em { font-style: normal; }
#login img { height: 96px; width: auto; border-radius: 6px; }

/* ---------- pop-up windows (pages with no top bar): a dark panel over the tinted photo, centred headings with a small accent rule ---------- */
body:not(:has(.navbar)) :is(h4, h5) { text-align: center; margin-top: .75rem; }
body:not(:has(.navbar)) :is(h4, h5)::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: .5rem auto .25rem;
  background: var(--sk-accent-light);
  border-radius: 2px;
}
body:not(:has(.navbar)) .btn { min-width: 7rem; }
body:not(:has(.navbar)) { padding: .5rem .75rem 1rem; }

/* a few public pages put a Bootstrap row straight into the page (no container), which is 15 px wider than the window: no sideways scroll */
body { overflow-x: hidden; }

/* ---------- footer ---------- */
footer, .main-footer { color: var(--sk-muted); font-size: .85rem; }
footer a { color: var(--sk-accent-light); }

/* ---------- phones ---------- */
@media (max-width: 575px) {
  .navbar-brand img { height: 48px; }
}
