/* Loaded only by the AI Glossary explanation template. */
* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #12324b; --teal: #00616c; --line: #b7cdce; --ivory: #fdfcf9; }
body { margin: 0; font: 17px/1.6 "Segoe UI", Arial, sans-serif; background: var(--ivory); color: var(--ink); }
a, summary { color: var(--teal); text-underline-offset: .18em; }
a:hover, summary:hover { color: #103c49; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.mast { border-top: 5px solid var(--ink); border-bottom: 1px solid var(--line); }
.mast nav, .term-guide, .footer { max-width: 1080px; margin-inline: auto; padding-inline: clamp(20px,5vw,64px); }
.mast nav { display: flex; align-items: center; gap: 14px; min-height: 62px; font-size: .94rem; }
.mast a { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark { font: bold 27px Georgia, serif; text-decoration: none; color: var(--ink); }
.finder { margin-left: auto; }
.term-guide { padding-block: 36px 28px; overflow-wrap: break-word; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; text-wrap: balance; }
h1 { font-size: clamp(2.15rem,5vw,4.1rem); line-height: 1.07; letter-spacing: -.035em; margin: 0 0 22px; }
h2 { margin: 0 0 10px; font-size: clamp(1.45rem,3vw,1.75rem); line-height: 1.2; }
p { margin: 0 0 12px; max-width: 65ch; }
.definition { padding: 14px 20px; border-left: 4px solid var(--teal); background: #edf6f7; font-size: 1.19rem; }
section { margin-top: 27px; }
.example, .reading { border-top: 1px solid var(--line); padding-top: 21px; }
.example { border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.example p:last-child { margin-bottom: 0; }
.sequence, .pair { display: grid; gap: 14px; padding: 0; margin: 15px 0 0; }
.sequence { list-style-position: inside; grid-template-columns: repeat(3,minmax(0,1fr)); }
.pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sequence li, .pair > div { padding: 15px 17px; background: white; border: 1px solid #c8d9da; border-radius: 7px; }
.sequence li::marker { font-weight: bold; color: var(--teal); }
.sequence p, .pair p { margin: 6px 0 0; }
.sequence li:nth-child(2), .pair > div:nth-child(2) { border-top: 3px solid #a57720; padding-top: 13px; }
h3 { font: 650 1.06rem/1.35 "Segoe UI", Arial, sans-serif; margin: 0; }
mark { background: #ffedbf; color: var(--ink); padding-inline: .12em; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tokens code { padding: .22em .58em; border: 1px solid #9bbec3; border-radius: 4px; background: #e9f2f3; color: #12324b; font: 1.3rem/1.5 Consolas, monospace; }
.tokens code:nth-child(3) { background: #fff0cd; border-color: #b49454; }
.es-hero { max-width: 800px; margin: 24px 0 0; }
.es-hero img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
figcaption, .reference, .footer { font-size: .94rem; }
figcaption { margin-top: 7px; max-width: 75ch; }
.jump { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-top: 16px; }
.jump a { padding-block: 6px; }
.reading p { margin-bottom: 6px; }
.reading summary { cursor: pointer; font-weight: 650; padding-block: 7px; }
.related-list { padding-left: 1.35em; columns: 2; column-gap: 2.25em; max-width: 78ch; margin: .25em 0 1em; }
.related-list li { break-inside: avoid; padding-block: .15em; }
.short-group { margin-top: .85em; }
.reference { margin-top: 18px; }
.return { display: inline-block; margin-top: 18px; font-weight: 650; }
.footer { padding-block: 20px 32px; border-top: 1px solid var(--line); color: #3b5362; overflow-wrap: anywhere; }
.footer p { margin: 0 0 .25em; }
@media (max-width: 650px) {
  .mast nav { gap: 8px; font-size: .88rem; }
  .term-guide { padding-top: 24px; }
  .definition { font-size: 1.07rem; }
  .sequence, .pair { grid-template-columns: 1fr; gap: 8px; }
  .related-list { columns: 1; }
}
@media print {
  .mast, .jump, .return { display: none; }
  body { font-size: 11pt; color: black; background: white; }
  .term-guide, .footer { padding: 0; max-width: none; }
  section, figure { margin-top: 1em; }
  h1, h2, h3, summary { break-after: avoid; }
  figure, .sequence li, .pair > div { break-inside: avoid; }
  details::details-content { display: block; content-visibility: visible; }
  details > * { display: block; }
  .es-hero img { max-width: 13cm; }
}
