/* Detail experience for one community quotation. */

.quote-detail-page {
    --qd-ink: #252a2f;
    --qd-muted: #77818a;
    --qd-charcoal: #202428;
    --qd-blue: #2e6f95;
    --qd-blue-deep: #1d4963;
    --qd-blue-soft: #e8f2f8;
    --qd-red: #b51e2a;
    --qd-red-soft: #f8e8ea;
    --qd-paper: #ffffff;
    --qd-surface: #f6f8fa;
    --qd-line: rgba(32, 36, 40, 0.12);
    --qd-shadow: 0 1.2rem 3rem rgba(32, 36, 40, 0.11);
    display: grid;
    gap: 1rem;
    padding-bottom: 2rem;
    color: var(--qd-ink);
}

.quote-detail-page *,
.quote-detail-page *::before,
.quote-detail-page *::after {
    box-sizing: border-box;
}

.quote-detail-page [hidden] {
    display: none !important;
}

.quote-detail-page svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quote-detail-messages {
    display: grid;
    gap: 0.5rem;
}

.quote-detail-messages .alert {
    margin: 0;
    border-radius: 0.9rem;
}

.quote-detail-breadcrumb {
    min-height: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--qd-muted);
    font-size: 0.8rem;
}

.quote-detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    color: var(--qd-blue-deep);
    font-weight: 700;
    text-decoration: none;
}

.quote-detail-breadcrumb a:hover,
.quote-detail-breadcrumb a:focus-visible {
    color: var(--qd-red);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.quote-detail-breadcrumb svg {
    width: 0.95rem;
    height: 0.95rem;
}

.quote-detail-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
    align-items: start;
    gap: clamp(1.1rem, 2.4vw, 1.75rem);
}

.quote-detail-main,
.quote-detail-sidebar {
    min-width: 0;
}

.quote-detail-main {
    display: grid;
    gap: 1.15rem;
}

.quote-detail-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at 91% 6%, rgba(181, 30, 42, 0.32), transparent 16rem),
        radial-gradient(circle at 4% 96%, rgba(78, 142, 174, 0.24), transparent 17rem),
        linear-gradient(135deg, #202428 0%, #283a47 58%, #245a78 100%);
    color: #ffffff;
    box-shadow: 0 1.6rem 4rem rgba(32, 36, 40, 0.22);
}

.quote-detail-card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
    content: "";
    pointer-events: none;
}

.quote-detail-card__glow {
    position: absolute;
    top: -8rem;
    right: -6rem;
    width: 20rem;
    height: 20rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 3rem rgba(255, 255, 255, 0.025),
        0 0 0 6rem rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.quote-detail-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 1.55rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
}

.quote-detail-label {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.quote-detail-label::before {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #d74a55;
    box-shadow: 0 0 0 0.25rem rgba(181, 30, 42, 0.18);
    content: "";
}

.quote-detail-card__content-wrap {
    position: relative;
    min-height: clamp(19rem, 42vw, 31rem);
    display: grid;
    align-content: center;
    padding: clamp(2rem, 6vw, 4.8rem) clamp(1.15rem, 5vw, 4rem);
}

.quote-detail-card__mark {
    position: absolute;
    top: 0.65rem;
    left: clamp(0.9rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.09);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 18vw, 14rem);
    line-height: 1;
    pointer-events: none;
}

.quote-detail-card__quote {
    position: relative;
    z-index: 1;
    max-width: 29ch;
    margin: 0 auto;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4.4vw, 3.15rem);
    font-weight: 520;
    letter-spacing: -0.025em;
    line-height: 1.38;
    text-align: center;
    text-wrap: balance;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.quote-detail-edit-form {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.8rem;
    width: min(100%, 48rem);
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--qd-ink);
    box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.18);
}

.quote-detail-edit-form label {
    font-size: 0.8rem;
    font-weight: 800;
}

.quote-detail-edit-form textarea {
    width: 100%;
    min-height: 12rem;
    resize: vertical;
    padding: 0.9rem;
    border: 1px solid #d6dee5;
    border-radius: 0.8rem;
    background: #ffffff;
    color: var(--qd-ink);
    font: inherit;
    line-height: 1.6;
}

.quote-detail-edit-form textarea:focus {
    border-color: rgba(46, 111, 149, 0.7);
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(46, 111, 149, 0.13);
}

.quote-detail-edit-form__meta,
.quote-detail-edit-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.quote-detail-edit-form__meta {
    color: var(--qd-muted);
    font-size: 0.72rem;
}

