/* ==========================================================================
   MAXXMA Tesla Sunroof Crisis — Article-Specific Stylesheet
   Brand: Modern Premium Light Theme + 3D Scroller / Parallax
   ========================================================================== */

/* ── CSS Variables ────────────────────────────────────────────────────── */
:root {
    --ts-gold: #C8963E;
    --ts-gold-light: #D4A84B;
    --ts-gold-dark: #B5852F;
    --ts-blue: #1E3A5F;
    --ts-blue-light: #2A5080;
    --ts-blue-dark: #162D4A;
    --ts-red: #C0392B;
    --ts-gray: #4B5563;
    --ts-dark: #1a1a2e;
    --ts-white: #FFFFFF;
    --ts-off-white: #F8FAFC;
    --ts-light-gray: #E2E8F0;
    --ts-lighter: #F1F5F9;
    --ts-radius: 12px;
    --ts-radius-sm: 8px;
    --ts-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --ts-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --ts-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --ts-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Sarabun', 'Graphik Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--ts-off-white);
    color: var(--ts-dark);
    line-height: 1.7;
}

/* ═════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═════════════════════════════════════════════════════════════════════════ */
.ts-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A5F 0%, #162D4A 50%, #0F1F35 100%);
    overflow: hidden;
    padding: 100px 24px 80px;
}

.ts-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ts-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 31, 53, 0.7) 0%, rgba(15, 31, 53, 0.92) 100%);
}

.ts-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.ts-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(200, 150, 62, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(72, 129, 159, 0.12) 0%, transparent 50%);
    z-index: 1;
}

.ts-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    width: 100%;
}

.ts-breadcrumb {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.ts-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--ts-transition);
}

.ts-breadcrumb a:hover {
    color: var(--ts-gold-light);
}

.ts-hero__category {
    display: inline-block;
    background: rgba(200, 150, 62, 0.22);
    border: 1px solid rgba(200, 150, 62, 0.35);
    color: var(--ts-gold-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 9999px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ts-hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--ts-white);
    line-height: 1.3;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.ts-hero__highlight {
    background: linear-gradient(135deg, var(--ts-gold), #e9c34c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-hero__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.ts-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ═════════════════════════════════════════════════════════════════════════
   LAYOUT — TOC (left sidebar) + Article (right)
   ═════════════════════════════════════════════════════════════════════════ */
.ts-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 0;
    gap: 0;
    position: relative;
}

/* ── TOC (Desktop — Sticky) ──────────────────────────────────────────── */
.ts-toc {
    position: relative;
}

.ts-toc__inner {
    position: sticky;
    top: 100px;
    padding: 24px 20px 24px 0;
}

.ts-toc__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ts-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ts-light-gray);
}

.ts-toc__title svg {
    color: var(--ts-gold);
}

.ts-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-toc__list li {
    margin-bottom: 4px;
}

.ts-toc__list a {
    display: block;
    font-size: 0.8125rem;
    color: var(--ts-gray);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--ts-radius-sm);
    transition: all var(--ts-transition);
    border-left: 2px solid transparent;
}

.ts-toc__list a:hover {
    color: var(--ts-gold-dark);
    background: rgba(200, 150, 62, 0.06);
    border-left-color: var(--ts-gold-light);
}

.ts-toc__list a.ts-toc--active {
    color: var(--ts-gold-dark);
    font-weight: 600;
    background: rgba(200, 150, 62, 0.1);
    border-left-color: var(--ts-gold);
}

/* ── Article Body ─────────────────────────────────────────────────────── */
.ts-article {
    min-width: 0;
    padding: 0 0 80px;
}

.ts-article__container {
    max-width: 780px;
    margin: 0 auto;
}

/* ═════════════════════════════════════════════════════════════════════════
   SECTION & SCENE (3D Parallax)
   ═════════════════════════════════════════════════════════════════════════ */
.ts-section {
    margin-bottom: 80px;
    padding: 0;
}

.ts-scene {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.ts-scene--visible {
    opacity: 1;
    transform: translateY(0);
}

.ts-scene {
    transform: translateY(var(--ts-parallax-y, 0px));
}

/* ── Section Header ──────────────────────────────────────────────────── */
.ts-section__header {
    margin-bottom: 28px;
}

.ts-section__num {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ts-gold-dark);
    background: rgba(200, 150, 62, 0.1);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.ts-section__num--gold {
    background: rgba(200, 150, 62, 0.18);
}

.ts-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ts-dark);
    line-height: 1.4;
    margin: 0;
    padding-top: 0;
}

