:root {
    --qh-yellow: #ffd166;
    --qh-cyan: #00c2a8;
    --qh-blue: #3a86ff;
    --qh-navy: #1d3557;
    --qh-ink: #132238;
    --qh-white: #ffffff;
    --qh-cream: #f4f7ff;
    --qh-radius-sm: 12px;
    --qh-radius-md: 20px;
    --qh-radius-lg: 28px;
    --qh-radius-blob: 32% 68% 65% 35% / 42% 38% 62% 58%;
    --qh-shadow-cyan: 0 12px 40px rgba(83, 203, 243, 0.35);
    --qh-shadow-yellow: 0 14px 36px rgba(255, 222, 66, 0.45);
    --qh-shadow-navy: 0 20px 50px rgba(17, 31, 162, 0.35);
    --qh-font-ui: "Montserrat", system-ui, sans-serif;
    --qh-font-quote: "Source Serif 4", Georgia, "Times New Roman", serif;
    --qh-page-bg: #f3fbff;
    --qh-page-elevated: #ffffff;
    --qh-card-border: #d5e7f3;
    --qh-card-shadow: 0 1px 2px rgba(29, 53, 87, 0.06), 0 12px 28px rgba(58, 134, 255, 0.1);
    --qh-card-shadow-hover: 0 4px 12px rgba(0, 194, 168, 0.14), 0 20px 42px rgba(58, 134, 255, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body.qh-site {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    font-family: var(--qh-font-ui);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--qh-ink);
    background: var(--qh-page-bg);
    overflow-x: hidden;
    --qot-shell-width-mobile: 90%;
    --qot-shell-width-desktop: 80%;
}

/* Decorative layer disabled: main area uses light page background; header/footer keep brand chrome */
.qh-bg {
    display: none;
}

.qh-bg__grain {
    display: none;
}

.qh-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header */
.qh-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    background: linear-gradient(120deg, rgba(29, 53, 87, 0.94), rgba(58, 134, 255, 0.9));
    border-bottom: none;
    box-shadow: none;
}

.qh-header__inner {
    max-width: var(--qot-shell-width-mobile);
    width: 100%;
    margin: 0 auto;
    padding-top: 0.65rem;
    padding-bottom: 0.75rem;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    box-sizing: border-box;
    position: relative;
}

.qh-header__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
}

.qh-header__brand-row {
    display: flex;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
}

.qh-header__brand-row .qh-logo {
    justify-content: center;
}

.qh-header__brand-row .qh-logo__type {
    text-align: center;
    justify-content: center;
}

.qh-header__nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    min-width: 0;
    position: relative;
    min-height: 2.65rem;
}

.qh-header__nav-scroll {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.qh-header__share-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.qh-sharebar__label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.qh-sharebar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.qh-sharebar__btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.qh-sharebar__btn iconify-icon {
    font-size: 1.1rem;
}

.qh-sharebar__btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.48);
}

.qh-sharebar__btn--copy {
    font: inherit;
    padding: 0;
}

.qh-header__nav-scroll {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.qh-header.qh-header--share-mode .qh-header__nav-scroll {
    opacity: 0;
    pointer-events: none;
}

.qh-header.qh-header--share-mode .qh-header__share-row {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Rebuilt logo: Q mark + trail wordmark ---- */
.qh-logo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--qh-white);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.qh-logo:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.1);
}

.qh-logo__visual {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.qh-logo__mark {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f6f78, #17565e 52%, #0f3d44);
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(5, 25, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.qh-logo__q {
    font-family: var(--qh-font-quote);
    font-weight: 900;
    font-size: 1.72rem;
    line-height: 1;
    color: #f3fbff;
    letter-spacing: -0.05em;
    transform: translateY(-1px);
    text-shadow: 0 1px 0 rgba(5, 12, 22, 0.85), 0 3px 10px rgba(0, 0, 0, 0.5);
    animation: qh-logo-q 2.8s ease-in-out infinite;
    z-index: 2;
}

.qh-logo__ring {
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    border: 2px solid rgba(168, 126, 255, 0.62);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 14px rgba(168, 126, 255, 0.5);
    animation: qh-logo-breathe 2.8s ease-in-out infinite;
    z-index: 1;
}

.qh-logo__flare {
    position: absolute;
    width: 9px;
    height: 9px;
    top: 4px;
    right: 5px;
    border-radius: 50%;
    background: #ffd166;
    box-shadow: 0 0 12px rgba(255, 209, 102, 1);
    animation: qh-logo-flare 2.2s ease-in-out infinite;
    z-index: 3;
}

.qh-logo__type {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.qh-logo__trail {
    font-family: var(--qh-font-quote);
    font-size: clamp(1.15rem, 3.8vw, 1.54rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 1px 0 #000000, 0 2px 10px #000000;
    position: relative;
    margin-left: -15px;
}

.qh-logo__trail::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.1rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.9), rgba(0, 194, 168, 0.9), rgba(58, 134, 255, 0.95));
    transform-origin: left;
    transform: scaleX(0.15);
    transition: transform 0.35s ease;
}

.qh-logo__pulse {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #00c2a8;
    box-shadow: 0 0 10px rgba(0, 194, 168, 0.9);
    animation: qh-logo-pulse-dot 1.35s ease-in-out infinite;
}

@keyframes qh-logo-breathe {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.04); opacity: 0.82; }
}

@keyframes qh-logo-flare {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.24);
        opacity: 0.86;
    }
}

@keyframes qh-logo-q {
    0%, 100% {
        transform: translateY(-1px);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes qh-logo-pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.88;
    }
}

.qh-logo:hover .qh-logo__trail::after {
    transform: scaleX(1);
}

.qh-logo--drawer {
    transform: scale(0.92);
    transform-origin: left center;
}

.qh-logo--drawer .qh-logo__visual {
    width: 44px;
    height: 44px;
}

.qh-logo--drawer .qh-logo__trail {
    font-size: 1rem;
}

.qh-logo--drawer .qh-logo__pulse {
    width: 5px;
    height: 5px;
}

.ql-mdrawer__brand--qh {
    flex: 1;
    min-width: 0;
    align-items: center;
}

.ql-mdrawer__brand--qh .qh-logo {
    width: 100%;
}

.qh-nav__lbl--desktop {
    display: none;
}

.qh-nav__lbl--mobile {
    display: inline;
}

@media (min-width: 900px) {
    .qh-nav__lbl--desktop {
        display: inline;
    }

    .qh-nav__lbl--mobile {
        display: none;
    }
}

.qh-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.32rem;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
    padding-inline-end: 0;
    -webkit-padding-start: 0;
    -webkit-padding-end: 0;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    min-height: 2.65rem;
}

