/* Verify-certificate page (pages/public/verify-certificate.php): hero lookup panel + verification record card. */

/* Hero lookup panel */
.v4-verify-panel { padding: clamp(22px, 2.4vw, 30px); }
.v4-verify-panel h2 { font-size: 1.0625rem; }
.v4-verify-panel .v4-search { padding-left: 44px; }
.v4-verify-panel .v4-search input { font-size: .9375rem; }
.v4-verify-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px !important; font-size: .8438rem; color: rgba(255, 255, 255, .74); }
.v4-verify-hint .v4-ico { margin-top: 2px; color: var(--v4-teal-300); }

/* Verification record */
.v4-record {
    --rec: #047857; --rec-tint: #ECFDF5; --rec-line: #A7F3D0;
    position: relative; max-width: 900px; margin-inline: auto; overflow: hidden;
    background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-r-xl); box-shadow: var(--v4-shadow);
    scroll-margin-top: calc(var(--v4-header-h) + 24px);
}
.v4-record::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--rec); }
.v4-record--expired { --rec: #B91C1C; --rec-tint: #FEF2F2; --rec-line: #FECACA; }
.v4-record--missing { --rec: #B45309; --rec-tint: #FFFBEB; --rec-line: #FDE68A; }

.v4-record__status {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start;
    padding: clamp(24px, 3vw, 32px) clamp(20px, 3vw, 36px);
    background: radial-gradient(420px 160px at 100% 0%, rgba(255, 255, 255, .9), transparent 70%), var(--rec-tint);
    border-bottom: 1px solid var(--rec-line);
}
.v4-record__seal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--rec); color: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--rec-line); }
.v4-record__seal .v4-ico { width: 28px; height: 28px; stroke-width: 2; }
.v4-record__kicker { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rec); margin-bottom: 4px !important; }
.v4-record__status h2 { font-size: clamp(1.5rem, 1vw + 1.15rem, 1.9rem); line-height: 1.15; }
.v4-record__status p:last-child { margin-top: 6px; color: var(--v4-text-2); }
.v4-record__status > .v4-tag { margin-top: 4px; font-size: .8125rem; padding: 6px 12px; background: #fff; color: var(--rec); box-shadow: inset 0 0 0 1px var(--rec-line); }

.v4-record__body { padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px) 8px; }
.v4-record__body h3 { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--v4-text-3); margin-bottom: 4px; }
.v4-record__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.v4-record__grid > div { padding: 16px 0; border-top: 1px solid var(--v4-line); min-width: 0; }
.v4-record__grid dt { font-size: .8125rem; color: var(--v4-text-3); margin-bottom: 2px; }
.v4-record__grid dd { margin: 0; font-weight: 600; color: var(--v4-text); }
.v4-record__lead dd { font-family: var(--v4-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.v4-record__mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .9063rem; overflow-wrap: anywhere; }

.v4-record__foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px;
    padding: 16px clamp(20px, 3vw, 36px); background: var(--v4-tint); border-top: 1px solid var(--v4-line);
    font-size: .875rem; color: var(--v4-text-3);
}
.v4-record__issuer { display: inline-flex; align-items: center; gap: 8px; }
.v4-record__issuer .v4-ico { color: var(--v4-teal-700); }
.v4-record__actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* "What the result tells you" legend */
.v4-verify-legend { display: grid; }
.v4-verify-legend li { display: grid; gap: 6px; justify-items: start; padding: 12px 0; border-top: 1px solid var(--v4-line); }
.v4-verify-legend li:first-child { border-top: 0; padding-top: 2px; }
.v4-card .v4-verify-legend p { font-size: .875rem; }

@media (max-width: 640px) {
    .v4-record__status { grid-template-columns: auto minmax(0, 1fr); }
    .v4-record__status > .v4-tag { grid-column: 2; justify-self: start; margin-top: 0; }
    .v4-record__seal { width: 46px; height: 46px; }
    .v4-record__seal .v4-ico { width: 24px; height: 24px; }
    .v4-record__grid { grid-template-columns: minmax(0, 1fr); }
    .v4-verify-panel .v4-search { flex-wrap: wrap; padding: 6px; }
    .v4-verify-panel .v4-search > .v4-ico { top: 19px; }
    .v4-verify-panel .v4-search input { flex-basis: 100%; padding-left: 40px; }
    .v4-verify-panel .v4-search .v4-btn { width: 100%; }
}
