/* css for tutorial */

.testing-template-root {
    --gold: #d3a84c;
    --free: #5b9bd5;
    --slave: #c65f47;
    --ink: #0a1220;
    --panel: #0e1a2c;
    --paper: #efe7d4;
    --mist: #93a7bd;
}

.page-template-tutorials-view .footer-main h4,
.page-template-tutorials-view .footer-main h4 * {
    color: #fff !important;
    font-size: 16px !important;
}

.page-template-tutorials-view .footer-main p,
.page-template-tutorials-view .footer-main p * {
    color: #9FB0D3 !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: "Source Serif 4", Georgia, serif;
    overflow-x: hidden;
}

::selection {
    background: rgba(211, 168, 76, .35);
    color: #fff
}

/* ---------- ambient layered background ---------- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 82% -10%, rgba(91, 155, 213, .13), transparent 60%),
        radial-gradient(900px 560px at -12% 28%, rgba(198, 95, 71, .10), transparent 60%),
        radial-gradient(1200px 800px at 50% 115%, rgba(211, 168, 76, .08), transparent 55%),
        linear-gradient(180deg, #0a1220 0%, #0b1526 45%, #091019 100%);
}

.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image: repeating-linear-gradient(0deg, rgba(239, 231, 212, .022) 0 1px, transparent 1px 7px);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.watermark {
    position: fixed;
    right: -6rem;
    bottom: -8rem;
    z-index: -1;
    font-family: Fraunces, serif;
    font-size: 34rem;
    line-height: 1;
    color: rgba(211, 168, 76, .045);
    font-weight: 900;
    pointer-events: none;
    user-select: none;
}

/* ---------- progress + scrollbar ---------- */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 60;
    background: linear-gradient(90deg, var(--gold), #ecd08a);
    box-shadow: 0 0 12px rgba(211, 168, 76, .7)
}

::-webkit-scrollbar {
    width: 11px
}

::-webkit-scrollbar-track {
    background: #0a1220
}

::-webkit-scrollbar-thumb {
    background: #1c3050;
    border-radius: 8px;
    border: 2px solid #0a1220
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold)
}

/* ---------- reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ---------- seal ---------- */
.seal-rotor {
    transform-origin: 100px 100px;
    animation: spin 55s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.seal-glow {
    filter: drop-shadow(0 0 26px rgba(211, 168, 76, .28))
}

/* ---------- senate viz ---------- */
.stage-tab {
    transition: all .3s ease
}

.stage-tab.active {
    background: linear-gradient(180deg, rgba(211, 168, 76, .16), rgba(211, 168, 76, .05));
    border-color: var(--gold);
    color: var(--paper);
    box-shadow: 0 6px 24px -12px rgba(211, 168, 76, .5)
}

.stage-tab:not(.active):hover {
    border-color: rgba(211, 168, 76, .45);
    color: var(--paper)
}

.beam-wrap {
    transition: transform 1s cubic-bezier(.34, 1.3, .4, 1)
}

.pan-num {
    font-variant-numeric: tabular-nums
}

.seat {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    border: 1px solid rgba(147, 167, 189, .28);
    background: rgba(147, 167, 189, .06);
    transition: all .5s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--d, 0ms)
}

.seat.on.free {
    background: linear-gradient(160deg, #7fb3e2, #3d7cb8);
    border-color: #7fb3e2;
    box-shadow: 0 0 14px -2px rgba(91, 155, 213, .65)
}

.seat.on.slave {
    background: linear-gradient(160deg, #dd8266, #a34a33);
    border-color: #dd8266;
    box-shadow: 0 0 14px -2px rgba(198, 95, 71, .65)
}

.status-pill {
    transition: all .5s ease
}

/* ---------- house share bar ---------- */
.share-free,
.share-slave {
    transition: width 1.2s cubic-bezier(.2, .8, .2, 1)
}

/* ---------- related cards ---------- */
.rel-card {
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s, background .35s
}

.rel-card:hover {
    transform: translateX(6px);
    border-color: rgba(211, 168, 76, .55)
}

.rel-card .arrow {
    transition: transform .35s
}

.rel-card:hover .arrow {
    transform: translateX(5px);
    color: var(--gold)
}

.rel-card.current {
    border-color: var(--gold);
    background: linear-gradient(120deg, rgba(211, 168, 76, .14), rgba(211, 168, 76, .03))
}

.rule-orn {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(211, 168, 76, .6)
}

.rule-orn::before,
.rule-orn::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(211, 168, 76, .5), transparent)
}