.qh-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qh-header__nav-scroll nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.qh-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.qh-nav a:not(.qh-nav__plus) {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

@media (min-width: 900px) {
    .qh-nav a:not(.qh-nav__plus) {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

.qh-nav a:hover {
    background: rgba(0, 194, 168, 0.22);
    color: #eafffa;
    box-shadow: 0 0 0 1px rgba(0, 194, 168, 0.42);
}

.qh-nav a.is-active {
    background: rgba(0, 194, 168, 0.22);
    color: #eafffa;
    box-shadow: 0 0 0 1px rgba(0, 194, 168, 0.42);
}

.qh-nav__cta {
    background: linear-gradient(120deg, var(--qh-yellow), #ffe566) !important;
    color: var(--qh-navy) !important;
    box-shadow: var(--qh-shadow-yellow);
}

.qh-nav__cta:hover {
    filter: brightness(1.05);
    color: var(--qh-navy) !important;
}

.qh-nav__plus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, var(--qh-yellow), #ffe566) !important;
    color: var(--qh-navy) !important;
    font-weight: 800 !important;
    border: 2px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 6px 20px rgba(84, 120, 255, 0.35);
}

@media (min-width: 900px) {
    .qh-nav__plus {
        width: auto;
        min-width: 2.5rem;
        height: 2.5rem;
        padding: 0 1rem !important;
        border-radius: 999px !important;
    }

    .qh-nav__lbl--submit {
        font-size: 0.88rem;
        font-weight: 800;
    }
}

.qh-nav__plus:hover {
    filter: brightness(1.06);
    color: var(--qh-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(84, 120, 255, 0.42);
}

.qh-nav a iconify-icon,
.qh-nav__plus iconify-icon {
    font-size: 1.45rem;
    vertical-align: 0;
}

@media (max-width: 1024px) {
    .qh-nav a:not(.qh-nav__plus) {
        font-size: 0.8rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .qh-nav {
        gap: 0.2rem;
    }

    .qh-nav__plus {
        width: 2.35rem;
        height: 2.35rem;
        min-width: 2.35rem;
    }

    .qh-nav__plus iconify-icon {
        font-size: 1.35rem;
    }

    .qh-logo__hill {
        font-size: 1.2rem;
    }
}

@media (min-width: 1025px) {
    .qh-nav {
        gap: 0.58rem;
    }
}

@media (max-width: 980px) {
    .qh-header__top-row {
        flex-wrap: wrap;
    }

    .qh-header__brand-row {
        flex-basis: 100%;
        justify-content: center;
    }

    .qh-header__nav-row {
        flex-basis: 100%;
        justify-content: center;
    }

    .qh-nav {
        justify-content: center;
    }
}

/* QOT weekday hub: hamburger + centered brand + full-width day strip (narrow) */
@media (max-width: 980px) {
    .qh-header__top-row--qot {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            'qotMenu qotBrand'
            'qotNav qotNav';
        gap: 0.55rem 0.65rem;
        align-items: center;
        flex-wrap: unset;
    }

    .qh-header__top-row--qot .ql-mnav-open {
        grid-area: qotMenu;
    }

    .qh-header__top-row--qot .qh-header__brand-row {
        grid-area: qotBrand;
        flex-basis: auto;
        width: auto;
        min-width: 0;
        justify-content: center;
    }

    .qh-header__top-row--qot .qh-header__nav-row {
        grid-area: qotNav;
        flex-basis: auto;
        width: 100%;
    }
}

.ql-mdrawer__link--submit {
    background: linear-gradient(120deg, rgba(255, 222, 66, 0.35), rgba(83, 203, 243, 0.25)) !important;
    border-color: rgba(255, 222, 66, 0.45) !important;
    font-weight: 800 !important;
}

/* Main column: desktop centered column ~70% width; mobile full width + 2.5% side padding */
.qh-site .site-main {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--qot-shell-width-mobile);
    margin: -3px auto 0;
    padding: 1.5rem 0 4rem;
    background: transparent;
}

@media (min-width: 769px) {
    .qh-header__inner {
        max-width: var(--qot-shell-width-desktop);
    }

    .qh-site .site-main {
        max-width: var(--qot-shell-width-desktop);
    }
}

/* Hero */
.qh-hero {
    text-align: center;
    padding: 2rem 1rem 1.75rem;
    margin-bottom: 1.75rem;
}

.qot-home-hero {
    width: 100vw;
    min-height: 250px;
    max-height: 340px;
    margin: 0 0 1.2rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(120deg, rgba(29, 53, 87, 0.94), rgba(58, 134, 255, 0.9));
    border-bottom: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.qot-home-hero__inner {
    width: 100%;
    max-width: var(--qot-shell-width-mobile);
    margin: 0 auto;
    padding: 3.35rem 0 3.45rem;
    text-align: center;
}

@media (min-width: 769px) {
    .qot-home-hero__inner {
        max-width: var(--qot-shell-width-desktop);
    }
}

.qot-home-hero .qot-home-hero__title {
    margin: 0;
    font-family: var(--qh-font-quote);
    font-size: clamp(1.35rem, 3.7vw, 2.1rem);
    line-height: 1.18;
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.qot-home-hero__story {
    margin: 0.7rem 0 0;
    max-width: 52rem;
    font-size: 1rem;
    line-height: 1.62;
    color: #ffffff;
    margin-left: auto;
    margin-right: auto;
}

.qot-home-hero__joke {
    margin: 1.05rem auto 0;
    max-width: 48rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(242, 249, 255, 0.96);
    font-style: italic;
    font-weight: 700;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.qot-home-hero-wrap {
    padding: 0;
    margin: -2rem 0 1.1rem;
}

.qh-hero h1 {
    font-family: var(--qh-font-quote);
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 650;
    line-height: 1.12;
    color: var(--qh-navy);
    margin: 0 0 1rem;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.qh-hero__lead {
    max-width: none;
    width: 100%;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    color: rgba(12, 18, 64, 0.72);
}

.qh-hero__body {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    color: rgba(12, 18, 64, 0.78);
    font-size: 0.98rem;
}

.qh-hero__body p {
    margin: 0 0 0.85rem;
}

.qh-hero__link {
    color: var(--qh-blue);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(84, 120, 255, 0.35);
}

.qh-hero__link:hover {
    color: var(--qh-navy);
    border-bottom-color: var(--qh-navy);
}

/* Latest / hub listing strip (home, nav-hub) */
.qh-hub-listing,
.qh-collections {
    margin-bottom: 2.5rem;
}

.qh-hub-listing__head,
.qh-collections__head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.qh-hub-listing__title,
.qh-collections__title {
    font-family: var(--qh-font-quote);
    font-size: 1.65rem;
    color: var(--qh-navy);
    margin: 0;
}

.qh-hub-listing__sub,
.qh-collections__sub {
    margin: 0.35rem 0 0;
    color: rgba(12, 18, 64, 0.62);
    font-size: 0.95rem;
}

.qh-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}

.qh-collection-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--qh-card-border);
    box-shadow: var(--qh-card-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    animation: qh-pop-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.qh-collection-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--qh-yellow), var(--qh-cyan), var(--qh-blue));
    pointer-events: none;
}

.qh-collection-card:nth-child(1) {
    animation-delay: 0.05s;
}
.qh-collection-card:nth-child(2) {
    animation-delay: 0.1s;
}
.qh-collection-card:nth-child(3) {
    animation-delay: 0.15s;
}
.qh-collection-card:nth-child(4) {
    animation-delay: 0.2s;
}
.qh-collection-card:nth-child(5) {
    animation-delay: 0.25s;
}
.qh-collection-card:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes qh-pop-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qh-collection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--qh-card-shadow-hover);
}

.qh-collection-card h3 {
    font-family: var(--qh-font-quote);
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
    color: var(--qh-navy);
    position: relative;
    z-index: 1;
}

.qh-collection-card p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(12, 18, 64, 0.72);
    position: relative;
    z-index: 1;
}

.qh-collection-card__arrow {
    margin-top: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--qh-blue);
    position: relative;
    z-index: 1;
}

