/* Living Websites content components carried into the Gen-2 chrome.
   Adapted from the read-only Gen-1 guide and insight skins; palette and type
   use the current brand tokens so ported bodies retain their component shape. */

/* Breadcrumb lists must stay horizontal and unnumbered in every page family. */
nav[aria-label*="breadcrumb" i] ol,
.crumbs ol,
.breadcrumb ol,
ol.breadcrumb,
ol[class*="crumb"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav[aria-label*="breadcrumb" i] li + li::before,
.crumbs li + li::before,
.breadcrumb li + li::before,
ol.breadcrumb li + li::before,
ol[class*="crumb"] li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--lw-coral);
  font-weight: 700;
}

.hl { color: var(--lw-coral); font-weight: 650; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--lw-ink);
  border-radius: 6px;
  color: var(--lw-paper);
  background: var(--lw-ink);
  font: 650 0.95rem/1.2 var(--lw-sans);
  text-decoration: none;
  transition: transform .18s ease, color .18s ease, background-color .18s ease;
}
.btn-primary:hover {
  color: var(--lw-ink);
  background: var(--lw-mint);
  transform: translateY(-1px);
}

.local-promo {
  margin: 2em 0;
  padding: 24px 26px;
  border: 1px solid var(--lw-line);
  border-left: 3px solid var(--lw-coral);
  border-radius: 12px;
  background: var(--lw-white);
}
.local-promo-meta { margin: 0 0 12px; color: var(--lw-ink-soft); font-size: .86rem; }
.local-promo-blurb { margin: 0 0 14px; color: var(--lw-ink); font-size: .97rem; line-height: 1.7; }
.local-promo-cta {
  display: inline-block;
  color: var(--lw-ink);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.local-promo-cta:hover { color: #315f5b; }
.local-promo-fine { margin: 14px 0 0; color: #526966; font-size: .8rem; line-height: 1.6; }

.faq-item {
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--lw-line);
  border-radius: 10px;
  background: var(--lw-white);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--lw-ink);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-answer,
.faq-item > p { padding: 0 20px 18px; color: #315253; line-height: 1.7; }
.faq-item[open] summary { border-bottom: 1px solid var(--lw-line); }

.funnel-more {
  margin: 0 0 14px;
  color: #526966;
  font: 600 .75rem/1.3 var(--lw-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.funnel-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.funnel-links a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--lw-line);
  color: #315f5b;
  line-height: 1.5;
  text-decoration: none;
}
.funnel-links a:hover { color: var(--lw-ink); border-color: var(--lw-coral); }
.funnel-line {
  max-width: 46ch;
  margin: 0 0 24px;
  color: var(--lw-ink);
  font-size: 1.1rem;
  line-height: 1.5;
}

.ins-sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lw-line);
}
.ins-sources h2 { margin: 0 0 .75rem; color: #315253; font-size: 1.15rem; }
.ins-sources ol { margin: 0; padding-left: 1.2rem; color: #315253; font-size: .95rem; }
.ins-sources ol > li { margin: .6rem 0; }
.ins-sources ol > li > ul { margin: .25rem 0 0; padding-left: 1.1rem; list-style: disc; }
.ins-sources ol > li > ul li { margin: .15rem 0; color: #526966; font-size: .85rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.contact-copy h2 { max-width: 20ch; margin: 0 0 16px; color: var(--lw-ink); }
.contact-copy > p { margin: 0 0 22px; color: #315253; line-height: 1.7; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--lw-ink); font-weight: 600; }
.contact-list a { color: #315f5b; text-decoration: none; }
.contact-list a:hover { color: var(--lw-ink); text-decoration: underline; }
.ci { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--lw-line); border-radius: 6px; color: var(--lw-ink); background: var(--lw-white); }
.lw-form-consent { margin-top: 14px; padding: 14px 16px; border-left: 3px solid #315f5b; color: #315253; background: var(--lw-paper-deep); font-size: .92rem; line-height: 1.6; }

.go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 5px; font-weight: 650; text-decoration: none; }
.go.teal { color: var(--lw-paper); background: #315f5b; }
.go.teal:hover { color: var(--lw-paper); background: var(--lw-ink); }

/* The component kit sets a dark default on headings. Restore the light foreground
   wherever the site chrome places content on its ink backgrounds. */
.lw-hero :is(h1, h2, h3, h4),
.lw-page-hero :is(h1, h2, h3, h4),
.lw-section--ink :is(h1, h2, h3, h4),
.band--ink :is(h1, h2, h3, h4) {
  color: var(--lw-paper);
}
body.lw-editorial .band--ink :is(h1, h2, h3, h4) { color: var(--lw-paper); }
.lw-page-hero .lw-form-consent { color: #315253; background: var(--lw-paper-deep); }
.funnel .funnel-more { color: rgba(247,244,234,.72); }
.funnel .funnel-line { color: inherit; }
.contact .contact-list li { color: var(--lw-paper); }

/* Editorial pages retain a few components from the dark token theme. Keep those
   component foregrounds paired with the paper/ink surfaces used by the new chrome. */
body.lw-editorial main .split-card__half--light {
  color: var(--lw-ink);
  background: var(--lw-white);
}
body.lw-editorial main .split-card__half--light :is(h1, h2, h3, h4, p, li, span) {
  color: var(--lw-ink);
}
body.lw-editorial main .split-card__half--ink {
  color: var(--lw-paper);
  background: var(--lw-ink);
}
body.lw-editorial main .split-card__half--ink :is(h1, h2, h3, h4, p, li, span) {
  color: var(--lw-paper);
}
body.lw-editorial main .split-card__half--ink a:not(.btn) { color: var(--lw-paper); }

body.lw-editorial main .card--nested { color: var(--lw-ink); }
body.lw-editorial main .card--nested .card__title { color: var(--lw-ink); }
body.lw-editorial main .card--nested .card__body { color: var(--lw-ink-soft); }
body.lw-editorial main .topic-card__title { color: var(--lw-ink); }
body.lw-editorial main .topic-card__body { color: var(--lw-ink-soft); }
body.lw-editorial main .evidence-state__quote { color: var(--lw-ink-soft); }
body.lw-editorial main .lw-guide-charter-note :is(h1, h2, h3, h4, p, li, a) {
  color: var(--lw-ink);
}

body.lw-editorial main .pick :is(h1, h2, h3, h4, p, li, span, code, strong) {
  color: var(--lw-paper);
}
body.lw-editorial main .pick__sources a { color: var(--lw-mint); }
body.lw-editorial main .pick__price--empty {
  color: var(--lw-paper);
  border-color: rgba(247,244,234,.6);
}
body.lw-editorial .band--ink .price-line__qualifier { color: rgba(247,244,234,.72); }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .local-promo { padding: 20px; }
}
