@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Petit+Formal+Script&display=swap');

/* ============================================================
   AMENTAL — CERTIFICATE VERIFICATION
   COMPLETE STYLESHEET. Replaces every previous snippet.

   Plaque matches the photographed award; search form matches
   the light-card reference.

   >>> BEFORE IT LOOKS RIGHT: upload 4 brand images to the
   Media Library and paste their URLs into section 2. They
   cannot be drawn in CSS. Until then those slots stay blank
   and the layout still holds.
   ============================================================ */


/* ---- 1. Elementor wrapper (ID-free, any page) -------------- */

.elementor-widget-shortcode:has(.cv-verify-widget),
.elementor-widget-shortcode:has(.cv-verify-widget) > .elementor-widget-container,
.elementor-widget-shortcode:has(.cv-verify-widget) .elementor-shortcode {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-shortcode:has(.cv-verify-widget) {
    flex: 1 1 100% !important;
    align-self: stretch !important;
}

@supports not selector(:has(*)) {
    .elementor-widget-shortcode > .elementor-widget-container,
    .elementor-widget-shortcode .elementor-shortcode {
        width: 100%;
        max-width: 100%;
    }
}


/* ---- 2. Tokens -------------------------------------------- */

.cv-verify-widget,
.cv-verify-widget *,
.cv-verify-widget *::before,
.cv-verify-widget *::after {
    box-sizing: border-box;
}

.cv-verify-widget {
    /* ---- Brand assets ------------------------------------
       Set a slot to `none` to hide that element entirely. */
    --cv-logo-img:      url("https://amental.org/wp-content/uploads/2026/09/amc-logo.png");
    --cv-ribbon-img:    url("https://amental.org/wp-content/uploads/2026/09/amc-badge.png");
    --cv-seal-img:      url("https://amental.org/wp-content/uploads/2026/09/amc-seal.png");
    --cv-sig-img:       url("https://amental.org/wp-content/uploads/2026/09/signature.png");

    /* ---- Etching filter ----------------------------------
       The logo, seal and signature are engraved white on the
       real plaque. Which value you want depends on your files:

         DARK artwork on transparent  -> keep the line below
         WHITE artwork on transparent -> comment the first line
                                         out and use the second

       The navy badge is NEVER filtered: it keeps its colours. */
    --cv-mark-filter:   brightness(0) invert(1) opacity(0.86);
    /* --cv-mark-filter: opacity(0.9); */

    /* Brand */
    --cv-navy:          #0c2d54;
    --cv-navy-lift:     #1e4576;
    --cv-gold:          #dcbd75;
    --cv-gold-hover:    #cba852;
    --cv-gold-active:   #c09a41;

    /* Search form (light card, per reference) */
    --cv-form-bg:       #f2f4f7;
    --cv-input-bg:      #ffffff;
    --cv-input-border:  #e3e8ef;
    --cv-input-text:    #1f2937;
    --cv-input-ph:      #8b95a5;
    --cv-input-icon:    #9aa4b2;

    /* The lit room */
    --cv-room-edge:     #0a0703;
    --cv-room-mid:      #3b2c1a;
    --cv-room-warm:     #7d5e36;

    /* The crystal */
    --cv-glass-hi:      rgba(255, 252, 244, 0.26);
    --cv-glass-lo:      rgba(255, 250, 238, 0.09);
    --cv-bevel:         rgba(255, 253, 245, 0.44);
    --cv-glass-edge:    rgba(255, 250, 238, 0.72);
    --cv-glass-tint:    rgba(206, 236, 224, 0.52);
    --cv-glass-tint-lo: rgba(206, 236, 224, 0.20);

    /* Engraving */
    --cv-etch:          rgba(255, 253, 248, 0.97);
    --cv-etch-soft:     rgba(255, 250, 240, 0.88);
    --cv-etch-faint:    rgba(255, 246, 230, 0.66);

    /* Status bar */
    --cv-ok:            #7ee0a4;
    --cv-warn:          #f0c674;
    --cv-bad:           #f2a6a0;

    /* Faces */
    --cv-display:       "EB Garamond", Georgia, "Times New Roman", serif;
    --cv-script:        "Petit Formal Script", "Snell Roundhand", "Segoe Script", var(--cv-display);
    --cv-ui:            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Geometry */
    --cv-max:           720px;
    --cv-control-h:     46px;
    --cv-room-pad:      44px;
    --cv-base-h:        24px;
    --cv-reflect-h:     70px;
    --cv-plaque-w:      470px;
    --cv-bevel-w:       26px;

    display: block;
    width: 100%;
    max-width: var(--cv-max);
    margin-left: auto;
    margin-right: auto;
    font-family: var(--cv-ui);
    text-align: left;
}


/* ============================================================
   PART A — SEARCH FORM (matches the light-card reference)
   ============================================================ */

.cv-verify-widget .cv-verify-form {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    background: var(--cv-form-bg) !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* The reference shows no visible label — kept for screen readers. */
.cv-verify-widget .cv-verify-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cv-verify-widget .cv-verify-input-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cv-verify-widget .cv-verify-input-wrap {
    position: relative !important;
    display: block;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cv-verify-widget .cv-verify-input-icon {
    position: absolute !important;
    top: 50%;
    left: 14px;
    z-index: 2;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: var(--cv-input-icon) !important;
    pointer-events: none;
}

.cv-verify-widget .cv-verify-input {
    display: block;
    width: 100% !important;
    height: var(--cv-control-h) !important;
    min-height: var(--cv-control-h);
    margin: 0 !important;
    padding: 0 14px 0 40px !important;
    font-family: var(--cv-ui);
    font-size: 16px !important;      /* 16px floor: no iOS zoom */
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: start;
    text-overflow: ellipsis;
    color: var(--cv-input-text) !important;
    background-color: var(--cv-input-bg) !important;
    background-image: none !important;
    border: 1px solid var(--cv-input-border) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cv-verify-widget .cv-verify-input::placeholder {
    color: var(--cv-input-ph) !important;
    font-weight: 400;
    opacity: 1 !important;
}

.cv-verify-widget .cv-verify-input:focus,
.cv-verify-widget .cv-verify-input:focus-visible {
    border-color: var(--cv-gold) !important;
    box-shadow: 0 0 0 3px rgba(220, 189, 117, 0.28) !important;
    outline: none !important;
}

.cv-verify-widget .cv-verify-input:disabled,
.cv-verify-widget .cv-verify-input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.cv-verify-widget .cv-verify-input:-webkit-autofill,
.cv-verify-widget .cv-verify-input:-webkit-autofill:hover,
.cv-verify-widget .cv-verify-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--cv-input-text);
    caret-color: var(--cv-input-text);
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Gold fill, navy text: 6.1:1. White on gold is 2.27:1 and
   fails WCAG AA, hence the navy label. */
.cv-verify-widget .cv-verify-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    gap: 7px;
    height: var(--cv-control-h) !important;
    min-height: var(--cv-control-h);
    min-width: 112px !important;
    width: auto;
    margin: 0 !important;
    padding: 0 20px !important;
    font-family: var(--cv-ui);
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none !important;
    white-space: nowrap;
    color: var(--cv-navy) !important;
    background-color: var(--cv-gold) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: none;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s ease;
}

.cv-verify-widget .cv-verify-button:hover:not(:disabled) {
    color: var(--cv-navy) !important;
    background-color: var(--cv-gold-hover) !important;
}

.cv-verify-widget .cv-verify-button:active:not(:disabled) {
    background-color: var(--cv-gold-active) !important;
}

.cv-verify-widget .cv-verify-button:focus-visible {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--cv-gold);
}

.cv-verify-widget .cv-verify-button:disabled,
.cv-verify-widget .cv-verify-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.cv-verify-widget .cv-btn-icon {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: currentColor;
}

.cv-verify-widget .cv-btn-text {
    display: inline-block;
    white-space: nowrap;
    color: currentColor;
}

/* Spinner hidden WITHOUT !important on purpose: an inline style
   set by the JS still wins, so loading behaviour survives. */
.cv-verify-widget .cv-btn-spinner {
    display: none;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(12, 45, 84, 0.30);
    border-top-color: var(--cv-navy);
    border-radius: 50%;
    animation: cv-spin 0.7s linear infinite;
}

@keyframes cv-spin {
    to { transform: rotate(360deg); }
}

.cv-verify-widget .cv-verify-form.cv-is-loading .cv-btn-icon {
    display: none;
}

.cv-verify-widget .cv-verify-form.cv-is-loading .cv-btn-spinner {
    display: block;
}

.cv-verify-widget .cv-verify-form.cv-is-loading .cv-verify-button {
    background-color: var(--cv-gold-active) !important;
    cursor: progress;
}

.cv-verify-widget .cv-verify-error[hidden] {
    display: none !important;
}

.cv-verify-widget .cv-verify-error {
    display: block;
    width: 100%;
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    font-family: var(--cv-ui);
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: left;
    color: #7f1d1d !important;
    background-color: #fef2f2;
    border: 1px solid #f0cfcf;
    border-left: 3px solid #b91c1c;
    border-radius: 9px;
}

.cv-verify-widget .cv-verify-error:empty {
    display: none;
}


/* ============================================================
   PART B — STATUS BAR
   Sits OUTSIDE the plaque so the plaque stays faithful to the
   physical award, while the tool still answers "is this valid".
   ============================================================ */

.cv-verify-widget .cv-verify-result {
    display: block;
    width: 100%;
    margin: 22px 0 0;
    animation: cv-fade-in 0.28s ease both;
}

.cv-verify-widget .cv-verify-result[hidden],
.cv-verify-widget .cv-verify-result:empty {
    display: none !important;
}

@keyframes cv-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.cv-verify-widget .cv-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    margin: 0 0 14px;
    font-family: var(--cv-ui);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

.cv-verify-widget .cv-status-bar__mark {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cv-ok);
}

