.tp-body .gp-hero-media {
    background:
        linear-gradient(115deg, rgba(12, 31, 26, 0.58), rgba(10, 107, 103, 0.32)),
        url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=2000&q=80")
            center / cover no-repeat;
}

.tp-detail {
    padding: 2rem 0 1rem;
}

.tp-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    color: var(--ink-soft, #2a4038);
    font-size: 0.95rem;
}

.tp-detail-body {
    color: var(--ink-soft, #2a4038);
    max-width: 62ch;
}

.tp-detail-body :where(p, ul, ol) {
    margin-bottom: 0.85rem;
}

.tp-stats {
    padding: 1.5rem 0 0;
}

.tp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.tp-stat {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 60, 48, 0.08);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
}

.tp-stat-label {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ink-soft, #2a4038);
}

.tp-stat-value {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.tp-auth {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.tp-auth-card {
    padding: 1.25rem;
}

.tp-auth-page {
    position: relative;
    padding: 2.75rem 0 3.5rem;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(15, 143, 138, 0.16), transparent 60%),
        radial-gradient(700px 360px at 92% 0%, rgba(12, 31, 26, 0.08), transparent 55%),
        linear-gradient(180deg, #eef4f1 0%, #f3f6f2 45%, #f7f5f1 100%);
    overflow: hidden;
}

.tp-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 24rem);
    gap: 2rem 2.5rem;
    align-items: stretch;
}

.tp-auth-shell--register {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem);
}

.tp-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 22rem;
    padding: 2rem 2.1rem;
    border-radius: 1rem;
    color: #f4faf8;
    background:
        linear-gradient(145deg, rgba(10, 26, 22, 0.92), rgba(10, 107, 103, 0.78)),
        url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80")
            center / cover no-repeat;
    box-shadow: 0 18px 40px rgba(12, 31, 26, 0.16);
}

.tp-auth-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 250, 248, 0.78);
}