/* Topic chips (reuse ql-chip) */
body.qh-site .ql-topics-strip {
    margin-bottom: 2rem;
}

body.qh-site .ql-topics-strip__title {
    color: var(--qh-navy);
    font-family: var(--qh-font-quote);
}

body.qh-site .ql-chip {
    background: #fff;
    border: 1px solid var(--qh-card-border);
    color: var(--qh-navy);
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.qh-site .ql-chip:hover {
    background: var(--qh-navy);
    color: var(--qh-white);
    border-color: var(--qh-navy);
    transform: translateY(-1px);
}

/* Masonry quote grid */
.qh-masonry {
    column-count: 1;
    column-gap: 1.15rem;
}

@media (min-width: 560px) {
    .qh-masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .qh-masonry {
        column-count: 3;
    }
}

.qh-masonry .quote-card {
    break-inside: avoid;
    margin-bottom: 1.15rem;
}

/* Quote cards (unified editorial tile) */
body.qh-site .quotes-grid.qh-masonry {
    display: block;
    width: 100%;
    text-align: left;
}

body.qh-site .quote-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--qh-card-border);
    box-shadow: var(--qh-card-shadow);
    padding: 0 1.2rem 1.15rem;
    padding-top: 0;
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

body.qh-site .quote-card::before {
    content: "";
    display: block;
    height: 3px;
    margin: 0 -1.2rem 1rem;
    width: calc(100% + 2.4rem);
    background: linear-gradient(90deg, var(--qh-yellow), var(--qh-cyan), var(--qh-blue));
}

body.qh-site .quote-card-top--category {
    justify-content: flex-start;
    margin-bottom: 0.65rem;
}

body.qh-site .quote-card blockquote {
    font-family: var(--qh-font-quote);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    color: var(--qh-ink);
    font-weight: 500;
}

body.qh-site .quote-card__bodylink {
    text-decoration: none;
    color: inherit;
}

body.qh-site .quote-card__bodylink:hover blockquote,
body.qh-site .quote-card__bodylink:focus-visible blockquote {
    color: var(--qh-navy);
}

body.qh-site .quote-author {
    margin-top: 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--qh-blue);
}

body.qh-site .quote-card__media {
    margin: 0 0 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(216, 220, 230, 0.9);
}

body.qh-site .quote-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.qh-site .quote-badge--category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--qh-page-elevated);
    color: var(--qh-navy);
    border: 1px solid var(--qh-card-border);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
}

body.qh-site .quote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--qh-card-shadow-hover);
    z-index: 2;
}

/* Section titles */
.qh-section-title {
    color: var(--qh-navy) !important;
    font-family: var(--qh-font-quote) !important;
}

.qh-section-intro {
    color: rgba(12, 18, 64, 0.68) !important;
}

body.qh-site .spotlight-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto 0.75rem;
    padding: 0;
    font-family: var(--qh-font-quote);
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 650;
    color: var(--qh-navy);
    text-align: center;
    line-height: 1.2;
}

body.qh-site .spotlight-label iconify-icon {
    color: var(--qh-blue);
    font-size: 1.1em;
    vertical-align: -0.12em;
}

.qh-feed-section {
    margin-bottom: 2.5rem;
}

/* Pagination */
body.qh-site .ql-pagination {
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

body.qh-site .ql-page-link {
    background: #fff;
    color: var(--qh-navy);
    border-radius: 12px;
    border: 1px solid var(--qh-card-border);
    box-shadow: 0 1px 2px rgba(17, 31, 162, 0.04);
}

body.qh-site .ql-page-link:hover,
body.qh-site .ql-page-link.is-active {
    background: var(--qh-navy);
    color: var(--qh-white);
    border-color: var(--qh-navy);
}

/* Empty state */
.qh-empty {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: var(--qh-page-elevated);
    border: 1px dashed var(--qh-card-border);
    color: rgba(12, 18, 64, 0.75);
    margin: 1rem 0 2rem;
}

.qh-empty code {
    font-size: 0.88em;
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: rgba(17, 31, 162, 0.06);
}

/* Footer (full width; inner text capped for reading) */
.qh-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 3.2rem 1.2rem 3.4rem;
    background: linear-gradient(165deg, #10243b 0%, #1d3557 42%, #0f4c5c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.qh-footer__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 209, 102, 0.2), transparent 36%),
        radial-gradient(circle at 82% 24%, rgba(0, 194, 168, 0.18), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(58, 134, 255, 0.2), transparent 44%);
}

.qh-footer__inner {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
}

.qh-footer__hero {
    text-align: center;
    margin: 0 auto 1.8rem;
    max-width: 42rem;
}

.qh-footer__kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(217, 247, 255, 0.92);
}

.qh-footer__title {
    margin: 0;
    font-family: var(--qh-font-quote);
    font-size: clamp(1.6rem, 3.6vw, 2.25rem);
    line-height: 1.18;
    color: #ffffff;
}

.qh-footer__subtitle {
    margin: 0.7rem auto 0;
    font-size: 1rem;
    line-height: 1.62;
    color: rgba(232, 248, 255, 0.84);
}

.qh-footer__gridnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0 0 1.65rem;
}

.qh-footer__tile {
    display: block;
    text-decoration: none;
    padding: 1rem 1rem 1.05rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.qh-footer__tile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 209, 102, 0.6);
}

.qh-footer__tile-label {
    display: block;
    font-weight: 800;
    font-size: 0.96rem;
    color: #fff;
}

.qh-footer__tile-meta {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.78rem;
    color: rgba(230, 245, 255, 0.82);
}

