@font-face {
    font-family: Lahzeh;
    src: url('../assets/karabiz/fonts/Lahzeh-Regular.woff2');
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Lahzeh;
    src: url('../assets/karabiz/fonts/Lahzeh-Medium.woff2');
    font-weight: 500;
    font-display: swap
}

@font-face {
    font-family: Lahzeh;
    src: url('../assets/karabiz/fonts/Lahzeh-SemiBold.woff2');
    font-weight: 600;
    font-display: swap
}

@font-face {
    font-family: Lahzeh;
    src: url('../assets/karabiz/fonts/Lahzeh-Bold.woff2');
    font-weight: 700;
    font-display: swap
}

@font-face {
    font-family: Lahzeh;
    src: url('../assets/karabiz/fonts/Lahzeh-ExtraBold.woff2');
    font-weight: 800;
    font-display: swap
}

:root {
    --navy: #091A33;
    --blue: #11447A;
    --sky: #91C9E3;
    --cream: #FCF8F2;
    --gold: #B58A4E;
    --bg: var(--cream);
    --ink: var(--navy);
    --muted: var(--blue);
    --line: var(--sky);
    --cta: var(--blue);
    --cta-ink: var(--cream);
    --surface: var(--cream)
}

[data-theme=night] {
    --bg: var(--navy);
    --ink: var(--cream);
    --muted: var(--sky);
    --line: var(--blue);
    --cta: var(--sky);
    --cta-ink: var(--navy);
    --surface: var(--navy)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.8 Lahzeh, Arial, sans-serif
}

html[lang=en] body {
    font-family: Graphik, Helvetica, Arial, sans-serif
}

html[lang=en] .display {
    font-family: PortraitText, Graphik, Helvetica, Arial, sans-serif;
    letter-spacing: -.02em
}

button, input, textarea, select {
    font: inherit;
    color: inherit
}

a {
    color: inherit;
    text-decoration: none
}

button, a, input, select, textarea {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    cursor: not-allowed
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px
}

img {
    max-width: 100%
}

h1, h2, h3, p {
    margin-top: 0
}

h1 {
    line-height: 1.3;
    font-size: clamp(30px, 4vw, 54px);
    margin-bottom: 20px
}

h2 {
    font-size: 27px;
    line-height: 1.4
}

h3 {
    font-size: 20px;
    line-height: 1.6
}

p {
    margin-bottom: 18px
}

small, .muted {
    color: var(--muted)
}

small {
    font-size: 13px
}

.wrap {
    max-width: 1280px;
    margin: auto;
    padding: 0 32px
}

.topbar {
    height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid var(--line)
}

.topbar .brand {
    display: flex;
    align-items: center;
    margin-inline-end: 15px
}

.brand img {
    height: 51px;
    width: 49px;
    object-fit: contain
}

.topbar nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1
}

.topbar nav a:hover {
    color: var(--muted)
}

.tools, .row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

.tools {
    margin-inline-start: auto;
    flex-wrap: nowrap;
    gap: 8px
}

.ic {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    flex: none
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center
}

.small-btn {
    padding: 6px 13px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 30px;
    font-size: 13px;
    white-space: nowrap
}

.btn {
    min-height: 48px;
    padding: 10px 22px;
    border: 2px solid var(--cta);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    background: var(--cta);
    color: var(--cta-ink);
    line-height: 1.5;
    transition: transform .12s ease, box-shadow .12s ease
}

.btn:before {
    content: '';
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--line)
}

.btn.secondary {
    background: transparent;
    color: var(--muted)
}

.btn.danger {
    background: transparent;
    color: var(--ink);
    border-color: var(--gold)
}

.btn:disabled {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--navy);
    opacity: .65
}

.btn.text {
    background: transparent;
    color: var(--muted);
    border-color: transparent
}

.btn.wide {
    width: 100%
}

.hero {
    display: grid;
    grid-template-columns:1.1fr 1fr;
    gap: 65px;
    align-items: center;
    padding: 76px 0 65px
}

.hero h1 {
    font-size: clamp(42px, 5.3vw, 76px);
    line-height: 1.38;
    max-width: 650px;
    font-weight: 800
}

.hero p {
    max-width: 540px;
    font-size: 19px;
    color: var(--muted)
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    direction: ltr;
    color: var(--muted);
    font-family: Graphik, Arial;
    margin-bottom: 22px
}

.hero-art {
    height: 400px;
    border: 1px solid var(--line);
    border-radius: 48% 48% 24px 24px;
    position: relative;
    display: grid;
    place-items: center;
    background: var(--navy);
    overflow: hidden
}

.hero-art:before, .hero-art:after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    transform: rotate(-25deg) scaleX(1.5)
}

.hero-art:after {
    transform: rotate(45deg) scaleX(1.5)
}

.hero-art .mark {
    width: 170px;
    z-index: 1
}

.hero-art .portrait {
    position: absolute;
    bottom: 25px;
    inset-inline-start: 25px;
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--navy);
    z-index: 2
}

.orbit-label {
    position: absolute;
    top: 30px;
    inset-inline-end: 24px;
    background: var(--sky);
    color: var(--navy);
    border-radius: 35px;
    padding: 9px 15px;
    z-index: 2;
    font-size: 13px
}

.hero-art .orbit-icon {
    position: absolute;
    width: 48px;
    bottom: 45px;
    inset-inline-end: 45px
}

.section {
    padding: 46px 0;
    border-top: 1px solid var(--line)
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px
}

.section-head h2 {
    margin: 0
}

.cards {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px
}

.card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface)
}

.card-body {
    padding: 22px
}

.cover {
    height: 230px;
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--blue)
}

.placeholder-cover {
    height: 230px;
    background: var(--blue);
    display: grid;
    place-items: center
}

.placeholder-cover .ic {
    width: 76px;
    height: 76px
}

.card p {
    font-size: 14px
}

.price {
    font-size: 22px;
    font-weight: 700
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    line-height: 1.7
}

.badge:before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted)
}

.badge.gold {
    border-color: var(--gold)
}

.badge.gold:before {
    background: var(--gold)
}

.banner {
    padding: 30px 35px;
    border: 1px solid var(--line);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center
}

.banner .slide-photo {
    height: 130px;
    width: 180px;
    object-fit: contain
}

.quote {
    font-size: 18px
}

.partners {
    display: flex;
    justify-content: center;
    gap: 65px;
    align-items: center;
    flex-wrap: wrap
}

.partners img {
    max-width: 180px;
    max-height: 75px;
    object-fit: contain
}

.stat {
    font-size: 48px;
    font-weight: 700
}

.footer {
    border-top: 1px solid var(--line);
    margin-top: 50px;
    padding: 42px 0
}

.footer-grid {
    display: grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap: 35px
}

.footer a {
    display: block;
    margin: 8px 0;
    font-size: 14px
}

.footer .brand img {
    height: 65px;
    width: 62px
}

.copyright {
    font-size: 12px;
    color: var(--muted);
    margin-top: 40px
}

.page-head {
    padding: 38px 0 25px
}

.page-head h1 {
    font-size: 36px
}

.crumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px
}

.layout {
    display: grid;
    grid-template-columns:250px minmax(0, 1fr);
    gap: 28px;
    align-items: start
}

.layout.buy {
    grid-template-columns:minmax(0, 1fr) 365px
}

.sidebar {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    position: sticky;
    top: 20px
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border-radius: 9px;
    font-size: 14px
}

.sidebar a.active {
    background: var(--cta);
    color: var(--cta-ink)
}

.sidebar h3 {
    font-size: 14px;
    margin: 14px 8px
}

.content {
    min-width: 0
}

.panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
    margin-bottom: 22px
}

.panel h2 {
    font-size: 23px
}

.panel h3 {
    font-size: 18px
}

.buybox {
    position: sticky;
    top: 24px
}

.buybox .panel {
    padding: 23px
}

.field-label {
    display: block;
    margin-bottom: 17px;
    font-size: 14px;
    font-weight: 600
}

.field, .select, textarea {
    width: 100%;
    border: 2px solid var(--blue);
    border-radius: 24px;
    background: var(--surface);
    padding: 10px 18px;
    min-height: 48px;
    margin-top: 7px;
    font-weight: 400;
    min-width: 0
}

textarea {
    border-radius: 18px;
    min-height: 110px;
    resize: vertical
}

input::placeholder {
    color: var(--muted)
}

.fields {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 0 22px
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 14px
}

.check input {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--cta);
    border-radius: 7px;
    flex: none
}

.check input:checked {
    background: var(--cta);
    box-shadow: inset 0 0 0 4px var(--bg)
}

.check input[type=radio] {
    border-radius: 50%
}

.notice {
    border: 1px solid var(--gold);
    border-inline-start: 4px solid var(--gold);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 20px 0;
    font-size: 14px
}

.notice .ic {
    margin-inline-end: 10px
}

.split {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0
}

.total {
    border-top: 1px solid var(--line);
    padding-top: 17px;
    font-weight: 700
}

.tabs {
    display: flex;
    gap: 8px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 24px
}

.tabs a, .tabs button {
    white-space: nowrap;
    padding: 7px 16px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 30px;
    font-size: 14px
}

.tabs .active {
    background: var(--cta);
    color: var(--cta-ink)
}

.player {
    aspect-ratio: 16/9;
    background: var(--navy);
    border: 1px solid var(--blue);
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--cream);
    gap: 16px;
    position: relative;
    overflow: hidden
}

.player .ic {
    height: 62px;
    width: 62px
}

.player p {
    margin: 0
}

.player .play-controls {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 12px;
    background: var(--navy);
    display: flex;
    gap: 20px;
    font-size: 12px;
    align-items: center
}

.player .play-controls .ic {
    height: 21px;
    width: 21px
}

.progress {
    height: 7px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0
}

.progress span {
    display: block;
    background: var(--cta);
    height: 100%;
    width: 35%
}

details {
    border-bottom: 1px solid var(--line);
    padding: 13px 0
}

summary {
    cursor: pointer;
    font-weight: 600
}

.lesson-link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 8px;
    font-size: 14px
}

.lesson-link:hover {
    background: var(--line)
}

.lesson-link small {
    margin-inline-start: auto
}

.lesson-link.active {
    border-inline-start: 3px solid var(--gold)
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    font-size: 14px
}

th, td {
    padding: 16px 18px;
    text-align: start;
    border-bottom: 1px solid var(--line)
}

th {
    font-size: 12px;
    color: var(--muted)
}

td .icon-btn {
    width: 35px;
    height: 35px
}

td .ic {
    width: 19px;
    height: 19px
}

.toolbar {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.toolbar .field {
    width: 240px;
    margin: 0
}

.toolbar .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px
}

.kpis {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px
}

.kpi {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 23px
}

.kpi strong {
    display: block;
    font-size: 32px
}

.chart {
    height: 180px;
    display: flex;
    gap: 16px;
    align-items: end;
    padding: 20px 25px;
    border-bottom: 1px solid var(--line);
    direction: ltr;
    margin: 22px 0
}

.chart .bar {
    flex: 1;
    background: var(--blue);
    border-radius: 7px 7px 0 0;
    position: relative;
    min-width: 12px
}

.chart .bar:nth-child(even) {
    background: var(--sky)
}

.chart .bar span {
    position: absolute;
    bottom: -28px;
    left: 0;
    font-size: 10px
}

.state-card {
    max-width: 640px;
    margin: 45px auto;
    text-align: center;
    padding: 48px 30px;
    border: 1px solid var(--line);
    border-radius: 24px
}

.state-card > .ic {
    width: 70px;
    height: 70px;
    margin-bottom: 24px
}

.state-card p {
    color: var(--muted)
}

.skeleton {
    height: 22px;
    border-radius: 10px;
    background: var(--line);
    margin: 16px 0;
    animation: pulse 1.4s infinite
}

.skeleton.big {
    height: 200px
}

.auth {
    max-width: 480px;
    margin: 55px auto
}

.auth .panel {
    padding: 35px
}

.auth h1 {
    font-size: 31px
}

.auth .brand {
    text-align: center;
    display: block;
    margin: 20px
}

.ticket {
    border: 2px solid var(--cta);
    border-radius: 23px;
    padding: 30px;
    max-width: 780px;
    margin: 25px auto
}

.ticket .barcode {
    max-width: 100%;
    height: 100px
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    gap: 25px
}

.ticket-code {
    font-family: monospace;
    font-size: 23px;
    letter-spacing: .16em
}

.dimmed {
    opacity: .6
}

.notice.small {
    font-size: 12px
}

.prototype-bar {
    margin: 20px 0;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px
}

.prototype-bar select {
    max-width: 240px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 5px 12px
}

.prototype-bar a {
    margin-inline-start: auto
}

.demo-intro {
    padding: 60px 0 25px;
    max-width: 760px
}

.demo-intro h1 {
    font-size: 48px
}

.demo-groups {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 24px 0
}

.demo-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 18px
}

.demo-card {
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 18px
}

.demo-card h3 {
    font-size: 18px
}

.demo-card details {
    font-size: 12px;
    border: 0
}

.state-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px
}

.state-links a {
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 15px
}

.code {
    direction: ltr;
    font-family: monospace;
    font-size: 12px;
    color: var(--muted)
}

.floating-cookie {
    position: fixed;
    bottom: 18px;
    inset-inline-start: 18px;
    max-width: 420px;
    z-index: 10;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 0 var(--line);
    font-size: 13px
}

.floating-cookie p {
    margin-bottom: 9px
}

.floating-cookie .btn {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 12px
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cta);
    color: var(--cta-ink);
    padding: 14px 24px;
    border-radius: 25px;
    z-index: 100;
    max-width: 90vw;
    text-align: center
}

dialog {
    width: min(580px, calc(100% - 32px));
    border: 2px solid var(--gold);
    background: var(--bg);
    color: var(--ink);
    border-radius: 24px;
    padding: 28px;
    max-height: 90vh;
    overflow: auto
}