.cv-verify-widget .cv-status-bar__text {
    flex: 1 1 auto;
    min-width: 0;
}

.cv-verify-widget .cv-status-bar__ref {
    flex: 0 0 auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    opacity: 0.72;
}

.cv-verify-widget .cv-state-revoked .cv-status-bar {
    background: rgba(240, 198, 116, 0.10);
    border-color: rgba(240, 198, 116, 0.32);
}

.cv-verify-widget .cv-state-revoked .cv-status-bar__mark {
    background: var(--cv-warn);
}

.cv-verify-widget .cv-state-notfound .cv-status-bar,
.cv-verify-widget .cv-state-none .cv-status-bar {
    background: rgba(242, 166, 160, 0.10);
    border-color: rgba(242, 166, 160, 0.30);
}

.cv-verify-widget .cv-state-notfound .cv-status-bar__mark,
.cv-verify-widget .cv-state-none .cv-status-bar__mark {
    background: var(--cv-bad);
}

.cv-verify-widget .cv-state-none .cv-status-bar__mark {
    background: rgba(255, 255, 255, 0.35);
}

.cv-verify-widget .cv-empty-note {
    margin: 0;
    padding: 26px 20px;
    font-family: var(--cv-ui);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
}


/* ============================================================
   PART C — THE PLAQUE
   ============================================================ */

