/* Ruger lookup page support CSS. Header/footer inherit /css/gcc-v2.css where present. */
:root {
  --gcc-ink: #202020;
  --gcc-muted: #5c5c5c;
  --gcc-line: #d8d0c3;
  --gcc-paper: #fbf8f2;
  --gcc-panel: #fffdf8;
  --gcc-accent: #7b2f24;
  --gcc-accent-dark: #5f231b;
}

body.ruger-lookup-page {
  margin: 0;
  color: var(--gcc-ink);
  background: var(--gcc-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: .6rem .8rem;
  background: #fff;
  border: 2px solid var(--gcc-accent);
}

.site-header {
  background: #221b16;
  color: #fff;
  border-bottom: 4px solid #9b7a4a;
}

.site-header-inner,
.site-footer-inner,
.page-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo-main {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: .02em;
}

.site-logo-sub {
  font-size: .78rem;
  color: #eadcc2;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: .4rem;
  padding: .5rem;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 1.55rem;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav a {
  display: block;
  padding: .65rem .75rem;
  border-radius: .35rem;
  color: #fff;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255,255,255,.12);
}

.page-wrap {
  padding: 1.25rem 0 3rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .92rem;
  color: var(--gcc-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: .35rem;
  color: #8b8174;
}

.breadcrumbs a {
  color: var(--gcc-accent-dark);
}

.article-shell {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gcc-line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(50,40,30,.08);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: .2rem 0 .75rem;
}

.eyebrow {
  margin: 0;
  color: var(--gcc-accent-dark);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.12rem;
  color: #37322c;
}

.lookup-tool {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--gcc-line);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 12px;
  background: var(--gcc-panel);
}

.lookup-tool label {
  display: block;
  margin-top: 1rem;
  font-weight: 750;
}

.lookup-tool select,
.lookup-tool input {
  width: 100%;
  max-width: 360px;
  padding: .65rem .7rem;
  margin-top: .25rem;
  border: 1px solid #b9b1a6;
  border-radius: .45rem;
  font: inherit;
  background: #fff;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: .45rem;
  background: var(--gcc-accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-primary:hover,
.button-primary:focus {
  background: var(--gcc-accent-dark);
}

.result {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: .5rem;
  background: #fff;
  border: 1px solid var(--gcc-line);
}

.result strong {
  display: block;
  margin-bottom: .25rem;
}

.note {
  font-size: .92rem;
  color: var(--gcc-muted);
  margin: 1rem 0 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--gcc-line);
  border-radius: .65rem;
}

.range-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: .95rem;
  background: #fff;
}

.range-table th,
.range-table td {
  border-bottom: 1px solid #e4ddd2;
  padding: .55rem .7rem;
  text-align: left;
}

.range-table th {
  background: #efe7db;
  font-weight: 800;
}

.site-footer {
  background: #221b16;
  color: #eadcc2;
  padding: 2rem 0;
}

.footer-brand p,
.copyright {
  margin: .35rem 0 0;
  color: #d3c2a8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin: 1rem 0;
}

.footer-nav a {
  color: #fff;
  font-weight: 650;
}

.page-up {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--gcc-accent);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header-inner {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 0 0 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav a {
    padding: .75rem 0;
    border-top: 1px solid rgba(255,255,255,.15);
  }
}