dialog::backdrop {
    background: rgba(9, 26, 51, .75)
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.modal-head h2 {
    margin: 0;
    font-size: 24px
}

.article {
    max-width: 840px;
    white-space: pre-line;
    margin: auto
}

.article p {
    line-height: 2.2
}

.avatar {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover
}

.message {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    margin: 20px 0
}

.message.reply {
    margin-inline-start: 50px;
    border-color: var(--gold)
}

.icon-gallery {
    display: grid;
    grid-template-columns:repeat(6, 1fr);
    gap: 16px
}

.icon-gallery .panel {
    text-align: center;
    font-size: 11px;
    padding: 18px 5px
}

.icon-gallery .ic {
    width: 38px;
    height: 38px;
    display: block;
    margin: 0 auto 12px
}

.live-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 300px;
    gap: 22px
}

.live-grid .player {
    min-height: 350px
}

.pip {
    position: absolute;
    width: 90px;
    height: 80px;
    bottom: 65px;
    inset-inline-end: 18px;
    border: 2px solid var(--sky);
    border-radius: 12px;
    object-fit: cover
}

.mobile-buy {
    display: none
}

.hidden, [hidden] {
    display: none !important
}

.steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0
}

.step {
    border: 1px solid var(--line);
    padding: 8px 15px;
    border-radius: 24px;
    font-size: 12px
}

.step.active {
    background: var(--cta);
    color: var(--cta-ink)
}

.file-drop {
    padding: 35px;
    border: 2px dashed var(--line);
    border-radius: 20px;
    text-align: center
}

.file-drop input {
    max-width: 100%
}

.error-text {
    color: var(--ink);
    border-inline-start: 3px solid var(--gold);
    padding-inline-start: 10px;
    font-size: 12px;
    margin-top: 6px
}

.table-compact td {
    padding: 8px 18px
}

@keyframes pulse {
    50% {
        opacity: .4
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}

@media (max-width: 1023px) {
    .wrap {
        padding: 0 22px
    }

    .topbar nav {
        gap: 14px
    }

    .hero {
        gap: 30px
    }

    .hero-art {
        height: 330px
    }

    .cards {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .layout.buy {
        grid-template-columns:minmax(0, 1fr) 320px
    }

    .demo-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .live-grid {
        grid-template-columns:1fr
    }

    .layout {
        grid-template-columns:200px minmax(0, 1fr)
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px
    }

    .wrap {
        padding: 0 17px
    }

    .topbar {
        height: 78px;
        gap: 9px
    }

    .topbar nav {
        display: none
    }

    .topbar .brand {
        margin: 0
    }

    .tools {
        gap: 5px
    }

    .tools .icon-btn.optional {
        display: none
    }

    .brand img {
        height: 39px;
        width: 39px
    }

    .icon-btn {
        width: 39px;
        height: 39px
    }

    .hero {
        grid-template-columns:1fr;
        padding: 40px 0;
        gap: 28px
    }

    .hero h1 {
        font-size: 43px
    }

    .hero p {
        font-size: 17px
    }

    .hero-art {
        height: 280px
    }

    .hero-art .mark {
        width: 130px
    }

    .hero-art .portrait {
        height: 75px;
        width: 75px
    }

    .section {
        padding: 30px 0
    }

    .cards, .demo-grid {
        grid-template-columns:1fr
    }

    .cover {
        height: 240px
    }

    .section-head h2 {
        font-size: 23px
    }

    .footer-grid {
        grid-template-columns:1fr 1fr
    }

    .footer-grid > :first-child {
        grid-column: 1/-1
    }

    .layout, .layout.buy {
        grid-template-columns:1fr
    }

    .sidebar {
        position: static;
        display: none
    }

    .sidebar.open {
        display: block
    }

    .buybox {
        position: static
    }

    .mobile-buy {
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        padding: 10px 16px;
        background: var(--bg);
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 8;
        gap: 15px
    }

    .fields {
        grid-template-columns:1fr
    }

    .panel {
        padding: 19px
    }

    .kpis {
        grid-template-columns:1fr
    }

    .kpi {
        padding: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center
    }

    .kpi strong {
        font-size: 24px
    }

    .auth {
        margin: 30px auto
    }

    .auth .panel {
        padding: 22px
    }

    .page-head h1 {
        font-size: 30px
    }

    .demo-intro {
        padding-top: 35px
    }

    .demo-intro h1 {
        font-size: 35px
    }

    .icon-gallery {
        grid-template-columns:repeat(3, 1fr)
    }

    .banner {
        padding: 20px;
        align-items: start
    }

    .banner .slide-photo {
        width: 105px;
        height: 90px
    }

    .floating-cookie {
        inset-inline: 12px;
        bottom: 12px;
        max-width: none
    }

    .live-grid .player {
        min-height: 220px
    }

    .ticket {
        padding: 20px
    }

    .prototype-bar {
        margin-bottom: 30px
    }

    .row .btn {
        font-size: 14px
    }

    .tools .small-btn {
        padding: 5px 9px
    }

    .page-head {
        padding-top: 28px
    }

    .footer {
        padding-bottom: 100px
    }
}

@media print {
    .topbar, .footer, .prototype-bar, .mobile-buy, .no-print, .floating-cookie {
        display: none !important
    }

    body {
        background: var(--cream);
        color: var(--navy)
    }

    .ticket {
        border-color: var(--navy);
        break-inside: avoid;
        margin: 0;
        max-width: none
    }

    .wrap {
        padding: 0
    }

    .ticket .barcode {
        height: 130px
    }

    .ticket-code {
        font-size: 28px
    }

    @page {
        size: A4;
        margin: 18mm
    }
}

.btn {
    position: relative;
    text-align: center;
    padding-inline: 44px
}

.btn.loading:before {
    transform: none;
    top: calc(50% - 7px)
}

.badge {
    position: relative;
    justify-content: center;
    min-width: 112px;
    text-align: center;
    padding-inline: 20px
}

.badge:before {
    position: absolute;
    inset-inline-start: 9px;
    top: 50%;
    transform: translateY(-50%)
}

.field, .select, textarea {
    text-align: center
}

.toolbar .btn {
    padding-inline: 40px
}

.icon-btn {
    padding: 0
}

.pagination {
    justify-content: center
}

/* V3.1 alignment, icon and night-theme refinements */
.select-wrap {
    display: block;
    position: relative;
    margin-top: 7px
}

.select-wrap .select {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 0;
    padding-inline: 44px;
    line-height: 1.5
}

.select-wrap > .ic {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none
}

.sidebar a {
    min-height: 44px;
    align-items: center
}

.sidebar a .ic {
    width: 22px;
    height: 22px
}

.sidebar a span {
    min-width: 0;
    line-height: 1.55
}

.sidebar a.active .ic {
    filter: brightness(0) invert(1)
}

summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 44px;
    padding-inline: 4px
}

summary::-webkit-details-marker {
    display: none
}

summary > .ic {
    width: 18px;
    height: 18px;
    margin-inline-start: auto;
    transition: transform .18s ease
}

details[open] > summary > .ic {
    transform: rotate(180deg)
}

.footer-logotype img {
    width: auto !important;
    height: 74px !important;
    max-width: 220px
}

.partners-section {
    background: var(--navy);
    color: var(--cream);
    border: 0;
    border-radius: 28px;
    padding-inline: 34px;
    margin-block: 24px
}

.partners-section h2 {
    color: var(--cream)
}

.partners-section .partners img {
    opacity: .94
}

.fields > .field-label {
    min-width: 0
}

[data-theme=night] .eyebrow, [data-theme=night] .crumb, [data-theme=night] .sidebar > small, [data-theme=night] .price, [data-theme=night] .total strong, [data-theme=night] .section-head > a {
    color: var(--gold)
}

[data-theme=night] .panel, [data-theme=night] .card, [data-theme=night] .sidebar, [data-theme=night] .banner {
    box-shadow: inset 0 0 0 1px rgba(181, 138, 78, .28)
}

[data-theme=night] .notice {
    border-color: var(--gold)
}

@media (max-width: 700px) {
    .select-wrap > .ic {
        inset-inline-end: 14px
    }

    .footer-logotype img {
        height: 62px !important
    }

    .partners-section {
        padding-inline: 20px
    }

    .sidebar a {
        min-height: 48px
    }
}

.hero-art.generated {
    height: auto;
    aspect-ratio: 1.56;
    background: var(--cream);
    border-radius: 28px;
    overflow: hidden
}

.hero-art.generated:before, .hero-art.generated:after {
    display: none
}

.hero-generated-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-art.generated .hero-generated-image {
    max-width: none
}

@media (max-width: 700px) {
    .hero-art.generated {
        height: auto;
        aspect-ratio: 1.45;
        border-radius: 22px
    }

    .hero-generated-image {
        object-position: center
    }
}

/* V3.3 — integrated layout, typography and responsive behavior */
html[lang=en] body {
    font-size: 15px;
    line-height: 1.62;
    letter-spacing: -.005em
}

html[lang=en] h1, html[lang=en] h2, html[lang=en] h3 {
    font-family: PortraitText, Graphik, Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.018em
}

html[lang=en] h2 {
    line-height: 1.18
}

html[lang=en] h3 {
    line-height: 1.28
}

html[lang=en] .card-body {
    line-height: 1.45
}

html[lang=en] .card-body small {
    line-height: 1.35
}

.site-header {
    position: relative;
    z-index: 30
}

.topbar {
    align-items: flex-end;
    padding-bottom: 16px
}

.topbar .brand, .topbar nav, .topbar .tools, .topbar > .icon-btn {
    align-self: flex-end
}

.topbar nav {
    padding-bottom: 8px
}

.topbar .tools {
    padding-bottom: 2px
}

.hero {
    position: relative;
    display: block;
    min-height: 520px;
    padding: 85px 0 70px;
    isolation: isolate
}

.hero > div:first-child {
    position: relative;
    z-index: 2;
    width: min(48%, 610px)
}

.hero-art.generated {
    position: absolute;
    z-index: 1;
    inset-block: 18px;
    inset-inline-end: -36px;
    width: 72%;
    height: calc(100% - 36px);
    aspect-ratio: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible
}

.hero-generated-image {
    object-fit: contain
}

.hero-art.generated {
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .28) 14%, #000 38%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .28) 14%, #000 38%)
}

html[dir=rtl] .hero-art.generated {
    mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, .28) 14%, #000 38%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, .28) 14%, #000 38%)
}

.section {
    position: relative;
    border-top: 0;
    padding-top: 58px
}

.section:before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(to var(--network-direction, right), var(--gold) 0 10%, var(--line) 22% 100%);
    opacity: .9
}

.section:after {
    content: "";
    position: absolute;
    top: -4px;
    inset-inline-start: 0;
    width: 138px;
    height: 9px;
    background: radial-gradient(circle at 4px 50%, var(--gold) 0 4px, transparent 4.5px), radial-gradient(circle at 38px 50%, var(--line) 0 3px, transparent 3.5px), radial-gradient(circle at 72px 50%, var(--gold) 0 2px, transparent 2.5px), radial-gradient(circle at 112px 50%, var(--line) 0 3px, transparent 3.5px)
}

html[dir=rtl] .section {
    --network-direction: left
}

.experience-section {
    display: grid;
    grid-template-columns:minmax(280px, .8fr) minmax(0, 1.35fr);
    gap: 32px;
    align-items: center;
    min-height: 310px
}

.experience-copy {
    position: relative;
    z-index: 2
}

.experience-copy p {
    color: var(--muted);
    max-width: 440px
}

.experience-image {
    width: 100%;
    height: 310px;
    object-fit: contain;
    mask-image: linear-gradient(to right, transparent 0, #000 16% 84%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16% 84%, transparent 100%)
}

html[dir=rtl] .experience-section {
    grid-template-columns:minmax(0, 1.35fr) minmax(280px, .8fr)
}

html[dir=rtl] .experience-copy {
    grid-column: 2;
    grid-row: 1
}

html[dir=rtl] .experience-image {
    grid-column: 1;
    grid-row: 1
}

.partners {
    align-items: flex-end
}

.partners img {
    display: block;
    height: 72px;
    width: 180px;
    object-fit: contain;
    object-position: center bottom
}

.cards {
    align-items: stretch
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%
}

.course-cover-link {
    display: block
}

.course-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1
}

.course-card h3 {
    margin: 5px 0 12px;
    min-height: 2.6em
}

.course-guide {
    display: block;
    margin-bottom: 2px
}

.course-meta {
    align-items: baseline;
    flex-wrap: nowrap;
    margin-top: auto
}

.lesson-count {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap
}

.course-action {
    margin-top: 14px;
    display: flex;
    align-items: center
}

.course-action .btn {
    min-width: 150px
}

.course-progress {
    margin-top: 5px
}

.prototype-footer {
    max-width: 1280px;
    margin: 0 auto 18px !important;
    border-radius: 14px;
    clear: both
}

.footer {
    margin-bottom: 0
}

.auth {
    padding-block: 28px
}

.auth .panel {
    box-shadow: none
}

@media (max-width: 1023px) {
    .hero {
        min-height: 470px
    }

    .hero > div:first-child {
        width: 52%
    }

    .hero-art.generated {
        width: 68%;
        inset-inline-end: -24px
    }

    .experience-section {
        grid-template-columns:1fr 1.2fr
    }

    .course-card h3 {
        min-height: auto
    }
}