/* ---- C1. The lit room ------------------------------------- */

.cv-verify-widget .cv-plaque-room {
    position: relative;
    display: block;
    width: 100%;
    padding: var(--cv-room-pad) var(--cv-room-pad)
             calc(var(--cv-room-pad) + var(--cv-base-h) + var(--cv-reflect-h));
    overflow: hidden;
    text-align: center;
    background-color: var(--cv-room-edge);
    background-image:
        radial-gradient(34% 13% at 27% 93%, rgba(255, 234, 196, 0.40) 0%, rgba(255, 234, 196, 0) 70%),
        radial-gradient(34% 13% at 73% 93%, rgba(255, 234, 196, 0.32) 0%, rgba(255, 234, 196, 0) 70%),
        radial-gradient(30% 26% at 50% 20%, rgba(255, 226, 178, 0.32) 0%, rgba(255, 226, 178, 0) 72%),
        radial-gradient(26% 20% at 50% 12%, rgba(255, 238, 205, 0.52) 0%, rgba(255, 238, 205, 0) 76%),
        radial-gradient(58% 46% at 50% 26%, var(--cv-room-warm) 0%, rgba(125, 94, 54, 0) 78%),
        radial-gradient(88% 74% at 50% 40%, var(--cv-room-mid) 0%, var(--cv-room-edge) 72%);
    border: 1px solid rgba(255, 226, 175, 0.14);
    border-radius: 14px;
    box-shadow:
        inset 0 0 120px 46px rgba(6, 3, 1, 0.70),
        inset 0 0 40px 10px rgba(6, 3, 1, 0.34);
}

