/* RC3: single public-facing system shared by home, navigation and result cards */
.cert-public-rc3{--c3-ink:#15384b;--c3-green:#07837a;--c3-soft:#e7f6f1;--c3-border:#dce7ed;background:#f3f7fa}
.cert-public-rc3 .container.my-3{max-width:1200px}
.cert-public-rc3 .site-header{display:flex;align-items:center;justify-content:center;gap:14px;min-height:58px;margin:14px 0 16px!important}
.cert-public-rc3 .site-header h1{margin:0!important;font-size:clamp(22px,3vw,30px)!important}
.cert-public-rc3 .logo-img{max-height:66px}
.cert-public-rc3 .cert-public-nav{border-radius:16px!important}
.cert-public-rc3 .cert-public-main{max-width:1200px;width:min(100% - 28px,1200px)}
.cert-public-rc3 .cert-public-hero{min-height:0;padding:clamp(25px,4vw,46px);display:flex;justify-content:space-between;align-items:center;gap:30px;box-shadow:0 16px 35px rgba(12,74,80,.12)}
.cert-public-rc3 .cert-public-hero-content{flex:1;min-width:0;position:relative;z-index:1}
.cert-public-rc3 .cert-public-hero h1{max-width:740px;line-height:1.4;margin:11px 0}
.cert-public-rc3 .cert-public-hero p{max-width:680px;margin:0 0 21px}
.cert-public-rc3 .cert-home-hero-art{height:170px;width:180px;flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.23);border-radius:23px;background:rgba(255,255,255,.1);transform:rotate(-4deg);color:#e3fff7;font-size:13px;font-weight:800}
.cert-public-rc3 .cert-home-hero-art i{font-size:70px}
.cert-home-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:18px;margin:20px 0}
.cert-home-lookup,.cert-home-how,.cert-home-record{background:#fff;border:1px solid var(--c3-border);border-radius:18px;padding:clamp(20px,3vw,30px);box-shadow:0 7px 24px rgba(22,69,88,.04)}
.cert-home-block-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
.cert-home-block-icon{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;color:var(--c3-green);background:var(--c3-soft);font-size:21px}
.cert-home-kicker{font-size:12px;color:var(--c3-green);font-weight:800}
.cert-home-lookup h2,.cert-home-how h2,.cert-home-record h2{font-weight:900;color:var(--c3-ink);font-size:clamp(19px,2.2vw,24px);margin:4px 0 7px}
.cert-home-block-heading p,.cert-home-how p{font-size:14px;color:#617a89;margin:0;line-height:1.9}
.cert-home-lock{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #d3e8e1;background:#f0faf6;border-radius:12px;margin:17px 0}
.cert-home-lock>i{color:#138a75;font-size:20px;margin-top:2px}
.cert-home-lock strong{font-size:14px;color:#185d50}
.cert-home-lock p{font-size:13px;color:#41685f;margin:5px 0 0;line-height:1.9}
.cert-home-verified{background:#e8faf2;padding:12px 15px;color:#086b55;border-radius:10px;font-weight:750;font-size:14px}
.cert-home-search-form label{display:block;font-weight:850;color:var(--c3-ink);margin-bottom:7px}
.cert-home-search-controls{display:flex;gap:10px}
.cert-home-search-controls input{flex:1;min-width:0;width:100%;height:53px;border-radius:11px;border:1px solid #cbdbe5;padding:0 14px;font-size:16px!important;text-align:right}
.cert-home-search-controls input:focus{outline:2px solid #45a9a1;outline-offset:1px}
.cert-home-search-controls button{border:0;border-radius:11px;min-height:53px;padding:0 23px;background:var(--c3-green);color:#fff;font-weight:850;white-space:nowrap}
.cert-home-search-controls button:hover{background:#086c65}
.cert-home-search-form small{display:block;font-size:12px;color:#637b89;margin-top:10px}
.cert-home-help-link{font-size:13px;margin-top:14px;color:#5a7482}
.cert-home-help-link a{font-weight:900;color:var(--c3-green)}
.cert-home-message{padding:12px 14px;color:#8e4039;background:#fff3f0;border:1px solid #f1ceca;border-radius:11px;font-size:14px}
.cert-home-how{background:#f8fbfc}
.cert-home-how h2{font-size:18px;margin-bottom:22px}
.cert-home-how ol{margin:0;padding:0;list-style:none;display:grid;gap:19px}
.cert-home-how li{display:flex;align-items:flex-start;gap:13px}
.cert-home-how li>span{display:grid;place-items:center;flex:none;height:36px;width:36px;border-radius:10px;background:#e2f3f1;color:#08756d;font-weight:900}
.cert-home-how strong{font-size:14px;color:#234a5a}
.cert-home-record{margin:18px 0 24px;scroll-margin-top:16px}
.cert-home-record-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.cert-home-count{display:inline-flex;background:#e3f7f1;color:#087366;border-radius:30px;padding:5px 13px;font-size:13px;font-weight:850}
.cert-home-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 26px}
.cert-home-data-grid>div{background:#f6f9fb;border:1px solid #e6eef2;border-radius:11px;padding:13px 15px;min-width:0}
.cert-home-data-grid dt{font-size:12px;color:#59717c;font-weight:700;margin-bottom:3px}
.cert-home-data-grid dd{font-size:15px;font-weight:850;color:#15394a;margin:0;overflow-wrap:anywhere;text-align:right}
.cert-home-certificate-heading{font-size:18px;color:var(--c3-ink);font-weight:900;margin-bottom:12px}
.cert-home-documents{display:grid;gap:10px}
.cert-home-document{display:flex;align-items:center;gap:14px;border:1px solid #e0e9ed;border-radius:13px;padding:15px;min-width:0}
.cert-home-document-icon{display:grid;place-items:center;width:46px;height:46px;flex:none;background:#fff0ec;border-radius:12px;color:#c45342;font-size:21px}
.cert-home-document-body{flex:1;min-width:0}
.cert-home-document-body h4{font-weight:900;font-size:15px;margin:0 0 4px;color:#163b4d}
.cert-home-document-body p{font-size:13px;color:#607887;margin:0}
.cert-home-pdf-link{flex:none;display:inline-flex;gap:8px;align-items:center;background:#e3f5f1;color:#086c60!important;text-decoration:none;border-radius:10px;padding:11px 15px;font-size:13px;font-weight:850}
.cert-home-pdf-link:hover{background:#c8eee5}
.cert-home-no-documents{padding:18px;background:#f5f9fc;border-radius:12px;color:#617584}
@media(max-width:840px){.cert-home-workspace{grid-template-columns:1fr}.cert-public-rc3 .cert-home-hero-art{height:120px;width:120px}.cert-public-rc3 .cert-home-hero-art i{font-size:48px}}
@media(max-width:560px){.cert-public-rc3 .cert-public-hero{padding:27px 20px}.cert-public-rc3 .cert-home-hero-art{display:none}.cert-home-search-controls{flex-direction:column}.cert-home-search-controls button{width:100%}.cert-home-data-grid{grid-template-columns:1fr}.cert-home-document{flex-wrap:wrap}.cert-home-pdf-link{width:100%;justify-content:center}.cert-public-rc3 .site-header{flex-wrap:wrap;text-align:center}}
@media(max-width:560px){.cert-home-search-controls input{flex:0 0 53px;box-sizing:border-box;width:100%;min-height:53px}}
/* RC4-audit: one-time link redeem panel */
.cert-home-redeem[hidden]{display:none!important}
.cert-home-redeem{margin:14px 0 18px;padding:14px 16px;border:1px solid #bfe3d6;background:#f1faf6;border-radius:12px}
.cert-home-redeem p{margin:0 0 10px;color:#245c4d;font-size:14px;line-height:1.8}
.cert-home-redeem button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border:0;border-radius:10px;background:#0b7a68;color:#fff;font-weight:800;cursor:pointer}
.cert-home-redeem button:focus-visible{outline:3px solid #0b7a68;outline-offset:2px}
.cert-home-redeem-phone[hidden]{display:none!important}
.cert-home-redeem-phone{margin:0 0 12px}.cert-home-redeem-phone label{display:block;font-weight:800;color:#245c4d;margin-bottom:6px;font-size:14px}
.cert-home-redeem-phone input{width:9em;max-width:100%;min-height:44px;padding:8px 12px;border:1px solid #bfe3d6;border-radius:10px;font-size:20px;letter-spacing:.3em;text-align:center}
/* V4: the record is shown once and forgotten when the page is closed */
.cert-home-ephemeral{margin:0 0 12px;padding:12px 14px;border-radius:11px;background:#fff8e6;border:1px solid #f1d9a4;color:#7a5200;font-size:14px;line-height:1.8}
.cert-home-end-view{margin:0 0 16px}
.cert-home-end-view button{min-height:42px;padding:8px 16px;border-radius:10px;border:1px solid #c9d3de;background:#fff;color:#14324a;font:inherit;font-weight:800;cursor:pointer}
.cert-home-end-view button:hover{background:#f3f7fa}

/* HF2: view + download side by side; download keeps the one-time page open */
.cert-home-pdf-actions{flex:none;display:flex;gap:8px;flex-wrap:wrap}
.cert-home-pdf-download{background:#0b7a68;color:#fff!important}
.cert-home-pdf-download:hover{background:#086c60}
.cert-home-pdf-link:focus-visible{outline:3px solid #0b7a68;outline-offset:2px}
@media(max-width:560px){.cert-home-pdf-actions{width:100%}.cert-home-pdf-actions .cert-home-pdf-link{flex:1 1 0;width:auto}}

/* FINAL-3 accessibility layer (generated by tests/make_contrast_css.py from a full-page WCAG scan):
   each rule keeps the original hue and only changes lightness until text reaches AA contrast. */
aside.cert-home-how p:not(#cert-a11y){color:#5d7583!important}
div.h83-public-cardhead p:not(#cert-a11y){color:#5e768e!important}
div.h83-public-heading p:not(#cert-a11y){color:#5d7083!important}
div.h83-public-heading span:not(#cert-a11y){color:#067c73!important}
div.wide button:not(#cert-a11y){background-color:#0c8276!important}
label.wide small:not(#cert-a11y){color:#637688!important}
small#searchPrivacyNote:not(#cert-a11y){color:#607785!important}
/* FINAL-3: footer menu links were painted with the header link colour (dark teal on the dark footer, 2.0:1)
   because the header rule is more specific than the footer rule. */
footer .navbar-nav .nav-link:not(#cert-a11y){color:#e6f0f2!important}
footer .navbar-nav .nav-link:not(#cert-a11y):hover,footer .navbar-nav .nav-link:not(#cert-a11y):focus-visible{color:#bbffe6!important}