@media (max-width: 700px) {
    body {
        overflow-x: hidden
    }

    .wrap {
        padding-inline: 18px
    }

    .topbar {
        height: 74px;
        padding-bottom: 12px;
        position: relative
    }

    .topbar nav {
        display: none
    }

    .topbar nav.open {
        display: flex;
        position: absolute;
        top: 68px;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 16px 35px rgba(9, 26, 51, .22);
        z-index: 50
    }

    .topbar nav.open a {
        padding: 12px 14px;
        border-bottom: 1px solid var(--line)
    }

    .topbar nav.open a:last-child {
        border-bottom: 0
    }

    .topbar .brand {
        margin-inline-end: 0
    }

    .topbar .tools {
        margin-inline-start: auto
    }

    .hero {
        min-height: 0;
        padding: 54px 0 28px;
        display: flex;
        flex-direction: column
    }

    .hero > div:first-child {
        width: 100%;
        z-index: 2
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 52px);
        line-height: 1.25
    }

    .hero p {
        font-size: 16px;
        line-height: 1.8
    }

    .hero-art.generated {
        position: relative;
        inset: auto;
        width: calc(100% + 36px);
        height: 260px;
        margin-inline: -18px;
        margin-top: -8px;
        order: 2;
        mask-image: linear-gradient(to bottom, transparent 0, #000 24% 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24% 92%, transparent 100%)
    }

    html[dir=rtl] .hero-art.generated {
        mask-image: linear-gradient(to bottom, transparent 0, #000 24% 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24% 92%, transparent 100%)
    }

    .section {
        padding-top: 43px
    }

    .section:after {
        width: 104px;
        background: radial-gradient(circle at 4px 50%, var(--gold) 0 4px, transparent 4.5px), radial-gradient(circle at 38px 50%, var(--line) 0 3px, transparent 3.5px), radial-gradient(circle at 72px 50%, var(--gold) 0 2px, transparent 2.5px)
    }

    .experience-section, .experience-section[dir] {
        display: flex;
        flex-direction: column;
        gap: 8px
    }

    .experience-copy, html[dir=rtl] .experience-copy {
        order: 1
    }

    .experience-image, html[dir=rtl] .experience-image {
        order: 2;
        width: calc(100% + 36px);
        height: 235px;
        margin-inline: -18px
    }

    .partners {
        gap: 22px;
        justify-content: space-between
    }

    .partners img {
        width: 28%;
        height: 58px
    }

    .course-card {
        border-radius: 16px
    }

    .course-card .card-body {
        padding: 18px
    }

    .course-card h3 {
        font-size: 21px;
        margin-bottom: 10px
    }

    .course-meta {
        gap: 8px
    }

    .course-meta .price {
        font-size: 19px
    }

    .course-action .btn {
        width: 100%;
        min-width: 0
    }

    .layout, .layout.buy {
        display: block
    }

    .sidebar.open {
        display: block;
        position: relative;
        margin-bottom: 20px
    }

    .panel {
        border-color: transparent;
        border-radius: 0;
        padding-inline: 0;
        box-shadow: none !important
    }

    .buybox .panel, .ticket, .state-card, .message, .auth .panel {
        border: 1px solid var(--line);
        border-radius: 18px;
        padding-inline: 18px
    }

    .auth {
        margin: 18px auto;
        padding: 0
    }

    .auth > .brand img {
        height: 78px !important
    }

    .auth .panel h1 {
        text-align: center
    }

    .auth .field-label {
        margin-bottom: 14px
    }

    .auth .btn {
        margin-top: 8px
    }

    .fields {
        gap: 0
    }

    .page-head {
        padding-bottom: 12px
    }

    .page-head h1 {
        font-size: 30px
    }

    .prototype-footer {
        margin: 0 12px 12px !important;
        width: auto;
        padding: 10px 12px;
        gap: 8px;
        font-size: 11px
    }

    .prototype-footer a {
        margin-inline-start: 0;
        width: 100%;
        text-align: center
    }

    .footer {
        padding-bottom: 34px
    }

    .mobile-buy {
        padding-bottom: max(10px, env(safe-area-inset-bottom))
    }
}

/* V3.3 final visual corrections */
.topbar {
    padding-bottom: 7px
}

.topbar nav {
    padding-bottom: 2px
}

.topbar .tools {
    padding-bottom: 0
}

.brand-page-title {
    margin: 0
}

.brand-title-image {
    display: block;
    width: clamp(145px, 15vw, 190px);
    height: auto;
    max-height: 66px;
    object-fit: contain;
    object-position: left bottom
}

.footer-logotype .brand-title-image {
    width: 220px !important;
    height: auto !important;
    max-height: 78px
}

.footer-logotype {
    display: inline-flex !important;
    align-items: flex-end
}

html[dir=rtl] .brand-title-image {
    object-position: right bottom
}

h1, h2, h3, p, label, summary, th, td, .field-label {
    color: var(--ink)
}

.field, .select, textarea {
    color: var(--ink)
}

.field option, .select option {
    color: var(--navy);
    background: var(--cream)
}

.section {
    position: relative;
    border-top: 1px solid var(--line);
    border-inline-start: 1px solid var(--line);
    padding: 58px 0 46px;
    padding-inline-start: 28px
}

.section:before {
    content: "";
    position: absolute;
    top: -5px;
    inset-inline-start: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold)
}

.section:after {
    display: none
}

.reviews-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 42px
}

.review-card {
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--line)
}

.review-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px
}

.review-person img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover
}

.review-person small {
    display: block
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px
}

.review-stars .ic {
    width: 22px;
    height: 22px
}

.review-criteria {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px
}

.review-card p {
    margin: 0
}

.review-note {
    display: block;
    margin-top: 14px
}

@media (max-width: 700px) {
    .topbar {
        padding-bottom: 6px
    }

    .brand-title-image {
        width: 145px;
        max-height: 54px
    }

    .section {
        padding: 43px 0 30px;
        padding-inline-start: 18px
    }

    .section:after {
        display: none
    }

    .reviews-grid {
        grid-template-columns:1fr;
        gap: 20px
    }

    .review-person img {
        width: 62px;
        height: 62px
    }

    .footer-logotype .brand-title-image {
        width: 190px !important
    }

    .auth > .brand img {
        height: auto !important;
        max-height: 62px !important
    }
}

.experience-stage {
    min-width: 0;
    overflow: hidden
}

.experience-image {
    transition: opacity .2s ease
}

.experience-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px
}

.experience-index {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    color: var(--muted);
    font-size: 12px;
    direction: ltr
}

.experience-controls .icon-btn {
    border-color: var(--line)
}

@media (max-width: 700px) {
    .experience-controls {
        margin-top: 12px
    }

    .experience-stage {
        width: calc(100% + 36px);
        margin-inline: -18px
    }

    .experience-stage .experience-image {
        width: 100%;
        margin: 0
    }
}

.partners {
    gap: 20px
}

.partners img {
    width: 126px;
    max-width: 126px;
    height: 54px;
    max-height: 54px
}

@media (max-width: 700px) {
    .partners {
        gap: 10px;
        justify-content: center
    }

    .partners img {
        width: 92px;
        max-width: 29%;
        height: 46px
    }
}

.home-brand {
    padding-top: 28px;
    margin-bottom: -36px;
    position: relative;
    z-index: 3
}

.home-brand .brand-title-image {
    width: 180px;
    max-height: 64px
}

.experience-copy h2, .experience-copy p {
    transition: opacity .18s ease
}

@media (max-width: 700px) {
    .home-brand {
        padding-top: 20px;
        margin-bottom: -20px
    }

    .home-brand .brand-title-image {
        width: 145px;
        max-height: 52px
    }
}

.experience-section {
    align-items: start
}

.experience-copy {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding-top: 28px
}

.experience-copy h2 {
    min-height: 2.8em;
    margin-bottom: 14px
}

.experience-copy p {
    min-height: 4.2em;
    margin-bottom: 0
}

.experience-controls {
    margin-top: auto
}

.experience-stage {
    height: 330px;
    display: flex;
    align-items: center
}

.experience-stage .experience-image {
    height: 100%;
    mask-image: radial-gradient(ellipse 88% 82% at center, #000 58%, rgba(0, 0, 0, .72) 76%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 88% 82% at center, #000 58%, rgba(0, 0, 0, .72) 76%, transparent 100%)
}

@media (max-width: 700px) {
    .experience-copy {
        min-height: 285px;
        padding-top: 0
    }

    .experience-copy h2 {
        min-height: 3.1em
    }

    .experience-copy p {
        min-height: 5.4em
    }

    .experience-stage {
        height: 245px
    }
}

/* Model 3 custom dropdowns */
.custom-select {
    position: relative;
    display: block
}

.native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0 !important;
    padding-inline: 44px !important
}

.custom-select-trigger > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.custom-select-trigger > .chevron {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%)
}

.custom-select-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 7px);
    inset-inline: 0;
    min-width: 100%;
    max-height: 260px;
    overflow: auto;
    padding: 7px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(9, 26, 51, .2)
}

.custom-select-menu button {
    width: 100%;
    min-height: 43px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: start;
    font-family: Lahzeh, Arial, sans-serif
}

.custom-select-menu button:last-child {
    border-bottom: 0
}

html[lang=en] .custom-select-menu button {
    font-family: Graphik, Helvetica, Arial, sans-serif
}

.custom-select-menu button .ic {
    width: 18px;
    height: 18px;
    opacity: 0
}

.custom-select-menu button[aria-selected=true] {
    color: var(--muted);
    font-weight: 700
}

.custom-select-menu button[aria-selected=true] .ic {
    opacity: 1
}

.custom-select.open .custom-select-trigger > .chevron {
    transform: translateY(-50%) rotate(180deg)
}

.footer-combination {
    width: 155px !important;
    height: auto !important;
    max-height: 108px;
    object-fit: contain
}

.footer-logotype .footer-combination {
    width: 155px !important;
    height: auto !important
}

.hero .home-brand {
    padding: 0;
    margin: 0 0 28px;
    position: relative;
    z-index: 3
}

.hero .home-brand .brand-title-image {
    width: 180px;
    max-height: 64px
}

.footer-combination, .footer-logotype .footer-combination {
    width: 465px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 220px !important
}

.footer-grid > :first-child {
    display: flex;
    align-items: flex-start
}

@media (max-width: 700px) {
    .hero .home-brand {
        padding: 0;
        margin-bottom: 20px
    }

    .hero .home-brand .brand-title-image {
        width: 145px;
        max-height: 52px
    }

    .footer-combination, .footer-logotype .footer-combination {
        width: 360px !important;
        max-width: 100% !important
    }
}

/* Home scroll rocket */
.rocket-rail {
    position: fixed;
    z-index: 12;
    top: 108px;
    bottom: 24px;
    width: 62px;
    pointer-events: none
}

.rocket-rail img {
    position: absolute;
    bottom: 0;
    width: 58px;
    height: auto;
    will-change: transform;
    transition: transform .08s linear
}

html[dir=rtl] .rocket-rail {
    left: 12px
}

html[dir=ltr] .rocket-rail {
    right: 12px
}

@media (min-width: 1100px) {
    body:has(.rocket-rail) main.wrap {
        max-width: 1200px
    }
}

@media (max-width: 1023px) {
    .rocket-rail {
        width: 42px;
        top: 88px;
        bottom: 16px;
        opacity: .9
    }

    .rocket-rail img {
        width: 40px
    }

    html[dir=rtl] .rocket-rail {
        left: 3px
    }

    html[dir=ltr] .rocket-rail {
        right: 3px
    }
}

@media (max-width: 700px) {
    body:has(.rocket-rail) main.wrap {
        padding-inline: 28px
    }

    .rocket-rail {
        width: 30px;
        top: 82px;
        bottom: 12px
    }

    .rocket-rail img {
        width: 29px
    }
}

.astronaut-profile {
    position: relative;
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    flex: none
}

.astronaut-avatar {
    position: absolute;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    object-fit: cover;
    top: 10px;
    left: 10px
}

.astronaut-helmet {
    position: absolute;
    inset: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
    z-index: 2
}

@media (max-width: 700px) {
    .astronaut-profile {
        width: 44px;
        height: 44px
    }

    .astronaut-helmet {
        width: 44px;
        height: 44px
    }

    .astronaut-avatar {
        width: 27px;
        height: 27px;
        top: 8px;
        left: 8px
    }
}

.hero {
    padding-top: 150px;
    min-height: 590px
}

.hero .home-brand {
    margin-bottom: 34px
}

.rocket-rail {
    width: 82px
}

.rocket-rail img {
    width: 76px
}

@media (max-width: 1023px) {
    .hero {
        padding-top: 112px
    }

    .rocket-rail {
        width: 56px
    }

    .rocket-rail img {
        width: 54px
    }
}

@media (max-width: 700px) {
    .hero {
        padding-top: 76px
    }

    .rocket-rail {
        width: 39px
    }

    .rocket-rail img {
        width: 38px
    }
}

.rocket-rail {
    top: 92px
}

.footer-grid {
    align-items: start
}

.footer-grid > :first-child, .footer-logotype {
    align-self: start;
    margin-top: 0 !important;
    padding-top: 0 !important
}

.footer-combination, .footer-logotype .footer-combination {
    display: block;
    object-position: top left
}

@media (max-width: 1023px) {
    .rocket-rail {
        top: 78px
    }
}

@media (max-width: 700px) {
    .rocket-rail {
        top: 72px
    }
}

/* Final navigation, footer, rocket and signed-in profile refinements */
.astronaut-profile {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    flex: none
}

.astronaut-profile-image {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain
}

.astronaut-avatar, .astronaut-helmet {
    display: none !important
}

.rocket-rail {
    width: 138px
}

.rocket-rail img {
    width: 129px
}

.footer-grid > :first-child {
    justify-self: start
}

.footer-combination, .footer-logotype .footer-combination {
    width: 210px !important;
    max-width: 210px !important;
    height: auto !important
}

html[dir=rtl] .footer-grid > :first-child {
    justify-self: end;
    text-align: right
}

html[dir=ltr] .footer-grid > :first-child {
    justify-self: start;
    text-align: left
}

.hub-tabs a {
    padding-bottom: 8px;
    border-bottom: 2px solid transparent
}

.hub-tabs a.active {
    border-bottom-color: var(--gold);
    color: var(--gold)
}

@media (max-width: 1023px) {
    .rocket-rail {
        width: 96px
    }

    .rocket-rail img {
        width: 92px
    }

    .footer-combination, .footer-logotype .footer-combination {
        width: 180px !important;
        max-width: 180px !important
    }
}

