/* Switching, editorial policy, website policies, site directory and the 404 page (no board; built from the
   PM-1/4/6 patterns). Every component comes from site.css; this file holds page spacing plus the local pieces,
   all prefixed .lg-: device extras, the PM-4 step tuning (mirrors .svc-steps), the PM-6 switching row (mirrors
   .cmp-switch), the records split, principle cards, the policy reading layout and the directory cards.
   Desktop-only geometry sits inside min-width: 1100px. */

/* ---------------------------------------------------------------- hero and device extras */
.lg-hero .page-hero-intro { max-width: 30em; }
@media (min-width: 1100px) {
  .lg-hero .page-hero-inner { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); }
}
.lg-dash-pill { padding: .35em .75em; border-radius: var(--r-pill); background: #dff6f1; color: #0b7a4e; font-size: .66em; font-weight: 800; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.lg-dash-next { display: grid; align-content: center; justify-items: start; gap: .4em; padding: 1.2em 1.5em; }
.lg-dash-next small { color: #303a52; font-size: 1.15em; font-weight: 500; line-height: 1.2; }
.lg-dash-next b { color: var(--ink); font-size: 2.1em; font-weight: var(--fw-title); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.lg-dash-next span { padding: .25em .65em; border-radius: var(--r-pill); background: #cdf6e6; color: #1b7c48; font-size: 1em; font-weight: 700; line-height: 1.2; }

/* ---------------------------------------------------------------- shared section rhythm
   Sections take padding-block: var(--sec-y) from .sec, .how, .faq-split and .cta-band-section, so white sections sit
   2 x --sec-y apart. A block that paints edge to edge (the navy hero, the trust bar, the feature band, the footer)
   only gets the neighbouring section's --sec-y, so that side grows to 1.75 x --sec-y: the section after the hero or
   trust bar pads its top, the band carries .75 x --sec-y of margin, and a plain last section pads its bottom. */
.lg-hero + .sec, .lg-hero + .how, .trust-bar + .lg-steps { padding-top: max(60px, calc(var(--sec-y) * 1.75)); }
.lg-directory, .lg-policy + .lg-more, .lg-lost:last-child { padding-bottom: calc(var(--sec-y) * 1.75); }
.lg-features.feature-strip--band { margin-block: calc(var(--sec-y) * .75); padding-block: max(22px, calc(var(--sec-y) * .5)); }
.lg-faq .faq-q { min-height: 46px; padding-block: 11px; }
.lg-faq .faq-a { padding-top: 0; }
@media (min-width: 1100px) {
  .lg-how .how-panel .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  .lg-how .how-arrow { top: 8px; }
}
.lg-more .section-head, .lg-lost .section-head, .lg-principles .section-head { margin-bottom: var(--sec-head-gap); }
.lg-link-grid { gap: 20px 22px; }

/* ---------------------------------------------------------------- PM-4 steps (same tuning as .svc-steps) */
.lg-steps .section-head { margin-bottom: var(--sec-head-gap); }
.lg-steps .section-head h2 { font-size: 30px; }
.lg-steps .how-icon { width: 74px; height: 74px; background: #e9f9f5; color: #0b9a5c; }
.lg-steps .how-icon .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.lg-steps .how-num { top: -4px; right: -6px; width: 24px; height: 24px; background: #b3f3e4; font-size: 12.5px; }
.lg-steps .how-step h3 { font-size: 18.5px; }
.lg-steps .how-step p { margin-top: 4px; font-size: 14px; line-height: 1.5; }
@media (min-width: 1100px) {
  .lg-steps .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; padding: 0 0 0 25px; }
  .lg-steps .how-num { top: 0; right: -22px; border: 0; }
  .lg-steps .how-step { gap: 38px; }
  .lg-steps .how-step-copy { max-width: 195px; padding-top: 8px; }
  .lg-steps .how-step + .how-step .how-arrow { left: -62px; top: 26px; }
}
@media (min-width: 1240px) {
  /* the board's 419 / 402 / 334 px split of the 1180 px container, kept as a ratio so the steps spread with it */
  .lg-steps .how-steps { grid-template-columns: 419fr 402fr 334fr; gap: 0; }
  .lg-steps .how-step { padding-right: 30px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .lg-steps .how-step { flex-direction: column; gap: 14px; }
  .lg-steps .how-step + .how-step .how-arrow { top: 28px; }
}

/* ---------------------------------------------------------------- PM-6 switching row (same values as .cmp-switch) */
.lg-switch-inner { display: flex; align-items: center; gap: 24px; padding: max(22px, calc(var(--sec-y) * .5)) 30px; border: 1px solid var(--line-card); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.lg-switch h2 { flex: none; width: 400px; font-size: clamp(25px, 1.4vw + 14.6px, 32.5px); line-height: 1.15; }
.lg-switch-list { display: grid; flex: 1; grid-template-columns: 228fr 271fr 179fr; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lg-switch-list li { display: flex; align-items: center; gap: 15px; min-width: 0; }
.lg-switch-list li + li { padding-left: 29px; border-left: 1px solid #d3dae2; }
.lg-switch-list .icon { flex: none; width: 26px; height: 26px; color: #04c24b; }
.lg-switch-list p { display: grid; gap: 3px; min-width: 0; }
.lg-switch-list b { color: var(--ink); font-size: 14.8px; font-weight: var(--fw-title); line-height: 1.25; }
.lg-switch-list span { color: var(--body); font-size: 13.5px; font-weight: 500; line-height: 1.3; }

/* ---------------------------------------------------------------- records split */
.lg-records-inner { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: center; }
.lg-records-media { overflow: hidden; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.lg-records-img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lg-records-copy h2 { font-size: var(--fs-h2); line-height: 1.15; }
.lg-records-copy > p { margin-top: 14px; color: var(--body); font-size: 16.5px; line-height: 1.6; }
.lg-records-list { margin-top: 24px; gap: 16px; }

/* ---------------------------------------------------------------- editorial principles */
.lg-principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.lg-principle { min-width: 0; padding: 26px 26px 24px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); }
.lg-principle-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 14px; background: #dcf9f1; color: #0d8a57; }
.lg-principle-icon .icon { width: 32px; height: 32px; stroke-width: 1.7; }
.lg-principle h3 { font-size: 20px; line-height: 1.25; }
.lg-principle p { margin-top: 8px; color: var(--body); font-size: 15.5px; line-height: 1.6; }
.lg-principle a, .lg-policy-sec a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- policy reading layout */
.lg-policy-inner { display: grid; grid-template-columns: 330px minmax(0, 760px); gap: 56px; align-items: start; }
.lg-glance { padding: 24px 24px 20px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f2fbf8 0%, #e9f8f4 100%); }
.lg-glance h2 { font-size: 20px; line-height: 1.25; }
.lg-glance-list { margin-top: 14px; gap: 12px; }
.lg-glance-list li { font-size: 15.5px; }
.lg-updated { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #c9e4dc; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.lg-updated .icon { width: 16px; height: 16px; color: var(--icon-navy); }
.lg-policy-body { display: grid; gap: 0; }
.lg-policy-sec { padding: 26px 0 28px; border-bottom: 1px solid var(--line-2); }
.lg-policy-sec:first-child { padding-top: 0; }
.lg-policy-sec:last-child { padding-bottom: 0; border-bottom: 0; }
.lg-policy-sec h2 { font-size: 22px; line-height: 1.25; }
.lg-policy-sec p { margin-top: 10px; color: var(--body); font-size: 16.5px; line-height: 1.7; }
@media (min-width: 1100px) {
  .lg-glance { position: sticky; top: 20px; }
}

/* ---------------------------------------------------------------- site directory */
.lg-dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px; align-items: start; }
.lg-dir-group { min-width: 0; padding: 22px 22px 16px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); }
.lg-dir-group.is-wide { grid-column: span 2; }
.lg-dir-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.lg-dir-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--mint-100); color: var(--green-ui); }
.lg-dir-icon .icon { width: 25px; height: 25px; stroke-width: 1.7; }
.lg-dir-head h2 { flex: 1; min-width: 0; font-size: 19px; line-height: 1.25; }
.lg-dir-count { flex: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--white); color: var(--muted); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.lg-dir-links { display: grid; gap: 0 26px; margin: 8px 0 0; padding: 0; list-style: none; }
.lg-dir-group.is-wide .lg-dir-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-dir-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.35; }
.lg-dir-links li:last-child a { border-bottom: 0; }
.lg-dir-group.is-wide .lg-dir-links li:nth-last-child(2):nth-child(odd) a { border-bottom: 0; }
.lg-dir-links a .icon { flex: none; width: 16px; height: 16px; color: #8a97ad; transition: transform .15s, color .15s; }
.lg-dir-links a:hover { color: var(--blue); }
.lg-dir-links a:hover .icon { color: var(--blue); transform: translateX(2px); }

/* ---------------------------------------------------------------- narrow desktop and tablet: the switching row stacks */
@media (max-width: 1239px) {
  .lg-switch-inner { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 24px; }
  .lg-switch h2 { width: auto; }
  .lg-switch-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-switch-list li + li { padding-left: 20px; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1099px) {
  .lg-how .how-arrow { display: none; }
  .lg-records-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .lg-principle-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lg-principle { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 20px; padding: 22px; }
  .lg-principle-icon { grid-row: span 2; margin: 0; }
  .lg-principle p { margin-top: 4px; }
  .lg-policy-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lg-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .lg-dir-group.is-wide { grid-column: auto; }
  .lg-dir-group.is-wide .lg-dir-links { grid-template-columns: minmax(0, 1fr); }
  .lg-dir-group.is-wide .lg-dir-links li:nth-last-child(2):nth-child(odd) a { border-bottom: 1px solid var(--line-2); }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 767px) {
  .lg-steps .section-head h2 { font-size: 26px; }
  .lg-switch-inner { padding: 20px 18px; }
  .lg-switch-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lg-switch-list li + li { padding-left: 0; border-left: 0; }
  .lg-records-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .lg-principle { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .lg-principle-icon { grid-row: auto; width: 52px; height: 52px; margin-bottom: 14px; }
  .lg-glance { padding: 20px 18px 16px; }
  .lg-policy-sec h2 { font-size: 20px; }
  .lg-policy-sec p { font-size: 16px; }
  .lg-dir-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lg-dir-group { padding: 18px 16px 12px; }
}