/* Floor reflection: a blurred light echo, never duplicated text. */
.cv-verify-widget .cv-plaque-room::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(var(--cv-room-pad) - 10px);
    width: calc(var(--cv-plaque-w) - 26px);
    max-width: calc(100% - (var(--cv-room-pad) * 2) - 26px);
    height: var(--cv-reflect-h);
    transform: translateX(-50%) scaleY(-1);
    background-image:
        linear-gradient(180deg,
            rgba(255, 249, 233, 0.24) 0%,
            rgba(255, 246, 226, 0.12) 34%,
            rgba(255, 244, 220, 0) 100%),
        linear-gradient(90deg, var(--cv-glass-tint-lo) 0, rgba(255, 252, 242, 0) 22px),
        linear-gradient(270deg, var(--cv-glass-tint-lo) 0, rgba(255, 252, 242, 0) 22px);
    filter: blur(7px);
    opacity: 0.85;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 42%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 42%, transparent 92%);
}

/* The chamfered base the block stands on. */
.cv-verify-widget .cv-plaque-room::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(var(--cv-room-pad) + var(--cv-reflect-h) - 8px);
    width: calc(var(--cv-plaque-w) + 52px);
    max-width: calc(100% - (var(--cv-room-pad) * 2));
    height: calc(var(--cv-base-h) + 10px);
    transform: translateX(-50%);
    background-image: linear-gradient(180deg,
        rgba(255, 255, 252, 0.62) 0%,
        rgba(255, 253, 247, 0.34) 14%,
        var(--cv-glass-tint-lo) 30%,
        rgba(255, 250, 238, 0.13) 54%,
        rgba(255, 252, 244, 0.40) 86%,
        rgba(255, 248, 232, 0.13) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 253, 0.9),
        0 10px 16px -6px rgba(0, 0, 0, 0.78),
        0 26px 44px -18px rgba(0, 0, 0, 0.9);
    -webkit-clip-path: polygon(4% 0, 96% 0, 100% 52%, 97% 100%, 3% 100%, 0 52%);
    clip-path: polygon(4% 0, 96% 0, 100% 52%, 97% 100%, 3% 100%, 0 52%);
    pointer-events: none;
}

/* ---- C2. The crystal block --------------------------------
   A true 45deg corner chamfer needs clip-path, which also clips
   the outer box-shadow and would drop the block's shadow. A
   small radius plus a hard top rim reads machined and keeps it. */

.cv-verify-widget .cv-plaque {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--cv-plaque-w);
    margin: 0 auto;
    background-image:
        /* hard specular rim at the top chamfer, then a bloom */
        linear-gradient(180deg,
            rgba(255, 255, 252, 0.92) 0,
            rgba(255, 255, 252, 0.92) 1.5px,
            rgba(255, 255, 250, 0.26) 1.5px,
            rgba(255, 255, 250, 0) 14px),
        /* left bevel: wide refraction, faintly green like real crystal */
        linear-gradient(90deg, var(--cv-bevel) 0, var(--cv-glass-tint) 30%, rgba(255,253,245,0) var(--cv-bevel-w)),
        linear-gradient(90deg,
            rgba(255,253,245,0) calc(var(--cv-bevel-w) - 1.5px),
            rgba(255,254,248,0.60) calc(var(--cv-bevel-w) - 1.5px),
            rgba(255,254,248,0.60) var(--cv-bevel-w),
            rgba(255,253,245,0) var(--cv-bevel-w)),
        /* right bevel */
        linear-gradient(270deg, var(--cv-bevel) 0, var(--cv-glass-tint) 30%, rgba(255,253,245,0) var(--cv-bevel-w)),
        linear-gradient(270deg,
            rgba(255,253,245,0) calc(var(--cv-bevel-w) - 1.5px),
            rgba(255,254,248,0.54) calc(var(--cv-bevel-w) - 1.5px),
            rgba(255,254,248,0.54) var(--cv-bevel-w),
            rgba(255,253,245,0) var(--cv-bevel-w)),
        /* the body of the glass */
        linear-gradient(158deg,
            var(--cv-glass-hi) 0%,
            var(--cv-glass-lo) 38%,
            rgba(255, 250, 238, 0.03) 66%,
            rgba(255, 252, 244, 0.15) 100%);
    border: 1px solid var(--cv-glass-tint-lo);
    border-top-color: var(--cv-glass-edge);
    border-radius: 4px 4px 2px 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 253, 0.85),
        inset 0 2px 6px -2px rgba(255, 253, 245, 0.48),
        0 26px 50px -24px rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Specular sweep across the face of the glass. */