@media (max-width: 700px) {
    .astronaut-profile, .astronaut-profile-image {
        width: 48px;
        height: 48px
    }

    .rocket-rail {
        width: 69px
    }

    .rocket-rail img {
        width: 65px
    }

    .footer-combination, .footer-logotype .footer-combination {
        width: 150px !important;
        max-width: 150px !important
    }

    html[dir=rtl] .footer-grid > :first-child, html[dir=ltr] .footer-grid > :first-child {
        justify-self: start
    }
}

.hub-page-title {
    margin: 18px 0 28px
}

.hub-page-title h1 {
    margin-bottom: 5px
}

.hub-page-title p {
    margin: 0;
    color: var(--muted)
}

/* Astronaut profile: 15% smaller after final visual review */
.astronaut-profile, .astronaut-profile-image {
    width: 49px;
    height: 49px
}

@media (max-width: 700px) {
    .astronaut-profile, .astronaut-profile-image {
        width: 41px;
        height: 41px
    }
}

/* Rocket reaches the highest safe viewport position at the end of the page. */
.rocket-rail {
    top: 6px
}

@media (max-width: 1023px) {
    .rocket-rail {
        top: 6px
    }
}

@media (max-width: 700px) {
    .rocket-rail {
        top: 4px
    }
}

/* Rocket reduced by 30% from the current size. */
.rocket-rail {
    width: 97px
}

.rocket-rail img {
    width: 90.3px
}

@media (max-width: 1023px) {
    .rocket-rail {
        width: 67px
    }

    .rocket-rail img {
        width: 64.4px
    }
}

@media (max-width: 700px) {
    .rocket-rail {
        width: 48px
    }

    .rocket-rail img {
        width: 45.5px
    }
}

/* Footer logo at the language's leading edge, half the previous size. */
.footer-grid > :first-child {
    width: 100%;
    justify-self: stretch !important;
    justify-content: flex-start;
    text-align: start !important
}

.footer-logotype {
    margin-inline: 0 !important;
    justify-content: flex-start
}

.footer-combination, .footer-logotype .footer-combination {
    width: 105px !important;
    max-width: 105px !important;
    height: auto !important;
    max-height: none !important
}

@media (max-width: 1023px) {
    .footer-combination, .footer-logotype .footer-combination {
        width: 90px !important;
        max-width: 90px !important
    }
}

@media (max-width: 700px) {
    .footer-combination, .footer-logotype .footer-combination {
        width: 75px !important;
        max-width: 75px !important
    }
}

/* Footer logo: 40% smaller, inset 15px from its current language edge. */
.footer-combination, .footer-logotype .footer-combination {
    width: 63px !important;
    max-width: 63px !important;
    height: auto !important
}

html[dir=rtl] .footer-logotype {
    transform: translateX(-15px)
}

html[dir=ltr] .footer-logotype {
    transform: translateX(15px)
}

@media (max-width: 1023px) {
    .footer-combination, .footer-logotype .footer-combination {
        width: 54px !important;
        max-width: 54px !important
    }
}

@media (max-width: 700px) {
    .footer-combination, .footer-logotype .footer-combination {
        width: 45px !important;
        max-width: 45px !important
    }
}

/* Additional 15px inward offset requested for the footer logo. */
html[dir=rtl] .footer-logotype {
    transform: translateX(-30px)
}

html[dir=ltr] .footer-logotype {
    transform: translateX(30px)
}

/* Bilingual hero statement with a stable terminal typing line. */
.hero-statement .hero-fixed {
    display: block;
    margin-bottom: 16px
}

.hero-terminal {
    display: grid;
    position: relative;
    padding: 8px 14px;
    background: var(--navy);
    color: var(--sky);
    border-radius: 10px;
    line-height: 1.38
}

[data-theme=night] .hero-terminal {
    background: var(--cream);
    color: var(--navy)
}

.terminal-reserve, .terminal-live {
    grid-area: 1/1;
    min-width: 0;
    overflow-wrap: normal
}

.terminal-reserve {
    visibility: hidden
}

.terminal-live {
    align-self: start
}

.terminal-cursor {
    display: inline-block;
    width: .045em;
    height: .9em;
    background: currentColor;
    vertical-align: -.06em;
    margin-inline-start: .08em;
    animation: terminal-blink .9s step-end infinite
}

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

@keyframes terminal-blink {
    50% {
        opacity: 0
    }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-cursor {
        animation: none
    }
}

@media (max-width: 700px) {
    body:has(.rocket-rail) main.wrap, body:has(.rocket-rail) .footer > .wrap {
        padding-inline: 16px
    }

    html[dir=rtl] body:has(.rocket-rail) main.wrap, html[dir=rtl] body:has(.rocket-rail) .footer > .wrap {
        margin-left: 58px;
        margin-right: 0
    }

    html[dir=ltr] body:has(.rocket-rail) main.wrap, html[dir=ltr] body:has(.rocket-rail) .footer > .wrap {
        margin-right: 58px;
        margin-left: 0
    }

    .hero-art.generated, .experience-image, html[dir=rtl] .experience-image {
        width: 100%;
        margin-inline: 0
    }

    .hero-terminal {
        padding: 8px 10px
    }

    .hero-statement .hero-fixed {
        margin-bottom: 14px
    }

    .rocket-rail {
        width: 48px
    }
}

/* Mobile footer: text first, logo in the opposite lower corner. */
@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 24px 16px
    }

    .footer-grid > :nth-child(2) {
        grid-column: 1;
        grid-row: 1
    }

    .footer-grid > :nth-child(3) {
        grid-column: 2;
        grid-row: 1
    }

    .footer-grid > :nth-child(4) {
        grid-column: 1;
        grid-row: 2
    }

    .footer-grid > :first-child {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-end;
        align-self: start
    }

    html[dir=rtl] .footer-logotype, html[dir=ltr] .footer-logotype {
        transform: none
    }
}

/* Two single-line terminal headline rows at every viewport width. */
.hero-statement {
    font-size: clamp(24px, 3vw, 44px) !important;
    line-height: 1.38 !important;
    width: max-content;
    max-width: 100% !important
}

.hero-statement .hero-fixed, .hero-terminal {
    background: var(--navy);
    color: var(--sky);
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap
}

.hero-statement .hero-fixed {
    margin-bottom: 10px
}

[data-theme=night] .hero-statement .hero-fixed, [data-theme=night] .hero-terminal {
    background: var(--cream);
    color: var(--navy)
}

.terminal-prompt {
    display: inline-block;
    margin-inline-end: .25em;
    font-family: Graphik, Helvetica, Arial, sans-serif
}

.terminal-reserve, .terminal-live {
    white-space: nowrap
}

@media (max-width: 1023px) {
    .hero-statement {
        font-size: clamp(20px, 3.1vw, 30px) !important
    }
}

@media (max-width: 700px) {
    .hero-statement {
        font-size: clamp(15px, 4.4vw, 25px) !important
    }
}

html[lang=en] .hero-statement {
    font-size: clamp(22px, 2.7vw, 40px) !important
}

@media (max-width: 700px) {
    html[lang=en] .hero-statement {
        font-size: clamp(15px, 4.4vw, 25px) !important
    }
}

/* Match the reference's separate text-sized headline blocks. */
.hero-statement {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.hero-statement .hero-fixed, .hero-terminal {
    width: max-content;
    max-width: 100%;
    border-radius: 10px
}

.hero-terminal {
    padding-inline: 12px
}

.terminal-prompt {
    margin-inline-end: .25em
}

.terminal-prompt {
    unicode-bidi: isolate;
    direction: ltr;
    white-space: nowrap
}

/* Hero headline colors requested for day and night. */
html[data-theme=day] .hero-statement .hero-fixed {
    color: var(--cream)
}

html[data-theme=night] .hero-terminal {
    color: var(--sky)
}

/* Lighter weight for the typed hero line in both languages. */
.hero-statement .hero-terminal {
    font-weight: 600
}

/* The terminal background grows with the text being typed. */
.hero-statement .hero-terminal {
    display: block;
    width: max-content;
    min-height: 1.38em
}

.hero-terminal .terminal-reserve {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-start: 12px;
    pointer-events: none
}

.hero-terminal .terminal-live {
    display: block;
    position: relative;
    white-space: nowrap
}

.experience-index {
    font-family: Lahzeh, Arial, sans-serif;
    font-size: 22px;
    font-weight: 600
}

html[lang=en] .experience-index {
    font-family: Graphik, Helvetica, Arial, sans-serif
}

.experience-copy > small {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px
}

/* Complete course artwork, preserving the original image proportions. */
img.cover {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    background: transparent
}

.course-cover-link {
    display: block;
    line-height: 0
}

.experience-index {
    font-size: 17px
}

.experience-controls {
    gap: 16px;
    flex-wrap: wrap
}

.slide-navigator {
    display: flex;
    align-items: center;
    gap: 5px
}

.slide-navigator button {
    padding: 12px 3px;
    border: 0;
    background: transparent;
    min-width: 32px;
    cursor: pointer
}

.slide-navigator button span {
    display: block;
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: var(--line)
}

.slide-navigator button[aria-current=true] span {
    background: var(--gold)
}

.experience-stage {
    touch-action: pan-y
}

.slide-navigator button span {
    background: var(--blue)
}

.slide-navigator button[aria-current=true] span {
    background: var(--sky)
}

.partner-terminal {
    margin-top: 28px;
    min-height: 6em;
    color: var(--sky);
    font-family: Lahzeh, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.9;
    max-width: 900px;
    margin-inline: auto
}

html[lang=en] .partner-terminal {
    font-family: Graphik, Helvetica, Arial, sans-serif
}

.partner-prompt {
    display: inline-block;
    unicode-bidi: isolate;
    margin-inline-end: .4em
}

/* Söhne hierarchy measured against the MasterClass reference. */
html[lang=en] body {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .01em
}

html[lang=en] h1, html[lang=en] h2, html[lang=en] h3 {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.25;
    overflow-wrap: break-word
}

html[lang=en] .display {
    font-family: PortraitText, Graphik, Helvetica, Arial, sans-serif;
    letter-spacing: .01em
}

html[lang=en] .section-head h2 {
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.25;
    letter-spacing: .03em
}

html[lang=en] .page-head h1 {
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.25
}

html[lang=en] .panel h1 {
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.2
}

html[lang=en] .panel h2 {
    font-size: 28px;
    line-height: 1.25
}

html[lang=en] .panel h3 {
    font-size: 20px;
    line-height: 1.3
}

html[lang=en] .card-body {
    line-height: 1.5
}

html[lang=en] .course-card h3 {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-size: 22px;
    line-height: 1.27;
    font-weight: 600;
    letter-spacing: .01em;
    min-height: 2.54em;
    margin: 8px 0 16px
}

html[lang=en] .course-guide {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: .01em
}

html[lang=en] .lesson-count, html[lang=en] .badge {
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .01em
}

html[lang=en] .course-meta {
    gap: 12px;
    flex-wrap: wrap;
    align-items: baseline
}

html[lang=en] .course-meta .price {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    white-space: normal
}

html[lang=en] .btn {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: .01em
}

html[lang=en] .card p {
    font-size: 16px;
    line-height: 24px
}

html[lang=en] .experience-copy h2 {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.25
}

@media (max-width: 700px) {
    html[lang=en] .section-head h2 {
        font-size: 28px
    }

    html[lang=en] .course-card h3 {
        font-size: 22px;
        min-height: 0
    }

    html[lang=en] .panel h2 {
        font-size: 24px
    }
}

/* Partner logos keep their original baseline; terminal sits at the bottom. */
.partners-section {
    position: relative;
    padding-bottom: 70px;
    min-height: 260px
}

.partners-section .partners {
    min-height: 72px;
    align-items: flex-end;
    justify-content: center
}

.partner-terminal {
    position: absolute;
    inset-inline: 34px;
    bottom: 16px;
    margin: 0;
    max-width: none;
    min-height: 0;
    color: var(--cream);
    font-size: 8.5px;
    line-height: 1.5;
    white-space: nowrap
}

@media (max-width: 700px) {
    .partners-section {
        min-height: 220px;
        padding-bottom: 55px
    }

    .partner-terminal {
        inset-inline: 20px;
        bottom: 14px
    }
}

.partner-terminal {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none
}

.partner-terminal::-webkit-scrollbar {
    display: none
}

@media (max-width: 700px) {
    .partner-terminal {
        white-space: normal;
        overflow: visible;
        line-height: 1.6;
        text-wrap: balance;
        min-height: 2lh
    }

    .partners-section {
        padding-bottom: 64px
    }
}

/* Course link hover uses the brand blue and turquoise. */
.course-action .btn.secondary:hover, .course-action .btn.secondary:focus-visible {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--sky);
    box-shadow: 0 4px 0 var(--sky)
}

.experience-image {
    transform-origin: center center;
    will-change: transform
}

@media (prefers-reduced-motion: reduce) {
    .experience-image {
        transform: none !important;
        will-change: auto
    }
}

[data-theme=night] .all-learning-link:hover, [data-theme=night] .all-learning-link:focus-visible {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--blue);
    box-shadow: 0 4px 0 var(--blue)
}

@media (min-width: 701px) {
    .partner-terminal {
        font-size: 11.05px
    }
}

/* Dotted flight path grows behind the scroll rocket. */
.rocket-trail {
    position: absolute;
    bottom: 0;
    width: 6px;
    transform: translateX(-50%);
    height: 0;
    background: radial-gradient(circle at 50% 3px, var(--blue) 0 2px, transparent 2.5px) center bottom/6px 13px repeat-y;
    pointer-events: none
}

[data-theme=night] .rocket-trail {
    background-image: radial-gradient(circle at 50% 3px, var(--sky) 0 2px, transparent 2.5px)
}

.site-header button[data-action="menu"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: 48px;
    height: 48px;
    flex: none
}

.site-header .header-menu-icon {
    width: 42px;
    height: 42px
}

@media (max-width: 700px) {
    .site-header button[data-action="menu"] {
        width: 44px;
        height: 44px
    }

    .site-header .header-menu-icon {
        width: 39px;
        height: 39px
    }
}

.rocket-trail, [data-theme=night] .rocket-trail {
    width: 12px;
    background: none;
    overflow: hidden;
    color: var(--blue)
}

