/* ============================================================
   FABLEHESION — Desktop Enhancement Stylesheet
   Loaded via: <link media="(min-width: 769px)">
   
   Everything here ADDS to the mobile base.
   Nothing here overrides or undoes mobile styles.
   ============================================================ */

/* ---- LAYOUT ---- */
:root {
    --header-height: 72px;
}
.container { padding: 0 24px; }
.container--narrow { padding: 0 24px; }

/* ---- HEADER ---- */
.header-inner { padding: 0 24px; }

.site-brand { gap: 12px; }
.site-brand__mark { width: 22px; height: 30px; }
.site-brand__name { font-size: 22px; letter-spacing: 0.06em; }

/* Hide mobile toggle, show inline nav */
.nav-toggle { display: none; }
.main-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    border-top: none;
    flex-direction: row;
    padding: 0;
    gap: 4px;
    overflow-y: visible;
}
.main-nav__link {
    width: auto;
    text-align: center;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 2px;
}
.main-nav__link--cta,
.main-nav__get-blog {
    width: auto;
    min-width: 100px;
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 0;
}
.main-nav__get-blog { margin-left: 4px; }

/* ---- MASTHEAD ---- */
.masthead { padding: 120px 0 80px; }
.masthead__eyebrow { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 20px; }
.masthead__title { font-size: clamp(36px, 5vw, 56px); line-height: 1.15; margin-bottom: 16px; }
.masthead__subtitle { font-size: 18px; line-height: 1.6; }

/* ---- TIMELINE ---- */
.timeline { padding: 60px 0 80px; }

.timeline::before { left: 50%; transform: translateX(-50%); }

.timeline__origin { text-align: center; padding-left: 0; margin-bottom: 48px; }
.timeline__origin-mark { width: 60px; height: 60px; }
.timeline__origin-mark svg { width: 26px; height: 36px; }

.timeline__year-marker { text-align: center; padding-left: 0; margin: 48px 0 32px; }
.timeline__year-marker span { font-size: 20px; padding: 8px 20px; }

/* Two-column alternating layout */
.timeline__item {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-left: 0;
    margin-bottom: 48px;
}
.timeline__item::before { display: none; }
.timeline__spacer { display: block; }

.timeline__item:nth-child(odd) .timeline__card { grid-column: 1; text-align: right; }
.timeline__item:nth-child(odd) .timeline__spacer { grid-column: 2; }
.timeline__item:nth-child(odd) .timeline__card-meta { justify-content: flex-end; }
.timeline__item:nth-child(odd) .timeline__card-footer { flex-direction: row-reverse; }
.timeline__item:nth-child(odd) { transform: translateX(-20px) translateY(30px); }
.timeline__item:nth-child(odd).is-visible { transform: translateX(0) translateY(0); }

.timeline__item:nth-child(even) .timeline__spacer { grid-column: 1; }
.timeline__item:nth-child(even) .timeline__card { grid-column: 2; text-align: left; }
.timeline__item:nth-child(even) .timeline__card-meta { justify-content: flex-start; }
.timeline__item:nth-child(even) .timeline__card-footer { flex-direction: row; }
.timeline__item:nth-child(even) { transform: translateX(20px) translateY(30px); }
.timeline__item:nth-child(even).is-visible { transform: translateX(0) translateY(0); }

/* Card sizing */
.timeline__card { border-radius: 3px; }
.timeline__card-header { padding: 24px; }
.timeline__card-header::after { width: 10px; height: 10px; }
.timeline__card-body { padding: 24px; }
.timeline__card-meta { font-size: 12px; margin-bottom: 10px; }
.timeline__card-category { font-size: 10px; padding: 3px 8px; }
.timeline__card-date { font-size: 12px; }
.timeline__card-title { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.timeline__card-excerpt { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.timeline__card-footer { font-size: 12px; }
.timeline__card-read-more { font-size: 12px; }

/* Featured */
.timeline__item--featured { grid-template-columns: 1fr; gap: 0; }
.timeline__item--featured .timeline__card { max-width: 680px; }
.timeline__item--featured .timeline__card-title { font-size: 28px; }

/* ---- POST LIST ---- */
.post-list { padding: 48px 0 80px; }
.post-list__header { margin-bottom: 40px; padding-bottom: 24px; }
.post-list__title { font-size: 32px; }
.post-list__grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }

.post-card__body { padding: 20px; }
.post-card__title { font-size: 20px; }
.post-card__excerpt { font-size: 14px; }

/* ---- SINGLE POST ---- */
.post-single { padding: 48px 0 80px; }
.post-single__header { margin-bottom: 40px; padding: 0; }
.post-single__category { font-size: 11px; margin-bottom: 16px; }
.post-single__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin-bottom: 12px; }
.post-single__subtitle { font-size: 21px; line-height: 1.5; margin-bottom: 20px; }
.post-single__meta { font-size: 13px; gap: 16px; }

.post-single__hero { margin: 0 auto 40px; max-width: 960px; border-radius: 3px; border: 1px solid var(--border); }
.post-single__hero img { aspect-ratio: 21 / 9; }

