/* Puppy School — course pages (layout: _layouts/puppy_school.html).
 * First half: the look of the original single-page course, moved here unchanged.
 * Second half: what the markdown-rendered lessons, the progress rail, the two
 * paste widgets, graduation and the certificate need. */

/* ── Puppy School custom styles ── */

.ps-container {
    max-width: 720px;
    width: 100%;
    padding: 2rem;
    margin: 2rem auto 0 auto;
}

/* Course header with paw icon */
.ps-course-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ps-course-header h1 {
    font-family: var(--brand-font-heading);
    font-size: 2rem;
    color: var(--brand-text);
    margin-bottom: 0.5rem;
}

.ps-course-header .ps-tagline {
    font-size: 1rem;
    color: var(--brand-text-muted);
    line-height: 1.6;
}

/* Lesson card */
.ps-lesson {
    display: none;
    animation: stepFadeIn 0.3s ease;
}

.ps-lesson.active {
    display: block;
}

.ps-lesson-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 2rem;
}

.ps-lesson-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--brand-text-muted);
}

.ps-lesson-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ps-lesson-trick { color: #f2b632; }
.ps-lesson-trick svg { width: 1.05em; height: 1.05em; }

.ps-lesson-title {
    font-family: var(--brand-font-heading);
    font-size: 1.5rem;
    color: var(--brand-text);
    margin-bottom: 0.5rem;
}

.ps-lesson-goal {
    font-size: 0.9rem;
    color: var(--brand-text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Step sections within a lesson */
.ps-step {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-step:last-of-type {
    border-bottom: none;
}

.ps-step-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ps-step h3 {
    font-size: 1.1rem;
    color: var(--brand-text);
    margin-bottom: 0.75rem;
}

.ps-step p {
    color: var(--brand-text-body);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* Config tables */
.ps-config-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.ps-config-table th,
.ps-config-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-config-table th {
    color: var(--brand-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ps-config-table td {
    color: var(--brand-text);
}

.ps-config-table code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Code blocks */
.ps-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
    line-height: 1.5;
    white-space: pre;
}

/* Code block with copy button */
.ps-code-wrapper {
    position: relative;
    margin: 1rem 0;
}

.ps-code-wrapper .ps-code {
    margin: 0;
    padding-right: 4rem;
}

.ps-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--brand-text-muted);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ps-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--brand-text);
}

.ps-copy-btn.copied {
    background: rgba(52, 199, 89, 0.2);
    border-color: rgba(52, 199, 89, 0.3);
    color: #34c759;
}

/* Inline path/code */
.ps-path {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
}

/* Endpoint list */
.ps-endpoint-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ps-endpoint-list li {
    padding: 0.5rem 0;
    color: var(--brand-text-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps-endpoint-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--brand-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Philosophy / Dig Deeper callouts */
.ps-callout {
    background: rgba(0, 120, 212, 0.08);
    border-left: 3px solid var(--brand-accent);
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.ps-callout-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: 0.4rem;
}

.ps-callout p {
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    line-height: 1.6;
    margin: 0;
}

.ps-callout a {
    color: var(--brand-accent);
    text-decoration: none;
}

.ps-callout a:hover {
    text-decoration: underline;
}

/* Boxout — optional detail, set to one side with the text running past it.
 *
 * Tagged `{: .ps-boxout}` on a blockquote in the lesson. A newspaper boxout: it floats right
 * inside the same column and the instructions flow down its left, so the step reads straight
 * through whether or not you stop to read the box. Nothing is reserved for it and nothing
 * hangs off the page — an empty step is exactly as wide as a full one.
 *
 * It is a card, not a tinted stripe. Contrast against the lesson surface is the only thing
 * telling a reader this is optional; nothing labels it. */
.ps-callout.ps-boxout {
    float: right;
    width: 45%;
    max-width: 320px;
    clear: right;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 0.25rem 0 1rem 1.75rem;
}

/* Contain the float so it can never reach the next step, or off a page that has no steps. */
.ps-step,
.ps-content {
    display: flow-root;
}

/* Only inline content wraps around a float. A block box slides UNDER it, so a code block,
 * table or callout following a boxout would be covered by it — push them clear instead.
 * This is why a boxout needs running prose after it to be worth using at all. */
.ps-code-wrapper,
.ps-table-wrap,
.ps-callout:not(.ps-boxout) {
    clear: right;
}

/* ...but a block INSIDE a boxout must not clear the boxout's own float, or it drops out of
 * the bottom of the box it belongs to. */
.ps-boxout .ps-code-wrapper,
.ps-boxout .ps-table-wrap {
    clear: none;
}

.ps-callout.ps-boxout .ps-callout-title {
    color: var(--brand-text);
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

.ps-callout.ps-boxout p {
    font-size: 0.8rem;
    line-height: 1.55;
}

.ps-callout.ps-boxout p + p {
    margin-top: 0.6rem;
}

/* Long template variables must not push the box wider than its float. */
.ps-callout.ps-boxout code {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Too narrow to set text beside it: drop the float and let it be a card in the flow. */
@media (max-width: 760px) {
    .ps-callout.ps-boxout {
        float: none;
        width: auto;
        max-width: none;
        margin: 1rem 0 1.5rem 0;
    }
}

/* Next / Check Homework button */
.ps-action-bar {
    margin-top: 2rem;
    text-align: center;
}

.ps-action-bar .btn {
    max-width: 400px;
}

/* Checkpoint screen */
.ps-checkpoint {
    text-align: center;
    padding: 3rem 2rem;
}

.ps-checkpoint-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.ps-checkpoint h2 {
    font-family: var(--brand-font-heading);
    font-size: 1.5rem;
    color: var(--brand-text);
    margin-bottom: 1rem;
}

.ps-checkpoint p {
    color: var(--brand-text-body);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

.ps-checkpoint .ps-incomplete-list {
    text-align: left;
    background: rgba(255, 69, 58, 0.08);
    border: 1px solid rgba(255, 69, 58, 0.2);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1rem auto 1.5rem auto;
    max-width: 500px;
}

.ps-incomplete-list li {
    color: #ff6b6b;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    list-style: none;
}

.ps-incomplete-list li::before {
    content: '\2717  ';
    font-weight: bold;
}

.ps-support-link {
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    margin-top: 1.5rem;
}

.ps-support-link a {
    color: var(--brand-accent);
    text-decoration: none;
}

.ps-support-link a:hover {
    text-decoration: underline;
}

/* Progress tracker at top */
.ps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ps-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s, transform 0.3s;
}

.ps-progress-dot.completed {
    background: #34c759;
}

.ps-progress-dot.current {
    background: var(--brand-accent);
    transform: scale(1.3);
}

.ps-progress-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.ps-progress-line.completed {
    background: #34c759;
}

.ps-progress-label {
    font-size: 0.7rem;
    color: var(--brand-text-muted);
    text-align: center;
    margin-top: 0.25rem;
}

/* Welcome screen */
.ps-welcome {
    text-align: center;
    padding: 2rem 0;
}

.ps-welcome h1 {
    font-family: var(--brand-font-heading);
    font-size: 2.25rem;
    color: var(--brand-text);
    margin-bottom: 1.5rem;
}

.ps-welcome p {
    color: var(--brand-text-body);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ps-welcome .ps-outcomes {
    text-align: left;
    max-width: 520px;
    margin: 1.5rem auto 2rem auto;
}

.ps-outcomes li {
    color: var(--brand-text-body);
    padding: 0.4rem 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.ps-outcomes li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--brand-accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.ps-welcome .ps-tagline-final {
    font-style: italic;
    color: var(--brand-text-muted);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Completion screen */
.ps-completion {
    text-align: center;
    padding: 3rem 2rem;
}

.ps-completion h2 {
    font-family: var(--brand-font-heading);
    font-size: 1.75rem;
    color: var(--brand-text);
    margin-bottom: 1rem;
}

.ps-completion p {
    color: var(--brand-text-body);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

/* Loading / sign-in cards */
.ps-loading-card {
    text-align: center;
    padding: 3rem;
}

.ps-loading-card .spinner {
    width: 24px;
    height: 24px;
}

/* Locked lesson indicator */
.ps-locked {
    opacity: 0.4;
    pointer-events: none;
}


/* ======================================================================================
 * Course pages rendered from _puppy_school/*.md
 * ==================================================================================== */
.ps-header-right { display: flex; gap: 1.25rem; align-items: center; }
.ps-header-link { font-size: 0.875rem; color: var(--brand-text-muted); text-decoration: none; }
.ps-header-link:hover { color: var(--brand-text); }

.ps-container { max-width: 820px; }

/* Progress rail */
.ps-rail {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.ps-rail-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--brand-text-muted);
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.25;
}
.ps-rail-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.18);
    color: var(--brand-text-muted);
    transition: background 0.2s ease, border-color 0.2s ease;
}
/* The dot carries the lesson's trick (the glyph on its badge), in the dot's own colour. */
.ps-rail-dot svg { width: 16px; height: 16px; }
.ps-rail-trick { display: block; font-size: 0.66rem; opacity: 0.7; }
.ps-rail-item.is-complete .ps-rail-trick { color: #f2b632; opacity: 1; }
.ps-rail-item[aria-current="page"] { color: var(--brand-text); }
.ps-rail-item[aria-current="page"] .ps-rail-dot { border-color: var(--brand-accent); color: var(--brand-text); }
.ps-rail-item.is-next .ps-rail-dot { border-color: var(--brand-accent); }
.ps-rail-item.is-complete .ps-rail-dot { background: #34c759; border-color: #34c759; color: #0b1a10; }
.ps-rail-item:hover .ps-rail-label { color: var(--brand-text); }

/* Not yet earned. The <a> has already had its href removed in JS, so this only has to stop
 * it *looking* clickable — dimmed, no hover lift, default cursor. Deliberately not
 * `pointer-events: none`, so the title still explains why on hover. */
.ps-rail-item.is-locked,
.ps-pager-link.is-locked {
    opacity: 0.4;
    cursor: default;
}

.ps-rail-item.is-locked:hover .ps-rail-label,
.ps-pager-link.is-locked:hover {
    color: var(--brand-text-muted);
}

/* Markdown body */
.ps-lesson-title { font-size: 1.9rem; margin: 0.25rem 0 0.5rem; color: var(--brand-text); }
.ps-content { color: var(--brand-text-body); line-height: 1.7; }
.ps-content > h1 { font-size: 2rem; color: var(--brand-text); margin: 0 0 1rem; }
.ps-content h2 { font-size: 1.25rem; color: var(--brand-text); margin: 2rem 0 0.75rem; }
.ps-content h3 { font-size: 1.1rem; color: var(--brand-text); margin: 0 0 0.75rem; }
.ps-content p, .ps-content li { color: var(--brand-text-body); }
.ps-content p { margin: 0 0 0.85rem; }
.ps-content ul, .ps-content ol { margin: 0 0 1rem 1.25rem; padding: 0; }
.ps-content li { margin-bottom: 0.4rem; }
.ps-content strong { color: var(--brand-text); }
.ps-content :not(pre) > code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.12rem 0.38rem;
    border-radius: 3px;
    font-size: 0.85em;
}
.ps-content hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 2rem 0; }
.ps-content .highlight, .ps-content .highlighter-rouge { background: none; margin: 0; }
.ps-content pre.ps-code { white-space: pre; }
.ps-table-wrap { overflow-x: auto; }
.ps-step { margin-top: 2rem; }
.ps-step.ps-bonus {
    border: 1px dashed rgba(242, 182, 50, 0.45);
    border-radius: 8px;
    padding: 1.25rem 1.25rem 0.5rem;
}
.ps-step.ps-bonus .ps-step-label { color: #f2b632; }

blockquote.ps-callout {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--brand-accent);
    background: rgba(0, 120, 212, 0.08);
    border-radius: 0 6px 6px 0;
}
blockquote.ps-callout p:last-child { margin-bottom: 0; }
.ps-callout-title { font-weight: 600; color: var(--brand-text); margin-bottom: 0.4rem; }

.ps-action-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.ps-action-bar .btn { width: auto; min-width: 190px; text-align: center; text-decoration: none; }

/* Checkpoint */
.ps-checkpoint-panel {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ps-checkpoint-panel h2 { font-size: 1.25rem; color: var(--brand-text); margin: 0 0 0.5rem; }
.ps-checkpoint-criteria { color: var(--brand-text-body); margin: 0; }
.ps-checkpoint-result, .ps-widget-result {
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.ps-checkpoint-result h3 { margin: 0 0 0.5rem; color: var(--brand-text); }
.ps-checkpoint-result.is-pass, .ps-widget-result.is-pass { border-color: rgba(52, 199, 89, 0.5); background: rgba(52, 199, 89, 0.08); }
.ps-checkpoint-result.is-fail, .ps-widget-result.is-fail { border-color: rgba(255, 159, 10, 0.5); background: rgba(255, 159, 10, 0.07); }
.ps-checkpoint-result.is-error { border-color: rgba(255, 69, 58, 0.5); }
.ps-onward { display: inline-block; width: auto; margin-top: 1rem; text-decoration: none; }
.ps-incomplete-list, .ps-findings { margin: 0.75rem 0 0 1.25rem; padding: 0; }
.ps-incomplete-list li, .ps-findings li { margin-bottom: 0.5rem; color: var(--brand-text-body); }

/* Paste-it-back / share-it-back */
.ps-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}
.ps-widget-label { display: block; font-size: 0.8rem; color: var(--brand-text-muted); margin: 0.75rem 0 0.35rem; }
.ps-widget-input, .ps-name-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--brand-text);
    padding: 0.7rem 0.8rem;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
}
.ps-name-input { font-family: inherit; font-size: 1rem; max-width: 460px; }
.ps-widget-note, .ps-cta-progress { font-size: 0.8rem; color: var(--brand-text-muted); margin: 0.75rem 0 0; }
.ps-findings-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 1rem 0 0; }
.ps-findings-error { color: #ff9f0a; }
.ps-findings-warn { color: #ffd60a; }
.ps-findings-tip { color: var(--brand-text-muted); }
.ps-finding-message { display: block; color: var(--brand-text); }
.ps-finding-hint { display: block; font-size: 0.85rem; color: var(--brand-text-muted); }
.ps-form-error { color: #ff9f0a; font-size: 0.875rem; }
.ps-link-button {
    background: none; border: none; padding: 0; margin-top: 0.75rem; cursor: pointer;
    color: var(--brand-text-muted); font-size: 0.8rem; text-decoration: underline;
}

.ps-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.ps-pager-link { color: var(--brand-text-muted); text-decoration: none; font-size: 0.875rem; }
.ps-pager-link:hover { color: var(--brand-text); }
.ps-cta { margin: 1.5rem 0; }
.ps-cta .ps-pager-link { display: inline-block; margin-top: 0.75rem; }

/* Pass screen: the badge just earned, and the trick it stands for. */
.ps-trick-earned { display: flex; align-items: center; gap: 0.9rem; margin: 1rem 0; }
.ps-trick-earned-art { width: 64px; height: 64px; flex: none; line-height: 0; }
.ps-trick-earned-art svg { width: 100%; height: 100%; }
.ps-trick-earned-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-text-muted); }
.ps-trick-earned-name { font-family: var(--brand-font-heading); font-size: 1.15rem; color: #f2b632; }

/* Graduation: the certificate leads the page. The card is wider here so the certificate has
 * room; the prose around it keeps a readable measure. */
body.ps-kind-graduation .ps-container { max-width: 1100px; }
body.ps-kind-graduation .ps-content > :not(.ps-grad-hero) { max-width: 760px; }

.ps-grad-hero {
    margin: 1.75rem 0 2.5rem;
    padding: 2rem 2rem 1.75rem;
    border: 2px solid #f2b632;
    border-radius: 12px;
    background:
        radial-gradient(ellipse at top, rgba(242, 182, 50, 0.16), transparent 60%),
        rgba(0, 0, 0, 0.22);
    box-shadow: 0 0 0 6px rgba(242, 182, 50, 0.08), 0 20px 60px rgba(0, 0, 0, 0.45);
    text-align: center;
}
.ps-grad-heading {
    font-family: var(--brand-font-heading);
    font-size: 2rem !important;
    color: #f2b632 !important;
    margin: 1.5rem 0 0.25rem !important;
    letter-spacing: 0.01em;
}
.ps-grad-caption { color: var(--brand-text-muted); font-size: 0.95rem; max-width: 640px; margin: 1.5rem auto 0; }

/* The badge cluster: the graduate badge big, the five lesson badges small under it. */
.ps-grad-badges { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.ps-grad-badges .dbmn-badge { border: none; padding: 0; gap: 0.5rem; }
.ps-grad-logo .dbmn-badge-art { width: 170px; height: 170px; filter: drop-shadow(0 10px 28px rgba(242, 182, 50, 0.35)); }
.ps-grad-logo .dbmn-badge-name {
    font-family: var(--brand-font-heading);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f2b632;
}
.ps-grad-lessons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.ps-grad-lesson .dbmn-badge-art { width: 40px; height: 40px; }
.ps-grad-lesson .dbmn-badge-name { font-size: 0.7rem; color: var(--brand-text-muted); }

.ps-grad-hero .ps-name-form { max-width: 560px; margin: 0 auto; text-align: left; }
.ps-grad-hero .ps-name-form .ps-name-input { max-width: none; font-size: 1.15rem; padding: 0.85rem 1rem; }
.ps-grad-hero .ps-name-form .btn { font-size: 1.05rem; padding: 0.8rem 1.6rem; }
.ps-grad-hero .ps-action-bar { justify-content: center; }

/* Certificate */
.ps-certificate {
    margin: 1.25rem 0 0.5rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(242, 182, 50, 0.35), 0 16px 50px rgba(0, 0, 0, 0.55);
}
.ps-certificate svg { display: block; width: 100%; height: auto; }

/* Confetti: a full-window canvas over everything, never in the way of a click. */
.ps-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; }

@media (max-width: 640px) {
    .ps-grad-hero { padding: 1.25rem 1rem; }
    .ps-grad-logo .dbmn-badge-art { width: 120px; height: 120px; }
    .ps-grad-heading { font-size: 1.5rem !important; }
}

@media (max-width: 640px) {
    .ps-rail-label { display: none; }
    .ps-container { padding: 1rem; }
    .ps-lesson-card { padding: 1.25rem; }
}

/* Printing the certificate goes through its own iframe (printCertificate in course.js), so
 * the page itself needs no print rules. */

/* The site header styles its links with display:flex, which would defeat [hidden]. */
.ps-body [hidden] { display: none !important; }
.ps-header-right { margin-left: 2rem; }