[data-theme=night] .rocket-trail {
    color: var(--sky)
}

.rocket-trail svg {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: none
}

/* Stronger hero caret and balanced mobile footer logo placement. */
.hero-terminal .terminal-cursor {
    width: .09em
}

@media (max-width: 700px) {
    .footer-grid > :first-child {
        align-self: end !important;
        justify-self: center !important;
        width: max-content;
        margin-bottom: 4px
    }

    .footer-grid > :first-child .footer-logotype {
        display: inline-flex;
        width: auto;
        margin: 0 !important;
        transform: none !important
    }

    .footer-grid > :first-child .footer-combination {
        margin: 0
    }
}

.hero-statement .hero-terminal {
    font-weight: 500
}

.hero-terminal .terminal-cursor {
    height: 1.08em
}

/* Extend the caret downward while preserving its previous top edge. */
.hero-terminal .terminal-cursor {
    height: 1.296em;
    vertical-align: -.276em
}

.hero-terminal .terminal-prompt {
    margin-inline-end: .35em
}

/* Button geometry from the approved reference; existing colors and shadows retained. */
.btn, .small-btn, .icon-btn, .custom-select-trigger {
    border-radius: 5px
}

.tabs button, .pagination button {
    border-radius: 5px
}

.custom-select-menu {
    border-radius: 5px
}

.site-header button[data-action="menu"] {
    border-radius: 0
}

@media (max-width: 700px) {
    .footer-grid > :first-child {
        justify-self: start !important;
        align-self: end !important;
        margin-bottom: 0
    }

    .footer-grid > :nth-child(4) > a:last-child {
        margin-bottom: 0
    }

    .footer-grid > :first-child .footer-logotype {
        line-height: 0
    }
}

.hero-terminal .terminal-prompt {
    margin-inline-end: 0
}

.partners-section .partners {
    transform: translateY(10px);
    will-change: transform
}

.site-header .tools .icon-btn {
    border-radius: 50%
}

.site-header .tools .small-btn {
    border-radius: 999px;
    min-width: 40px;
    min-height: 40px;
    padding: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center
}

@media (max-width: 700px) {
    .site-header .tools .small-btn {
        min-width: 36px;
        min-height: 36px
    }
}

.home-guide-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 48px
}

.guide-intro {
    max-width: 850px;
    color: var(--muted);
    margin-bottom: 32px
}

.home-guide-photo {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin-bottom: 20px
}

.home-guide-card h3 {
    margin-bottom: 20px
}

.guide-ratings {
    max-width: 360px
}

.guide-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px
}

.guide-rating-row .review-stars {
    margin-bottom: 0;
    flex: none
}

.home-guide-card h4 {
    font-size: 20px;
    margin: 26px 0 12px
}

.home-guide-card p {
    color: var(--muted);
    margin-bottom: 0
}

.join-cta {
    height: 140px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--cream);
    color: var(--navy);
    padding: 28px 34px;
    overflow: hidden
}

.join-cta h2 {
    color: var(--navy);
    margin: 0
}

.join-cta .btn {
    flex: none
}

@media (max-width: 700px) {
    .home-guide-grid {
        grid-template-columns:1fr;
        gap: 36px
    }

    .home-guide-photo {
        height: 250px
    }

    .join-cta {
        height: 160px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 24px 18px
    }

    .join-cta h2 {
        font-size: 24px
    }

    .guide-rating-row .review-stars .ic {
        width: 19px;
        height: 19px
    }
}

.site-header .tools {
    --header-control: var(--sky)
}

[data-theme=night] .site-header .tools {
    --header-control: var(--blue)
}

.site-header .tools .icon-btn, .site-header .tools .small-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--header-control);
    color: var(--header-control);
    border-radius: 50%;
    flex: none
}

@media (max-width: 700px) {
    .site-header .tools .icon-btn, .site-header .tools .small-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px
    }
}

.join-cta {
    justify-content: center;
    gap: 16px
}

@media (max-width: 700px) {
    .join-cta {
        flex-direction: row;
        gap: 12px
    }

    .join-cta h2 {
        font-size: 22px;
        text-align: start
    }

    .join-cta .btn {
        padding-inline: 30px;
        font-size: 14px
    }
}

.home-guide-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px
}

.home-guide-portrait {
    display: block;
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--sky);
    overflow: hidden
}

.home-guide-portrait .home-guide-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    transform: scale(1.7);
    transform-origin: 50% 30%
}

.home-guide-portrait.guide-254 .home-guide-photo {
    transform: scale(1.6);
    transform-origin: 52% 29%
}

.home-guide-person h3 {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 !important
}

.home-guide-card h4 {
    font-size: 16px;
    margin: 20px 0 10px
}

.home-guide-card p {
    font-size: 14px;
    line-height: 1.8
}

.guide-rating-row {
    font-size: 13px;
    margin-bottom: 10px
}

.home-guide-grid {
    gap: 42px
}

.home-guide-card {
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--line)
}

.course-action .btn {
    font-size: 14px;
    min-height: 42px;
    padding-block: 8px
}

body:has(.hero) .course-meta .price {
    font-size: 16px
}

.home-guide-portrait.guide-254 .home-guide-photo {
    transform: translateY(5px) scale(1.6)
}

.guide-rating-row {
    justify-content: flex-start;
    gap: 16px
}

.guide-rating-row > span {
    width: 105px;
    flex: none
}

@media (max-width: 700px) {
    body:has(.hero) .course-meta .price {
        font-size: 15px
    }

    .guide-rating-row > span {
        width: 95px
    }
}

.join-cta {
    justify-content: flex-start;
    gap: 12px;
    text-align: start
}

.join-cta h2 {
    margin: 0;
    flex: none
}

.join-cta .btn, .join-cta .btn:hover, .join-cta .btn:focus-visible {
    background: transparent;
    background-image: none;
    border-color: var(--navy);
    color: var(--navy)
}

.join-cta .btn:before {
    background: var(--navy)
}

@media (max-width: 700px) {
    .join-cta h2 {
        flex: 0 1 auto
    }

    .join-cta {
        justify-content: flex-start;
        text-align: start
    }
}

.join-cta .btn {
    position: relative;
    left: -10px
}

.join-cta .btn:hover:not(:disabled), .join-cta .btn:focus-visible {
    box-shadow: 0 4px 0 var(--navy)
}

body:has(.hero) .course-meta .price {
    position: relative;
    top: 10px
}

body:has(.hero) .course-meta .lesson-count {
    position: relative;
    top: 10px
}

.join-stage {
    position: relative
}

.join-cta {
    position: sticky;
    top: calc(100vh - 70px - var(--join-height, 140px))
}

@supports (height:100dvh) {
    .join-cta {
        top: calc(100dvh - 70px - var(--join-height, 140px))
    }
}

/* Academy category gateway: physical positions remain the same in both languages. */
.learning-gateway {
    max-width: 1000px;
    margin: 0 auto 64px
}

.gateway-intro {
    font-size: 24px;
    margin: 0 0 28px
}

.learning-category-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    direction: ltr
}

.learning-category {
    display: block;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
    direction: rtl
}

.learning-category:lang(en) {
    direction: ltr
}

.learning-category img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px
}

.learning-category-copy {
    padding: 18px 0 0
}

.learning-category h2 {
    font-size: 24px;
    line-height: 1.35;
    margin: 0 0 10px
}

.learning-category p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0
}

.learning-category:hover img {
    box-shadow: 0 6px 0 var(--sky);
    transform: translateY(-2px)
}

.gateway-all {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 60px;
    margin-top: 38px
}

.learning-category {
    color: inherit
}

@media (max-width: 600px) {
    .learning-category-grid {
        grid-template-columns:1fr;
        gap: 28px
    }

    .learning-category h2 {
        font-size: 22px
    }

    .gateway-intro {
        font-size: 20px
    }

    .gateway-all {
        font-size: 16px
    }

    .learning-gateway {
        margin-bottom: 40px
    }
}

.learning-category {
    display: flex;
    flex-direction: column
}

.category-tech .learning-category-copy, .category-skills .learning-category-copy {
    order: -1;
    padding: 0 0 12px
}

.learning-category img {
    border-radius: 0;
    transition: border-radius .65s ease, box-shadow .2s, transform .2s
}

.learning-category img.corners-rounded {
    border-radius: 24px
}

.gateway-page-label {
    font-size: 12px;
    color: var(--muted);
    padding-block: 12px
}

@media (min-width: 701px) {
    .learning-gateway {
        max-width: 680px;
        margin: 24px auto 36px
    }

    .gateway-intro {
        font-size: 22px;
        margin-bottom: 16px
    }

    .learning-category-grid {
        gap: 18px 20px;
        max-width: 100%;
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .learning-category img {
        width: min(100%, max(135px, calc((100dvh - 360px) / 2)));
        align-self: center
    }

    .learning-category-copy {
        padding-top: 10px
    }

    .learning-category h2 {
        font-size: 20px;
        margin-bottom: 4px
    }

    .learning-category p {
        font-size: 12px;
        line-height: 1.5
    }

    .category-tech .learning-category-copy, .category-skills .learning-category-copy {
        min-height: 66px;
        padding-bottom: 10px
    }

    .gateway-all {
        min-height: 46px;
        margin-top: 18px;
        font-size: 16px
    }
}

@media (prefers-reduced-motion: reduce) {
    .learning-category img {
        transition: none
    }
}

/* Large image gateway with an independent word-by-word heading. */
.learning-gateway {
    max-width: none;
    margin: 44px auto 52px
}

.gateway-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 280px;
    gap: 36px;
    direction: ltr;
    align-items: center
}

.gateway-intro {
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
    text-align: right;
    font-size: 110px;
    line-height: 1.02;
    margin: 0;
    letter-spacing: -.03em
}

.gateway-intro span {
    display: block
}

.learning-category-grid {
    grid-column: 1;
    grid-row: 1;
    gap: 16px;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: calc(100dvh - 56px);
    justify-self: center
}

.learning-category {
    position: relative;
    display: block;
    aspect-ratio: 1
}

.learning-category img {
    width: 100%;
    height: 100%;
    align-self: auto;
    object-fit: contain
}

.learning-category-copy, .category-tech .learning-category-copy, .category-skills .learning-category-copy {
    position: absolute;
    inset: auto 10px 10px;
    order: initial;
    min-height: 0;
    padding: 7px 10px;
    text-align: right;
    direction: rtl;
    background: var(--bg);
    border-radius: 5px;
    width: max-content;
    max-width: calc(100% - 20px);
    margin-left: auto
}

.learning-category h2 {
    font-size: 10px;
    line-height: 1.4;
    margin: 0
}

.gateway-all {
    margin-top: 24px
}

html[lang=en] .gateway-intro {
    direction: ltr;
    letter-spacing: -.045em
}

html[lang=en] .learning-category-copy {
    direction: ltr;
    text-align: right
}

@media (max-width: 1023px) and (min-width: 701px) {
    .gateway-layout {
        grid-template-columns:minmax(0, 1fr) 220px;
        gap: 20px
    }

    .gateway-intro {
        font-size: 90px
    }
}

@media (max-width: 700px) {
    .learning-gateway {
        margin-top: 28px
    }

    .gateway-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 28px
    }

    .gateway-intro {
        font-size: 60px;
        text-align: right;
        align-self: flex-end
    }

    .learning-category-grid {
        display: grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .learning-category-copy, .category-tech .learning-category-copy, .category-skills .learning-category-copy {
        inset: auto 6px 6px;
        padding: 4px 6px;
        max-width: calc(100% - 12px)
    }

    .learning-category h2 {
        font-size: 10px
    }

    .gateway-all {
        font-size: 16px
    }
}

.gateway-layout {
    row-gap: 24px
}

.gateway-intro {
    line-height: 1.28;
    grid-row: 1 / span 2
}

.gateway-all {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
    max-width: calc(100dvh - 56px);
    margin: 0;
    background: transparent;
    color: var(--blue);
    border-color: var(--blue)
}

.gateway-all:hover {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue)
}

/* Shared footer: clear columns, restrained typography and spacing. */
.footer {
    border-top: 1px solid var(--line);
    padding: 48px 0 24px;
    margin-top: 52px;
    background: var(--bg)
}

.footer-grid {
    display: grid;
    grid-template-columns:.7fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 36px
}

.footer-grid > div {
    min-width: 0
}

.footer-grid > :first-child {
    width: auto !important;
    justify-self: start !important;
    align-self: start !important
}

.footer-grid strong {
    display: block;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--muted)
}

.footer-grid > div > a:not(.brand) {
    display: block;
    width: fit-content;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
    transition: color .2s
}

.footer-grid > div > a:not(.brand):hover {
    color: var(--muted)
}

html[dir] .footer .footer-logotype {
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    line-height: 0
}

.footer .footer-combination {
    width: 63px !important;
    max-width: 63px !important
}

.footer .copyright {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted)
}

@media (max-width: 700px) {
    .gateway-intro {
        line-height: 1.28
    }

    .gateway-all {
        max-width: 100%;
        margin-top: 0
    }

    .footer {
        padding: 32px 0 20px;
        margin-top: 36px
    }

    .footer-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding-bottom: 24px
    }

    .footer-grid > :nth-child(2) {
        grid-column: 1;
        grid-row: 1
    }

    .footer-grid > :nth-child(3) {
        grid-column: 2;
        grid-row: 1
    }

    .footer-grid > :nth-child(4) {
        grid-column: 1;
        grid-row: 2
    }

    .footer-grid > :first-child {
        grid-column: 2;
        grid-row: 2;
        align-self: end !important;
        justify-self: start !important
    }

    .footer-grid strong {
        font-size: 14px;
        margin-bottom: 12px
    }

    .footer-grid > div > a:not(.brand) {
        font-size: 13px;
        margin-bottom: 8px
    }

    .footer-grid > :nth-child(4) > a:last-child {
        margin-bottom: 0
    }

    .footer .footer-combination {
        width: 63px !important;
        max-width: 63px !important
    }

    .footer .copyright {
        font-size: 10px
    }
}