.ts-section__body {
    font-size: 1rem;
    color: var(--ts-dark);
    line-height: 1.85;
}

.ts-section__body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ts-blue-dark);
    margin: 28px 0 12px;
    padding-top: 4px;
}

/* ── Anchor Scroll Offset (prevents header overlap) ────────────────── */
h2[id],
h3[id],
section[id],
.ts-section__title {
    scroll-margin-top: 110px;
}

.ts-section__body h3:first-child {
    margin-top: 0;
}

.ts-section__body p {
    margin: 0 0 16px;
}

.ts-section__body ul,
.ts-section__body ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.ts-section__body li {
    margin-bottom: 8px;
}

.ts-section__body strong {
    color: var(--ts-blue-dark);
}

.ts-section__body a {
    color: var(--ts-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--ts-transition);
}

.ts-section__body a:hover {
    color: var(--ts-gold);
}

/* ── Science Grid ────────────────────────────────────────────────────── */
.ts-science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.ts-science-card {
    background: var(--ts-white);
    border: 1px solid var(--ts-light-gray);
    border-radius: var(--ts-radius);
    padding: 24px 20px;
    transition: transform var(--ts-transition), box-shadow var(--ts-transition);
}

.ts-science-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ts-shadow-md);
}

.ts-science-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ts-blue-dark);
    margin: 0 0 10px;
}

.ts-science-card p {
    font-size: 0.875rem;
    color: var(--ts-gray);
    line-height: 1.65;
    margin: 0;
}

/* ── Callout Boxes ────────────────────────────────────────────────────── */
.ts-callout {
    background: var(--ts-white);
    border-radius: var(--ts-radius);
    padding: 24px 28px;
    margin: 24px 0;
    border-left: 5px solid var(--ts-gold);
}

.ts-callout--gold {
    background: linear-gradient(135deg, rgba(200, 150, 62, 0.06) 0%, rgba(200, 150, 62, 0.02) 100%);
    border-left-color: var(--ts-gold);
}

.ts-callout--blue {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, rgba(30, 58, 95, 0.01) 100%);
    border-left-color: var(--ts-blue-light);
}

.ts-callout h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ts-dark);
    margin: 0 0 10px;
}

.ts-callout p {
    margin: 0;
    color: var(--ts-gray);
}

/* ── Warning Note ────────────────────────────────────────────────────── */
.ts-note--warning {
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.15);
    border-radius: var(--ts-radius-sm);
    padding: 16px 20px;
    font-size: 0.9375rem;
    color: var(--ts-red);
}

/* ── Shield Layers (Double Shield) ────────────────────────────────────── */
.ts-shield-layer {
    margin: 32px 0;
    padding: 32px 28px;
    border-radius: var(--ts-radius);
    border: 1px solid var(--ts-light-gray);
}

.ts-shield-layer--exterior {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 5px solid var(--ts-blue-light);
}

.ts-shield-layer--interior {
    background: linear-gradient(135deg, rgba(200, 150, 62, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 5px solid var(--ts-gold);
}

.ts-shield-layer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-dark);
    margin: 0 0 16px;
}

.ts-shield-layer__content {
    font-size: 0.9375rem;
}

.ts-shield-layer__content ul {
    padding-left: 20px;
}

.ts-shield-layer__content li {
    margin-bottom: 8px;
    color: var(--ts-gray);
}

/* ── Figures ──────────────────────────────────────────────────────────── */
.ts-figure {
    margin: 24px 0;
    text-align: center;
}

.ts-figure--right {
    float: right;
    max-width: 350px;
    margin-left: 28px;
    margin-bottom: 20px;
}

.ts-figure--left {
    float: left;
    max-width: 350px;
    margin-right: 28px;
    margin-bottom: 20px;
}

.ts-figure--full {
    max-width: 100%;
    margin: 32px 0;
}

.ts-figure__img {
    width: 100%;
    height: auto;
    border-radius: var(--ts-radius-sm);
    box-shadow: var(--ts-shadow-sm);
    border: 1px solid var(--ts-light-gray);
}

.ts-figure figcaption {
    font-size: 0.8125rem;
    color: var(--ts-gray);
    margin-top: 10px;
    font-style: italic;
}

/* ── Social Grid ──────────────────────────────────────────────────────── */
.ts-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.ts-social-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--ts-white);
    border: 1px solid var(--ts-light-gray);
    border-radius: var(--ts-radius);
    padding: 24px 22px;
    text-decoration: none;
    transition: transform var(--ts-transition), box-shadow var(--ts-transition), border-color var(--ts-transition);
    color: var(--ts-dark);
}