.quote-detail-edit-form__actions {
    justify-content: flex-end;
}

.quote-detail-edit-form [data-quote-edit-status] {
    min-height: 1.2rem;
    margin: 0;
    color: var(--qd-red);
    font-size: 0.75rem;
}

.quote-detail-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 1.55rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.08);
}

.quote-detail-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.78rem;
}

.quote-detail-author__avatar,
.quote-author-card__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 1rem;
    text-decoration: none;
}

.quote-detail-author__avatar {
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 850;
}

.quote-detail-author__avatar img,
.quote-author-card__avatar img,
.quote-comment__avatar img,
.quote-latest-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-detail-author > div:last-child {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}

.quote-detail-author span,
.quote-detail-author small {
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.7rem;
}

.quote-detail-author a:not(.quote-detail-author__avatar) {
    overflow: hidden;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-detail-author a:hover,
.quote-detail-author a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.quote-detail-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.quote-detail-metrics > span {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.7rem;
}

.quote-detail-metrics svg {
    width: 0.9rem;
    height: 0.9rem;
}

.quote-detail-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem clamp(1rem, 3vw, 1.55rem) 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-detail-actions form {
    margin: 0;
}

.quote-detail-action-button,
.quote-detail-primary-button,
.quote-detail-secondary-button,
.quote-comment-submit,
.quote-author-follow-button {
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border-radius: 0.76rem;
    font-size: 0.78rem;
    font-weight: 760;
    text-decoration: none;
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.quote-detail-action-button {
    padding: 0.52rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9) !important;
}

.quote-detail-action-button svg,
.quote-detail-primary-button svg {
    width: 1rem;
    height: 1rem;
}

.quote-detail-action-button:hover,
.quote-detail-action-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    outline: 0;
    transform: translateY(-1px);
}

.quote-detail-action-button.is-owner {
    border-color: rgba(117, 189, 227, 0.3);
    background: rgba(78, 142, 174, 0.17);
}

.quote-detail-action-button.is-danger {
    border-color: rgba(255, 154, 164, 0.25);
    background: rgba(181, 30, 42, 0.18);
    color: #ffe6e8 !important;
}

.quote-detail-action-button.is-danger:hover,
.quote-detail-action-button.is-danger:focus-visible {
    background: rgba(181, 30, 42, 0.32);
}

.quote-detail-copy-status {
    flex: 1 1 100%;
    min-height: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.7rem;
}

.quote-detail-moderation-note {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(181, 30, 42, 0.12);
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.72rem;
}

.quote-detail-moderation-note svg {
    width: 1rem;
    height: 1rem;
    color: #ffb8be;
}

.quote-detail-primary-button {
    padding: 0.58rem 0.88rem;
    border: 1px solid #245a78;
    background: linear-gradient(135deg, #397fa6, #245a78);
    color: #ffffff !important;
    box-shadow: 0 0.5rem 1.1rem rgba(46, 111, 149, 0.2);
}

.quote-detail-primary-button:hover,
.quote-detail-primary-button:focus-visible,
.quote-comment-submit:hover,
.quote-comment-submit:focus-visible {
    border-color: var(--qd-blue-deep);
    background: var(--qd-blue-deep);
    color: #ffffff !important;
    outline: 0;
    transform: translateY(-1px);
}

.quote-detail-secondary-button {
    padding: 0.58rem 0.82rem;
    border: 1px solid #d5dce2;
    background: #ffffff;
    color: var(--qd-ink);
}

.quote-detail-secondary-button:hover,
.quote-detail-secondary-button:focus-visible {
    border-color: rgba(46, 111, 149, 0.35);
    background: var(--qd-blue-soft);
    color: var(--qd-blue-deep);
    outline: 0;
}

.quote-detail-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.quote-detail-nav-card {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--qd-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--qd-ink);
    text-decoration: none;
    box-shadow: 0 0.55rem 1.3rem rgba(32, 36, 40, 0.05);
}

.quote-detail-nav-card.is-next {
    text-align: right;
}