/* Keep the category heading inside its own column at every width. */
.gateway-intro {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(48px, 6.2vw, 88px);
    letter-spacing: 0;
    overflow-wrap: normal
}

.gateway-intro span {
    white-space: nowrap
}

@media (max-width: 1023px) and (min-width: 701px) {
    .gateway-intro {
        font-size: clamp(42px, 6vw, 60px)
    }
}

@media (max-width: 700px) {
    .gateway-intro {
        display: block;
        width: 100%;
        font-size: clamp(18px, 5.3vw, 32px);
        line-height: 1.6;
        white-space: nowrap;
        letter-spacing: 0
    }

    .gateway-intro span {
        display: inline
    }

    .gateway-intro span + span:before {
        content: ' '
    }

    .gateway-layout {
        gap: 20px
    }

    html[lang=en] .gateway-intro {
        font-size: clamp(15px, 4vw, 26px);
        letter-spacing: 0
    }
}

/* Static square category images; shift the desktop composition together. */
.learning-category img, .learning-category img.corners-rounded, .learning-category:hover img {
    border-radius: 0;
    transition: none;
    transform: none;
    box-shadow: none
}

@media (min-width: 701px) {
    .gateway-layout {
        position: relative;
        left: -30px
    }
}

/* Subtle static corners and a light network accent to the left. */
.learning-category img, .learning-category img.corners-rounded, .learning-category:hover img {
    border-radius: 12px
}

@media (min-width: 701px) {
    .gateway-intro {
        position: relative;
        top: -20px
    }

    .gateway-layout:before {
        content: '';
        position: absolute;
        pointer-events: none;
        left: -18px;
        top: 18%;
        width: 11px;
        height: 62%;
        border-left: 1px solid var(--sky);
        border-top: 1px solid var(--sky);
        border-bottom: 1px solid var(--sky);
        border-radius: 8px 0 0 8px
    }

    .gateway-layout:after {
        content: '';
        position: absolute;
        pointer-events: none;
        left: -21px;
        top: 18%;
        width: 7px;
        height: 62%;
        background: radial-gradient(circle at 50% 4px, var(--blue) 0 3px, transparent 3.5px), radial-gradient(circle at 50% 50%, var(--sky) 0 3px, transparent 3.5px), radial-gradient(circle at 50% calc(100% - 4px), var(--blue) 0 3px, transparent 3.5px)
    }
}

/* Matching hero actions, with a blinking dot on the path action. */
.hero .row > .btn, .hero .row > .btn.secondary {
    background: var(--cta);
    color: var(--cta-ink);
    border-color: var(--cta)
}

.hero .row > .btn:before {
    background: currentColor
}

.hero .row > .btn:hover {
    background: var(--cta);
    color: var(--cta-ink);
    border-color: var(--cta);
    box-shadow: 0 4px 0 var(--line)
}

.hero .row > .btn:first-child:before {
    animation: path-dot-blink 1.3s ease-in-out infinite
}

@keyframes path-dot-blink {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: .15
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .row > .btn:first-child:before {
        animation: none
    }
}

/* Outline hero buttons; animate only the first dot's ink color. */
.hero .row > .btn, .hero .row > .btn.secondary, .hero .row > .btn:hover {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue)
}

.hero .row > .btn:before {
    background: var(--blue);
    opacity: 1
}

.hero .row > .btn:first-child:before {
    animation: path-dot-color 1.8s ease-in-out infinite;
    opacity: 1
}

@keyframes path-dot-color {
    0%, 100% {
        background: var(--blue)
    }
    50% {
        background: var(--sky)
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .row > .btn:first-child:before {
        animation: none
    }
}


@font-face {
    font-family: Graphik;
    src: url('asset-overrides/fonts/graphik/Graphik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Graphik;
    src: url('asset-overrides/fonts/graphik/Graphik-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Graphik;
    src: url('asset-overrides/fonts/graphik/Graphik-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap
}


/* English typography based on the COLLINS Portrait Text / Graphik hierarchy. */
html[lang=en] body {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-synthesis: none
}

html[lang=en] h1, html[lang=en] h2, html[lang=en] .display, html[lang=en] .experience-copy h2 {
    font-family: PortraitText, Georgia, serif;
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.08
}

html[lang=en] .page-head h1 {
    font-size: clamp(36px, 4vw, 56px)
}

html[lang=en] .section-head h2, html[lang=en] .section > h2 {
    font-size: 36px;
    line-height: 1.05
}

html[lang=en] .hero h1 {
    font-family: PortraitText, Georgia, serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -.02em
}

html[lang=en] .hero-terminal {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -.02em
}

html[lang=en] h3, html[lang=en] h4, html[lang=en] .course-card h3 {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -.01em
}

html[lang=en] .course-card h3 {
    font-size: 28px;
    line-height: 1.05;
    min-height: 2.1em;
    margin: 10px 0 18px
}

html[lang=en] .course-guide {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0
}

html[lang=en] .card p {
    font-size: 16px;
    line-height: 1.3
}

html[lang=en] .btn {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 400
}

html[lang=en] .field, html[lang=en] textarea, html[lang=en] select, html[lang=en] .custom-select-trigger, html[lang=en] .custom-select-menu, html[lang=en] .topbar nav, html[lang=en] .footer {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    letter-spacing: 0
}

html[lang=en] .gateway-intro {
    font-family: PortraitText, Georgia, serif;
    line-height: 1.2;
    letter-spacing: -.02em
}

html[lang=en] .home-guide-card h3, html[lang=en] .home-guide-card h4 {
    font-size: 16px
}

@media (max-width: 700px) {
    html[lang=en] .section-head h2, html[lang=en] .section > h2 {
        font-size: 28px
    }

    html[lang=en] .course-card h3 {
        font-size: 24px;
        min-height: 0
    }

    html[lang=en] .gateway-intro {
        font-size: clamp(15px, 4vw, 26px)
    }
}

@media (min-width: 701px) {
    html[lang=en] .join-cta > .btn {
        left: 0
    }
}

/* Compact shared footer with a consistent reading rhythm. */
.footer {
    padding: 30px 0 16px;
    margin-top: 36px
}

.footer-grid {
    gap: 24px;
    grid-template-columns:.55fr repeat(3, 1fr);
    padding-bottom: 22px
}

.footer-grid strong {
    font-size: 13px;
    margin-bottom: 12px
}

.footer-grid > div > a:not(.brand) {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 7px
}

.footer .copyright {
    font-size: 10px;
    padding-top: 12px
}

@media (max-width: 700px) {
    .footer {
        padding: 26px 0 16px;
        margin-top: 30px
    }

    .footer-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
        padding-bottom: 20px
    }

    .footer-grid strong {
        font-size: 13px
    }

    .footer-grid > div > a:not(.brand) {
        font-size: 12px
    }
}

/* Distinguish editorial headings from interface labels, as on COLLINS. */
html[lang=en] .hero-fixed, html[lang=en] .hero-statement .hero-terminal {
    font-family: PortraitText, Georgia, serif;
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.18
}

html[lang=en] .experience-copy h2 {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.025em
}

html[lang=en] .btn {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -.01em
}

html[lang=en] .course-card h3 {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.02em;
    min-height: 2.4em
}

html[lang=en] .topbar nav, html[lang=en] .course-guide {
    font-weight: 500;
    letter-spacing: -.01em
}

html[lang=en] .panel h2, html[lang=en] .sidebar h3, html[lang=en] .state-card h2 {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.2
}

html[lang=en] .footer-grid strong {
    font-weight: 600
}

html[lang=en] .footer-grid a {
    font-weight: 400
}

.hero .row > .btn:first-child:before {
    animation-duration: .9s
}

.all-learning-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 500;
    border: 0;
    background: none;
    padding: 4px 0;
    white-space: nowrap
}

.all-learning-link .ic {
    width: 24px;
    height: 24px
}

.all-learning-link:hover {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 5px
}

html[lang=en] .all-learning-link {
    font-family: Graphik, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500
}

.footer-grid {
    max-width: 760px;
    margin-inline: auto;
    grid-template-columns:80px repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start
}

html[dir=rtl] .footer .footer-logotype {
    transform: translateX(-20px) !important
}

@media (max-width: 700px) {
    .footer-grid {
        max-width: 460px;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 22px 18px
    }

    html[dir=rtl] .footer .footer-logotype {
        transform: translateX(-20px) !important
    }

    html[lang=en] .course-card h3 {
        font-size: 22px;
        min-height: 0
    }

    html[lang=en] .experience-copy h2 {
        font-size: 28px
    }

    .all-learning-link {
        font-size: 13px
    }
}

/* Portrait headings: title case, optical kerning and tighter tracking. */
html[lang=en] h1, html[lang=en] h2, html[lang=en] .display, html[lang=en] .hero-fixed, html[lang=en] .hero-statement .hero-terminal, html[lang=en] .experience-copy h2, html[lang=en] .experience-copy > small {
    font-family: PortraitText, Georgia, serif;
    font-weight: 400;
    font-kerning: normal;
    font-feature-settings: 'kern' 1, 'liga' 1;
    letter-spacing: -.035em;
    text-transform: capitalize
}

html[lang=en] .experience-copy > small {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 16px
}

html[lang=en] .experience-copy h2 {
    font-size: 36px;
    line-height: 1.12;
    margin-bottom: 18px
}

.partners-section {
    margin-inline-start: 28px;
    width: calc(100% - 28px)
}

.footer-grid {
    max-width: none;
    grid-template-columns:80px repeat(3, minmax(0, 1fr));
    gap: 24px
}

html[dir] .footer .footer-logotype {
    transform: none !important
}

.footer-grid > :first-child {
    justify-self: start !important;
    text-align: start !important
}

@media (max-width: 700px) {
    .partners-section {
        margin-inline-start: 18px;
        width: calc(100% - 18px)
    }

    .footer-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 22px 18px
    }

    .footer-grid > :first-child {
        grid-column: 1;
        grid-row: 3;
        align-self: start !important
    }

    .footer-grid > :nth-child(4) {
        grid-column: 1;
        grid-row: 2
    }

    html[lang=en] .experience-copy > small {
        font-size: 22px
    }

    html[lang=en] .experience-copy h2 {
        font-size: 30px
    }
}

/* Tighten the remaining Portrait section titles, preserving the approved hero. */
html[lang=en] .section-head h2, html[lang=en] .section > h2, html[lang=en] .join-cta h2, html[lang=en] .page-head h1 {
    letter-spacing: -.05em;
    word-spacing: -.075em;
    font-kerning: normal;
    font-feature-settings: 'kern' 1, 'liga' 1;
    line-height: 1.12
}

/* Align the combination mark to the course-card content edge, in either direction. */
.footer-grid {
    margin-inline-start: 28px;
    margin-inline-end: 0;
    width: calc(100% - 28px)
}

@media (max-width: 700px) {
    .footer-grid {
        margin-inline-start: 18px;
        width: calc(100% - 18px)
    }

    .footer-grid > :first-child {
        grid-column: 1;
        grid-row: 3;
        justify-self: start !important
    }
}

@media (min-width: 701px) {
    body:has(.rocket-rail) .footer-grid {
        margin-inline-start: 69px;
        width: calc(100% - 110px)
    }
}

@media (max-width: 700px) {
    body:has(.rocket-rail) .footer-grid {
        margin-inline-start: 19px;
        width: calc(100% - 19px)
    }
}

/* Compact, centered footer navigation group. */
.footer-grid {
    grid-template-columns:80px repeat(3, minmax(0, 160px));
    justify-content: space-between;
    column-gap: 18px
}

.footer-grid > :not(:first-child) {
    text-align: center;
    justify-self: center;
    width: 100%;
    max-width: 160px
}

.footer-grid > :not(:first-child) > a:not(.brand) {
    margin-inline: auto
}

.footer-grid strong {
    margin-bottom: 10px;
    line-height: 1.5
}

@media (min-width: 701px) {
    .footer-grid {
        justify-content: start;
        grid-template-columns:80px repeat(3, 140px);
        gap: 24px
    }

    .footer-grid > :nth-child(2) {
        margin-inline-start: 20px
    }

    .footer-grid > :nth-child(3) {
        margin-inline-start: 20px
    }

    .footer-grid > :nth-child(4) {
        margin-inline-start: 20px
    }
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap: 16px 8px;
        justify-content: center
    }

    .footer-grid > :nth-child(2) {
        grid-column: 1;
        grid-row: 1
    }

    .footer-grid > :nth-child(3) {
        grid-column: 2;
        grid-row: 1
    }

    .footer-grid > :nth-child(4) {
        grid-column: 3;
        grid-row: 1
    }

    .footer-grid > :first-child {
        grid-column: 1;
        grid-row: 2;
        justify-self: start !important;
        margin-top: 8px
    }

    .footer-grid strong {
        font-size: 11px;
        margin-bottom: 10px
    }

    .footer-grid > div > a:not(.brand) {
        font-size: 11px;
        line-height: 1.55;
        margin-bottom: 7px
    }
}

@media (min-width: 701px) {
    .footer-grid {
        grid-template-columns:80px minmax(0, 1fr) repeat(3, 140px) minmax(0, 1fr);
        gap: 18px
    }

    .footer-grid > :first-child {
        grid-column: 1
    }

    .footer-grid > :nth-child(2) {
        grid-column: 3;
        margin-inline-start: 0
    }

    .footer-grid > :nth-child(3) {
        grid-column: 4;
        margin-inline-start: 0
    }

    .footer-grid > :nth-child(4) {
        grid-column: 5;
        margin-inline-start: 0
    }
}

@media (min-width: 701px) {
    .gateway-intro {
        top: -35px
    }
}

.auth-entry {
    margin: 18px auto 36px;
    max-width: 460px
}

.auth-entry > .brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 14px
}

.auth-entry > .brand img {
    width: 196px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain
}

.auth-entry .panel {
    padding-top: 20px
}

.auth-entry .phone-entry {
    display: flex;
    direction: ltr;
    gap: 12px;
    align-items: flex-end
}

