:root {
  color-scheme: light;
  --scout-blue: #003F87;
  --scout-gold: #D6A629;
  --page-wash: #f4f6f9;
  --ink: #17212b;
  --line: #d7dce2;
}

* { box-sizing: border-box; }

html { background: var(--page-wash); }

body {
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto !important;
  padding: 0 clamp(12px, 2vw, 24px) 28px !important;
  background-color: var(--page-wash) !important;
  background-image: none !important;
  color: var(--ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--scout-blue) !important; text-underline-offset: 0.15em; }
a:hover { color: #7a5900 !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--scout-gold); outline-offset: 3px; }

h1, h2, h3 { color: var(--scout-blue) !important; line-height: 1.25; }
h1 { padding-bottom: 0.35em; border-bottom: 3px solid var(--scout-gold); }

img, video, iframe { max-width: 100% !important; }
img { height: auto !important; }

.picture-link { display: inline-block; margin: 6px 0 12px; font-weight: 700; }
.page-intro {
  max-width: 940px;
  margin: 16px auto 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--scout-blue);
  border-bottom: 2px solid var(--scout-gold);
  border-radius: 6px;
  background: #fff;
}

table {
  max-width: 100%;
  border-color: var(--line) !important;
  background-color: #fff;
}

td, th { border-color: var(--line) !important; }

.topnav, .topnav.responsive {
  background-color: var(--scout-blue) !important;
  border-bottom: 4px solid var(--scout-gold);
}

.topnav a { color: #fff !important; }
.topnav a:hover, .topnav a:focus-visible { color: #fff !important; background-color: #234f80 !important; }
.topnav a.active { color: #fff !important; background-color: #234f80 !important; box-shadow: inset 0 -3px var(--scout-gold); }

input[type="submit"], button {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-bottom: 3px solid var(--scout-gold);
  border-radius: 5px;
  background: var(--scout-blue);
  color: #fff;
  font: 700 1rem Arial, Helvetica, sans-serif;
  cursor: pointer;
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  table { display: block; width: 100%; overflow-x: auto; }
  td, th { min-width: 0; }
  img { max-height: none; }
  .topnav a { min-height: 44px; }
}
/* Legacy product pages: group the existing product content into readable, responsive panels. */
body > center:first-of-type {
  margin: 0 calc(-1 * clamp(12px, 2vw, 24px)) 20px;
  padding: 20px 16px 16px;
  color: #fff;
  background: var(--scout-blue);
  border-bottom: 4px solid var(--scout-gold);
}
body > center:first-of-type a { color: #fff !important; }
body > center:first-of-type img { max-width: min(557px, 90vw) !important; }
/* Content tables use pale backgrounds, so their links must stay dark and readable. */
body table a:link,
body table a:visited { color: var(--scout-blue) !important; }
body table a:hover,
body table a:focus-visible { color: #7a5900 !important; }
body > table {
  overflow: hidden;
  margin: 22px auto !important;
  border: 1px solid var(--line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 35, 70, .08);
}
body > table td {
  padding: clamp(12px, 2.2vw, 26px) !important;
  vertical-align: top;
}
body > table img { border-radius: 5px; }
body form { margin: 12px 0; }
body form input[type="submit"] { min-width: 132px; }
@media (max-width: 700px) {
  body > table { display: table; width: 100% !important; }
  body > table tbody, body > table tr { display: block; width: 100%; }
  body > table td { display: block; width: 100% !important; }
}
.modern-links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 calc(-1 * clamp(12px, 2vw, 24px)) 22px;
  padding: 16px clamp(16px, 4vw, 44px);
  color: #fff;
  background: var(--scout-blue);
  border-bottom: 4px solid var(--scout-gold);
}
.modern-links-header .modern-brand { color: #fff !important; font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.modern-links-header nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.modern-links-header nav a { min-height: 40px; display: inline-flex; align-items: center; color: #fff !important; font-weight: 700; text-decoration: none; }
.modern-links-header nav a:hover { text-decoration: underline; text-decoration-color: var(--scout-gold); }
@media (max-width: 700px) { .modern-links-header { align-items: flex-start; flex-direction: column; } .modern-links-header nav { gap: 6px 14px; } }
.modern-links-header .menu-toggle { display:none; width:44px; height:44px; padding:0; border:0; background:transparent; color:#fff; font:32px/1 Arial,sans-serif; cursor:pointer; }
@media (max-width:700px) {
  .modern-links-header { flex-flow:row wrap; align-items:center; justify-content:space-between; }
  .modern-links-header .menu-toggle { display:inline-flex; align-items:center; justify-content:center; margin-left:auto; }
  .modern-links-header nav { display:none; flex:1 0 100%; flex-direction:column; width:100%; margin:0; gap:0; }
  .modern-links-header nav.nav-open { display:flex; }
  .modern-links-header nav a { display:flex; width:100%; min-height:44px; padding:10px 4px; border-top:1px solid rgba(255,255,255,.25); }
}
.modern-links-header nav ul { display:flex; flex-wrap:wrap; gap:8px 18px; margin:0; padding:0; list-style:none; }
.modern-links-header nav li { margin:0; padding:0; }
.modern-links-header nav a { min-height:40px; display:inline-flex; align-items:center; color:#fff !important; font-weight:700; text-decoration:none; }
@media (max-width:700px) {
  .modern-links-header nav ul { flex-direction:column; width:100%; gap:0; }
  .modern-links-header nav li { width:100%; border-top:1px solid rgba(255,255,255,.25); }
  .modern-links-header nav a { display:flex; width:100%; padding:10px 4px; }
}
