/* ==== FONTS ==== */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Fraunces Fallback';
    src: local('Georgia');
    size-adjust: 93.4%;
}

@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/karla-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Karla Fallback';
    src: local('Arial');
    size-adjust: 103.58%;
}

/* ==== TOKENS ==== */
:root {
    --c-bg: rgb(247, 248, 250);
    --c-rule: rgb(218, 221, 227);
    --c-mute: rgb(98, 105, 119);
    --c-text: rgb(27, 31, 42);
    --c-emerald: rgb(15, 107, 84);
    --c-emerald-deep: rgb(10, 82, 64);
    --c-emerald-soft: rgb(226, 240, 235);
    --c-glow: rgba(15, 107, 84, 0.16);
    --c-veil: rgba(247, 248, 250, 0.9);
    --c-white: rgb(255, 255, 255);
    --s-2: 16px;
    --s-3: 24px;
    --s-4: 32px;
    --s-5: 48px;
    --s-6: 64px;
    --s-off: 8px;
    --s-frame: 14px;
    --s-head: 72px;
    --s-wrap: 1200px;
    --f-head: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
    --f-body: 'Karla', 'Karla Fallback', Arial, sans-serif;
}

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

html {
    scroll-padding-top: calc(var(--s-head) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table {
    margin: 0;
}

ul, ol {
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

a {
    color: var(--c-emerald);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--c-emerald-deep);
}

:focus-visible {
    outline: 3px solid var(--c-emerald);
    outline-offset: 3px;
}

html [hidden] {
    display: none;
}

button {
    font: inherit;
    color: inherit;
}

/* ==== TYPE ==== */
h1, h2, h3 {
    font-family: var(--f-head);
    line-height: 1.08;
    color: var(--c-text);
}

h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.55rem, 2.9vw, 2.35rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.tb-label {
    display: block;
    margin-bottom: var(--s-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-emerald);
}

.tb-lead {
    max-width: 62ch;
    font-size: 1.2rem;
    color: var(--c-mute);
}

.tb-small {
    font-size: 0.92rem;
    color: var(--c-mute);
}

.tb-ord {
    display: inline-block;
    font-size: 0.64em;
    line-height: 1;
    vertical-align: 0.62em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 1px;
}

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

/* ==== LAYOUT ==== */
.tb-wrap {
    width: 100%;
    max-width: var(--s-wrap);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.tb-sec {
    position: relative;
    isolation: isolate;
    padding-top: var(--s-6);
}

.tb-gap-2 { padding-top: 80px; }
.tb-gap-3 { padding-top: 96px; }
.tb-gap-4 { padding-top: 112px; }
.tb-gap-5 { padding-top: 136px; }
.tb-gap-6 { padding-top: 160px; }

.tb-sec-head {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-3);
    border-bottom: 2px solid var(--c-text);
}

.tb-sec-head .tb-label {
    margin-bottom: 0;
}

.tb-sec-head p {
    color: var(--c-mute);
}

#content {
    display: block;
    padding-bottom: 168px;
}

/* ==== SKIP LINK ==== */
.tb-skip {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 90;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--c-white);
    background: var(--c-emerald);
}

.tb-skip:focus {
    top: 12px;
    color: var(--c-white);
}

/* ==== HEADER ==== */
.tb-head {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--s-head);
    border-bottom: 1px solid var(--c-rule);
    background: var(--c-bg);
}

.tb-head.nav-active {
    z-index: 70;
}

.tb-head-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.tb-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-family: var(--f-head);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--c-text);
    text-decoration: none;
}

.tb-brand:hover {
    color: var(--c-emerald);
}

.tb-brand svg {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
}

.tb-burger {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--c-text);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.tb-burger span {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 2px;
    background: var(--c-text);
    transition: transform 0.2s ease, top 0.2s ease;
}

.tb-burger span:nth-child(1) { top: 17px; }
.tb-burger span:nth-child(2) { top: 23px; }
.tb-burger span:nth-child(3) { top: 29px; }

