/*
    Hazmat guide (/hazmat/...) additions to codification.css, and the "Hazmat and handling" box on NSN pages.
    Classes start with hz-. Colors come from the --nl-* tokens (nsn-dialog.css). No red "danger" styling anywhere: these pages
    and the box state what codes and rules say; they do not warn or police. Text contrast is at least 4.5:1.
*/
.hz-quote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--nl-navy, #0b2545); background: var(--nl-soft, #f4f6f9); border-radius: 0 var(--nl-radius-sm, 8px) var(--nl-radius-sm, 8px) 0; }
.hz-quote blockquote { margin: 0 0 .5rem; max-width: 46rem; overflow-wrap: anywhere; }
.hz-quote blockquote p { margin: 0 0 .5rem; }
.hz-quote footer { font-size: .875rem; color: var(--nl-muted, #51627a); }
.hz-quote .hz-gloss { font-size: .9375rem; margin: .25rem 0 .5rem; }
.hz-valid { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--nl-navy, #0b2545); background: #fff6d6; border: 1px solid var(--nl-gold, #ffc233); border-radius: 999px; padding: .1rem .6rem; margin: 0 .25rem .25rem 0; }
.hz-gap { color: var(--nl-muted, #51627a); font-style: italic; }
.hz-review { margin-top: 1.5rem; }
.hz-modes th[scope="row"] { white-space: nowrap; }
.hz-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.hz-classes li { border: 1px solid var(--nl-line, #d8dee6); border-radius: var(--nl-radius-sm, 8px); padding: .625rem .875rem; background: #fff; }
.hz-classes strong { display: block; color: var(--nl-navy, #0b2545); }
.hz-flag { width: 1.25rem; height: auto; vertical-align: -.15em; margin-right: .35rem; }

/* NSN page box */
.hz-box { border: 1px solid var(--nl-line, #d8dee6); border-radius: var(--nl-radius, 12px); padding: .875rem 1rem; background: #fff; margin: 0 0 1rem; }
.hz-box__grid { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: .5rem 1rem; margin: 0 0 .75rem; }
.hz-box__grid dt { font-weight: 700; color: var(--nl-navy, #0b2545); }
.hz-box__grid dt small { display: block; font-weight: 400; color: var(--nl-muted, #51627a); }
.hz-box__grid dd { margin: 0; }
.hz-box__code { display: inline-block; font-family: "Roboto Mono", ui-monospace, Consolas, monospace; font-weight: 700; padding: 0 .45rem; border-radius: 6px; background: var(--nl-soft, #f4f6f9); border: 1px solid var(--nl-line, #d8dee6); margin-right: .35rem; color: var(--nl-ink, #10233a); }
.hz-box__none { color: var(--nl-muted, #51627a); }
.hz-box__official { display: block; font-size: .875rem; color: var(--nl-muted, #51627a); }
.hz-box__notheld, .hz-box__asof { font-size: .875rem; color: var(--nl-muted, #51627a); margin: .25rem 0; }
.hz-box__links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.hz-box__links a { display: inline-block; min-height: 44px; line-height: 44px; }
@media (max-width: 575.98px) {
    .hz-box__grid { grid-template-columns: 1fr; }
    .hz-box__grid dd { margin-bottom: .5rem; }
}
.hz-fsc { white-space: normal !important; word-spacing: .35em; }
.cod-table td .hz-files { margin: 0; padding-left: 1.1rem; }
.cod-table td .hz-files li { margin: 0 0 .5rem; }
.cod-table td .hz-files a { display: inline; min-height: 0; line-height: inherit; }
