
/* =========================================================
   ASKSPHERE - SHARED FRONTEND APP LAYOUT
   Applies only to the AskSphere dashboard and ask page.
========================================================= */

.as-dash,
.as-dash * {
    box-sizing: border-box;
}

body.page-ask,
body.page-dashboard {
    margin-top: 0 !important;
    background: #f5f7fb !important;
}

/* Hide WordPress admin bar and its spacing on these pages only */
body.page-ask #wpadminbar,
body.page-dashboard #wpadminbar {
    display: none !important;
}

html:has(body.page-ask),
html:has(body.page-dashboard) {
    margin-top: 0 !important;
}

/* Hide common theme headers */
body.page-ask #masthead,
body.page-dashboard #masthead,
body.page-ask .site-header,
body.page-dashboard .site-header,
body.page-ask header.site-header,
body.page-dashboard header.site-header,
body.page-ask .elementor-location-header,
body.page-dashboard .elementor-location-header,
body.page-ask .wp-site-blocks > header,
body.page-dashboard .wp-site-blocks > header {
    display: none !important;
}

/* Hide common theme footers */
body.page-ask #colophon,
body.page-dashboard #colophon,
body.page-ask .site-footer,
body.page-dashboard .site-footer,
body.page-ask footer.site-footer,
body.page-dashboard footer.site-footer,
body.page-ask .elementor-location-footer,
body.page-dashboard .elementor-location-footer,
body.page-ask .wp-site-blocks > footer,
body.page-dashboard .wp-site-blocks > footer {
    display: none !important;
}

/* Remove theme spacing around the app pages */
body.page-ask #page,
body.page-dashboard #page,
body.page-ask .site,
body.page-dashboard .site,
body.page-ask .site-content,
body.page-dashboard .site-content,
body.page-ask #content,
body.page-dashboard #content,
body.page-ask main.site-main,
body.page-dashboard main.site-main,
body.page-ask .content-area,
body.page-dashboard .content-area,
body.page-ask .entry-content,
body.page-dashboard .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Remove page title wrappers from the theme */
body.page-ask .entry-header,
body.page-dashboard .entry-header,
body.page-ask .page-header,
body.page-dashboard .page-header {
    display: none !important;
}

/* =========================================================
   FULL WIDTH APP SHELL
========================================================= */

.as-dash {
    --as-primary: #5758dc;
    --as-primary-dark: #4546c8;
    --as-text: #192238;
    --as-muted: #788397;
    --as-border: #e8ecf3;

    position: relative !important;
    left: 50% !important;

    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;

    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;

    margin: 0 0 0 -50vw !important;
    padding: 0 !important;

    overflow: visible !important;
    background: #f5f7fb !important;
    color: var(--as-text) !important;
    font-family: inherit;
    text-align: left;
}

/* =========================================================
   SIDEBAR
========================================================= */

.as-dash__sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;

    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;

    width: 260px !important;
    max-width: 260px !important;
    height: 100vh !important;
    min-height: 600px !important;

    margin: 0 !important;
    padding: 25px 17px 20px !important;

    border: 0 !important;
    border-right: 1px solid var(--as-border) !important;
    border-radius: 0 !important;

    background: #fff !important;
    box-shadow: none !important;

    overflow-x: hidden;
    overflow-y: auto;
}

.as-dash__brand {
    display: block !important;
    margin: 0 0 28px !important;
    padding: 0 7px !important;
}

.as-dash__brand a {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;

    color: #192238 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.as-dash__brand-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;

    border-radius: 11px !important;
    background: var(--as-primary) !important;
    color: #fff !important;

    font-size: 19px !important;
    font-weight: 800 !important;
}

.as-dash__user {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;

    width: 100% !important;
    min-width: 0;
    margin: 0 0 27px !important;
    padding: 13px 10px !important;

    border: 1px solid #edf0f6 !important;
    border-radius: 12px !important;
    background: #fafbfe !important;
}

.as-dash__user img {
    display: block !important;
    flex: 0 0 44px !important;

    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;

    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.as-dash__user-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;

    min-width: 0;
    overflow: hidden;
}

.as-dash__user-info strong {
    display: block !important;
    margin: 0 !important;

    color: #202b40 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
}

.as-dash__user-info span {
    display: block !important;

    color: #8791a3 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
}

.as-dash__nav-heading {
    display: block !important;
    margin: 0 0 11px !important;
    padding: 0 11px !important;

    color: #a0a8b7 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .13em !important;
    line-height: 1.5 !important;
}

