/* =====================
    Hero
   ===================== */

.hero-artwork {
    background-image: url("../imgs/heroes/hero-lost-ground-detail.webp");
    background-position: center 30%;
}

.hero > .hero-status-pill {
    position: absolute;
    right: calc(0.15 * var(--hero-padding-right));
    bottom: calc(0.15 * var(--hero-padding-bottom));
    padding: 6px 14px;
    background: var(--accent);
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(109, 92, 231, 0.35);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.hero-detail {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    position: relative;
}

.hero {
    padding-bottom: 0;
}

.artifact-information {
    display: flex;
    flex-direction: column;
    width: min(700px, 100%);
    height: 100%;
    box-sizing: border-box;
}

.artifact-title {
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: none;
    padding-right: 0;
    flex: 0 0 auto;
    padding-bottom: 20px;
}

.artifact-request {
    display: grid;
    grid-template-rows: auto 0.99fr auto 1fr;
    height: 100%;
}
.artifact-request > h2 {
    grid-row: 1;
    margin: 0;
}

.artifact-request h2 {
    font-family: "Newsreader", serif;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.artifact-request-row {
    grid-row: 3;

    display: flex;
    align-items: center;
    gap: 16px;
}

.artifact-request-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
    stroke-width: 1.8;
}

.artifact-request p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

    /* RESPONSIVENESS */

        /* -- Small widths -- */

        @media (max-width: 1400px) {
            .artifact-request p {
                width: 350px;
            }
        }

        @media (min-width: 1401px) and (max-width: 1500px) {
            .artifact-request p {
                width: 400px;
            }
        }

        @media (min-width: 1501px) {
            .artifact-request p {
                width: 450px;
            }
        }

/* =====================
    Detail Sections
   ===================== */

.page-content {
    padding-top: 48px;
    padding-bottom: 48px;
}

.detail-content-with-cover {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.detail-cover-trigger {
    display: block;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.detail-cover {
    display: block;
    width: min(235px, 40cqi);
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.detail-text {
    flex: 1;
    max-width: 520px;
}

/* Queries the width of .page-content (given container-type: inline-size in
   style-common.css) rather than the viewport, so this stacks the cover above
   the text based on the available content column, not screen size. */
@container (max-width: 460px) {
    .detail-content-with-cover {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-cover {
        width: 180px;
    }
}

/* .detail-content p's base color/size/line-height/margin now live in
   style-detail-page.css; the descendant selector below is still needed
   locally to reach paragraphs nested in .detail-text (the with-cover
   layout), which style-detail-page.css's child-combinator reset doesn't
   reach. */
.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-content blockquote {
    margin: 0 0 16px 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid rgba(109, 92, 231, 0.35);
    color: var(--text-subtle);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 2.3;
}

/* =====================
    Sources
   ===================== */

.sources-list,
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
    color: var(--text-subtle);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =====================
    Drawer
   ===================== */

.drawer-title {
    margin-bottom: 8px;
}

.drawer-section:first-child {
    padding-top: 8px;
}

.drawer-section-content ul {
    margin-bottom: 16px;
}

/* =====================
    Recovery History
   ===================== */

.recovery-history-layout {
    display: grid;
    grid-template-columns: 1fr minmax(250px, 400px);
    gap: 40px;
    align-items: start;
}

.recovery-history-container {
    position: relative;
    padding-left: 44px;
}

.recovery-history-spine {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-faint);
    opacity: 0.4;
}

.recovery-history-events {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 24px;
}

.recovery-history-event {
    position: relative;
    display: block;
}

.recovery-history-node {
    position: absolute;
    left: -28px;
    top: 13px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--accent);
    flex-shrink: 0;
}

.recovery-history-content {
    display: block;
}

.recovery-history-title-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px 0;
}

.recovery-history-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

.recovery-history-dot {
    color: var(--text-muted);
}

.recovery-history-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.recovery-history-description {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-subtle);
}

.recovery-history-notes {
    background-color: var(--accent-soft);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text);
    margin-top: 0px;
}

.recovery-history-notes h3 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.recovery-history-notes p {
    margin: 0;
    padding-top: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}