#toTop {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all .4s
}

#toTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: none
}

.chip-t {
    font-family: "IBM Plex Mono", monospace
}

/* Media Query Responsive Rule - Tablet aur Mobile pe overflow/break rokne ke liye */
@media (max-width:1023px) {
    .watermark {
        display: none
    }

    section.top-section-circle {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    section.top-section-circle .chip-t {
        justify-content: center;
    }

    section.top-section-circle .flex-wrap {
        justify-content: center;
    }

    main#top {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width:640px) {
    #top h1.tutorial-h1 {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
    }

    #top h1.tutorial-h1 span {
        font-size: 2.25rem !important;
        letter-spacing: normal !important;
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}

/* ===== TESTING TEMPLATE: CSS PRIORITY OVERRIDES ===== */

html,
body {
    font-family: "Source Serif 4", Georgia, serif !important;
    background-color: #0a1220 !important;
    color: #efe7d4 !important;
}

#top {
    color: #efe7d4 !important;
    font-family: "Source Serif 4", Georgia, serif !important;
}

/* Font families */
#top .font-display,
.tutorial-footer .font-display {
    font-family: Fraunces, Georgia, serif !important;
}

footer.tutorial-footer {
    padding-bottom: 80px;
}

footer.tutorial-footer p {
    font-size: 12px !important;
}

footer.tutorial-footer h6 {
    text-transform: none !important;
    margin-bottom: 5px !important;
}

#top .font-body,
#top .font-serif {
    font-family: "Source Serif 4", Georgia, serif !important;
}

#top .font-sans,
.tutorial-footer .font-sans {
    font-family: "Libre Franklin", system-ui, sans-serif !important;
}

#top .font-mono,
#top .chip-t,
.tutorial-footer .font-mono {
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
}

#top p,
#top span,
#top a {
    font-family: 'Source Serif 4' !important;
}

/* Font sizes */
#top .text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

#top .text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

#top .text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

#top .text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

#top .text-2xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

#top .text-3xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

#top .text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
}

#top .text-6xl {
    font-size: 3.75rem !important;
    line-height: 1 !important;
}

#top .text-\[7px\] {
    font-size: 7px !important;
}

#top .text-\[9px\] {
    font-size: 9px !important;
}

#top .text-\[10px\] {
    font-size: 10px !important;
}

#top .text-\[11px\] {
    font-size: 11px !important;
}

#top .text-\[13px\] {
    font-size: 13px !important;
}

#top .text-\[15px\] {
    font-size: 15px !important;
}

#top .text-\[17px\] {
    font-size: 17px !important;
}

/* Text colors */
#top .text-paper {
    color: #efe7d4 !important;
}

#top .text-parch\/80 {
    color: rgb(223 211 184 / 80%) !important;
}

#top .text-parch\/85 {
    color: rgb(223 211 184 / 85%) !important;
}

#top .text-parch\/90 {
    color: rgb(223 211 184 / 90%) !important;
}

#top .text-mist {
    color: #93a7bd !important;
}

#top .text-gold {
    color: #d3a84c !important;
}

#top .text-gold-soft {
    color: #ecd08a !important;
}

#top .text-free {
    color: #5b9bd5 !important;
}

#top .text-slave {
    color: #c65f47 !important;
}

#top .text-\[\#e08a72\] {
    color: #e08a72 !important;
}

/* Background colors */
#top .bg-ink-900\/50 {
    background-color: rgb(10 18 32 / 50%) !important;
}

#top .bg-ink-800\/80 {
    background-color: rgb(14 26 44 / 80%) !important;
}

#top .bg-ink-800\/90 {
    background-color: rgb(14 26 44 / 90%) !important;
}

#top .bg-ink-900\/95 {
    background-color: rgb(10 18 32 / 95%) !important;
}

#top .bg-free {
    background-color: #5b9bd5 !important;
}

#top .bg-slave {
    background-color: #c65f47 !important;
}