.as-dash__nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
}

.as-dash__nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: transparent !important;
    color: #647087 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;

    box-shadow: none !important;
    transition: background .2s ease, color .2s ease !important;
}

.as-dash__nav-link:hover {
    background: #f4f5ff !important;
    color: var(--as-primary) !important;
    text-decoration: none !important;
}

.as-dash__nav-link.is-active {
    background: #eeeeff !important;
    color: var(--as-primary) !important;
    font-weight: 750 !important;
}

.as-dash__nav-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 25px !important;
    width: 25px !important;
    height: 25px !important;

    margin: 0 !important;
    border-radius: 7px !important;

    background: #f1f3f7 !important;
    color: #748096 !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.as-dash__nav-link.is-active .as-dash__nav-icon {
    background: #dedfff !important;
    color: var(--as-primary) !important;
}

.as-dash__nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

.as-dash__sidebar-bottom {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    width: 100%;
    margin-top: auto !important;
    padding-top: 25px !important;
}

.as-dash__ask-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    width: 100% !important;
    min-height: 45px !important;
    padding: 10px 12px !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: var(--as-primary) !important;
    color: #fff !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;

    box-shadow: 0 5px 14px rgba(87, 88, 220, .17) !important;
    transition: background .2s ease, transform .2s ease !important;
}

.as-dash__ask-button:hover {
    background: var(--as-primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.as-dash__ask-button span {
    font-size: 19px !important;
    line-height: 1 !important;
}

.as-dash__logout {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;

    width: 100% !important;
    min-height: 42px !important;
    padding: 9px 12px !important;

    border-radius: 9px !important;
    background: transparent !important;
    color: #8791a3 !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.as-dash__logout:hover {
    background: #fff2f2 !important;
    color: #c33e4b !important;
}

/* =========================================================
   MAIN CONTENT AND TOPBAR
========================================================= */

.as-dash__main {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: #f5f7fb !important;
    box-shadow: none !important;
}

.as-dash__topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;

    width: 100% !important;
    min-height: 88px !important;

    margin: 0 !important;
    padding: 17px 38px !important;

    border: 0 !important;
    border-bottom: 1px solid var(--as-border) !important;
    border-radius: 0 !important;

    background: #fff !important;
    box-shadow: none !important;
}

.as-dash__topbar-title > span {
    display: block;
    margin-bottom: 5px;

    color: #9aa3b2 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
}

.as-dash__topbar-title h1 {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--as-text) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.as-dash__topbar-user {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.as-dash__topbar-user-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    text-align: right !important;
}

.as-dash__topbar-user-text strong {
    color: #30394d !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

.as-dash__topbar-user-text span {
    color: #929bad !important;
    font-size: 10px !important;
}

.as-dash__top-avatar {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.as-dash__content {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 auto !important;
    padding: 34px 38px 55px !important;
}

/* =========================================================
   DASHBOARD HEADINGS AND BUTTONS
========================================================= */

.as-dash__welcome,
.as-dash__page-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;

    margin: 0 0 26px !important;
}

.as-dash__eyebrow {
    display: block;
    margin: 0 0 8px;

    color: var(--as-primary) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .13em !important;
}

.as-dash__welcome h2,
.as-dash__page-heading h2 {
    margin: 0 0 8px !important;

    color: var(--as-text) !important;
    font-size: clamp(22px, 3vw, 28px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.as-dash__welcome p,
.as-dash__page-heading p {
    margin: 0 !important;
    color: var(--as-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.as-dash__primary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    flex: 0 0 auto;
    min-height: 43px !important;
    padding: 0 17px !important;

    border: 0 !important;
    border-radius: 9px !important;
    background: var(--as-primary) !important;
    color: #fff !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;

    box-shadow: 0 5px 14px rgba(87, 88, 220, .16) !important;
}

.as-dash__primary-button:hover {
    background: var(--as-primary-dark) !important;
    color: #fff !important;
}

.as-dash__primary-button span {
    font-size: 17px !important;
}

/* =========================================================
   STAT CARDS
========================================================= */

.as-dash__stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 17px !important;

    width: 100%;
    margin: 0 0 24px !important;
}

.as-dash__stat-card {
    display: flex !important;
    flex-direction: column !important;

    min-width: 0;
    min-height: 145px;
    padding: 19px 20px !important;

    border: 1px solid var(--as-border) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(20, 35, 65, .025) !important;
}

.as-dash__stat-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    width: 100%;
    margin-bottom: 14px;
}

.as-dash__stat-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 33px !important;
    height: 33px !important;
    border-radius: 9px !important;

    font-size: 16px !important;
    font-weight: 800 !important;
}

.as-dash__stat-icon--purple {
    background: #eeeeff !important;
    color: #5758dc !important;
}

.as-dash__stat-icon--green {
    background: #e8f8ef !important;
    color: #26965e !important;
}

.as-dash__stat-icon--orange {
    background: #fff4e5 !important;
    color: #d68b24 !important;
}

.as-dash__stat-icon--red {
    background: #fff0f0 !important;
    color: #d64e5a !important;
}

.as-dash__stat-caption {
    color: #9aa3b2 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
}

.as-dash__stat-card > strong {
    display: block;
    margin: 0 0 4px !important;

    color: #202b40 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
}

.as-dash__stat-description {
    color: #929bad !important;
    font-size: 10px !important;
}

/* =========================================================
   DASHBOARD PANELS AND RECENT QUESTIONS
========================================================= */

.as-dash__overview-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr) !important;
    align-items: start !important;
    gap: 19px !important;
}

