/* ============================================================
   theme.css — DESIGN LAYER for builder sections (see theme.js).
   Uses the tokens from styles.css. A redesign may rewrite this
   freely; it only has to style the class names theme.js emits.
   ============================================================ */

/* ---------- look options ---------- */
.lc .wrap.lc-w-narrow { max-width: 780px; }
.lc .wrap.lc-w-wide { max-width: 1440px; }
.lc .wrap.lc-w-full { max-width: none; }

.lc.lc-sp-compact { --section-pad: clamp(2.5rem, 5vw, 4rem); }
.lc.lc-sp-roomy { --section-pad: clamp(6rem, 13vw, 12rem); }
.page-hero.lc-sp-compact { padding-top: clamp(2rem, 4vw, 3rem); }
.page-hero.lc-sp-roomy { padding-top: clamp(5rem, 11vw, 9rem); }
.page-hero.lc-bg-tint, .page-hero.lc-bg-dark { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.page-hero.lc-bg-tint { background: var(--mist); }

.lc-dark, .page-hero.lc-bg-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.lc-dark .eyebrow, .lc-dark h1, .lc-dark h2, .lc-dark h3, .lc-dark h4, .lc-dark .card-h { color: var(--white); }
.lc-dark .eyebrow::before { background: var(--white); }
.lc-dark .lede, .lc-dark .sh-side, .lc-dark .lc-rich, .lc-dark figcaption { color: #cfdae6; }
.lc-dark h1 em, .lc-dark h2 em { color: #a9c3e0; }
.lc-dark a:not(.btn) { color: #dbe6f2; }
.lc-dark .card { color: var(--ink); }
.lc-dark .card .lc-rich { color: var(--steel); }
/* site dark mode swaps the tokens, so a "dark" section turns light: use token colors there */
[data-theme="dark"] .lc-dark .lede, [data-theme="dark"] .lc-dark .sh-side,
[data-theme="dark"] .lc-dark .lc-rich, [data-theme="dark"] .lc-dark figcaption { color: var(--steel); }
[data-theme="dark"] .lc-dark h1 em, [data-theme="dark"] .lc-dark h2 em { color: var(--accent); }
[data-theme="dark"] .lc-dark a:not(.btn) { color: var(--steel); }

.lc.lc-al-center .wrap { text-align: center; }
.lc.lc-al-center .eyebrow { justify-content: center; }
.lc.lc-al-center .lede, .lc.lc-al-center .lc-rich { margin-left: auto; margin-right: auto; }
.lc.lc-al-center .section-head { display: block; }
.lc.lc-al-center .cta-row, .lc.lc-al-center .lc-buttons, .lc.lc-al-center .sec-links { justify-content: center; }

/* ---------- formatted text ---------- */
.lc-rich { color: var(--steel); line-height: 1.7; max-width: var(--measure); }
.lc-rich > * + * { margin-top: .9rem; }
.lc-rich h3, .lc-rich h4 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.6rem; }
.lc-rich h3 { font-size: 1.35rem; font-weight: 800; }
.lc-rich h4 { font-size: 1.1rem; font-weight: 700; }
.lc-rich strong, .lc-rich b { color: var(--ink); }
.lc-rich ul, .lc-rich ol { padding-left: 1.3rem; }
.lc-rich li + li { margin-top: .35rem; }
.lc-rich a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lc-rich blockquote { border-left: 3px solid var(--ink); padding-left: 1.1rem; color: var(--ink); font-style: italic; }
.lc-rich code { font-family: var(--mono); font-size: .85em; background: var(--mist); padding: .1rem .35rem; border-radius: 4px; }
.lc-size-S { font-size: .92rem; }
.lc-size-M { font-size: 1.02rem; }
.lc-size-L { font-size: 1.22rem; line-height: 1.6; }
.card-hook.lc-rich { max-width: none; }
.section-head + .lc-rich, .section-head + .lc-buttons { margin-top: 0; }
.lc-buttons { margin-top: 1.6rem; }

/* ---------- picture + text ---------- */
.lc-mt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lc-mt-media { order: 2; margin: 0; }
.lc-mt-left .lc-mt-media { order: 0; }
.lc-mt-media img { width: 100%; display: block; border-radius: 14px; }
.lc-mt-text .eyebrow { margin-bottom: 1rem; }
.lc-h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.2rem; }

/* ---------- grids ---------- */
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc-gallery { display: grid; gap: 1.2rem; }
.lc-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lc-gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lc-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc-gallery figure { margin: 0; }
.lc-blocks > .lc-embed { margin-top: 1.4rem; }
.lc-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 12px; }
.lc-gallery figcaption, .lc-img figcaption, .lc-embed figcaption { font-size: .85rem; color: var(--steel); margin-top: .55rem; }

/* ---------- embeds ---------- */
.lc-embed { margin: 1.2rem 0 0; }
.lc-embed-box { aspect-ratio: 16 / 9; }
.lc-embed-box.tall { aspect-ratio: 4 / 3; }
.lc-embed-box.short { aspect-ratio: auto; height: 152px; }
.lc-embed-box iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; background: var(--mist); }

/* ---------- free blocks ---------- */
.lc-blocks > * + * { margin-top: 1.4rem; }
.lc-blocks > .lc-rich, .lc-blocks > .lc-quote, .lc-blocks > .lc-callout { max-width: var(--measure); }
.lc.lc-al-center .lc-blocks > * { margin-left: auto; margin-right: auto; }
.lc-heading { font-family: var(--display); color: var(--ink); letter-spacing: -0.03em; line-height: 1.08; }
.lc-heading-large { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.lc-heading-medium { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; }
.lc-heading-small { font-size: 1.15rem; font-weight: 700; }
.lc-img { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.lc-img img { width: 100%; display: block; border-radius: 12px; }
.lc-img-small { max-width: 360px; }
.lc-img-medium { max-width: 680px; }
.lc-quote { border-left: 3px solid var(--ink); padding: .2rem 0 .2rem 1.3rem; }
.lc-quote p { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.lc-quote cite { display: block; margin-top: .6rem; font-style: normal; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.lc-callout { background: var(--mist); border: 1px solid var(--hairline); border-radius: 12px; padding: 1.1rem 1.3rem; color: var(--ink); }
.lc-dark .lc-callout { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--white); }
.lc-file { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--hairline); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--white); max-width: 620px; }
.lc-file:hover { border-color: var(--ink); }
.lc-file-kind { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; background: var(--mist); border-radius: 6px; padding: .45rem .55rem; flex: none; }
.lc-file-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lc-file-label { font-weight: 700; overflow-wrap: anywhere; }
.lc-file-note { font-size: .88rem; color: var(--steel); }
.lc-file-arrow { font-weight: 700; color: var(--steel); }
.lc-divider { border: 0; border-top: 1px solid var(--hairline); }
.lc-spacer-small { height: 1rem; }
.lc-spacer-medium { height: 2.5rem; }
.lc-spacer-large { height: 5rem; }

@media (max-width: 900px) {
  .lc-mt { grid-template-columns: 1fr; }
  .lc-mt-media, .lc-mt-left .lc-mt-media { order: 0; }
  .cols-4, .lc-gallery.cols-3, .lc-gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cols-4, .lc-gallery.cols-2, .lc-gallery.cols-3, .lc-gallery.cols-4 { grid-template-columns: 1fr; }
}