.phone-entry > .field-label:first-child {
    flex: 0 0 145px
}

.phone-entry > .field-label:last-child {
    flex: 1;
    min-width: 0
}

.phone-entry input {
    direction: ltr;
    text-align: left
}

.phone-entry .custom-select-trigger {
    font-size: 13px
}

.auth-entry .auth-method {
    background: var(--cream);
    border: 2px solid var(--blue);
    color: var(--blue);
    margin-top: 12px
}

.auth-entry .auth-method:hover {
    background: var(--cream);
    color: var(--blue);
    border-color: var(--blue)
}

@media (max-width: 700px) {
    .auth-entry {
        margin: 12px auto 28px
    }

    .auth-entry > .brand img {
        width: 196px !important;
        height: auto !important;
        max-height: none !important
    }

    .auth-entry .panel {
        padding-top: 16px
    }

    .phone-entry > .field-label:first-child {
        flex-basis: 120px
    }

    .auth-entry .phone-entry {
        gap: 8px
    }
}

.auth-entry {
    position: relative;
    top: -20px
}

.auth-entry .panel > h1, .auth-entry .panel > p.muted {
    text-align: center
}

.auth-entry .auth-forgot {
    display: block;
    text-align: center;
    font-size: 13px;
    margin-top: 16px;
    color: var(--muted)
}

.phone-entry .custom-select-menu {
    max-height: 260px;
    overflow-y: auto
}

.phone-entry .custom-select-menu button {
    white-space: normal
}

/* Mirror the learning gateway composition for English. */
html[lang=en] .gateway-intro {
    text-align: left
}

@media (min-width: 701px) {
    html[lang=en] .gateway-layout {
        grid-template-columns:280px minmax(0, 1fr);
        left: 30px
    }

    html[lang=en] .gateway-intro {
        grid-column: 1
    }

    html[lang=en] .learning-category-grid, html[lang=en] .gateway-all {
        grid-column: 2
    }

    html[lang=en] .gateway-layout:before {
        left: auto;
        right: -18px;
        border-left: 0;
        border-right: 1px solid var(--sky);
        border-radius: 0 8px 8px 0
    }

    html[lang=en] .gateway-layout:after {
        left: auto;
        right: -21px
    }
}

@media (max-width: 1023px) and (min-width: 701px) {
    html[lang=en] .gateway-layout {
        grid-template-columns:220px minmax(0, 1fr)
    }
}

@media (max-width: 700px) {
    html[lang=en] .gateway-intro {
        align-self: flex-start;
        text-align: left
    }
}

.auth-entry.auth-no-logo {
    top: 0;
    margin: 24px auto 36px
}

.auth-no-logo .panel {
    margin-top: 0
}

@media (max-width: 700px) {
    .auth-entry.auth-no-logo {
        margin: 18px auto 28px
    }
}

/* More panel and the complete menu use the same line-based language. */
[hidden] {
    display: none !important
}

.more-toggle {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    display: inline-flex;
    gap: 5px;
    align-items: center
}

.more-toggle .ic {
    width: 16px;
    height: 16px
}

.topbar nav {
    gap: 18px
}

.more-panel {
    background: var(--navy);
    padding: 26px 0 34px
}

.more-item {
    display: grid;
    grid-template-columns:1fr 1fr 24px;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--blue);
    color: var(--blue)
}

.more-item > span {
    font-size: 28px;
    font-weight: 500
}

.more-item small {
    font-size: 14px;
    color: inherit
}

.more-item:hover {
    color: var(--sky)
}

.more-item:hover .ic {
    filter: brightness(0) saturate(100%) invert(78%) sepia(15%) saturate(646%) hue-rotate(158deg)
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 20px 0
}

.social-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted)
}

.social-links .ic {
    width: 22px;
    height: 22px
}

.social-links > a:hover {
    transform: translateY(-2px)
}

.social-labels > a {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--line)
}

.about-page, .journal, .collaborate-page {
    padding: 48px 0
}

.about-intro {
    max-width: 900px;
    margin-bottom: 48px
}

.about-intro p {
    font-size: 21px;
    line-height: 1.65
}

.about-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 48px
}

.about-grid h2 {
    font-size: 28px
}

.about-grid p {
    line-height: 1.9
}

.ecosystem-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 36px;
    padding: 32px 0;
    border-block: 1px solid var(--line)
}

.ecosystem-grid h3 {
    font-size: 24px
}

.ecosystem-grid p {
    font-size: 15px
}

.contact-block {
    margin-top: 40px;
    text-align: center
}

.contact-block > a {
    display: block;
    margin-bottom: 8px
}

.contact-number {
    font-size: 24px
}

.journal-head {
    max-width: 700px;
    margin-bottom: 36px
}

.journal-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 30px
}

.journal-card {
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.journal-art {
    height: 160px;
    background: var(--blue);
    color: var(--sky);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px
}

.journal-art .ic {
    width: 80px;
    height: 80px;
    filter: brightness(0) saturate(100%) invert(78%) sepia(15%) saturate(646%) hue-rotate(158deg)
}

.journal-art > span {
    font-size: 70px;
    font-weight: 300
}

.journal-card h2 {
    font-size: 26px;
    line-height: 1.4;
    margin: 12px 0
}

.journal-card p {
    font-size: 15px;
    line-height: 1.7
}

.journal-card small {
    font-size: 12px
}

.text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted)
}

.journal-article {
    max-width: 760px;
    margin: 48px auto
}

.journal-article > small {
    display: block;
    margin-top: 28px
}

.journal-article h1 {
    margin: 16px 0 30px
}

.journal-article p {
    font-size: 18px;
    line-height: 1.85
}

.club-coming {
    text-align: center;
    max-width: 760px;
    margin: 32px auto 64px
}

.club-coming > img {
    width: 360px;
    height: 300px;
    object-fit: contain
}

.club-coming h1 {
    font-size: 36px
}

.club-coming p {
    max-width: 580px;
    margin: 20px auto;
    line-height: 1.9
}

.club-coming strong {
    display: inline-block;
    border-bottom: 2px solid var(--sky);
    font-size: 24px;
    color: var(--muted);
    padding: 10px 20px
}

.collaborate-page {
    max-width: 880px;
    margin: auto
}

.collaborate-page > p {
    max-width: 680px;
    line-height: 1.9
}

.collaborate-page form h2 {
    margin-top: 36px
}

.proposal {
    margin: 36px 0 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px 20px
}

.proposal legend {
    padding-inline: 10px;
    font-size: 22px
}

.proposal-options {
    grid-column: 1/-1;
    display: flex;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-block: 10px
}

.proposal-options strong {
    width: 100%
}

.proposal-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px
}

.application-review {
    margin-top: 22px
}

#application-summary dl {
    display: grid;
    grid-template-columns:1fr 2fr;
    gap: 10px;
    padding: 20px;
    border-block: 1px solid var(--line)
}

#application-summary dd {
    margin: 0;
    overflow-wrap: anywhere
}

.full-menu {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
    position: relative;
    z-index: 20
}

.full-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px
}

.full-menu-head h2 {
    margin: 0
}

.full-menu-head button {
    background: none;
    border: 0;
    color: var(--muted)
}

.full-menu-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 0 36px
}

.full-menu-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    color: var(--muted)
}

.full-menu-item:hover {
    color: var(--sky)
}

html[lang=en] .header-menu-icon {
    transform: rotate(80deg)
}

.learning-category img, .learning-category img.corners-rounded {
    border-radius: 12px;
    transition: border-radius 1.2s ease
}

.learning-category:hover img {
    border-radius: 0;
    transition: border-radius 1.2s ease
}

@media (max-width: 1023px) {
    .topbar nav {
        gap: 12px;
        font-size: 13px
    }
}

@media (max-width: 700px) {
    .more-item {
        grid-template-columns:1fr 24px;
        gap: 10px;
        padding: 18px 0
    }

    .more-item > span {
        font-size: 22px
    }

    .more-item small {
        grid-column: 1;
        grid-row: 2
    }

    .more-item > .ic {
        grid-column: 2;
        grid-row: 1
    }

    .about-page, .journal, .collaborate-page {
        padding: 30px 0
    }

    .about-intro p {
        font-size: 17px
    }

    .about-grid, .ecosystem-grid, .journal-grid {
        grid-template-columns:1fr;
        gap: 24px
    }

    .journal-article p {
        font-size: 16px
    }

    .proposal {
        grid-template-columns:1fr;
        padding: 16px
    }

    .full-menu-grid {
        grid-template-columns:1fr 1fr;
        gap: 0 18px
    }

    .full-menu-item {
        font-size: 16px;
        padding: 16px 0;
        gap: 8px
    }

    .full-menu-head h2 {
        font-size: 24px
    }

    .club-coming > img {
        max-width: 100%;
        width: 300px;
        height: 250px
    }

    .club-coming h1 {
        font-size: 28px
    }

    .full-menu .wrap {
        padding-inline: 20px
    }
}

@media (prefers-reduced-motion: reduce) {
    .learning-category img, .learning-category:hover img {
        transition: none
    }
}

.more-page {
    min-height: calc(100dvh - 92px);
    display: grid;
    place-items: center;
    padding: 60px 0
}

.more-page-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    text-align: center;
    width: 100%
}

.more-page-link {
    font-size: clamp(30px, 4.5vw, 64px);
    line-height: 1.3;
    font-weight: 600;
    color: var(--blue);
    transition: color .25s
}

.more-page-link:hover, .more-page-link:focus-visible {
    color: var(--sky)
}

body:has(.more-page) {
    background: var(--navy);
    --bg: var(--navy);
    --ink: var(--cream);
    --line: var(--blue)
}

body:has(.more-page) .footer, body:has(.more-page) .prototype-footer {
    display: none
}

html[lang=en] .more-page-link {
    font-family: PortraitText, Georgia, serif;
    font-weight: 400;
    letter-spacing: -.035em;
    text-transform: capitalize
}

.more-toggle {
    font: inherit
}

.footer-grid > :not(:first-child) {
    text-align: center
}

.footer-grid > :not(:first-child) > a:not(.brand) {
    margin-inline: auto
}

@media (max-width: 700px) {
    .more-page {
        min-height: calc(100dvh - 72px);
        padding: 40px 0
    }

    .more-page-links {
        gap: 28px
    }

    .more-page-link {
        font-size: 28px
    }
}

.more-page-link {
    color: var(--sky)
}

@media (min-width: 701px) {
    .more-page-links:has(.more-page-link:hover) .more-page-link {
        color: var(--blue)
    }

    .more-page-links:has(.more-page-link:hover) .more-page-link:hover {
        color: var(--sky)
    }
}

html[lang=fa] .more-page-link {
    font-size: clamp(21px, 3.15vw, 44.8px)
}

html[lang=en] .more-page-link {
    letter-spacing: -.0455em
}

@media (max-width: 700px) {
    .more-page-link, .more-page-link:hover, .more-page-link:focus-visible {
        color: var(--blue);
        transition: color 5s linear
    }

    .more-page-link.more-selected, .more-page-link.more-selected:hover {
        color: var(--sky)
    }

    html[lang=fa] .more-page-link {
        font-size: 19.6px
    }

    .more-page-links[data-navigating=true] .more-page-link:not(.more-selected) {
        pointer-events: none
    }
}

.site-header .tools {
    --header-control: var(--sky)
}

.site-header .tools .icon-btn, .site-header .tools .small-btn, .site-header .tools .icon-btn:hover, .site-header .tools .small-btn:hover {
    background: transparent !important;
    border-color: var(--sky) !important;
    color: var(--sky) !important;
    box-shadow: none
}

.site-header .tools .ic {
    filter: brightness(0) saturate(100%) invert(78%) sepia(15%) saturate(646%) hue-rotate(158deg)
}

html[lang=en] .more-page-links {
    gap: 17px
}

@media (max-width: 700px) {
    .more-page-link, .more-page-link:hover, .more-page-link:focus-visible {
        transition: color 3s linear
    }

    html[lang=en] .more-page-links {
        gap: 14px
    }
}

html[lang=en] .header-menu-icon {
    transform: rotate(180deg)
}

html[lang=en] .more-page-link {
    font-size: clamp(33px, 4.95vw, 70.4px);
    letter-spacing: -.0546em
}

@media (max-width: 700px) {
    html[lang=en] .more-page-link {
        font-size: 30.8px
    }
}

.required-asterisk {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-inline-start: 6px;
    object-fit: contain
}

.required-icon-sample {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-block: 20px
}

.required-icon-sample .required-asterisk {
    width: 28px;
    height: 28px
}

html[lang=en] .more-page-links {
    gap: 11.9px
}

@media (max-width: 700px) {
    html[lang=en] .more-page-links {
        gap: 9.8px
    }
}

.field-label .required-asterisk {
    margin-inline-start: 0;
    margin-inline-end: 0;
    vertical-align: middle
}

html[lang=en] .more-page-links {
    gap: 6.9px
}

@media (max-width: 700px) {
    html[lang=en] .more-page-links {
        gap: 4.8px
    }
}

html[lang=en] .more-page-links {
    gap: 0
}

html[lang=en] .more-page-link + .more-page-link {
    margin-top: -3.1px
}

@media (max-width: 700px) {
    html[lang=en] .more-page-link + .more-page-link {
        margin-top: -5.2px
    }
}

/* Consistent field geometry and explicit route styles across browsers. */
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select, .input, .select, .custom-select-trigger {
    border-radius: 5px
}

html {
    background: var(--bg)
}

body {
    min-height: 100vh;
    background: var(--bg)
}

body.more-route {
    background: var(--navy);
    --bg: var(--navy);
    --ink: var(--cream);
    --line: var(--blue)
}

body.more-route .footer, body.more-route .prototype-footer {
    display: none
}

.site-header .hub-tabs > a {
    position: relative
}

.site-header .hub-tabs > a:hover {
    border-bottom-color: var(--gold)
}

.site-header .hub-tabs > a.active {
    color: var(--gold);
    border-bottom-color: var(--gold)
}

