/* Certificate pages only. Loaded by /c/<ID> after style.css.
 * Every rule is under body.cert-page so it does not fight other pages. */

body.cert-page{
  background:var(--bg);
  color:var(--ink);
  font:var(--text-md)/var(--leading-body) var(--font-serif);
}
body.cert-page :focus-visible{outline:2px solid #111;outline-offset:2px}
body.cert-page > .banner{display:none!important}
body.cert-page main{
  width:min(100%,640px);
  max-width:640px;
  margin-inline:auto;
  padding:var(--space-7) var(--gutter) var(--space-8);
}
body.cert-page main a{color:#111;text-underline-offset:2px}
body.cert-page main a:not(.cert-btn){text-decoration:underline}
body.cert-page .certificate{
  display:flex;
  flex-direction:column;
  gap:32px;
  border:0;
  margin:0;
  padding:0;
  background:transparent;
}
body.cert-page .example-banner{margin:0}
body.cert-page .archive-banner{
  margin:0;
  background:var(--ink);
  color:var(--on-ink);
  font:700 var(--text-sm)/1.4 var(--font-sans);
  padding:var(--space-3) var(--space-4);
  border-radius:var(--radius-md);
}
body.cert-page .revoked-note{margin:0}
body.cert-page .cert-layout{
  display:flex;
  flex-direction:column;
  gap:32px;
}
body.cert-page .cert-side,
body.cert-page .cert-body{display:contents}
body.cert-page .cert-emblem-slot{order:1}
body.cert-page .cert-heading{order:2}
body.cert-page .cert-facts{order:3}
body.cert-page .cert-notes{order:4}
body.cert-page .cert-statement{order:5}
body.cert-page .cert-verify{order:6}
body.cert-page .cert-means{order:7}
body.cert-page .cert-permanent{order:8}
body.cert-page .cert-actions{order:9}
body.cert-page .cert-emblem,
body.cert-page .cert-revoked-mark{
  display:block;
  width:min(100%,392px);
  height:auto;
  margin:0 auto;
}
body.cert-page .cert-revoked-mark{
  box-sizing:border-box;
  border:3px solid #111;
  padding:22px 16px 18px;
  text-align:center;
  background:var(--surface);
}
body.cert-page .cert-revoked-word{margin:0;font:700 1.6rem/1 system-ui,sans-serif;letter-spacing:.16em;color:#7F1D1D}
body.cert-page .cert-revoked-id{
  margin:12px 0 0;
  font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  font-variant-numeric:slashed-zero;
  font-size:16px;
  line-height:1.3;
}
body.cert-page .cert-revoked-date{margin:6px 0 0;font:15px/1.3 system-ui,sans-serif}
body.cert-page .cert-heading h1{
  margin:0;
  font-family:var(--font-serif);
  font-size:var(--text-xl);
  font-weight:500;
  letter-spacing:-0.025em;
  line-height:var(--leading-tight);
}
body.cert-page .cert-by{
  margin:8px 0 0;
  font-family:var(--font-serif);
  font-size:18px;
  font-style:normal;
  font-weight:400;
  line-height:1.35;
}
body.cert-page .cert-notes{display:flex;flex-direction:column;gap:12px}
body.cert-page .cert-notes p{margin:0}
body.cert-page table.cert-facts{
  display:table;
  width:100%;
  border:1px solid #111;
  border-collapse:collapse;
  margin:0;
  background:var(--surface);
}
body.cert-page table.cert-facts th,
body.cert-page table.cert-facts td{
  border:0;
  border-bottom:1px solid #D0D0D0;
  padding:10px 12px;
  text-align:left;
  vertical-align:middle;
}
body.cert-page table.cert-facts th{
  width:38%;
  border-right:1px solid #D0D0D0;
  font:600 14px/1.3 system-ui,sans-serif;
  color:var(--ink);
}
body.cert-page table.cert-facts tr:last-child th,
body.cert-page table.cert-facts tr:last-child td{border-bottom:0}
body.cert-page table.cert-facts td{
  font:16px/1.35 var(--font-serif);
}
body.cert-page table.cert-facts td.cert-id{
  font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  font-variant-numeric:slashed-zero;
  font-size:15px;
  overflow-wrap:anywhere;
}
body.cert-page td.cert-status.is-archived{
  color:#5c564e;
  font-weight:600;
  font-family:system-ui,sans-serif;
}
body.cert-page td.cert-status.is-revoked,
body.cert-page .is-example td.cert-status{
  color:#7F1D1D;
  font-weight:600;
  font-family:system-ui,sans-serif;
}
body.cert-page section{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  margin:0;
}
body.cert-page .certificate h2{
  margin:0 0 12px;
  font-family:var(--font-serif);
  font-size:var(--text-lg);
  font-weight:500;
  line-height:var(--leading-snug);
  letter-spacing:0;
  text-transform:none;
  color:var(--ink);
}
body.cert-page .cert-statement{
  border:1px solid #111;
  border-radius:0;
  padding:16px;
  background:var(--surface);
}
body.cert-page .cert-checklist{margin:0 0 8px;font:15px/1.4 system-ui,sans-serif}
body.cert-page .cert-lines{list-style:none;margin:12px 0 0;padding:0}
body.cert-page .cert-lines li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:0;
  padding:6px 0;
  border:0;
}
body.cert-page .cert-lines li::before{
  content:"✓";
  position:static;
  flex:0 0 auto;
  width:auto;
  height:auto;
  margin:2px 0 0;
  background:none;
  border-radius:0;
  color:#1F6B3A;
  font:600 16px/1.35 system-ui,sans-serif;
}
body.cert-page .cert-verify{
  margin:0;
  border-top:1px solid #111;
  border-bottom:1px solid #111;
  text-align:left;
}
body.cert-page .cert-verify summary{
  display:flex;
  align-items:center;
  gap:12px;
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  padding:0 2px;
  cursor:pointer;
  list-style:none;
  font:600 16px/1.2 system-ui,sans-serif;
  color:var(--ink);
}
body.cert-page .cert-verify summary::-webkit-details-marker{display:none}
body.cert-page .cert-verify summary::after{
  content:"";
  margin-left:auto;
  width:8px;
  height:8px;
  border-right:2px solid #111;
  border-bottom:2px solid #111;
  transform:rotate(45deg);
  transition:transform .2s ease;
  flex:0 0 auto;
}
body.cert-page .cert-verify[open] summary::after{transform:rotate(225deg)}
body.cert-page .cert-verify summary:focus-visible{outline:2px solid #111;outline-offset:2px}
body.cert-page .cert-verify p{margin:10px 0}
body.cert-page .cert-verify p:last-child{margin-bottom:14px}
body.cert-page .cert-hash,
body.cert-page .cert-mono{
  font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  font-variant-numeric:slashed-zero;
  overflow-wrap:anywhere;
}
body.cert-page .cert-hash{margin:10px 0;color:var(--ink);font-size:13px;line-height:1.45;user-select:text}
body.cert-page .cert-means{margin:0;font:17px/1.45 var(--font-serif)}
body.cert-page .cert-permanent-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
body.cert-page .cert-qr{display:block;width:160px;height:160px}
body.cert-page .cert-permanent-meta{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
  min-width:0;
}
body.cert-page .cert-qr-caption{margin:0;text-align:center;font:15px/1.4 system-ui,sans-serif}
body.cert-page .cert-url{
  margin:0;
  min-width:0;
  font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  font-variant-numeric:slashed-zero;
  font-size:14px;
  line-height:1.45;
  overflow-wrap:break-word;
}
body.cert-page .cert-url a{overflow-wrap:break-word}
body.cert-page .cert-url-id{white-space:nowrap;overflow-wrap:normal}
body.cert-page .cert-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  margin:0;
}
body.cert-page .cert-share-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
body.cert-page .cert-btn{
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:44px;
  min-height:44px;
  padding:0 10px;
  border:1px solid #111;
  border-radius:4px;
  background:var(--surface);
  color:var(--ink);
  font:600 14px/1.15 system-ui,sans-serif;
  text-align:center;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
body.cert-page .cert-btn:hover{background:var(--surface-2)}
body.cert-page .cert-btn:focus-visible{outline:2px solid #111;outline-offset:2px}
body.cert-page .cert-svg-link{margin:0;font:15px/1.4 system-ui,sans-serif}
body.cert-page .cert-action-status{margin:0;font:14px/1.4 system-ui,sans-serif}
body.cert-page .cert-action-status:empty{display:none}
body.cert-page .cert-copy-fallback{
  width:100%;
  margin:0;
  font:14px/1.3 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

@media (min-width:1024px){
  body.cert-page main{width:min(100%,1040px);max-width:1040px}
  body.cert-page .cert-layout{
    display:grid;
    grid-template-columns:360px minmax(0,1fr);
    column-gap:32px;
    align-items:start;
  }
  body.cert-page .cert-side{
    display:flex;
    flex-direction:column;
    gap:32px;
    position:sticky;
    top:20px;
    min-width:0;
  }
  body.cert-page .cert-body{
    display:flex;
    flex-direction:column;
    gap:32px;
    min-width:0;
  }
  body.cert-page .cert-emblem-slot,
  body.cert-page .cert-heading,
  body.cert-page .cert-facts,
  body.cert-page .cert-notes,
  body.cert-page .cert-statement,
  body.cert-page .cert-verify,
  body.cert-page .cert-means,
  body.cert-page .cert-permanent,
  body.cert-page .cert-actions{order:0}
  body.cert-page .cert-heading h1{font-size:var(--text-2xl)}
  body.cert-page .cert-permanent-row{
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
  }
  body.cert-page .cert-qr{width:140px;height:140px;flex:0 0 140px}
  body.cert-page .cert-qr-caption{text-align:left}
}

@media print{
  body.cert-page{background:#fff!important;color:#000!important}
  body.cert-page > .banner,
  body.cert-page #sitenav,
  body.cert-page .nav-toggle,
  body.cert-page footer,
  body.cert-page #toast,
  body.cert-page .cert-actions,
  body.cert-page [data-copy-link]{display:none!important}
  body.cert-page .cert-verify,
  body.cert-page .cert-verify:not([open]) > :not(summary){display:block!important}
  body.cert-page .cert-verify::details-content{content-visibility:visible}
  body.cert-page main{max-width:none!important;width:auto!important;padding:0!important}
  body.cert-page .certificate{gap:3pt!important;border:0!important}
  body.cert-page .cert-layout{
    display:flex!important;
    flex-direction:column!important;
    gap:3pt!important;
    max-width:7.2in;
  }
  body.cert-page .cert-side,
  body.cert-page .cert-body{display:contents!important}
  body.cert-page .cert-emblem-slot{order:1!important}
  body.cert-page .cert-heading{order:2!important}
  body.cert-page .cert-facts{order:3!important}
  body.cert-page .cert-notes{order:4!important}
  body.cert-page .cert-statement{order:5!important}
  body.cert-page .cert-verify{order:6!important}
  body.cert-page .cert-means{order:7!important}
  body.cert-page .cert-permanent{order:8!important}
  body.cert-page .cert-actions{order:9!important}
  body.cert-page .cert-emblem,
  body.cert-page .cert-revoked-mark{width:1.8in!important;height:auto!important}
  body.cert-page .cert-qr{width:120px!important;height:120px!important}
  body.cert-page .example-banner,
  body.cert-page .revoked-note{margin:0!important;padding:3pt 6pt!important}
  body.cert-page .emblem-caption{margin:1pt 0 0!important;color:#111!important}
  body.cert-page .cert-notes{gap:2pt!important}
  body.cert-page .cert-verify p,
  body.cert-page .cert-hash{margin:1pt 0!important}
  body.cert-page .cert-hash{
    font-size:7.5pt!important;
    line-height:1.35!important;
    overflow-wrap:anywhere!important;
  }
  body.cert-page .cert-heading h1{font-size:16pt!important}
  body.cert-page .cert-by{font-size:11pt!important}
  body.cert-page .certificate h2{font-size:12pt!important;margin:0 0 3pt!important}
  body.cert-page table.cert-facts th,
  body.cert-page table.cert-facts td{padding:2pt 6pt!important;font-size:10pt!important}
  body.cert-page .cert-lines li{padding:1pt 0!important;font-size:10pt!important;line-height:1.35!important}
  body.cert-page .cert-lines li::before{color:#000!important;font-size:10pt!important}
  body.cert-page .cert-statement{padding:3pt!important}
  body.cert-page .cert-status.is-archived,
  body.cert-page td.cert-status.is-revoked,
  body.cert-page .is-example td.cert-status{color:#000!important}
  body.cert-page .example-banner,
  body.cert-page .archive-banner{
    background:#fff!important;
    color:#000!important;
    border:2px solid #000!important;
  }
  body.cert-page a,
  body.cert-page .cert-url a{color:#000!important}
  body.cert-page .cert-permanent-row{align-items:flex-start;gap:3pt!important}
}
@page{margin:.35in}