.as-dash__panel,
.as-dash__content .as-card {
    min-width: 0;
    padding: 23px !important;

    border: 1px solid var(--as-border) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(20, 35, 65, .025) !important;
}

.as-dash__panel-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    margin: 0 0 19px !important;
    padding: 0 0 16px !important;

    border-bottom: 1px solid #edf0f5 !important;
}

.as-dash__panel-heading h3,
.as-dash__account-panel h3 {
    margin: 0 0 5px !important;
    color: #273249 !important;
    font-size: 15px !important;
    font-weight: 750 !important;
}

.as-dash__panel-heading p,
.as-dash__account-panel > p {
    margin: 0 !important;
    color: #929bad !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
}

.as-dash__panel-heading > a,
.as-dash__account-link {
    color: var(--as-primary) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.as-dash__recent-list {
    display: flex !important;
    flex-direction: column !important;
}

.as-dash__recent-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    min-width: 0;
    padding: 13px 0 !important;

    border-bottom: 1px solid #f0f2f6 !important;
}

.as-dash__recent-item:last-child {
    border-bottom: 0 !important;
}

.as-dash__recent-question-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;

    border-radius: 9px !important;
    background: #f0f0ff !important;
    color: var(--as-primary) !important;
    font-size: 15px !important;
}

.as-dash__recent-info {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 0;
}

.as-dash__recent-info strong {
    color: #30394d !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}

.as-dash__recent-info strong a {
    color: inherit !important;
    text-decoration: none !important;
}

.as-dash__recent-info > span {
    color: #9aa3b2 !important;
    font-size: 10px !important;
}

.as-dash__status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto;
    width: fit-content;
    min-height: 25px;
    padding: 5px 9px !important;

    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.as-dash__status--success {
    background: #e8f7ef !important;
    color: #16794b !important;
}

.as-dash__status--pending {
    background: #fff5d9 !important;
    color: #946200 !important;
}

.as-dash__status--rejected {
    background: #fff0f1 !important;
    color: #b42332 !important;
}

.as-dash__email-status,
.as-dash__account-detail {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    padding: 13px 0 !important;
    border-bottom: 1px solid #f0f2f6 !important;
}

.as-dash__email-status > span,
.as-dash__account-detail > span {
    color: #8791a3 !important;
    font-size: 11px !important;
}

.as-dash__email-status > strong,
.as-dash__account-detail > strong {
    max-width: 60%;
    color: #30394d !important;
    font-size: 11px !important;
    text-align: right;
    overflow-wrap: anywhere;
}

.as-dash__verified {
    color: #218451 !important;
}

.as-dash__unverified {
    color: #c58a25 !important;
}

/* Empty states */
.as-dash__empty,
.as-dash__empty-questions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 200px;
    padding: 25px 15px !important;
    text-align: center !important;
}

.as-dash__empty-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    height: 42px !important;
    margin-bottom: 12px !important;

    border-radius: 12px !important;
    background: #eeeeff !important;
    color: var(--as-primary) !important;
    font-size: 20px !important;
}

.as-dash__empty strong {
    color: #30394d !important;
    font-size: 13px !important;
}

.as-dash__empty p {
    margin: 7px 0 12px !important;
    color: var(--as-muted) !important;
    font-size: 11px !important;
}

