@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cinzel:wght@500;600;700&family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@400;700;900&display=swap");

:root {
    --vtip-navy: #0c2344;
    --vtip-navy-2: #102d57;
    --vtip-gold: #caa84f;
    --vtip-gold-light: #e2c56e;
    --vtip-gold-pale: #f5ebc5;
    --vtip-paper: #fffdf7;
    --vtip-paper-2: #f7f1dd;
    --vtip-ink: #1b2940;
    --vtip-muted: #5f6f86;
    --vtip-red: #8b1a1a;
}


/* OJS page integration: make this plugin page full width and remove the journal sidebar only here. */
body.vtip-certificate-page .pkp_structure_content {
    max-width: 1320px !important;
    width: 100% !important;
}
body.vtip-certificate-page .pkp_structure_main {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-right: 0 !important;
}
body.vtip-certificate-page .pkp_structure_sidebar {
    display: none !important;
}
body.vtip-certificate-page .page {
    width: 100% !important;
}

.vtip-page, .vtip-page * { box-sizing: border-box; }
.vtip-page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 22px 70px; font-family: Lato, Arial, sans-serif; color: #172033; }
.vtip-hero-shell {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 28px;
    padding: 34px; border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(202,168,79,.18), transparent 28%), linear-gradient(135deg, #081628 0%, #0d2244 55%, #071428 100%);
    box-shadow: 0 28px 80px rgba(8, 20, 40, .18); color: #fff;
}
.vtip-hero-brand, .vtip-entry-card { min-width: 0; }
.vtip-hero-logo { width: 156px; min-width: 156px; border-radius: 22px; background: rgba(255,255,255,.05); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.vtip-hero-brand { display: flex; gap: 22px; align-items: flex-start; position: relative; z-index: 1; }
.vtip-kicker,.vtip-result-eyebrow { color: var(--vtip-gold-light); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.vtip-hero h1 { margin: 12px 0; font-family: Cinzel, Georgia, serif; font-size: clamp(30px, 4.7vw, 48px); line-height: 1.1; color: #fff7e3; }
.vtip-hero-brand-copy > p { max-width: 650px; margin: 0; font-family: "EB Garamond", Georgia, serif; font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.84); }
.vtip-hero-points { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.vtip-hero-points li { padding: 11px 14px; border: 1px solid rgba(226,197,110,.34); border-radius: 999px; background: rgba(255,255,255,.05); color: #fff3cb; font-size: 13px; font-weight: 700; }
.vtip-entry-card { position: relative; z-index: 1; padding: 28px; border: 1px solid rgba(226,197,110,.22); border-radius: 24px; background: rgba(255,255,255,.96); color: #152238; box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.vtip-entry-badge { display: inline-flex; align-items: center; margin-bottom: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(202,168,79,.14); color: #8c6b17; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vtip-entry-card h2 { margin: 0 0 8px; font-family: Cinzel, Georgia, serif; font-size: 28px; color: var(--vtip-navy); }
.vtip-entry-card > p { margin: 0 0 18px; color: #56647a; line-height: 1.6; }
.vtip-search-form label { display: block; margin-bottom: 8px; color: var(--vtip-navy); font-weight: 800; }
.vtip-search-row { display: flex; gap: 10px; }
.vtip-search-row input { flex: 1; min-width: 0; height: 54px; padding: 0 16px; border: 1px solid #cfd6df; border-radius: 14px; background: #fff; color: #152238; font: 700 17px Lato, Arial, sans-serif; outline: none; }
.vtip-search-row input:focus { border-color: var(--vtip-gold); box-shadow: 0 0 0 4px rgba(202,168,79,.18); }
.vtip-search-row button,.vtip-btn { border: 0; border-radius: 14px; padding: 0 20px; min-height: 52px; cursor: pointer; font: 800 14px Lato, Arial, sans-serif; }
.vtip-search-row button,.vtip-btn-primary { background: linear-gradient(135deg, #0b1c35, #13335e); color: #fff; }
.vtip-search-form small { display: block; margin-top: 10px; color: #748095; }
.vtip-entry-support { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.vtip-entry-support span { padding: 8px 12px; border-radius: 999px; background: #f4f7fa; color: #41536d; font-size: 12px; font-weight: 700; }
.vtip-alert { display: flex; flex-direction: column; gap: 5px; max-width: 900px; margin: 18px auto 0; padding: 14px 17px; border: 1px solid #f0c7c7; border-radius: 14px; background: #fff4f4; color: #7e2424; text-align: left; }
.vtip-diagnostic { width: fit-content; margin-top: 4px; padding: 3px 7px; border-radius: 5px; background: rgba(126,36,36,.08); color: #713232; font-size: 11px; }
.vtip-result { margin-top: 38px; }
.vtip-result-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; width: 100%; max-width: 1123px; margin: 0 auto 14px; padding: 0 2px; }
.vtip-result-head h2 { margin: 4px 0 0; color: var(--vtip-navy); font-family: Cinzel, Georgia, serif; font-size: 30px; line-height: 1.05; }
.vtip-actions { display: flex; align-items: stretch; gap: 10px; flex-shrink: 0; }
.vtip-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; line-height: 1.15; text-align: center; text-decoration: none; white-space: nowrap; }
.vtip-btn-secondary { background: #e9edf2; color: #172033; }
.vtip-article-link { display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1.15 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.vtip-certificate-scroll { position: relative; width: 100%; overflow: hidden; padding: 0; }
.vtip-certificate { position: relative; isolation: isolate; width: 1123px; height: 794px; margin: 0 auto; overflow: hidden; background: var(--vtip-paper); color: var(--vtip-ink); box-shadow: 0 20px 65px rgba(8, 20, 40, .18); font-family: "EB Garamond", Georgia, serif; }
.vtip-certificate-bg { position: absolute; inset: 0; z-index: -4; background: radial-gradient(circle at top right, rgba(202,168,79,.12), transparent 34%), linear-gradient(180deg, #fffefb 0%, #fffaf0 55%, #fbf4e5 100%); }
.vtip-certificate-bg::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 188px; background: linear-gradient(180deg, rgba(12,35,68,.98), rgba(16,45,87,.96)); }
.vtip-certificate-bg::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(202,168,79,.18); }
.vtip-border { position: absolute; pointer-events: none; z-index: 5; }
.vtip-border-outer { inset: 18px; border: 2px solid var(--vtip-gold); }
.vtip-border-inner { inset: 26px; border: 1px solid rgba(202,168,79,.68); }
.vtip-status { position: absolute; top: 36px; z-index: 7; border: 1px solid rgba(226,197,110,.65); border-radius: 999px; padding: 6px 12px; font: 700 10px Cinzel, Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
.vtip-status-source { left: 42px; background: rgba(255,255,255,.12); color: #fff8e8; }
.vtip-status-verified { right: 42px; background: rgba(202,168,79,.17); color: #fff6df; }
.vtip-cert-header { position: relative; display: grid; grid-template-columns: 190px 1fr 155px; align-items: center; min-height: 188px; padding: 54px 70px 16px; }
.vtip-seal { width: 132px; height: 132px; margin-left: 6px; border-radius: 50%; border: 2px solid var(--vtip-gold); outline: 1px solid rgba(226,197,110,.6); outline-offset: 7px; overflow: hidden; background: rgba(255,255,255,.02); }
.vtip-seal img { width: 100%; height: 100%; object-fit: cover; }
.vtip-brand { text-align: center; color: #fff8e8; }
.vtip-brand-overline { color: var(--vtip-gold-light); font: 700 15px Cinzel, serif; letter-spacing: .18em; text-transform: uppercase; }
.vtip-brand-title { margin-top: 8px; font: 700 28px/1.16 "Cinzel Decorative", Georgia, serif; text-transform: uppercase; }
.vtip-brand-abbr { margin-top: 7px; color: var(--vtip-gold-light); font: 700 15px Cinzel, serif; letter-spacing: .40em; }
.vtip-brand-tagline { margin-top: 8px; color: #e8d9a7; font: 700 10px Cinzel, serif; letter-spacing: .20em; text-transform: uppercase; }
.vtip-excellence { justify-self: end; width: 98px; height: 98px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff3d2; font: 700 10px Cinzel, serif; line-height: 1.35; text-transform: uppercase; background: radial-gradient(circle at center, rgba(255,255,255,.08), rgba(255,255,255,0)); }
.vtip-excellence-mark { font: 700 24px Cinzel, serif; line-height: 1; color: var(--vtip-gold-pale); margin-bottom: 6px; }
.vtip-index-strip { display: flex; align-items: center; justify-content: center; gap: 46px; height: 42px; margin: 0 70px; border-radius: 999px; background: #fff; color: #26354e; box-shadow: inset 0 0 0 1px rgba(202,168,79,.55), 0 8px 18px rgba(0,0,0,.05); font: 800 12px Lato, Arial, sans-serif; }
.vtip-index-strip span { position: relative; }
.vtip-index-strip span + span::before { content: ""; position: absolute; left: -22px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--vtip-gold); transform: translateY(-50%); }
.vtip-cert-main { padding: 24px 95px 0; text-align: center; }
.vtip-cert-heading { color: var(--vtip-navy); font: 700 39px "Cinzel Decorative", Georgia, serif; letter-spacing: .015em; }
.vtip-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 7px 0 10px; color: #8a7330; font: 700 8px Cinzel, serif; letter-spacing: .18em; }
.vtip-ornament span { display: block; width: 72px; height: 1px; background: rgba(202,168,79,.75); }
.vtip-ornament b { font-weight: 700; }
.vtip-cert-copy { margin: 0 0 5px; font-size: 18px; color: var(--vtip-ink); }
.vtip-authored { margin: 8px 0 0; color: #8b7740; font: 600 11px Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; }
.vtip-field { max-width: 780px; margin: 0 auto; padding: 4px 16px 7px; border-bottom: 1px solid rgba(202,168,79,.78); color: var(--vtip-ink); font-size: 21px; font-weight: 600; line-height: 1.25; }
.vtip-field-title { min-height: 42px; font-size: 24px; line-height: 1.22; }
.vtip-field-author { min-height: 36px; font-size: 21px; }
.vtip-published-line { max-width: 820px; margin: 11px auto 13px; font-size: 17px; line-height: 1.42; color: #31435a; font-weight: 500; }
.vtip-meta-row { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 800px; margin: 0 auto; border: 1px solid rgba(202,168,79,.42); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.75); }
.vtip-meta-row div { padding: 11px 10px; border-right: 1px solid rgba(202,168,79,.22); }
.vtip-meta-row div:last-child { border-right: 0; }
.vtip-meta-row span { display: block; color: #65758c; font: 700 10px Cinzel, serif; letter-spacing: .12em; text-transform: uppercase; }
.vtip-meta-row strong { display: block; margin-top: 4px; color: var(--vtip-navy); font-size: 16px; }
.vtip-identifiers-row { display: grid; grid-template-columns: 1.45fr .75fr .7fr; max-width: 800px; margin: 12px auto 0; border: 1px solid rgba(202,168,79,.38); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.86); }
.vtip-identifiers-row > div { min-width: 0; padding: 11px 13px; border-right: 1px solid rgba(202,168,79,.24); text-align: left; }
.vtip-identifiers-row > div:last-child { border-right: 0; }
.vtip-identifiers-row span { display: block; margin-bottom: 4px; color: #7f6829; font: 700 10px Cinzel, serif; letter-spacing: .095em; text-transform: uppercase; }
.vtip-identifiers-row strong { display: block; overflow-wrap: anywhere; color: var(--vtip-ink); font: 700 13px Lato, Arial, sans-serif; line-height: 1.25; }
.vtip-cert-footer { display: grid; grid-template-columns: 190px 1fr 165px; align-items: end; gap: 18px; padding: 25px 82px 48px; }
.vtip-commitment { text-align: center; color: #8a7330; font: 700 8px Cinzel, serif; letter-spacing: .08em; text-transform: uppercase; }
.vtip-commit-ring { width: 68px; height: 68px; margin: 0 auto 7px; border: 1px solid rgba(202,168,79,.8); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: rgba(255,255,255,.9); color: var(--vtip-navy); line-height: 1; }
.vtip-commit-ring strong { font: 700 13px Cinzel, serif; letter-spacing: .04em; }
.vtip-commit-ring span { margin-top: 2px; color: #8a7330; font: 700 9px Cinzel, serif; letter-spacing: .08em; }
.vtip-signature { text-align: center; color: var(--vtip-ink); }
.vtip-signature-image { max-width: 220px; width: 220px; height: 48px; object-fit: contain; display: block; margin: 2px auto 2px; filter: contrast(1.35) brightness(.78); opacity: 1; }
.vtip-sign-line { width: 205px; margin: 0 auto 6px; border-top: 1px solid rgba(202,168,79,.9); }
.vtip-signature strong { display: block; font: 700 12px Cinzel, serif; letter-spacing: .045em; }
.vtip-signature span { color: #65758c; font: 11px Lato, sans-serif; }
.vtip-stamp { justify-self: end; width: 104px; height: 104px; padding: 8px; border: 2px solid rgba(139,26,26,.82); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(139,26,26,.55); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-6deg); color: #9a2f2f; text-align: center; font-family: Cinzel, serif; background: rgba(139,26,26,.035); }
.vtip-stamp-top { font-size: 9px; letter-spacing: .12em; }
.vtip-stamp strong { margin: 4px 0; font-size: 15px; letter-spacing: .05em; }
.vtip-stamp span:last-child { font-size: 8px; letter-spacing: .1em; }
.vtip-bottom-bar { position: absolute; left: 28px; right: 28px; bottom: 29px; display: grid; grid-template-columns: 1fr 1.2fr .45fr 1.45fr; align-items: center; gap: 15px; height: 32px; padding: 0 35px; background: linear-gradient(90deg, rgba(202,168,79,.96), rgba(245,235,197,.95)); color: #071428; font: 800 11px Lato, sans-serif; letter-spacing: .02em; }
.vtip-verification-code { text-align: right; }
.vtip-verification-note { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px auto 0; padding: 13px 16px; max-width: 1123px; border: 1px solid #e5e9ef; border-radius: 10px; background: #fafbfc; color: #5d697c; font-size: 12px; }
.vtip-verification-note strong { color: #2b3b56; }
@media (max-width: 1050px) { .vtip-hero-shell { grid-template-columns: 1fr; } .vtip-hero-brand { align-items: center; } }
@media (max-width: 760px) {
    .vtip-page { padding: 24px 14px 55px; }
    .vtip-hero-shell { padding: 20px; border-radius: 22px; }
    .vtip-hero-brand { flex-direction: column; }
    .vtip-hero-brand, .vtip-entry-card { min-width: 0; }
.vtip-hero-logo { width: 128px; min-width: 128px; }
    .vtip-search-row { flex-direction: column; }
    .vtip-search-row button { min-height: 50px; }
    .vtip-result-head { align-items: flex-start; flex-direction: column; margin-bottom: 12px; }
    .vtip-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .vtip-actions .vtip-btn { width: 100%; min-height: 48px; padding: 0 12px; }
    .vtip-actions .vtip-btn-primary { grid-column: 1 / -1; grid-row: 1; }
    .vtip-result { margin-top: 26px; }
    .vtip-result-head h2 { font-size: 25px; line-height: 1.08; }
}

/* Fit the fixed A4 preview into the available browser width without horizontal scrolling. */
.vtip-certificate-scroll.vtip-scaled { height: var(--vtip-stage-height, 794px); }
.vtip-certificate-scroll.vtip-scaled .vtip-certificate {
    position: absolute;
    left: 50%;
    top: 0;
    margin: 0;
    transform: translateX(-50%) scale(var(--vtip-preview-scale, 1));
    transform-origin: top center;
}
@media (max-width: 760px) {
    .vtip-verification-note { font-size: 11px; }
}

@media print {
    body * { visibility: hidden !important; }
    #vtip-certificate, #vtip-certificate * { visibility: visible !important; }
    #vtip-certificate-stage { height: auto !important; overflow: visible !important; }
    #vtip-certificate { position: fixed !important; left: 0 !important; top: 0 !important; width: 297mm !important; height: 210mm !important; box-shadow: none !important; transform: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    @page { size: A4 landscape; margin: 0; }
}


/* v1.11 final certificate polish */
.vtip-certificate { background: #ffffff; }
.vtip-certificate-bg {
    background: #ffffff;
}
.vtip-certificate-bg::before {
    height: 166px;
    background: linear-gradient(180deg, #0c2344 0%, #102d57 100%);
}
.vtip-certificate-bg::after { border-color: rgba(202,168,79,.16); }
.vtip-status { top: 32px; font-size: 10px; padding: 6px 13px; }
.vtip-status-source { color: #fff8e8; background: rgba(255,255,255,.08); }
.vtip-status-verified { color: #fff7dc; background: rgba(202,168,79,.13); }
.vtip-cert-header {
    grid-template-columns: 175px 1fr 150px;
    min-height: 166px;
    padding: 47px 72px 12px;
}
.vtip-seal {
    width: 136px;
    height: 136px;
    margin-left: 4px;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: visible;
}
.vtip-seal img { width: 100%; height: 100%; object-fit: contain; }
.vtip-brand-overline { font-size: 16px; letter-spacing: .17em; }
.vtip-brand-title { margin-top: 6px; font-size: 30px; line-height: 1.14; }
.vtip-brand-abbr { margin-top: 6px; font-size: 16px; letter-spacing: .38em; }
.vtip-brand-tagline { margin-top: 7px; font-size: 10px; letter-spacing: .20em; }
.vtip-header-mark {
    justify-self: end;
    width: 118px;
    min-height: 82px;
    padding: 13px 10px;
    border: 1px solid rgba(226,197,110,.72);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff4d1;
    text-align: center;
    text-transform: uppercase;
    background: rgba(255,255,255,.045);
}
.vtip-header-mark span { color: var(--vtip-gold-light); font: 700 10px Cinzel, serif; letter-spacing: .14em; }
.vtip-header-mark strong { margin: 5px 0 2px; color: #fff; font: 700 15px Cinzel, serif; letter-spacing: .08em; }
.vtip-header-mark small { color: #e9dba9; font: 700 9px Lato, sans-serif; letter-spacing: .16em; }
.vtip-index-strip {
    height: 44px;
    margin: 0 76px;
    gap: 48px;
    font-size: 13px;
    box-shadow: inset 0 0 0 1px rgba(202,168,79,.55), 0 5px 14px rgba(16,45,87,.045);
}
.vtip-cert-main { padding: 22px 90px 0; }
.vtip-cert-heading { font-size: 42px; line-height: 1.05; }
.vtip-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 12px;
    width: 280px;
}
.vtip-title-divider span { width: 116px; height: 1px; background: rgba(202,168,79,.80); }
.vtip-title-divider b { display: block; width: 5px; height: 5px; background: var(--vtip-gold); transform: rotate(45deg); }
.vtip-cert-copy { font-size: 19px; margin-bottom: 6px; color: #263850; }
.vtip-field { max-width: 820px; }
.vtip-field-title { min-height: 44px; font-size: 26px; line-height: 1.2; }
.vtip-authored { margin-top: 9px; font-size: 12px; }
.vtip-field-author { min-height: 38px; font-size: 22px; }
.vtip-published-line {
    max-width: 850px;
    margin: 12px auto 14px;
    font-size: 18px;
    line-height: 1.42;
    color: #31435a;
    font-weight: 500;
}
.vtip-meta-row { max-width: 830px; background: #fff; }
.vtip-meta-row div { padding: 12px 10px; }
.vtip-meta-row span { font-size: 11px; color: #5d6d84; }
.vtip-meta-row strong { font-size: 17px; }
.vtip-identifiers-row { max-width: 830px; margin-top: 12px; background: #fff; }
.vtip-identifiers-row > div { padding: 12px 14px; }
.vtip-identifiers-row span { font-size: 11px; margin-bottom: 5px; }
.vtip-identifiers-row strong { font-size: 14px; }
.vtip-cert-footer {
    grid-template-columns: 220px 1fr 180px;
    padding: 22px 82px 50px;
    align-items: end;
}
.vtip-issued-by {
    align-self: end;
    padding-bottom: 5px;
    text-align: left;
    color: var(--vtip-navy);
}
.vtip-issued-label { display: block; color: #8a7330; font: 700 9px Cinzel, serif; letter-spacing: .13em; text-transform: uppercase; }
.vtip-issued-by strong { display: block; margin-top: 5px; font: 700 14px Cinzel, serif; line-height: 1.2; }
.vtip-issued-by small { display: block; margin-top: 6px; color: #66758a; font: 700 9px Lato, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.vtip-signature { transform: translateY(-4px); }
.vtip-signature-image { width: 245px; max-width: 245px; height: 56px; margin: -3px auto 0; filter: contrast(1.45) brightness(.70); }
.vtip-sign-line { width: 220px; margin-top: -2px; }
.vtip-signature strong { font-size: 13px; }
.vtip-signature span { font-size: 12px; }
.vtip-stamp {
    width: 112px;
    height: 112px;
    transform: rotate(-4deg);
    border-width: 2px;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgba(139,26,26,.48);
    background: rgba(139,26,26,.025);
}
.vtip-stamp-top { font-size: 10px; }
.vtip-stamp strong { margin: 5px 0; font-size: 16px; }
.vtip-stamp span:last-child { font-size: 9px; }
.vtip-bottom-bar {
    height: 34px;
    font-size: 12px;
    background: #caa84f;
}