.qh-footer__legal {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(8, 23, 38, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.qh-footer__legal-text {
    margin: 0 0 0.8rem;
    text-align: center;
    line-height: 1.58;
    color: rgba(227, 245, 255, 0.84);
    font-size: 0.93rem;
}

.qh-footer__brand-line {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.qh-footer__brand-link {
    color: #ffd166;
    text-decoration: none;
    font-weight: 800;
}

.qh-footer__brand-link:hover {
    color: #fff1c7;
}

.qh-footer__dot {
    margin: 0 0.3rem;
    color: rgba(227, 245, 255, 0.5);
}

.qh-footer__years {
    color: rgba(227, 245, 255, 0.82);
    font-weight: 700;
}

.qh-footer__tagline {
    color: rgba(0, 194, 168, 0.98);
    font-weight: 700;
}

.qh-footer__mini {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.qh-footer__mini a {
    text-decoration: none;
    color: rgba(224, 244, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 700;
}

.qh-footer__mini a:hover {
    color: #ffd166;
}

@media (max-width: 920px) {
    .qh-footer__gridnav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .qh-footer__gridnav {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumbs (hub loads qh-hub only - need full base styles) */
body.qh-site .breadcrumbs {
    margin: 1rem 0 1.1rem;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: left;
    color: rgba(12, 18, 64, 0.62);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}

body.qh-site .breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

body.qh-site .breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

body.qh-site .breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin: 0 0.55rem;
    color: rgba(12, 18, 64, 0.35);
    font-weight: 500;
    speak: never;
}

body.qh-site .breadcrumbs__link {
    color: var(--qh-blue);
    font-weight: 700;
    text-decoration: none;
}

body.qh-site .breadcrumbs__link:hover {
    text-decoration: underline;
    color: var(--qh-navy);
}

body.qh-site .breadcrumbs__current {
    color: var(--qh-navy);
    font-weight: 700;
}

/* ---- Hub wall pages (topic / explore tag): mast + quotes + people also read ---- */
.qh-wall-page {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem) 1.25rem;
    box-sizing: border-box;
}

.qh-wall-page__mast {
    margin-bottom: 2.75rem;
    border-radius: var(--qh-radius-lg);
    border: 1px solid rgba(17, 31, 162, 0.12);
    background: linear-gradient(165deg, #ffffff 0%, #f5f7ff 55%, #eef2ff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        var(--qh-card-shadow);
    overflow: hidden;
}

.qh-wall-page__intro {
    text-align: center;
    padding: 2.35rem clamp(1.25rem, 4.5vw, 2.5rem) 2rem;
}

.qh-wall-page__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(84, 120, 255, 0.88);
}

.qh-wall-page__intro--has-guide {
    padding-bottom: 1.65rem;
    border-bottom: 1px solid rgba(17, 31, 162, 0.08);
}

.qh-wall-page__intro--topic {
    padding-bottom: 2.35rem;
}

.qh-wall-page__intro.ql-hero {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.qh-wall-page__h1,
.qh-wall-page__intro .ql-paa-question {
    font-family: var(--qh-font-quote);
    font-size: clamp(1.85rem, 4.8vw, 2.75rem);
    font-weight: 650;
    line-height: 1.12;
    color: var(--qh-navy);
    margin: 0 0 0.9rem;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.qh-wall-page__intro .qh-collection-hero__title {
    margin-bottom: 0.9rem;
}

.qh-wall-page__lead,
.qh-wall-page__intro .ql-lead,
.qh-wall-page__intro .qh-collection-hero__lead {
    max-width: 38rem;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.62;
    color: rgba(12, 18, 64, 0.76);
}

.qh-wall-page__meta-lede {
    max-width: 32rem;
    margin: 0.85rem auto 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(12, 18, 64, 0.62);
}

.qh-wall-page__snapshot {
    margin: 0 auto;
    padding: 0 1.5rem 1.4rem;
    max-width: 42rem;
    text-align: center;
}

.qh-wall-page__snapshot-title {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(17, 31, 162, 0.64);
}

.qh-wall-page__snapshot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.qh-wall-page__snapshot-list li {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 31, 162, 0.12);
    background: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--qh-navy);
}

.qh-wall-page__guide {
    padding: 2rem clamp(1.35rem, 4.5vw, 2.75rem) 2.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, #ffffff 42%);
}

.qh-wall-page__guide-card {
    margin: 0 0 2.2rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 1.7rem;
    border-radius: var(--qh-radius-md);
    border: 1px solid rgba(17, 31, 162, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--qh-card-shadow);
}

.qh-wall-page__guide-inner {
    max-width: 38rem;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.68;
    color: rgba(12, 18, 64, 0.88);
}

.qh-wall-page__guide-inner h2,
.qh-wall-page__guide-inner h3 {
    font-family: var(--qh-font-quote);
    color: var(--qh-navy);
    margin: 1.65rem 0 0.65rem;
    line-height: 1.25;
}

.qh-wall-page__guide-inner h2:first-child,
.qh-wall-page__guide-inner h3:first-child {
    margin-top: 0;
}

.qh-wall-page__guide-inner p {
    margin: 0 0 1rem;
}

.qh-wall-page__guide-inner p:last-child {
    margin-bottom: 0;
}

.qh-wall-page .ql-empty {
    margin: 0 0 2.5rem;
    padding: 2.25rem 1.75rem;
    border-radius: var(--qh-radius-md);
    background: #fff;
    border: 1px solid var(--qh-card-border);
    box-shadow: var(--qh-card-shadow);
}

.qh-people-read {
    margin-top: 0.5rem;
    padding: 2rem clamp(1.25rem, 4vw, 2.25rem) 2.35rem;
    border-radius: var(--qh-radius-lg);
    border: 1px solid rgba(17, 31, 162, 0.12);
    background: linear-gradient(155deg, #ffffff 0%, #f4f6ff 45%, #eef3ff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        var(--qh-card-shadow);
}

.qh-people-read__head {
    text-align: center;
    margin: 0 auto 1.65rem;
    max-width: 36rem;
}

.qh-people-read__eyebrow {
    display: block;
    font-family: var(--qh-font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(84, 120, 255, 0.85);
    margin-bottom: 0.45rem;
}

.qh-people-read__title {
    font-family: var(--qh-font-quote);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 650;
    color: var(--qh-navy);
    margin: 0 0 0.45rem;
    letter-spacing: -0.02em;
}

.qh-people-read__lede {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(12, 18, 64, 0.62);
}

.qh-people-read__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
    gap: 1rem 1.15rem;
}

.qh-people-read__cell {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
}

.qh-people-read__card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-height: 5.5rem;
    padding: 1.15rem 1.1rem 1.15rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(17, 31, 162, 0.1);
    background: rgba(255, 255, 255, 0.92);
    text-decoration: none !important;
    color: var(--qh-navy) !important;
    font-family: var(--qh-font-quote);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.42;
    box-shadow: 0 4px 18px rgba(17, 31, 162, 0.06);
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        border-color 0.2s ease;
}

.qh-people-read__card:hover {
    transform: translateY(-3px);
    border-color: rgba(84, 120, 255, 0.35);
    box-shadow: 0 10px 32px rgba(17, 31, 162, 0.12);
}

.qh-people-read__card-text {
    flex: 1;
    min-width: 0;
}

.qh-people-read__card-go {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    color: var(--qh-blue);
    font-size: 1.35rem;
    opacity: 0.85;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.qh-people-read__card:hover .qh-people-read__card-go {
    transform: translateX(3px);
    color: var(--qh-navy);
}

/* Collection page hero (no eyebrow / tag row) */
.qh-collection-hero {
    background: #fff;
    border: 1px solid var(--qh-card-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--qh-card-shadow);
    text-align: center;
}

.qh-collection-hero__title {
    font-family: var(--qh-font-quote);
    font-size: clamp(1.75rem, 4.5vw, 2.65rem);
    font-weight: 650;
    line-height: 1.15;
    color: var(--qh-navy);
    margin: 0 0 0.85rem;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.qh-collection-hero__lead {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(12, 18, 64, 0.76);
}

/* Collection / guide quote wall (topic.php, tag.php hub) */
.qh-wall {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: none;
    margin: 0 auto 2.75rem;
    padding: 0;
}

.qh-wall-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 10.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f6f8ff 55%, #f0f3ff 100%);
    border: 1px solid rgba(17, 31, 162, 0.11);
    border-radius: var(--qh-radius-md);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        var(--qh-card-shadow);
    overflow: hidden;
}

.qh-wall-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--qh-navy), var(--qh-blue), var(--qh-cyan));
    border-radius: var(--qh-radius-md) 0 0 var(--qh-radius-md);
}

.qh-wall-card__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.1rem;
    padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.25rem, 3.5vw, 2rem) clamp(1.35rem, 3.5vw, 2rem) clamp(1.45rem, 3.5vw, 2.1rem);
}

@media (min-width: 720px) {
    .qh-wall-card--has-media .qh-wall-card__inner {
        flex-direction: row;
        align-items: stretch;
        gap: 1.75rem;
    }
}

.qh-wall-card__media {
    flex-shrink: 0;
    margin: 0;
    align-self: center;
}

@media (min-width: 720px) {
    .qh-wall-card--has-media .qh-wall-card__media {
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.qh-wall-card__img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 31, 162, 0.14);
}

@media (min-width: 720px) {
    .qh-wall-card__img {
        max-width: 220px;
    }
}

.qh-wall-card__body {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qh-wall-card__mark {
    display: block;
    font-family: var(--qh-font-quote);
    font-size: 2.75rem;
    line-height: 0.85;
    color: rgba(84, 120, 255, 0.22);
    margin-bottom: 0.15rem;
    user-select: none;
}

.qh-wall-card__quote {
    margin: 0;
    padding: 0;
    border: none;
    font-family: var(--qh-font-quote);
    font-size: clamp(1.18rem, 2.4vw, 1.42rem);
    line-height: 1.52;
    font-weight: 600;
    color: var(--qh-ink);
}

.qh-wall-card__quote p {
    margin: 0;
}

.qh-wall-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    font-family: var(--qh-font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qh-blue);
}

.qh-wall-card__author-line {
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--qh-yellow), var(--qh-cyan));
    border-radius: 2px;
}