.as-dash__empty a {
    color: var(--as-primary) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* =========================================================
   MY QUESTIONS
========================================================= */

.as-dash__question-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;

    width: 100%;
    margin-top: 20px !important;
}

.as-dash__question-card {
    display: block !important;
    width: 100% !important;
    min-width: 0;

    margin: 0 !important;
    padding: 22px 24px !important;

    border: 1px solid var(--as-border) !important;
    border-radius: 13px !important;
    background: #fff !important;

    box-shadow: 0 3px 12px rgba(20, 35, 65, .025) !important;
    overflow-wrap: anywhere;
}

.as-dash__question-card-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;

    margin-bottom: 13px !important;
}

.as-dash__question-date {
    color: #929bad !important;
    font-size: 11px !important;
}

.as-dash__question-title {
    margin: 0 0 9px !important;
    color: #202b40 !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
}

.as-dash__question-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.as-dash__question-description {
    margin: 0 0 13px !important;
    color: #69768b !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
}

.as-dash__question-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 18px !important;

    color: #929bad !important;
    font-size: 10px !important;
}

.as-dash__rejection {
    margin-top: 16px !important;
    padding: 13px 15px !important;

    border: 1px solid #ffd9dd !important;
    border-left: 3px solid #dc5966 !important;
    border-radius: 8px !important;

    background: #fff5f5 !important;
    color: #9f2633 !important;

    font-size: 12px !important;
    line-height: 1.65 !important;
}

.as-dash__rejection strong {
    display: block;
    margin-bottom: 4px !important;
    color: #8f1d2a !important;
}

.as-dash__rejection p {
    margin: 0 !important;
}

/* Profile */
.as-dash__profile-card {
    max-width: 700px;
}

.as-dash__profile-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;

    padding: 15px 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
}

.as-dash__profile-row:last-child {
    border-bottom: 0 !important;
}

.as-dash__profile-row span {
    color: var(--as-muted) !important;
    font-size: 12px !important;
}

.as-dash__profile-row strong {
    color: var(--as-text) !important;
    font-size: 12px !important;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Pagination */
.as-dash__content .as-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
}

.as-dash__content .as-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.as-dash__content .as-pagination a,
.as-dash__content .as-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    min-height: 35px;
    padding: 7px 11px;

    border: 1px solid var(--as-border);
    border-radius: 7px;
    background: #fff;
    color: #59657a;
    font-size: 11px;
    text-decoration: none;
}

.as-dash__content .as-pagination .current {
    border-color: var(--as-primary);
    background: var(--as-primary);
    color: #fff;
}

/* =========================================================
   ASK PAGE INSIDE THE SHARED DASHBOARD
========================================================= */

/* The original questions.css styles remain in use.
   These overrides adapt the form to the dashboard content. */

.as-dash__content .as-ask-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.as-dash__content .as-ask-page__top {
    margin-top: 0 !important;
}

.as-dash__content .as-ask-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 290px !important;
    align-items: start !important;
    gap: 22px !important;
    width: 100% !important;
}

.as-dash__content .as-ask-main {
    min-width: 0 !important;
    width: 100% !important;
}

.as-dash__content .as-ask__form {
    width: 100% !important;
    max-width: none !important;
}

.as-dash__content .as-ask-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.as-dash__content .as-ask-side-card {
    width: 100% !important;
    min-width: 0 !important;
}

.as-dash__content .as-ask-page .as-ad-slot {
    width: 100% !important;
}

.as-dash__content .as-ask-page .as-alert {
    width: 100% !important;
}

/* Prevent theme form styles from distorting AskSphere controls */
.as-dash__content .as-ask__form input[type="text"],
.as-dash__content .as-ask__form textarea,
.as-dash__content .as-ask__form select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.as-dash__content .as-ask__form .as-field {
    display: block !important;
    width: 100% !important;
}

