/* theme.css - the Old Barney (obarc.org) look, 2026-11-19. Same idea as On Location and Tucker's Lab: 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.
   Each area keeps its own accent colour through a few variables: PUBLIC site = blue (the default below), ADMIN = dark red (theme-admin.css), MEMBERS = green (theme-members.css).
   Print and PDF pages are not restyled (they do not load style.css). */

:root {
  --ob-accent: #1d4f91;
  --ob-accent-dark: #143a6b;
  --ob-accent-rgb: 29, 79, 145;
  --ob-accent-soft: #eef3fa;
  --ob-ink: #1e2530;
  --ob-muted: #6a7280;
  --ob-line: #e4e7ec;
  --ob-bg: #f5f6f8;
  --ob-surface: #ffffff;
  --ob-radius: 10px;
  --ob-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
}

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

/* ---------- top bar (public, members and admin) ---------- */
.navbar.navbar-light {
  position: sticky;
  top: 0;
  z-index: 1020;
  margin-top: 0 !important;
  padding: .5rem 1rem;
  background: var(--ob-surface) !important;
  border-top: 3px solid var(--ob-accent);
  box-shadow: 0 1px 0 var(--ob-line), 0 6px 16px rgba(16, 24, 40, .04);
}
.navbar-brand { display: inline-flex; align-items: center; color: var(--ob-ink); font-weight: 600; margin-right: 1rem; }
.navbar-brand img { height: 66px; width: auto; }
.navbar-brand span { font-size: 1.05rem; letter-spacing: -.01em; color: var(--ob-ink) !important; }
.navbar .float-right { float: none !important; }
.navbar > .container-fluid > a > img.float-right, .navbar a > img[src*="arrl"] { height: 46px; width: auto; margin-left: .75rem; }
.navbar-light .navbar-nav .nav-link {
  color: var(--ob-ink) !important;
  font-weight: 500;
  padding: .45rem .7rem;
  border-radius: 8px;
}
.navbar-light .navbar-nav .nav-link:hover { background: var(--ob-accent-soft); color: var(--ob-accent) !important; text-decoration: none; }
.navbar .text-danger { color: var(--ob-accent) !important; }
.navbar-toggler { border: 1px solid var(--ob-line); }
.dropdown-menu { border: 1px solid var(--ob-line); border-radius: var(--ob-radius); box-shadow: var(--ob-shadow); padding: .35rem; }
.dropdown-item { border-radius: 6px; font-weight: 500; }
.dropdown-item:hover { background: var(--ob-accent-soft); }

/* the admin menu has nine items: keep each on one line (it wrapped "Net Tools" and "VE Sessions") */
.navbar-light .navbar-nav .nav-link { white-space: nowrap; padding: .4rem .5rem; font-size: .9rem; }
.navbar-brand { margin-right: .5rem; }
.navbar-brand span { white-space: nowrap; }

/* ---------- 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(--ob-accent-rgb), .18); }
.btn-primary, .btn-site, .btn-danger, .btn-success {
  background: var(--ob-accent); border-color: var(--ob-accent); color: #fff; font-weight: 500;
}
.btn-primary:hover, .btn-site:hover, .btn-danger:hover, .btn-success:hover { background: var(--ob-accent-dark); border-color: var(--ob-accent-dark); color: #fff; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger {
  border: 1px solid var(--ob-accent); color: var(--ob-accent); background: var(--ob-surface);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover { background: var(--ob-accent); color: #fff; }
.btn-link { color: var(--ob-accent); }

/* ---------- forms ---------- */
label { font-weight: 500; color: var(--ob-ink); margin-bottom: .25rem; }
.form-control, .custom-select, select.form-control { border: 1px solid #d0d5dd; border-radius: 8px; color: var(--ob-ink); }
.form-control:focus, .custom-select:focus { border-color: var(--ob-accent); box-shadow: 0 0 0 3px rgba(var(--ob-accent-rgb), .15); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ob-accent); }
.input-group-text { border-radius: 8px; background: var(--ob-accent-soft); border-color: #d0d5dd; color: var(--ob-accent); font-weight: 500; }
.alert { border-radius: var(--ob-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(--ob-surface);
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius);
  box-shadow: var(--ob-shadow);
  overflow: hidden;
}
.table thead th, .table th {
  border-top: 0;
  border-bottom: 1px solid var(--ob-line);
  background: #fafbfc;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--ob-muted);
}
.table td { border-top: 1px solid var(--ob-line); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: var(--ob-accent-soft); }
.table-borderless { box-shadow: none; border: 0; background: transparent; }
.table-borderless tbody tr:hover { background: transparent; }
.table-responsive { border-radius: var(--ob-radius); }
.card { border: 1px solid var(--ob-line); border-radius: var(--ob-radius); box-shadow: var(--ob-shadow); background: var(--ob-surface); }
.card-header { background: var(--ob-surface); color: var(--ob-ink); border-bottom: 1px solid var(--ob-line); border-radius: var(--ob-radius) var(--ob-radius) 0 0; }
.card-header h5, .card-header h6 { margin: 0; }
.list-group-item { border-color: var(--ob-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(--ob-line); }
.badge { font-weight: 600; }
.badge-danger { border-radius: 999px; }
.bg-post { background-color: var(--ob-accent-soft); border-radius: 8px; }
.bg-reply { background-color: #fdf1f1; border-radius: 8px; }
.btn-block + .btn-block { margin-top: .5rem; }
/* 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(--ob-line); border-radius: 8px; }
/* admin menu pages: one card with big, plain, centred links (Net Tools, Treasurer, ...) */
.card-body a.btn-lg.btn-block { border-radius: 8px; font-weight: 500; }
.card-body a.btn-lg.btn-block:hover { background: var(--ob-accent-soft); color: var(--ob-accent) !important; text-decoration: none; }

/* ---------- sign-in pages (body class ob-plain, added to the two login pages) ---------- */
body.ob-plain #login .col-md-6.ml-auto {
  background: var(--ob-surface);
  border: 1px solid var(--ob-line);
  border-radius: 14px;
  box-shadow: var(--ob-shadow);
  padding: 1.5rem !important;
}
body.ob-plain #login h4 { color: var(--ob-ink); font-size: 1.25rem; }
body.ob-plain #login h4 em { font-style: normal; }
body.ob-plain #login img { height: 96px; width: auto; }
body.ob-plain .text-admin, body.ob-plain .text-center.text-admin { color: var(--ob-muted) !important; }

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

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

/* ---------- phones ---------- */
@media (max-width: 575px) {
  .navbar-brand img { height: 48px; }
  .navbar a > img[src*="arrl"] { display: none; }
}
/* the sign-in pages have a row that is 15 px wider than the window on a big screen: no sideways scroll there */
body.ob-plain { overflow-x: hidden; }

/* 2026-11-19: Bootstrap's teal "info" colours (the thin bars and the Close button on the post editor and other pop-ups, the small hints under table headings) follow the area's accent colour */
.bg-info { background-color: var(--ob-accent) !important; }
.navbar-small { min-height: 0; padding: 0; height: 6px; }
.btn-info { background: var(--ob-accent); border-color: var(--ob-accent); color: #fff; font-weight: 500; }
.btn-info:hover { background: var(--ob-accent-dark); border-color: var(--ob-accent-dark); color: #fff; }
.text-info { color: var(--ob-accent) !important; }
.table th small, .table th .text-info { color: var(--ob-muted) !important; }
