/* Standalone market map: a practical guide around the live wayfinder. */
.lmg { --lmg-green: #204e39; --lmg-green-soft: #eaf4ec; --lmg-blue: #e5f5fd; --lmg-purple: #f0e5fc; --lmg-yellow: #fff4d2; --lmg-line: var(--lance-card-line); }
.lmg { padding-top: var(--lance-header-h); }
.lmg .lance-container { max-width: 1280px; width: calc(100% - 80px); }
.lmg h1, .lmg h2, .lmg h3, .lmg p { margin: 0; }
.lmg h1, .lmg h2 { font-family: var(--lance-serif); letter-spacing: -.025em; }
.lmg h2 { font-size: 28px; line-height: 1.3; font-weight: 700; }
.lmg h3 { font-family: var(--lance-sans); }
.lmg a { text-underline-offset: 3px; }
.lmg [id] { scroll-margin-top: calc(var(--lance-header-h) + 64px); }
.lmg .lance-icon { width: 18px; height: 18px; flex-shrink: 0; }
.lmg-hero { padding: 24px 0 16px; text-align: center; }
.lmg-hero .lance-container { position: relative; }
.lmg-breadcrumb { display: flex; justify-content: flex-start; align-items: center; gap: 10px; font-size: 13px; color: var(--lance-muted); margin-bottom: 18px; text-align: left; }
.lmg-breadcrumb a { text-decoration: none; color: inherit; }
.lmg-hero h1 { font-size: clamp(30px, 3.3vw, 43px); line-height: 1.3; }
.lmg-hero-lead { margin-top: 7px !important; font-size: 16px; color: var(--lance-muted); }
.lmg-hero-sub { margin-top: 12px !important; font-size: 13px; color: var(--lance-muted); }
.lmg-hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.lmg-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 9px 26px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background .2s, box-shadow .2s; }
.lmg-button-green { color: #fff; background: linear-gradient(110deg, #204a37, #306047, #204a37); }
.lmg-button-green:hover { color: #fff; background: #173d2c; box-shadow: 0 3px 12px #204e3924; }
.lmg-button-outline { color: var(--lance-text); border-color: var(--lance-muted); background: transparent; }
.lmg-button-outline:hover { background: var(--lance-card); }
.lmg-hero-caption { color: var(--lance-muted); font-size: 11px; margin-top: 7px !important; }
.lmg-hero-art { position: absolute; right: 0; top: 23px; width: 170px; color: var(--lance-muted); pointer-events: none; }
.lmg-hero-art img { width: 190px; height: 82px; max-width: none; margin-left: -10px; opacity: .3; }
.lmg-hero-art span { display: block; font-size: 10px; letter-spacing: .16em; line-height: 1.7; }
.lmg-hero-art i { display: block; height: 1px; width: 28px; margin: 8px auto; background: var(--lance-red); }
.lmg-tabs { display: flex; justify-content: center; gap: 46px; border-block: 1px solid var(--lmg-line); background: var(--lance-card); }
.lmg-tabs a { padding: 12px 0 10px; color: var(--lance-text); font-size: 13px; text-decoration: none; border-bottom: 2px solid transparent; }
.lmg-tabs a[aria-current] { color: var(--lmg-green); border-bottom-color: var(--lmg-green); font-weight: 700; }
.lmg-content { padding-top: 21px; padding-bottom: 18px; }
.lmg-explore > h2 { font-size: 32px; }
.lmg-lead { color: var(--lance-muted); font-size: 14px; margin: 2px 0 10px !important; }
/* Use the shared wayfinder layout and controls from the market guide. */
.lmg-explore > .ylw { scroll-margin-top: calc(var(--lance-header-h) + 74px); }
.lmg-pdf { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; margin-top: 23px; }
.lmg-preview, .lmg-download { background: var(--lmg-blue); padding: 22px 26px; border-radius: 10px; }
.lmg-preview > p { font-size: 12px; color: var(--lance-muted); margin: 3px 0 18px; }
.lmg-preview-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lmg-preview-pages a { color: var(--lance-text); text-decoration: none; font-size: 12px; min-width: 0; }
.lmg-preview-pages img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; background: white; border-radius: 3px; border: 1px solid #dbe7ed; transition: box-shadow .2s; }
.lmg-preview-pages a:hover img { box-shadow: 0 4px 18px #204e3930; }
.lmg-preview-pages span { display: block; margin-top: 8px; }
.lmg-download { padding: 24px 20px 14px; }
.lmg-download-title { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.lmg-download-title > .lance-icon { width: 36px; height: 36px; color: var(--lmg-green); }
.lmg-download-title h3 { font-size: 14px; font-weight: 700; }
.lmg-download-title p { font-size: 11px; color: var(--lance-muted); }
.lmg-download .lmg-button { width: 100%; min-height: 36px; padding: 7px 14px; margin-bottom: 8px; }
.lmg-free { text-align: center; font-size: 11px; color: var(--lance-muted); margin: 3px 0 12px !important; }
.lmg-notice { display: flex; gap: 11px; padding: 13px 14px; background: var(--lmg-yellow); border-radius: 8px; font-size: 11px; color: #704714; line-height: 1.6; }
.lmg-notice > span { background: #f6ab00; color: #fff; width: 19px; height: 19px; flex-shrink: 0; text-align: center; border-radius: 50%; font-weight: 700; }
.lmg-lower { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 30px; margin: 24px 6px 0; }
.lmg-lower h2 { font-size: 25px; }
.lmg-table-wrap { overflow: auto; border: 1px solid var(--lmg-line); border-radius: 7px; margin-top: 9px; }
.lmg-table { width: 100%; border-collapse: collapse; background: var(--lance-card); font-size: 12px; line-height: 1.6; }
.lmg-table th, .lmg-table td { padding: 13px 15px; text-align: left; border-right: 1px solid var(--lmg-line); border-bottom: 1px solid var(--lmg-line); }
.lmg-table thead { background: color-mix(in srgb, var(--lance-muted) 5%, var(--lance-card)); }
.lmg-table thead th { font-weight: 500; }
.lmg-table th[scope="row"] { font-weight: 700; white-space: nowrap; }
.lmg-table td:last-child, .lmg-table th:last-child { border-right: 0; }
.lmg-table tr:last-child td, .lmg-table tr:last-child th { border-bottom: 0; }
.lmg-table a { color: var(--lmg-green); white-space: nowrap; }
.lmg-table a span { display: inline-block; margin-left: 6px; }
.lmg-directory-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; }
.lmg-directory-foot p { color: var(--lance-muted); font-size: 10px; }
.lmg-directory-foot a { color: var(--lmg-green); white-space: nowrap; font-size: 12px; font-weight: 700; }
.lmg-tip { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-radius: 8px; margin-top: 8px; text-decoration: none; color: var(--lance-text); }
.lmg-tip-purple { background: var(--lmg-purple); }
.lmg-tip-yellow { background: var(--lmg-yellow); }
.lmg-tip-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; background: #e6d1f8; color: #893b9d; }
.lmg-tip-yellow .lmg-tip-icon { color: #a87612; background: #ffe8a8; }
.lmg-tip-icon .lance-icon { width: 27px; height: 27px; }
.lmg-tip h3 { font-size: 14px; font-weight: 700; }
.lmg-tip p { color: var(--lance-muted); font-size: 12px; line-height: 1.5; }
.lmg-faq { margin-top: 14px; }
.lmg-faq h2 { margin-bottom: 5px; font-size: 22px; }
.lmg-faq details { border: 1px solid var(--lmg-line); background: var(--lance-card); padding: 9px 16px; }
.lmg-faq details + details { border-top: 0; }
.lmg-faq details:first-of-type { border-radius: 7px 7px 0 0; }
.lmg-faq details:last-of-type { border-radius: 0 0 7px 7px; }
.lmg-faq summary { font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.lmg-faq summary::-webkit-details-marker { display: none; }
.lmg-faq summary::after { content: '+'; color: var(--lance-muted); }
.lmg-faq details[open] summary::after { content: '−'; }
.lmg-faq p { color: var(--lance-muted); font-size: 12px; line-height: 1.5; margin-top: 3px; }
.lmg-cta { display: flex; align-items: center; gap: 28px; padding: 25px 42px; margin: 18px 6px 0; background: var(--lmg-green-soft); border-radius: 11px; }
.lmg-cta > .lance-icon { width: 54px; height: 54px; color: var(--lmg-green); }
.lmg-cta > div { flex: 1; }
.lmg-cta h2 { font-size: 24px; color: var(--lmg-green); }
.lmg-cta p { color: var(--lance-muted); font-size: 14px; margin-top: 5px; }
.lmg-cta .lance-btn { min-height: 44px; padding: 10px 26px; gap: 14px; font-size: 14px; }
.lmg-guide-link { color: var(--lmg-green); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lmg-guide-link span { margin-left: 6px; }
:root[data-theme="dark"] .lmg { --lmg-green: #aad2bb; --lmg-green-soft: #203429; --lmg-blue: #1e2e36; --lmg-purple: #30263b; --lmg-yellow: #39321e; }
:root[data-theme="dark"] .lmg-notice { color: #ebcd8f; }
@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) .lmg { --lmg-green: #aad2bb; --lmg-green-soft: #203429; --lmg-blue: #1e2e36; --lmg-purple: #30263b; --lmg-yellow: #39321e; }
 :root:not([data-theme="light"]) .lmg-notice { color: #ebcd8f; }
}
@media (max-width: 1200px) {
 .lmg-hero-art { display: none; }
 .lmg-table th, .lmg-table td { padding: 12px; }
 .lmg-lower { gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
 .lmg-cta { gap: 22px; padding: 25px; }
 .lmg-cta h2 { font-size: 22px; }
}
@media (max-width: 1000px) {
 .lmg-pdf { grid-template-columns: minmax(0, 1fr) 280px; }
 .lmg-preview { padding: 20px; }
 .lmg-lower { grid-template-columns: 1fr; }
 .lmg-practical { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
 .lmg-faq { margin-top: 0; }
 .lmg-cta { flex-wrap: wrap; }
 .lmg-cta > div { flex-basis: calc(100% - 90px); }
 .lmg-cta .lance-btn { margin-left: 76px; }
}
@media (max-width: 820px) {
 .lmg .lance-container { width: calc(100% - 40px); }
 .lmg-hero { padding-top: 22px; }
 .lmg-hero-sub { line-height: 1.6; }
 .lmg-hero-lead { font-size: 14px; }
 .lmg-hero h1 { font-size: 29px; }
 .lmg-hero-actions { flex-wrap: wrap; }
 .lmg-tabs { justify-content: flex-start; gap: 25px; overflow-x: auto; padding-inline: 20px; }
 .lmg-tabs a { white-space: nowrap; font-size: 12px; }
 .lmg h2, .lmg-explore > h2 { font-size: 25px; }
 .lmg-pdf { grid-template-columns: 1fr; }
 .lmg-preview, .lmg-download { padding: 20px; }
 .lmg-preview-pages { grid-template-columns: 1fr; gap: 18px; }
 .lmg-download-title { justify-content: center; }
 .lmg-table { min-width: 660px; }
 .lmg-practical { grid-template-columns: 1fr; gap: 20px; }
 .lmg-lower { margin-inline: 0; }
 .lmg-directory-foot { flex-wrap: wrap; }
 .lmg-cta { margin-inline: 0; padding: 22px; gap: 16px; }
 .lmg-cta > .lance-icon { width: 40px; height: 40px; }
 .lmg-cta > div { flex-basis: calc(100% - 56px); }
 .lmg-cta h2 { font-size: 20px; }
 .lmg-cta .lance-btn { margin-left: 0; }
 .lmg-cta p { font-size: 12px; }
}
