/* Styles every era shares: the archive banner, reader comments and the
   treatment of removed links and lost pictures in post bodies. */

.archive-banner {
    margin: 0;
    padding: 0.6rem 1rem;
    background: #f5c518;
    color: #1a1a1a;
    font: 600 0.95rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
}

.archive-comments { margin-top: 2.5rem; }
.archive-comments-note { opacity: 0.75; }
.archive-comments-list { list-style: none; margin: 0; padding: 0; }
.archive-comment { margin-top: 1rem; padding: 0.75rem 1rem; border-left: 3px solid currentColor; }
.archive-comment-meta { margin: 0 0 0.25rem; font-size: 0.9rem; }

[data-unlinked],
a[data-link-status="unverified"] {
    position: relative;
    text-decoration: underline dotted;
    text-underline-offset: 0.2em;
    cursor: help;
}

[data-unlinked]::after,
a[data-link-status="unverified"]::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    bottom: 100%;
    z-index: 10;
    display: none;
    width: max-content;
    max-width: min(20rem, 80vw);
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    background: #1a1a1a;
    color: #fff;
    font: 400 0.85rem/1.35 system-ui, sans-serif;
    text-decoration: none;
}

[data-unlinked]:hover::after,
[data-unlinked]:focus::after,
a[data-link-status="unverified"]:hover::after,
a[data-link-status="unverified"]:focus::after {
    display: block;
}

[data-lost-image] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 28rem;
    min-height: 9rem;
    margin: 1rem 0;
    padding: 1.5rem 1rem;
    border: 2px dashed currentColor;
    border-radius: 0.75rem;
    text-align: center;
    font: 600 1rem/1.4 system-ui, sans-serif;
    opacity: 0.8;
}

[data-lost-image] > :first-child { font-size: 2rem; }

[data-removed-embed] { display: inline-block; font-style: italic; opacity: 0.75; }

.entry-body img { max-width: 100%; height: auto; }
.entry-body { overflow-wrap: anywhere; }

.archive-link-notice {
    box-sizing: border-box;
    margin: 0 0 1em;
    padding: 0.6em 0.8em;
    border: 1px solid #c9a400;
    background: #fff6c9;
    color: #1a1a1a;
    font: 400 0.9rem/1.45 system-ui, sans-serif;
    text-align: left;
}
