/* Certificate lookup page */
/* ============ Certificate lookup ============ */
.lk-hero .wrap { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.lk-hero .wrap { row-gap: 0; }
.lk-hero .lk-search { margin-top: 2.25rem; }
.lk-hero .crumbs { margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.lk-hero .ph-copy { grid-column: 1 / 8; }
.lk-stats { grid-column: 9 / -1; align-self: end; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--on-night-rule); margin: 0; }
.lk-stats div { padding-top: 1rem; }
.lk-stats div + div { padding-left: 1.25rem; border-left: 1px solid var(--on-night-rule); }
.lk-stats dt { font-size: .84rem; color: var(--on-night-muted); line-height: 1.4; }
.lk-stats dd { margin: .3rem 0 0; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 110; }
.lk-stats dd small { font-size: .9rem; font-weight: 600; color: var(--on-night-muted); margin-left: .3rem; }
.lk-hero h1 { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.2rem); }
.lk-search { grid-column: 1 / -1; margin-top: .5rem; }
.lk-bar { display: flex; gap: .6rem; padding: .5rem; background: var(--white); border-radius: 12px; box-shadow: 0 30px 60px -30px oklch(0.1 0.08 266 / .8); }
.lk-field { position: relative; flex: 1; min-width: 0; }
.lk-field svg { position: absolute; left: 1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.lk-field input { width: 100%; height: 56px; border: 0; padding: 0 1rem 0 3rem; font-size: 1.08rem; color: var(--ink); background: transparent; outline: none; border-radius: 8px; }
.lk-field input:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.lk-field input::placeholder { color: var(--muted); }
.lk-clear { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--muted); cursor: pointer; display: none; }
.lk-clear.show { display: grid; place-items: center; }
.lk-bar .btn { min-height: 56px; padding-inline: 1.6rem; }
.lk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1rem; }
.lk-filters .grp { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.lk-filters .grp > span { font-size: .84rem; color: var(--on-night-muted); margin-right: .25rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid oklch(0.97 0.01 266 / .28); font-size: .88rem; font-weight: 600; color: var(--on-night); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover span { border-color: var(--on-night); }
.chip input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--night); }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (max-width: 900px) { .lk-hero .ph-copy, .lk-stats { grid-column: 1 / -1; } .lk-stats { display: none; } }
@media (max-width: 640px) { .lk-bar { flex-direction: column; } .lk-bar .btn { width: 100%; } }

/* Results */
.lk-results { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.lk-results .wrap > .g { row-gap: 2.5rem; align-items: start; }
.lk-main { grid-column: 1 / 9; }
.lk-side { grid-column: 9 / -1; position: sticky; top: 96px; display: grid; gap: 1rem; }
.lk-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--ink); }
.lk-meta p { font-size: .98rem; }
.lk-meta b { font-variant-numeric: tabular-nums; }
.lk-meta select { height: 38px; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0 .6rem; background: var(--white); font: inherit; font-size: .9rem; }
.lk-list > li { border-bottom: 1px solid var(--rule); }
.rec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1.5rem; padding-block: 1.25rem; align-items: start; }
.rec h3 { font-size: 1.06rem; line-height: 1.4; font-variation-settings: "wdth" 100; letter-spacing: -0.005em; }
.rec h3 mark, .rec-d mark { background: oklch(0.85 0.15 92 / .45); color: inherit; border-radius: 2px; padding: 0 .1em; }
.rec-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; align-items: center; }
.std-tag { font-size: .78rem; font-weight: 750; padding: .2rem .55rem; border-radius: 4px; background: oklch(0.46 0.13 266 / .1); color: var(--brand); white-space: nowrap; }
.rec-field { font-size: .86rem; color: var(--muted); }
.rec-side { display: grid; justify-items: end; gap: .45rem; text-align: right; }
.st { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.st.ok { background: oklch(0.95 0.045 155); color: oklch(0.38 0.1 155); }
.st.ok::before { background: oklch(0.62 0.15 155); }
.st.no { background: oklch(0.95 0.035 27); color: oklch(0.45 0.16 27); }
.st.no::before { background: oklch(0.6 0.18 27); }
.rec-date { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rec-more { grid-column: 1 / -1; }
.rec-more summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none; font-size: .88rem; font-weight: 650; color: var(--brand); }
.rec-more summary::-webkit-details-marker { display: none; }
.rec-more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.rec-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.rec-d { margin-top: .85rem; display: grid; grid-template-columns: 9rem 1fr; gap: .5rem 1rem; padding: 1rem 1.1rem; background: var(--paper-2); border-radius: 8px; font-size: .92rem; }
.rec-d dt { color: var(--muted); }
.rec-d dd { margin: 0; white-space: pre-line; line-height: 1.55; }
.rec-d .warn { grid-column: 1 / -1; padding-top: .5rem; border-top: 1px solid var(--rule); color: oklch(0.45 0.16 27); font-weight: 600; }
@media (max-width: 560px) { .rec { grid-template-columns: 1fr; } .rec-side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: .75rem; } .rec-d { grid-template-columns: 1fr; gap: .1rem; } .rec-d dd { margin-bottom: .5rem; } }