.quote-detail-nav-card span {
    color: var(--qd-blue);
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quote-detail-nav-card strong {
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.quote-detail-nav-card:hover,
.quote-detail-nav-card:focus-visible {
    border-color: rgba(46, 111, 149, 0.36);
    background: #ffffff;
    color: var(--qd-blue-deep);
    outline: 0;
    transform: translateY(-1px);
}

.quote-detail-sidebar {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.9rem;
}

.quote-author-card,
.quote-related-card,
.quote-comments {
    border: 1px solid var(--qd-line);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.85rem 2rem rgba(32, 36, 40, 0.07);
}

.quote-author-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.quote-author-card__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quote-author-card__avatar {
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(46, 111, 149, 0.2);
    background: linear-gradient(145deg, var(--qd-blue-soft), #ffffff);
    color: var(--qd-blue-deep);
    font-size: 1.35rem;
    font-weight: 850;
    box-shadow: 0 0.5rem 1.2rem rgba(46, 111, 149, 0.1);
}

.quote-author-card__top > div:last-child {
    min-width: 0;
}

.quote-detail-eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--qd-blue);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quote-author-card h2,
.quote-related-card h2,
.quote-detail-screening-card h2,
.quote-comments h2 {
    margin: 0;
    color: var(--qd-ink);
    font-size: 1rem;
    font-weight: 820;
    letter-spacing: -0.015em;
}

.quote-author-card h2 a {
    color: inherit;
    text-decoration: none;
}

.quote-author-card h2 a:hover,
.quote-author-card h2 a:focus-visible {
    color: var(--qd-blue-deep);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.quote-author-card__top p {
    margin: 0.12rem 0 0;
    color: var(--qd-muted);
    font-size: 0.74rem;
}

.quote-author-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.quote-author-card__stats div {
    display: grid;
    gap: 0.08rem;
    padding: 0.6rem;
    border-radius: 0.78rem;
    background: var(--qd-surface);
    text-align: center;
}

.quote-author-card__stats dt {
    color: var(--qd-ink);
    font-weight: 850;
}

.quote-author-card__stats dd {
    margin: 0;
    color: var(--qd-muted);
    font-size: 0.68rem;
}

.quote-author-follow-button {
    width: 100%;
    padding: 0.58rem 0.82rem;
    border: 1px solid rgba(46, 111, 149, 0.35);
    background: var(--qd-blue-soft);
    color: var(--qd-blue-deep);
}

.quote-author-follow-button:hover,
.quote-author-follow-button:focus-visible {
    border-color: var(--qd-blue);
    background: var(--qd-blue);
    color: #ffffff;
    outline: 0;
    transform: translateY(-1px);
}

.quote-author-follow-button.is-following {
    border-color: var(--qd-line);
    background: #ffffff;
    color: var(--qd-muted);
}

.quote-detail-screening-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 1.1rem;
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 100% 0, rgba(181, 30, 42, 0.18), transparent 9rem),
        linear-gradient(145deg, #edf5f9, #ffffff);
    box-shadow: 0 0.85rem 2rem rgba(32, 36, 40, 0.07);
}

.quote-detail-screening-card__mark {
    position: absolute;
    top: -1.2rem;
    right: -0.2rem;
    z-index: -1;
    color: rgba(46, 111, 149, 0.08);
    font-size: 8rem;
    line-height: 1;
}

.quote-detail-screening-card p {
    margin: 0.55rem 0 0.8rem;
    color: #59646d;
    font-size: 0.77rem;
    line-height: 1.6;
}

.quote-detail-screening-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--qd-blue-deep);
    font-size: 0.76rem;
    font-weight: 820;
    text-decoration: none;
}

.quote-detail-screening-card a:hover,
.quote-detail-screening-card a:focus-visible {
    color: var(--qd-red);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.quote-related-card {
    padding: 1rem;
}

.quote-sidebar-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}

.quote-sidebar-heading > a {
    color: var(--qd-blue);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
}

.quote-sidebar-heading > a:hover,
.quote-sidebar-heading > a:focus-visible {
    color: var(--qd-red);
    text-decoration: underline;
}

.quote-related-list,
.quote-latest-post-list {
    display: grid;
    gap: 0.5rem;
}

.quote-related-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.68rem;
    border-radius: 0.78rem;
    background: var(--qd-surface);
    color: var(--qd-ink);
    text-decoration: none;
}

.quote-related-item > span {
    color: var(--qd-blue);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 0.8;
}

.quote-related-item p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 0.78rem;
    line-height: 1.45;
}

.quote-related-item small {
    display: block;
    margin-top: 0.2rem;
    color: var(--qd-muted);
    font-size: 0.65rem;
}

.quote-related-item:hover,
.quote-related-item:focus-visible {
    background: var(--qd-blue-soft);
    color: var(--qd-blue-deep);
    outline: 0;
}

.quote-latest-post {
    min-width: 0;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.62rem;
}

.quote-latest-post__media {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 0.72rem;
    background: var(--qd-blue-soft);
}

.quote-latest-post__media.is-placeholder {
    color: var(--qd-blue-deep);
    font-weight: 850;
}