#top .bg-free\/10 {
    background-color: rgb(91 155 213 / 10%) !important;
}

#top .bg-slave\/10 {
    background-color: rgb(198 95 71 / 10%) !important;
}

#top .bg-gold\/10 {
    background-color: rgb(211 168 76 / 10%) !important;
}

#top .bg-gold\/5 {
    background-color: rgb(211 168 76 / 5%) !important;
}

/* Borders */
#top .border-gold\/35 {
    border-color: rgb(211 168 76 / 35%) !important;
}

#top .border-gold\/40 {
    border-color: rgb(211 168 76 / 40%) !important;
}

#top .border-gold\/50 {
    border-color: rgb(211 168 76 / 50%) !important;
}

#top .border-gold\/60 {
    border-color: rgb(211 168 76 / 60%) !important;
}

#top .border-free\/30 {
    border-color: rgb(91 155 213 / 30%) !important;
}

#top .border-free\/50 {
    border-color: rgb(91 155 213 / 50%) !important;
}

#top .border-free\/60 {
    border-color: rgb(91 155 213 / 60%) !important;
}

#top .border-slave\/30 {
    border-color: rgb(198 95 71 / 30%) !important;
}

#top .border-slave\/50 {
    border-color: rgb(198 95 71 / 50%) !important;
}

/* Links */
#top a.text-free {
    color: #5b9bd5 !important;
}

#top a:hover.text-gold,
#top .hover\:text-gold:hover {
    color: #d3a84c !important;
}

/* Headings */
#top h1,
#top h2,
#top h3,
#top h4,
#top h5,
#top h6 {
    text-transform: none !important;
    color: #efe7d4 !important;
}

#top h1.font-display,
#top h2.font-display,
#top h3.font-display,
#top .font-display {
    font-family: Fraunces, Georgia, serif !important;
}

@media (min-width: 641px) {
    #top h1 {
        font-size: 66px !important;
    }

    #top h1 span {
        font-family: 'Source Serif 4' !important;
        font-weight: 500 !important;
        letter-spacing: -6px !important;
        font-size: 65px !important;
    }
}

#top h2 {
    font-size: 36px !important;
}

#top h2 span {
    font-family: 'Source Serif 4' !important;
    font-weight: 500 !important;
    letter-spacing: -2px !important;
    font-size: 36px !important;
}

.stage-tab:hover {
    border-color: #d3a84c !important;
    background-color: transparent !important;
}

.stage-tab:hover,
.stage-tab:focus,
.stage-tab:active,
.stage-tab:focus-visible,
button#prevStage:hover,
button#prevStage:focus,
button#prevStage:active,
button#prevStage:focus-visible,
button#nextStage:hover,
button#nextStage:focus,
button#nextStage:active,
button#nextStage:focus-visible {
    border-color: #d3a84c !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.stage-tab {
    border-color: #d3a84c49 !important;
}

#top button,
#toTop {
    font-family: inherit;
}

#top .stage-tab {
    transition: all 0.3s ease !important;
}

/* Footer typography and colors */
.tutorial-footer .text-paper {
    color: #efe7d4 !important;
}

.tutorial-footer .text-mist {
    color: #93a7bd !important;
}

.tutorial-footer .text-gold {
    color: #d3a84c !important;
}

#top i.fa-solid,
.tutorial-footer i.fa-solid,
#toTop i.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Responsive typography */
@media (min-width: 640px) {
    #top .sm\:text-xs {
        font-size: 0.75rem !important;
        line-height: 1rem !important;
    }

    #top .sm\:text-4xl {
        font-size: 2.25rem !important;
        line-height: 2.5rem !important;
    }

    #top .sm\:text-5xl {
        font-size: 3rem !important;
        line-height: 1 !important;
    }
}

@media (min-width: 1280px) {
    #top .xl\:text-4xl {
        font-size: 2.25rem !important;
        line-height: 2.5rem !important;
    }

    #top .xl\:text-7xl {
        font-size: 4.5rem !important;
        line-height: 1 !important;
    }

    #top .xl\:text-\[2\.7rem\] {
        font-size: 2.7rem !important;
    }

    #top .xl\:text-\[4\.1rem\] {
        font-size: 4.1rem !important;
    }
}