.lk-more[hidden] { display: none; }
.lk-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.lk-empty { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--rule-strong); border-radius: 12px; margin-top: 1.5rem; }
.lk-empty h3 { font-size: 1.15rem; }
.lk-empty p { color: var(--muted); margin: .6rem auto 0; max-width: 42ch; }
.lk-empty .btn { margin-top: 1.25rem; }
.lk-empty[hidden] { display: none; }

.side-card { border: 1px solid var(--rule); border-radius: 12px; background: var(--white); padding: 1.25rem; }
.side-card h2 { font-size: 1rem; letter-spacing: -0.005em; font-variation-settings: "wdth" 100; }
.side-card > p { color: var(--muted); font-size: .9rem; margin-top: .4rem; line-height: 1.55; }
.legend { margin-top: .9rem; display: grid; gap: .75rem; }
.legend li { display: grid; gap: .3rem; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.legend .st { justify-self: start; }
.side-card.dark { background: var(--night); color: var(--on-night); border-color: var(--night); }
.side-card.dark > p { color: var(--on-night-muted); }
.side-card.dark .btn { margin-top: 1rem; width: 100%; }
@media (max-width: 960px) { .lk-main, .lk-side { grid-column: 1 / -1; } .lk-side { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lk-side { grid-template-columns: 1fr; } }

/* Official verification request */
.verify-req .reg-points { border-top: 1.5px solid var(--ink); }
.verify-req .reg-points li { display: grid; grid-template-columns: 1.75rem 1fr; padding-block: 1rem; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.verify-req .reg-points svg { width: 20px; height: 20px; color: var(--brand); margin-top: .15rem; }
.verify-req .reg-points b { display: block; }
.verify-req .reg-points span { color: var(--muted); font-size: .93rem; }
.verify-req .tool-inputs { display: block; }
.verify-req .lead-row .full { grid-column: 1 / -1; }
.verify-req textarea { width: 100%; min-height: 96px; padding: .7rem .9rem; border-radius: var(--radius); border: 1px solid oklch(0.97 0.01 266 / .22); background: oklch(0.97 0.01 266 / .06); color: var(--on-night); font: inherit; resize: vertical; }
.verify-req textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px oklch(0.85 0.15 92 / .25); }

/* Private lookup: status line, hint, veiled placeholder rows (no real data) */
.lk-hint { margin-top: .9rem; font-size: .88rem; color: var(--on-night-muted, var(--muted)); max-width: 46rem; }
.lk-status { font-size: .98rem; color: var(--muted); margin: 0 0 1rem; }
.lk-status b { color: var(--ink); }
.lk-veil { position: relative; border-top: 1.5px solid var(--ink); }
.lk-veil[hidden] { display: none; }
.lk-veil .ghost { display: grid; gap: .55rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); filter: blur(3px); opacity: .7; }
.lk-veil .ghost i { display: block; height: .8rem; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--paper-2), oklch(0.9 0.02 266), var(--paper-2)); }
.lk-veil .ghost i:first-child { height: 1.05rem; }
.veil-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .35rem; text-align: center; padding: 1rem; background: linear-gradient(180deg, oklch(0.985 0.004 266 / .2), oklch(0.985 0.004 266 / .85) 40%); }
.veil-msg svg { width: 2rem; height: 2rem; color: var(--brand); margin-bottom: .35rem; }
.veil-msg b { font-size: 1.05rem; color: var(--ink); }
.veil-msg span { font-size: .92rem; color: var(--muted); max-width: 26rem; }
.lk-veil .ghost { opacity: 1; filter: blur(2.5px); grid-template-columns: 1fr auto; align-items: center; column-gap: 1.5rem; }
.lk-veil .ghost i { background: oklch(0.86 0.03 266); grid-column: 1; }
.lk-veil .ghost::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 5.5rem; height: 1.6rem; border-radius: 999px; background: oklch(0.9 0.06 155); }
.veil-msg { background: radial-gradient(ellipse at center, oklch(0.985 0.004 266 / .92) 0, oklch(0.985 0.004 266 / .75) 45%, oklch(0.985 0.004 266 / .1) 80%); }