.as-dash__content .as-ask__form button[type="submit"] {
    width: auto !important;
    max-width: 100% !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .as-dash {
        grid-template-columns: 230px minmax(0, 1fr) !important;
    }

    .as-dash__sidebar {
        width: 230px !important;
        max-width: 230px !important;
        padding-right: 13px !important;
        padding-left: 13px !important;
    }

    .as-dash__content {
        padding: 28px 25px 45px !important;
    }

    .as-dash__topbar {
        padding-right: 25px !important;
        padding-left: 25px !important;
    }

    .as-dash__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .as-dash__overview-grid {
        grid-template-columns: 1fr !important;
    }

    .as-dash__content .as-ask-layout {
        grid-template-columns: minmax(0, 1fr) 250px !important;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .as-dash {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
    }

    .as-dash__sidebar {
        position: relative !important;
        top: auto !important;
        left: auto !important;

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;

        padding: 15px 15px 12px !important;

        border-right: 0 !important;
        border-bottom: 1px solid var(--as-border) !important;

        overflow: visible !important;
    }

    .as-dash__brand {
        margin: 0 0 13px !important;
    }

    .as-dash__brand a {
        font-size: 18px !important;
    }

    .as-dash__brand-icon {
        width: 33px !important;
        height: 33px !important;
        flex-basis: 33px !important;
    }

    .as-dash__user {
        margin-bottom: 13px !important;
        padding: 9px !important;
    }

    .as-dash__user img {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    .as-dash__nav-heading {
        margin-bottom: 8px !important;
    }

    .as-dash__nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    .as-dash__nav-link {
        min-height: 40px !important;
        padding: 0 8px !important;
        gap: 7px !important;
        font-size: 11px !important;
    }

    .as-dash__nav-icon {
        flex-basis: 21px !important;
        width: 21px !important;
        height: 21px !important;
        font-size: 13px !important;
    }

    .as-dash__sidebar-bottom {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 12px !important;
        padding-top: 0 !important;
    }

    .as-dash__ask-button,
    .as-dash__logout {
        min-height: 39px !important;
        font-size: 11px !important;
    }

    .as-dash__main {
        min-height: 0 !important;
    }

    .as-dash__topbar {
        min-height: 68px !important;
        padding: 13px 16px !important;
    }

    .as-dash__topbar-title h1 {
        font-size: 17px !important;
    }

    .as-dash__topbar-user-text {
        display: none !important;
    }

    .as-dash__top-avatar {
        width: 34px !important;
        height: 34px !important;
    }

    .as-dash__content {
        padding: 22px 15px 35px !important;
    }

    .as-dash__welcome,
    .as-dash__page-heading {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .as-dash__welcome h2,
    .as-dash__page-heading h2 {
        font-size: 22px !important;
    }

    .as-dash__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .as-dash__stat-card {
        min-height: 125px;
        padding: 14px !important;
    }

    .as-dash__stat-card > strong {
        font-size: 23px !important;
    }

    .as-dash__overview-grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    .as-dash__panel {
        padding: 17px !important;
    }

    .as-dash__question-card {
        padding: 17px !important;
    }

    .as-dash__question-title {
        font-size: 15px !important;
    }

    /* Ask page mobile layout */
    .as-dash__content .as-ask-page__top {
        display: block !important;
        margin-bottom: 22px !important;
    }

    .as-dash__content .as-ask-page__top-note {
        margin-top: 16px !important;
    }

    .as-dash__content .as-ask-layout {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .as-dash__content .as-ask__form {
        padding: 22px 18px !important;
        border-radius: 14px !important;
    }

    .as-dash__content .as-ask__form-footer {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .as-dash__content .as-ask__form-footer .as-btn {
        width: 100% !important;
    }

    .as-dash__content .as-ad-slot--sidebar {
        min-height: 120px !important;
    }
}

@media (max-width: 380px) {

    .as-dash__nav {
        grid-template-columns: 1fr !important;
    }

    .as-dash__stats {
        grid-template-columns: 1fr !important;
    }

    .as-dash__sidebar-bottom {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   ASKSPHERE - COMPLETE /ASK/ PAGE FIX
   Targets only the Ask page inside the shared dashboard shell.
========================================================= */

body.page-ask .as-dash {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    width: 100vw !important;
    min-height: 100vh !important;
}

body.page-ask .as-dash__content {
    width: 100% !important;
    max-width: 1450px !important;
    margin: 0 auto !important;
    padding: 34px 38px 55px !important;
}

/* Ask page wrapper */
body.page-ask .as-ask-page {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Ask page heading */
body.page-ask .as-ask-page__top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 0 25px !important;
}

/* Main content and right sidebar */
body.page-ask .as-ask-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 290px !important;
    align-items: start !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.page-ask .as-ask-main {
    width: 100% !important;
    min-width: 0 !important;
}

body.page-ask .as-ask-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Form card */
body.page-ask .as-ask__form {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px !important;
    border: 1px solid #e8ecf3 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 3px 15px rgba(20, 35, 65, .035) !important;
}

/* Form fields */
body.page-ask .as-ask__form .as-field {
    display: block !important;
    width: 100% !important;
    margin: 0 0 22px !important;
}

body.page-ask .as-ask__form label {
    display: block !important;
    margin: 0 0 9px !important;
    color: #30394d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.page-ask .as-ask__form input[type="text"],
body.page-ask .as-ask__form textarea,
body.page-ask .as-ask__form select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #dfe4ed !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #192238 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.page-ask .as-ask__form textarea {
    min-height: 190px !important;
    resize: vertical !important;
}

body.page-ask .as-ask__form input:focus,
body.page-ask .as-ask__form textarea:focus,
body.page-ask .as-ask__form select:focus {
    outline: none !important;
    border-color: #5758dc !important;
    box-shadow: 0 0 0 3px rgba(87, 88, 220, .10) !important;
}

/* Submit button */
body.page-ask .as-ask__form button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #5758dc !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

body.page-ask .as-ask__form button[type="submit"]:hover {
    background: #4546c8 !important;
}

/* Tips and information cards */
body.page-ask .as-ask-side-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 21px !important;
    border: 1px solid #e8ecf3 !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(20, 35, 65, .025) !important;
}

/* Alerts and advertising slots */
body.page-ask .as-alert,
body.page-ask .as-ad-slot {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.page-ask .as-ad-slot {
    overflow: hidden !important;
}

/* Tablet */
@media (max-width: 1100px) {
    body.page-ask .as-dash {
        grid-template-columns: 230px minmax(0, 1fr) !important;
    }

    body.page-ask .as-dash__content {
        padding: 28px 25px 45px !important;
    }

    body.page-ask .as-ask-layout {
        grid-template-columns: minmax(0, 1fr) 250px !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    body.page-ask .as-dash {
        display: flex !important;
        flex-direction: column !important;
    }

    body.page-ask .as-dash__content {
        width: 100% !important;
        padding: 22px 15px 35px !important;
    }

    body.page-ask .as-ask-page__top {
        display: block !important;
        margin-bottom: 20px !important;
    }

    body.page-ask .as-ask-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    body.page-ask .as-ask__form {
        padding: 22px 18px !important;
    }

    body.page-ask .as-ask__form textarea {
        min-height: 160px !important;
    }

    body.page-ask .as-ask__form button[type="submit"] {
        width: 100% !important;
    }
}


/* =========================================================
   ASKSPHERE - ASK QUESTION PAGE
   Styles for the HTML inside .as-ask-page
========================================================= */

.as-ask-page,
.as-ask-page * {
    box-sizing: border-box;
}

.as-ask-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #172033;
}

/* Page heading */
.as-ask-page__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.as-ask-page__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #6258d9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.as-ask-page__top h1 {
    margin: 0 0 9px;
    color: #172033;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.as-ask-page__top p {
    margin: 0;
    color: #778197;
    font-size: 14px;
    line-height: 1.7;
}

.as-ask-page__top-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 13px 17px;
    color: #5148bd;
    background: #f0efff;
    border: 1px solid #e5e3ff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.as-ask-page__top-note-icon {
    font-size: 19px;
    color: #7166e8;
}

/* Main two-column layout */
.as-ask-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 24px;
}

.as-ask-main {
    min-width: 0;
}

/* Question form */
.as-ask__form {
    width: 100%;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(25, 35, 60, 0.035);
}

.as-ask__form-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f5;
}

.as-ask__step {
    display: inline-block;
    margin-bottom: 10px;
    color: #655bd7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.as-ask__form-heading h2 {
    margin: 0 0 8px;
    color: #182238;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.35;
}

.as-ask__form-heading p {
    margin: 0;
    color: #8590a3;
    font-size: 13px;
    line-height: 1.7;
}

/* Form fields */
.as-field {
    display: block;
    width: 100%;
    margin-bottom: 23px;
}

.as-field__label {
    display: block;
    margin-bottom: 10px;
    color: #273249;
    font-size: 13px;
    font-weight: 700;
}

.as-required {
    color: #e05268;
}

.as-ask__form input[type="text"],
.as-ask__form textarea,
.as-ask__form select {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 13px 15px;
    color: #263249;
    background: #fbfcfe;
    border: 1px solid #e1e6ef;
    border-radius: 9px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease;
}

.as-ask__form input[type="text"] {
    min-height: 49px;
}

.as-ask__form textarea {
    min-height: 190px;
    resize: vertical;
}

.as-ask__form select {
    min-height: 49px;
    cursor: pointer;
}

.as-ask__form input[type="text"]:focus,
.as-ask__form textarea:focus,
.as-ask__form select:focus {
    background: #ffffff;
    border-color: #7166e8;
    box-shadow: 0 0 0 3px rgba(113, 102, 232, 0.10);
}

.as-ask__form input::placeholder,
.as-ask__form textarea::placeholder {
    color: #a4adbd;
    opacity: 1;
}

.as-field__help {
    display: block;
    margin-top: 8px;
    color: #929bad;
    font-size: 11px;
    line-height: 1.6;
}

/* Form footer */
.as-ask__form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}

.as-ask__form-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #7d8799;
    font-size: 11px;
    line-height: 1.6;
}

.as-ask__form-footer p img.emoji {
    width: 15px;
    height: 15px;
    vertical-align: middle;
}

/* Submit button */
.as-ask__form .as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 47px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease;
}

