/* Sealed checklists: the format page (/transparency/format/) and the card by card
   example at the end of /transparency/check/. Loaded on those two pages only. */

/* Format page: long-form reference copy */
.seal-spec { max-width: 58rem; }
.seal-spec h2 { margin-top: 3.5rem; font-size: clamp(1.8rem, 3vw, 2.6rem); scroll-margin-top: 7rem; }
.seal-spec h2:first-child { margin-top: 0; }
.seal-spec h3 { margin: 2.25rem 0 .75rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
.seal-spec li + li { margin-top: .55rem; }
/* Running text keeps the site's measure; tables, code and definitions use the full column. */
.seal-spec > :is(p:not(.seal-command), ul, ol) { max-width: calc(var(--measure, 31em) + 3em); }
.seal-spec code { padding: .08em .32em; border-radius: .25rem; background: color-mix(in srgb, var(--ink) 7%, transparent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
.seal-spec a:not(.text-link) { color: var(--teal-ink); font-weight: 600; }
.seal-hex { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; word-break: break-all; }
.seal-command { margin: 1rem 0; padding: .9rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-bright); }
.seal-command code { padding: 0; background: none; }

.seal-downloads { margin: 1.75rem 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seal-downloads .fact { min-height: 0; }
.seal-downloads .fact dd.seal-downloads__note { margin-top: .6rem; color: var(--ink-soft); font-family: var(--font-body); font-size: .92rem; font-weight: 400; line-height: 1.55; }
@media (max-width: 860px) { .seal-downloads { grid-template-columns: 1fr; } }

.seal-table { margin: 1rem 0 1.5rem; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-bright); }
.seal-table table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .95rem; }
.seal-table th, .seal-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.seal-table thead th { color: var(--muted); font-size: var(--label-size, .8125rem); font-weight: var(--label-weight, 600); letter-spacing: var(--label-tracking, .1em); text-transform: uppercase; }
.seal-table tbody th { font-weight: 600; white-space: nowrap; }
.seal-table tbody tr:last-child > * { border-bottom: 0; }

.seal-defs, .seal-worked { margin: 1rem 0 1.5rem; border-top: 1px solid var(--line-strong); }
.seal-defs > div, .seal-worked > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .25rem 1.5rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.seal-defs dt, .seal-worked dt { font-weight: 600; }
.seal-defs dd, .seal-worked dd { min-width: 0; margin: 0; line-height: 1.75; }
.seal-worked dd { line-height: 1.5; }
.seal-worked code { padding: 0; background: none; }
@media (max-width: 640px) { .seal-defs > div, .seal-worked > div { grid-template-columns: 1fr; } }

/* Check page: the card by card example */
.seal-cards__facts { margin-top: 2.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seal-cards__facts .fact { min-height: 0; }
@media (max-width: 640px) { .seal-cards__facts { grid-template-columns: 1fr; } }
.seal-cards__title { margin: 2.75rem 0 1rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.seal-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seal-slot { display: flex; flex-direction: column; gap: .6rem; min-width: 0; padding: 1rem; border: 1px solid var(--line-strong); border-radius: .6rem; background: var(--paper-bright); }
.seal-slot .mono-label { margin: 0; color: var(--muted); font-size: .7rem; }
/* A face-down card that turns over when its code has been checked. Decorative: the words carry the result. */
.seal-slot__face { position: relative; height: 5rem; border-radius: .4rem; background: var(--night); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 60%, transparent), inset 0 0 0 .4rem var(--night), inset 0 0 0 calc(.4rem + 1px) color-mix(in srgb, var(--brass) 28%, transparent); transition: background-color var(--motion-base) var(--ease-fold), box-shadow var(--motion-base) var(--ease-fold); }
.seal-slot__face::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal-ink); font-size: 1.6rem; font-weight: 700; opacity: 0; transition: opacity var(--motion-base) var(--ease-fold); }
.seal-slot[data-state="match"] { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.seal-slot[data-state="match"] .seal-slot__face { background: var(--surface-teal); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 45%, transparent); }
.seal-slot[data-state="match"] .seal-slot__face::after { opacity: 1; }
.seal-slot:is([data-state="mismatch"], [data-state="invalid"], [data-state="other"]) { box-shadow: inset 4px 0 0 #9b2c2c; }
.seal-slot__name { min-height: 3.75em; margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
.seal-slot[data-state="hidden"] .seal-slot__name { color: var(--muted); }
.seal-slot__note { margin: 0; font-size: .85rem; line-height: 1.5; }
.seal-slot__note a { color: var(--teal-ink); font-weight: 600; }
.seal-slot .button { width: 100%; margin-top: auto; justify-content: center; }
.seal-cards__status { margin: 1.25rem 0 .25rem; padding: .9rem 1.1rem; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: .6rem; background: var(--paper-bright); font-weight: 600; overflow-wrap: anywhere; }
.seal-cards .seal-examples { margin-top: .5rem; }
@media (max-width: 960px) { .seal-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .seal-slots { grid-template-columns: 1fr; }
  .seal-slot__face { height: 3rem; }
  .seal-slot__name { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .seal-slot__face, .seal-slot__face::after { transition: none; } }
@media (forced-colors: active) {
  .seal-slot, .seal-slot__face, .seal-table, .seal-command, .seal-cards__status { border: 1px solid CanvasText; box-shadow: none; }
  .seal-slot[data-state="match"] { border-width: 3px; }
}
