/* theme.css - the ARRL SNJ look, 2026-11-20. 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.
   One accent colour (the ARRL navy) is used for the public site AND the secure area (snjsec). The public pages keep their two navy banner bars; the secure area keeps its white top bar.
   Print and PDF pages are not restyled (they do not load style.css). */

:root {
  --sj-accent: #17357f;
  --sj-accent-dark: #0f2559;
  --sj-accent-rgb: 23, 53, 127;
  --sj-accent-soft: #eef2fa;
  --sj-ink: #1e2530;
  --sj-muted: #6a7280;
  --sj-line: #e4e7ec;
  --sj-bg: #f5f6f8;
  --sj-surface: #ffffff;
  --sj-radius: 10px;
  --sj-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
}

/* ---------- base ---------- */
body {
  background: var(--sj-bg);
  color: var(--sj-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(--sj-ink); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--sj-accent); }
a:hover { color: var(--sj-accent-dark); text-decoration: underline; }
hr { border: 0; height: 1px; background: var(--sj-line); margin: 1rem 0; }
img { max-width: 100%; }
.text-site, .text-primary { color: var(--sj-accent) !important; }
.text-muted, small, .small { color: var(--sj-muted); }
.bg-site { background-color: var(--sj-accent) !important; color: #fff; }
.border-site { border: 1px solid var(--sj-line) !important; border-radius: 8px; }
.site-brand { color: var(--sj-ink); font-weight: 600; text-decoration: none; }

/* ---------- top bars ---------- */
/* public pages: two navy bars (brand, then the menu) */
.navbar.navbar-dark.bg-site { background: var(--sj-accent) !important; }
.navbar-dark .navbar-brand, .navbar-dark .navbar-brand span { color: #fff; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, .92); font-weight: 500; padding: .45rem .7rem; border-radius: 8px; }
.navbar-dark .navbar-nav { flex-wrap: wrap; }
.navbar-dark .navbar-nav .nav-link { white-space: nowrap; }
.navbar-dark .navbar-nav .nav-link:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.navbar-dark .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
/* secure area: white bar with the navy brand, sticky */
.navbar.navbar-light {
  position: sticky;
  top: 0;
  z-index: 1020;
  margin-top: 0 !important;
  padding: .5rem 1rem;
  background: var(--sj-surface) !important;
  border-top: 3px solid var(--sj-accent);
  box-shadow: 0 1px 0 var(--sj-line), 0 6px 16px rgba(16, 24, 40, .04);
}
.navbar-light .navbar-nav .nav-link { color: var(--sj-accent) !important; font-weight: 500; border-radius: 8px; }
.navbar-light .navbar-nav .nav-link:hover { background: var(--sj-accent-soft); text-decoration: none; }
.navbar-light .navbar-toggler { border: 1px solid var(--sj-line); }
.navbar-brand { display: inline-flex; align-items: center; margin-right: .5rem; font-weight: 600; }
.navbar-brand img { height: 72px; width: auto; background: #fff; border-radius: 6px; }
.navbar-light .navbar-brand img { height: 56px; background: transparent; }
.navbar-brand font { font-size: inherit !important; }
.navbar-brand span { font-size: clamp(1.1rem, 2.4vw, 1.8rem); letter-spacing: -.01em; }
.navbar-light .navbar-brand span { font-size: 1.05rem; white-space: nowrap; }
/* the secure area menu has nine items: keep each on one line */
.navbar-light .navbar-nav .nav-link { white-space: nowrap; padding: .4rem .5rem; font-size: .9rem; }
/* below a wide desktop the secure-area menu drops onto its own row under the brand, and wraps whole items if it is still too long */
.navbar-light .navbar-nav { flex-wrap: wrap; }
@media (max-width: 1299.98px) and (min-width: 576px) {
  .navbar-light > .container-fluid { flex-wrap: wrap; }
  .navbar-light > .container-fluid > .navbar-collapse { flex-basis: 100%; margin-top: .25rem; }
  .navbar-light .navbar-nav.ml-auto { margin-left: 0 !important; }
}
.navbar-thin { min-height: 0; padding: 0; }
.dropdown-menu { border: 1px solid var(--sj-line); border-radius: var(--sj-radius); box-shadow: var(--sj-shadow); padding: .35rem; }
.dropdown-item { border-radius: 6px; font-weight: 500; }
.dropdown-item:hover { background: var(--sj-accent-soft); }

/* ---------- 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(--sj-accent-rgb), .18); }
.btn-primary, .btn-site, .btn-danger, .btn-success, .btn-info {
  background: var(--sj-accent); border-color: var(--sj-accent); color: #fff; font-weight: 500;
}
.btn-primary:hover, .btn-site:hover, .btn-danger:hover, .btn-success:hover, .btn-info:hover { background: var(--sj-accent-dark); border-color: var(--sj-accent-dark); color: #fff; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger {
  border: 1px solid var(--sj-accent); color: var(--sj-accent); background: var(--sj-surface);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover { background: var(--sj-accent); color: #fff; }
.btn-link { color: var(--sj-accent); }
.btn-block + .btn-block { margin-top: .5rem; }
/* the many white buttons with a red border and red text (Edit, Add, Manage ...) take the accent colour */
.btn.border-danger { border-color: var(--sj-accent) !important; }
.btn.text-danger { color: var(--sj-accent) !important; }
.btn.border-danger:hover, .btn.text-danger:hover { background: var(--sj-accent) !important; color: #fff !important; }
.btn.border-warning { border-color: var(--sj-accent) !important; }
.btn.border-site.text-site { background: var(--sj-accent); color: #fff !important; border-color: var(--sj-accent) !important; }
.btn.border-site.text-site:hover { background: var(--sj-accent-dark); }
/* admin menu pages: one card with big, plain, centred links (EC Tools, SEC Tools, ...) */
.card-body a.btn-lg.btn-block { border-radius: 8px; font-weight: 500; }
.card-body a.btn-lg.btn-block:hover { background: var(--sj-accent-soft) !important; color: var(--sj-accent) !important; text-decoration: none; }

/* ---------- forms ---------- */
label { font-weight: 500; color: var(--sj-ink); margin-bottom: .25rem; }
.form-control, .custom-select, select.form-control { border: 1px solid #d0d5dd; border-radius: 8px; color: var(--sj-ink); }
.form-control:focus, .custom-select:focus { border-color: var(--sj-accent); box-shadow: 0 0 0 3px rgba(var(--sj-accent-rgb), .15); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--sj-accent); }
.input-group-text { border-radius: 8px; background: var(--sj-accent-soft); border-color: #d0d5dd; color: var(--sj-accent); font-weight: 500; }
.alert { border-radius: var(--sj-radius); border-width: 1px; }
.alert-danger { background: #fdf0f0; border-color: #f2c4c4; color: #8a1c1c; }
.alert-success { background: #eef8f1; border-color: #bfe3cb; color: #1c6b3a; }
.invalid-feedback { font-size: .8rem; }

/* ---------- tables and cards ---------- */
.table {
  background: var(--sj-surface);
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--sj-line);
  border-radius: var(--sj-radius);
  box-shadow: var(--sj-shadow);
  overflow: hidden;
}
.table thead th, .table th {
  border-top: 0;
  border-bottom: 1px solid var(--sj-line);
  background: #fafbfc;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--sj-muted);
}
.table td { border-top: 1px solid var(--sj-line); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: var(--sj-accent-soft); }
.table-borderless { box-shadow: none; border: 0; background: transparent; }
.table-borderless tbody tr:hover { background: transparent; }
.table-responsive { border-radius: var(--sj-radius); }
.card { border: 1px solid var(--sj-line); border-radius: var(--sj-radius); box-shadow: var(--sj-shadow); background: var(--sj-surface); }
.card-header { background: var(--sj-surface); color: var(--sj-ink); border-bottom: 1px solid var(--sj-line); border-radius: var(--sj-radius) var(--sj-radius) 0 0; }
.card-header h5, .card-header h6 { margin: 0; }
.list-group-item { border-color: var(--sj-line); }
.modal-content { border: 0; border-radius: 14px; box-shadow: 0 10px 40px rgba(16, 24, 40, .2); }
.modal-header { border-bottom: 1px solid var(--sj-line); }
.badge { font-weight: 600; }
.border-table { border: 1px solid var(--sj-line); border-radius: 8px; background: #fff; }
/* icon buttons in table cells stay on one line, at their natural size */
button.img-thumbnail img, .img-thumbnail > img { max-width: none; height: auto; }
td:has(> button.img-thumbnail) { white-space: nowrap; }
.img-thumbnail { border: 1px solid var(--sj-line); border-radius: 8px; }

/* ---------- sign-in, forgot and reset pages (body class sj-plain) ---------- */
body.sj-plain { overflow-x: hidden; }
body.sj-plain #login > .container, body.sj-plain > .container {
  max-width: 560px;
  margin-top: 2rem;
  background: var(--sj-surface);
  border: 1px solid var(--sj-line);
  border-radius: 14px;
  box-shadow: var(--sj-shadow);
  padding: 1.25rem 1.5rem !important;
}
body.sj-plain #login h4 { font-size: 1.15rem; }
body.sj-plain #login h4 em { font-style: normal; }
body.sj-plain #login img { height: 72px; width: auto; }

/* ---------- pop-up windows (pages with no top bar) ---------- */
body:not(:has(.navbar)):not(.sj-plain) { background: var(--sj-surface); padding: .5rem .75rem 1rem; }
body:not(:has(.navbar)):not(.sj-plain) :is(h4, h5) { text-align: center; margin-top: .75rem; }
body:not(:has(.navbar)):not(.sj-plain) :is(h4, h5)::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: .5rem auto .25rem;
  background: var(--sj-accent);
  border-radius: 2px;
}
body:not(:has(.navbar)):not(.sj-plain) .btn { min-width: 7rem; }

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

/* ---------- phones ---------- */
@media (max-width: 575px) {
  .navbar-dark .navbar-brand { white-space: normal; max-width: calc(100% - 4.5rem); }
  .navbar-dark .navbar-brand span { font-size: 1rem; line-height: 1.25; }
  .navbar-brand img { height: 52px; }
  .navbar-light .navbar-brand img { height: 44px; }
}

/* Bootstrap's teal "info" colours (thin bars, Close buttons, small hints) follow the accent colour */
.bg-info { background-color: var(--sj-accent) !important; }
.navbar-small { min-height: 0; padding: 0; height: 6px; }
.text-info { color: var(--sj-accent) !important; }
.table th small, .table th .text-info { color: var(--sj-muted) !important; }
