:root {
  --usds-ink: #17212b;
  --usds-muted: #52616f;
  --usds-paper: #fffef8;
  --usds-panel: #eef6fb;
  --usds-blue: #0b5f8a;
  --usds-blue-dark: #083f5c;
  --usds-red: #a01919;
  --usds-border: #b9c9d4;
  --usds-shadow: 0 10px 28px rgba(23, 33, 43, 0.12);
}

.usds-shell {
  max-width: 1040px;
  margin: 1.5rem auto 3rem;
  color: var(--usds-ink);
}

.usds-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--usds-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbfe, #fff7f2);
  box-shadow: var(--usds-shadow);
}

.usds-warning {
    width: 110px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.usds-eyebrow {
  margin: 0 0 .15rem;
  color: #60348a;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.usds-title {
  margin: 0;
  color: var(--usds-red);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.usds-intro,
.usds-card,
.usds-sheet {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--usds-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--usds-shadow);
}

.usds-intro h2,
.usds-card h2,
.usds-section h2 {
  margin-top: 0;
  color: var(--usds-blue-dark);
}

.usds-note {
  padding: .85rem 1rem;
  border-left: 5px solid var(--usds-red);
  border-radius: 8px;
  background: #fff2f2;
}

.usds-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.usds-fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--usds-border);
  border-radius: 12px;
  background: var(--usds-panel);
}

.usds-fieldset legend {
  padding: 0 .45rem;
  color: var(--usds-blue-dark);
  font-weight: 700;
}

.usds-field {
  display: grid;
  gap: .3rem;
  margin-bottom: .8rem;
}

.usds-field:last-child {
  margin-bottom: 0;
}

.usds-field label {
  font-weight: 650;
}

.usds-field input,
.usds-field select {
  width: 100%;
  box-sizing: border-box;
  padding: .65rem .7rem;
  border: 1px solid #8399a8;
  border-radius: 7px;
  background: #fff;
  color: var(--usds-ink);
  font: inherit;
}

.usds-field input:focus,
.usds-field select:focus {
  outline: 3px solid rgba(11, 95, 138, .2);
  border-color: var(--usds-blue);
}

.usds-mystery-note {
  margin-top: 0;
  color: var(--usds-muted);
  font-size: .94rem;
}

.usds-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.usds-button {
  display: inline-block;
  padding: .7rem 1.1rem;
  border: 1px solid var(--usds-blue-dark);
  border-radius: 8px;
  background: var(--usds-blue);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.usds-button:hover,
.usds-button:focus {
  background: var(--usds-blue-dark);
}

.usds-button-secondary {
  border-color: #6d7d88;
  background: #fff;
  color: var(--usds-ink) !important;
}

.usds-button-secondary:hover,
.usds-button-secondary:focus {
  background: #edf2f5;
}

.usds-sheet {
  background: var(--usds-paper);
}

.usds-sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  text-align: center;
}

/* Keep the generated USDS as one continuous paper-colored document */
#pagecontent .usds-sheet section,
#pagecontent .usds-sheet section p,
#pagecontent .usds-sheet .usds-disclaimer,
#pagecontent .usds-sheet .usds-print-footer {
  background-color: transparent;
}

#pagecontent .usds-sheet p {
  margin-left: 0;
}


.usds-skull {
  width: 42px;
  height: auto;
}

.usds-chemical-name {
  margin: .35rem 0 1.2rem;
  color: var(--usds-red);
  text-align: center;
  overflow-wrap: anywhere;
}

.usds-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #68747c;
  border-radius: 8px;
  overflow: hidden;
}

.usds-meta > div {
  padding: .75rem;
  border-bottom: 1px solid #9ba5ab;
}

.usds-meta > div:nth-child(odd) {
  border-right: 1px solid #9ba5ab;
}

.usds-meta > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.usds-section {
  margin-top: 1.5rem;
}

.usds-section p {
  line-height: 1.65;
}

.usds-generated {
  font-weight: 700;
  color: #7b1515;
}

.usds-disclaimer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--usds-border);
  color: var(--usds-muted);
  font-size: .92rem;
}

.usds-error {
  padding: 1rem;
  border: 1px solid #db9d9d;
  border-radius: 8px;
  background: #fff1f1;
}

@media (max-width: 760px) {
  .usds-form-grid,
  .usds-meta {
    grid-template-columns: 1fr;
  }

  .usds-meta > div,
  .usds-meta > div:nth-child(odd),
  .usds-meta > div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #9ba5ab;
  }

  .usds-meta > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .usds-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .usds-hero img {
    margin: auto;
  }

  .usds-intro,
  .usds-card,
  .usds-sheet {
    padding: 1rem;
  }
}

@media print {
  #main-nav,
  .breadContainer,
  .usds-actions,
  #Footer {
    display: none !important;
  }

  .usds-shell,
  .usds-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

.usds-document-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border: 2px solid #68747c;
  border-radius: 10px;
  background: #edf1f3;
  break-inside: avoid;
}

.usds-document-info h2 {
  margin: 0 0 .75rem;
  color: var(--usds-blue-dark);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.usds-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1.1rem;
  margin: 0;
}

.usds-document-grid > div {
  min-width: 0;
}

.usds-document-grid dt {
  color: var(--usds-muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.usds-document-grid dd {
  margin: .08rem 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.usds-document-link {
  grid-column: 1 / -1;
}

.usds-qr-link {
  display: grid;
  justify-items: center;
  gap: .25rem;
  color: var(--usds-ink);
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.usds-qr-link img {
  display: block;
  width: 116px;
  height: 116px;
  border: 1px solid #68747c;
  background: #fff;
}

.usds-print-footer {
  display: none;
}

@media (max-width: 620px) {
  .usds-document-info {
    grid-template-columns: 1fr;
  }

  .usds-document-grid {
    grid-template-columns: 1fr;
  }

  .usds-document-link {
    grid-column: auto;
  }
}

@media print {
  @page {
    margin: .55in .55in .7in;
  }

  .usds-document-info {
    background: #edf1f3 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .usds-qr-link {
    color: #000 !important;
  }

  .usds-print-footer {
    position: fixed;
    right: 0;
    bottom: -.48in;
    left: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #68747c;
    padding-top: .08in;
    color: #333;
    font-size: 8pt;
  }

  .usds-page-number::after {
    content: "Page " counter(page);
  }

  .usds-disclaimer {
    break-inside: avoid;
  }
}

.usds-sheet-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

/* Ensure hero text matches header background */
.usds-hero, .usds-hero * {
	background-color: transparent !important;
}

/* Remove any inherited white background on the eyebrow */
.usds-eyebrow{
	background-color: transparent !important;
}

.usds-skull {
width: clamp(40px, 4vw, 58px); /* adjusts automatically */ height: auto; flex-shrink: 0;
}

.usds-warning {
    width: clamp(72px, 8vw, 96px);
    height: auto;
    display: block;
    flex-shrink: 0;
}


/* Clean up the no-data error page and override global ILPI paragraph styling */
.usds-error {
    text-align: center;
    background-color: #fff1f1 !important;
}

.usds-error h1,
.usds-error p {
    background-color: transparent !important;
}

.usds-error p {
    margin-left: 0;
    margin-right: 0;
}