.cv-verify-widget .cv-plaque::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    background-image: linear-gradient(112deg,
        rgba(255, 255, 252, 0) 34%,
        rgba(255, 255, 252, 0.06) 46%,
        rgba(255, 255, 252, 0.11) 50%,
        rgba(255, 255, 252, 0.04) 54%,
        rgba(255, 255, 252, 0) 66%);
    border-radius: 3px 3px 2px 2px;
    pointer-events: none;
}

.cv-verify-widget .cv-plaque__inner {
    position: relative;
    z-index: 1;
    padding: 42px 44px 34px;
    text-align: center;
}


/* ---- C3. Brand image slots --------------------------------
   Each renders ONLY when its URL variable is set in section 2.
   No fallback shape is drawn: an empty slot collapses cleanly
   rather than showing a placeholder box.                      */

.cv-verify-widget .cv-plaque__logo {
    display: block;
    width: 96px;
    height: 34px;
    margin: 0 auto 26px;
    background-image: var(--cv-logo-img);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: var(--cv-mark-filter);
}

.cv-verify-widget .cv-plaque__ribbon {
    position: absolute;
    top: 0;
    right: 26px;
    width: 84px;
    height: 56px;
    background-image: var(--cv-ribbon-img);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    pointer-events: none;
}

.cv-verify-widget .cv-plaque__seal {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto;
    background-image: var(--cv-seal-img);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: var(--cv-mark-filter);
}

.cv-verify-widget .cv-plaque__sig {
    display: block;
    width: 118px;
    height: 30px;
    background-image: var(--cv-sig-img);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    filter: var(--cv-mark-filter);
}


/* ---- C4. Typography — one class per role -------------------
   STATIC and DYNAMIC text never share a rule, so a long name
   can never inherit body-text sizing (or vice versa).         */

/* STATIC: main title */
.cv-verify-widget .cv-plaque__title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-family: var(--cv-display) !important;
    font-size: 31px !important;
    font-weight: 500 !important;
    line-height: 1.14 !important;
    letter-spacing: 0.01em;
    text-align: center !important;
    text-transform: uppercase !important;
    color: var(--cv-etch) !important;
    text-shadow: 0 1px 0 rgba(255, 250, 235, 0.28), 0 -1px 2px rgba(0, 0, 0, 0.4);
}

/* STATIC: "Proudly presented to" */
.cv-verify-widget .cv-plaque__eyebrow {
    margin: 0 0 4px !important;
    font-family: var(--cv-display);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-align: center;
    color: var(--cv-etch-soft);
}

/* STATIC: ornamental flourish (pure CSS, no glyph) */
.cv-verify-widget .cv-plaque__flourish {
    display: block;
    width: 118px;
    height: 8px;
    margin: 6px auto 2px;
    background-image:
        linear-gradient(90deg, rgba(255,245,225,0) 0%, rgba(255,245,225,0.6) 40%, rgba(255,245,225,0) 45%),
        linear-gradient(90deg, rgba(255,245,225,0) 55%, rgba(255,245,225,0.6) 60%, rgba(255,245,225,0) 100%),
        linear-gradient(45deg, rgba(255,245,225,0) 45%, rgba(255,245,225,0.85) 45%,
                               rgba(255,245,225,0.85) 55%, rgba(255,245,225,0) 55%);
    background-repeat: no-repeat;
    background-size: 100% 1px, 100% 1px, 8px 8px;
    background-position: 0 4px, 0 4px, 50% 0;
    opacity: 0.9;
}

/* DYNAMIC: recipient name — its own dedicated style. */
.cv-verify-widget .cv-plaque__name {
    margin: 0 0 20px !important;
    padding: 0 8px;
    font-family: var(--cv-script) !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    font-style: normal;
    line-height: 1.42 !important;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--cv-etch) !important;
    text-shadow: 0 1px 0 rgba(255, 250, 235, 0.26), 0 -1px 2px rgba(0, 0, 0, 0.4);
    overflow-wrap: break-word;
    hyphens: none;
}

