:root {
    --tb-ink: #0c1f1a;
    --tb-ink-soft: #2a4038;
    --tb-paper: #f3f6f2;
    --tb-paper-deep: #e4ebe4;
    --tb-teal: #0f8f8a;
    --tb-teal-deep: #0a6b67;
    --tb-teal-bright: #1ac6cf;
    --tb-white: #ffffff;
    --tb-line: rgba(12, 31, 26, 0.1);
    --tb-shadow: 0 16px 40px rgba(12, 31, 26, 0.1);
    --tb-radius: 10px;
    --tb-font-display: "Fraunces", Georgia, serif;
    --tb-font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --tb-shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
    scroll-behavior: smooth;
}

body.tb-body {
    margin: 0;
    color: var(--tb-ink);
    background: var(--tb-paper);
    font-family: var(--tb-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.tb-shell {
    width: var(--tb-shell);
    margin-inline: auto;
}

.tb-skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--tb-white);
    padding: 0.6rem 1rem;
}

.tb-skip:focus {
    top: 1rem;
}

.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--tb-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.tb-btn:hover {
    transform: translateY(-1px);
}

.tb-btn-primary {
    background: var(--tb-teal);
    color: var(--tb-white);
}

.tb-btn-primary:hover {
    background: var(--tb-teal-deep);
}

.tb-btn-ghost {
    background: transparent;
    color: var(--tb-ink);
    border-color: var(--tb-line);
}

.tb-btn-ghost:hover {
    background: rgba(15, 143, 138, 0.08);
}

.tb-btn-light {
    background: rgba(255, 255, 255, 0.14);
    color: var(--tb-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.tb-topbar {
    background: linear-gradient(90deg, #0a1714 0%, #0c1f1a 55%, #0a2a26 100%);
    color: rgba(255, 255, 255, 0.9);
}

.tb-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.5rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.tb-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(243, 246, 242, 0.92);
    border-bottom: 1px solid var(--tb-line);
}

.tb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.tb-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.tb-brand-logo {
    height: 2.6rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
}

.tb-brand-name {
    font-family: var(--tb-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tb-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tb-nav a {
    color: var(--tb-ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.tb-nav a:hover {
    color: var(--tb-teal-deep);
}

.tb-hero {
    position: relative;
    color: var(--tb-white);
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(12, 31, 26, 0.88), rgba(10, 107, 103, 0.72)),
        radial-gradient(circle at 20% 20%, rgba(26, 198, 207, 0.35), transparent 45%),
        #0c1f1a;
}

.tb-hero-inner {
    padding: 4.5rem 0 3.75rem;
}

.tb-hero-kicker {
    margin: 0 0 0.75rem;
    color: var(--tb-teal-bright);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tb-hero h1 {
    margin: 0 0 0.85rem;
    font-family: var(--tb-font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.tb-hero-support {
    margin: 0 0 1.75rem;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.tb-search {
    display: grid;
    grid-template-columns: 1fr 11rem auto;
    gap: 0.65rem;
    max-width: 44rem;
    padding: 0.75rem;
    border-radius: var(--tb-radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.tb-search input,
.tb-search select {
    min-height: 2.9rem;
    padding: 0.65rem 0.9rem;
    border: 0;
    border-radius: 4px;
    font: inherit;
    color: var(--tb-ink);
}

.tb-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.tb-stat {
    padding: 1rem 1.1rem;
    border-radius: var(--tb-radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tb-stat strong {
    display: block;
    font-family: var(--tb-font-display);
    font-size: 1.7rem;
    line-height: 1.1;
}

.tb-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tb-section {
    padding: 3.5rem 0;
}

.tb-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tb-section-head h2 {
    margin: 0;
    font-family: var(--tb-font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.02em;
}

.tb-section-head p {
    margin: 0.35rem 0 0;
    color: var(--tb-ink-soft);
}

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

.tb-job-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.35rem;
    background: var(--tb-white);
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    box-shadow: 0 1px 0 rgba(12, 31, 26, 0.03);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tb-job-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 143, 138, 0.35);
    box-shadow: var(--tb-shadow);
}

.tb-job-card h3 {
    margin: 0;
    font-family: var(--tb-font-display);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.tb-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    color: var(--tb-ink-soft);
    font-size: 0.92rem;
}

.tb-job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tb-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 143, 138, 0.1);
    color: var(--tb-teal-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tb-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--tb-ink-soft);
    background: var(--tb-white);
    border: 1px dashed var(--tb-line);
    border-radius: var(--tb-radius);
}

.tb-page-hero {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, #e8efea, var(--tb-paper));
    border-bottom: 1px solid var(--tb-line);
}

.tb-page-hero h1 {
    margin: 0 0 0.4rem;
    font-family: var(--tb-font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.tb-filters {
    display: grid;
    grid-template-columns: 1fr 11rem auto;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.tb-filters input,
.tb-filters select {
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--tb-line);
    border-radius: 4px;
    background: var(--tb-white);
    font: inherit;
}

.tb-job-list {
    display: grid;
    gap: 0.85rem;
}

.tb-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 1.5rem;
    align-items: start;
}

.tb-panel {
    padding: 1.5rem;
    background: var(--tb-white);
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
}

.tb-panel h1,
.tb-panel h2,
.tb-panel h3 {
    font-family: var(--tb-font-display);
    letter-spacing: -0.02em;
}

.tb-panel h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.tb-prose {
    color: var(--tb-ink-soft);
}

.tb-prose h4 {
    margin: 1.4rem 0 0.5rem;
    color: var(--tb-ink);
    font-size: 1rem;
}

.tb-aside {
    position: sticky;
    top: 5.5rem;
    display: grid;
    gap: 0.85rem;
}

.tb-footer {
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--tb-line);
    background: #e8efea;
}

.tb-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--tb-ink-soft);
    font-size: 0.92rem;
}

.tb-footer a {
    font-weight: 600;
    color: var(--tb-teal-deep);
}

.tb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.tb-form-grid .tb-span-2 {
    grid-column: 1 / -1;
}

.tb-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--tb-ink);
    font-size: 0.92rem;
}

.tb-field input,
.tb-field select,
.tb-field textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #c9d5d3;
    border-radius: 8px;
    font: inherit;
    background: var(--tb-white);
    color: var(--tb-ink);
}

.tb-field textarea {
    min-height: 6rem;
    resize: vertical;
}

.tb-field .tb-error {
    color: #b42318;
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
}

.tb-field .tb-hint {
    margin: 0.3rem 0 0;
    color: var(--tb-ink-soft);
    font-size: 0.82rem;
}

.tb-section-card {
    margin-bottom: 1.25rem;
}

.tb-section-card h2 {
    margin: 0 0 0.35rem;
    font-family: var(--tb-font-display);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.tb-section-card > p {
    margin: 0 0 1rem;
    color: var(--tb-ink-soft);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .tb-search,
    .tb-filters,
    .tb-job-grid,
    .tb-detail,
    .tb-stats {
        grid-template-columns: 1fr;
    }

    .tb-aside {
        position: static;
    }

    .tb-nav .tb-hide-sm {
        display: none;
    }

    .tb-form-grid {
        grid-template-columns: 1fr;
    }
}