/* Article body — card with more padding */
.post-single__body {
    margin: 0 auto;
    padding: 40px clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.8;
}
.post-single__body h2 { font-size: 28px; margin: 48px 0 16px; }
.post-single__body h3 { font-size: 22px; margin: 36px 0 12px; }
.post-single__body h4 { font-size: 16px; margin: 28px 0 10px; }
.post-single__body p { margin-bottom: 20px; }
.post-single__body blockquote { margin: 32px 0; padding: 20px 24px 20px 28px; font-size: 18px; line-height: 1.7; }
.post-single__body ul, .post-single__body ol { margin-left: 24px; }
.post-single__body img { border-radius: 3px; margin: 24px 0; width: 100%; max-width: 100%; border: 1px solid var(--border); }
.post-single__body pre { margin: 24px 0; border-radius: 3px; padding: 20px 24px; font-size: 14px; width: 100%; max-width: 100%; }
.post-single__body .table-scroll { margin: 28px 0; padding: 0; width: 100%; overflow-x: auto; }
.post-single__body .table-scroll::after { display: none; }
.post-single__body table { font-size: 14px; min-width: 0; margin: 0; }
.post-single__body table th:first-child,
.post-single__body table td:first-child { position: static; min-width: unset; max-width: unset; }
.post-single__body table th:first-child::after,
.post-single__body table td:first-child::after { display: none; }
.post-single__body figure { margin: 32px 0; width: 100%; max-width: 100%; }
.post-single__body figcaption { font-size: 13px; padding: 0; }

/* Tags */
.post-single__tags { margin: 40px auto 0; padding-top: 24px; }
.post-single__tag { font-size: 12px; padding: 4px 12px; }

/* Author card */
.post-single__author { margin: 48px auto 0; padding: 28px; flex-direction: row; align-items: flex-start; text-align: left; }
.post-single__author-photo { width: 56px; height: 56px; }

/* Post nav */
.post-nav { margin: 48px auto 0; gap: 24px; }
.post-nav__link { padding: 20px; }
.post-nav__title { font-size: 16px; }

/* Related posts */
.related-posts__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding: 0 24px; }

/* ---- SHARE ---- */
.share-trigger { margin: 32px auto 0; }
.share-tray { min-width: 200px; }

/* ---- ARTICLE CTA ---- */
.article-cta {
    margin: 40px auto 0;
    padding: 28px 32px;
    flex-direction: row;
    text-align: left;
    gap: 24px;
}
.article-cta__text { font-size: 15px; }
.article-cta__btn { width: auto; padding: 10px 24px; }

/* ---- ENGAGE MODAL ---- */
.engage-modal__panel { padding: 48px 40px 40px; width: 92%; }
.engage-form-row { grid-template-columns: 1fr 1fr; }
.engage-chat { height: 420px; max-height: 60vh; }
.chat-bubble { font-size: 17px; max-width: 85%; }
.chat-choices { gap: 8px; }
.chat-choice { font-size: 13px; padding: 9px 18px; }
.engage-gate__title { font-size: 28px; }
.engage-gate__option { padding: 20px 24px; }
.engage-gate__option-label { font-size: 20px; }

/* ---- SUBSCRIBE SECTION ---- */
.subscribe-section { padding: 60px 0; }
.subscribe-section__title { font-size: 28px; }
.subscribe-section__text { font-size: 15px; margin-bottom: 28px; }
.subscribe-form { flex-direction: row; gap: 0; max-width: 460px; align-items: stretch; }
.subscribe-form__input { padding: 14px 18px; font-size: 14px; border-radius: 2px 0 0 2px; flex: 1; }
.subscribe-form__btn { padding: 14px 28px; font-size: 13px; border-radius: 0 2px 2px 0; white-space: nowrap; }

/* ---- SUBSCRIBE PAGE ---- */
.subscribe-page__intro h1 { font-size: 36px; }

/* ---- SEARCH ---- */
.search-form { flex-direction: row; gap: 8px; }
.search-form__input { padding: 14px 16px; font-size: 15px; }

/* ---- FOOTER ---- */
.site-footer { padding: 60px 0 32px; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 0 24px; }
.footer-brand__text { max-width: 300px; }
.footer-col__list li { margin-bottom: 8px; }
.footer-col__list a { font-size: 14px; }
.footer-bottom { flex-direction: row; justify-content: space-between; padding: 20px 24px 0; margin-top: 40px; gap: 0; text-align: left; }

/* ---- PAGINATION ---- */
.pagination { gap: 4px; padding: 40px 0; }
.pagination__link { min-width: 40px; height: 40px; font-size: 14px; padding: 0 12px; }

/* ---- 404 ---- */
.page-404 { padding: 120px 0; }
.page-404__code { font-size: 80px; }
.page-404__title { font-size: 28px; }

/* ---- TOC ---- */
.toc { margin: 0 auto 48px; padding: 24px clamp(1.25rem, 4vw, 2rem); border-radius: 6px; }
.toc__list li { gap: 16px; padding: 8px 0; }
.toc__list a { font-size: 0.88rem; }
.toc__list .toc__h3 { padding-left: 24px; }

/* ---- POPULAR POSTS ---- */
.popular-posts__title { font-size: 1.5rem; }
.popular-posts__list li { gap: 12px; padding: 10px 0; }

/* ---- CITE BLOCK ---- */
.cite-block__content { padding: 16px 20px; }
.cite-block__text { font-size: 0.85rem; }

/* ---- COOKIE CONSENT ---- */
.consent-banner { flex-direction: row; text-align: left; gap: 16px; padding: 16px 24px; }
.consent-banner__btn { width: auto; padding: 8px 20px; font-size: 12px; }

/* ---- MOBILE BOTTOM BAR — HIDE ON DESKTOP ---- */
.mobile-bar { display: none; }
body { padding-bottom: 0; }
