/**
 * Taylor Reader Circle styles.
 * Copyright (c) 2026 Matthew X Murphy, https://MatthewxMurphy.com.
 * Product: https://builtnotbegged.com. SPDX-License-Identifier: GPL-2.0-or-later
 * Scoped to the plugin root; the site's fonts, header and footer remain intact.
 */
#tq-reader-circle {
    --tqc-bg: #101014;
    --tqc-panel: #15111b;
    --tqc-field: #1c1623;
    --tqc-paper: #f7f6f8;
    --tqc-muted: #c7bed0;
    --tqc-purple: #a02af0;
    --tqc-lilac: #d0a1f4;
    --tqc-line: #4d3c5a;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 52px) 0 64px;
    color: var(--tqc-paper);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.65;
    overflow-wrap: anywhere;
    color-scheme: dark;
}
#tq-reader-circle *, #tq-reader-circle *::before, #tq-reader-circle *::after { box-sizing: border-box; }
#tq-reader-circle[data-area="admin"] { background: var(--tqc-bg); padding: clamp(20px, 4vw, 42px); margin-top: 24px; }
#tq-reader-circle .tq-circle-heading { max-width: 740px; margin-bottom: 32px; }
#tq-reader-circle .tq-circle-eyebrow { margin: 0 0 14px; color: var(--tqc-lilac); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
#tq-reader-circle .tq-circle-title { margin: 0 0 16px; color: var(--tqc-paper); font-family: Caveat, cursive; font-size: clamp(39px, 6.5vw, 68px); font-weight: 600; letter-spacing: -.025em; line-height: 1.13; }
#tq-reader-circle .tq-circle-intro { margin: 0; max-width: 650px; color: var(--tqc-muted); font-size: 16px; }
#tq-reader-circle .tq-circle-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 30px; border-bottom: 1px solid var(--tqc-line); margin-bottom: 22px; padding: 0 0 14px; }
#tq-reader-circle a { color: var(--tqc-lilac); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
#tq-reader-circle .tq-circle-nav a { color: var(--tqc-muted); font-size: 14px; font-weight: 650; text-decoration: none; padding: 7px 0; }
#tq-reader-circle .tq-circle-nav a[aria-current="page"] { color: var(--tqc-paper); border-bottom: 2px solid var(--tqc-purple); }
#tq-reader-circle .tq-circle-status { margin: 0 0 18px; min-height: 1px; color: var(--tqc-lilac); }
#tq-reader-circle .tq-circle-status:empty { margin-bottom: 0; }
#tq-reader-circle .tq-circle-status.is-error { color: #ffc0cc; border-left: 3px solid #e898af; padding: 9px 14px; background: #2b1420; }
#tq-reader-circle .tq-circle-panel { background: radial-gradient(ellipse at top right, rgba(139, 36, 195, .09), transparent 62%), var(--tqc-panel); padding: clamp(20px, 4vw, 34px); border: 1px solid var(--tqc-line); border-radius: 3px; margin: 26px 0; }
#tq-reader-circle h3, #tq-reader-circle h4 { color: var(--tqc-paper); font-family: Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; }
#tq-reader-circle h3 { font-size: clamp(20px, 3vw, 26px); margin: 0 0 10px; }
#tq-reader-circle h4 { font-size: 18px; margin: 0 0 8px; }
#tq-reader-circle p { margin: 0 0 14px; }
#tq-reader-circle .tq-circle-muted, #tq-reader-circle .tq-circle-meta, #tq-reader-circle .tq-circle-help { color: var(--tqc-muted); }
#tq-reader-circle .tq-circle-help { font-size: 13px; line-height: 1.65; max-width: 630px; }
#tq-reader-circle .tq-circle-meta { font-size: 13px; margin-bottom: 12px; }
#tq-reader-circle .tq-circle-auth-switches { display: flex; flex-wrap: wrap; gap: 12px 24px; border-bottom: 1px solid var(--tqc-line); margin: 22px 0; padding-bottom: 12px; }
#tq-reader-circle button { font-family: inherit; cursor: pointer; }
#tq-reader-circle .tq-circle-text-button { padding: 8px 0; border: 0; background: transparent; color: var(--tqc-lilac); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
#tq-reader-circle .tq-circle-auth-switches button[aria-pressed="true"] { color: var(--tqc-paper); text-decoration-color: var(--tqc-purple); text-decoration-thickness: 2px; }
#tq-reader-circle .tq-circle-form { display: grid; gap: 16px; max-width: 670px; margin-top: 24px; }
#tq-reader-circle .tq-circle-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
#tq-reader-circle label { color: var(--tqc-paper); font-size: 14px; font-weight: 600; }
#tq-reader-circle input, #tq-reader-circle textarea, #tq-reader-circle select { width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 12px 14px; border: 1px solid #705987; border-radius: 3px; color: var(--tqc-paper); background: var(--tqc-field); font-family: inherit; font-size: 16px; line-height: 1.5; }
#tq-reader-circle textarea { min-height: 130px; resize: vertical; }
#tq-reader-circle input[type="file"] { padding: 10px; }
#tq-reader-circle input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 12px; background: #392547; color: var(--tqc-paper); border: 1px solid #8b69a5; border-radius: 2px; font: inherit; cursor: pointer; }
#tq-reader-circle .tq-circle-button { width: fit-content; max-width: 100%; min-height: 44px; padding: 12px 23px; border: 1px solid transparent; border-radius: 3px; background: #8322c9; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.45; text-align: center; }
#tq-reader-circle .tq-circle-button:hover { background: #9529df; }
#tq-reader-circle .tq-circle-button.is-secondary { background: transparent; border-color: #ad69dd; color: var(--tqc-paper); }
#tq-reader-circle .tq-circle-button.is-secondary:hover { background: #2a1b34; }
#tq-reader-circle button:disabled { opacity: .65; cursor: wait; }
#tq-reader-circle :is(a, button, input, textarea, select):focus-visible { outline: 3px solid #e3bdfc; outline-offset: 4px; }
#tq-reader-circle .tq-circle-recovery { font-size: 14px; width: fit-content; }
#tq-reader-circle .tq-circle-account { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-bottom: 1px solid var(--tqc-line); padding: 8px 0 15px; margin-bottom: 24px; color: var(--tqc-muted); font-size: 14px; }
#tq-reader-circle .tq-circle-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
#tq-reader-circle .tq-circle-filter .tq-circle-field { min-width: min(280px, 100%); flex: 1 1 280px; max-width: 520px; }
#tq-reader-circle .tq-circle-list { border-top: 1px solid var(--tqc-line); }
#tq-reader-circle .tq-circle-card { padding: 24px 0; border-bottom: 1px solid var(--tqc-line); }
#tq-reader-circle .tq-circle-card h3 a { color: var(--tqc-paper); text-decoration: none; }
#tq-reader-circle .tq-circle-card h3 a:hover { color: var(--tqc-lilac); text-decoration: underline; }
#tq-reader-circle .tq-circle-decision { color: var(--tqc-lilac); font-size: 13px; font-weight: 650; }
#tq-reader-circle .tq-circle-pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin: 24px 0; }
#tq-reader-circle .tq-circle-pagination .tq-circle-meta { margin: 0; }
#tq-reader-circle .tq-circle-back { display: inline-block; padding: 8px 0; margin-bottom: 20px; font-size: 14px; }
#tq-reader-circle .tq-circle-article { border-bottom: 1px solid var(--tqc-line); padding-bottom: 30px; margin-bottom: 28px; }
#tq-reader-circle .tq-circle-article > h3 { font-size: clamp(25px, 4vw, 34px); }
#tq-reader-circle .tq-circle-content { color: #ddd5e5; }
#tq-reader-circle .tq-circle-content :is(h2, h3, h4) { margin-top: 24px; }
#tq-reader-circle .tq-circle-content > :last-child { margin-bottom: 0; }
#tq-reader-circle .tq-circle-content ul, #tq-reader-circle .tq-circle-content ol { padding-left: 24px; margin: 14px 0; }
#tq-reader-circle .tq-circle-content li { color: inherit; }
#tq-reader-circle .tq-circle-content blockquote { padding: 5px 0 5px 20px; margin: 20px 0; border-left: 3px solid #a85fe0; color: var(--tqc-muted); }
#tq-reader-circle .tq-circle-content pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #0d0b10; border: 1px solid var(--tqc-line); }
#tq-reader-circle .tq-circle-reply { border-top: 1px solid var(--tqc-line); padding: 20px 0; }
#tq-reader-circle .tq-circle-review-form { padding: 20px; background: #1c1623; border-left: 2px solid #a85fe0; }
#tq-reader-circle .tq-circle-review-form textarea { min-height: 85px; }
#tq-reader-circle .tq-circle-proof-link { display: inline-block; margin: 10px 0; }
#tq-reader-circle .tq-circle-proof-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 20px; border: 1px solid #a85fe0; border-radius: 3px; background: var(--tqc-bg); color: var(--tqc-paper); }
#tq-reader-circle .tq-circle-proof-dialog::backdrop { background: rgba(0, 0, 0, .8); }
#tq-reader-circle .tq-circle-proof-dialog > button { margin-bottom: 18px; }
#tq-reader-circle .tq-circle-proof-image { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
@media (max-width: 540px) {
    #tq-reader-circle .tq-circle-nav { gap: 5px 20px; }
    #tq-reader-circle .tq-circle-panel { padding: 20px 16px; }
    #tq-reader-circle .tq-circle-form { gap: 17px; }
    #tq-reader-circle .tq-circle-button { width: 100%; }
    #tq-reader-circle .tq-circle-filter .tq-circle-field { max-width: none; }
    #tq-reader-circle .tq-circle-filter { gap: 14px; }
    #tq-reader-circle .tq-circle-review-form { padding: 15px; }
    #tq-reader-circle .tq-circle-pagination .tq-circle-button { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    #tq-reader-circle * { scroll-behavior: auto; }
}
