/**
 * The committed Tailwind/DaisyUI build maps the "business" preset to dark surfaces.
 * These overrides keep data-theme="business" everywhere but force a light SaaS look.
 * Loaded after Vite so no npm rebuild is required when only this file changes.
 */
html[data-theme='business'] {
    color-scheme: light;
    --b1: 100% 0 0;
    --b2: 96% 0.006 256.848;
    --b3: 90% 0.012 256.848;
    --bc: 24% 0.03 256.848;
    --n: 42% 0.02 260;
    --nc: 98% 0 0;
}

/**
 * Brand logo image (navbar + footer) — explicit size so it works without new Tailwind JIT entries.
 */
img.gtb-brand-logo {
    width: auto;
    object-fit: contain;
}

img.gtb-brand-logo--nav {
    height: 2.75rem;
    max-width: 12rem;
}

@media (min-width: 640px) {
    img.gtb-brand-logo--nav {
        height: 3rem;
        max-width: 13.5rem;
    }
}

img.gtb-brand-logo--footer {
    height: 2.5rem;
    max-width: 11rem;
}

@media (min-width: 640px) {
    img.gtb-brand-logo--footer {
        height: 2.75rem;
        max-width: 12rem;
    }
}

/* Guest auth pages — readable logo without dominating the form */
img.gtb-brand-logo--auth {
    height: 2.5rem;
    max-width: 10.75rem;
}

@media (min-width: 640px) {
    img.gtb-brand-logo--auth {
        height: 2.875rem;
        max-width: 12rem;
    }
}