.tb-burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.tb-burger[aria-expanded="true"] span:nth-child(2) { transform: scaleX(0); }
.tb-burger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.js .tb-burger {
    display: block;
}

/* ==== NAV ==== */
.tb-nav {
    border-bottom: 1px solid var(--c-rule);
    background: var(--c-bg);
}

.tb-nav-in {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.tb-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 2px solid transparent;
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
}

.tb-nav a:hover,
.tb-nav a[aria-current="page"] {
    border-bottom-color: var(--c-emerald);
    color: var(--c-emerald);
}

.js .tb-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    padding-top: calc(var(--s-head) + 24px);
    border: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
}

.js .tb-nav.nav-active {
    visibility: visible;
    transform: none;
    transition: transform 0.2s ease;
}

.js .tb-nav-in {
    flex-direction: column;
    gap: 0;
}

.js .tb-nav a {
    min-height: 64px;
    border-bottom: 1px solid var(--c-rule);
    font-family: var(--f-head);
    font-size: 1.6rem;
    font-weight: 800;
}

/* ==== BUTTONS ==== */
.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 30px;
    border: 2px solid var(--c-emerald);
    border-radius: 999px;
    font-family: var(--f-body);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--c-white);
    text-decoration: none;
    background: var(--c-emerald);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tb-btn:hover {
    border-color: var(--c-emerald-deep);
    color: var(--c-white);
    background: var(--c-emerald-deep);
}

.tb-btn-line {
    color: var(--c-emerald);
    background: transparent;
}

.tb-btn-line:hover {
    color: var(--c-white);
}

/* ==== GLOW ==== */
.tb-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;
    width: min(900px, 100%);
    height: 100%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--c-glow), rgba(15, 107, 84, 0));
    pointer-events: none;
}

/* ==== HERO ==== */
.tb-hero {
    position: relative;
    isolation: isolate;
    padding-top: 56px;
    text-align: center;
}

.tb-hero-text {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

.tb-hero-text::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    z-index: -1;
    width: min(760px, 100%);
    height: calc(100% + 80px);
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--c-glow), rgba(15, 107, 84, 0));
    pointer-events: none;
}

.tb-hero h1 {
    margin-bottom: var(--s-3);
}

.tb-hero .tb-lead {
    margin: 0 auto var(--s-4);
}

.tb-frame {
    position: relative;
    isolation: isolate;
    align-self: start;
}

.tb-frame::after {
    content: '';
    position: absolute;
    top: var(--s-frame);
    left: var(--s-frame);
    right: calc(var(--s-frame) * -1);
    bottom: calc(var(--s-frame) * -1);
    z-index: -1;
    border: 2px solid var(--c-emerald);
    background: var(--c-emerald-soft);
}

.tb-hero-shot {
    max-width: 1100px;
    margin: var(--s-5) auto 0;
    margin-right: auto;
}

.tb-photo {
    position: relative;
    aspect-ratio: 21 / 9;
    max-height: clamp(260px, 58vh, 520px);
    width: 100%;
    background-color: var(--c-rule);
    background-image: url('../img/aula-taller.webp');
    background-position: center 40%;
    background-size: cover;
}

.tb-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    visibility: hidden;
    background: var(--c-veil);
    -webkit-mask-image: radial-gradient(circle 170px at var(--mx, 50%) var(--my, 50%), transparent 0, transparent 55%, rgb(0, 0, 0) 100%);
    mask-image: radial-gradient(circle 170px at var(--mx, 50%) var(--my, 50%), transparent 0, transparent 55%, rgb(0, 0, 0) 100%);
}

.tb-photo.tb-lit::after {
    visibility: visible;
}

.tb-photo-hint {
    position: absolute;
    left: var(--s-2);
    bottom: var(--s-2);
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text);
    background: var(--c-bg);
}