.as-ask__form .as-btn--primary {
    color: #ffffff;
    background: #6258d9;
    box-shadow: 0 5px 13px rgba(98, 88, 217, 0.18);
}

.as-ask__form .as-btn--primary:hover {
    color: #ffffff;
    background: #5046c2;
    box-shadow: 0 7px 17px rgba(98, 88, 217, 0.24);
    transform: translateY(-2px);
}

.as-ask__form .as-btn--primary span {
    font-size: 17px;
    line-height: 1;
}

/* Sidebar */
.as-ask-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.as-ask-side-card {
    padding: 23px;
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 15px;
    box-shadow: 0 5px 22px rgba(25, 35, 60, 0.035);
}

.as-ask-side-card h3 {
    margin: 0 0 13px;
    color: #202b41;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

.as-ask-side-card p {
    margin: 0;
    color: #7c879a;
    font-size: 12px;
    line-height: 1.8;
}

/* Tips card */
.as-ask-side-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    margin-bottom: 16px;
    color: #655bd7;
    background: #f0efff;
    border-radius: 10px;
    font-size: 20px;
}

.as-ask-tips ul {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.as-ask-tips ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.as-ask-tips ul li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #655bd7;
    background: #f1f0ff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.as-ask-tips ul li div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding-top: 1px;
}