.qh-wall-card__vote {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(17, 31, 162, 0.08);
}

.qh-wall-card__vote-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.qh-wall-vote__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 31, 162, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--qh-navy);
    font-family: var(--qh-font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 14px rgba(17, 31, 162, 0.06);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        color 0.2s ease;
}

.qh-wall-vote__btn:hover {
    border-color: rgba(84, 120, 255, 0.45);
    color: var(--qh-blue);
    transform: translateY(-1px);
}

.qh-wall-vote__btn.is-active {
    background: linear-gradient(120deg, rgba(255, 222, 66, 0.45), rgba(83, 203, 243, 0.2));
    border-color: rgba(84, 120, 255, 0.35);
    color: var(--qh-navy);
}

.qh-wall-vote__btn iconify-icon {
    font-size: 1.15rem;
    color: var(--qh-blue);
}

.qh-wall-vote__n {
    min-width: 1.25rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Pagination on hub (topic, tag, shared ql-pagination) */
body.qh-site .ql-pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem auto 2.75rem;
    max-width: none;
    width: 100%;
    padding: 0.65rem 0 0;
}

body.qh-site .ql-page-link {
    font-family: var(--qh-font-ui);
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid var(--qh-card-border);
    padding: 0.45rem 0.85rem;
    background: #fff;
    color: var(--qh-navy);
    text-decoration: none;
    box-shadow: var(--qh-card-shadow);
}

body.qh-site .ql-page-link:hover {
    border-color: rgba(84, 120, 255, 0.45);
    color: var(--qh-blue);
}

body.qh-site .ql-page-link.is-active {
    background: linear-gradient(120deg, var(--qh-navy), #1e2fb8);
    color: #fff;
    border-color: transparent;
}

/* Reveal on scroll (skip hero: avoids CLS when async CSS + font swap) */
.qh-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

section.qh-hero.qh-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.qh-reveal.qh-reveal--in {
    opacity: 1;
    transform: translateY(0);
}

body.qh-site .ql-hero {
    background: #fff;
    border: 1px solid var(--qh-card-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--qh-card-shadow);
}

body.qh-site .ql-hero h1,
body.qh-site .ql-hero--simple h1 {
    color: var(--qh-navy);
    font-family: var(--qh-font-quote);
}

body.qh-site .qh-wall-page__intro.ql-hero {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 2.35rem clamp(1.25rem, 4.5vw, 2.5rem) 2rem;
}

body.qh-site .ql-eyebrow {
    color: var(--qh-blue);
}

body.qh-site .ql-lead,
body.qh-site .ql-hero__meta {
    color: rgba(12, 18, 64, 0.72);
}

body.qh-site .ql-pill {
    background: rgba(255, 222, 66, 0.22);
    color: var(--qh-navy);
    border: 1px solid rgba(255, 222, 66, 0.45);
}

/* --- Mobile drawer (minimal shell; matches surface.js toggles) --- */

.ql-mnav-backdrop.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    background: rgba(8, 12, 48, 0.55);
    backdrop-filter: blur(8px);
}

body.mobile-drawer-open .ql-mnav-backdrop.mobile-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ql-mdrawer.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 130;
    width: min(20.5rem, calc(100vw - 10px));
    max-height: 100dvh;
    height: 100%;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}

body.mobile-drawer-open .ql-mdrawer.mobile-drawer {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    visibility: visible;
}

.ql-mdrawer__chrome {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100dvh;
    margin-left: 6px;
    border-radius: 18px 0 0 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

.ql-mdrawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ql-mdrawer__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ql-mdrawer__title {
    margin: 0;
    font-family: var(--qh-font-quote);
    font-size: 1.05rem;
    color: var(--qh-white);
}

.ql-mdrawer__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--qh-cyan);
}

.ql-mdrawer__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.65rem 0.85rem 1.25rem;
}

.ql-mdrawer__section {
    margin: 0.85rem 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.ql-mdrawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ql-mdrawer__list li {
    margin: 0 0 0.4rem;
}

.ql-mdrawer__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ql-mdrawer__link:hover {
    background: rgba(255, 222, 66, 0.12);
    border-color: rgba(255, 222, 66, 0.35);
}

.ql-mdrawer__link.is-active {
    background: rgba(255, 222, 66, 0.18);
    border-color: rgba(255, 222, 66, 0.4);
}

.ql-mdrawer__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(83, 203, 243, 0.2);
    color: var(--qh-cyan);
}

.ql-mdrawer__chev {
    margin-left: auto;
    opacity: 0.4;
}

.ql-mdrawer__close {
    border: none;
    border-radius: 12px;
    width: 2.6rem;
    height: 2.6rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--qh-white);
    cursor: pointer;
}

@media (min-width: 881px) {
    .ql-mdrawer.mobile-drawer,
    .ql-mnav-backdrop.mobile-drawer-backdrop {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ---- Hub preview cards (A-Z / trending / most liked) ---- */
.qh-preview-grid--pro {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.qh-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.qh-preview-card--pro.qh-preview-card--linked {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: var(--qh-radius-lg);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.qh-preview-card__shell {
    height: 100%;
    min-height: 300px;
    padding: 0;
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #f3f6ff 55%, #eef3ff 100%);
    border: 1px solid rgba(17, 31, 162, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        var(--qh-card-shadow);
}

.qh-preview-card__shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 10% 0%, rgba(255, 222, 66, 0.14), transparent 45%),
        radial-gradient(100% 60% at 100% 20%, rgba(83, 203, 243, 0.12), transparent 50%);
    pointer-events: none;
}

.qh-preview-card--pro.qh-preview-card--linked:hover {
    transform: translateY(-6px) scale(1.01);
    z-index: 2;
}

.qh-preview-card--pro.qh-preview-card--linked:hover .qh-preview-card__shell {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        var(--qh-card-shadow-hover);
    border-color: rgba(84, 120, 255, 0.28);
}

.qh-preview-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.15rem 0.35rem;
    position: relative;
    z-index: 1;
}

.qh-preview-card__kind {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(17, 31, 162, 0.55);
}

.qh-preview-card__metric {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--qh-navy);
    background: rgba(255, 222, 66, 0.35);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 222, 66, 0.6);
    white-space: nowrap;
}

