/* IgniSite base layer: the page frame (header, navigation, footer, containers, prose, document pages) for guest
   themes other than Luma. Our views share their structural class names with Luma, so on Luma this file is not loaded
   and Luma draws the frame. Colours come from the site tokens (--ip-*) set in ignipost-site.css and site-theme.css. */

[x-cloak] { display: none !important; }
.lm-site { margin: 0; background: var(--ip-bg, #fff); color: var(--ip-text, #0e1222); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.lm-site) *, :where(.lm-site) *::before, :where(.lm-site) *::after { box-sizing: border-box; }
:where(.lm-site) img { max-width: 100%; }
/* Resets carry no specificity (:where), so every component class still wins over them. */
:where(.lm-site) a { color: inherit; text-decoration: none; }
:where(.lm-site) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.lm-skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 10px; background: var(--ip-surface, #fff); color: var(--ip-text, #0e1222); box-shadow: var(--ip-shadow); }
.lm-skip-link:focus { top: 12px; }
:where(.lm-site) :focus-visible { outline: 2px solid var(--ip-accent, var(--theme-accent)); outline-offset: 3px; border-radius: 6px; }

/* Frame */
.lm-container, .lm-page-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.lm-main { min-height: 60vh; }
.lm-section { padding: clamp(64px, 9vw, 112px) 0; }
.lm-subpage { padding-bottom: clamp(48px, 7vw, 88px); }
.theme-logo-light { display: none !important; }
html.dark .theme-logo-dark, html[data-theme-resolved='dark'] .theme-logo-dark { display: none !important; }
html.dark .theme-logo-light, html[data-theme-resolved='dark'] .theme-logo-light { display: block !important; }

/* Header */
.lm-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--ip-bg, #fff) 86%, transparent); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.lm-header.is-scrolled { border-bottom-color: var(--ip-line); box-shadow: 0 14px 34px -30px rgba(10, 20, 16, .45); }
.lm-header-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); align-items: center; gap: 24px; min-height: 70px; transition: min-height .25s ease; }
.lm-header.is-scrolled .lm-header-row { min-height: 62px; }
.lm-brand { display: inline-flex; align-items: center; min-width: 0; width: max-content; }
.lm-brand img { display: block; width: auto; max-width: 190px; height: 34px; object-fit: contain; }
.lm-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.lm-nav-link { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 10px; color: var(--ip-muted); font-size: 14px; font-weight: 600; transition: color .2s ease, background-color .2s ease; }
.lm-nav-link:hover { color: var(--ip-text); background: var(--ip-soft); }
.lm-nav-link.is-active { color: var(--ip-text); }
.lm-nav-link.is-active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--ip-accent, var(--theme-accent)); }
.lm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lm-login { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border-radius: 11px; color: var(--ip-muted); font-size: 14px; font-weight: 600; }
.lm-login:hover { color: var(--ip-text); background: var(--ip-soft); }
.lm-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.lm-cta:hover { transform: translateY(-1px); }
.lm-icon-button, .lm-language-button, .lm-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 9px; border: 1px solid var(--ip-line) !important; border-radius: 11px; background: var(--ip-surface); color: var(--ip-muted); transition: border-color .2s ease, color .2s ease; }
.lm-icon-button:hover, .lm-language-button:hover, .lm-mobile-toggle:hover { border-color: color-mix(in srgb, var(--ip-text) 24%, var(--ip-line)) !important; color: var(--ip-text); }
.lm-language { position: relative; }
.lm-language-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 90; display: grid; gap: 2px; min-width: 190px; max-height: 320px; overflow: auto; padding: 6px; border: 1px solid var(--ip-line); border-radius: 14px; background: var(--ip-surface); box-shadow: var(--ip-shadow); }
.lm-language-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--ip-text); }
.lm-language-option:hover, .lm-language-option.is-active { background: var(--ip-soft); }
.lm-language-name { flex: 1; }
.lm-mobile-toggle { display: none; font-size: 18px; }
.lm-mobile-panel { display: none; border-top: 1px solid var(--ip-line); padding: 12px 0 18px; }
.lm-mobile-nav { display: grid; gap: 2px; }
.lm-mobile-nav .lm-nav-link { justify-content: space-between; min-height: 46px; font-size: 15px; }
.lm-mobile-nav .lm-nav-link.is-active::after { display: none; }
.lm-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lm-mobile-actions .lm-login, .lm-mobile-actions .lm-cta { min-height: 46px; }
.lm-mobile-actions .lm-login { border: 1px solid var(--ip-line); }
.lm-mobile-tools { display: flex; gap: 8px; margin-top: 12px; }
.lm-mobile-tools .lm-language-button { padding: 0 14px; }
@media (max-width: 1023px) {
    .lm-header-row { grid-template-columns: 1fr auto; min-height: 64px; }
    .lm-nav, .lm-actions { display: none; }
    .lm-mobile-toggle { display: inline-flex; }
    .lm-mobile-panel { display: block; }
    .lm-brand img { max-width: 160px; height: 30px; }
}
@media (max-width: 640px) { .lm-container, .lm-page-shell { width: min(100% - 28px, 1180px); } }

