:root {
  --ink:#102940; --deep:#0b2136; --teal:#075b57; --mint:#cbebe0;
  --gold:#f6c97f; --paper:#f7f8f3; --white:#fff; --muted:#4d6270; --line:#dce6e3;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color:var(--ink); background:var(--paper); line-height:1.55;
}
* { box-sizing:border-box }
body { margin:0; min-height:100vh; display:flex; flex-direction:column }
main { flex:1 }
a { color:var(--teal); text-underline-offset:.22em }
a:hover { color:#0b776d }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline:3px solid #c78020; outline-offset:3px
}
.wrap { width:min(1180px, calc(100% - 52px)); margin-inline:auto }
.skip { position:fixed; z-index:5; top:0; left:1rem; transform:translateY(-130%); padding:.75rem; background:white }
.skip:focus { transform:none }
.topline { background:var(--deep); color:#dbe8eb; font-size:.78rem }
.topinner { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:1rem }
.sitehead { background:white; border-bottom:1px solid var(--line) }
.headinner { display:flex; gap:2rem; align-items:center; justify-content:space-between; min-height:88px }
.brand { display:flex; flex:none; width:245px }
.brand img,.brandmark { display:block; width:100%; max-height:80px; object-fit:contain; object-position:left }
nav,.actions,.filters { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem }
nav a,.filters a { font-size:.88rem; padding:.42rem .54rem; text-decoration:none; color:inherit; font-weight:650 }
nav a:hover, nav a[aria-current],.filters a[aria-current],.page-links a[aria-current] { color:var(--teal); background:#e8f5ee; border-radius:6px }
.adminlink { border:1px solid var(--line); border-radius:8px; white-space:nowrap }
.hero,.subhero { background:var(--deep); color:white }
.hero { padding:72px 0 100px; overflow:hidden }
.hero-grid { display:grid; grid-template-columns:1.04fr 1fr; gap:64px; align-items:center }
h1,h2,h3,p { margin-top:0 }
h1,h2 { font-family:Georgia, "Times New Roman", serif; letter-spacing:-.025em; line-height:1.1 }
h1 { font-size:clamp(2.65rem,5.5vw,5.1rem); margin-bottom:1.15rem }
h2 { font-size:clamp(1.55rem,3vw,2.25rem); margin-bottom:.9rem }
h3 { line-height:1.24; margin-bottom:.55rem }
.hero-image { display:block; width:100%; aspect-ratio:1.42; object-fit:cover; border-radius:12px; box-shadow:12px 12px 0 #254457; animation:enter .65s ease-out both }
.eyebrow { font-size:.72rem; letter-spacing:.17em; font-weight:780; color:var(--teal); margin-bottom:1rem }
.hero .eyebrow,.subhero .eyebrow { color:var(--gold) }
.lead { font-size:1.13rem; color:#d4e0e5; max-width:64ch; margin-bottom:1.65rem }
.button,button { appearance:none; border:1px solid transparent; border-radius:8px; background:var(--teal); color:white; padding:.72rem 1.02rem; font:inherit; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:.7rem; cursor:pointer; transition:background .18s, transform .18s }
.button:hover,button:hover { background:#08746d; color:white; transform:translateY(-2px) }
button:disabled { cursor:default; opacity:.6; transform:none }
.hero .button { background:var(--gold); color:var(--deep) }
.hero .button:hover { background:#ffe0aa }
.hero .outline { background:transparent; color:white; border-color:#70939e }
.hero .outline:hover { background:#284558 }
.secondary { background:#e4efeb; color:var(--ink) }
.card { background:white; border:1px solid var(--line); border-radius:12px; padding:clamp(1rem,2.7vw,1.8rem); box-shadow:0 2px 4px #10294008; min-width:0; overflow-wrap:anywhere }
.home-search { position:relative; margin-top:-46px; box-shadow:0 14px 28px #10294013 }
.home-search h2 { font-size:1.6rem }
.searchbar { display:flex; align-items:stretch; gap:.65rem; margin-bottom:.15rem }
.searchbar input { flex:1; min-width:0 }
.section { padding-block:38px }
.subhero { padding:46px 0 36px }
.subhero h1 { font-size:clamp(2.35rem,5.2vw,4rem) }
.stats { display:grid; grid-template-columns:repeat(5,1fr); margin-block:1rem; background:#eaf3ee; border:1px solid var(--line); border-radius:12px; overflow:hidden }
.stats a { display:grid; padding:.85rem; text-align:center; text-decoration:none; gap:.1rem }
.stats a:hover { background:#d6ebe2 }
.stats a + a { border-left:1px solid var(--line) }
.stats strong,.count { font-family:Georgia,serif; font-size:1.85rem; line-height:1.2 }
.stats span { color:var(--ink); font-size:.84rem }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px }
.criteria,.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start }
.feature { color:var(--ink); text-decoration:none; transition:transform .2s,border-color .2s }
.feature:hover { transform:translateY(-4px); border-color:#7fb5a5 }
.feature p,.muted { color:var(--muted) }
.icon { display:grid; width:42px; height:42px; place-items:center; background:#e8f5ed; color:var(--teal); border-radius:8px; font-size:1.3rem; margin-bottom:.85rem }
.feature-arrow { color:var(--teal); font-weight:bold }
.copy { white-space:pre-line; overflow-wrap:anywhere }
.prose { max-width:80ch }
.form-card { display:grid; gap:1rem; align-content:start }
.form-card button { justify-self:start }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem }
label { display:grid; gap:.35rem; font-size:.9rem; font-weight:650; min-width:0 }
input:not([type=checkbox]),textarea,select { padding:.68rem .76rem; font:inherit; color:var(--ink); background:#fbfcfb; border:1px solid #afc1c2; border-radius:7px; max-width:100%; min-height:44px }
input[type=checkbox] { width:1.1em; height:1.1em; accent-color:var(--teal) }
textarea { resize:vertical }
fieldset { border:1px solid var(--line); border-radius:8px; margin:0 }
.checks { display:flex; flex-wrap:wrap; gap:1rem }
.check,.checks label { display:flex; align-items:center }
.account { font-size:1.5rem; font-weight:750; letter-spacing:.08em }
.feedback { margin-block:1rem }
.notice { border:1px solid #79b8a2; padding:.85rem 1rem; border-radius:7px; background:#e8f9ef }
.error { background:#fff0eb; border-color:#d88f77 }
.page-image { width:100%; max-height:360px; object-fit:cover; border-radius:12px; margin-bottom:1.25rem }
.journal-row { display:flex; gap:1rem; align-items:flex-start }
.journal-row img,.cover { width:110px; max-width:100%; border-radius:5px }
.journal-row h2 { font-size:1.35rem }
.journal-row p { margin-bottom:.6rem }
dt { font-weight:700 }
dd { margin:0 0 .55rem; overflow-wrap:anywhere }
.metric { border-top:1px solid var(--line); padding-top:.8rem }
.pagination { margin:1rem 0 }
.certificate { border:5px double var(--teal); max-width:870px; min-height:430px; text-align:center; padding:45px; margin-inline:auto }
.certificate .brandmark { max-width:280px; margin:0 auto 24px }
.certificate button { margin-top:1rem }
.auth { max-width:520px }
.adminnav { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem }
.editor-grid { display:grid; grid-template-columns:270px 1fr; gap:16px; align-items:start }
.page-links { display:grid; gap:.22rem }
.page-links a { padding:.47rem; text-decoration:none }
.edit-preview { width:min(96%,290px); max-height:170px; object-fit:contain; object-position:left }
.badge { display:inline-block; background:#edf3ed; border-radius:99px; padding:.25rem .6rem; text-transform:capitalize; white-space:nowrap }
.filters { margin-block:1rem }
.row { display:flex; justify-content:space-between; align-items:center; text-decoration:none; margin-bottom:.7rem; gap:.5rem }
.spaced,.inline .actions { margin-block:1rem }
footer { background:var(--deep); color:#e1ebee; padding:34px 0; margin-top:22px }
footer a { color:#d3f5e6 }
footer a:hover { color:white }
.footergrid { display:grid; grid-template-columns:1.3fr 1fr auto; gap:1rem }
.footergrid p { font-size:.9rem; color:#cbdbde; margin-top:.4rem }
@keyframes enter { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:none } }
@media (max-width:1030px) {
  .headinner { flex-wrap:wrap; gap:.4rem; padding-block:.75rem }
  .hero-grid { gap:28px }
  .cards { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width:670px) {
  .wrap { width:calc(100% - 28px) }
  .topinner { flex-wrap:wrap; gap:.15rem 1rem; padding-block:.4rem }
  nav { gap:.15rem }
  nav a { font-size:.8rem }
  .hero { padding:38px 0 78px }
  .hero-grid { grid-template-columns:1fr }
  .hero-image { aspect-ratio:1.8 }
  .cards,.criteria,.detail-grid,.form-grid,.editor-grid,.footergrid { grid-template-columns:1fr }
  .searchbar { flex-wrap:wrap }
  .searchbar input { flex-basis:100% }
  .stats { grid-template-columns:repeat(3,1fr) }
  .stats a { padding:.5rem }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important }
}
@media print {
  body { background:white }
  body:has(.certificate) :is(header,footer,.topline,.subhero,.skip,.certificate button,.certificate a) { display:none }
  .certificate { box-shadow:none }
}
.nav-cta { background:var(--teal); color:white; border-radius:7px }
nav a.nav-cta:hover, nav a.nav-cta:focus-visible { background:#0c746c; color:white }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; flex-wrap:wrap }
.featured-journal img { width:100%; height:130px; object-fit:contain; margin-bottom:.75rem; border-radius:8px; background:#edf4f0 }
.featured { border-block:1px solid var(--line) }
.faq { margin-bottom:.7rem; padding:1rem 1.3rem }
summary { cursor:pointer; font-weight:700 }
.faq p { margin:.75rem 0 0 }
.footer-links { list-style:none; padding:0; margin:.5rem 0 0 }
.footer-links li { margin:.24rem 0 }
.procedure { margin-bottom:1.2rem }
.procedure li { margin:.42rem 0 }
.archive { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin:1.2rem 0 }
.auth { margin-inline:auto }
.journal-detail { grid-template-columns:1.55fr 1fr }
.journal-edit { margin-bottom:1rem }
.journal-edit form { margin-top:1rem }
.journal-meta { display:grid; grid-template-columns:minmax(90px, 1fr) minmax(0, 2fr); gap:.3rem .8rem }
.back-link { display:inline-block; margin-bottom:1rem }
@media (max-width:670px) {
  .journal-detail { grid-template-columns:1fr }
}

.hero-method { margin:.95rem 0 0 }
.hero-method a { color:var(--gold); font-weight:700 }
.profile-spotlight,.reader-cta { display:flex; flex-wrap:wrap; align-items:center; gap:1.2rem }
.profile-spotlight .outline { background:transparent; border-color:#809ca6; color:white }
.reader-cta { background:#e6f3eb; border:1px solid #d3e7da; border-radius:16px; padding:clamp(18px,4vw,38px); justify-content:space-between }
.reader-cta p { margin:0 }
.impact-tag { display:inline-flex; vertical-align:middle; align-items:center; flex-wrap:wrap; gap:.4rem .8rem; padding:.35rem .65rem; margin:.25rem 0; background:#e0f1e9; border:1px solid #afcfc1; border-radius:8px; color:#0d514b }
.impact-tag strong { font-size:1.38rem; font-variant-numeric:tabular-nums; line-height:1.2 }
.impact-tag small { font-weight:750; font-size:.76rem }
.impact-unrated { font-size:.81rem; background:#f2f3ed; border-color:#d8ded3; color:#4b5b52 }
.profile-spotlight .impact-tag { background:var(--gold); color:var(--deep); border-color:transparent; padding:.65rem 1rem }
.profile-spotlight .impact-tag strong { font-size:1.9rem }
.catalog-note { color:var(--muted); font-size:.9rem }
.directory-card { padding:0; overflow:hidden; display:flex; flex-direction:column }
.directory-card > img { width:100%; aspect-ratio:2.35; object-fit:cover }
.directory-body { padding:clamp(1rem,2.3vw,1.5rem); height:100%; display:flex; flex-direction:column; align-items:flex-start }
.directory-body .actions { margin-top:auto; padding-top:.55rem }
.directory-body h2 { font-size:1.42rem }
.featured-journal img { object-fit:cover; aspect-ratio:2.25 }
.featured-journal .eyebrow { margin-bottom:.55rem }
.paper-sample { border-top:1px solid var(--line); margin-top:1.5rem; padding-top:1.1rem }
.paper-sample p { margin-bottom:.4rem }
.calculator-result { font-size:1.05rem; font-weight:750; color:var(--teal); margin:0 }
.calculator-result:empty { display:none }
.certificate { background:#fbfaf3; outline:1px solid #b69c64; outline-offset:-16px; padding:clamp(28px,6vw,68px) }
.certificate h3 { font-family:Georgia,serif; font-size:clamp(1.4rem,3.5vw,2.3rem) }
.certificate-sample { display:inline-block; color:#6f4300; border:1px solid #bb9a5e; background:#fff1cf; padding:.3rem .75rem; margin-bottom:1rem; font-weight:750 }
.certificate-score { margin-bottom:1rem }
.demo-setting { margin-bottom:1rem }
.photo-story { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; align-items:center }
.photo-story img { width:100%; height:100%; max-height:360px; border-radius:12px; object-fit:cover }
@media(max-width:670px){.photo-story{grid-template-columns:1fr}.photo-story img{max-height:230px}}
.page-image { max-height:285px; object-position:center 55% }
.journal-detail .cover { width:min(100%,335px) }
@media print {
  .certificate { print-color-adjust:exact; -webkit-print-color-adjust:exact; break-inside:avoid }
}
@media (max-width:900px) { .searchbar { flex-wrap:wrap } .searchbar input { flex-basis:100% } }

/* Keep the full desktop navigation on one row. Use one disclosure on smaller screens. */
.sitehead .headinner { flex-wrap:nowrap; gap:clamp(10px,1.5vw,22px); min-height:70px; padding-block:.35rem }
.sitehead .brand { width:clamp(158px,18vw,220px) }
.sitehead .desktop-nav { flex-wrap:nowrap; justify-content:flex-end; gap:clamp(2px,.44vw,8px); min-width:0 }
.sitehead .desktop-nav a { white-space:nowrap; font-size:.82rem; padding:.4rem .45rem }
.mobile-nav { display:none }
.demo-links { display:flex; flex-wrap:wrap; gap:.35rem 1.25rem; margin:.7rem 0; font-weight:700 }
@media (max-width:1090px) {
  .sitehead .desktop-nav { display:none }
  .mobile-nav { display:block; position:relative; z-index:4 }
  .mobile-nav summary { padding:.45rem .75rem; border:1px solid var(--line); border-radius:8px; white-space:nowrap }
  .mobile-nav nav { position:absolute; right:0; top:calc(100% + .4rem); min-width:190px; display:grid; padding:.55rem; background:#fff; border:1px solid var(--line); border-radius:9px; box-shadow:0 8px 24px #10294026 }
}

.impact-directory { margin-bottom:2rem }
.table-scroll { overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:#fff }
.impact-table { width:100%; min-width:880px; border-collapse:collapse; font-size:.9rem; text-align:left }
.impact-table caption { text-align:left; padding:.7rem 1rem; color:var(--muted); font-weight:700 }
.impact-table th,.impact-table td { padding:.72rem .85rem; border-bottom:1px solid var(--line); vertical-align:top }
.impact-table thead th { background:var(--deep); color:#fff }
.impact-table tbody tr:nth-child(even) { background:#f6f9fa }
.impact-table tbody tr:last-child > * { border-bottom:0 }
.impact-table .issn-column { white-space:nowrap }
.table-value { color:var(--teal); font-variant-numeric:tabular-nums }

.home-page { background:#f5f9fb }
.home-page .hero { background:linear-gradient(115deg,#101f40 0%,#153b66 50%,#075c5d 100%) }
.home-page .hero-image { border:3px solid #c7eadc; box-shadow:12px 12px 0 #f1be6970 }
.home-page .home-search { border-top:5px solid #14797b }
.home-page .stats { gap:.72rem; border:0; background:none; overflow:visible }
.home-page .stats a { background:#edf3ff; color:#1d4587; border:1px solid #d9e5fb; border-radius:12px; padding:1rem .45rem }
.home-page .stats a:nth-child(2) { background:#e5f7f0; color:#075c4c; border-color:#cfeee3 }
.home-page .stats a:nth-child(3) { background:#fff2d9; color:#825012; border-color:#fae4b7 }
.home-page .stats a:nth-child(4) { background:#f2eaff; color:#5e3787; border-color:#e5d6f7 }
.home-page .stats a:nth-child(5) { background:#fdebe9; color:#983d42; border-color:#f8d8d4 }
.home-page .stats a:hover { filter:brightness(.96) }
.home-intro { gap:2rem }
.home-intro img { max-height:340px }
.home-page .feature { border-top:4px solid #14797b }
.home-page .feature:nth-child(3n+2) { border-top-color:#d19535 }
.home-page .feature:nth-child(3n) { border-top-color:#765ba4 }
.home-page .reader-cta { background:#dff2ed; display:grid; grid-template-columns:minmax(130px,1fr) 2fr auto; gap:1.2rem; align-items:center }
.reader-cta img { width:100%; height:145px; object-fit:cover; border-radius:10px }
.directory-certificate { margin-top:auto }
.certificate-score strong { font-size:2.1rem; color:var(--teal); font-variant-numeric:tabular-nums }
.certificate-actions { justify-content:center; align-items:center }
.certificate-actions button { margin:0 }
.site-footer { background:#101f40; border-top:5px solid #53b4a4; padding:46px 0 0 }
.site-footer .footergrid { grid-template-columns:1fr 1.55fr .8fr; gap:2.4rem }
.footer-brand img { width:min(230px,100%); display:block; padding:.65rem .85rem; background:white; border-radius:10px; margin-bottom:1rem }
.footer-link-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem }
.footer-links li { margin:.52rem 0 }
.footer-bottom { border-top:1px solid #43536c; margin-top:1.7rem; padding-block:1rem; color:#c8dbe6; font-size:.83rem }
@media(max-width:820px) { .site-footer .footergrid { grid-template-columns:1fr 1.5fr; gap:1.3rem } .home-page .reader-cta { grid-template-columns:1fr 2fr } }
@media(max-width:550px) { .site-footer .footergrid,.home-page .reader-cta { grid-template-columns:1fr } }

.home-overview { padding:clamp(18px,3vw,36px); border-radius:18px; background:#fff; border:1px solid var(--line) }
.directory-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; margin:1rem 0 }
.directory-totals div { display:flex; flex-direction:column-reverse; text-align:center; justify-content:center; gap:.35rem; padding:1.1rem .35rem; background:#122b4d; color:#fff; border-radius:12px }
.directory-totals div:nth-child(2) { background:#086663 }
.directory-totals div:nth-child(3) { background:#60478a }
.directory-totals div:nth-child(4) { background:#89482b }
.directory-totals dt { font-size:.9rem }
.directory-totals dd { margin:0; font-size:clamp(1.8rem,4vw,2.9rem); font-weight:750; line-height:1; font-variant-numeric:tabular-nums }
.home-page .stats { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:0 }
.home-faq { display:grid; grid-template-columns:1.12fr .88fr; gap:1.5rem; align-items:center }
.home-faq img { display:block; width:100%; height:100%; min-height:220px; max-height:420px; aspect-ratio:1.24; object-fit:cover; border-radius:14px }
.home-publications .card { background:#eaf4ff; border-color:#d2e6f5 }
.home-publications .card:nth-child(2) { background:#e9f7f2; border-color:#cfe9e0 }
.home-publications .card:nth-child(3) { background:#f4edfa; border-color:#e5d9f2 }
.contact-panel,.payment-guide { align-items:stretch }
.contact-links { display:flex; flex-wrap:wrap; gap:.4rem 1rem }
.payment-guide { margin-bottom:1.3rem }
.payment-guide li { margin-bottom:.57rem }
@media(max-width:670px) {
  .home-faq { grid-template-columns:1fr }
  .directory-totals { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .home-faq img { max-height:270px }
}


/* Contact and Fee & payment */
.contact-panel:not(:has(.panel-image)),.payment-guide:not(:has(.panel-image)) { grid-template-columns:1fr }
.payment-panels { display:grid; gap:1rem; min-width:0 }
.panel-image { position:relative; overflow:hidden; border-radius:14px }
@media(min-width:671px) {
  .contact-panel > .panel-image,.payment-guide > .panel-image {
    align-self:stretch;
    contain:size;
    min-height:0;
  }
}
.panel-image img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center }
.contact-panel .panel-image img { object-position:50% 18% }
@media(max-width:670px) {
  .panel-image { aspect-ratio:4/3 }
}

.home-process,.home-faq { padding:clamp(1.35rem,3.4vw,3rem); border-radius:18px; margin-block:2rem }
.home-process { background:linear-gradient(135deg,#102344,#096160); color:#fff }
.home-process .card { min-height:155px; background:#f7fbff; color:#132944; border:0; border-top:4px solid #73cdbb }
.home-process .card:nth-child(2) { background:#fff6e6; border-top-color:#eba94e }
.home-process .card:nth-child(3) { background:#f4efff; border-top-color:#a18ce1 }
.home-process .icon { background:#173b54; color:#fff }
.home-faq { background:linear-gradient(130deg,#e1f2ee,#fcf1dc); border:1px solid #cfe7dc }
.home-faq .faq { background:#fff; border-color:#d2e6df }
.home-faq img { border:3px solid #fff }
.site-footer .footergrid { grid-template-columns:minmax(170px,1fr) minmax(0,2fr) }
.footer-explore { display:block }
.footer-link-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem 1.25rem }
.footer-explore a { display:inline-block; padding:0; overflow-wrap:anywhere }
.footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.65rem 1.5rem }
.certificate-edition {
  color:#182a49;
  border:3px solid #9c7340;
  outline:1px solid #ab8451;
  outline-offset:-12px;
  border-radius:14px;
  padding:clamp(2rem,5vw,3.6rem);
  background:
    radial-gradient(ellipse at center,#fffdf7 40%,transparent 85%),
    linear-gradient(135deg,#d4e8e1 0%,#edf5ec 29%,#fff3de 70%,#e9c79b 100%);
  box-shadow:0 14px 36px #17355025;
}
.certificate-edition .brandmark { display:block; background:#fffdf7; border:1px solid #dbc59f; border-radius:10px; padding:.45rem .8rem }
.certificate-edition h2 { color:#0c5b56; font-size:clamp(1.7rem,4vw,3rem) }
.certificate-edition h3 { color:#152a4a }
.certificate-edition .certificate-score { display:inline-block; background:#e5f2e9; border:1px solid #adcfbb; border-radius:12px; padding:.6rem 1.25rem }
.certificate-details { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; padding:1rem 0; margin:1rem 0; border-block:1px solid #bd9b69 }
.certificate-details dt { font-size:.82rem; color:#425878 }
.certificate-details dd { margin:0; overflow-wrap:anywhere; font-weight:700 }
@media(max-width:670px) { .site-footer .footergrid { grid-template-columns:1fr } }
@media(max-width:460px) { .certificate-details { grid-template-columns:1fr } }
@media print {
  .certificate-edition { padding:1.15cm; box-shadow:none; print-color-adjust:exact; -webkit-print-color-adjust:exact }
}

.certificate-signature {
  max-width:1020px; padding:0; overflow:hidden; border:0; outline:0; background:#fff;
  border-radius:20px; box-shadow:0 18px 50px #142e3a26;
}
.certificate-face {
  position:relative; isolation:isolate; padding:clamp(2rem,6vw,4.4rem);
  color:#152642; border:10px solid #12354a;
  background:
    radial-gradient(ellipse at 90% 7%,#dac18844,transparent 29%),
    radial-gradient(ellipse at 10% 91%,#62ae9c40,transparent 27%),
    linear-gradient(125deg,#f3f8f5,#fffaf0 62%,#f0e3c9);
}
.certificate-face::before { content:""; position:absolute; inset:9px; border:2px solid #ad8545; pointer-events:none; z-index:-1 }
.certificate-face::after { content:""; position:absolute; inset:15px; border:1px solid #ad854573; pointer-events:none; z-index:-1 }
.certificate-face .brandmark { border:0; border-bottom:2px solid #b9853b; background:none; border-radius:0; padding:0 0 .7rem }
.certificate-face .eyebrow { color:#916626 }
.certificate-face h2 { color:#09675e; font-size:clamp(1.8rem,4.8vw,3.5rem); line-height:1.08 }
.certificate-face h3 { font-size:clamp(1.25rem,3.1vw,2.25rem) }
.certificate-signature .certificate-actions { padding:.9rem; margin:0 }
.certificate-signature .certificate-actions [data-print] { background:#eaf0f2; color:#17384c }
.certificate-download-status { margin:0; padding:0 1rem; color:#385265 }
.certificate-download-status:not(:empty) { padding-bottom:.8rem }
.mail-directory { max-height:25rem; overflow:auto; padding:.75rem 1rem }
.mail-directory label { gap:.5rem; margin:.4rem 0; flex-wrap:wrap; overflow-wrap:anywhere }
.mail-directory small { color:#4c6171 }
@media print {
  .certificate-signature { box-shadow:none }
  .certificate-signature .certificate-actions,.certificate-download-status { display:none }
  .certificate-face { print-color-adjust:exact; -webkit-print-color-adjust:exact }
}
[data-mail-send-all][hidden] { display:none }
.certificate-face::before {
  background:
    linear-gradient(#ad8545,#ad8545) left top/34px 4px no-repeat,
    linear-gradient(#ad8545,#ad8545) right top/34px 4px no-repeat,
    linear-gradient(#ad8545,#ad8545) left bottom/34px 4px no-repeat,
    linear-gradient(#ad8545,#ad8545) right bottom/34px 4px no-repeat;
}

.password-control { display:flex; align-items:stretch; gap:.5rem }
.password-control input { flex:1; min-width:0 }
.password-control button { flex-shrink:0 }
.password-control button[hidden] { display:none }