.qh-preview-card__title {
    font-family: var(--qh-font-quote);
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    margin: 0;
    padding: 0 1.15rem;
    line-height: 1.2;
    color: var(--qh-navy);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.qh-preview-card__visual {
    margin: 0.85rem 1.15rem 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(17, 31, 162, 0.05);
    border: 1px solid rgba(17, 31, 162, 0.08);
    position: relative;
    z-index: 1;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qh-preview-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qh-preview-card__excerpt {
    margin: 0.85rem 1.15rem 0;
    padding: 0;
    border: none;
    font-family: var(--qh-font-quote);
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(12, 18, 64, 0.82);
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}

.qh-preview-card__ldquo {
    color: rgba(84, 120, 255, 0.35);
    font-size: 1.15em;
    margin-right: 0.08em;
}

.qh-preview-card__byline {
    margin: 0.5rem 1.15rem 5px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--qh-blue);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    z-index: 1;
}

.qh-preview-card__byline-mark {
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--qh-cyan), var(--qh-blue));
    border-radius: 2px;
}

.qh-preview-card__empty {
    margin: 0.75rem 1.15rem 0;
    font-size: 0.88rem;
    color: rgba(12, 18, 64, 0.5);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.qh-preview-card__foot {
    margin-top: auto;
    padding: 1rem 1.15rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: linear-gradient(180deg, transparent, rgba(17, 31, 162, 0.04));
    border-top: 1px solid rgba(17, 31, 162, 0.08);
    position: relative;
    z-index: 1;
}

.qh-preview-card__foot-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qh-navy);
}

.qh-preview-card__foot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    flex-shrink: 0;
    color: var(--qh-blue);
    transition: transform 0.3s ease, color 0.2s ease;
}

.qh-preview-card__foot-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.qot-editorial-flow {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.1rem;
}

.qot-story-card {
    grid-column: span 4;
    position: relative;
    border-radius: 14px;
    padding: 1.05rem 1rem 1rem 1.2rem;
    border: 1px solid rgba(58, 134, 255, 0.16);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(19, 34, 56, 0.08);
    min-height: 270px;
    display: flex;
    flex-direction: column;
}

.qot-story-card--hero {
    grid-column: 1 / -1;
    min-height: 0;
    background: linear-gradient(145deg, #13223e 0%, #1d3557 42%, #2c1f4c 100%);
    border-color: rgba(255, 209, 102, 0.45);
    box-shadow: 0 18px 40px rgba(19, 34, 56, 0.3);
}

.qot-story-card__rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #3a86ff, #00c2a8);
}

.qot-story-card__header {
    margin-bottom: 0.7rem;
}

