/* ==========================================================================
   The Garuda Express — public site layer
   Loaded after theme.css / custom.css. Shared header + footer for every
   public page, plus the homepage sections (prefixed .tge-).
   ========================================================================== */

:root {
    --tge-brand: #932513;
    --tge-brand-600: #7c1f10;
    --tge-brand-700: #63190d;
    --tge-brand-50: #fbf1ee;
    --tge-ink: #1d1714;
    --tge-body: #4a423d;
    --tge-muted: #776d66;
    --tge-line: #ece4de;
    --tge-surface: #faf6f3;
    --tge-white: #ffffff;
    --tge-accent: #e8a33b;
    --tge-radius: 14px;
    --tge-radius-sm: 10px;
    --tge-shadow: 0 1px 2px rgba(29, 23, 20, .04), 0 8px 24px rgba(29, 23, 20, .06);
    --tge-shadow-lg: 0 2px 4px rgba(29, 23, 20, .04), 0 24px 48px rgba(29, 23, 20, .10);
    --tge-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base (overrides the old brown gradient + Raleway) ------------ */
body {
    background: var(--tge-white) !important;
    background-image: none !important;
    font-family: var(--tge-font);
    color: var(--tge-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.font-sans-serif, .font-base, .btn, .form-control, .form-select, .nav-link {
    font-family: var(--tge-font);
}
h1, h2, h3, h4, h5, h6 { color: var(--tge-ink); letter-spacing: -0.01em; }
a { color: var(--tge-brand); }
a:hover { color: var(--tge-brand-700); }

.btn { border-radius: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.btn-primary, .btn-primary:focus {
    background-color: var(--tge-brand); border-color: var(--tge-brand); color: #fff;
}
.btn-primary:hover, .btn-primary:active {
    background-color: var(--tge-brand-600) !important; border-color: var(--tge-brand-600) !important; color: #fff;
}
:focus-visible { outline: 3px solid rgba(147, 37, 19, .35); outline-offset: 2px; }

/* The fixed-top header used to overlap page content on inner pages */
.main { padding-top: 0; }

/* ---------- Top utility bar --------------------------------------------- */
.tge-topbar {
    background: var(--tge-ink);
    color: #d9cfc8;
    font-size: .8125rem;
}
.tge-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.tge-topbar a { color: #fff; }
.tge-topbar a:hover { color: var(--tge-accent); }
.tge-topbar__group { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.tge-topbar svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; opacity: .8; }

/* ---------- Header / nav ------------------------------------------------ */
.tge-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--tge-line);
}
.tge-header .navbar { padding: .6rem 0; background: transparent !important; box-shadow: none !important; }
.tge-header .navbar-brand img { height: 46px; width: auto; }
.tge-header .nav-link {
    color: var(--tge-ink) !important; font-weight: 500; font-size: .95rem;
    padding: .5rem .85rem !important; border-radius: 8px;
}
.tge-header .nav-link:hover, .tge-header .nav-link.active { color: var(--tge-brand) !important; background: var(--tge-brand-50); }
.tge-header .tge-nav-actions { display: flex; align-items: center; gap: .5rem; }
.tge-header .btn-ghost { color: var(--tge-ink); font-weight: 600; padding: .55rem .9rem; }
.tge-header .btn-ghost:hover { color: var(--tge-brand); }
.tge-header .navbar-toggler { border: 1px solid var(--tge-line); padding: .4rem .55rem; border-radius: 8px; }
.tge-header .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    .tge-header .navbar-collapse { padding: .75rem 0 1rem; }
    .tge-header .tge-nav-actions { margin-top: .75rem; flex-direction: column; align-items: stretch; }
    .tge-header .tge-nav-actions .btn { width: 100%; }
}

/* ---------- Flash messages ---------------------------------------------- */
.tge-flash { padding-top: 1.25rem; }
.tge-flash .alert { border-radius: var(--tge-radius-sm); margin-bottom: 0; }
.tge-flash .alert p:last-child { margin-bottom: 0; }

/* ---------- Shared section scaffolding ---------------------------------- */
.tge-section { padding: 88px 0; }
.tge-section--tint { background: var(--tge-surface); }
.tge-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--tge-brand); margin-bottom: .75rem;
}
.tge-heading { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.tge-lead { font-size: 1.075rem; color: var(--tge-muted); line-height: 1.65; max-width: 620px; }
.tge-section-head { margin-bottom: 48px; }
.tge-section-head.text-center .tge-lead { margin-left: auto; margin-right: auto; }
@media (max-width: 767.98px) { .tge-section { padding: 64px 0; } .tge-section-head { margin-bottom: 32px; } }

.tge-icon {
    width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--tge-brand-50); color: var(--tge-brand); flex-shrink: 0;
}
.tge-icon svg { width: 24px; height: 24px; }