.ts-social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ts-shadow-md);
    border-color: rgba(200, 150, 62, 0.3);
}

.ts-social-card__icon {
    font-size: 1.5rem;
}

.ts-social-card strong {
    font-size: 1rem;
    color: var(--ts-blue-dark);
}

.ts-social-card > span {
    font-size: 0.8125rem;
    color: var(--ts-gray);
    line-height: 1.5;
}

.ts-social-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ts-gold-dark);
    margin-top: 4px;
}

/* ── Checklist ────────────────────────────────────────────────────────── */
.ts-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ts-checklist li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ts-light-gray);
    align-items: flex-start;
}

.ts-checklist li:last-child {
    border-bottom: none;
}

.ts-checklist__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(200, 150, 62, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ts-gold-dark);
}

.ts-checklist__text {
    font-size: 0.9375rem;
    color: var(--ts-dark);
    line-height: 1.6;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.ts-faq-item {
    border: 1px solid var(--ts-light-gray);
    border-radius: var(--ts-radius-sm);
    margin-bottom: 12px;
    background: var(--ts-white);
    overflow: hidden;
    transition: box-shadow var(--ts-transition);
}

.ts-faq-item:hover {
    box-shadow: var(--ts-shadow-sm);
}

.ts-faq-item summary {
    padding: 18px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ts-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

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

.ts-faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--ts-gray);
    transition: transform var(--ts-transition);
}

.ts-faq-item[open] summary {
    border-bottom: 1px solid var(--ts-light-gray);
    color: var(--ts-gold-dark);
}

.ts-faq-item[open] summary::after {
    content: '−';
    color: var(--ts-gold-dark);
}

.ts-faq-answer {
    padding: 16px 20px;
    font-size: 0.9375rem;
    color: var(--ts-gray);
    line-height: 1.75;
}

.ts-faq-answer p {
    margin: 0;
}

/* ── CTA Section ──────────────────────────────────────────────────────── */
.ts-section--cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--ts-radius);
    padding: 40px 36px;
    border: 1px solid var(--ts-light-gray);
}

.ts-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 28px 0;
}

.ts-cta-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--ts-white);
    border: 1px solid var(--ts-light-gray);
    border-radius: var(--ts-radius-sm);
    padding: 20px 24px;
    text-decoration: none;
    color: var(--ts-dark);
    transition: transform var(--ts-transition), box-shadow var(--ts-transition), border-color var(--ts-transition);
}

.ts-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ts-shadow-md);
    border-color: rgba(200, 150, 62, 0.3);
}

.ts-cta-card--primary {
    background: linear-gradient(135deg, var(--ts-gold) 0%, var(--ts-gold-dark) 100%);
    border: none;
    color: var(--ts-white);
}

.ts-cta-card--primary strong,
.ts-cta-card--primary span {
    color: var(--ts-white);
}

.ts-cta-card strong {
    font-size: 1rem;
    font-weight: 700;
}

.ts-cta-card span {
    font-size: 0.8125rem;
    color: var(--ts-gray);
}

.ts-cta-contact {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--ts-light-gray);
    font-size: 0.875rem;
    color: var(--ts-gray);
    line-height: 1.8;
}

.ts-cta-contact a {
    color: var(--ts-gold-dark);
    text-decoration: none;
    font-weight: 500;
}

.ts-cta-contact a:hover {
    text-decoration: underline;
}

/* ═════════════════════════════════════════════════════════════════════════
   EXPERT VERIFICATION BAR (E-E-A-T)
   ═════════════════════════════════════════════════════════════════════════ */
.ts-expertise {
    background: linear-gradient(135deg, #e8f0f5 0%, #dce8ef 100%);
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    padding: 28px 0;
    grid-column: 1 / -1;
}

.ts-expertise__inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
}

.ts-expertise__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 150, 62, 0.18), rgba(200, 150, 62, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ts-gold);
}

.ts-expertise__text h3 {
    font-size: 0.9375rem;
    color: var(--ts-dark);
    margin: 0 0 4px;
    font-weight: 600;
}

.ts-expertise__text h3 strong {
    color: var(--ts-gold-dark);
}

.ts-expertise__text p {
    font-size: 0.75rem;
    color: var(--ts-gray);
    line-height: 1.5;
    margin: 0;
}