.as-ask-tips ul li strong {
    color: #303b50;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.as-ask-tips ul li small {
    color: #8a94a6;
    font-size: 11px;
    line-height: 1.65;
}

/* Guidelines */
.as-ask-guidelines {
    background: #f8f8ff;
    border-color: #e9e7ff;
}

.as-ask-guidelines h3 {
    color: #4f49a8;
}

.as-ask-guidelines p {
    color: #747b98;
}

/* Advertisement slots */
.as-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 110px;
    padding: 20px;
    color: #a0a8b7;
    background: #fafbfc;
    border: 1px dashed #d9dfeb;
    border-radius: 12px;
    text-align: center;
}

.as-ad-slot > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.as-ad-slot small {
    color: #aab2c0;
    font-size: 10px;
}

.as-ad-slot--below-form {
    margin-top: 20px;
    min-height: 100px;
}

.as-ad-slot--sidebar {
    min-height: 250px;
}

/* Alerts */
.as-ask-page .as-alert {
    margin-bottom: 20px;
    padding: 14px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.6;
}

.as-ask-page .as-alert--success {
    color: #18764d;
    background: #effaf4;
    border-color: #ccefdc;
}

.as-ask-page .as-alert--error {
    color: #b43b4c;
    background: #fff2f3;
    border-color: #f5d3d8;
}

/* Tablet */
@media (max-width: 1000px) {
    .as-ask-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 18px;
    }

    .as-ask__form {
        padding: 24px;
    }

    .as-ask-side-card {
        padding: 19px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .as-ask-page__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 22px;
    }

    .as-ask-page__top h1 {
        font-size: 27px;
    }

    .as-ask-page__top-note {
        padding: 10px 13px;
    }

    .as-ask-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .as-ask__form {
        padding: 20px 16px;
        border-radius: 13px;
    }

    .as-ask__form-heading h2 {
        font-size: 19px;
    }

    .as-ask__form-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .as-ask__form .as-btn {
        width: 100%;
    }

    .as-ask-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .as-ad-slot--sidebar {
        min-height: 150px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .as-ask-page__top h1 {
        font-size: 24px;
    }

    .as-ask__form {
        padding: 17px 13px;
    }

    .as-ask-side-card {
        padding: 18px;
    }
}
.page-id-9 header, .page-id-9 footer, .page-id-10 header, .page-id-10 footer {
    display:none;
}