/* ---------- Hero -------------------------------------------------------- */
.tge-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(147, 37, 19, .10), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(232, 163, 59, .12), transparent 60%),
        var(--tge-surface);
    padding: 72px 0 88px;
    border-bottom: 1px solid var(--tge-line);
}
.tge-hero__badge {
    display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--tge-line);
    border-radius: 999px; padding: .35rem .85rem .35rem .4rem; font-size: .85rem; font-weight: 600; color: var(--tge-ink);
    box-shadow: var(--tge-shadow);
}
.tge-hero__badge span {
    background: var(--tge-brand); color: #fff; border-radius: 999px; padding: .15rem .55rem; font-size: .75rem;
}
.tge-hero h1 {
    font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.08;
    letter-spacing: -0.025em; margin: 1.25rem 0 1.1rem;
}
.tge-hero h1 em { font-style: normal; color: var(--tge-brand); }
.tge-hero__sub { font-size: 1.125rem; color: var(--tge-body); line-height: 1.65; max-width: 540px; margin-bottom: 2rem; }

.tge-track {
    background: #fff; border: 1px solid var(--tge-line); border-radius: var(--tge-radius);
    box-shadow: var(--tge-shadow-lg); padding: 8px; display: flex; gap: 8px; max-width: 560px;
}
.tge-track__field { position: relative; flex: 1; }
.tge-track__field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--tge-muted); }
.tge-track input {
    width: 100%; height: 52px; border: 0; background: transparent; padding: 0 12px 0 44px;
    font-size: 1rem; color: var(--tge-ink); outline: none; border-radius: 10px;
}
.tge-track input:focus { background: var(--tge-surface); }
.tge-track .btn { height: 52px; padding: 0 1.5rem; white-space: nowrap; }
.tge-track__hint { font-size: .85rem; color: var(--tge-muted); margin-top: .75rem; }
@media (max-width: 575.98px) {
    .tge-track { flex-direction: column; }
    .tge-track .btn { width: 100%; }
}

.tge-hero__links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.tge-hero__links a { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.tge-hero__links svg { width: 16px; height: 16px; }

/* Quote card */
.tge-quote {
    background: #fff; border: 1px solid var(--tge-line); border-radius: 18px; box-shadow: var(--tge-shadow-lg);
    padding: 28px;
}
.tge-quote h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .25rem; }
.tge-quote p.small { color: var(--tge-muted); margin-bottom: 1.25rem; }
.tge-quote label { font-size: .8rem; font-weight: 600; color: var(--tge-ink); margin-bottom: .35rem; }
.tge-quote .form-select {
    height: 48px; border-radius: 10px; border-color: var(--tge-line); color: var(--tge-ink); background-color: #fff;
}
.tge-quote .form-select:focus { border-color: var(--tge-brand); box-shadow: 0 0 0 3px rgba(147, 37, 19, .12); }
.tge-quote .form-select:disabled { background-color: var(--tge-surface); color: var(--tge-muted); }
.tge-quote__result {
    margin-top: 1.25rem; padding: 16px 18px; border-radius: 12px; background: var(--tge-surface);
    border: 1px dashed #dccfc6; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.tge-quote__result span { font-size: .85rem; color: var(--tge-muted); font-weight: 600; }
.tge-quote__result strong { white-space: nowrap; font-size: 1.6rem; font-weight: 800; color: var(--tge-ink); font-variant-numeric: tabular-nums; }
.tge-quote__result.is-ready { background: var(--tge-brand-50); border-color: rgba(147, 37, 19, .25); border-style: solid; }
.tge-quote__result.is-ready strong { color: var(--tge-brand); }
.tge-quote__foot { font-size: .8rem; color: var(--tge-muted); margin-top: .9rem; }

/* ---------- Stats strip ------------------------------------------------- */
.tge-stats { padding: 0; margin-top: -44px; position: relative; z-index: 2; }
.tge-stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--tge-line);
    border-radius: 18px; box-shadow: var(--tge-shadow);
}
.tge-stat { padding: 26px 28px; }
.tge-stat + .tge-stat { border-left: 1px solid var(--tge-line); }
.tge-stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--tge-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tge-stat span { color: var(--tge-muted); font-size: .92rem; font-weight: 500; }
@media (max-width: 767.98px) {
    .tge-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .tge-stat:nth-child(3) { border-left: 0; }
    .tge-stat:nth-child(n+3) { border-top: 1px solid var(--tge-line); }
    .tge-stat { padding: 20px; }
    .tge-stat strong { font-size: 1.6rem; }
}