/* STATIC body copy; DYNAMIC values inside are <strong>. */
.cv-verify-widget .cv-plaque__body {
    margin: 0 0 26px;
    padding: 0 6px;
}

.cv-verify-widget .cv-plaque__body p {
    margin: 0 0 14px !important;
    font-family: var(--cv-display);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.005em;
    text-align: center;
    color: var(--cv-etch-soft);
}

.cv-verify-widget .cv-plaque__body p:last-child {
    margin-bottom: 0 !important;
}

/* DYNAMIC inside body copy */
.cv-verify-widget .cv-plaque__body strong {
    font-weight: 600;
    color: var(--cv-etch);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}


/* ---- C5. Footer: left meta | seal | right meta ------------- */

.cv-verify-widget .cv-plaque__footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    column-gap: 14px;
    margin-top: 6px;
    text-align: left;
}

.cv-verify-widget .cv-plaque__meta {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.cv-verify-widget .cv-plaque__meta--right {
    text-align: left;
}

.cv-verify-widget .cv-plaque__field {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0 0 6px;
    min-width: 0;
}

.cv-verify-widget .cv-plaque__field--stack {
    margin-top: -4px;
}

.cv-verify-widget .cv-plaque__field--sig {
    align-items: flex-end;
    margin-top: 10px;
    margin-bottom: 0;
}

/* STATIC: field labels */
.cv-verify-widget .cv-plaque__field dt {
    flex: 0 0 auto;
    margin: 0;
    font-family: var(--cv-display);
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--cv-etch-faint);
    white-space: nowrap;
}

/* DYNAMIC: field values */
.cv-verify-widget .cv-plaque__field dd {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-family: var(--cv-display);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--cv-etch-soft);
    overflow-wrap: break-word;
}

.cv-verify-widget .cv-plaque__field dd strong {
    font-weight: 600;
    color: var(--cv-etch);
}

/* The engraved rule under Date / Certificate No. in the photo. */
.cv-verify-widget .cv-plaque__meta--left .cv-plaque__field:not(.cv-plaque__field--sig) dd {
    border-bottom: 1px solid rgba(255, 246, 226, 0.28);
    padding-bottom: 1px;
}

.cv-verify-widget .cv-plaque__num {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}


/* ============================================================
   PART D — RESULTS LIST (keyword search, not an exact number)
   ============================================================ */

.cv-verify-widget .cv-results-meta {
    margin: 0 0 12px;
    font-family: var(--cv-ui);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
}

.cv-verify-widget .cv-results-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cv-verify-widget .cv-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    font-family: var(--cv-ui);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cv-verify-widget .cv-result-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.cv-verify-widget .cv-result-row-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cv-verify-widget .cv-result-row-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
}

.cv-verify-widget .cv-result-row-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.62);
}

.cv-verify-widget .cv-result-row-meta {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.62);
}

.cv-verify-widget .cv-row-pill {
    flex: 0 0 auto;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-radius: 999px;
}

.cv-verify-widget .cv-row-pill-valid {
    color: #0f3d24;
    background: var(--cv-ok);
}

.cv-verify-widget .cv-row-pill-revoked {
    color: #4a3208;
    background: var(--cv-warn);
}