.tb-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1100px;
    margin: calc(var(--s-frame) + 40px) auto 0;
    border-top: 2px solid var(--c-text);
    text-align: left;
}

.tb-facts div {
    padding: 18px 16px 4px 0;
    border-bottom: 1px solid var(--c-rule);
}

.tb-facts dt {
    font-family: var(--f-head);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 900;
    line-height: 1;
}

.tb-facts dd {
    margin-top: 6px;
    padding-bottom: 12px;
    font-size: 0.95rem;
    color: var(--c-mute);
}

/* ==== DECK TABS ==== */
.tb-deck-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--s-4);
}

.js .tb-deck-tabs {
    display: flex;
}

.tb-deck-tab {
    min-height: 48px;
    padding: 10px 22px;
    border: 1.5px solid var(--c-text);
    border-radius: 999px;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
}

.tb-deck-tab:hover {
    border-color: var(--c-emerald);
    color: var(--c-emerald);
}

.tb-deck-tab[aria-selected="true"] {
    border-color: var(--c-emerald);
    color: var(--c-white);
    background: var(--c-emerald);
}

.tb-deck-panels {
    display: grid;
    gap: calc(var(--s-off) + 40px);
}

.js .tb-deck-panel.tb-off {
    display: none;
}

.tb-card {
    position: relative;
    border: 2px solid var(--c-text);
    background: var(--c-bg);
}

.tb-card::after {
    content: '';
    position: absolute;
    top: var(--s-off);
    left: var(--s-off);
    right: calc(var(--s-off) * -1);
    bottom: calc(var(--s-off) * -1);
    z-index: -1;
    border: 2px solid var(--c-emerald);
}

.tb-deck-panel {
    display: grid;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-3);
}

.tb-deck-panel h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.tb-deck-panel > div > p {
    margin-top: 12px;
}

.tb-run {
    list-style: none;
    border-top: 1px solid var(--c-rule);
}

.tb-run li {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-rule);
}

.tb-run time,
.tb-run .tb-min {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--c-emerald);
    font-variant-numeric: tabular-nums;
}

.tb-take {
    display: grid;
    align-self: start;
    align-content: start;
    gap: 14px;
    padding: var(--s-3);
    background: var(--c-emerald-soft);
}

.tb-take h4 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-emerald-deep);
}

.tb-take ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.tb-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 107, 84, 0.3);
}

.tb-price b {
    font-family: var(--f-head);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

/* ==== SESSION ==== */
.tb-session {
    display: grid;
    gap: calc(var(--s-frame) + 40px);
}

.tb-session figure {
    margin-right: var(--s-frame);
}

.tb-session img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.tb-steps {
    list-style: none;
    counter-reset: tbstep;
    display: grid;
    gap: 0;
}

.tb-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--c-rule);
    counter-increment: tbstep;
}

.tb-steps li::before {
    content: counter(tbstep, decimal-leading-zero);
    font-family: var(--f-head);
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--c-emerald);
}

.tb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-top: var(--s-3);
}

.tb-chips li {
    padding: 8px 16px;
    border: 1.5px solid var(--c-emerald);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--c-emerald-deep);
    background: var(--c-emerald-soft);
}

/* ==== PLAYBILL ==== */
.tb-bill {
    list-style: none;
    border-top: 2px solid var(--c-text);
}

.tb-bill > li {
    border-bottom: 1px solid var(--c-text);
}

.tb-bill-top {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 88px;
    padding: 14px 0;
    border: 0;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.tb-bill-top:hover .tb-bill-name {
    color: var(--c-emerald);
}

.tb-bill-date {
    font-family: var(--f-head);
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 0.95;
}

.tb-bill-date small {
    display: block;
    margin-top: 4px;
    font-family: var(--f-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-mute);
}

.tb-bill-name {
    display: block;
    font-family: var(--f-head);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.tb-bill-hour {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--c-mute);
}

.tb-bill-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--c-text);
    border-radius: 999px;
}