.qot-story-card__eyebrow {
    margin: 0;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(29, 53, 87, 0.58);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.qot-story-card__day {
    margin: 0.35rem 0 0;
    font-family: var(--qh-font-quote);
    font-size: 1.5rem;
    line-height: 1.1;
}

.qot-story-card__day a {
    color: #1d3557;
    text-decoration: none;
}

.qot-story-card__interesting {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(19, 34, 56, 0.74);
    font-weight: 700;
}

.qot-story-card__bubbledeck {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.qot-story-pill {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 700;
    color: #1d3557;
    line-height: 1.1;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(58, 134, 255, 0.2);
    background: linear-gradient(145deg, #ffffff, #eef8ff);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    gap: 0.28rem;
}

.qot-story-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(19, 34, 56, 0.12);
}

.qot-story-pill--1 { border-radius: 8px 22px 12px 20px; }
.qot-story-pill--2 { border-radius: 20px 8px 22px 10px; }
.qot-story-pill--3 { border-radius: 12px 18px 8px 22px; }
.qot-story-pill--4 { border-radius: 24px 10px 18px 8px; }
.qot-story-pill--5 { border-radius: 10px 24px 8px 20px; }
.qot-story-pill--6 { border-radius: 20px 12px 22px 8px; }

.qot-story-card--hero .qot-story-card__eyebrow,
.qot-story-card--hero .qot-story-card__day a,
.qot-story-card--hero .qot-story-card__interesting {
    color: #ffffff;
}

.qot-story-card--hero .qot-story-pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.qot-story-card--hero .qot-story-pill:nth-of-type(n+17) {
    display: none;
}

.qot-cat-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.9rem;
}

.qot-cat-card {
    grid-column: span 4;
    text-decoration: none;
    color: inherit;
}

.qot-cat-card__shell {
    height: 100%;
    border-radius: 12px;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid rgba(58, 134, 255, 0.18);
    background: linear-gradient(165deg, #ffffff, #f3f9ff);
    box-shadow: 0 8px 18px rgba(19, 34, 56, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.qot-cat-card__title {
    margin: 0 0 0.2rem;
    font-family: var(--qh-font-quote);
    font-size: 1.18rem;
    line-height: 1.2;
    color: #1d3557;
}

.qot-cat-card__snippet {
    margin: 0.1rem 0 0;
    font-size: 0.84rem;
    line-height: 1.48;
    color: rgba(19, 34, 56, 0.78);
}

.qot-cat-card__tags {
    margin-top: auto;
    padding-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.qot-cat-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.52rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.qot-cat-card__tag--1 {
    background: rgba(31, 111, 120, 0.12);
    border: 1px solid rgba(31, 111, 120, 0.24);
    color: #1f6f78;
    border-radius: 999px 999px 20px 999px;
}

.qot-cat-card__tag--2 {
    background: rgba(58, 134, 255, 0.12);
    border: 1px solid rgba(58, 134, 255, 0.24);
    color: #225ea8;
    border-radius: 22px 999px 999px 22px;
}

.qot-cat-card__tag--3 {
    background: rgba(255, 179, 92, 0.16);
    border: 1px solid rgba(255, 179, 92, 0.3);
    color: #8c4c13;
    border-radius: 999px 24px 999px 24px;
}

.qot-cat-card__tag--4 {
    background: rgba(98, 72, 140, 0.12);
    border: 1px solid rgba(98, 72, 140, 0.25);
    color: #4e3c78;
    border-radius: 28px 16px 999px 999px;
}

.qot-cat-card__tag--5 {
    background: rgba(17, 53, 87, 0.12);
    border: 1px solid rgba(17, 53, 87, 0.25);
    color: #17395c;
    border-radius: 16px 999px 26px 999px;
}

/* Category mode - intentionally distinct from homepage */
body.qh-site.qot-category-mode {
    background: radial-gradient(circle at 8% 5%, #fff4e1 0%, #f7fbff 34%, #eff6ff 100%);
}

body.qh-site.qot-category-mode .qot-cat-grid {
    gap: 1.05rem;
}

body.qh-site.qot-category-mode .qh-hero {
    margin-bottom: 1.35rem;
    padding: 1.35rem 0.25rem 1.45rem;
    text-align: left;
}

body.qh-site.qot-category-mode .qh-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    color: #17395c;
    margin: 0 0 0.65rem;
}

body.qh-site.qot-category-mode .qh-hero__lead {
    margin: 0;
    color: rgba(23, 57, 92, 0.78);
    font-size: 0.97rem;
    max-width: 46rem;
}

body.qh-site.qot-category-mode .qot-cat-card__shell {
    border-radius: 20px;
    background: linear-gradient(150deg, #ffffff 0%, #fef4e8 52%, #f0fbff 100%);
    border: 1px solid rgba(23, 57, 92, 0.16);
    box-shadow: 0 10px 22px rgba(23, 57, 92, 0.09);
    position: relative;
}

body.qh-site.qot-category-mode .qot-cat-card__shell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #ffb35c, #1f6f78, #3a86ff);
}

body.qh-site.qot-category-mode .qot-cat-card__title {
    color: #17395c;
}

body.qh-site.qot-category-mode .qot-cat-card__snippet {
    color: rgba(23, 57, 92, 0.8);
}

/* Subcategory hub: DB articles + quote list */
.qot-sub-hub {
    margin-bottom: 2.5rem;
}

.qot-sub-hub__empty {
    margin: 0;
    padding: 1rem 1.15rem;
    border-radius: var(--qh-radius-md);
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed rgba(58, 134, 255, 0.35);
    color: rgba(12, 18, 64, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.qot-sub-hub__empty code {
    font-size: 0.85em;
    word-break: break-word;
}

.qot-article-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.qot-article-card {
    border-radius: var(--qh-radius-lg);
    background: linear-gradient(165deg, #ffffff 0%, #f2f9ff 52%, #f6fffb 100%);
    border: 1px solid rgba(58, 134, 255, 0.2);
    box-shadow: var(--qh-card-shadow);
    padding: 1.35rem 1.4rem 1.45rem;
}

.qot-article-card__head {
    margin-bottom: 0.85rem;
}

.qot-article-card__title {
    margin: 0 0 0.45rem;
    font-family: var(--qh-font-quote);
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    font-weight: 650;
    color: var(--qh-navy);
    letter-spacing: -0.02em;
}

.qot-article-card__excerpt {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(12, 18, 64, 0.66);
}

.qot-article-card__block {
    margin-top: 1.15rem;
    padding-top: 1.05rem;
    border-top: 1px solid rgba(58, 134, 255, 0.14);
}

.qot-article-card__block--text {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.qot-article-card__block--text.qh-prose {
    font-size: 0.98rem;
    line-height: 1.62;
    color: rgba(19, 34, 56, 0.88);
}

.qot-article-card__block--text.qh-prose p {
    margin: 0 0 0.75rem;
}

.qot-article-card__block--text.qh-prose p:last-child {
    margin-bottom: 0;
}

.qot-article-card__block-title {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(29, 53, 87, 0.55);
}

/* Redesigned article quote section */
.qot-article-card__block--quotes {
    margin-top: 1.75rem;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: var(--qh-radius-md);
    background: radial-gradient(circle at top left, rgba(0, 194, 168, 0.06), transparent 55%), #f8fbff;
    border: 1px solid rgba(173, 200, 235, 0.7);
    box-shadow: 0 10px 30px rgba(19, 34, 56, 0.06);
}

.qot-article-quote-header {
    max-width: 48rem;
    margin: 0 0 1.4rem 0;
}

.qot-article-card__block-sub {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 35, 65, 0.86);
}

.qot-article-quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.3rem;
}

@media (min-width: 720px) {
    .qot-article-quote-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (min-width: 1024px) {
    .qot-article-quote-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.qot-article-quote {
    margin: 0;
}

.qot-article-quote.qot-article-quote--card {
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(195, 212, 236, 0.85);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(18, 38, 74, 0.06);
    position: relative;
    overflow: hidden;
}

.qot-article-quote.qot-article-quote--card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(0, 194, 168, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.qot-article-quote.qot-article-quote--card:hover::before {
    opacity: 1;
}

.qot-article-quote__text {
    margin: 0 0 0.6rem 0;
    font-family: var(--qh-font-quote);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--qh-navy);
    position: relative;
    padding-left: 1.4rem;
}

.qot-article-quote__text::before {
    content: "“";
    position: absolute;
    left: 0.1rem;
    top: -0.25rem;
    font-size: 1.6rem;
    color: rgba(0, 194, 168, 0.7);
}

.qot-article-quote__by {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(12, 18, 64, 0.7);
}

.qot-article-card__media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.qot-article-media {
    margin: 0;
    border-radius: var(--qh-radius-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(58, 134, 255, 0.18);
}

.qot-article-media__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.qot-article-media__cap {
    margin: 0;
    padding: 0.45rem 0.6rem 0.55rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(12, 18, 64, 0.62);
}


.qot-quick-nav {
    margin-top: 1rem;
    border-radius: 16px;
    padding: 0.9rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(58, 134, 255, 0.18);
}

.qot-quick-nav__title {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: #1d3557;
}

.qot-quick-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
}

.qot-quick-nav__links a {
    text-decoration: none;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(58, 134, 255, 0.22);
    color: #1d3557;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
}

@media (max-width: 1100px) {
    .qot-story-card {
        grid-column: span 6;
    }

    .qot-cat-card {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .qot-story-card {
        grid-column: 1 / -1;
    }

    .qot-cat-card {
        grid-column: 1 / -1;
    }
}

.qh-preview-card--pro.qh-preview-card--linked:hover .qh-preview-card__foot-icon {
    transform: translateX(4px);
    color: var(--qh-navy);
}

@media (max-width: 900px) {
    .qh-preview-card__shell {
        height: auto;
        min-height: 0;
    }
}

.qh-crosslinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin: 0 auto 1.75rem;
    padding: 0.85rem 1rem;
    max-width: 100%;
    border-radius: var(--qh-radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--qh-card-border);
    box-shadow: var(--qh-card-shadow);
}

.qh-crosslinks__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(12, 18, 64, 0.45);
    margin-right: 0.25rem;
}

.qh-crosslinks__a {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--qh-blue);
    text-decoration: none;
    padding: 0.25rem 0.45rem;
    border-radius: 8px;
}

.qh-crosslinks__a:hover {
    background: rgba(84, 120, 255, 0.12);
    color: var(--qh-navy);
}

.qh-crosslinks__a--accent {
    color: var(--qh-navy);
    background: rgba(255, 222, 66, 0.35);
    border: 1px solid rgba(255, 222, 66, 0.55);
}

.qh-hub-pager {
    margin: 2rem auto 0;
    max-width: 24rem;
}

.qh-hub-pager__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.qh-hub-pager__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--qh-navy);
    background: #fff;
    border: 1px solid var(--qh-card-border);
    box-shadow: var(--qh-card-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

a.qh-hub-pager__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 31, 162, 0.35);
}

.qh-hub-pager__btn--disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

.qh-submit-panel {
    position: relative;
    max-width: 36rem;
    margin: 0 auto 3rem;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--qh-card-border);
    box-shadow: var(--qh-card-shadow);
    color: rgba(12, 18, 64, 0.88);
}

.qh-submit-panel__text {
    margin: 0 0 1rem;
    line-height: 1.55;
}

.qh-submit-panel__mail {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(120deg, var(--qh-yellow), #fff4a8);
    color: var(--qh-navy) !important;
    text-decoration: none !important;
    box-shadow: var(--qh-shadow-yellow);
}

.qh-submit-panel__mail:hover {
    filter: brightness(1.06);
}

.qh-submit-panel code {
    font-size: 0.85em;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: var(--qh-page-elevated);
    border: 1px solid var(--qh-card-border);
}

.qh-submit-success {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    padding: 1.35rem 1.35rem 1.25rem;
    border-radius: 16px;
    background: rgba(83, 203, 243, 0.12);
    border: 1px solid rgba(83, 203, 243, 0.35);
    color: var(--qh-navy);
}

.qh-submit-success__title {
    margin: 0 0 0.5rem;
    font-family: var(--qh-font-quote);
    font-size: 1.35rem;
    font-weight: 650;
}

.qh-submit-success__text {
    margin: 0 0 0.75rem;
    line-height: 1.55;
    color: rgba(12, 18, 64, 0.82);
}

.qh-submit-success__sub {
    margin: 0;
    font-size: 0.95rem;
}

.qh-submit-errors {
    max-width: 36rem;
    margin: 0 auto 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: rgba(220, 80, 80, 0.08);
    border: 1px solid rgba(200, 60, 60, 0.28);
    color: var(--qh-navy);
}

.qh-submit-errors__title {
    margin: 0 0 0.45rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.qh-submit-errors__list {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.5;
}

.qh-submit-form {
    margin: 0;
}

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

.qh-submit-form__field {
    margin-bottom: 1.15rem;
}

.qh-submit-form__field--captcha {
    border-top: 1px dashed var(--qh-card-border);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.qh-submit-form__label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--qh-navy);
}

.qh-submit-form__hint {
    font-weight: 500;
    color: rgba(12, 18, 64, 0.5);
    font-size: 0.85rem;
}

.qh-submit-form__captcha-q {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: rgba(12, 18, 64, 0.85);
}

.qh-submit-form__input,
.qh-submit-form__textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--qh-card-border);
    font-family: var(--qh-font-ui);
    font-size: 1rem;
    color: var(--qh-ink);
    background: #fff;
    box-sizing: border-box;
}

.qh-submit-form__textarea {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.5;
}

.qh-submit-form__input:focus,
.qh-submit-form__textarea:focus {
    outline: none;
    border-color: var(--qh-blue);
    box-shadow: 0 0 0 3px rgba(84, 120, 255, 0.2);
}

.qh-submit-form__input--narrow {
    max-width: 8rem;
}

.qh-submit-form__actions {
    margin-top: 1.35rem;
}

.qh-submit-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-family: var(--qh-font-ui);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(120deg, var(--qh-navy), #1e2fb8);
    color: #fff;
    box-shadow: var(--qh-card-shadow);
}

.qh-submit-form__btn:hover {
    filter: brightness(1.08);
}

.qh-submit-form__btn:focus-visible {
    outline: 2px solid var(--qh-yellow);
    outline-offset: 3px;
}

/* Guides hub (guides.php) */
.qh-guides-grid {
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1rem;
}

.qh-guides-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.2rem;
    min-height: 5.5rem;
    border-radius: var(--qh-radius-md);
    border: 1px solid var(--qh-card-border);
    background: var(--qh-page-elevated);
    box-shadow: var(--qh-card-shadow);
    text-decoration: none;
    color: var(--qh-navy);
    font-family: var(--qh-font-ui);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.qh-guides-card:hover {
    border-color: rgba(84, 120, 255, 0.35);
    box-shadow: var(--qh-card-shadow-hover);
    transform: translateY(-2px);
}

.qh-guides-card__label {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--qh-ink);
}

.qh-guides-card__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(84, 120, 255, 0.12);
    color: var(--qh-navy);
    font-size: 1.1rem;
}

body.qh-site .ql-explore-body-wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: min(52rem, 100%);
    border-radius: var(--qh-radius-md);
    border: 1px solid var(--qh-card-border);
    background: var(--qh-page-elevated);
    box-shadow: var(--qh-card-shadow);
}

