/* blog_list.html and blog_post.html: the article index, the single post
   template (shared with every journal entry -- see models.BlogPost.Path),
   and everything scoped to .content (Chroma, the gallery/photo partials,
   the lightbox, the TOC sidebar, the code-block copy button). Footnote
   styling was removed in Task 6: goldmark's footnote extension is not
   among the two enabled in file_store.go, so no post can ever render the
   markup these rules targeted. */

/* Blog Layout with Sidebar */
.blog-layout {
    width: 100%;
}

.blog-page-title {
    margin-bottom: var(--space-lg);
}

.blog-container {
    display: flex;
    gap: var(--space-3xl);
    align-items: flex-start;
}

/* Blog Sidebar */
.blog-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    position: sticky;
    top: 100px;
}

.blog-sidebar .sidebar-title {
    color: var(--primary-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.search-box {
    margin-bottom: var(--space-lg);
}

.search-link-btn {
    display: block;
    width: 100%;
    padding: 0.625rem var(--space-sm);
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    text-align: left;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-link-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.archive-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.archive-item {
    padding: var(--space-xs-half) 0;
    border-bottom: 1px solid var(--border-color);
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-date {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-3xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-title {
    display: block;
    font-size: 0.875rem;
    color: var(--foreground);
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.archive-title:hover {
    color: var(--primary-color);
}

.archive-tags {
    margin-top: var(--space-2xs);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xs);
}

/* Blog Main Content */
.blog-main {
    flex: 1;
    min-width: 0;
}

/* Featured Post */
.featured-post {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
    transition: all 0.2s ease;
}

.featured-post:hover {
    box-shadow: var(--shadow-hover);
}

.featured-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--on-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: var(--space-3xs-half) var(--space-xs-half);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.featured-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.featured-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: var(--primary-color);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.featured-date {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.featured-reading-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.featured-summary {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.featured-tags {
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: var(--on-dark);
    padding: var(--space-xs-half) 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    background: var(--primary-hover);
    color: var(--on-dark);
    transform: translateY(-1px);
}

.no-posts {
    text-align: center;
    padding: 4rem var(--space-xl);
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Tag filter */
.tag-filter {
    margin-bottom: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2xs);
}

.tag-filter span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Blog Post */
.blog-post {
    background: var(--card-bg);
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(var(--space-xl), 5vw, 3.5rem);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

/* Blog Post with Hero Image */
.blog-post.has-hero {
    padding-top: 0;
    overflow: hidden;
}

.post-hero {
    position: relative;
    margin: calc(-1 * clamp(var(--space-xl), 5vw, 3.5rem));
    margin-bottom: var(--space-xl);
    height: 320px;
    display: flex;
    align-items: flex-end;
}

/* The hero used to be an inline background-image; a strict CSP forbids inline
   styles, so it is a real <img> behind the overlay now. */
.post-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.post-hero-content {
    position: relative;
    z-index: 1;
    padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
    width: 100%;
}

.post-hero-content h1 {
    color: var(--on-dark);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-hero .post-meta {
    margin-bottom: var(--space-xs);
}

.tag-light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--on-dark);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

a.tag-light:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--on-dark);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .post-hero {
        height: 260px;
        margin: -var(--space-lg);
        margin-bottom: var(--space-xl);
    }

    .post-hero-content h1 {
        font-size: 1.375rem;
    }
}

@media (min-width: 769px) {
    .post-hero {
        height: 360px;
    }
}

.post-header {
    margin-bottom: var(--space-2xl);
    /* The shorthand, not padding-bottom alone: this is a <header>, so
       header{} in core.css gives it `padding: var(--space-md) var(--site-margin)`, and
       resetting only the bottom left every post title indented from its own
       body text. .trip-header has always reset all four. */
    padding: 0 0 var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    /* Override inherited header styles */
    position: static;
    z-index: auto;
    backdrop-filter: none;
    background: transparent;
}

.post-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: var(--space-sm);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.post-meta time {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.post-meta .updated-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.content {
    line-height: 1.75;
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.content h2, .content h3 {
    color: var(--foreground);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-sm);
    scroll-margin-top: 100px; /* Offset for sticky header when scrolling to anchors */
}

.content p {
    margin-bottom: var(--space-lg);
}

.content ul, .content ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.content li {
    margin-bottom: var(--space-2xs);
}

.content pre {
    background: var(--surface-code);
    color: var(--on-surface-code);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
    border: 1px solid var(--border-color);
}

/* Chroma (server-side highlighting) */
.chroma { overflow-x: auto; border-radius: var(--border-radius); font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.6; }
.chroma .lntable { border-spacing: 0; width: 100%; }
.chroma .lntd { vertical-align: top; padding: 0; }
.chroma .lntd:first-child { user-select: none; width: 1%; padding-right: var(--space-xs); opacity: 0.5; text-align: right; }
.chroma pre { margin: 0; padding: var(--space-sm) 0; background: transparent; }

.content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.content p code {
    background: var(--background);
    /* off-scale: 0.2rem sits below --space-3xs, the smallest named step. Left as a literal
       because snapping it would move pixels; 2B retires it. */
    padding: 0.2rem var(--space-2xs);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: var(--space-lg);
    margin: 1.75rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 1.75rem 0;
}

.content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:hover {
    color: var(--primary-hover);
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
    max-width: 45%;
    text-decoration: none;
}

.post-nav-next {
    text-align: right;
    margin-left: auto;
}

.post-nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.post-nav-title {
    font-size: 0.9375rem;
    color: var(--foreground);
    font-weight: 500;
    line-height: 1.4;
}

.post-nav-link:hover .post-nav-title {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--foreground);
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.related-post-card {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-2xs) 0;
    text-decoration: none;
}

.related-post-card:hover .related-post-title {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 80px;
}

.related-post-title {
    font-size: 0.9375rem;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-container {
        flex-direction: column-reverse;
    }

    .blog-sidebar {
        width: 100%;
        position: static;
        margin-top: var(--space-xl);
    }

    .archive-list {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--space-xs);
    }

    .archive-item {
        padding: var(--space-sm);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        background: var(--background);
    }

    .featured-post {
        padding: var(--space-lg);
    }

    .featured-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 768px) {

    .blog-post {
        padding: var(--space-lg);
    }

    .archive-list {
        grid-template-columns: 1fr;
    }

    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2xs);
    }
}

/* Code Block Copy Button */
.code-block-wrapper {
    position: relative;
    margin: 1.75rem 0;
}

.content .code-block-wrapper pre {
    margin: 0;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: var(--space-3xs) var(--space-2xs);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    color: #888;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.code-block-wrapper:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #aaa;
}

.copy-button.copied {
    color: var(--success-color);
}

@media print {

    .blog-post {
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .content {
        color: black;
    }

    .content a {
        color: black;
        text-decoration: underline;
    }

    .content a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--print-muted);
    }

    .content pre {
        background: #f5f5f5;
        border: 1px solid #ddd;
        color: black;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .content code {
        background: #f5f5f5;
        color: black;
    }

    .post-header {
        border-bottom: 2px solid black;
    }

    .post-meta time {
        color: var(--print-muted);
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* On a post the breadcrumbs line up with the article column. Declared after
   .breadcrumbs so its margin wins. */
.breadcrumbs--post {
    max-width: 760px;
    margin: 0 auto var(--space-sm);
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: fixed;
    right: max(2rem, calc((100vw - var(--content-width)) / 2 - 280px));
    top: 120px;
    width: 220px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: var(--space-sm);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.8125rem;
    z-index: 50;
}

/* Hide TOC on mobile/tablet - show on desktop (1024px+) */
@media (max-width: 1023px) {
    .toc-sidebar {
        display: none !important;
    }
}

.toc-sidebar .toc-title {
    font-size: 0.6875rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-2xs);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: var(--space-2xs);
}

.toc-h3 {
    padding-left: var(--space-sm);
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: var(--space-3xs) 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Enhanced Blockquotes */
.content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: var(--space-md) var(--space-lg);
    margin: 1.75rem 0;
    background: var(--background);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    font-style: normal;
}

.content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.25rem;
    left: 0.75rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

.content blockquote cite {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: normal;
}

.content blockquote cite::before {
    content: '— ';
}

/* Enhanced Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.9375rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.content th,
.content td {
    padding: var(--space-xs-half) var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content th {
    background: var(--background);
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content tr:last-child td {
    border-bottom: none;
}

.content tr:hover td {
    background: var(--background);
}

@media (max-width: 640px) {
    .content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-image {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1;
    color: var(--on-dark);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Content images the lightbox has claimed; without JavaScript they stay plain
   images and must not pretend to be clickable. */
.content img {
    transition: transform 0.2s ease;
}

.content img:hover {
    transform: scale(1.01);
}

.content img.zoomable {
    cursor: zoom-in;
}

.content img.zoomable:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Photo gallery (photo and travel posts): a responsive grid. Each image
   carries width/height attributes from the front matter, so the browser
   derives its aspect-ratio from them before any rendition arrives — combined
   with width: 100%/height: auto below, the box is reserved immediately and
   the text after the gallery never jumps. ".content .photo img" (two
   classes) beats the plain ".content img" rule above on specificity, so the
   grid-friendly width and the removed margin win regardless of source order. */
.gallery {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin: 1.75rem 0;
}

/* Below nachmi.dev's one mobile breakpoint (768px, reused throughout this
   file — see .post-hero and .blog-post above), force a single column
   instead of leaving it to auto-fit: .blog-post's content width at this
   breakpoint is still wide enough to fit two 16rem (256px) tracks, so
   auto-fit alone would already go two-up at 768px, before picture.html's
   "sizes" attribute expects anything but a single, full-width slot.
   Pinning the grid here is what lets "sizes" name an exact breakpoint
   instead of re-deriving auto-fit's own geometry from --site-margin and
   .blog-post's padding, which have nothing to do with the gallery and
   could drift out from under it. */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.content .photo img {
    width: 100%;
    height: auto;
    margin: 0;
    /* photos.js sets the blurred placeholder as a background here, filling
       the same box the loaded rendition will occupy, then clears it once
       the image has loaded. */
    background-size: cover;
    background-position: center;
}

.photo figcaption {
    margin-top: var(--space-2xs);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trip-nav {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

/* The previous/next bar for a stage's own trip, as distinct from .post-nav's
   site-wide adjacency below. .trip-nav above carries no margin-bottom (the
   universal `* { margin: 0 }` reset leaves it at 0, and its own border-top
   already separates it from the post body), so this block's margin-top is
   the only one that counts at the seam between the two: they collapse to
   the larger value, they do not add, so this block's own margin-top is the
   real gap. Only one
   link renders at an end of a trip; .trip-nav-next's margin-left keeps that
   single survivor pinned to the right, the same trick .post-nav-next
   already uses below. */
.trip-stage-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
}

.trip-nav-prev,
.trip-nav-next {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.trip-nav-prev:hover,
.trip-nav-next:hover {
    color: var(--primary-color);
}

.trip-nav-next {
    margin-left: auto;
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.share-buttons > span {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3xs-half);
    padding: var(--space-2xs) var(--space-sm);
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.share-btn.copied {
    border-color: var(--success-color);
    color: var(--success-color);
    background: var(--success-light);
}

/* Related Posts */
.related-posts {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.related-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-posts li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.related-posts li:last-child {
    border-bottom: none;
}

.related-posts a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
}

.related-posts a:hover {
    color: var(--primary-color);
}

/* Copy Button Enhancement */
.copy-button.copied::before {
    content: '✓ ';
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}