.tb-bill-icon::before,
.tb-bill-icon::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 11px;
    width: 15px;
    height: 2px;
    background: var(--c-text);
    transition: transform 0.2s ease;
}

.tb-bill-icon::after {
    transform: rotate(90deg);
}

.inview .tb-bill-icon::after {
    transform: rotate(0deg);
}

.tb-bill-body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.25s ease, visibility 0s linear 0s;
}

.tb-bill-body > div {
    min-height: 0;
    overflow: hidden;
}

.js .tb-bill > li:not(.inview) .tb-bill-body {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.25s ease, visibility 0s linear 0.25s;
}

.tb-bill-detail {
    display: grid;
    gap: 12px;
    margin: 0 0 20px 92px;
    padding: 18px 20px;
    border-left: 3px solid var(--c-emerald);
    background: var(--c-emerald-soft);
}

/* ==== FAQ ==== */
.tb-faq {
    display: grid;
    gap: 12px;
}

.tb-faq details {
    border: 1.5px solid var(--c-text);
    background: var(--c-bg);
}

.tb-faq summary {
    position: relative;
    display: block;
    min-height: 56px;
    padding: 16px 56px 16px 20px;
    font-family: var(--f-head);
    font-size: 1.12rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.tb-faq summary::-webkit-details-marker {
    display: none;
}

.tb-faq summary::after {
    content: '+';
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--c-emerald);
}

.tb-faq details[open] summary::after {
    content: '\2212';
}

.tb-faq details p {
    padding: 0 20px 18px;
    color: var(--c-mute);
}

/* ==== CTA ==== */
.tb-cta {
    display: grid;
    justify-items: center;
    gap: var(--s-3);
    max-width: 860px;
    margin: 0 auto;
    padding: var(--s-5) var(--s-3);
    text-align: center;
}

.tb-cta p {
    max-width: 56ch;
    color: var(--c-mute);
}

/* ==== PAGE HEAD ==== */
.tb-pagehead {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 56px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--c-text);
}

.tb-pagehead::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 0;
    z-index: -1;
    width: min(620px, 100%);
    height: 84%;
    background: radial-gradient(closest-side, var(--c-glow), rgba(15, 107, 84, 0));
    pointer-events: none;
}

.tb-pagehead h1 {
    max-width: 18ch;
    margin-bottom: var(--s-2);
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

/* ==== COMPARE TABLE ==== */
.tb-table-box {
    overflow-x: auto;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--c-emerald) transparent;
}

.tb-compare {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.tb-compare caption {
    padding-bottom: 14px;
    font-size: 0.9rem;
    text-align: left;
    color: var(--c-mute);
}

.tb-compare th,
.tb-compare td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-rule);
    text-align: left;
    vertical-align: top;
}

.tb-compare thead th {
    border-bottom: 2px solid var(--c-text);
    font-family: var(--f-head);
    font-size: 1.15rem;
    font-weight: 800;
}

.tb-compare tbody th {
    width: 22%;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-mute);
}

.tb-compare .tb-col-mark {
    background: var(--c-emerald-soft);
}

.tb-compare thead .tb-col-mark {
    border-top: 4px solid var(--c-emerald);
}

.tb-compare .tb-big {
    font-family: var(--f-head);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.1;
}

.tb-after-table {
    margin-top: 20px;
}

/* ==== GRID CARDS ==== */
.tb-grid {
    display: grid;
    gap: calc(var(--s-off) + 24px);
}

.tb-tile {
    padding: var(--s-3);
}

.tb-tile h3 {
    margin-bottom: 10px;
}

.tb-tile-num {
    display: block;
    margin-bottom: 12px;
    font-family: var(--f-head);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--c-emerald);
}

.tb-rules {
    display: grid;
    gap: 0;
    list-style: none;
    border-left: 4px solid var(--c-emerald);
    background: var(--c-emerald-soft);
}

.tb-rules li {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(15, 107, 84, 0.22);
}