/* ============================================================
   PART E — RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .cv-verify-widget { --cv-max: 100%; }
}

@media (max-width: 900px) {
    .cv-verify-widget {
        --cv-room-pad: 28px;
        --cv-plaque-w: 420px;
        --cv-reflect-h: 56px;
    }

    .cv-verify-widget .cv-plaque__inner { padding: 36px 32px 30px; }
    .cv-verify-widget .cv-plaque__title { font-size: 27px !important; }
    .cv-verify-widget .cv-plaque__name  { font-size: 32px !important; }
}

@media (max-width: 640px) {
    .cv-verify-widget {
        --cv-control-h: 46px;
        --cv-room-pad: 14px;
        --cv-base-h: 14px;
        --cv-reflect-h: 0px;
        --cv-plaque-w: 100%;
        --cv-bevel-w: 12px;
    }

    .cv-verify-widget .cv-verify-form { padding: 12px !important; }

    .cv-verify-widget .cv-verify-input-row {
        flex-direction: column !important;
    }

    .cv-verify-widget .cv-verify-button {
        width: 100%;
        min-width: 0 !important;
    }

    /* The reflection is costly and illegible at this size. */
    .cv-verify-widget .cv-plaque-room::before { display: none; }

    .cv-verify-widget .cv-plaque-room::after {
        bottom: calc(var(--cv-room-pad) - 6px);
        width: calc(100% - 8px);
    }

    .cv-verify-widget .cv-plaque__inner { padding: 30px 20px 26px; }
    .cv-verify-widget .cv-plaque__title { font-size: 22px !important; }
    .cv-verify-widget .cv-plaque__name  { font-size: 27px !important; }
    .cv-verify-widget .cv-plaque__body p { font-size: 13px; }

    .cv-verify-widget .cv-plaque__ribbon {
        right: 8px;
        width: 62px;
        height: 42px;
    }

    /* Footer stacks: seal first, then the two meta blocks, so
       nothing collides at narrow widths. */
    .cv-verify-widget .cv-plaque__footer {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 16px;
        text-align: center;
    }

    .cv-verify-widget .cv-plaque__seal { order: -1; }

    .cv-verify-widget .cv-plaque__meta {
        width: 100%;
        max-width: 260px;
    }

    .cv-verify-widget .cv-plaque__field {
        justify-content: center;
    }

    .cv-verify-widget .cv-plaque__field--sig {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .cv-verify-widget .cv-result-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .cv-verify-widget .cv-plaque__title { font-size: 20px !important; }
    .cv-verify-widget .cv-plaque__name  { font-size: 24px !important; }
}


/* ============================================================
   PART F — RTL, REDUCED MOTION, PRINT
   ============================================================ */

[dir="rtl"] .cv-verify-widget .cv-verify-input {
    padding: 0 40px 0 14px !important;
}

[dir="rtl"] .cv-verify-widget .cv-verify-input-icon {
    left: auto;
    right: 14px;
}

[dir="rtl"] .cv-verify-widget .cv-plaque__ribbon {
    right: auto;
    left: 26px;
}

[dir="rtl"] .cv-verify-widget .cv-plaque__footer,
[dir="rtl"] .cv-verify-widget .cv-plaque__meta--right {
    text-align: right;
}

/* Certificate numbers stay LTR even in an RTL layout. */
[dir="rtl"] .cv-verify-widget .cv-plaque__num {
    direction: ltr;
    display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
    .cv-verify-widget .cv-verify-input,
    .cv-verify-widget .cv-verify-button {
        transition: none !important;
    }

    .cv-verify-widget .cv-verify-result {
        animation: none !important;
    }

    /* The spinner keeps turning, slower: it is the only signal
       that a request is in flight. */
    .cv-verify-widget .cv-btn-spinner {
        animation-duration: 1.6s;
    }
}

@media print {
    .cv-verify-widget .cv-verify-form,
    .cv-verify-widget .cv-verify-error,
    .cv-verify-widget .cv-status-bar {
        display: none !important;
    }

    .cv-verify-widget .cv-plaque-room {
        padding: 0 !important;
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .cv-verify-widget .cv-plaque-room::before,
    .cv-verify-widget .cv-plaque-room::after,
    .cv-verify-widget .cv-plaque::after {
        display: none !important;
    }

    .cv-verify-widget .cv-plaque {
        max-width: 100%;
        background: none !important;
        border: 1px solid #b9c3cf;
        box-shadow: none !important;
        backdrop-filter: none;
    }

    .cv-verify-widget .cv-plaque__logo,
    .cv-verify-widget .cv-plaque__seal,
    .cv-verify-widget .cv-plaque__sig {
        filter: none !important;
    }

    .cv-verify-widget .cv-plaque__title,
    .cv-verify-widget .cv-plaque__name,
    .cv-verify-widget .cv-plaque__body p,
    .cv-verify-widget .cv-plaque__field dd {
        color: #10263f !important;
        text-shadow: none !important;
    }

    .cv-verify-widget .cv-plaque__eyebrow,
    .cv-verify-widget .cv-plaque__field dt {
        color: #5d7391 !important;
    }
}
