/* Law Group Client Guides, public pages (1.0.1).
   The pages follow the sites' Elementor pages: a navy title band under the header, then the content in the
   sites' boxed width with a 20 px gutter. Typography is inherited from the theme (the sites load Avenir);
   the sizes below are the ones measured on the sites' own pages. Colours: the Law Group navy, and the
   per-site accent (Options::accent) printed as --lg-accent on .lg-main.
   Every rule is scoped to .lg-main / .lg-band so it out-ranks the Elementor kit's element rules
   (.elementor-kit-N h1, .elementor-kit-N a, …), which would otherwise restyle the headings, links and buttons. */
.lg-main, .lg-band {
  --lg-navy: #26324c;
  --lg-accent: #26324c;            /* overridden per site via style="--lg-accent:…" on .lg-main */
  --lg-accent-text: #ffffff;
  --lg-rule: #e3e5ea;
  --lg-tint: #fce5f2;              /* the sites' pale sidebar tile; follows the accent where color-mix() exists */
  --lg-container: 1437px;          /* the sites' Elementor boxed width */
}
@supports (color: color-mix(in srgb, red 50%, white)) {
  .lg-main { --lg-tint: color-mix(in srgb, var(--lg-accent) 10%, #fff); }
}

/* Title band: full width, like the "ABOUT US" / "LATEST NEWS" band on every page. */
.lg-band { background: var(--lg-navy); padding: 0 10px; }
.lg-band .lg-band__inner { display: flex; align-items: center; box-sizing: border-box; max-width: var(--lg-container); min-height: 35px; margin: 0 auto; padding: 10px; }
.lg-band .lg-band__inner > * { margin: 0; padding: 0; color: #fff; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; }

/* Content: an Elementor-like section (25 px top, 10 px sides) holding a boxed inner wrap (10 px padding). */
.lg-main .lg-section { padding: 25px 10px 40px; }
.lg-main .lg-section__inner { box-sizing: border-box; max-width: var(--lg-container); margin: 0 auto; padding: 10px; }
.lg-main .lg-section--narrow .lg-section__inner { max-width: 1140px; }   /* the sites' post pages use the narrower container */

/* /guides/ */
.lg-main .lg-guides__header { margin-bottom: 30px; }
.lg-main .lg-guides__intro { max-width: 70ch; margin: 0 0 7px; font-size: 16px; line-height: 24px; color: var(--lg-navy); }
.lg-main .lg-guides__empty { margin: 0; }
/* Two tiles per row at desktop, one below about 1150 px. The tile is the sites' pale sidebar box. */
.lg-main .lg-guides__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); gap: 30px; }
.lg-main .lg-card { display: flex; gap: 20px; align-items: flex-start; margin: 0; padding: 20px; background: var(--lg-tint); }
.lg-main .lg-card__cover { flex: 0 0 150px; }
.lg-main .lg-card__cover img { display: block; width: 100%; height: auto; border: 1px solid rgba(38, 50, 76, .12); box-shadow: 0 1px 6px rgba(38, 50, 76, .1); }
.lg-main .lg-card__body { flex: 1 1 auto; min-width: 0; }
.lg-main .lg-card__title { margin: 0 0 6px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--lg-navy); }
.lg-main .lg-card__title a { color: inherit; text-decoration: underline; }
.lg-main .lg-card__title a:hover, .lg-main .lg-card__title a:focus { color: var(--lg-accent); }
.lg-main .lg-card__excerpt { max-width: 70ch; margin: 0 0 4px; }

/* Download buttons: the sites' solid accent button (3 px radius, medium weight). Buttons on one line share
   the same width (equal grow from one basis); where two do not fit they stack, each full width. */
.lg-main .lg-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.lg-main .lg-btn { flex: 1 1 280px; box-sizing: border-box; max-width: 420px; display: inline-block; padding: 12px 20px; border: 0; border-radius: 3px; background: var(--lg-accent); color: var(--lg-accent-text); font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color .2s; }
.lg-main .lg-btn:hover, .lg-main .lg-btn:focus { background: var(--lg-navy); color: var(--lg-accent-text); text-decoration: none; }
.lg-main .lg-btn:focus-visible { outline: 2px solid var(--lg-navy); outline-offset: 2px; }
.lg-main .lg-btn__meta { font-weight: 400; opacity: .85; font-size: .9em; }

/* /guides/<slug>/ */
.lg-main .lg-guide__back { margin: 0 0 18px; font-size: 12px; line-height: 20px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.lg-main .lg-guide__back a { color: var(--lg-navy); text-decoration: none; }
.lg-main .lg-guide__back a:hover, .lg-main .lg-guide__back a:focus { color: var(--lg-accent); text-decoration: underline; }
.lg-main .lg-guide__title { margin: 0 0 28px; font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: .5px; color: var(--lg-navy); }
.lg-main .lg-guide__body { display: flex; gap: 40px; align-items: flex-start; }
.lg-main .lg-guide__cover { flex: 0 0 320px; margin: 0; }
.lg-main .lg-guide__cover img { display: block; width: 100%; height: auto; border: 1px solid var(--lg-rule); box-shadow: 0 2px 12px rgba(38, 50, 76, .12); }
.lg-main .lg-guide__content { flex: 1 1 auto; min-width: 0; }
.lg-main .lg-guide__description { max-width: 70ch; }
.lg-main .lg-guide__description > :last-child { margin-bottom: 0; }
.lg-main .lg-guide .lg-downloads { margin-top: 24px; }

/* Share row: the sites' pink social circles (white glyph, navy on hover); each one carries hidden text for screen readers. */
.lg-main .lg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--lg-rule); }
.lg-main .lg-share__label { margin-right: 6px; font-size: 12px; line-height: 20px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lg-navy); }
.lg-main .lg-share__link { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--lg-accent); color: var(--lg-accent-text); box-shadow: none; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.lg-main .lg-share__link svg { width: 16px; height: 16px; fill: currentColor; }
.lg-main .lg-share__link:hover, .lg-main .lg-share__link:focus { background: var(--lg-navy); color: var(--lg-accent-text); }
.lg-main .lg-share__link:focus-visible { outline: 2px solid var(--lg-navy); outline-offset: 2px; }
.lg-main .lg-share__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lg-main .lg-share__copy.is-copied { background: var(--lg-navy); }
.lg-main .lg-share__status { font-size: 12px; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--lg-navy); }
.lg-main .lg-share__status:empty { display: none; }

@media (max-width: 767px) {
  .lg-main .lg-section { padding-bottom: 30px; }
  .lg-main .lg-guides__intro { font-size: 14px; }
  .lg-main .lg-guides__list { gap: 20px; }
  .lg-main .lg-card { flex-direction: column; gap: 14px; padding: 16px; }
  .lg-main .lg-card__cover { flex-basis: auto; width: 120px; }
  .lg-main .lg-btn { max-width: none; padding: 12px 16px; font-size: 14px; }
  .lg-main .lg-guide__title { font-size: 24px; }
  .lg-main .lg-guide__body { flex-direction: column; gap: 24px; }
  .lg-main .lg-guide__cover { flex-basis: auto; width: 200px; }
}