/* ---------- Service cards ----------------------------------------------- */
.tge-card {
    height: 100%; background: #fff; border: 1px solid var(--tge-line); border-radius: var(--tge-radius);
    padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tge-card:hover { transform: translateY(-3px); box-shadow: var(--tge-shadow-lg); border-color: #e2d6ce; }
.tge-card h3 { font-size: 1.2rem; font-weight: 700; margin: 20px 0 .5rem; }
.tge-card p { color: var(--tge-muted); line-height: 1.6; margin-bottom: 1.1rem; }
.tge-checks { list-style: none; padding: 0; margin: 0; }
.tge-checks li { position: relative; padding-left: 26px; margin-bottom: .55rem; color: var(--tge-body); font-size: .95rem; }
.tge-checks li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
    background: var(--tge-brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23932513' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ---------- How it works ------------------------------------------------ */
.tge-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.tge-step { position: relative; }
.tge-step__num {
    width: 44px; height: 44px; border-radius: 50%; background: var(--tge-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; position: relative; z-index: 1;
    box-shadow: 0 0 0 6px var(--tge-surface);
}
.tge-step:not(:last-child)::after {
    content: ""; position: absolute; top: 22px; left: 56px; right: -12px; height: 2px;
    background: repeating-linear-gradient(90deg, #dccfc6 0 6px, transparent 6px 12px);
}
.tge-step h3 { font-size: 1.05rem; font-weight: 700; margin: 18px 0 .4rem; }
.tge-step p { color: var(--tge-muted); font-size: .95rem; line-height: 1.6; margin: 0; }
@media (max-width: 991.98px) {
    .tge-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .tge-step:nth-child(2)::after { display: none; }
}
@media (max-width: 575.98px) {
    .tge-steps { grid-template-columns: 1fr; }
    .tge-step::after { display: none; }
}

/* ---------- Feature grid ------------------------------------------------ */
.tge-feature { display: flex; gap: 16px; }
.tge-feature h3 { font-size: 1.05rem; font-weight: 700; margin: 4px 0 .35rem; }
.tge-feature p { color: var(--tge-muted); font-size: .95rem; line-height: 1.6; margin: 0; }

/* ---------- Testimonials ------------------------------------------------ */
.tge-quote-card {
    height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tge-line);
    border-radius: var(--tge-radius); padding: 28px;
}
.tge-stars { color: var(--tge-accent); display: flex; gap: 2px; margin-bottom: 1rem; }
.tge-stars svg { width: 18px; height: 18px; }
.tge-quote-card blockquote { font-size: 1rem; line-height: 1.7; color: var(--tge-body); margin: 0 0 1.5rem; flex: 1; }
.tge-person { display: flex; align-items: center; gap: 12px; padding-top: 1.25rem; border-top: 1px solid var(--tge-line); }
.tge-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--tge-line); background: #fff; }
.tge-person strong { display: block; color: var(--tge-ink); font-size: .95rem; }
.tge-person span { color: var(--tge-muted); font-size: .85rem; }

/* ---------- CTA band ---------------------------------------------------- */
.tge-cta {
    background: linear-gradient(135deg, var(--tge-brand) 0%, var(--tge-brand-700) 100%);
    border-radius: 22px; padding: 56px; color: #f6e9e5; position: relative; overflow: hidden;
}
.tge-cta::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
    border: 48px solid rgba(255, 255, 255, .06);
}
.tge-cta h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.25rem); margin-bottom: .75rem; }
.tge-cta p { color: #f0d9d2; margin: 0; font-size: 1.05rem; }
.tge-cta .btn-light { color: var(--tge-brand); font-weight: 700; padding: .8rem 1.4rem; }
.tge-cta .btn-outline-light { padding: .8rem 1.4rem; border-width: 1.5px; }
.tge-cta .btn-outline-light:hover { color: var(--tge-brand); }
@media (max-width: 767.98px) { .tge-cta { padding: 36px 24px; } }

/* ---------- Contact ----------------------------------------------------- */
.tge-contact { border: 1px solid var(--tge-line); border-radius: 18px; overflow: hidden; background: #fff; }
.tge-contact iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.tge-contact__body { padding: 36px; }
.tge-contact__row { display: flex; gap: 14px; margin-bottom: 1.25rem; }
.tge-contact__row .tge-icon { width: 40px; height: 40px; border-radius: 10px; }
.tge-contact__row .tge-icon svg { width: 20px; height: 20px; }
.tge-contact__row small { display: block; color: var(--tge-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tge-contact__row a, .tge-contact__row div > span { color: var(--tge-ink); font-weight: 600; }

/* ---------- Footer ------------------------------------------------------ */
.tge-footer { background: #17110e; color: #b9ada6; padding: 72px 0 0; font-size: .95rem; }
.tge-footer h3 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; }
.tge-footer ul { list-style: none; padding: 0; margin: 0; }
.tge-footer li { margin-bottom: .6rem; }
.tge-footer a { color: #b9ada6; }
.tge-footer a:hover { color: #fff; }
.tge-footer__brand img { height: 48px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.tge-footer__brand p { margin: 1.1rem 0 1.25rem; max-width: 320px; line-height: 1.65; }
.tge-social { display: flex; gap: 10px; }
.tge-social a {
    width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); color: #e8dfd9;
}
.tge-social a:hover { background: var(--tge-brand); color: #fff; }
.tge-social svg { width: 18px; height: 18px; }
.tge-footer__contact li { display: flex; gap: 10px; }
.tge-footer__contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--tge-accent); }
.tge-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 22px 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #8f837c;
}
.tge-footer__bottom a { color: #d4c8c1; }

@media (prefers-reduced-motion: reduce) {
    .tge-card, .tge-card:hover { transition: none; transform: none; }
}

/* Rate list in the hero quote card */
.tge-quote__result[hidden], .tge-rates[hidden] { display: none !important; }
.tge-rates { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 8px; }
.tge-rates li {
    display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-radius: 12px;
    background: var(--tge-brand-50); border: 1px solid rgba(147, 37, 19, .18);
}
.tge-rates span { font-weight: 600; color: var(--tge-ink); }
.tge-rates strong { font-size: 1.35rem; font-weight: 800; color: var(--tge-brand); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Page header band ------------------------------------------- */
.tge-pagehead {
    background:
        radial-gradient(800px 300px at 90% -40%, rgba(147, 37, 19, .10), transparent 60%),
        var(--tge-surface);
    border-bottom: 1px solid var(--tge-line);
    padding: 44px 0 40px;
}
.tge-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .9rem; font-size: .85rem; color: var(--tge-muted); }
.tge-crumbs li + li::before { content: "/"; margin-right: .4rem; color: #c9bcb3; }
.tge-crumbs a { color: var(--tge-muted); }
.tge-crumbs a:hover { color: var(--tge-brand); }
.tge-pagehead h1 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .5rem; }
.tge-pagehead p { color: var(--tge-muted); font-size: 1.075rem; max-width: 680px; margin: 0; line-height: 1.6; }
.tge-pagehead__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }

.tge-page { padding: 56px 0 88px; }
.tge-page--narrow > .container { max-width: 860px; }
@media (max-width: 767.98px) { .tge-page { padding: 40px 0 64px; } }

/* ---------- Long-form text (policies, docs, articles) ------------------ */
.tge-prose { color: var(--tge-body); font-size: 1.02rem; line-height: 1.75; }
.tge-prose > * + * { margin-top: 1rem; }
.tge-prose p { margin-bottom: 0; }
.tge-prose h2, .tge-prose h3 { margin-top: 2.25rem; margin-bottom: .5rem; font-weight: 700; }
.tge-prose h2 { font-size: 1.5rem; }
.tge-prose h3 { font-size: 1.2rem; }
.tge-prose ul, .tge-prose ol { padding-left: 1.25rem; }
.tge-prose li + li { margin-top: .35rem; }
.tge-prose img { max-width: 100%; height: auto; border-radius: var(--tge-radius); }
.tge-prose pre, .tge-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; }
.tge-prose pre { background: var(--tge-ink); color: #f3ebe6; padding: 16px 18px; border-radius: 12px; overflow-x: auto; }
.tge-prose :not(pre) > code { background: var(--tge-surface); border: 1px solid var(--tge-line); padding: .1rem .35rem; border-radius: 6px; color: var(--tge-brand-700); }

/* ---------- Cards, tables, forms, accordions inside inner pages -------- */
.tge-page .card {
    border: 1px solid var(--tge-line); border-radius: var(--tge-radius); box-shadow: none; overflow: hidden;
}
.tge-page .card-header {
    background: var(--tge-surface); border-bottom: 1px solid var(--tge-line); font-weight: 700; color: var(--tge-ink);
    padding: 14px 20px;
}
.tge-page .card-body { padding: 22px 20px; }

.tge-table-wrap { border: 1px solid var(--tge-line); border-radius: var(--tge-radius); overflow: hidden; background: #fff; }
.tge-table-wrap .table-responsive { margin: 0; }
.tge-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .95rem; }
.tge-table th, .tge-table td { padding: 12px 16px; border-bottom: 1px solid var(--tge-line); text-align: left; vertical-align: middle; }
.tge-table thead th {
    background: var(--tge-surface); color: var(--tge-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; white-space: nowrap; position: sticky; top: 0;
}
.tge-table tbody tr:last-child td { border-bottom: 0; }
.tge-table tbody tr:hover td { background: #fdfaf8; }
.tge-table td.num, .tge-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tge-table td.num { font-weight: 600; color: var(--tge-ink); }
.tge-table .muted { color: #b3a79f; font-weight: 400; }

.tge-page .form-label, .tge-page label { font-size: .875rem; font-weight: 600; color: var(--tge-ink); margin-bottom: .35rem; }
.tge-page .form-control, .tge-page .form-select, .tge-auth .form-control {
    min-height: 48px; border-radius: 10px; border: 1px solid #e3d9d2; background-color: #fff; color: var(--tge-ink); font-size: 1rem;
}
.tge-page textarea.form-control { min-height: 130px; }
.tge-page .form-control:focus, .tge-page .form-select:focus, .tge-auth .form-control:focus {
    border-color: var(--tge-brand); box-shadow: 0 0 0 3px rgba(147, 37, 19, .12);
}
.tge-page .form-group, .tge-auth .form-group { margin-bottom: 1rem; }
.tge-page ul.form-error-list, .tge-page .invalid-feedback, .tge-auth .invalid-feedback, .tge-form-errors { color: #b42318; font-size: .85rem; }
.btn-lg-tge { min-height: 48px; padding: .7rem 1.4rem; }

.tge-page .accordion { display: grid; gap: 10px; }
.tge-page .accordion-item {
    border: 1px solid var(--tge-line) !important; border-radius: 12px !important; overflow: hidden; background: #fff;
}
.tge-page .accordion-button {
    font-weight: 600; color: var(--tge-ink); padding: 18px 20px; font-size: 1rem; background: #fff; box-shadow: none !important;
}
.tge-page .accordion-button:not(.collapsed) { color: var(--tge-brand); background: var(--tge-brand-50); }
.tge-page .accordion-body { padding: 4px 20px 20px; color: var(--tge-body); line-height: 1.7; }
.tge-page .accordion-button:not(.collapsed) + * .accordion-body, .tge-page .accordion-collapse.show .accordion-body { padding-top: 16px; }
.tge-permalink { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; margin-top: .75rem; }
.tge-permalink svg { width: 14px; height: 14px; }

.tge-callout {
    border-radius: var(--tge-radius); padding: 22px 24px; background: var(--tge-brand-50);
    border: 1px solid rgba(147, 37, 19, .18); color: var(--tge-ink);
}
.tge-callout h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.tge-callout--warn { background: #fff8eb; border-color: #f3d9a4; }
.tge-note { font-size: .9rem; color: var(--tge-muted); }

/* Aside / sticky side panel */
.tge-aside { position: sticky; top: 96px; }
.tge-aside .tge-card:hover { transform: none; box-shadow: none; }

/* ---------- Pricing ----------------------------------------------------- */
.tge-search { position: relative; max-width: 520px; }
.tge-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tge-muted); }
.tge-search .form-control { padding-left: 42px; }
.tge-district { scroll-margin-top: 96px; }
.tge-district + .tge-district { margin-top: 40px; }
.tge-district__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 12px; }
.tge-district__head h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.tge-district__head a { font-size: .875rem; font-weight: 600; }
.tge-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.tge-jump a {
    font-size: .8rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--tge-line); color: var(--tge-ink);
}
.tge-jump a:hover { border-color: var(--tge-brand); color: var(--tge-brand); }

/* ---------- Tracking ---------------------------------------------------- */
.tge-status { display: flex; gap: 16px; align-items: flex-start; }
.tge-status .tge-icon { width: 52px; height: 52px; border-radius: 14px; }
.tge-status h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .25rem; }
.tge-status p { margin: 0; color: var(--tge-muted); }
.tge-pill {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .25rem .6rem;
    border-radius: 999px; background: var(--tge-surface); border: 1px solid var(--tge-line); color: var(--tge-ink);
}
.tge-pill--ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.tge-pill--brand { background: var(--tge-brand-50); border-color: rgba(147, 37, 19, .2); color: var(--tge-brand); }
.tge-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--tge-line); border-radius: var(--tge-radius); overflow: hidden; background: #fff; }
.tge-facts > div { padding: 16px 18px; border-right: 1px solid var(--tge-line); border-bottom: 1px solid var(--tge-line); margin: 0 -1px -1px 0; }
.tge-facts dt { font-size: .75rem; font-weight: 700; color: var(--tge-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.tge-facts dd { margin: 0; color: var(--tge-ink); font-weight: 600; word-break: break-word; }
.tge-subhead { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.tge-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.tge-timeline li { position: relative; padding: 0 0 22px 30px; }
.tge-timeline li::before {
    content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 3px solid #d8cbc2;
}
.tge-timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--tge-line); }
.tge-timeline li:last-child { padding-bottom: 0; }
.tge-timeline li:last-child::after { display: none; }
.tge-timeline li.is-latest::before { border-color: var(--tge-brand); background: var(--tge-brand); box-shadow: 0 0 0 4px var(--tge-brand-50); }
.tge-timeline strong { display: block; color: var(--tge-ink); font-weight: 600; }
.tge-timeline time { font-size: .85rem; color: var(--tge-muted); }

/* ---------- Blog -------------------------------------------------------- */
.tge-post {
    height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tge-line);
    border-radius: var(--tge-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.tge-post:hover { box-shadow: var(--tge-shadow-lg); transform: translateY(-2px); }
.tge-post__img { aspect-ratio: 16 / 9; background: var(--tge-surface); overflow: hidden; }
.tge-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tge-post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tge-post__body time { font-size: .8rem; color: var(--tge-muted); font-weight: 600; }
.tge-post__body h2 { font-size: 1.15rem; font-weight: 700; margin: .4rem 0 .6rem; line-height: 1.35; }
.tge-post__body h2 a { color: var(--tge-ink); }
.tge-post__body h2 a:hover { color: var(--tge-brand); }
.tge-post__intro { color: var(--tge-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.tge-post__intro p { margin: 0; }
.tge-post--feature { flex-direction: row; }
.tge-post--feature .tge-post__img { aspect-ratio: auto; flex: 0 0 55%; min-height: 320px; }
.tge-post--feature .tge-post__body { padding: 36px; justify-content: center; }
.tge-post--feature h2 { font-size: 1.6rem; }
@media (max-width: 767.98px) {
    .tge-post--feature { flex-direction: column; }
    .tge-post--feature .tge-post__img { aspect-ratio: 16 / 9; min-height: 0; }
    .tge-post--feature .tge-post__body { padding: 22px; }
}
.tge-article-cover { border-radius: 18px; overflow: hidden; margin-bottom: 2rem; }
.tge-article-cover img { width: 100%; display: block; }

/* ---------- Coverage list ---------------------------------------------- */
.tge-coverage { columns: 3 260px; column-gap: 24px; }
.tge-coverage__district { break-inside: avoid; margin-bottom: 24px; }
.tge-coverage__district h2 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; display: flex; justify-content: space-between; gap: .5rem; }
.tge-coverage__district h2 span { color: var(--tge-muted); font-weight: 600; font-size: .8rem; }
.tge-coverage__district ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tge-coverage__district li a {
    display: inline-block; font-size: .85rem; padding: .25rem .6rem; border-radius: 8px; background: var(--tge-surface);
    border: 1px solid var(--tge-line); color: var(--tge-ink);
}
.tge-coverage__district li a:hover { border-color: var(--tge-brand); color: var(--tge-brand); }

/* ---------- Auth (login, signup, reset) -------------------------------- */
.tge-auth {
    background:
        radial-gradient(800px 380px at 100% 0%, rgba(147, 37, 19, .08), transparent 60%),
        var(--tge-surface);
    padding: 64px 0 88px; min-height: calc(100vh - 120px);
}
.tge-auth__card {
    background: #fff; border: 1px solid var(--tge-line); border-radius: 18px; box-shadow: var(--tge-shadow-lg);
    padding: 36px; max-width: 460px; margin: 0 auto;
}
.tge-auth__card--wide { max-width: none; }
.tge-auth__card h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .35rem; }
.tge-auth__card .tge-auth__lead { color: var(--tge-muted); margin-bottom: 1.75rem; }
.tge-auth__card label { font-size: .875rem; font-weight: 600; color: var(--tge-ink); margin-bottom: .35rem; display: block; }
.tge-auth__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: .9rem; }
.tge-auth__foot { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--tge-line); font-size: .92rem; color: var(--tge-muted); text-align: center; }
.tge-auth__aside { padding: 8px 8px 8px 24px; }
.tge-auth__aside h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.tge-auth__aside p { color: var(--tge-muted); }
@media (max-width: 575.98px) { .tge-auth { padding: 32px 0 56px; } .tge-auth__card { padding: 24px 20px; } }
@media (max-width: 991.98px) { .tge-auth__aside { padding: 0; } }

/* ---------- Error pages ------------------------------------------------- */
.tge-error { text-align: center; padding: 96px 0 112px; }
.tge-error__code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; color: var(--tge-brand); line-height: 1; letter-spacing: -0.04em; }
.tge-error h1 { font-size: 1.75rem; font-weight: 800; margin: 1rem 0 .5rem; }
.tge-error p { color: var(--tge-muted); max-width: 520px; margin: 0 auto; }
.tge-error__actions { margin-top: 2rem; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }

/* ---------- Developer docs --------------------------------------------- */
.tge-docs > br { display: none; }
.tge-docs .card + .card, .tge-docs .card + br + .card { margin-top: 20px; }
.tge-docs .card-body > p { line-height: 1.7; }
.tge-docs .table { font-size: .9rem; margin: 1rem 0 0; }
.tge-docs .table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tge-muted); background: var(--tge-surface); }
.tge-docs .table td, .tge-docs .table th { padding: 12px; border-color: var(--tge-line); vertical-align: top; }
.tge-docs .table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--tge-brand); font-size: .8rem; }
.tge-docs .table td:nth-child(2) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; white-space: nowrap; color: var(--tge-ink); }
.tge-docs .api-example { margin-top: .5rem; }
.tge-docs .api-example > p:first-child { font-size: .75rem; color: var(--tge-muted); margin-bottom: .35rem; }
.tge-docs .pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.6;
    background: var(--tge-ink); color: #f3ebe6; padding: 12px 14px; border-radius: 10px; white-space: normal; word-break: break-word; margin: 0;
}
@media (max-width: 767.98px) { .tge-docs .table td:nth-child(2) { white-space: normal; } }

/* ---------- Misc ------------------------------------------------------- */
.btn-outline-primary { color: var(--tge-brand); border-color: var(--tge-brand); background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:active { color: #fff !important; background: var(--tge-brand) !important; border-color: var(--tge-brand) !important; }
.tge-pagehead .btn-outline-primary { background: #fff; }
.tge-page .alert, .tge-auth .alert { border-radius: 10px; }
.tge-auth .form-text, .tge-page .form-text { color: var(--tge-muted); font-size: .8rem; }
[hidden] { display: none !important; }
