/* Only the XThreads page that contains an individual wanted ad uses the broad canvas. */
#content > .wrapper:has(.smw-topic.smw-single) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-inline: clamp(.5rem, 1vw, 1.25rem);
}
.smw-topic.smw-single {
    --paper-line: light-dark(#d8d1c6, var(--line, #464e59));
    --paper-muted: light-dark(#655b50, var(--ink, #d9dfe8));
    margin: .75rem 0 1.25rem;
    padding: clamp(.65rem, 1vw, 1.25rem);
    background: light-dark(#f6f3ed, var(--surface, #20242a));
    text-align: start;
}
.smw-single .smw-layout {
    grid-template-columns: minmax(0, 19fr) minmax(0, 55fr) minmax(0, 21fr);
    gap: clamp(1rem, 1.65vw, 2rem);
    align-items: start;
}
.smw-single .smw-layout figure { max-width: none; align-self: stretch; }
.smw-single .smw-cover:has(img) { min-height: 23rem; }
.smw-single .smw-cover img { object-position: center 28%; }
.smw-single .smw-cover i { font-size: clamp(1.05rem, 1.45vw, 1.45rem); line-height: 1.35; }
.smw-single .smw-cover img + div { padding: 5rem 1.15rem 1.5rem; }
.smw-single .smw-cover:not(:has(img)) > div:has(i:not(:empty)) {
    display: grid;
    align-content: end;
    min-height: 12rem;
    padding: 1.25rem;
    background: #35312c;
    border: .5rem double #62594e;
}
.smw-single figcaption:not(:empty) {
    font-size: .81rem; line-height: 1.55; letter-spacing: .09em; text-transform: uppercase;
    border-top: 1px solid #72685a;
}
.smw-single .smw-heading { gap: clamp(.8rem, 2vw, 2rem); }
.smw-single .smw-heading small { color: var(--paper-muted); }
.smw-single .smw-heading .smw-chips { margin-block: .5rem .85rem; }
.smw-single .smw-heading .smw-chip { border-radius: 0; }
.smw-single .smw-heading h1 { margin: 0; font-size: clamp(2rem, 3.15vw, 4.5rem); }
.smw-single .smw-heading p:not(:empty)::after, .smw-single .smw-heading blockquote::after {
    content: ""; display: block; width: 2rem; height: 1px; margin-block-start: .6rem; background: currentColor;
}
.smw-single .smw-heading blockquote {
    margin: 1.4rem 0 0; padding: 0 0 0 .8rem; border: 0; border-radius: 0;
    background: transparent; color: var(--paper-muted); font-size: 1.04rem;
}
.smw-single .smw-heading cite:empty { display: none; }
.smw-single .smw-story > .smw-detail {
    grid-template-columns: clamp(2rem, 3vw, 3.25rem) minmax(0, 1fr);
    gap: .22rem clamp(.75rem, 1.2vw, 1.4rem);
    margin: 0; padding: .95rem 0; border-color: var(--paper-line);
}
.smw-single .smw-story > .smw-detail::before {
    align-self: stretch; padding-top: .1rem; background: light-dark(#ece8df, var(--subtle, #292e36)); color: light-dark(#625748, var(--ink, #f1f3f6)); font-size: 1.55rem;
}
.smw-single .smw-story .smw-detail strong {
    font: 600 1.02rem/1.3 Georgia, serif; letter-spacing: .095em; text-transform: uppercase;
}
.smw-single .smw-story .smw-detail > div { max-width: 88ch; line-height: 1.55; }
.smw-single .smw-layout aside { display: grid; gap: .75rem; align-content: start; }
.smw-single aside section { margin: 0; min-width: 0; container: wanted-facts / inline-size; }
.smw-single aside h3 { padding: .55rem .8rem; }
.smw-single .smw-byline { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.smw-single .smw-byline .author_avatar { padding: 0; float: none; }
.smw-single .smw-byline .author_avatar img { width: 3rem; height: 3rem; border-radius: 50%; }
.smw-single aside dl { padding: .35rem 0; border-top: 1px solid var(--paper-line); }
.smw-single aside .smw-detail {
    display: grid; grid-template-columns: minmax(min-content, 1.35fr) minmax(0, 1fr);
    align-items: baseline; gap: .55rem; padding: .42rem 0; margin: 0 .75rem; font-size: .91rem;
}
.smw-single aside .smw-detail + .smw-detail { border-top: 1px solid var(--paper-line); }
.smw-single aside .smw-detail strong {
    display: flex; align-items: baseline; gap: .5em; line-height: 1.4;
    letter-spacing: .055em; overflow-wrap: normal; hyphens: auto;
}
.smw-single aside .smw-detail strong::before {
    content: ""; display: inline-block; flex: none; width: 1em; height: 1em;
    background: currentColor; mask: var(--smw-glyph, var(--icon-topic-info)) center / contain no-repeat;
}
.smw-single [data-field="species"] { --smw-glyph: var(--icon-moon); }
.smw-single [data-field="age"] { --smw-glyph: url("../smwanted/hourglass-half.svg"); }
.smw-single [data-field="avatar"] { --smw-glyph: var(--icon-avatar); }
.smw-single [data-field="pace"] { --smw-glyph: url("../smwanted/clock.svg"); }
.smw-single [data-field="scenes"] { --smw-glyph: var(--icon-folders); }
.smw-single [data-field="language"] { --smw-glyph: var(--icon-web); }
.smw-single [data-field="placement"] { --smw-glyph: var(--icon-user); }
.smw-single [data-field="discord"] { --smw-glyph: url("../smwanted/discord.svg"); }
.smw-single .smw-talk { --action-icon: var(--icon-message); }
.smw-single .smw-discuss { --action-icon: var(--icon-reply); }
.smw-single .smw-cards { display: block; }
.smw-single .smw-role-summary {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    padding: .65rem .8rem; border: 1px solid var(--paper-line); text-decoration: none;
}
.smw-single .smw-role-summary img { width: 3rem; height: 3.75rem; object-fit: cover; }
.smw-single .smw-role-summary small { display: block; }
.smw-single .smw-role-status { color: var(--paper-muted); font-size: .85rem; }
.smw-single .smw-role-summary .smw-actions { margin: 0 0 0 auto; }
.smw-single-role > blockquote { margin: .5rem 0; font-style: italic; }
.smw-single-role > blockquote:empty, .smw-single aside section:has(.smw-chips:empty),
.smw-single .smw-actions:empty { display: none; }

@container wanted-facts (max-width: 14em) {
    .smw-single aside .smw-detail { grid-template-columns: minmax(0,1fr); gap: .1em; }
    .smw-single aside .smw-detail strong { overflow-wrap: anywhere; }
}
@media (min-width: 45.01rem) and (max-width: 65rem) {
    .smw-single .smw-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
    .smw-topic.smw-single .smw-layout:not(:has(figure img, figure i:not(:empty), figcaption:not(:empty))) { grid-template-columns: 1fr; }
    .smw-single .smw-layout aside { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 45rem) {
    .smw-topic.smw-single .smw-layout { display: flex; flex-direction: column; align-items: stretch; }
    .smw-single .smw-layout figure { margin: 0; }
    .smw-single .smw-cover:has(img) { min-height: clamp(12rem, 52vw, 21rem); }
    .smw-single .smw-cover:not(:has(img)) > div:has(i:not(:empty)) { min-height: 0; }
    .smw-single figcaption:not(:empty) { padding: .6rem 1rem; }
    .smw-single .smw-heading { display: block; }
    .smw-single .smw-heading blockquote { margin: .65rem 0; padding: 0; }
    .smw-single .smw-layout aside { grid-template-columns: 1fr; }
}