.tb-rules li:last-child {
    border-bottom: 0;
}

.tb-rules b {
    display: block;
    margin-bottom: 4px;
    font-family: var(--f-head);
    font-size: 1.1rem;
}

.tb-person {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    padding: var(--s-3);
}

.tb-mono {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    font-family: var(--f-head);
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--c-white);
    background: var(--c-text);
}

.tb-person .tb-role {
    display: block;
    margin: 4px 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-emerald);
}

/* ==== FORM ==== */
.tb-book {
    display: grid;
    gap: calc(var(--s-off) + 40px);
}

.tb-form {
    display: grid;
    gap: 20px;
    padding: var(--s-4) var(--s-3);
}

.tb-field {
    display: grid;
    gap: 8px;
}

.tb-field label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tb-field input {
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 1.5px solid var(--c-text);
    border-radius: 0;
    font: inherit;
    color: var(--c-text);
    background: var(--c-white);
}

.tb-field input:focus {
    border-color: var(--c-emerald);
    outline: 3px solid var(--c-emerald-soft);
    outline-offset: 0;
}

.tb-field.tb-bad input {
    border-color: rgb(166, 38, 38);
}

.tb-err {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgb(166, 38, 38);
}

.tb-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tb-field .tb-check {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.tb-field .tb-check input {
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 2px 0 0;
    accent-color: var(--c-emerald);
}

.tb-form .tb-btn {
    justify-self: start;
}

.tb-form-msg {
    padding: 12px 16px;
    border-left: 3px solid rgb(166, 38, 38);
    font-weight: 700;
    background: rgb(250, 236, 236);
}

.tb-aside {
    display: grid;
    align-content: start;
    gap: var(--s-3);
}

.tb-box {
    padding: var(--s-3);
    border: 1.5px solid var(--c-text);
}

.tb-box h2 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.tb-box address {
    line-height: 1.7;
}

.tb-reqs {
    width: 100%;
    border-collapse: collapse;
}

.tb-reqs th,
.tb-reqs td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--c-rule);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.tb-reqs th[scope="row"] {
    width: 34%;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-mute);
}

/* ==== LEGAL ==== */
.tb-legal {
    display: grid;
    gap: var(--s-5);
}

.tb-toc {
    align-self: start;
    padding: var(--s-3);
    border: 1.5px solid var(--c-text);
}

.tb-toc ul {
    display: grid;
    gap: 2px;
    list-style: none;
    margin-top: 8px;
}

.tb-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
}

.tb-docs {
    display: grid;
    gap: calc(var(--s-off) + 32px);
    min-width: 0;
}

.tb-doc {
    display: grid;
    gap: 14px;
    padding: var(--s-4) var(--s-3);
    scroll-margin-top: calc(var(--s-head) + 24px);
}

.tb-doc h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.tb-doc h3 {
    margin-top: 8px;
    font-size: 1.1rem;
}

.tb-doc ul {
    display: grid;
    gap: 6px;
    padding-left: 20px;
}

.tb-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==== THANKS / 404 ==== */
.tb-next {
    display: grid;
    gap: calc(var(--s-off) + 24px);
}

.tb-lost {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    gap: var(--s-3);
    padding-top: 96px;
    text-align: center;
}

.tb-lost-code {
    font-family: var(--f-head);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--c-emerald);
}

/* ==== COOKIES ==== */
.tira-cookies {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 55;
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border: 2px solid var(--c-text);
    background: var(--c-bg);
}

.tira-cookies[hidden] {
    display: none;
}

.tira-cookies p {
    font-size: 0.95rem;
    line-height: 1.45;
}

.tira-cookies-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tira-cookies button {
    min-height: 44px;
    padding: 8px 18px;
    border: 2px solid var(--c-text);
    border-radius: 999px;
    font-weight: 700;
    color: var(--c-text);
    background: var(--c-bg);
    cursor: pointer;
}