.tp-auth-panel h1 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display, Fraunces, Georgia, serif);
    font-size: clamp(1.85rem, 2.4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.tp-auth-lede {
    margin: 0 0 1.5rem;
    max-width: 34ch;
    color: rgba(244, 250, 248, 0.88);
    font-size: 1.02rem;
    line-height: 1.55;
}

.tp-auth-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.tp-auth-points li {
    position: relative;
    padding-left: 1.55rem;
    color: rgba(244, 250, 248, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
}

.tp-auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #3db8a8;
    box-shadow: 0 0 0 3px rgba(61, 184, 168, 0.25);
}

.tp-auth-form-wrap {
    display: flex;
    align-items: center;
}

.tp-auth-page .tp-auth-card {
    width: 100%;
    padding: 1.75rem 1.6rem 1.5rem;
    border: 1px solid rgba(12, 31, 26, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(12, 31, 26, 0.08);
}

.tp-auth-card__head {
    margin-bottom: 1.35rem;
}

.tp-auth-card__head h2 {
    margin: 0 0 0.4rem;
    font-family: var(--font-display, Fraunces, Georgia, serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink, #0c1f1a);
}

.tp-auth-card__head p {
    margin: 0;
    color: var(--ink-soft, #2a4038);
    font-size: 0.95rem;
    line-height: 1.45;
}

.tp-auth-form {
    display: grid;
    gap: 1rem;
}

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

.tp-field {
    display: grid;
    gap: 0.4rem;
}

.tp-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink, #0c1f1a);
}

.tp-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(12, 31, 26, 0.16);
    border-radius: 0.55rem;
    background: #fff;
    color: var(--ink, #0c1f1a);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tp-input::placeholder {
    color: rgba(42, 64, 56, 0.45);
}

.tp-input:focus {
    outline: none;
    border-color: rgba(10, 107, 103, 0.55);
    box-shadow: 0 0 0 3px rgba(15, 143, 138, 0.16);
}

.tp-input.is-invalid {
    border-color: rgba(160, 40, 40, 0.45);
}

.tp-field-error {
    margin: 0;
    color: #7a1f1f;
    font-size: 0.85rem;
}

.tp-auth-submit {
    min-height: 2.85rem;
    margin-top: 0.25rem;
    width: 100%;
    font-weight: 700;
}

.tp-auth-card__foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(12, 31, 26, 0.08);
    text-align: center;
}

.tp-auth-card__foot p {
    margin: 0 0 0.65rem;
    color: var(--ink-soft, #2a4038);
    font-size: 0.92rem;
}

.tp-auth-card__foot a {
    color: var(--teal-deep, #0a6b67);
    font-weight: 700;
    text-decoration: none;
}

.tp-auth-card__foot a:hover {
    text-decoration: underline;
}

.tp-auth-back {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft, #2a4038) !important;
}

@media (max-width: 900px) {
    .tp-auth-shell,
    .tp-auth-shell--register {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tp-auth-panel {
        min-height: 0;
        padding: 1.5rem 1.35rem;
    }

    .tp-auth-lede {
        max-width: none;
        margin-bottom: 1rem;
    }
}

@media (max-width: 560px) {
    .tp-auth-page {
        padding: 1.5rem 0 2.5rem;
    }

    .tp-auth-page .tp-auth-card {
        padding: 1.35rem 1.1rem 1.2rem;
    }

    .tp-field-grid {
        grid-template-columns: 1fr;
    }
}

.tp-nav-actions {
    flex-wrap: wrap;
}

.tp-topbar-inner {
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.tp-topbar-quick {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.tp-topbar-actions {
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
    gap: 0.35rem 0.45rem;
}

.tp-topbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tp-topbar-icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.tp-topbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
    transform: translateY(-1px);
}

.tp-topbar-icon-btn.is-active {
    background: rgba(61, 184, 168, 0.28);
    border-color: rgba(61, 184, 168, 0.55);
    color: #fff;
}

.tp-topbar-icon-btn--accent {
    background: rgba(61, 184, 168, 0.22);
    border-color: rgba(61, 184, 168, 0.45);
}

.tp-topbar-icon-btn--accent:hover {
    background: rgba(61, 184, 168, 0.34);
}

.tp-topbar-logout {
    display: inline;
    margin: 0;
}

.tp-site-nav {
    gap: 1.25rem;
}

.tp-nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
}

.tp-nav-link {
    color: var(--ink-soft, #2a4038);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.tp-nav-link:hover {
    color: var(--teal-deep, #0a6b67);
}

.tp-nav-link.is-active {
    color: var(--teal-deep, #0a6b67);
    border-bottom-color: var(--brand, #0a6b67);
}

.tp-nav-logout {
    display: inline;
    margin: 0;
}

.tp-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.tp-subnav a {
    color: var(--ink-soft, #2a4038);
    text-decoration: none;
    font-weight: 500;
}

.tp-subnav a.active,
.tp-subnav a:hover {
    color: var(--brand, #0a6b67);
    text-decoration: underline;
}

.tp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid rgba(12, 31, 26, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.tp-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9px;
    color: var(--ink-soft, #2a4038);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.tp-tab:hover {
    background: rgba(10, 107, 103, 0.08);
    color: var(--teal-deep, #0a6b67);
}

.tp-tab.is-active {
    background: var(--teal-deep, #0a6b67);
    color: #fff;
}

.tp-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
    margin: 0.55rem 0 0;
    color: var(--ink-soft, #2a4038);
    font-size: 0.9rem;
}

.tp-meta-grid span {
    display: block;
}

.tp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(10, 107, 103, 0.1);
    color: var(--teal-deep, #0a6b67);
    font-size: 0.78rem;
    font-weight: 700;
}

.tp-wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tp-wizard-step {
    border: 1px solid rgba(20, 60, 48, 0.15);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
}

.tp-wizard-step.active {
    border-color: var(--brand, #0a6b67);
    color: var(--brand, #0a6b67);
    font-weight: 600;
}

.tp-wizard-step.done {
    background: rgba(10, 107, 103, 0.08);
}

@media (max-width: 1100px) {
    .tp-site-nav {
        gap: 0.75rem;
    }

    .tp-nav-menu {
        gap: 0.35rem 0.85rem;
    }
}

@media (max-width: 900px) {
    .tp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-site-nav.is-open .tp-nav-menu {
        width: 100%;
    }

    .tp-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .tp-nav-link {
        padding: 0.55rem 0.2rem;
        border-bottom: 0;
    }

    .tp-nav-link.is-active {
        border-bottom: 0;
        color: var(--teal-deep, #0a6b67);
    }

    .tp-nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
    }

    .tp-topbar-inner {
        justify-content: space-between;
    }

    .tp-topbar-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
        width: auto;
    }
}

@media (max-width: 560px) {
    .tp-stats-grid {
        grid-template-columns: 1fr;
    }

    .tp-tabs {
        flex-direction: column;
    }

    .tp-tab {
        justify-content: flex-start;
    }

    .tp-meta-grid {
        grid-template-columns: 1fr;
    }
}
