@font-face {
    font-family: "Qna Display";
    src: url("../../../themes/light/fonts/Raleway/static/Raleway-ExtraBold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Qna Body";
    src: url("../../../themes/light/fonts/DMSans-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Qna Body";
    src: url("../../../themes/light/fonts/DM_Sans/DMSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

[x-cloak] { display: none !important; }

.qna-space {
    --qna-ink: #12283f;
    --qna-paper: #fbf7ed;
    --qna-white: #fffefa;
    --qna-board: #12665a;
    --qna-board-dark: #0b4b43;
    --qna-orange: #ff8a3d;
    --qna-yellow: #f7ce46;
    --qna-sky: #a8d8ea;
    --qna-red: #cf5848;
    --qna-line: rgba(18, 40, 63, .15);
    --qna-shadow: 0 22px 65px rgba(18, 40, 63, .12);
    min-height: calc(100vh - 76px);
    padding: clamp(18px, 3vw, 44px);
    color: var(--qna-ink);
    font-family: "Qna Body", sans-serif;
    background-color: var(--qna-paper);
    background-image:
        linear-gradient(rgba(18, 40, 63, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 40, 63, .035) 1px, transparent 1px),
        radial-gradient(circle at 92% 5%, rgba(255, 138, 61, .16), transparent 21rem),
        radial-gradient(circle at 10% 40%, rgba(18, 102, 90, .11), transparent 28rem);
    background-size: 25px 25px, 25px 25px, auto, auto;
}

.qna-space *, .qna-space *::before, .qna-space *::after { box-sizing: border-box; }
.qna-space h1, .qna-space h2, .qna-space h3, .qna-space h4 { margin-top: 0; color: inherit; font-family: "Qna Display", sans-serif; }
.qna-space button, .qna-space input, .qna-space select, .qna-space textarea { color: inherit; font: inherit; }
.qna-container { width: min(var(--container-site, 1150px), 100%); margin: 0 auto; padding-inline: var(--spacing-gutter, 1.5rem); }
.qna-muted { color: rgba(18, 40, 63, .62); }
.qna-kicker { display: block; margin-bottom: 9px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.qna-section-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 0 0 26px;
    padding: 5px;
    border: 1px solid var(--qna-line);
    border-radius: 16px;
    background: rgba(255, 254, 250, .82);
    box-shadow: 0 10px 28px rgba(18, 40, 63, .06);
    backdrop-filter: blur(12px);
}

.qna-section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 11px;
    color: rgba(18, 40, 63, .68);
    font-weight: 700;
    text-decoration: none;
}

.qna-section-nav a:hover, .qna-section-nav a.is-active { background: var(--qna-ink); color: #fff; }

.qna-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 19px;
    border: 2px solid var(--qna-ink);
    border-radius: 13px;
    background: var(--qna-ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 5px 5px 0 var(--qna-orange);
    transition: transform .18s ease, box-shadow .18s ease;
}

.qna-button:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--qna-orange); }
.qna-button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.qna-text-button { border: 0; background: transparent; font-weight: 700; }
.qna-text-button i { margin-left: 7px; transition: transform .18s ease; }
.qna-text-button:hover i { transform: translateX(5px); }

.qna-alert, .qna-success {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid rgba(207, 88, 72, .24);
    border-radius: 13px;
    background: #fff0eb;
    color: #943c30;
    font-weight: 700;
}

.qna-success { border-color: rgba(18, 102, 90, .25); background: #e8f7f2; color: var(--qna-board-dark); }
.qna-alert button { margin-left: auto; border: 0; background: transparent; font-size: 1.35rem; }

.qna-subject-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dff1ec;
    color: var(--qna-board-dark);
    font-size: .76rem;
    font-weight: 700;
}

.qna-status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; }
.qna-status-dot::before { width: 7px; height: 7px; border-radius: 50%; background: var(--qna-orange); content: ""; }
.qna-status-dot.is-answered::before { background: var(--qna-board); }
.qna-status-dot.is-closed::before { background: #82909a; }

.qna-author { display: inline-flex; align-items: center; gap: 9px; }
.qna-author img { width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; background: #e7ecee; object-fit: cover; box-shadow: 0 0 0 1px var(--qna-line); }
.qna-author strong, .qna-author small { display: block; line-height: 1.1; }
.qna-author strong { font-size: .86rem; }
.qna-author small { margin-top: 3px; color: var(--qna-board); font-size: .7rem; font-weight: 700; }

.qna-tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.qna-tag-row button, .qna-tag-row span { padding: 4px 8px; border: 0; border-radius: 7px; background: rgba(18, 40, 63, .06); color: rgba(18, 40, 63, .68); font-size: .76rem; }

.qna-question-skeleton {
    overflow: hidden;
    position: relative;
    height: 150px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(18, 40, 63, .07);
}
.qna-question-skeleton::after { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.7) 45%, transparent 75%); content: ""; animation: qna-shimmer 1.35s infinite; }

.qna-content { color: #24384b; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.qna-content p { margin: 0 0 1em; }
.qna-content h2, .qna-content h3, .qna-content h4 { margin: 1.2em 0 .55em; line-height: 1.2; }
.qna-content ul { margin: .8em 0 1.2em; padding-left: 1.3em; }
.qna-content blockquote { margin: 1.2em 0; padding: 13px 18px; border: 1px solid rgba(255, 138, 61, .42); border-radius: 10px; background: #fff3e7; }
.qna-content code { padding: 2px 6px; border-radius: 5px; background: #edf1f2; color: #a33627; font-size: .9em; }
.qna-content pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: var(--qna-ink); color: #e8f3f0; }
.qna-content pre code { padding: 0; background: transparent; color: inherit; }
.qna-content a { color: var(--qna-board); text-decoration-thickness: 2px; }
.qna-content .katex-display { overflow: auto hidden; padding: 10px 0; }

@keyframes qna-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes qna-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 680px) {
    .qna-space { padding: 15px 12px 90px; }
    .qna-section-nav { overflow-x: auto; width: 100%; }
    .qna-section-nav a { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .qna-space *, .qna-space *::before, .qna-space *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