.gtb-guest-auth-shell {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .gtb-guest-auth-shell {
        padding-top: 2.75rem;
        padding-bottom: 2rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/**
 * Dark navbar / footer bars — logo.png uses light lettering.
 */
.gtb-chrome-bar {
    background-color: #18181b;
    border-color: #27272a;
    color: #f4f4f5;
}

.gtb-chrome-bar.border-b,
.gtb-chrome-bar.border-t {
    border-color: #27272a;
}

.gtb-chrome-bar .btn-ghost {
    color: rgb(244 244 245 / 0.92);
}

.gtb-chrome-bar .btn-ghost:hover {
    background-color: rgb(255 255 255 / 0.08);
}

.gtb-chrome-bar .link,
.gtb-chrome-bar .link-hover:hover {
    color: #f4f4f5;
}

.gtb-chrome-muted {
    color: rgb(244 244 245 / 0.65);
}

a.gtb-chrome-nav-link {
    color: rgb(244 244 245 / 0.78);
}

a.gtb-chrome-nav-link:hover {
    color: #fff;
    border-bottom-color: rgb(255 255 255 / 0.25);
}

a.gtb-chrome-responsive-link {
    color: rgb(244 244 245 / 0.9);
}

a.gtb-chrome-responsive-link:hover {
    background-color: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.12);
}

.gtb-chrome-bar .gtb-chrome-mobile-user .text-base-content {
    color: #f4f4f5;
}

.gtb-chrome-bar .gtb-chrome-mobile-user .text-base-content\/60 {
    color: rgb(244 244 245 / 0.65) !important;
}

.gtb-chrome-logo-well {
    background-color: #18181b;
    border-radius: 0.75rem;
    padding: 1.25rem 1.75rem;
}

.gtb-chrome-logo-well.gtb-chrome-logo-well--guest {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .gtb-chrome-logo-well.gtb-chrome-logo-well--guest {
        margin-top: 0.75rem;
    }
}

.gtb-chrome-divide-t {
    border-top: 1px solid rgb(255 255 255 / 0.12);
}

.gtb-site-footer h3 {
    color: #f4f4f5;
    font-weight: 600;
}

.gtb-site-footer ul a {
    color: rgb(244 244 245 / 0.78);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.gtb-site-footer ul a:hover {
    color: #fff;
}

.gtb-site-footer-inner {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .gtb-site-footer-inner {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

.gtb-site-footer-bottom {
    margin-top: 3.5rem;
    padding-top: 3rem;
}

/**
 * Welcome pricing — chosen brand blues (CTAs + outlines align with shared template).
 */
html[data-theme='business'] {
    --gtb-pricing-blue: #1d76f2;
    --gtb-pricing-blue-hover: #1566d6;
    --gtb-pricing-feature-ring: #6d28d9;
    --gtb-pricing-slate: #475569;
    --gtb-pricing-slate-soft: #64748b;
}

/* Welcome — pricing (#pricing) */
.gtb-pricing-section {
    scroll-margin-top: 5rem;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .gtb-pricing-section {
        padding-top: 6rem;
        padding-bottom: 6.5rem;
    }
}

.gtb-pricing-head {
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .gtb-pricing-head {
        margin-bottom: 4rem;
    }
}

.gtb-pricing-tier {
    border-radius: 1rem;
    box-shadow: 0 10px 28px -16px rgb(15 23 42 / 0.18);
}

.gtb-pricing-featured {
    border-color: var(--gtb-pricing-feature-ring) !important;
    box-shadow:
        0 0 0 2px var(--gtb-pricing-feature-ring),
        0 22px 48px -18px rgb(109 40 217 / 0.28);
}

.gtb-pricing-price {
    margin-top: 0.75rem;
    line-height: 1.1;
    color: rgb(15 23 42);
}

.gtb-pricing-price-num {
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.gtb-pricing-price-suffix {
    margin-left: 0.15rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgb(100 116 139);
}

.gtb-pricing-tier-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.35rem;
    border: 1px solid var(--gtb-pricing-blue);
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gtb-pricing-blue);
}

.gtb-pricing-tier-badge--solid {
    border-color: transparent;
    background-color: var(--gtb-pricing-slate);
    color: #fff;
}

.gtb-pricing-tier-badge--float {
    position: absolute;
    z-index: 1;
    top: 1.25rem;
    right: 1.25rem;
    border-radius: 9999px;
    border: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    background-color: var(--gtb-pricing-blue);
    color: #fff;
}

.gtb-pricing-tier-sub {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(15 23 42);
}

.gtb-pricing-tier-desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgb(71 85 105);
}

.gtb-pricing-check {
    color: #16a34a;
    font-weight: 700;
}

.gtb-pricing-cross {
    color: var(--gtb-pricing-slate-soft);
    font-weight: 700;
}

.gtb-pricing-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        filter 0.18s ease;
}

.gtb-pricing-btn--solid {
    border: 1px solid transparent;
    background-color: var(--gtb-pricing-blue);
    color: #fff;
}

.gtb-pricing-btn--solid:hover {
    background-color: var(--gtb-pricing-blue-hover);
    color: #fff;
}

.gtb-pricing-btn--outline-neutral {
    border: 1px solid rgb(15 23 42);
    background-color: #fff;
    color: rgb(15 23 42);
}

.gtb-pricing-btn--outline-neutral:hover {
    background-color: rgb(248 250 252);
}

.gtb-pricing-btn--outline-blue {
    border: 1px solid var(--gtb-pricing-blue);
    background-color: #fff;
    color: var(--gtb-pricing-blue);
}

.gtb-pricing-btn--outline-blue:hover {
    background-color: rgb(239 246 255);
}

/* Pricing cards — hover lift + shadow (pointer devices only) */
.gtb-pricing-card {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.gtb-pricing-section a.gtb-pricing-btn {
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        filter 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .gtb-pricing-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 44px -20px rgb(15 23 42 / 0.2);
    }

    .gtb-pricing-card.gtb-pricing-featured:hover {
        transform: translateY(-6px);
        box-shadow:
            0 0 0 2px var(--gtb-pricing-feature-ring),
            0 30px 55px -22px rgb(109 40 217 / 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gtb-pricing-card {
        transition: none;
    }

    .gtb-pricing-card:hover,
    .gtb-pricing-card.gtb-pricing-featured:hover {
        transform: none;
    }

    .gtb-pricing-section a.gtb-pricing-btn {
        transition: none;
    }
}

/**
 * /play — two-column layout: grid keeps the calendar column from collapsing.
 */
.gtb-play-workspace {
    width: 100%;
}

@media (min-width: 768px) {
    .gtb-play-main .gtb-play-print-calendar-wrap {
        min-height: 22rem;
    }
}

/**
 * /play — print/PDF: only the week grid (no nav, forms, table, JSON, footer).
 */
/* /play — brand row visible only when printing or in CSV metadata (see exportBlocksCsv). */
body.gtb-play-page .gtb-play-print-brand-row {
    display: none;
}

@media print {
    body.gtb-play-page .gtb-play-print-hide {
        display: none !important;
    }

    body.gtb-play-page .gtb-play-print-brand-row {
        display: flex !important;
    }

    body.gtb-play-page .gtb-play-print-header {
        background: transparent !important;
        border-bottom-color: #cbd5e1 !important;
        padding-bottom: 0.65rem !important;
        margin-bottom: 0.35rem !important;
    }

    body.gtb-play-page .gtb-play-print-grid-title {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
    }

    body.gtb-play-page .gtb-play-print-grid-subtitle {
        color: #334155 !important;
        font-size: 0.875rem !important;
    }

    body.gtb-play-page .gtb-play-print-logo {
        height: 2.25rem !important;
        width: auto !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.gtb-play-page {
        background: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.gtb-play-page .gtb-play-print-root {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.gtb-play-page main .max-w-7xl {
        max-width: none !important;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

    body.gtb-play-page main .max-w-7xl.space-y-6 > *,
    body.gtb-play-page main .space-y-8 > * {
        margin-top: 0 !important;
    }

    body.gtb-play-page .gtb-play-print-calendar-card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    body.gtb-play-page .gtb-play-print-calendar-card .card-body {
        padding: 0 !important;
    }

    body.gtb-play-page .gtb-play-print-calendar-card .card-body > * {
        margin-top: 0 !important;
    }

    body.gtb-play-page .gtb-play-print-calendar-wrap {
        overflow: visible !important;
        break-inside: avoid;
        page-break-inside: avoid;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}

/**
 * Admin console — full-width chrome navbar (site-style), sidebar row below.
 */
body.gtb-admin-shell {
    background-color: #f1f5f9;
    color: #0f172a;
    --gtb-admin-navbar-h: 3.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

body.gtb-admin-shell > header.gtb-admin-shell__navbar {
    flex-shrink: 0;
}

body.gtb-admin-shell > .gtb-admin-shell__body {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 1024px) {
    body.gtb-admin-shell > .gtb-admin-shell__body {
        flex-direction: row;
    }
}

.gtb-admin-shell__work {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #f1f5f9;
    position: relative;
    z-index: 1;
}

.gtb-admin-shell__aside {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;
    max-height: min(38vh, 17.5rem);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 45%, #f4f6f8 100%);
    border-bottom: 1px solid #e2e8f0;
}

/* Legacy mobile drawer scrim — must never block the admin UI. */
.gtb-admin-shell__scrim {
    display: none !important;
    pointer-events: none !important;
}

@media (min-width: 1024px) {
    .gtb-admin-shell__aside {
        width: 17.5rem;
        max-height: none;
        align-self: stretch;
        min-height: 0;
        border-bottom: none;
        border-right: 1px solid #e2e8f0;
        overflow: hidden;
        box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.04);
    }
}

.gtb-admin-shell__main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gtb-admin-shell__pagehead {
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.gtb-admin-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.625rem 0.5rem 1rem;
}

.gtb-admin-nav-section {
    margin: 1.125rem 0.5rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.gtb-admin-nav-section--tight {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.gtb-admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5625rem 0.75rem;
    margin: 0.125rem 0.125rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.gtb-admin-nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.gtb-admin-nav-link--active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: #1d4ed8;
    border-left-color: #2563eb;
    font-weight: 600;
}

.gtb-admin-nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #64748b;
}

.gtb-admin-nav-link:hover svg {
    color: #334155;
}

.gtb-admin-nav-link--active svg {
    color: #2563eb;
}

.gtb-admin-nav-link span {
    min-width: 0;
}

.gtb-admin-shell__footer-details {
    flex-shrink: 0;
}

.gtb-admin-shell__footer {
    flex-shrink: 0;
    padding: 0.75rem 0.625rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.92);
}

.gtb-admin-shell__footer-details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0.375rem 0.625rem;
    margin: -0.125rem -0.25rem 0;
    border-radius: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.gtb-admin-shell__footer-details > summary::-webkit-details-marker {
    display: none;
}

.gtb-admin-shell__footer-summary-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.gtb-admin-shell__footer-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.gtb-admin-shell__footer-details[open] > summary .gtb-admin-shell__footer-chevron {
    transform: rotate(180deg);
}

.gtb-admin-shell__footer-details > summary:hover .gtb-admin-shell__footer-summary-label {
    color: #475569;
}

.gtb-admin-shell__footer-details > summary:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.gtb-admin-shell__footer-panel {
    padding-top: 0.125rem;
}

.gtb-admin-shell__footer-mobile {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.gtb-admin-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gtb-admin-footer-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.gtb-admin-footer-link--danger {
    color: #b91c1c;
}

.gtb-admin-footer-link--danger:hover {
    background-color: #fef2f2;
    color: #991b1b;
}

.gtb-admin-footer-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #64748b;
}

.gtb-admin-footer-link--danger svg {
    color: #dc2626;
}

.gtb-admin-shell__navbar.gtb-chrome-bar {
    min-height: var(--gtb-admin-navbar-h);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* Flyout sits on bg-base-100; reset inherited chrome-bar text color. */
.gtb-admin-shell__navbar.gtb-chrome-bar .relative > .absolute {
    color: #0f172a;
}

.gtb-admin-shell__navbar.gtb-chrome-bar .relative > .absolute a,
.gtb-admin-shell__navbar.gtb-chrome-bar .relative > .absolute .text-base-content {
    color: #1e293b !important;
}

.gtb-admin-shell__navbar.gtb-chrome-bar .relative > .absolute a:hover,
.gtb-admin-shell__navbar.gtb-chrome-bar .relative > .absolute a:focus {
    color: #0f172a !important;
}

.gtb-admin-shell__navbar.gtb-chrome-bar .btn-outline {
    border-color: rgb(255 255 255 / 0.28);
    color: #f4f4f5;
}

.gtb-admin-shell__navbar.gtb-chrome-bar .btn-outline:hover {
    background-color: rgb(255 255 255 / 0.08);
    border-color: rgb(255 255 255 / 0.38);
    color: #fff;
}

/* Admin help notes (replace harsh alert-info blocks on settings pages). */
body.gtb-admin-shell .gtb-admin-notes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.gtb-admin-shell .gtb-admin-note {
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background-color: #ffffff;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.gtb-admin-shell .gtb-admin-note__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0f172a;
}

body.gtb-admin-shell .gtb-admin-note__body {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

body.gtb-admin-shell .alert-info {
    border: 1px solid #bfdbfe;
    border-radius: 0.625rem;
    background-color: #eff6ff;
    color: #1e3a5f;
    box-shadow: none;
}

body.gtb-admin-shell .alert-info p {
    color: #334155;
}

body.gtb-admin-shell .alert-info p + p {
    color: #64748b;
}

/**
 * Public blog index — card layout for published posts.
 */
.gtb-blog-index__header {
    margin-bottom: 2rem;
}

.gtb-blog-index__title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.gtb-blog-index__subtitle {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #64748b;
}

.gtb-blog-index__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gtb-blog-index__empty {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
}

.gtb-blog-index__pagination {
    margin-top: 2.5rem;
}

/* Compact horizontal blog cards — small thumbnail, text beside image */
.gtb-blog-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease;
}

.gtb-blog-card:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.gtb-blog-card__media {
    display: block;
    flex: 0 0 5.25rem;
    width: 5.25rem;
    min-height: 5.25rem;
    overflow: hidden;
    background-color: #f1f5f9;
}

@media (min-width: 640px) {
    .gtb-blog-card__media {
        flex: 0 0 6.5rem;
        width: 6.5rem;
        min-height: 6.5rem;
    }
}

.gtb-blog-card__img {
    width: 100%;
    height: 100%;
    min-height: 5.25rem;
    object-fit: cover;
}

@media (min-width: 640px) {
    .gtb-blog-card__img {
        min-height: 6.5rem;
    }
}

.gtb-blog-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.gtb-blog-card__placeholder-logo {
    height: 1.5rem !important;
    max-width: 4rem !important;
}

.gtb-blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.75rem 0.875rem;
}

@media (min-width: 640px) {
    .gtb-blog-card__body {
        padding: 0.875rem 1rem 0.875rem 1.125rem;
    }
}

.gtb-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.375rem;
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #94a3b8;
}

@media (min-width: 640px) {
    .gtb-blog-card__meta {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
}

.gtb-blog-card__meta-sep {
    color: #cbd5e1;
}

.gtb-blog-card__title {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .gtb-blog-card__title {
        font-size: 1.0625rem;
        margin-bottom: 0.375rem;
    }
}

.gtb-blog-card__title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.gtb-blog-card__title a:hover {
    color: #2563eb;
}

.gtb-blog-card__excerpt {
    margin: 0 0 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .gtb-blog-card__excerpt {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
}

.gtb-blog-card__more {
    display: inline-block;
    margin-top: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.gtb-blog-card__more:hover {
    color: #2563eb;
}

/**
 * Public blog post — article layout and rich HTML body (TinyMCE).
 * (Tailwind Typography / prose is not in the CSS bundle.)
 */
/* Extra top breathing room below the fixed-height chrome navbar */
main.gtb-site-main--blog-post {
    padding-top: 2.5rem;
}

@media (min-width: 640px) {
    main.gtb-site-main--blog-post {
        padding-top: 3.25rem;
    }
}

.gtb-blog-article {
    color: #0f172a;
}

.gtb-blog-article__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.gtb-blog-article__meta {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}

.gtb-blog-article__meta-sep {
    margin: 0 0.35rem;
    color: #94a3b8;
}

.gtb-blog-article__figure {
    margin: 0.25rem 0 1.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #f1f5f9;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.gtb-blog-article__hero {
    display: block;
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
}

.gtb-blog-article__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.gtb-blog-article__excerpt {
    margin: 0.875rem 0 0;
    font-size: 1.125rem;
    line-height: 1.65;
    color: #475569;
}

.gtb-blog-article__back {
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.gtb-blog-article__back-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.gtb-blog-article__back-link:hover {
    text-decoration: underline;
}

.gtb-blog-post-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
    word-wrap: break-word;
}

.gtb-blog-post-body > *:first-child {
    margin-top: 0;
}

.gtb-blog-post-body > *:last-child {
    margin-bottom: 0;
}

.gtb-blog-post-body h2,
.gtb-blog-post-body h3,
.gtb-blog-post-body h4 {
    margin: 2rem 0 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #0f172a;
    scroll-margin-top: 5rem;
}

.gtb-blog-post-body h2 {
    font-size: 1.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
}

.gtb-blog-post-body h3 {
    font-size: 1.25rem;
}

.gtb-blog-post-body h4 {
    font-size: 1.0625rem;
}

.gtb-blog-post-body p {
    margin: 0 0 1.25rem;
}

.gtb-blog-post-body ul,
.gtb-blog-post-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.gtb-blog-post-body ul {
    list-style-type: disc;
}

.gtb-blog-post-body ol {
    list-style-type: decimal;
}

.gtb-blog-post-body li {
    margin: 0.35rem 0;
    padding-left: 0.25rem;
}

.gtb-blog-post-body li > ul,
.gtb-blog-post-body li > ol {
    margin: 0.35rem 0 0.5rem;
}

.gtb-blog-post-body a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gtb-blog-post-body a:hover {
    color: #1d4ed8;
}

.gtb-blog-post-body strong,
.gtb-blog-post-body b {
    font-weight: 600;
    color: #0f172a;
}

.gtb-blog-post-body blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-left: 4px solid #2563eb;
    background-color: #f8fafc;
    font-size: 1.0625rem;
    font-style: italic;
    color: #475569;
}

.gtb-blog-post-body hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.gtb-blog-post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 0.5rem;
}

.gtb-blog-post-body figure {
    margin: 1.5rem 0;
}

.gtb-blog-post-body figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    color: #64748b;
}

.gtb-blog-post-body pre,
.gtb-blog-post-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.875em;
}

.gtb-blog-post-body pre {
    margin: 1.25rem 0;
    padding: 1rem 1.125rem;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    line-height: 1.55;
}

.gtb-blog-post-body :not(pre) > code {
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Tables (TinyMCE) — full width, borders, readable on mobile */
.gtb-blog-post-body .gtb-table-scroll {
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.gtb-blog-post-body table {
    width: 100% !important;
    min-width: 28rem;
    border-collapse: collapse;
    border: 1px solid #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.5;
    background-color: #ffffff;
}

.gtb-blog-post-body thead th {
    background-color: #f1f5f9;
}

.gtb-blog-post-body th,
.gtb-blog-post-body td {
    padding: 0.625rem 0.875rem;
    border: 1px solid #cbd5e1;
    text-align: left;
    vertical-align: top;
}

.gtb-blog-post-body th {
    font-weight: 600;
    color: #0f172a;
}

.gtb-blog-post-body tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

.gtb-blog-post-body tbody tr:hover td {
    background-color: #f1f5f9;
}

/**
 * Admin — pricing plan grid (mirrors public tier cards).
 */
.gtb-admin-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.gtb-admin-plan-card--featured {
    border-width: 2px;
    border-color: #2563eb;
}

.gtb-admin-plan-card--add {
    background-color: #f8fafc;
    box-shadow: none;
}

.gtb-admin-plan-card__float {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background-color: #2563eb;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #ffffff;
}

.gtb-admin-plan-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
}

.gtb-admin-plan-card__heading {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.gtb-admin-plan-card__price {
    margin: 0.5rem 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.gtb-admin-plan-card__subtitle {
    margin: 0.375rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.gtb-admin-plan-card__desc {
    margin: 0.5rem 0 0;
    flex: 1;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
}
