:root {
    --ink: #102a31;
    --muted: #52676c;
    --paper: #fffdf8;
    --surface: #f1f6f2;
    --deep: #0b2f3a;
    --teal: #087a75;
    --teal-dark: #05645f;
    --gold: #d8a53b;
    --line: #d9e2dd;
    --white: #fff;
    --success-soft: #e6f5ee;
    --warning: #a86c0b;
    --warning-soft: #fff3d6;
    --danger: #a23b35;
    --danger-soft: #fbe9e7;
    --neutral-soft: #edf2f1;
    --shadow: 0 24px 60px rgba(11, 47, 58, .13);
    --radius: 1.25rem;
    --shell: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="en"] { font-style: normal; }
[lang="en"] { font-style: italic; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .7rem 1rem; border-radius: .5rem; color: var(--white); background: var(--deep); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(216,165,59,.9); outline-offset: 3px; }

.public-header { border-bottom: 1px solid rgba(217,226,221,.85); background: rgba(255,253,248,.97); }
.header-inner { min-height: 5.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 6.2rem; object-fit: contain; }
.brand > span { display: grid; line-height: 1.25; }
.brand strong { font-size: .96rem; }
.brand small { color: var(--muted); font-size: .72rem; }
.public-header nav { display: flex; align-items: center; gap: 1.25rem; }
.public-header nav a { color: var(--muted); font-size: .88rem; font-weight: 750; text-decoration: none; }
.public-header nav a:hover { color: var(--teal-dark); }
.language-switcher { display: inline-flex; align-items: center; gap: .35rem; margin-left: .25rem; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.language-switcher a[aria-current="true"] { color: var(--teal-dark); text-decoration: underline; text-underline-offset: .2rem; }
.public-header nav .header-contact { padding: .58rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }

.verification-hero { min-height: calc(100vh - 5.4rem); padding: clamp(3.5rem, 8vw, 7rem) 0; background: radial-gradient(circle at 12% 10%, rgba(216,165,59,.2), transparent 22rem), linear-gradient(145deg, #faf6ea, var(--paper) 52%, #e7f1ed); }
.verification-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(24rem, .82fr); gap: clamp(2.5rem, 8vw, 7rem); align-items: center; }
.eyebrow, .card-kicker { margin: 0 0 1rem; color: var(--teal-dark); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.1; letter-spacing: -.025em; }
h1 { margin-bottom: 1.4rem; font-size: clamp(2.7rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.25rem; }
.verification-intro h1 { max-width: 12ch; }
.intro-lead { max-width: 41rem; margin-bottom: .85rem; color: #29484f; font-size: clamp(1.04rem, 1.8vw, 1.2rem); }
.english-copy { max-width: 39rem; color: var(--muted); font-size: .92rem; }

.trust-points { display: grid; gap: .9rem; margin-top: 2.3rem; }
.trust-points > div { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; }
.trust-points > div > span { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; color: var(--white); background: var(--deep); font-size: .7rem; font-weight: 850; }
.trust-points p, .trust-points strong, .trust-points small { display: block; margin: 0; }
.trust-points strong { font-size: .9rem; }
.trust-points small { color: var(--muted); font-size: .78rem; }

.verification-form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid rgba(255,255,255,.88); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.card-heading { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.card-heading .status-symbol { flex: 0 0 3rem; }
.card-heading .card-kicker { margin-bottom: .3rem; color: var(--gold); }
.card-heading h2 { margin-bottom: .2rem; font-size: 2rem; }
.card-heading p:last-child { margin: 0; color: var(--muted); font-size: .8rem; }
.status-symbol { display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: 50%; color: var(--white); background: var(--teal); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.55rem; font-weight: 900; }
.status-symbol.neutral { color: var(--deep); background: var(--neutral-soft); }
.status-symbol--verification svg { width: 2.15rem; height: 2.15rem; overflow: visible; }
.hero-pdf-check-link { display: grid; grid-template-columns: 2.75rem minmax(0,1fr) auto; gap: .75rem; align-items: center; width: min(100%, 23rem); margin-top: 1.5rem; padding: .75rem .9rem; border: 1px solid #edbeb9; border-radius: .8rem; color: var(--ink); background: rgba(255,255,255,.78); box-shadow: 0 10px 26px rgba(11,47,58,.07); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.hero-pdf-check-link:hover { transform: translateY(-2px); border-color: #e1261c; box-shadow: 0 14px 30px rgba(225,38,28,.1); }
.hero-pdf-icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .65rem; color: #e1261c; background: #fff2f1; }
.hero-pdf-icon svg { width: 1.85rem; height: 1.85rem; }
.hero-pdf-check-link strong, .hero-pdf-check-link small { display: block; line-height: 1.35; }
.hero-pdf-check-link strong { font-size: .83rem; }
.hero-pdf-check-link small { margin-top: .08rem; color: var(--muted); font-size: .7rem; }
.hero-pdf-arrow { color: #e1261c; font-size: 1.25rem; font-weight: 850; }
.code-form { display: grid; gap: 1.45rem; }
.field-group, .captcha-group { display: grid; gap: .55rem; }
.field-group label, .captcha-group > p { margin: 0; color: var(--ink); font-size: .86rem; font-weight: 800; }
.field-group label span, .captcha-group > p span { color: var(--muted); font-weight: 600; }
.field-group input { width: 100%; min-height: 3.5rem; padding: .85rem 1rem; border: 1px solid #b8c9c2; border-radius: .75rem; color: var(--ink); background: #fff; letter-spacing: .05em; }
.field-group input::placeholder { color: #8a9996; letter-spacing: 0; }
.field-group input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,122,117,.1); }
.field-group small, .form-privacy { color: var(--muted); font-size: .76rem; }
.field-error { color: var(--danger); font-size: .78rem; font-weight: 700; }
.captcha-frame { min-height: 78px; overflow: hidden; }
.captcha-placeholder { display: grid; min-height: 74px; align-content: center; gap: .15rem; padding: .8rem 1rem; border: 1px dashed #b8c9c2; border-radius: .65rem; color: var(--ink); background: var(--surface); }
.captcha-placeholder strong { font-size: .82rem; }
.captcha-placeholder span { color: var(--muted); font-size: .74rem; }
.form-alert { margin-bottom: 1.4rem; padding: 1rem 1.1rem; border: 1px solid #efc1bd; border-radius: .75rem; color: #722b27; background: var(--danger-soft); font-size: .84rem; }
.form-alert strong { display: block; }
.form-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.primary-action, .secondary-action { display: inline-flex; min-height: 3.2rem; align-items: center; justify-content: center; padding: .8rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-align: center; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.primary-action { color: var(--white); background: var(--teal); box-shadow: 0 10px 24px rgba(8,122,117,.18); }
button.primary-action { width: 100%; cursor: pointer; }
.primary-action:hover { transform: translateY(-2px); background: var(--teal-dark); }
.secondary-action { border-color: #b6c6c0; color: var(--ink); background: transparent; }
.form-privacy { margin: 1.25rem 0 0; }

.help-strip { color: var(--white); background: var(--deep); }
.help-inner { display: flex; min-height: 7rem; align-items: center; justify-content: space-between; gap: 2rem; }
.help-inner div { display: grid; }
.help-inner span { color: #bfd2d4; font-size: .8rem; }
.help-inner a { flex: 0 0 auto; padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .85rem; font-weight: 800; text-decoration: none; }

.result-shell { min-height: calc(100vh - 5.4rem); padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(180deg, #f7f3e8, var(--paper) 25rem); }
.record-masthead { position: relative; display: grid; grid-template-columns: 4.5rem minmax(14rem, 1fr) minmax(23rem, 1.3fr); gap: 1.3rem; align-items: center; margin-bottom: 3rem; padding: 1.35rem 1.5rem; border: 1px solid #bacac4; border-top: 4px solid var(--deep); border-radius: .9rem; background: rgba(255,255,255,.86); box-shadow: 0 12px 32px rgba(16,42,49,.07); }
.record-masthead::after { content: "VERIFICATION RECORD"; position: absolute; right: 1rem; bottom: -.3rem; color: rgba(11,47,58,.035); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: .08em; pointer-events: none; }
.record-seal { position: relative; z-index: 1; display: grid; width: 4rem; height: 4rem; place-items: center; border: 2px solid var(--gold); border-radius: 50%; color: var(--deep); background: #fffaf0; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 900; letter-spacing: .06em; box-shadow: inset 0 0 0 4px #fffaf0, inset 0 0 0 5px rgba(216,165,59,.45); }
.record-issuer { position: relative; z-index: 1; }
.record-issuer p { margin: 0 0 .2rem; color: var(--teal-dark); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.record-issuer h2 { margin: 0 0 .2rem; font-size: 1.45rem; }
.record-issuer span { color: var(--muted); font-size: .72rem; }
.record-meta { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: .65rem; background: rgba(255,255,255,.92); }
.record-meta > div { min-width: 0; padding: .7rem .8rem; border-right: 1px solid var(--line); }
.record-meta > div:last-child { border-right: 0; }
.record-meta dt { color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.record-meta dd { margin: .15rem 0 0; overflow-wrap: anywhere; font-size: .75rem; font-weight: 750; }
.record-meta code { color: var(--deep); font-family: "SFMono-Regular", Consolas, monospace; }
.record-meta strong { color: var(--teal-dark); font-size: .68rem; }
.result-status { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.4rem; max-width: 58rem; align-items: start; margin-bottom: 2.2rem; }
.result-status.status-active { position: relative; padding: 1.5rem 1.7rem; border: 1px solid #a9d2c3; border-left: .35rem solid var(--teal); border-radius: .9rem; background: linear-gradient(135deg, #f4fbf7, rgba(255,255,255,.94)); box-shadow: 0 14px 32px rgba(8,122,117,.08); }
.result-status.status-active::after { content: "VERIFIED"; position: absolute; right: 1.3rem; top: 1rem; color: rgba(8,122,117,.12); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 800; letter-spacing: .18em; pointer-events: none; }
.result-status.status-active .status-symbol { background: var(--teal-dark); box-shadow: 0 0 0 .45rem #e4f4ed; }
.result-status.status-active .eyebrow { color: var(--teal-dark); }
.result-status h1 { max-width: 15ch; margin-bottom: .8rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.result-status p:not(.eyebrow) { max-width: 43rem; margin-bottom: .35rem; color: var(--muted); }
.result-status .status-symbol { margin-top: .2rem; }
.result-guidance { display: flex; gap: .45rem 1rem; align-items: flex-start; margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid #b9ded0; border-radius: .8rem; color: #244e44; background: var(--success-soft); font-size: .88rem; }
.guidance-copy { display: grid; gap: .45rem; min-width: 0; }
.guidance-security { padding-top: .45rem; border-top: 1px solid rgba(36,78,68,.16); color: #38645a; font-size: .82rem; }
.credential-panel { display: grid; grid-template-columns: minmax(14rem,.75fr) 1fr 1fr; gap: 1.5rem; align-items: start; margin-bottom: 2rem; padding: 1.4rem 1.6rem; border: 1px solid #d8c28d; border-radius: .85rem; background: linear-gradient(135deg, #fffaf0, #fffdf8); }
.credential-panel .card-kicker { margin-bottom: .35rem; color: #8a681f; }
.credential-panel h2 { margin: 0; font-size: 1.45rem; }
.credential-panel > p { margin: 0; color: var(--muted); font-size: .78rem; }
.credential-panel > p:last-child { padding-left: 1.5rem; border-left: 1px solid #dfd0aa; }
.document-results { display: grid; gap: 2rem; }
.document-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 18px 50px rgba(16,42,49,.09); }
.document-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.7rem 2rem; border-bottom: 1px solid var(--line); background: #fbfcf9; }
.document-card-header .card-kicker { margin-bottom: .35rem; }
.document-card-header h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); overflow-wrap: anywhere; }
.active-pill { flex: 0 0 auto; padding: .45rem .75rem; border-radius: 999px; color: #17654f; background: var(--success-soft); font-size: .72rem; font-weight: 850; }
.active-pill [lang="en"] { font-weight: 700; }
.document-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.document-facts > div { min-width: 0; padding: 1.2rem 2rem; border-bottom: 1px solid var(--line); }
.document-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.document-facts dt { margin-bottom: .25rem; color: var(--teal-dark); font-size: .7rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.document-facts dt span { color: var(--muted); font-weight: 650; }
.document-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.document-facts dd small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.document-facts code, .replacement-code code, .submitted-code code { color: var(--deep); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .94em; letter-spacing: .03em; overflow-wrap: anywhere; }
.copyable-value { display: inline-flex; max-width: 100%; align-items: center; gap: .45rem; }
.copyable-value code { min-width: 0; }
.copy-value-button { display: inline-grid; width: 1.9rem; height: 1.9rem; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid #c3d6d0; border-radius: .45rem; background: var(--white); color: var(--deep); cursor: pointer; font-size: 1rem; line-height: 1; }
.copy-value-button:hover, .copy-value-button:focus-visible { border-color: #4f9d8b; background: #edf8f4; }
.copy-value-button.is-copied { border-color: #76b99e; background: #e2f3eb; color: #1f6b4e; }
.certification-copy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 2rem; background: #f6f8f5; }
.certification-copy section + section { padding-left: 2rem; border-left: 1px solid var(--line); }
.certification-copy h3 { margin-bottom: .8rem; }
.certification-copy p { color: var(--muted); font-size: .87rem; }
.certification-copy p:last-child { margin-bottom: 0; }

.state-card { max-width: 48rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.state-card .status-symbol { margin: 0 auto 1.4rem; }
.state-card h1 { margin-bottom: 1rem; font-size: clamp(2.45rem, 5vw, 4rem); }
.state-card > p:not(.eyebrow):not(.privacy-boundary) { max-width: 40rem; margin: 0 auto .7rem; color: var(--muted); }
.state-card-superseded { border-top: 5px solid var(--warning); }
.state-card-superseded .status-symbol { background: var(--warning); }
.state-card-revoked { border-top: 5px solid var(--danger); }
.state-card-revoked .status-symbol, .state-card-not-found .status-symbol { background: var(--danger); }
.state-card-not-found { border-top: 5px solid var(--danger); }
.replacement-code, .submitted-code { display: grid; gap: .25rem; max-width: 30rem; margin: 1.6rem auto; padding: 1rem 1.2rem; border-radius: .75rem; background: var(--warning-soft); }
.submitted-code { background: var(--neutral-soft); }
.replacement-code span, .submitted-code span { color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.replacement-code code, .submitted-code code { font-size: 1.05rem; font-weight: 800; }
.inline-action { width: auto; margin-top: .2rem; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.privacy-boundary { margin: 1.6rem 0 0 !important; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.failure-diagnostic { margin: 1.5rem 0 0; padding: 1.25rem; border: 1px solid #e4c4c1; border-radius: .8rem; text-align: left; background: #fffafa; }
.failure-diagnostic h2 { margin-bottom: .8rem; font-size: 1.35rem; }
.failure-diagnostic dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 0 1rem; border: 1px solid #ead6d4; border-radius: .6rem; background: var(--white); }
.failure-diagnostic dl > div { padding: .7rem; border-right: 1px solid #ead6d4; }
.failure-diagnostic dl > div:last-child { border-right: 0; }
.failure-diagnostic dt { color: var(--muted); font-size: .65rem; font-weight: 750; }
.failure-diagnostic dd { margin: .15rem 0 0; color: var(--danger); font-size: .82rem; font-weight: 850; }
.failure-diagnostic p { margin: .6rem 0 0 !important; color: var(--muted) !important; font-size: .77rem; }
.failure-diagnostic .verification-security-note { padding-top: .8rem; border-top: 1px solid #ead6d4; color: #722b27 !important; font-weight: 650; }
.company-record-disclaimer { max-width: 58rem; margin: 1.5rem auto 0; color: var(--muted); font-size: .7rem; text-align: center; }
.document-results + .company-record-disclaimer { max-width: 68rem; }

.result-help { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding: 1.7rem 2rem; border-radius: 1rem; color: var(--white); background: var(--deep); }
.result-help .eyebrow { margin-bottom: .35rem; color: #90dcd5; }
.result-help h2 { margin-bottom: .4rem; font-size: 1.7rem; }
.result-help p:last-child { max-width: 43rem; margin-bottom: 0; color: #c4d6d8; font-size: .84rem; }
.result-help-links { display: grid; gap: .4rem; flex: 0 0 auto; }
.result-help-links a { color: var(--white); font-size: .84rem; font-weight: 750; }

.public-footer { padding: 2rem 0; color: #c7d9db; background: #07252d; }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: 0; font-size: .8rem; }
.footer-inner p:first-child { display: grid; }
.footer-inner a { color: var(--white); }

.certificate-shell { padding: clamp(3rem, 7vw, 5.5rem) 0; background: radial-gradient(circle at 88% 3%, rgba(216, 165, 59, .18), transparent 24rem), var(--surface); }
.certificate-layout { display: grid; gap: 1.5rem; }
.certificate-hero { max-width: 58rem; padding: clamp(1rem, 3vw, 2rem) 0; }
.certificate-hero h1 { max-width: 16ch; margin-bottom: 1.25rem; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.certificate-hero > p:not(.eyebrow) { max-width: 50rem; color: #29484f; }
.certificate-english { color: var(--muted) !important; font-size: .9rem; }
.certificate-status-row { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 1.1rem; }
.certificate-status, .certificate-trust { display: inline-flex; align-items: center; padding: .38rem .72rem; border-radius: 999px; font-size: .72rem; font-weight: 850; letter-spacing: .035em; }
.certificate-status--active { color: #075f47; background: #dff5ea; }
.certificate-status--inactive { color: var(--danger); background: var(--danger-soft); }
.certificate-trust { color: #725010; background: #fff1cb; }
.certificate-panel { padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.15rem; background: var(--white); box-shadow: 0 16px 42px rgba(11, 47, 58, .08); }
.certificate-panel--warning { border-color: #e8d29c; background: #fffaf0; }
.certificate-panel h2 { margin-bottom: .85rem; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.certificate-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.certificate-panel-heading h2 { margin: 0; }
.certificate-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.certificate-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.certificate-facts > div { min-width: 0; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.certificate-facts > div:nth-child(4n) { border-right: 0; }
.certificate-facts > div:nth-last-child(-n+4) { border-bottom: 0; }
.certificate-facts dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.certificate-facts dd { margin: .25rem 0 0; overflow-wrap: anywhere; font-size: .9rem; font-weight: 720; }
.certificate-fingerprint { display: grid; gap: .55rem; margin-top: 1rem; padding: 1rem; border-radius: .8rem; color: #dceced; background: var(--deep); }
.certificate-fingerprint span { font-size: .75rem; font-weight: 800; }
.certificate-fingerprint code { color: var(--white); overflow-wrap: anywhere; font-size: .8rem; line-height: 1.65; }
.certificate-panel ul { margin-bottom: 1rem; padding-left: 1.25rem; }
.certificate-panel li + li { margin-top: .5rem; }
.certificate-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; list-style: none; counter-reset: certificate-step; }
.certificate-steps li { position: relative; display: grid; gap: .35rem; padding: 1rem 1rem 1rem 3.3rem; border: 1px solid var(--line); border-radius: .8rem; counter-increment: certificate-step; }
.certificate-steps li::before { position: absolute; top: 1rem; left: 1rem; display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; color: var(--white); background: var(--teal-dark); content: counter(certificate-step); font-size: .75rem; font-weight: 850; }
.certificate-steps span { color: var(--muted); font-size: .83rem; }

.pdf-check-shell { min-height: calc(100vh - 5.4rem); padding: clamp(3rem, 7vw, 5.5rem) 0; background: radial-gradient(circle at 10% 8%, rgba(216,165,59,.18), transparent 23rem), linear-gradient(160deg, #faf6ea, var(--surface)); }
.pdf-check-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, .82fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.pdf-check-layout > * { min-width: 0; }
.pdf-check-intro { padding-top: clamp(.5rem, 3vw, 2rem); }
.pdf-check-intro h1 { max-width: 14ch; margin-bottom: 1.25rem; font-size: clamp(2.55rem, 5vw, 4.5rem); }
.pdf-check-intro > p:not(.eyebrow) { max-width: 45rem; color: #29484f; }
.pdf-check-intro p, .pdf-result-content p { overflow-wrap: anywhere; }
.secure-pdf-visual { position: relative; max-width: 34rem; margin: 1.4rem 0 1.6rem; overflow: hidden; border: 1px solid rgba(184,201,194,.75); border-radius: 1.25rem; background: radial-gradient(circle at 72% 40%, rgba(225,38,28,.1), transparent 12rem), rgba(255,255,255,.64); box-shadow: 0 16px 38px rgba(11,47,58,.08); }
.secure-pdf-visual svg { width: 100%; height: auto; }
.pdf-document { transform-origin: 48% 55%; animation: secure-pdf-float 5s ease-in-out infinite; }
.pdf-shield { transform-origin: 77% 72%; animation: secure-shield-pulse 3.2s ease-in-out infinite; }
.pdf-scan-line { animation: secure-pdf-scan 3.6s cubic-bezier(.45,0,.2,1) infinite; }
.pdf-orbit { transform-origin: 283px 159px; animation: secure-orbit 18s linear infinite; }
.pdf-orbit-dot { transform-origin: 283px 159px; animation: secure-orbit 7s linear infinite; }
.pdf-signature-line { stroke-dasharray: 210; stroke-dashoffset: 210; animation: secure-signature-draw 5s ease-in-out infinite; }
.pdf-check-mark { stroke-dasharray: 70; stroke-dashoffset: 70; animation: secure-check-draw 3.2s ease-out infinite; }
.pdf-sparkles { transform-origin: center; animation: secure-sparkle 2.6s ease-in-out infinite; }
.secure-pdf-caption { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .7rem .9rem .9rem; }
.secure-pdf-caption > span { display: grid; grid-template-columns: .55rem 1fr; gap: .15rem .45rem; align-items: center; padding: .65rem .75rem; border-radius: .65rem; color: var(--deep); background: rgba(255,255,255,.86); font-size: .73rem; font-weight: 800; }
.secure-pdf-caption i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 .24rem rgba(8,122,117,.12); }
.secure-pdf-caption small { grid-column: 2; color: var(--muted); font-size: .66rem; font-weight: 600; }
.pdf-check-prompt, .result-pdf-check { display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: .25rem .85rem; align-items: center; margin-top: 1.3rem; padding: 1rem; border: 1px solid #edbeb9; border-radius: .85rem; background: #fff8f7; }
.pdf-mini-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: .65rem; color: var(--white); background: #e1261c; font-size: .7rem; font-weight: 900; letter-spacing: .04em; box-shadow: 0 8px 18px rgba(225,38,28,.2); }
.pdf-check-prompt strong, .result-pdf-check strong { display: block; font-size: .83rem; }
.pdf-check-prompt p, .result-pdf-check p { margin: .2rem 0 0; color: var(--muted); font-size: .72rem; }
.pdf-check-prompt > a { grid-column: 2; justify-self: start; color: #b3261e; font-size: .78rem; font-weight: 850; text-underline-offset: .2rem; }
.result-pdf-check { grid-template-columns: 3.2rem minmax(0,1fr) auto; max-width: 68rem; margin: -1rem 0 2rem; padding: 1rem 1.2rem; }
.result-pdf-check .pdf-mini-icon { width: 3.2rem; height: 3.2rem; }
.result-pdf-check strong { font-size: .9rem; }
.result-pdf-check p { font-size: .78rem; }
.result-pdf-check .primary-action { white-space: nowrap; }
.privacy-notice { display: grid; gap: .35rem; max-width: 43rem; margin-top: 1.5rem; padding: 1rem 1.1rem; border-left: .28rem solid var(--teal); border-radius: .25rem .75rem .75rem .25rem; color: #31574f; background: var(--success-soft); font-size: .79rem; }
.privacy-notice strong { color: var(--deep); }
.pdf-check-card { position: sticky; top: 1rem; }
.pdf-check-card .status-symbol { font-size: .72rem; letter-spacing: .04em; }
.file-field input[type="file"] { min-height: auto; padding: .72rem; letter-spacing: 0; }
.file-field input[type="file"]::file-selector-button { margin-right: .75rem; padding: .6rem .8rem; border: 0; border-radius: .55rem; color: var(--white); background: var(--deep); font-weight: 750; cursor: pointer; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
.pdf-check-result { grid-column: 1 / -1; display: grid; grid-template-columns: 4.5rem minmax(0,1fr); gap: 1.25rem; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid var(--line); border-left-width: .4rem; border-radius: 1rem; background: var(--white); box-shadow: 0 18px 45px rgba(16,42,49,.09); }
.pdf-check-result--verified { border-left-color: var(--teal); background: linear-gradient(135deg, #f3fbf7, #fff); }
.pdf-check-result--review { border-left-color: var(--warning); background: linear-gradient(135deg, var(--warning-soft), #fff); }
.pdf-check-result--failed { border-left-color: var(--danger); background: linear-gradient(135deg, var(--danger-soft), #fff); }
.pdf-check-result--review .status-symbol { background: var(--warning); }
.pdf-check-result--failed .status-symbol { background: var(--danger); }
.pdf-result-content h2 { max-width: 44rem; margin-bottom: 1rem; font-size: clamp(1.75rem, 4vw, 2.65rem); }
.pdf-result-content > p:not(.card-kicker) { max-width: 55rem; margin-bottom: .5rem; color: var(--muted); }
.pdf-result-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 1.4rem 0 0; border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
.pdf-result-facts > div { min-width: 0; padding: .9rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdf-result-facts > div:nth-child(3n) { border-right: 0; }
.pdf-result-facts > div:nth-last-child(-n+3) { border-bottom: 0; }
.pdf-result-facts dt { color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.pdf-result-facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; font-weight: 750; }
.pdf-result-facts dd small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }
.pdf-trust-boundary { grid-column: 1 / -1; }
.pdf-trust-boundary > p { max-width: 60rem; color: var(--muted); }
.pdf-trust-boundary > a { color: var(--teal-dark); font-weight: 800; }

@media (max-width: 850px) {
    .verification-layout { grid-template-columns: 1fr; }
    .verification-intro { max-width: 45rem; }
    .verification-form-card { max-width: 35rem; }
    .result-help { align-items: flex-start; flex-direction: column; }
    .result-help-links { display: flex; flex-wrap: wrap; gap: 1rem; }
    .record-masthead { grid-template-columns: 4.5rem 1fr; }
    .record-meta { grid-column: 1 / -1; }
    .credential-panel { grid-template-columns: 1fr 1fr; }
    .credential-panel > div { grid-column: 1 / -1; }
    .certificate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .certificate-facts > div:nth-child(4n) { border-right: 1px solid var(--line); }
    .certificate-facts > div:nth-child(2n) { border-right: 0; }
    .certificate-facts > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
    .certificate-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
    .certificate-columns, .certificate-steps { grid-template-columns: 1fr; }
    .pdf-check-layout { grid-template-columns: 1fr; }
    .pdf-check-card { position: static; max-width: none; }
    .pdf-result-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pdf-result-facts > div, .pdf-result-facts > div:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .pdf-result-facts > div:nth-child(2n) { border-right: 0; }
    .pdf-result-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
    .result-pdf-check { grid-template-columns: 3.2rem minmax(0,1fr); }
    .result-pdf-check .primary-action { grid-column: 2; justify-self: start; }
}

@media (max-width: 650px) {
    .shell { width: min(calc(100% - 1.25rem), var(--shell)); }
    .header-inner { min-height: 4.8rem; }
    .brand img { width: 5.5rem; }
    .brand > span { display: none; }
    .public-header nav a:not(.header-contact) { display: none; }
    .public-header nav .language-switcher a { display: inline; }
    .verification-hero { padding-top: 3rem; }
    h1 { font-size: clamp(2.4rem, 12vw, 3.35rem); }
    .verification-form-card { padding: 1.25rem; }
    .captcha-frame { width: 100%; overflow-x: auto; }
    .result-status { grid-template-columns: 1fr; gap: 1rem; }
    .result-status .status-symbol { width: 3.5rem; height: 3.5rem; }
    .document-card-header { align-items: flex-start; flex-direction: column; padding: 1.35rem; }
    .document-facts { grid-template-columns: 1fr; }
    .document-facts > div { padding: 1rem 1.35rem; }
    .document-facts > div:nth-child(odd) { border-right: 0; }
    .certification-copy { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.35rem; }
    .certification-copy section + section { padding: 1.5rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .state-card { padding: 2rem 1.25rem; }
    .record-masthead { grid-template-columns: 3.5rem 1fr; gap: .9rem; padding: 1rem; }
    .record-seal { width: 3.25rem; height: 3.25rem; }
    .record-meta { grid-template-columns: 1fr; }
    .record-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .record-meta > div:last-child { border-bottom: 0; }
    .credential-panel { grid-template-columns: 1fr; padding: 1.2rem; }
    .credential-panel > div { grid-column: auto; }
    .credential-panel > p:last-child { padding: 1.1rem 0 0; border-top: 1px solid #dfd0aa; border-left: 0; }
    .failure-diagnostic dl { grid-template-columns: 1fr; }
    .failure-diagnostic dl > div { border-right: 0; border-bottom: 1px solid #ead6d4; }
    .failure-diagnostic dl > div:last-child { border-bottom: 0; }
    .state-actions > * { width: 100%; }
    .help-inner, .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1.5rem; }
    .result-help { padding: 1.35rem; }
    .certificate-panel-heading { align-items: stretch; flex-direction: column; }
    .certificate-panel-heading .primary-action { width: 100%; }
    .certificate-facts { grid-template-columns: 1fr; }
    .certificate-facts > div, .certificate-facts > div:nth-child(2n), .certificate-facts > div:nth-child(4n), .certificate-facts > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .certificate-facts > div:last-child { border-bottom: 0; }
    .pdf-check-result { grid-template-columns: 1fr; }
    .pdf-check-result .status-symbol { width: 3.5rem; height: 3.5rem; }
    .pdf-result-facts { grid-template-columns: 1fr; }
    .pdf-result-facts > div, .pdf-result-facts > div:nth-child(2n), .pdf-result-facts > div:nth-child(3n), .pdf-result-facts > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .pdf-result-facts > div:last-child { border-bottom: 0; }
    .secure-pdf-caption { grid-template-columns: 1fr; }
    .result-pdf-check { grid-template-columns: 1fr; margin-top: -.6rem; }
    .result-pdf-check .primary-action { grid-column: auto; width: 100%; }
    .pdf-check-prompt { grid-template-columns: 2.7rem minmax(0,1fr); }
    .pdf-mini-icon { width: 2.7rem; height: 2.7rem; }
}

@keyframes secure-pdf-float {
    0%, 100% { transform: translateY(0) rotate(-.4deg); }
    50% { transform: translateY(-7px) rotate(.4deg); }
}

@keyframes secure-shield-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

@keyframes secure-pdf-scan {
    0%, 12% { transform: translateY(0); opacity: 0; }
    18% { opacity: .95; }
    72% { transform: translateY(126px); opacity: .95; }
    80%, 100% { transform: translateY(126px); opacity: 0; }
}

@keyframes secure-orbit { to { transform: rotate(360deg); } }

@keyframes secure-signature-draw {
    0%, 20% { stroke-dashoffset: 210; }
    48%, 100% { stroke-dashoffset: 0; }
}

@keyframes secure-check-draw {
    0%, 42% { stroke-dashoffset: 70; }
    68%, 100% { stroke-dashoffset: 0; }
}

@keyframes secure-sparkle {
    0%, 100% { opacity: .4; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media print {
    .public-header nav, .result-help, .public-footer, .help-strip, .state-actions { display: none; }
    body, .result-shell { background: #fff; }
    .public-header { border-bottom: 1px solid #aaa; }
    .document-card { box-shadow: none; }
    .record-masthead { box-shadow: none; }
    .record-masthead::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