/* ═════════════════════════════════════════════════════════════════════════
   RELATED ARTICLES
   ═════════════════════════════════════════════════════════════════════════ */
.ts-related {
    padding: 48px 0 80px;
    grid-column: 1 / -1;
}

.ts-related__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ts-related h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ts-dark);
    margin: 0 0 24px;
}

.ts-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ts-related__card {
    background: var(--ts-white);
    border: 1px solid var(--ts-light-gray);
    border-radius: var(--ts-radius);
    padding: 24px;
    text-decoration: none;
    color: var(--ts-dark);
    transition: transform var(--ts-transition), box-shadow var(--ts-transition), border-color var(--ts-transition);
}

.ts-related__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ts-shadow-md);
    border-color: rgba(200, 150, 62, 0.3);
}

.ts-related__card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ts-blue-dark);
    margin: 0 0 10px;
    line-height: 1.5;
}

.ts-related__card span {
    font-size: 0.8125rem;
    color: var(--ts-gold-dark);
    font-weight: 600;
}

/* ═════════════════════════════════════════════════════════════════════════
   MOBILE TOC
   ═════════════════════════════════════════════════════════════════════════ */
.ts-toc-mobile {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
}

.ts-toc-mobile__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1E3A5F 0%, #162D4A 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(15, 31, 53, 0.35);
    transition: transform var(--ts-transition), box-shadow var(--ts-transition);
}

.ts-toc-mobile__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15, 31, 53, 0.45);
}

.ts-toc-mobile__menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--ts-white);
    border: 1px solid var(--ts-light-gray);
    border-radius: var(--ts-radius);
    padding: 12px;
    box-shadow: var(--ts-shadow-lg);
    z-index: 41;
}

.ts-toc-mobile__menu.show {
    display: block;
}

.ts-toc-mobile__menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.8125rem;
    color: var(--ts-dark);
    text-decoration: none;
    border-radius: var(--ts-radius-sm);
    transition: background var(--ts-transition), color var(--ts-transition);
}

.ts-toc-mobile__menu a:hover {
    background: rgba(200, 150, 62, 0.08);
    color: var(--ts-gold-dark);
}

/* ═════════════════════════════════════════════════════════════════════════
   BACK TO TOP (override — matches brand blue)
   ═════════════════════════════════════════════════════════════════════════ */
#back-to-top {
    background: rgba(30, 58, 95, 0.90) !important;
    color: white !important;
    border: 1px solid rgba(30, 58, 95, 0.3);
    backdrop-filter: blur(6px);
}

/* ═════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═════════════════════════════════════════════════════════════════════════ */

/* Tablet: hide TOC sidebar, show mobile TOC */
@media (max-width: 1024px) {
    .ts-layout {
        grid-template-columns: 1fr;
        padding: 32px 20px 0;
    }

    .ts-toc {
        display: none;
    }

    .ts-toc-mobile {
        display: block;
    }

    .ts-hero {
        min-height: 480px;
        padding: 80px 20px 56px;
    }

    .ts-hero h1 {
        font-size: 1.625rem;
    }

    .ts-hero__subtitle {
        font-size: 0.9375rem;
    }

    .ts-science-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ts-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ts-figure--right,
    .ts-figure--left {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .ts-expertise__inner {
        max-width: 100%;
    }
}

/* Mobile: stack single column */
@media (max-width: 640px) {
    .ts-hero {
        min-height: 400px;
        padding: 72px 16px 48px;
    }

    .ts-hero h1 {
        font-size: 1.375rem;
    }

    .ts-hero__meta {
        flex-direction: column;
        gap: 6px;
    }

    .ts-layout {
        padding: 24px 16px 0;
    }

    .ts-section__title {
        font-size: 1.25rem;
    }

    .ts-section__body {
        font-size: 0.9375rem;
    }

    .ts-section__body h3 {
        font-size: 1.0625rem;
    }

    .ts-science-grid {
        grid-template-columns: 1fr;
    }

    .ts-social-grid {
        grid-template-columns: 1fr;
    }

    .ts-shield-layer {
        padding: 24px 18px;
    }

    .ts-section--cta {
        padding: 28px 20px;
    }

    .ts-cta-card {
        padding: 16px 18px;
    }

    .ts-related__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ts-expertise__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ts-toc-mobile__menu {
        width: 260px;
    }
}

/* Very small devices */
@media (max-width: 380px) {
    .ts-hero {
        padding: 56px 12px 36px;
    }

    .ts-hero h1 {
        font-size: 1.1875rem;
    }
}