.tira-cookies button:hover {
    border-color: var(--c-emerald);
    color: var(--c-white);
    background: var(--c-emerald);
}

.cookie-open body {
    padding-bottom: 168px;
}

/* ==== FOOTER ==== */
.tb-foot {
    border-top: 2px solid var(--c-text);
    padding-top: var(--s-4);
    padding-bottom: var(--s-4);
}

.tb-foot-in {
    display: grid;
    gap: var(--s-3);
}

.tb-foot address {
    font-size: 0.95rem;
    line-height: 1.6;
}

.tb-foot address a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--c-text);
}

.tb-foot address a:hover {
    color: var(--c-emerald);
}

.menu-lock body {
    overflow: hidden;
}

.tb-foot small {
    display: block;
    font-size: 0.85rem;
    color: var(--c-mute);
}

.tb-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    list-style: none;
}

.tb-foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--c-text);
}

.tb-foot-links a:hover {
    color: var(--c-emerald);
}

/* ==== MEDIA ==== */
@media (min-width: 700px) {
    .tb-wrap {
        padding-left: 32px;
        padding-right: 32px;
    }

    .tb-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tb-deck-panel {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        padding: var(--s-5) var(--s-4);
    }

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

    .tb-form {
        padding: var(--s-5) var(--s-4);
    }

    .tira-cookies {
        left: auto;
        right: 20px;
        bottom: 20px;
        width: 380px;
    }

    .cookie-open body {
        padding-bottom: 0;
    }

    .tb-foot-in {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}

@media (min-width: 900px) {
    .tb-burger,
    .js .tb-burger {
        display: none;
    }

    .tb-nav,
    .js .tb-nav {
        position: sticky;
        inset: auto;
        top: 0;
        z-index: 51;
        height: var(--s-head);
        margin-top: calc(var(--s-head) * -1);
        padding-top: 0;
        border: 0;
        visibility: visible;
        transform: none;
        background: transparent;
        pointer-events: none;
    }

    .tb-nav-in,
    .js .tb-nav-in {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 32px;
        height: 100%;
    }

    .tb-nav a,
    .js .tb-nav a {
        min-height: 48px;
        border-bottom: 2px solid transparent;
        font-family: var(--f-body);
        font-size: 1rem;
        font-weight: 700;
        pointer-events: auto;
    }

    .tb-nav a:hover,
    .tb-nav a[aria-current="page"] {
        border-bottom-color: var(--c-emerald);
    }

    .tb-session {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: start;
    }

    .tb-book {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        align-items: start;
    }

    .tb-legal {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .tb-toc {
        position: sticky;
        top: calc(var(--s-head) + 24px);
    }

    .tb-pagehead {
        min-height: 360px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .tb-next {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tb-run li {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .tb-bill-top {
        grid-template-columns: 62px minmax(0, 1fr) 40px;
        gap: 12px;
    }

    .tb-bill-date {
        font-size: 1.7rem;
    }

    .tb-bill-detail {
        margin-left: 0;
    }

    .tb-person {
        grid-template-columns: minmax(0, 1fr);
    }

    .tb-hero {
        padding-top: 32px;
    }

    .tb-hero .tb-lead {
        font-size: 1.05rem;
    }

    .tb-hero h1 {
        margin-bottom: var(--s-2);
        font-size: 2.15rem;
    }

    .tira-cookies {
        left: 8px;
        right: 8px;
        bottom: 8px;
        gap: 8px;
        padding: 10px 12px;
    }

    .tira-cookies p {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .tb-lost {
        padding-top: 40px;
        gap: var(--s-2);
    }

    .tb-lost-code {
        font-size: 4.5rem;
    }

    .tb-lost .tb-lead {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tb-btn,
    .tb-burger span,
    .tb-bill-body,
    .tb-bill-icon::before,
    .tb-bill-icon::after,
    .js .tb-nav,
    .js .tb-nav.nav-active {
        transition: none;
    }
}