.page-id-9 .as-main, .page-id-10 .as-main{
    padding: 0px;
}





/* =========================================================================
   Single Question Page
   ========================================================================= */

.as-q-single {
    max-width: 820px;
    margin: 24px auto 64px;
    padding: 0 22px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #172033;
}

/* Preview badge (for pending / rejected author preview) */
.as-q-single__preview {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff5d6;
    border: 1px solid #f5e0a3;
    color: #8c5c00;
    font-size: 13px;
    font-weight: 600;
}

/* Topics */
.as-q-single__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.as-q-single__topic {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #eef2ff;
    color: #315cf5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
.as-q-single__topic:hover {
    background: #dfe6ff;
    color: #2547c9;
}

/* Title */
.as-q-single__title {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

/* Author meta */
.as-q-single__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 0 22px;
    margin: 0 0 22px;
    border-bottom: 1px solid #e8ecf3;
}
.as-q-single__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.as-q-single__avatar {
    border-radius: 50%;
    flex-shrink: 0;
}
.as-q-single__author strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.as-q-single__author small {
    display: block;
    margin-top: 2px;
    color: #7a8699;
    font-size: 12px;
}

/* Body (rendered question description) */
.as-q-single__body {
    margin: 0 0 36px;
    color: #1e293b;
    font-size: 15.5px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.as-q-single__body p { margin: 0 0 16px; }
.as-q-single__body p:last-child { margin-bottom: 0; }
.as-q-single__body ul,
.as-q-single__body ol { margin: 0 0 16px; padding-left: 22px; }
.as-q-single__body blockquote {
    margin: 0 0 16px;
    padding: 12px 18px;
    border-left: 3px solid #315cf5;
    background: #f7f9ff;
    color: #334155;
    border-radius: 0 8px 8px 0;
}
.as-q-single__body code {
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: .9em;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.as-q-single__body pre {
    margin: 0 0 16px;
    padding: 14px 18px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}
.as-q-single__body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.as-q-single__body a {
    color: #315cf5;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.as-q-single__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
}

/* Answers section */
.as-q-single__answers {
    margin: 40px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid #e8ecf3;
}
.as-q-single__answers-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.as-q-single__answers-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    background: #eef2ff;
    color: #315cf5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.as-q-single__answers-empty {
    padding: 32px 24px;
    background: #f8fafc;
    border: 1px dashed #d8dfeb;
    border-radius: 14px;
    text-align: center;
    color: #7a8699;
    font-size: 14px;
}
.as-q-single__answers-empty p { margin: 0; }

.as-q-single__admin-links {
    margin: 20px 0 0;
    font-size: 13px;
}
.as-q-single__admin-links a {
    color: #315cf5;
    text-decoration: none;
}
.as-q-single__admin-links a:hover { text-decoration: underline; }

/* Topic archive */
.as-topic-archive {
    max-width: 820px;
    margin: 32px auto 64px;
    padding: 0 22px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #172033;
}
.as-topic-archive__head {
    margin-bottom: 28px;
}
.as-topic-archive__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #315cf5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.as-topic-archive__title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.as-topic-archive__desc {
    margin: 0;
    color: #7a8699;
    font-size: 14px;
    line-height: 1.6;
}
.as-topic-archive__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.as-topic-archive__item {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.as-topic-archive__item:hover {
    border-color: #d8dfeb;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -12px rgba(15,23,42,.2);
}
.as-topic-archive__item-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}
.as-topic-archive__item-title a {
    color: #0f172a;
    text-decoration: none;
}
.as-topic-archive__item-title a:hover {
    color: #315cf5;
}
.as-topic-archive__item-excerpt {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.65;
}
.as-topic-archive__item-date {
    color: #7a8699;
    font-size: 12px;
}
.as-topic-archive__empty {
    padding: 40px 24px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    text-align: center;
    color: #7a8699;
}
.as-topic-archive__empty p { margin: 0; }
.as-topic-archive__pagination {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 640px) {
    .as-q-single { padding: 0 16px; margin: 20px auto 48px; }
    .as-q-single__title { font-size: 24px; }
    .as-q-single__body { font-size: 15px; }
    .as-topic-archive { padding: 0 16px; }
    .as-topic-archive__title { font-size: 24px; }
}