/**
 * Authentic BJS Styling
 * Extracted from LEARCAT Vue components and main.scss
 * Uses actual BJS fonts and follows USWDS standards
 */

/* ===== FONT LOADING ===== */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
       url('../fonts/Roboto-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
       url('../fonts/Roboto-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.99rem;
  line-height: 1.6;
  color: #1b1b1b;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
}

/* ===== HEADER STYLES (from BJSHeader.vue) ===== */
.usa-header {
  background-color: #112f4e;
  z-index: 300;
  padding-top: 0;
  display: block;
  font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.99rem;
  line-height: 1.6;
}

.usa-navbar {
  border-bottom: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 64rem;
  display: block;
  overflow: auto;
  height: auto;
  padding: 0.5rem 1rem 0.25rem 1rem;
}

@media (min-width: 960px) {
  .usa-navbar {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.region-header {
  flex: 1 0 0;
}

.usa-logo {
  line-height: 1.2;
  font-size: 1.99rem;
  margin: 1rem 0.9375rem 1rem 0;
  display: flex;
  height: 100%;
  min-height: 80px;
  max-width: unset;
  margin-right: 20.25rem;
  width: 100%;
  flex-direction: column;
}

@media (min-width: 768px) {
  .usa-logo {
    flex-direction: row;
    align-items: center;
  }
}

.ojp-seal {
  flex-grow: 0;
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  min-width: 98px;
}

.ojp-seal img {
  height: 98px;
  width: 98px;
}

.ojp-office-logo img {
  height: auto;
  max-height: 60px;
}

.header-text {
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  color: white;
  font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  width: 100%;
  text-align: right;
  font-size: 2rem;
}

.header-text span {
  display: block;
}

.header-text span:last-child {
  font-size: 1rem;
}

/* ===== FOOTER STYLES (from BJSFooter.vue) ===== */
.usa-footer {
  overflow: hidden;
  font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.99rem;
  line-height: 1.6;
}

.usa-footer__primary-section {
  background: #fcfcfc;
  border-top: 1px solid #dfe1e2;
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
}

.footer__wrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: 64rem;
  position: relative;
  padding-left: 2rem;
  padding-right: 2rem;
}

.usa-footer-primary__top {
  padding-bottom: 2.5rem;
}

.usa-footer__agency-heading {
  font-family: Merriweather, Georgia, Cambria, 'Times New Roman', Times, serif;
  font-weight: 700;
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
  line-height: 1.625rem;
  display: inline-block;
  max-width: 66%;
  color: #1b1b1b;
}

.usa-footer-nav {
  display: block;
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.region-footer-menu {
  display: block;
}

.region-footer-menu_row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

.region-footer-menu_col {
  flex: 0 0 auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .region-footer-menu_col {
    width: 50%;
  }
}

@media (min-width: 960px) {
  .region-footer-menu_col {
    width: 25%;
  }
}

.usa-footer__primary-content {
  margin-bottom: 1rem;
}

.usa-footer__primary-link {
  font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #1b1b1b;
  cursor: pointer;
}

.usa-list--unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.usa-footer__secondary-link {
  margin-bottom: 0.5rem;
}

.usa-footer__secondary-link a {
  color: #005ea2;
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.5;
}

.usa-footer__secondary-link a:hover {
  color: #1a4480;
  text-decoration: underline;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer__social img {
  width: 24px;
  height: 24px;
}

.footer__social svg.ext {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  fill: #005ea2;
}

/* ===== SECONDARY FOOTER ===== */
.usa-footer__secondary-section {
  background-color: #f0f0f0;
  padding: 2rem 0;
  border-top: 1px solid #dfe1e2;
}

.secondary-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 64rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.usa-footer__logos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.usa-footer-logo img {
  max-height: 64px;
  width: auto;
}

.secondary_logos-1 {
  flex: 1;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.usa-footer__partner-logo img {
  max-height: 48px;
  width: auto;
}

.usa-footer-contact-links {
  margin-top: 1rem;
}

.usa-footer-contact-heading {
  font-size: 0.875rem;
  color: #565c65;
  margin: 0;
  font-weight: normal;
}

/* ===== BOTTOM FOOTER NAV ===== */
.wide-nav {
  background-color: #1b1b1b;
  margin-top: 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 1rem 2rem;
}

.wide-nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.wide-nav .menu-item a {
  color: white;
  text-decoration: none;
  font-size: 0.8125rem;
}

.wide-nav .menu-item a:hover {
  text-decoration: underline;
}

.version-number {
  color: #71767a;
  font-size: 0.75rem;
  margin-left: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== CONTENT STYLES ===== */
.tableau-container {
  border: 1px solid #dfe1e2;
  border-radius: 4px;
  padding: 0.5rem;
  background-color: #f8f9fa;
  margin-bottom: 2rem;
  overflow: hidden;
}

/* The injected tableau-viz element should fill the container width */
.tableau-container tableau-viz {
  display: block;
  width: 100%;
}

/* Once loaded, clear the background */
.tableau-container[data-loaded="true"] {
  background-color: transparent;
}

.display-number {
  color: #565c65;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.report-section {
  margin-bottom: 3rem;
}

.report-section h2 {
  color: #1b1b1b;
  font-family: Merriweather, Georgia, Cambria, 'Times New Roman', Times, serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #dfe1e2;
  padding-bottom: 0.5rem;
}

.report-section p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #1b1b1b;
  margin-bottom: 1rem;
}

.report-section ul {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #1b1b1b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .usa-logo {
    flex-direction: column;
    text-align: center;
  }
  
  .header-text {
    text-align: center;
    margin-top: 1rem;
  }
  
  .region-footer-menu_row {
    flex-direction: column;
  }
  
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
