/* Archive cards revealed by exact searches (zdd-story.js). */
.xh-card {
    margin: 0;
    padding: 1rem 1.15rem 1.1rem;
    border-bottom: 1px solid var(--ed-rule-strong);
    border-left: 2px solid var(--ed-accent);
    background: var(--ed-paper-deep, var(--ed-paper));
    color: var(--ed-ink);
    font-family: var(--ed-serif);
    text-align: left;
}
.xh-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ed-muted);
    font-family: var(--ed-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}
.xh-card-title {
    margin: 0.45rem 0 0.7rem;
    color: var(--ed-ink);
    font-size: 1.02rem;
    font-weight: 600;
}
.xh-card-body {
    max-height: 62vh;
    overflow-y: auto;
    padding-right: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.85;
}
.xh-card-body p { margin: 0 0 0.75em; }
.xh-card-body hr { margin: 1em 0; border: 0; border-top: 1px dashed var(--ed-rule-strong); }
.xh-card-body blockquote {
    margin: 0.6em 0;
    padding: 0.1em 0 0.1em 0.9em;
    border-left: 2px solid var(--ed-rule-strong);
    color: var(--ed-ink-soft, var(--ed-ink));
}
.xh-card-body table { width: 100%; margin: 0.6em 0 1em; border-collapse: collapse; font-size: 0.74rem; }
.xh-card-body th,
.xh-card-body td { padding: 0.3em 0.5em; border: 1px solid var(--ed-rule); text-align: left; vertical-align: top; }
.xh-card-body code { font-family: var(--ed-mono); font-size: 0.92em; }
.xh-figure { margin: 0.8em 0 1em; }
.xh-figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--ed-rule); }
.xh-figure figcaption { margin-top: 0.35em; color: var(--ed-muted); font-size: 0.72rem; line-height: 1.6; }
.xh-figure-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    border: 1px dashed var(--ed-rule-strong);
    color: var(--ed-muted);
    font-family: var(--ed-mono);
    font-size: 0.7rem;
}
.xh-answer { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.xh-answer[hidden], .xh-ending[hidden] { display: none; }
.xh-answer button {
    min-width: 3.2rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--ed-rule-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--ed-mono);
    font-size: 0.8rem;
    cursor: pointer;
}
.xh-answer button:hover,
.xh-answer button:focus-visible { border-color: var(--ed-accent); color: var(--ed-accent); }
.xh-ending { margin-top: 1rem; padding-top: 0.6rem; border-top: 1px solid var(--ed-rule-strong); }
