﻿/* ============================================================
   site.css    Shared stylesheet for Recalls.gov agency pages
   Loads after uswds.min.css — overrides apply here.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent USWDS global reset from collapsing the banner font */
.usa-banner { font-family: inherit; }

/* Ensure USWDS identifier sits flush below footer */
.usa-identifier { margin-top: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f0f4f8;
  color: #1a1a2e;
  line-height: 1.65;
}

.site-header,
.site-banner,
.nav-tabs,
.site-banner-title,
.site-banner-sub,
.nav-tabs a {
  font-family: 'Source Sans Pro', sans-serif;
}

a { color: #000000; text-decoration: none; }
a:hover { text-decoration: underline; color: #000000; }
.usa-link,
.usa-link:visited,
.usa-link:hover,
.usa-link:active,
.usa-link:focus {
  color: #000000;
  text-decoration: underline;
}

/*  Focus indicator (keyboard navigation)  */
:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

/*  Screen-reader-only utility  */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/*  Skip navigation link  */
.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 9999;
  background: #000000;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s;
}
.skip-link:focus {
  transform: translateX(-50%) translateY(0);
}

/*  Site header  */
.site-header {
  background: #efefee;
  border-bottom: 1px solid #d6d6d2;
  text-align: center;
  padding: 0 16px 0;
}
.site-header img { max-width: 100%; height: auto; }

/*  Branded banner  */
.site-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0e1e45;
  padding: 20px 32px;
  text-decoration: none !important;
}
.site-banner:hover { opacity: 0.93; }
.site-banner-icon {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.site-banner-text {
  text-align: center;
}
.site-banner-title {
  display: block;
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.8rem;
  font-weight: lighter;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  line-height: 0.95;
}
.site-banner-sub {
  display: block;
  font-size: 0.82rem;
  color: #FAEEA7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: lighter;
}

/*  Tab navigation  */
.nav-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0.2rem;
  list-style: none;
  background: #eeeeee;
  border-bottom: 1px solid #d6d6d2;
  box-shadow: none;
}
.nav-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.5rem 0.2rem 0.2rem;
  margin: 0.35rem 1.2rem;
  background: transparent;
  color: #2f3a46;
  font-size: 1.063rem;
  font-weight: 200;
  letter-spacing: 0;
  text-transform: none;
  border: none;
  border-bottom: 2px solid #eeeeee;
  border-radius: 0;
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out, font-weight 0.2s ease-in-out;
}
.nav-tabs a:hover,
.nav-tabs a:focus-visible {
  background: transparent;
  color: #0a4e8b;
  font-weight: 600;
  text-decoration: none;
  border-bottom-color: #0a4e8b;
}
.nav-tabs a.active {
  background: transparent;
  color: #0a4e8b;
  font-weight: 600;
  border-bottom-color: #0a4e8b;
}
@media (min-width: 992px) {
  .nav-tabs {
    flex-direction: row;
  }
  .nav-tabs a {
    flex: 0 0 auto;
  }
}

/*  Page container  */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

/*  Content card  */
.content-card {
  background: #fff;
  border: 1px solid #ccdae6;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 32px 36px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/*  Agency intro (logo + description)  */
.agency-intro {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.agency-intro img {
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  height: 108px;
  width: auto;
}
.agency-intro p { font-size: 1rem; color: #2c2c3e; }

/*  Topic bullet list  */
.topics {
  list-style: disc;
  padding-left: 28px;
  margin: 4px 0 28px;
  columns: 3;
  column-gap: 24px;
}
.topic-pill {
  display: list-item;
  font-size: 0.95rem;
  color: #1a1a2e;
  padding: 2px 0;
}

/*  Resource link list  */
.resource-links { list-style: none; margin-bottom: 28px; }
.resource-links li {
  border-bottom: 1px solid #e4ecf2;
  padding: 16px 0;
}
.resource-links li:last-child { border-bottom: none; }
.resource-links .link-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.resource-links .dot {
  width: 9px;
  height: 9px;
  background: #000000;
  border-radius: 50%;
  flex-shrink: 0;
}
.resource-links a { font-weight: 700; font-size: 1rem; }
.resource-links .desc {
  margin-top: 5px;
  font-size: 0.91rem;
  color: #4a5568;
  padding-left: 17px;
}

/*  Divider between agency sections  */
.agency-divider {
  border: none;
  border-top: 2px solid #e4ecf2;
  margin: 28px 0;
}

/*  Call-to-action section  */
.cta-section { text-align: center; margin: 8px 0 4px; }
.cta-button {
  display: inline-block;
  background: #fdb022;
  color: #1b1b1b !important;
  padding: 13px 30px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(253,176,34,0.35);
  transition: background 0.18s, box-shadow 0.18s;
}
.cta-button:hover {
  background: #e6a01f;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(253,176,34,0.45);
}
.homepage-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
}

/*  Breadcrumb navigation  */
.breadcrumb {
  padding: 8px 0 4px;
  font-size: 0.83rem;
  color: #6b7c93;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb li + li::before {
  content: '\203A';
  color: #9aafbf;
  font-size: 1rem;
  line-height: 1;
}
.breadcrumb a { color: #000000; font-weight: 500; }
.breadcrumb a:hover { color: #000000; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #4a5568; font-weight: 600; }

/*  In-card footer navigation  */
.footer-nav {
  text-align: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e4ecf2;
  font-size: 0.84rem;
  color: #555;
}
.footer-nav a { margin: 0 5px; color: #000000; }

/*  Privacy footer bar  */
.privacy-footer {
  background: #fff;
  border-top: 3px solid #000000;
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: #555;
  margin-top: 20px;
}
.privacy-footer a { color: #000000; }

/*  Provider logos row  */
.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e4ecf2;
}
.provider {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 200px;
}
.provider img { flex-shrink: 0; }
.provider p { font-size: 0.88rem; color: #4a5568; }

/* ============================================================
   Responsive breakpoints
   ============================================================ */

/* ── 768px and below ── */
@media (max-width: 768px) {
  .topics {
    columns: 2;
  }
}

/* ── 640px and below ── */
@media (max-width: 640px) {
  .site-banner {
    padding: 14px 20px;
    gap: 12px;
  }
  .site-banner-title {
    font-size: 1.55rem;
  }
  .site-banner-sub {
    font-size: 0.78rem;
  }
  .content-card {
    padding: 20px 18px;
  }
  .agency-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .agency-intro img {
    height: 80px;
  }
  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px 0;
  }
  .nav-tabs a {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* ── 480px and below ── */
@media (max-width: 480px) {
  .topics {
    columns: 1;
  }
  .container {
    padding: 0 12px 24px;
  }
  .content-card {
    padding: 16px 14px;
  }



  
/* Navigation container */
.sp-nav {
    background-color: #003b5c;       /* Dark blue header */
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Navigation list */
.sp-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Navigation items */
.sp-nav li {
    margin: 0;
    padding: 0;
}

/* Navigation links */
.sp-nav a {
    display: block;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border-right: 1px solid #1a5577; /* subtle divider */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Remove divider on last item */
.sp-nav li:last-child a {
    border-right: none;
}

/* Hover style similar to saferproducts.gov */
.sp-nav a:hover {
    background-color: #e6e6e6;
    color: #003b5c;
}

}