/* Self-hosted, the same files as the app (assets/app.css): no third-party font request. */
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/app/fonts/dm-mono-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/app/fonts/dm-mono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/app/fonts/dm-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/app/fonts/dm-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/app/fonts/space-grotesk-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/app/fonts/space-grotesk-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --page: #FAFBFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --heading: #0F172A;
  --body: #334155;
  --label: #64748B;
  --brand: #3B5FEB;
  --brand-dark: #2541D0;
  --display: 'Space Grotesk', 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site { display: flex; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; gap: 7px; color: var(--heading); text-decoration: none; }
.logo svg { display: block; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.04em; }
/* The words share a baseline, as in the app header; only the flame is centred. */
.lockup { display: flex; align-items: baseline; gap: 10px; }
.divider { position: relative; top: -1px; width: 1px; height: 13px; background: currentColor; opacity: .3; }
.academy { font-weight: 500; font-size: 17px; color: var(--label); }

.sheet {
  padding: 56px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: 16px;
  text-align: center;
}

.kicker { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--brand); }
.recipient, .course, .covers h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; color: var(--heading); text-wrap: balance; overflow-wrap: anywhere; }
.recipient { margin: 16px 0 0; font-size: 56px; line-height: 1.05; }
.for { margin: 20px 0 6px; font-size: 16px; color: var(--label); }
.course { margin: 0; font-size: 30px; line-height: 1.15; }
.kicker + .course { margin-top: 12px; }
.meta { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: var(--label); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats div + div { border-left: 1px solid var(--border); }
.stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--heading); }
.stats dt { font-size: 13px; color: var(--label); }

.issued { margin: 28px 0 0; font-size: 14px; color: var(--label); }
.verify { margin: 4px 0 0; font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; color: var(--label); overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.owner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.owner-label { font-size: 14px; color: var(--label); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--heading); }
.btn-ghost:hover { border-color: var(--label); }

.covers { margin-top: 56px; }
.covers h2 { margin: 0; font-size: 24px; }
.summary { margin: 8px 0 0; max-width: 62ch; font-size: 18px; line-height: 1.55; }
.description { margin: 12px 0 0; max-width: 68ch; font-size: 16px; line-height: 1.65; }
.description code { font-family: 'DM Mono', ui-monospace, monospace; font-size: .875em; padding: 1px 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.chapters { margin: 24px 0 0; padding: 0; list-style: none; }
.chapters li { display: grid; grid-template-columns: 40px 1fr auto; gap: 0 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); }
.chapters .n { font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; color: var(--brand); }
.chapters .title { font-size: 16px; font-weight: 500; color: var(--heading); }
.chapters .counts { font-size: 13px; color: var(--label); white-space: nowrap; }
.more { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--brand); text-decoration: none; }
.more:hover, .note a:hover { color: var(--brand-dark); }

.note { margin-top: 48px; padding: 24px 0 48px; border-top: 1px solid var(--border); font-size: 13px; color: var(--label); }
.note p { margin: 0; }
.note a { color: var(--brand); font-weight: 600; text-decoration: none; }

@media (max-width: 560px) {
  .sheet { padding: 32px 20px; }
  .recipient { font-size: 36px; }
  .course { font-size: 24px; }
  .stats dd { font-size: 24px; }
  .actions, .owner { flex-direction: column; align-items: stretch; width: 100%; }
  .actions .btn-ghost:first-child { order: 1; }
  .owner-label { text-align: center; }
  .chapters li { grid-template-columns: 40px 1fr; }
  .chapters .counts { grid-column: 2; }
}
