/* LegitAssure CMS — blog layout + content blocks (shortcodes). Loaded on blog pages only. */
:root {
  --la-navy: #0a1d35; --la-teal: #0f5d6a; --la-teal-2: #266472; --la-gold: #b8967e; --la-gold-2: #a4826b;
  --la-text: #1b1f24; --la-muted: #5b6574; --la-line: #e2e6ec; --la-soft: #f4f7fa;
  --la-info: #1d6fb8; --la-warn: #b7791f; --la-danger: #c0392b; --la-ok: #1f8a4c;
  --la-radius: 10px; --la-head: "Lora", Georgia, serif;
}

/* ---------- hero + banners ---------- */
.la-hero { background: var(--la-navy); color: #fff; padding: 140px 0 48px; }
.la-hero__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.la-hero__cat { display: inline-block; color: var(--la-gold); font: 600 13px/1 Kanit, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; text-decoration: none; }
.la-hero__cat:hover { color: #fff; }
.la-post-title { font: 700 clamp(28px, 4vw, 40px)/1.25 var(--la-head); color: #fff; margin: 0 0 14px; }
.la-hero__meta { color: #c7d1de; font-size: 15px; margin: 0; }
.la-hero__meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.la-banner { flex-direction: column !important; text-align: center; }
.la-banner__page, .la-banner__kicker { font-size: .6em; opacity: .75; }
.la-banner__sub { color: #c7d1de; margin: 6px 0 0; }
.la-banner__crumbs ul { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; padding: 0; margin: 10px 0 0; }
.la-banner__crumbs li { list-style: none; color: #fff; }
.la-banner__crumbs li + li::before { content: "/"; color: var(--la-gold); margin-right: 1rem; font-size: 12px; }
.la-banner__crumbs a { color: var(--la-gold); text-decoration: none; }

/* ---------- article ---------- */
.la-post { color: var(--la-text); font-size: 17px; line-height: 1.75; }
.la-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.la-breadcrumb li { color: var(--la-muted); }
.la-breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #9aa4b2; }
.la-breadcrumb a { color: var(--la-navy); font-weight: 600; text-decoration: none; }
.la-breadcrumb [aria-current] { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.la-featured { margin: 0 0 18px; }
.la-featured img { width: 100%; height: auto; border-radius: var(--la-radius); display: block; }
.la-featured figcaption { font-size: 13px; color: var(--la-muted); margin-top: 6px; }
.la-byline { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--la-muted); padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--la-line); }
.la-byline a { color: var(--la-teal-2); text-decoration: none; }
.la-byline .fa-circle-check { color: var(--la-ok); }

.la-tldr { background: #f1f7f8; border: 1px solid #d3e5e8; border-left: 5px solid var(--la-teal); border-radius: var(--la-radius); padding: 16px 20px; margin: 0 0 24px; }
.la-tldr p { margin: 0; font-size: 17px; }
.la-tldr .la-tldr__label { font: 700 13px/1 Kanit, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--la-teal); margin-bottom: 8px; }

.la-toc { background: var(--la-soft); border: 1px solid var(--la-line); border-radius: var(--la-radius); margin: 0 0 28px; }
.la-toc details { padding: 14px 20px; }
.la-toc summary { cursor: pointer; font: 700 18px/1.3 var(--la-head); color: var(--la-navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.la-toc summary::-webkit-details-marker { display: none; }
.la-toc summary::after { content: "+"; font: 400 22px/1 sans-serif; color: var(--la-muted); }
.la-toc details[open] summary::after { content: "–"; }
.la-toc ol { margin: 12px 0 0; padding-left: 22px; }
.la-toc li { margin: 5px 0; font-size: 15.5px; line-height: 1.45; }
.la-toc li.la-toc__sub { margin-left: 18px; list-style-type: circle; font-size: 14.5px; }
.la-toc a { color: var(--la-teal); text-decoration: none; }
.la-toc a:hover, .la-toc a.is-current { text-decoration: underline; font-weight: 600; }

.la-content { overflow-wrap: break-word; }
.la-content h2, .la-content h3, .la-content h4 { font-family: var(--la-head); color: var(--la-navy); line-height: 1.3; margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.la-content h2 { font-size: clamp(24px, 2.6vw, 30px); }
.la-content h3 { font-size: clamp(20px, 2.1vw, 23px); }
.la-content h4 { font-size: 19px; }
.la-content p, .la-content li { font-size: 17px; line-height: 1.75; color: var(--la-text); font-weight: 400; }
.la-content p { margin: 0 0 1.1em; }
.la-content a { color: var(--la-teal); text-decoration: underline; text-underline-offset: 2px; }
.la-content img { max-width: 100%; height: auto; border-radius: 8px; }
.la-content figure { margin: 1.5em 0; }
.la-content figcaption { font-size: 14px; color: var(--la-muted); text-align: center; margin-top: 6px; }
.la-content blockquote:not(.la-quote blockquote) { border-left: 4px solid var(--la-gold); margin: 1.5em 0; padding: .4em 0 .4em 1.2em; color: #374151; font-style: italic; }
.la-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.la-content th, .la-content td { border: 1px solid var(--la-line); padding: 9px 12px; text-align: left; vertical-align: top; }
.la-content th { background: var(--la-soft); color: var(--la-navy); }
.la-content > *:first-child { margin-top: 0; }

.la-tags { margin: 28px 0 0; font-size: 14px; }
.la-tags span { font-weight: 700; margin-right: 6px; }
.la-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 12px; border-radius: 14px; background: var(--la-soft); border: 1px solid var(--la-line); color: var(--la-navy); text-decoration: none; }
.la-share { display: flex; align-items: center; gap: 8px; margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--la-line); border-bottom: 1px solid var(--la-line); }
.la-share span { font-weight: 700; font-size: 14px; margin-right: 4px; }
.la-share a, .la-share button { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--la-soft); color: var(--la-navy); border: 1px solid var(--la-line); cursor: pointer; text-decoration: none; transition: .15s; }
.la-share a:hover, .la-share button:hover { background: var(--la-navy); color: #fff; }
.la-share button.is-copied { background: var(--la-ok); color: #fff; }

/* ---------- author ---------- */
.la-author { display: flex; gap: 18px; align-items: flex-start; background: var(--la-soft); border: 1px solid var(--la-line); border-radius: var(--la-radius); padding: 20px; margin: 28px 0; }
.la-author__img, .la-author__initial { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; object-fit: cover; }
.la-author__initial { display: grid; place-items: center; background: var(--la-navy); color: #fff; font: 700 30px var(--la-head); }
.la-author__body p { margin: 0 0 6px; font-size: 15.5px; }
.la-author__label { font: 600 12px Kanit, sans-serif !important; text-transform: uppercase; letter-spacing: .08em; color: var(--la-muted); }
.la-author__name { font: 700 19px var(--la-head) !important; }
.la-author__name a { color: var(--la-navy); text-decoration: none; }
.la-author__role { font: 400 14px system-ui, sans-serif; color: var(--la-muted); }
.la-author__links a { font-size: 13.5px; margin-right: 12px; color: var(--la-teal); }
.la-profile { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 32px; }
.la-profile__img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: 0 0 140px; }
.la-profile__label { font-weight: 700; margin: 14px 0 4px; }
.la-section-title { font: 700 24px var(--la-head); color: var(--la-navy); margin: 0 0 20px; }
.la-archive-intro { margin-bottom: 24px; font-size: 16.5px; }

/* ---------- related + prev/next ---------- */
.la-more { margin: 36px 0 10px; }
.la-more__title { font: 700 24px var(--la-head); color: var(--la-navy); margin: 0 0 16px; }
.la-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.la-more__item { display: flex; flex-direction: column; text-decoration: none; color: var(--la-text); }
.la-more__item img, .la-more__item .la-card__placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.la-more__cat { font: 600 12px Kanit, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--la-teal-2); }
.la-more__name { font-weight: 700; line-height: 1.35; font-size: 15.5px; }
.la-more__item:hover .la-more__name { color: var(--la-teal); text-decoration: underline; }
.la-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 10px; }
.la-prevnext a { display: block; padding: 14px 16px; border: 1px solid var(--la-line); border-radius: var(--la-radius); color: var(--la-navy); font-weight: 600; text-decoration: none; line-height: 1.35; font-family: Kanit, sans-serif; }
.la-prevnext a small { display: block; color: var(--la-muted); font-weight: 400; margin-bottom: 4px; }
.la-prevnext a:hover { border-color: var(--la-teal); }
.la-prevnext__next { text-align: right; grid-column: 2; }

/* ---------- listing cards ---------- */
.la-card { height: 100%; border-radius: var(--la-radius); overflow: hidden; background: var(--la-navy); }
.la-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.la-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #13294a; }
.la-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.la-card__link:hover .la-card__img { transform: scale(1.03); }
.la-card__placeholder { display: block; width: 100%; height: 100%; min-height: 140px; background: linear-gradient(135deg, #13294a, var(--la-teal)); }
.la-card .blog-caption { flex: 1; padding: 12px 16px 16px; }
.la-card .blog-caption small { color: var(--la-gold); font-family: Kanit, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.la-card__title { font-size: 18px !important; line-height: 1.35 !important; margin: 4px 0 0; }
.pagination .gap span { padding: 8px 6px; color: var(--la-muted); }

/* ---------- buttons ---------- */
.la-btn { display: inline-block; padding: 11px 22px; border-radius: 7px; font: 600 15px/1.2 Kanit, sans-serif; text-decoration: none !important; border: 2px solid transparent; transition: .15s; cursor: pointer; }
.la-btn--primary { background: var(--la-navy); color: #fff !important; }
.la-btn--primary:hover { background: var(--la-teal); }
.la-btn--accent { background: var(--la-gold); color: #fff !important; }
.la-btn--accent:hover { background: var(--la-gold-2); }
.la-btn--outline { border-color: var(--la-navy); color: var(--la-navy) !important; background: transparent; }
.la-btn--outline:hover { background: var(--la-navy); color: #fff !important; }
.la-align-center { text-align: center; }
.la-align-right { text-align: right; }

/* ---------- content blocks ---------- */
.la-box-title { font: 700 18px/1.3 var(--la-head) !important; color: var(--la-navy) !important; margin: 0 0 10px !important; }
.la-box-title i { color: var(--la-teal); margin-right: 4px; }

.la-callout { display: flex; gap: 14px; padding: 16px 18px; margin: 1.6em 0; border-radius: var(--la-radius); border: 1px solid; background: #eef5fc; border-color: #c8def3; }
.la-callout__icon { font-size: 20px; line-height: 1.5; color: var(--la-info); }
.la-callout__body { flex: 1; min-width: 0; }
.la-callout__body > :last-child { margin-bottom: 0 !important; }
.la-callout__title { font-weight: 700 !important; margin-bottom: 4px !important; color: var(--la-navy) !important; }
.la-callout--tip { background: #f0f7f1; border-color: #cbe5d1; }
.la-callout--tip .la-callout__icon { color: var(--la-ok); }
.la-callout--success { background: #edf8f1; border-color: #c2e5cf; }
.la-callout--success .la-callout__icon { color: var(--la-ok); }
.la-callout--warning { background: #fdf6e7; border-color: #f1dfb3; }
.la-callout--warning .la-callout__icon { color: var(--la-warn); }
.la-callout--danger { background: #fdeeec; border-color: #f2c7c1; }
.la-callout--danger .la-callout__icon { color: var(--la-danger); }

.la-takeaways, .la-related, .la-sources, .la-steps { background: var(--la-soft); border: 1px solid var(--la-line); border-radius: var(--la-radius); padding: 18px 22px; margin: 1.6em 0; }
.la-takeaways { border-top: 4px solid var(--la-gold); }
.la-takeaways ul { margin: 0; padding-left: 0; list-style: none; }
.la-takeaways li { position: relative; padding-left: 28px; margin: 6px 0; }
.la-takeaways li::before { content: "\f00c"; font: 900 13px "Font Awesome 6 Free"; position: absolute; left: 2px; top: 5px; color: var(--la-teal); }
.la-related ul { margin: 0; padding-left: 20px; }
.la-sources ol, .la-sources ul { margin: 0; padding-left: 22px; }
.la-sources li { font-size: 15px !important; margin: 4px 0; }

.la-tabs { margin: 1.6em 0; border: 1px solid var(--la-line); border-radius: var(--la-radius); overflow: hidden; }
.la-tabs__list { display: flex; overflow-x: auto; background: var(--la-soft); border-bottom: 1px solid var(--la-line); }
.la-tabs__list button { flex: 0 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 18px; font: 600 15px Kanit, sans-serif; color: var(--la-muted); cursor: pointer; }
.la-tabs__list button[aria-selected="true"] { color: var(--la-navy); border-bottom-color: var(--la-gold); background: #fff; }
.la-tabs__panel { padding: 18px 20px; }
.la-tabs__panel > :last-child { margin-bottom: 0; }

.la-accordion, .la-faq { margin: 1.6em 0; }
.la-acc, .la-faq__item { border: 1px solid var(--la-line); border-radius: 8px; margin-bottom: 10px; background: #fff; }
.la-acc summary, .la-faq__item summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; position: relative; font-weight: 600; color: var(--la-navy); }
.la-acc summary::-webkit-details-marker, .la-faq__item summary::-webkit-details-marker { display: none; }
.la-acc summary::after, .la-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--la-gold); }
.la-acc[open] summary::after, .la-faq__item[open] summary::after { content: "–"; }
.la-acc[open] summary, .la-faq__item[open] summary { background: var(--la-navy); color: #fff; border-radius: 7px 7px 0 0; }
.la-faq__item[open] .la-faq__q { color: #fff; }
.la-acc__body, .la-faq__a { padding: 14px 18px 4px; }
.la-faq__q { display: inline; font: 600 17px/1.4 Kanit, system-ui, sans-serif !important; margin: 0 !important; color: inherit; }

.la-steps__list { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.la-step { position: relative; padding: 0 0 18px 52px; counter-increment: step; }
.la-step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--la-navy); color: #fff; display: grid; place-items: center; font: 700 15px Kanit, sans-serif; }
.la-step:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--la-line); }
.la-step__title { font-weight: 700 !important; margin: 4px 0 4px !important; color: var(--la-navy) !important; }
.la-step__body > :last-child { margin-bottom: 0; }

.la-cta { display: flex; align-items: center; gap: 24px; justify-content: space-between; border-radius: 12px; padding: 24px 28px; margin: 2em 0; }
.la-cta--dark { background: linear-gradient(120deg, var(--la-navy), #13355c); color: #fff; }
.la-cta--dark p { color: #d9e1ec !important; }
.la-cta--light { background: #fbf6f1; border: 1px solid #ecdccd; }
.la-cta__title { font: 700 21px/1.3 var(--la-head) !important; margin: 0 0 6px !important; }
.la-cta--dark .la-cta__title { color: #fff !important; }
.la-cta__text p:last-child { margin-bottom: 0; }

.la-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6em 0; }
.la-compare__col { border: 1px solid var(--la-line); border-radius: var(--la-radius); padding: 16px 18px; background: #fff; }
.la-compare__title { font-weight: 700 !important; font-size: 17px !important; margin: 0 0 8px !important; color: var(--la-navy) !important; }
.la-compare__col ul { list-style: none; padding: 0; margin: 0; }
.la-compare__col li { position: relative; padding-left: 26px; margin: 6px 0; }
.la-compare__col li::before { position: absolute; left: 0; top: 4px; font: 900 14px "Font Awesome 6 Free"; content: "\f105"; color: var(--la-teal); }
.la-compare__col--good { border-top: 4px solid var(--la-ok); }
.la-compare__col--good li::before { content: "\f00c"; color: var(--la-ok); }
.la-compare__col--bad { border-top: 4px solid var(--la-danger); }
.la-compare__col--bad li::before { content: "\f00d"; color: var(--la-danger); }

.la-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 1.6em 0; }
.la-stats .la-stat { margin: 0; }
.la-stat { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--la-line); border-left: 5px solid var(--la-gold); border-radius: var(--la-radius); padding: 16px 18px; margin: 1.6em 0; background: #fff; }
.la-stat__value { font: 700 32px/1.1 var(--la-head); color: var(--la-navy); }
.la-stat__label { font-size: 15.5px; color: var(--la-text); }
.la-stat__source { font-size: 13px; color: var(--la-muted); }

.la-quote { margin: 1.8em 0; padding: 20px 24px; background: var(--la-soft); border-radius: var(--la-radius); position: relative; }
.la-quote::before { content: "\201C"; position: absolute; left: 14px; top: -8px; font: 700 64px/1 Georgia, serif; color: var(--la-gold); opacity: .6; }
.la-quote blockquote { margin: 0; padding-left: 20px; font: italic 19px/1.6 var(--la-head); color: var(--la-navy); }
.la-quote blockquote p { font: inherit !important; color: inherit !important; }
.la-quote figcaption { margin-top: 8px; padding-left: 20px; font-size: 14.5px; color: var(--la-muted); }
.la-quote cite { font-style: normal; font-weight: 700; color: var(--la-navy); }

.la-video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: var(--la-radius); overflow: hidden; background: #000; cursor: pointer; }
.la-video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; border-radius: 0; }
.la-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.la-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 50px; border: 0; border-radius: 12px; background: rgba(200, 0, 0, .9); cursor: pointer; }
.la-video__play::before { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.la-video:hover .la-video__play { background: #f00; }

/* ---------- misc ---------- */
.la-preview-bar { position: sticky; top: 0; z-index: 9999; background: var(--la-gold); color: #fff; text-align: center; padding: 8px 12px; font-weight: 600; }
.la-preview-bar a { color: var(--la-navy); text-decoration: underline; margin-left: 8px; }
.la-preview-bar small { display: block; font-weight: 400; opacity: .9; }
.la-standalone-preview .la-hero { padding-top: 48px; }
.la-404 { padding: 48px 0 64px; }
.la-404__lead { font-size: 19px; }
.la-404__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 32px; }
.la-404__list { padding-left: 20px; }
.la-404__list li { margin: 6px 0; }

@media (max-width: 767px) {
  .la-hero { padding: 110px 0 32px; }
  .la-post, .la-content p, .la-content li { font-size: 16.5px; }
  .la-more__grid, .la-compare { grid-template-columns: 1fr; }
  .la-cta { flex-direction: column; align-items: flex-start; }
  .la-prevnext { grid-template-columns: 1fr; }
  .la-prevnext__next { grid-column: auto; }
  .la-profile { flex-direction: column; }
  .la-author { flex-direction: column; }
}
@media print {
  .la-share, .la-more, .la-prevnext, .la-toc, .la-cta { display: none !important; }
}

/* ======================================================================
   Phase 6 — automatic formatting
   ====================================================================== */
/* Tables: scroll sideways on phones, clean header, striped rows */
.la-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--la-line); border-radius: var(--la-radius); background: #fff; }
.la-table:focus-visible { outline: 2px solid var(--la-teal); outline-offset: 2px; }
.la-content .la-table table { display: table; width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 15.5px; overflow: visible; }
.la-content .la-table th, .la-content .la-table td { border: 0; border-bottom: 1px solid var(--la-line); padding: 11px 14px; text-align: left; vertical-align: top; }
.la-content .la-table th { background: var(--la-navy); color: #fff; font: 600 15px/1.35 Kanit, system-ui, sans-serif; letter-spacing: .02em; }
.la-content .la-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.la-content .la-table tbody tr:last-child td { border-bottom: 0; }
.la-content .la-table td p, .la-content .la-table th p, .la-content .la-table td li { font-size: inherit; line-height: 1.55; margin: 0 0 .4em; }
.la-content .la-table td > :last-child { margin-bottom: 0; }

/* External links get a small "opens elsewhere" icon */
.la-content[data-la-fmt~="ext-icons"] a[href^="http"]:not([href*="legitassure.com"]):not(.la-btn):not(:has(img))::after {
  content: "\f35d"; font: 900 .62em "Font Awesome 6 Free"; margin-left: .3em; vertical-align: .18em; opacity: .65; text-decoration: none; display: inline-block;
}

/* "Copy link to this section" next to headings */
.la-anchor { display: inline-block; margin-left: .35em; font-size: .62em; color: var(--la-muted) !important; text-decoration: none !important; opacity: 0; transition: opacity .15s; vertical-align: middle; border: 0; background: none; cursor: pointer; padding: 0 .2em; }
.la-content h2:hover .la-anchor, .la-content h3:hover .la-anchor, .la-anchor:focus-visible { opacity: 1; }
.la-anchor.is-copied { opacity: 1; color: var(--la-ok) !important; }
@media (hover: none) { .la-anchor { opacity: .45; } }

/* Reading progress bar */
.la-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; background: transparent; }
.la-progress span { display: block; height: 100%; width: 0; background: var(--la-gold); transition: width .08s linear; }

/* Image zoom */
.la-content img.la-zoomable { cursor: zoom-in; }
.la-lightbox { position: fixed; inset: 0; z-index: 10001; background: rgba(10, 29, 53, .93); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; cursor: zoom-out; animation: la-fade .15s ease-out; }
.la-lightbox img { max-width: 100%; max-height: calc(100% - 40px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.la-lightbox p { color: #d9e1ec; font-size: 14px; margin: 0; text-align: center; max-width: 800px; }
.la-lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
@keyframes la-fade { from { opacity: 0; } }

/* Contents that stays in view (desktop sidebar) */
.la-toc-float { position: sticky; top: 110px; margin: 24px 0; background: #fff; border: 1px solid var(--la-line); border-radius: var(--la-radius); padding: 16px 16px 12px; max-height: calc(100vh - 140px); overflow-y: auto; }
.la-toc-float__title { font: 700 16px/1.3 var(--la-head); color: var(--la-navy); margin: 0 0 8px; }
.la-toc-float ol { list-style: none; margin: 0; padding: 0; }
.la-toc-float li { margin: 2px 0; }
.la-toc-float li.la-toc__sub { padding-left: 12px; }
.la-toc-float a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--la-line); color: var(--la-muted); font-size: 14px; line-height: 1.35; text-decoration: none; }
.la-toc-float a:hover { color: var(--la-navy); }
.la-toc-float a.is-current { color: var(--la-teal); border-left-color: var(--la-gold); font-weight: 600; }
@media (max-width: 991px) { .la-toc-float { display: none; } }
@media print { .la-progress, .la-toc-float, .la-anchor { display: none !important; } }

/* ======================================================================
   Phase 6.1 — mobile polish
   ====================================================================== */
/* Category chips (phones only) */
.la-chips { display: none; }
@media (max-width: 767.98px) {
  .la-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px 20px; padding: 2px 12px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .la-chips::-webkit-scrollbar { display: none; }
  .la-chips a { flex: 0 0 auto; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--la-line); background: #fff; color: var(--la-navy); font: 500 14px/1.2 Kanit, sans-serif; text-decoration: none; white-space: nowrap; }
  .la-chips a.is-active { background: var(--la-navy); border-color: var(--la-navy); color: #fff; }

  /* Sidebar on phones: form lives in the slide-up panel; recent posts and categories are replaced by
     "Keep reading" and the chips */
  .la-sidebar .la-side-recent, .la-sidebar .la-side-cats { display: none; }
  .la-sidebar.la-lead-moved { padding-bottom: 0 !important; }

  .la-hero { padding-bottom: 26px; }
  .la-post-title { font-size: 26px; }
  .la-hero__meta { font-size: 14px; }
}

/* Pinned "Get quick assistance" bar (phones) */
.la-leadbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--la-navy); box-shadow: 0 -6px 20px rgba(10, 29, 53, .25);
  transform: translateY(110%); transition: transform .25s ease; }
.la-leadbar.is-visible { transform: none; }
.la-leadbar__text { color: #fff; font: 500 14px/1.3 Kanit, sans-serif; }
.la-leadbar .la-btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.la-leadbar[hidden], .la-sheet[hidden] { display: none !important; }
body.la-has-leadbar { padding-bottom: 68px; }
@media (min-width: 768px) { .la-leadbar, .la-sheet { display: none !important; } body.la-has-leadbar { padding-bottom: 0; } }

/* Slide-up form panel */
.la-sheet { position: fixed; inset: 0; z-index: 9995; }
.la-sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 29, 53, .55); animation: la-fade .2s ease-out; }
.la-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff;
  border-radius: 16px 16px 0 0; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); animation: la-slide-up .25s ease-out; }
.la-sheet__panel::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: #cfd6e0; margin: -6px auto 10px; }
.la-sheet__close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--la-muted); cursor: pointer; }
.la-sheet .enquiry-form { border: 0 !important; padding: 0 !important; }
body.la-sheet-open { overflow: hidden; }
@keyframes la-slide-up { from { transform: translateY(100%); } }