.quote-latest-post h3 {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.4;
}

.quote-latest-post h3 a {
    color: var(--qd-ink);
    text-decoration: none;
}

.quote-latest-post h3 a:hover,
.quote-latest-post h3 a:focus-visible {
    color: var(--qd-blue-deep);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.quote-latest-post time {
    display: block;
    margin-top: 0.2rem;
    color: var(--qd-muted);
    font-size: 0.64rem;
}

/* Comments */
.quote-comments {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2.6vw, 1.4rem);
}

.quote-comments__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.quote-comments__heading p {
    max-width: 48rem;
    margin: 0.35rem 0 0;
    color: var(--qd-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.quote-comments__count {
    flex: 0 0 auto;
    padding: 0.36rem 0.62rem;
    border: 1px solid var(--qd-line);
    border-radius: 999px;
    background: var(--qd-surface);
    color: var(--qd-muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.quote-comment-composer {
    padding: 0.85rem;
    border: 1px solid rgba(46, 111, 149, 0.14);
    border-radius: 0.95rem;
    background: linear-gradient(145deg, #f4f8fb, #ffffff);
}

.quote-comment-composer form,
.quote-comment-reply form {
    display: grid;
    gap: 0.55rem;
}

.quote-comment-composer label,
.quote-comment-reply label {
    color: var(--qd-ink);
    font-size: 0.76rem;
    font-weight: 800;
}

.quote-comment-textarea,
.quote-comment-reply textarea {
    width: 100%;
    resize: vertical;
    padding: 0.78rem;
    border: 1px solid #d6dee5;
    border-radius: 0.78rem;
    background: #ffffff;
    color: var(--qd-ink);
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.6;
}

.quote-comment-textarea:focus,
.quote-comment-reply textarea:focus {
    border-color: rgba(46, 111, 149, 0.7);
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(46, 111, 149, 0.12);
}

.quote-comment-form__meta,
.quote-comment-form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.quote-comment-form__meta {
    color: var(--qd-muted);
    font-size: 0.67rem;
}

.quote-comment-form__actions {
    justify-content: flex-end;
}

.quote-comment-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.quote-comment-login strong {
    color: var(--qd-ink);
    font-size: 0.85rem;
}

.quote-comment-login p {
    margin: 0.2rem 0 0;
    color: var(--qd-muted);
    font-size: 0.73rem;
}

.quote-comment-list {
    display: grid;
    gap: 0.8rem;
}

.quote-comment {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    content-visibility: auto;
    contain-intrinsic-size: 8rem;
}

.quote-comment--root {
    padding: 0.85rem;
    border: 1px solid var(--qd-line);
    border-radius: 0.95rem;
    background: #ffffff;
}

.quote-comment__avatar {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(46, 111, 149, 0.18);
    border-radius: 0.8rem;
    background: var(--qd-blue-soft);
    color: var(--qd-blue-deep);
    font-size: 0.76rem;
    font-weight: 850;
}

.quote-comment--reply .quote-comment__avatar {
    width: 2.35rem;
    height: 2.35rem;
}

.quote-comment--nested .quote-comment__avatar {
    width: 2.1rem;
    height: 2.1rem;
}

.quote-comment__body {
    min-width: 0;
}

.quote-comment__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.7rem;
}

.quote-comment__header > div {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.45rem;
}

.quote-comment__author {
    color: var(--qd-ink);
    font-size: 0.77rem;
    font-weight: 820;
    text-decoration: none;
}

.quote-comment__author:hover,
.quote-comment__author:focus-visible {
    color: var(--qd-blue-deep);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.quote-comment__author-badge {
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    background: var(--qd-blue-soft);
    color: var(--qd-blue-deep);
    font-size: 0.58rem;
    font-weight: 800;
}

.quote-comment__header time {
    color: var(--qd-muted);
    font-size: 0.64rem;
}

.quote-comment__delete {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--qd-muted);
}

.quote-comment__delete svg {
    width: 0.9rem;
    height: 0.9rem;
}

.quote-comment__delete:hover,
.quote-comment__delete:focus-visible {
    background: var(--qd-red-soft);
    color: var(--qd-red);
    outline: 0;
}

.quote-comment__content {
    margin-top: 0.42rem;
    color: #3b4248;
    font-size: 0.81rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.quote-comment-reply {
    margin-top: 0.45rem;
}

.quote-comment-reply summary {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0;
    color: var(--qd-blue);
    font-size: 0.69rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.quote-comment-reply summary::-webkit-details-marker {
    display: none;
}

.quote-comment-reply summary svg {
    width: 0.86rem;
    height: 0.86rem;
}

.quote-comment-reply summary:hover,
.quote-comment-reply summary:focus-visible {
    color: var(--qd-red);
    outline: 0;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.quote-comment-reply form {
    margin-top: 0.5rem;
    padding: 0.7rem;
    border-radius: 0.8rem;
    background: var(--qd-surface);
}

.quote-comment-reply > p {
    margin: 0.45rem 0 0;
    color: var(--qd-muted);
    font-size: 0.7rem;
}

.quote-comment-submit {
    width: max-content;
    min-height: 2.35rem;
    padding: 0.48rem 0.72rem;
    border: 1px solid var(--qd-blue);
    background: var(--qd-blue);
    color: #ffffff;
}

.quote-comment-children {
    position: relative;
    display: grid;
    gap: 0.7rem;
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(46, 111, 149, 0.16);
}

.quote-comment--reply {
    padding: 0.65rem;
    border-radius: 0.8rem;
    background: var(--qd-surface);
}

.quote-comment-children--nested {
    margin-left: 0.3rem;
    border-left-color: rgba(181, 30, 42, 0.15);
}

.quote-comment--nested {
    padding: 0.55rem;
    border-radius: 0.72rem;
    background: #ffffff;
}

.quote-comments-empty {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    border-radius: 0.9rem;
    background: var(--qd-surface);
    text-align: center;
}

.quote-comments-empty > span {
    color: rgba(46, 111, 149, 0.25);
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 0.8;
}

.quote-comments-empty h3 {
    margin: 0.3rem 0 0;
    font-size: 0.92rem;
}

.quote-comments-empty p {
    margin: 0.3rem 0 0;
    color: var(--qd-muted);
    font-size: 0.73rem;
}

@media (max-width: 991.98px) {
    .quote-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote-author-card,
    .quote-detail-screening-card {
        min-height: 100%;
    }

    .quote-related-card {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .quote-detail-card__footer,
    .quote-comments__heading,
    .quote-comment-login {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-detail-card__footer {
        display: flex;
    }

    .quote-detail-metrics {
        justify-content: flex-start;
    }

    .quote-detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-detail-navigation {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-detail-nav-card.is-next {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .quote-detail-page {
        margin-inline: -0.25rem;
    }

    .quote-detail-card {
        border-radius: 1.1rem;
    }

    .quote-detail-card__content-wrap {
        min-height: 20rem;
        padding: 2.6rem 1rem;
    }

    .quote-detail-card__quote {
        font-size: clamp(1.45rem, 8vw, 2rem);
    }

    .quote-detail-card__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .quote-detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote-detail-actions form,
    .quote-detail-action-button {
        width: 100%;
    }

    .quote-detail-copy-status,
    .quote-detail-moderation-note {
        grid-column: 1 / -1;
    }

    .quote-detail-edit-form__actions,
    .quote-comment-form__meta {
        align-items: stretch;
        flex-direction: column;
    }

    .quote-detail-edit-form__actions > *,
    .quote-detail-primary-button {
        width: 100%;
    }

    .quote-comments {
        padding: 0.85rem;
    }

    .quote-comment--root {
        padding: 0.7rem;
    }

    .quote-comment-children {
        padding-left: 0.6rem;
    }
}

@media (forced-colors: active) {
    .quote-detail-card,
    .quote-author-card,
    .quote-detail-screening-card,
    .quote-related-card,
    .quote-comments,
    .quote-comment--root,
    .quote-comment--reply,
    .quote-comment--nested,
    .quote-detail-action-button,
    .quote-detail-primary-button,
    .quote-detail-secondary-button {
        border: 1px solid CanvasText;
        forced-color-adjust: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-detail-page *,
    .quote-detail-page *::before,
    .quote-detail-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media print {
    .quote-detail-breadcrumb,
    .quote-detail-actions,
    .quote-detail-navigation,
    .quote-detail-sidebar,
    .quote-comments,
    .panji-navbar,
    .panji-footer,
    .panji-floating-action {
        display: none !important;
    }

    .quote-detail-layout {
        display: block;
    }

    .quote-detail-card {
        border: 1px solid #333;
        background: #ffffff !important;
        color: #111111 !important;
        box-shadow: none;
    }

    .quote-detail-card__quote,
    .quote-detail-author a,
    .quote-detail-author span,
    .quote-detail-author small,
    .quote-detail-metrics > span {
        color: #111111 !important;
        -webkit-text-fill-color: #111111;
    }
}