body.qh-site .ql-explore-body {
    color: var(--qh-ink);
}

body.qh-site .ql-explore-body__p {
    color: rgba(12, 18, 64, 0.82);
}

body.qh-site .ql-hero--explore-guide .ql-lead {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.qh-quote-carousel {
    margin: 1.2rem 0 0;
    padding: 1rem 0 0.25rem;
}

.qh-quote-carousel__head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.qh-quote-carousel__title {
    margin: 0;
    font-family: var(--qh-font-quote);
    font-size: 1.25rem;
    color: var(--qh-navy);
    text-align: center;
}

.qh-quote-carousel__intro {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(12, 18, 64, 0.7);
}

.qh-quote-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0.05rem 0.55rem;
    scrollbar-width: thin;
}

.qh-quote-carousel__item {
    display: block;
    flex: 0 0 auto;
    width: min(34vw, 180px);
    text-decoration: none;
}

.qh-quote-carousel__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 9 / 16;
}

.qh-reels-page {
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    padding: 0;
}

.qh-reels-page__hint {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    background: rgba(17, 31, 162, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.qh-reels-page__hint.is-dismissed {
    opacity: 0;
    pointer-events: none;
}

.qh-reels-page__arrow {
    font-size: 0.92rem;
}

.qh-reels-feed {
    height: calc(100dvh - 6.8rem);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.qh-reels-slide {
    min-height: calc(100dvh - 6.8rem);
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0;
}

.qh-reels-slide__imglink {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.qh-reels-slide__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .qh-reels-feed,
    .qh-reels-slide {
        height: calc(100dvh - 7.4rem);
        min-height: calc(100dvh - 7.4rem);
    }
}

/* ---- Mobile: header, safe areas, touch targets (Quote Of Today hub) ---- */
@supports (padding: max(0px)) {
    body.qh-site {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .qh-header {
        padding-left: max(0.35rem, env(safe-area-inset-left));
        padding-right: max(0.35rem, env(safe-area-inset-right));
    }
}

@media (max-width: 768px) {
    body.qh-site {
        font-size: 1rem;
        -webkit-text-size-adjust: 100%;
    }

    .qh-header__inner {
        padding-top: 0.5rem;
        padding-bottom: 0.55rem;
    }

    .qh-header__top-row {
        gap: 0.45rem;
    }

    .qh-header__nav-row {
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .qh-header__nav-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        padding-bottom: 0.35rem;
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
        mask-size: 100% 100%;
    }

    .qh-header__nav-scroll nav {
        justify-content: flex-start;
    }

    .qh-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.15rem;
        min-height: 2.85rem;
    }

    .qh-nav a {
        min-height: 44px;
        align-items: center;
        scroll-snap-align: start;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.78rem;
    }

    .qh-nav a iconify-icon {
        font-size: 1.35rem;
    }

    .qh-logo__visual {
        width: 42px;
        height: 42px;
    }

    body.qh-site.qot-category-mode .qh-hero {
        padding: 1rem 0.15rem 1.1rem;
    }

    body.qh-site.qot-category-mode .qh-hero h1 {
        font-size: clamp(1.45rem, 6vw, 2rem);
        line-height: 1.15;
    }

    body.qh-site.qot-category-mode .qh-hero__lead {
        font-size: 0.94rem;
    }

    .qh-site .site-main {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        padding-top: 1.1rem;
        padding-bottom: 3rem;
    }

    .qot-article-card {
        padding: 1rem 0.95rem 1.1rem;
        border-radius: 20px;
    }

    .qot-article-card__block--quotes {
        padding: 1.1rem 1rem 1.2rem;
    }

    .qot-article-quote-grid {
        gap: 0.85rem;
    }
}