/* Reserve a separate flight lane at every viewport width. */
body.home-page main.wrap, body.home-page .footer > .wrap {
    max-width: 1200px;
    width: calc(100% - 112px);
    margin-inline: auto;
    padding-inline: 32px
}

html[dir=rtl] body.home-page main.wrap, html[dir=rtl] body.home-page .footer > .wrap {
    margin-left: max(112px, calc((100% - 1200px) / 2));
    margin-right: auto
}

html[dir=ltr] body.home-page main.wrap, html[dir=ltr] body.home-page .footer > .wrap {
    margin-right: max(112px, calc((100% - 1200px) / 2));
    margin-left: auto
}

@media (max-width: 1023px) {
    body.home-page main.wrap, body.home-page .footer > .wrap {
        width: calc(100% - 78px);
        padding-inline: 24px
    }

    html[dir=rtl] body.home-page main.wrap, html[dir=rtl] body.home-page .footer > .wrap {
        margin-left: 78px
    }

    html[dir=ltr] body.home-page main.wrap, html[dir=ltr] body.home-page .footer > .wrap {
        margin-right: 78px
    }
}

@media (max-width: 700px) {
    body.home-page main.wrap, body.home-page .footer > .wrap {
        width: calc(100% - 58px);
        padding-inline: 16px
    }

    html[dir=rtl] body.home-page main.wrap, html[dir=rtl] body.home-page .footer > .wrap {
        margin-left: 58px
    }

    html[dir=ltr] body.home-page main.wrap, html[dir=ltr] body.home-page .footer > .wrap {
        margin-right: 58px
    }

    .footer-grid, body.home-page .footer-grid {
        width: 100%;
        margin-inline: 0;
        grid-template-columns:54px repeat(3, minmax(0, 1fr));
        gap: 8px;
        align-items: center
    }

    .footer-grid > :first-child {
        grid-column: 1;
        grid-row: 1;
        align-self: center !important;
        margin: 0 !important
    }

    .footer-grid > :nth-child(2) {
        grid-column: 2;
        grid-row: 1
    }

    .footer-grid > :nth-child(3) {
        grid-column: 3;
        grid-row: 1
    }

    .footer-grid > :nth-child(4) {
        grid-column: 4;
        grid-row: 1
    }

    .footer .footer-combination {
        width: 50px !important;
        max-width: 50px !important;
        height: auto !important
    }

    .footer-grid strong {
        font-size: 10px
    }

    .footer-grid > div > a:not(.brand) {
        font-size: 10px
    }
}

.site-header .topbar > .brand {
    position: relative
}

.site-header .topbar > .brand:after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    mask: url('../assets/karabiz/brand/mark-day.webp') center/contain no-repeat;
    -webkit-mask: url('../assets/karabiz/brand/mark-day.webp') center/contain no-repeat;
    opacity: 0;
    pointer-events: none
}

.site-header .topbar > .brand:hover:after, .site-header .topbar > .brand:focus-visible:after {
    opacity: 1
}

.site-header .topbar > .brand:hover > img {
    opacity: 0
}

.after-login h1 {
    text-align: center;
    font-size: clamp(24px, 3vw, 40px);
    margin-bottom: 38px;
    color: var(--cream)
}

.site-header .topbar > .brand:after {
    background: transparent url('../assets/karabiz/brand/mark-gold.svg') center/contain no-repeat;
    mask: none;
    -webkit-mask: none
}

.site-header .topbar > .brand:hover > img {
    opacity: 1
}

.site-header .topbar > .brand:hover:after {
    opacity: 1
}

.site-header .topbar > .brand:hover > img, .site-header .topbar > .brand:focus-visible > img {
    opacity: 0
}

.otp-instruction {
    text-align: center;
    color: var(--gold);
    font-size: 16px;
    font-weight: 400;
    margin: 20px 0
}

.otp-field {
    text-align: center;
    margin: 20px 0
}

.otp-field > label {
    display: block;
    margin-bottom: 12px
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px
}

.otp-boxes .otp-digit {
    width: 48px;
    min-width: 0;
    height: 54px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    line-height: 1;
    border: 1px solid var(--blue);
    border-radius: 5px;
    background: transparent;
    color: var(--ink)
}

.otp-expiry, .otp-error {
    text-align: center
}

.otp-error {
    color: var(--gold);
    font-size: 14px
}

html[lang=en] .otp-instruction {
    font-family: Graphik, Arial, sans-serif
}

@media (max-width: 360px) {
    .otp-boxes {
        gap: 7px
    }

    .otp-boxes .otp-digit {
        width: 40px
    }
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    margin: 24px 0
}

.account-actions .btn .ic {
    width: 20px;
    height: 20px
}

@media (max-width: 700px) {
    .more-page-link, .more-page-link:hover, .more-page-link:focus-visible {
        transition: color 2s linear
    }
}

.partners .partner-link {
    display: contents
}

.partners .partner-link img {
    cursor: pointer
}

.partners .partner-link:hover img {
    opacity: 1
}

.partners .partner-link:focus-visible img {
    outline: 2px solid var(--gold);
    outline-offset: 4px
}

.proposal-option-help {
    position: relative
}

.proposal-tooltip {
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 10px);
    inset-inline-start: 0;
    width: 260px;
    max-width: 70vw;
    padding: 12px 14px;
    border: 1px solid var(--sky);
    border-radius: 5px;
    background: var(--navy);
    color: var(--cream);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    text-align: start;
    white-space: normal;
    box-shadow: 0 5px 16px rgba(9, 26, 51, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s
}

.proposal-option-help:hover .proposal-tooltip, .proposal-option-help:focus-within .proposal-tooltip {
    visibility: visible;
    opacity: 1
}

.proposal-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    inset-inline-start: 16px;
    border: 6px solid transparent;
    border-top-color: var(--navy)
}

/* Shared text-button contract: one font size, one line, protected dot lane. */
.btn {
    position: relative !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    justify-content: center !important;
}

.btn > .button-label {
    position: static !important;
    display: block !important;
    inset: auto !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    white-space: nowrap !important;
    max-width: none !important;
    flex: none !important;
    text-align: center !important
}

.btn:before {
    position: absolute !important;
    inset-inline-start: var(--button-dot-start) !important;
    inset-inline-end: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    translate: none !important;
    transform: translateY(-50%) !important
}

/* Shared button contract: center the complete dot + text unit; fixed 10px gap. */
.btn, html[lang=en] .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important
}

.btn::before, html[lang=en] .btn::before {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px !important
}

.btn > .button-label, html[lang=en] .btn > .button-label {
    position: static !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important
}

.btn.button-baseline-measure::before, html[lang=en] .btn.button-baseline-measure::before {
    position: absolute !important
}

/* Latest approval: dot diameter and dot-to-label gap are both 4px. */
.btn, html[lang=en] .btn {
    gap: 4px !important
}

.btn::before, html[lang=en] .btn::before {
    width: 4px !important;
    height: 4px !important;
    flex: 0 0 4px !important
}

/* Restore approved diameter; dot-to-label gap equals diameter. */
.btn, html[lang=en] .btn {
    gap: 8px !important
}

.btn::before, html[lang=en] .btn::before {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px !important
}

/* Karabiz footer: mirrored brand block, newsletter and return-to-top. */
.footer.karabiz-footer {
    background: #091A33;
    color: #FCF8F2;
    border-top: 1px solid #91C9E3;
    padding: 58px 0 35px;
    margin-top: 45px;
    text-align: start
}

.karabiz-footer .footer-newsletter {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 55px;
    align-items: start
}

.karabiz-footer h2 {
    color: #FCF8F2 !important;
    font-size: 32px !important;
    line-height: 1.2;
    margin-bottom: 20px
}

.karabiz-footer p {
    font-size: 16px;
    line-height: 1.7;
    color: #FCF8F2;
    max-width: 580px
}

.footer-signup > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

.footer-signup-row {
    display: flex;
    gap: 12px;
    align-items: center
}

.karabiz-footer .footer-signup input {
    min-width: 0;
    flex: 1;
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #91C9E3;
    background: #FCF8F2;
    color: #091A33;
    border-radius: 5px;
    font-size: 14px
}

.karabiz-footer .btn.secondary {
    color: #91C9E3 !important;
    border-color: #91C9E3;
    background: transparent
}

.karabiz-footer .footer-signup-note, .karabiz-footer .footer-signup-status {
    font-size: 12px;
    margin-top: 12px;
    color: #91C9E3
}

.karabiz-footer .footer-top-row {
    display: flex;
    justify-content: flex-end;
    padding: 25px 0 45px
}

.karabiz-footer .footer-bottom {
    display: grid;
    grid-template-columns:1.25fr 1fr;
    gap: 110px;
    padding-top: 25px
}

.karabiz-footer .footer-wordmark {
    display: inline-block;
    margin-bottom: 25px
}

.karabiz-footer .footer-wordmark img {
    width: 230px;
    height: 65px;
    object-fit: contain;
    object-position: 50% 50%
}

.karabiz-footer .footer-link-columns {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 38px
}

.karabiz-footer .footer-link-columns > div {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.karabiz-footer .footer-link-columns a {
    display: block;
    font-size: 15px;
    color: #FCF8F2
}

.karabiz-footer a:hover {
    color: #91C9E3
}

.karabiz-footer .social-links {
    justify-content: flex-start;
    margin: 24px 0
}

.karabiz-footer .social-links .ic {
    filter: brightness(0) saturate(100%) invert(84%) sepia(15%) saturate(720%) hue-rotate(157deg)
}

.karabiz-footer .footer-copy {
    font-size: 12px;
    color: #91C9E3;
    margin-top: 25px
}

@media (max-width: 700px) {
    .footer.karabiz-footer {
        padding: 35px 0 26px
    }

    .karabiz-footer .footer-newsletter, .karabiz-footer .footer-bottom {
        grid-template-columns:1fr;
        gap: 25px
    }

    .karabiz-footer h2 {
        font-size: 26px !important
    }

    .karabiz-footer p {
        font-size: 14px
    }

    .karabiz-footer .footer-top-row {
        padding: 12px 0 25px
    }

    .karabiz-footer .footer-brand-block {
        order: 2
    }

    .karabiz-footer .footer-link-columns {
        order: 1;
        gap: 22px
    }

    .karabiz-footer .footer-wordmark img {
        width: 190px;
        height: 55px
    }

    .karabiz-footer .footer-link-columns a {
        font-size: 14px
    }
}

@media (max-width: 700px) {
    .karabiz-footer .footer-signup-row .btn {
        width: 105px !important;
        flex: 0 0 105px !important
    }

    .karabiz-footer .footer-signup-row input {
        flex: 1 1 0;
        width: 0;
        min-width: 0
    }
}

/* Compact footer rhythm, flush logotype, matching filled actions. */
.karabiz-footer .footer-link-columns > div {
    gap: 6px !important
}

.karabiz-footer .footer-link-columns a {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important
}

.karabiz-footer .footer-bottom {
    gap: 65px;
    padding-top: 10px
}

.karabiz-footer .footer-wordmark {
    width: 230px;
    overflow: hidden;
    margin-bottom: 15px
}

.karabiz-footer .footer-wordmark img {
    max-width: none;
    width: 300px;
    height: 85px;
    margin-inline-start: -35px;
    display: block
}

.karabiz-footer .footer-top-row {
    padding: 18px 0 25px;
    justify-content: flex-end
}

.karabiz-footer .footer-signup .btn, .karabiz-footer .footer-jump {
    background: #91C9E3 !important;
    border-color: #91C9E3 !important;
    color: #11447A !important
}

@media (max-width: 700px) {
    .karabiz-footer .footer-bottom {
        gap: 25px
    }

    .karabiz-footer .footer-wordmark {
        width: 190px
    }

    .karabiz-footer .footer-wordmark img {
        width: 250px;
        height: 70px;
        margin-inline-start: -30px
    }
}

/* Smaller intact footer wordmark; no crop or negative offset in either language. */
.karabiz-footer .footer-wordmark {
    width: 161px;
    overflow: visible;
    display: block;
    margin-inline: 0;
    margin-bottom: 15px
}

.karabiz-footer .footer-wordmark img {
    width: 210px;
    height: 59.5px;
    max-width: none;
    margin: 0;
    margin-inline-start: -24.5px;
    object-fit: contain;
    display: block
}

html[lang=fa] .karabiz-footer .footer-wordmark {
    width: 161px;
    overflow: visible
}

html[lang=fa] .karabiz-footer .footer-wordmark img {
    width: 161px;
    height: auto;
    max-width: 100%;
    margin: 0;
    object-fit: contain
}

.karabiz-footer .footer-jump, .karabiz-footer .footer-signup .btn, .karabiz-footer .footer-jump .button-label, .karabiz-footer .footer-signup .button-label {
    color: #11447A !important
}

.karabiz-footer .footer-jump::before, .karabiz-footer .footer-signup .btn::before {
    background: #11447A !important
}

@media (max-width: 700px) {
    .karabiz-footer .footer-wordmark {
        width: 133px
    }

    .karabiz-footer .footer-wordmark img {
        width: 175px;
        height: 49px;
        margin-inline-start: -21px
    }

    html[lang=fa] .karabiz-footer .footer-wordmark {
        width: 133px
    }

    html[lang=fa] .karabiz-footer .footer-wordmark img {
        width: 133px;
        height: auto;
        margin: 0
    }
}

/* Transfer 20px from newsletter button to adjacent flexible email field. */
@media (max-width: 700px) {
    .karabiz-footer .footer-signup-row .btn {
        width: 85px !important;
        flex: 0 0 85px !important
    }
}

/* Newsletter: total 50px transfer; content protects the smallest mobile width. */
@media (max-width: 700px) {
    .karabiz-footer .footer-signup-row .btn {
        width: 55px !important;
        min-width: max-content !important;
        flex: 0 0 auto !important;
        padding-inline: 6px !important
    }
}

@media (max-width: 700px) {
    .karabiz-footer .footer-signup-row .btn {
        width: 15px !important;
        min-width: max-content !important;
        flex: 0 0 auto !important
    }
}