/* Verification seal on a valid certificate */
.rec-d.has-seal { position: relative; padding-right: 8.5rem; min-height: 8rem; }
.seal { position: absolute; top: .75rem; right: 1rem; width: 7rem; height: 7rem; color: oklch(0.46 0.13 266); transform-origin: 50% 50%; animation: das-stamp .55s cubic-bezier(.16, 1, .3, 1) .15s both; }
.seal svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-12deg); }
.seal-ring { fill: none; stroke: currentColor; stroke-width: 2.5; }
.seal-ring.thin { stroke-width: 1; stroke-dasharray: 2 3; }
.seal-text { font: 800 10px/1 Archivo, sans-serif; fill: currentColor; }
.seal-date { font: 700 7.5px/1 Archivo, sans-serif; letter-spacing: .06em; fill: currentColor; opacity: .85; font-variant-numeric: tabular-nums; }
.seal-check { fill: none; stroke: oklch(0.78 0.15 88); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: das-print .45s cubic-bezier(.22, 1, .36, 1) .6s forwards; }
.seal::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; box-shadow: 0 0 0 0 oklch(0.46 0.13 266 / .25); animation: das-ink .7s ease-out .2s both; pointer-events: none; }
@keyframes das-stamp { 0% { opacity: 0; transform: scale(1.7); } 60% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: scale(1); } }
@keyframes das-ink { 0% { box-shadow: 0 0 0 0 oklch(0.46 0.13 266 / .28); } 100% { box-shadow: 0 0 0 14px oklch(0.46 0.13 266 / 0); } }
@media (max-width: 640px) { .rec-d.has-seal { padding-right: 1rem; padding-top: 7.5rem; } .seal { width: 6rem; height: 6rem; left: 1rem; right: auto; } }
@media (prefers-reduced-motion: reduce) { .seal, .seal::after { animation: none; } .seal-check { animation: none; stroke-dashoffset: 0; } }

/* Hologram sheen across the seal, like the anti-counterfeit foil on a certificate */
.seal::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, oklch(0.88 0.11 200 / .55) 44%, oklch(0.86 0.13 320 / .5) 50%, oklch(0.93 0.13 95 / .6) 56%, transparent 62%);
  background-size: 320% 100%; background-position: 100% 0; mix-blend-mode: multiply; opacity: 0;
  animation: das-holo 1.3s cubic-bezier(.22, 1, .36, 1) 1.15s both; }
.seal:hover::before { animation: das-holo-again 1.1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes das-holo { 0% { opacity: 1; background-position: 100% 0; } 100% { opacity: 1; background-position: 0 0; } }
@keyframes das-holo-again { 0% { opacity: 1; background-position: 100% 0; } 100% { opacity: 1; background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .seal::before { animation: none; opacity: 0; } }
/* Stronger, slower sheen */
.seal::before { background: linear-gradient(115deg, transparent 30%, oklch(0.85 0.12 200 / .7) 40%, oklch(0.82 0.15 320 / .6) 50%, oklch(0.9 0.15 95 / .75) 60%, transparent 70%); background-size: 260% 100%; mix-blend-mode: normal; animation: das-holo 1.7s cubic-bezier(.45, 0, .2, 1) 1s both; }
@keyframes das-holo { 0% { opacity: 0; background-position: 100% 0; } 15%, 80% { opacity: .55; } 100% { opacity: 0; background-position: 0 0; } }
@keyframes das-holo-again { 0% { opacity: 0; background-position: 100% 0; } 15%, 80% { opacity: .55; } 100% { opacity: 0; background-position: 0 0; } }
.seal:hover::before { animation: das-holo-again 1.4s cubic-bezier(.45, 0, .2, 1) both; }
