/* /artifacts section. Pages are generated by scripts/build-artifacts.py. */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

.learn-nav-dropdown { position: relative; }
.learn-nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    min-height: 100%;
}
.learn-nav-dropdown summary::-webkit-details-marker { display: none; }
.learn-nav-dropdown summary::marker { content: ""; }
.learn-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0.6rem 0;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #000;
    min-width: 180px;
}
.learn-nav-menu li a { display: block; padding: 0.45rem 0.9rem; white-space: nowrap; }
@media (min-width: 992px) {
    .uc-navbar-nav > li:has(> .learn-nav-dropdown) { display: inline-flex; align-items: center; }
    .learn-nav-dropdown .learn-nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
    }
}
@media (max-width: 991px) {
    .learn-nav-dropdown .learn-nav-menu { margin-top: 0.5rem; }
}

.artifact-hero { background: linear-gradient(180deg, #ffe6f0 0%, #fff4e6 100%); }
.artifact-hero-inner { padding: 8rem 1rem 3.5rem; }
@media (min-width: 992px) { .artifact-hero-inner { padding-top: 10rem; padding-bottom: 4.5rem; } }

.artifact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    box-shadow: 4px 4px 0 #000;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}
a.artifact-pill:hover { color: #000; transform: translate(1px, 1px); box-shadow: 3px 3px 0 #000; }

.artifact-title {
    color: #ff4fa3;
    text-shadow: -2px 2px 0 rgba(0, 0, 0, 0.18);
    word-break: break-word;
}
.artifact-subtitle { letter-spacing: 0.06em; }

.artifact-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
}

.artifact-facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.artifact-facts th,
.artifact-facts td { padding: 0.55rem 0; border-bottom: 2px dashed rgba(0, 0, 0, 0.15); vertical-align: top; }
.artifact-facts tr:last-child th,
.artifact-facts tr:last-child td { border-bottom: 0; }
.artifact-facts th { font-weight: 700; padding-right: 1rem; white-space: nowrap; }
.artifact-facts td { text-align: right; overflow-wrap: anywhere; }
@media (max-width: 575px) {
    .artifact-facts th, .artifact-facts td { display: block; text-align: left; white-space: normal; }
    .artifact-facts th { border-bottom: 0; padding-bottom: 0; }
}

.artifact-card { color: #000; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.artifact-card:hover { color: #000; transform: rotate(0deg) translateY(-3px); }

.artifact-chip {
    display: inline-block;
    border: 2px solid #000;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.max-w-600px { max-width: 600px; }

.artifact-hero-copy { max-width: 48rem; }

.artifact-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.artifact-logo {
    display: block;
    border: 3px solid #000;
    border-radius: 20px;
    box-shadow: 6px 6px 0 #000;
    image-rendering: pixelated;
    background: #1d1a26;
}
.artifact-hero .artifact-logo { width: 140px; height: 140px; transform: rotate(-3deg); }
@media (min-width: 992px) { .artifact-hero .artifact-logo { width: 170px; height: 170px; } }
.artifact-logo-sm { width: 56px; height: 56px; border-width: 2px; border-radius: 12px; box-shadow: 3px 3px 0 #000; flex-shrink: 0; }

/* Phones: the theme's .btn is a fixed 48px tall, so labels that wrap spill
   out of the button. Stack the action buttons full width on one line each. */
.artifact-actions .btn { white-space: nowrap; }
@media (max-width: 575px) {
    .artifact-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
    .artifact-actions .btn { width: 100%; justify-content: center; font-size: 1.1rem; }
    .artifact-hero-inner { padding-top: 7rem; padding-bottom: 3rem; }
    .artifact-hero .artifact-logo { width: 120px; height: 120px; }
    .artifact-pill { font-size: 0.875rem; padding: 0.5rem 0.9rem; }
}
