/* ── Report triggers (trust bar + discussion) ── */
.entry-trust__report,
.entry-comments__report {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.entry-trust__report:hover,
.entry-comments__report:hover {
    color: var(--color-primary-hover);
}

.entry-comments__report {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.entry-comments__report:hover {
    text-decoration: underline;
}

/* ── Modal shell ── */
body.ts-report-open {
    overflow: hidden;
}

.ts-report[hidden] {
    display: none !important;
}

.ts-report {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ts-report__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 30, 27, 0.55);
    backdrop-filter: blur(4px);
}

.ts-report__dialog {
    position: relative;
    width: min(100%, 32rem);
    max-height: min(92vh, 44rem);
    overflow: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg, 0 18px 48px rgba(0, 0, 0, 0.18));
}

.ts-report__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--color-divider);
}

.ts-report__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-text);
}

.ts-report__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    cursor: pointer;
}

.ts-report__close:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
}

/* ── Form fields ── */
.ts-report__form {
    position: relative;
    padding: 1rem 1.15rem 1.15rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ts-report__intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.ts-report__source {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.ts-report__source-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.ts-report__source-title {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--color-text);
}

.ts-report__source-url {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-primary);
    word-break: break-all;
    text-decoration: none;
}

.ts-report__source-url:hover {
    text-decoration: underline;
}

.ts-report__source-meta {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-family: var(--font-mono, ui-monospace, monospace);
    color: var(--color-text-muted);
    opacity: 0.85;
}

.ts-report__grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 36rem) {
    .ts-report__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ts-report__field {
    margin-bottom: 0.85rem;
}

.ts-report__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-text);
}

.ts-report__required {
    color: #c0392b;
}

.ts-report__optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

.ts-report__field input,
.ts-report__field select,
.ts-report__field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    font: inherit;
    font-size: 0.92rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.ts-report__field input:focus,
.ts-report__field select:focus,
.ts-report__field textarea:focus {
    outline: 2px solid rgba(63, 184, 164, 0.35);
    border-color: var(--color-primary);
}

.ts-report__field textarea {
    resize: vertical;
    min-height: 6.5rem;
}

/* ── Google email verification ── */
.ts-report__google-hint {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.ts-report__google-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ts-report__google-btn {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    overflow: hidden;
}

.ts-report__google-btn > div {
    width: 100% !important;
    max-width: 100% !important;
}

.ts-report__google-btn iframe {
    margin: 0 !important;
    max-width: 100% !important;
}

.ts-report__email-verified {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.75rem;
    background: rgba(30, 122, 76, 0.08);
    border: 1px solid rgba(30, 122, 76, 0.28);
    border-radius: var(--radius-sm);
}

.ts-report__email-verified[hidden],
.ts-report__google-btn[hidden] {
    display: none !important;
}

.ts-report__email-verified .fa-check-circle {
    color: #1e7a4c;
}

.ts-report__email-display {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    word-break: break-all;
}

.ts-report__email-change {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
}

.ts-report__form:not(.is-google-verified) .ts-report__btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ts-report__field--honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ts-report__status {
    min-height: 1.25rem;
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    color: var(--color-text-muted);
}

.ts-report__status.is-success {
    color: #1e7a4c;
}

.ts-report__status.is-error {
    color: #c0392b;
}

.ts-report__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.ts-report__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
}

.ts-report__btn--ghost {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

.ts-report__btn--ghost:hover {
    color: var(--color-text);
}

.ts-report__btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.ts-report__btn--primary:hover {
    background: var(--color-primary-hover);
}

.ts-report__btn--primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Contact page full form ── */
.article-shell--contact {
    padding: clamp(1rem, 3vw, 2.5rem);
    overflow-x: clip;
}

.article-shell--contact .entry-content {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.article-shell--contact .entry-content > p,
.article-shell--contact .entry-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ts-report-page {
    margin-top: 1.25rem;
    max-width: 100%;
    min-width: 0;
}

.ts-report-page > p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.ts-report__form--page {
    padding: 0;
}

.ts-report__form--page .ts-report__source--page {
    margin-bottom: 1.25rem;
}

.ts-report__form--page .ts-report__source-title,
.ts-report__form--page .ts-report__source-meta,
.ts-report__form--page .ts-report__source-url {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 35.99rem) {
    .ts-report__form--page .ts-report__grid {
        grid-template-columns: 1fr;
    }

    .ts-report__form--page .ts-report__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ts-report__form--page .ts-report__btn--primary {
        width: 100%;
        justify-content: center;
    }

    .ts-report__email-verified {
        flex-wrap: wrap;
    }

    .ts-report__email-change {
        margin-left: auto;
    }
}

.contact-report-notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.contact-report-notice--success {
    background: rgba(30, 122, 76, 0.1);
    border-color: rgba(30, 122, 76, 0.35);
    color: #1e7a4c;
}

.contact-report-notice--error {
    background: rgba(192, 57, 43, 0.08);
    border-color: rgba(192, 57, 43, 0.35);
    color: #c0392b;
}