/* Footer */
.lm-footer { position: relative; overflow: hidden; border-top: 1px solid var(--ip-line); background: var(--ip-surface); }
.lm-footer-bottom { border-top: 1px solid var(--ip-line); }
.lm-footer-bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 26px; color: var(--ip-muted); font-size: 13px; line-height: 1.6; }

/* Cards and small parts */
.lm-card { border: 1px solid var(--ip-line); border-radius: var(--ip-radius, 18px); background: var(--ip-surface); box-shadow: var(--ip-shadow); }
.lm-card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lm-card-hover:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ip-accent, var(--theme-accent)) 30%, var(--ip-line)); }
.lm-icon-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ip-soft); color: var(--ip-accent, var(--theme-accent)); font-size: 18px; }
.lm-empty { padding: 48px 24px; border: 1px dashed var(--ip-line); border-radius: var(--ip-radius, 18px); text-align: center; color: var(--ip-muted); }
.lm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.lm-pagination-item { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--ip-line); border-radius: 11px; background: var(--ip-surface); color: var(--ip-muted); font-weight: 600; font-size: 14px; }
.lm-pagination-item:hover, .lm-pagination-item.is-active, .lm-pagination-item[aria-current] { border-color: var(--ip-accent, var(--theme-accent)); color: var(--ip-text); }
.lm-social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lm-social-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--ip-line); border-radius: 14px; background: var(--ip-surface); }

/* Long-form text */
.lm-prose { color: var(--ip-muted); font-size: 16px; line-height: 1.8; }
.lm-prose :is(h1, h2, h3, h4) { color: var(--ip-text); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.lm-prose h2 { margin: 2.2em 0 .7em; font-size: clamp(22px, 2.4vw, 28px); }
.lm-prose h3 { margin: 1.8em 0 .5em; font-size: clamp(18px, 1.9vw, 21px); }
.lm-prose p, .lm-prose ul, .lm-prose ol, .lm-prose table, .lm-prose blockquote { margin: 0 0 1.15em; }
.lm-prose ul, .lm-prose ol { padding-left: 1.3em; }
.lm-prose ul { list-style: disc; }
.lm-prose ol { list-style: decimal; }
.lm-prose li { margin: .35em 0; }
.lm-prose li::marker { color: var(--ip-accent, var(--theme-accent)); }
.lm-prose strong { color: var(--ip-text); }
.lm-prose a { color: var(--ip-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ip-accent, var(--theme-accent)); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lm-prose blockquote { padding: 14px 18px; border-left: 3px solid var(--ip-accent, var(--theme-accent)); border-radius: 0 12px 12px 0; background: var(--ip-soft); color: var(--ip-text); }
.lm-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.lm-prose th, .lm-prose td { padding: 10px 12px; border-bottom: 1px solid var(--ip-line); text-align: left; vertical-align: top; }
.lm-prose th { color: var(--ip-text); font-weight: 700; background: var(--ip-soft); }

/* Legal and company documents */
.lm-document-page { padding-top: clamp(24px, 4vw, 40px); }
.lm-document-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.lm-document-nav { position: sticky; top: 96px; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--ip-line); border-radius: 16px; background: var(--ip-surface); }
.lm-document-nav-label { margin: 2px 8px 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ip-muted); }
.lm-document-tab { display: block; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ip-muted); }
.lm-document-tab:hover, .lm-document-tab.is-active, .lm-document-tab[aria-current] { background: var(--ip-soft); color: var(--ip-text); }
.lm-document-card { padding: clamp(22px, 4vw, 44px); border: 1px solid var(--ip-line); border-radius: var(--ip-radius, 18px); background: var(--ip-surface); box-shadow: var(--ip-shadow); }
.lm-document-body { min-width: 0; }
@media (max-width: 1023px) { .lm-document-layout { grid-template-columns: 1fr; } .lm-document-nav { position: static; } }

/* Motion: content rises in once as it scrolls into view; nothing moves for people who ask for less motion. */
.lm-motion-ready .lm-page-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .72, .2, 1), transform .7s cubic-bezier(.2, .72, .2, 1); transition-delay: var(--lm-delay, 0ms); }
.lm-motion-ready .lm-page-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .lm-motion-ready .lm-page-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .lm-header, .lm-header-row, .lm-cta, .lm-card-hover { transition: none !important; }
}
