#content > .wrapper:has(.smw-group) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-inline: clamp(.5rem, 1vw, 1.25rem);
}
.smw-topic.smw-group {
    --paper-line: light-dark(#d8d1c6, var(--line, #464e59));
    --muted: light-dark(#695d51, var(--ink, #d9dfe8));
    color: light-dark(#2d2823, var(--ink, #f1f3f6));
    background: light-dark(#f6f3ed, var(--surface, #20242a));
    margin: .75rem 0 1.25rem;
    padding: clamp(.6rem, .9vw, 1.1rem);
    text-align: start;
}
.smw-group .smw-layout {
    grid-template-columns: minmax(0, 17fr) minmax(0, 61fr) minmax(0, 18fr);
    gap: clamp(.85rem, 1.35vw, 1.8rem);
    align-items: start;
}
.smw-group .smw-layout figure { max-width: none; max-height: max(38rem, 85vh); align-self: stretch; }
.smw-group .smw-cover { min-height: 22rem; flex: 1; background: #302b25; }
.smw-group .smw-cover img { object-position: center 32%; }
.smw-group .smw-cover > div, .smw-group .smw-cover:not(:has(img)) > div:not(:empty) {
    padding: clamp(1rem, 1.5vw, 2rem); color: #f7f2e8; text-align: center;
}
.smw-group .smw-cover img + div { padding-block-start: 5rem; background: linear-gradient(transparent, #211c16ed); }
.smw-group .smw-cover:not(:has(img)) {
    grid-template-rows: 1fr auto;
    outline: 1px solid #71675a; outline-offset: -.55rem;
    background: linear-gradient(150deg, #403a32, #26231f);
}
.smw-group .smw-cover:not(:has(img))::before {
    content: ""; place-self: center; width: clamp(2.75rem, 5vw, 5rem); aspect-ratio: 1;
    background: #b5a896; mask: var(--icon-members) center / contain no-repeat;
}
.smw-group .smw-cover:not(:has(img)) > div:not(:empty) { grid-area: 2 / 1; background: transparent; }
.smw-group .smw-cover small { margin-block-start: .4rem; color: #e8ded0; }
.smw-group .smw-cover small:empty { display: none; }

.smw-group .smw-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 26%);
    grid-template-areas: "title quote" "story quote" "roles roles";
    column-gap: clamp(.8rem, 1.35vw, 1.6rem);
}
.smw-group .smw-body:not(:has(.smw-heading blockquote)) {
    grid-template-columns: 1fr; grid-template-areas: "title" "story" "roles";
}
.smw-topic.smw-group .smw-heading { display: contents; }
.smw-group .smw-heading > div { grid-area: title; }
.smw-group .smw-heading small { color: var(--muted); }
.smw-group .smw-heading .smw-chips { margin: .4rem 0; }
.smw-group .smw-heading .smw-chip { border-radius: 0; }
.smw-group .smw-heading h1 { margin: .18em 0 .1em; font-size: clamp(1.9rem, 3.1vw, 4.3rem); }
.smw-group .smw-heading p { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.55rem); }
.smw-group .smw-heading p:not(:empty)::after {
    content: ""; display: block; width: 2rem; margin-top: .6rem; border-top: 1px solid currentColor;
}
.smw-group .smw-heading blockquote {
    grid-area: quote; align-self: start; margin: .25rem 0 0;
    padding: clamp(.85rem, 1.4vw, 1.55rem); border: 0; border-radius: 0;
    background: light-dark(#eae5dd, var(--subtle, #292e36)); color: light-dark(#4d433a, var(--ink, #f1f3f6)); font-size: clamp(1rem, 1.25vw, 1.35rem); line-height: 1.45;
}
.smw-group .smw-heading cite { margin-top: 1rem; padding-top: .5rem; font-size: .8em; font-style: normal; }
.smw-group .smw-heading cite:empty { display: none; }
.smw-group .smw-story { grid-area: story; max-width: 84ch; line-height: 1.55; margin: .85rem 0 0; }
.smw-group #smwanted-cards { grid-area: roles; min-width: 0; margin-top: 1.2rem; }
.smw-group .smw-roles-heading { flex-wrap: wrap; }
.smw-group .smw-roles-heading small { color: var(--muted); }
.smw-group #smwanted-cards > strong { font-size: .87em; font-weight: 400; color: var(--muted); }
.smw-group .smw-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8.4rem, (100% - 2rem) / 5)), 1fr));
    gap: .5rem;
}
.smw-group .smw-card {
    display: flex; flex-direction: column; padding: 0; border: 1px solid var(--paper-line);
    background: light-dark(#f3f0ea, var(--subtle, #292e36)); font-size: .94rem; line-height: 1.4;
}
.smw-group .smw-card .smw-state { padding: .38em; font-size: .76em; letter-spacing: .14em; }
.smw-group .smw-role-link { display: block; color: inherit; text-decoration: none; }
.smw-group .smw-role-link:hover strong, .smw-group .smw-role-link:focus-visible strong { text-decoration: underline; }
.smw-group .smw-portrait {
    display: grid; place-items: center; aspect-ratio: 4 / 3; background: light-dark(#e2dbd0, var(--control, #67717e));
}
.smw-group .smw-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.smw-group .smw-portrait:not(:has(img))::before {
    content: ""; width: 28%; aspect-ratio: 1; background: #8d8072; mask: var(--icon-user) center / contain no-repeat;
}
.smw-group .smw-role-link strong { padding: .55rem .6rem 0; letter-spacing: .055em; }
.smw-group .smw-card > :is(.smw-designation, a:not(.smw-role-link), .smw-role-facts, .smw-chips) { margin-inline: .6rem; }
.smw-group .smw-card .smw-designation { color: var(--muted); }
.smw-group .smw-card blockquote {
    margin: .55rem .6rem; padding: 0; border: 0; background: none; font: italic .95em/1.4 Georgia, serif;
}
.smw-group .smw-card .smw-role-facts { margin-top: auto; padding-top: .65rem; }
.smw-group .smw-card .smw-detail {
    display: grid; grid-template-columns: 1em minmax(0, 1fr); align-items: baseline;
    column-gap: .45em; margin: .45em 0; font-size: .88em;
}
.smw-group .smw-card .smw-detail strong { color: var(--muted); letter-spacing: .045em; }
.smw-group .smw-card .smw-detail > div { grid-column: 2; }
.smw-group .smw-card .smw-detail::before, .smw-group aside .smw-detail strong::before,
.smw-group #smwanted-cards > strong::before {
    content: ""; display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.1em;
    background: currentColor; mask: var(--smw-icon, var(--icon-topic-info)) center / contain no-repeat;
}
.smw-group [data-field="age"] { --smw-icon: url("../smwanted/hourglass-half.svg"); }
.smw-group [data-field="species"] { --smw-icon: var(--icon-moon); }
.smw-group [data-field="avatar"] { --smw-icon: var(--icon-avatar); }
.smw-group [data-field="discord"] { --smw-icon: url("../smwanted/discord.svg"); }
.smw-group [data-field="contact"] { --smw-icon: var(--icon-message); }
.smw-group .smw-card .smw-chips { padding-block: .45rem .65rem; }
.smw-group #smwanted-cards > strong::before { --smw-icon: var(--icon-members); margin-inline-end: .4rem; }
.smw-group .smw-talk { --action-icon: var(--icon-message); }
.smw-group .smw-discuss { --action-icon: var(--icon-reply); }
.smw-group .smw-layout aside { display: grid; align-content: start; gap: .7rem; padding: 0; }
.smw-group aside section { margin: 0; min-width: 0; }
.smw-group aside h3 { padding: .55rem .75rem; }
.smw-group .smw-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.smw-group .author_avatar { float: none; padding: 0; }
.smw-group .author_avatar img { width: 2.9rem; height: 2.9rem; object-fit: cover; }
.smw-group aside dl { grid-template-columns: 1fr 1fr; }
.smw-group aside :is(dt, dd) { border-top: 1px solid var(--paper-line); padding-block: .3em; }
.smw-group aside .smw-detail strong::before { margin-inline-end: .35em; }
.smw-group aside .smw-detail > div { margin-block-start: .15rem; }
.smw-group .smw-card blockquote:empty, .smw-group .smw-card .smw-chips:empty,
.smw-group aside section:has(.smw-chips:empty), .smw-group .smw-actions:empty { display: none; }

body:has(.smw-group) .smw-thread-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.smw-save:not([hidden]) { list-style: none; margin: 0; padding: 0; }
.smw-save a {
    display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .75rem;
    border: 1px solid var(--control); color: var(--accent); background: var(--surface);
    font: 600 .9rem/1.4 var(--font-body); text-decoration: none;
}
.smw-save a::before {
    content: ""; width: 1em; height: 1em; background: currentColor; mask: var(--icon-subscription) center / contain no-repeat;
}
.smw-save a:hover { background: var(--tint); }
@media (min-width: 44.01rem) and (max-width: 65rem) {
    .smw-group .smw-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 3.8fr); }
    .smw-topic.smw-group .smw-layout:not(:has(figure img, figure i:not(:empty), figure strong:not(:empty), figure small:not(:empty), figcaption:not(:empty))) { grid-template-columns: 1fr; }
    .smw-group .smw-layout aside { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
    .smw-topic.smw-group .smw-layout { display: flex; flex-direction: column; align-items: stretch; }
    .smw-group .smw-cover, .smw-group .smw-cover:has(img) { min-height: clamp(11rem, 46vw, 19rem); }
    .smw-group .smw-cover:not(:has(img)) { min-height: 0; grid-template: auto / auto 1fr; align-items: center; padding: .85rem; }
    .smw-group .smw-cover:not(:has(img)) > div:not(:empty) { grid-area: 1 / 2; padding: .5rem; }
    .smw-group .smw-body { display: block; }
    .smw-group .smw-heading blockquote { max-width: none; margin-top: .8rem; }
    .smw-group .smw-layout aside { grid-template-columns: 1fr; }
}
