/* How-tos (/how-to/) and the industry pages (src/layouts/HowTo.astro, src/pages/how-to/[...slug].astro). Built on shell.css and the FAQ accordion in sections.css.
   Light only. No hover scale, grow or zoom: hover feedback is color, border, background or shadow. */

.la-ht-hero { gap: 18px; }
.la-ht-answer { max-width: 760px; font-size: 19px; color: var(--la-card-ink); }
.la-ht-answer a, .la-ht-sources a, .la-ht-faq .la-faq-a a { color: var(--la-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(83, 110, 229, .35); transition: color .2s, text-decoration-color .2s; }
.la-ht-answer a:hover, .la-ht-sources a:hover, .la-ht-faq .la-faq-a a:hover { color: var(--la-accent-ink); text-decoration-color: currentColor; }
.la-ht-wrap { max-width: 760px; margin: 0 auto; width: 100%; align-items: stretch; }
.la-ht-wrap > * { width: 100%; }
.la-ht-wide { max-width: 1100px; margin: 0 auto; width: 100%; }
.la-sec .la-ht-wrap { gap: 36px; }
/* section headings sized for a document page: the body's H2s are 30px (shell.css .la-prose h2) */
.la-howto .la-ht-wrap .la-h2 { font-size: 30px; line-height: 1.15; }
.la-howto .la-ht-wide .la-h2 { font-size: 36px; }

/* ---- status, shown only on unpublished pages (dev and the preview build) ---- */
.la-ht-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.la-ht-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: #fff4d6; border: 1px solid #f2d27a; color: #7a4b00; font-size: 12px; font-weight: 600; letter-spacing: .04em !important; text-transform: uppercase; white-space: nowrap; }
.la-ht-conf.is-high { background: #e7f6ee; border-color: #bfe5d0; color: var(--la-ok); }
.la-ht-conf.is-medium { background: #fff7e6; border-color: #f4dcae; color: var(--la-warn); }
.la-ht-conf.is-low { background: #fdeee8; border-color: #f5cdbd; color: var(--la-err); }
/* a compliance-sensitive sentence: highlighted for review while the page isn't published, plain text once it is */
.is-draft .la-cx { background: #fff1b8; box-shadow: 0 0 0 2px #fff1b8; border-radius: 3px; }
.is-draft .la-cx::after { content: "compliance"; display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #7a4b00; color: #fff; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .04em !important; text-transform: uppercase; vertical-align: 2px; }

/* ---- the call to action under the short answer ---- */
.la-ht-cta.is-compact { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid var(--la-line); border-radius: 18px; background: #fff; }
.la-ht-cta.is-compact p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--la-card-ink); }
.la-ht-cta .primary-button { flex: none; }

/* the band's button in the accent color, the same rule as the site's dark CTA (.fx-cta in refine.css), so it reads on the dark ground */
.la-howto .la-band .primary-button { background-color: #536ee5 !important; color: #fff !important; border: none !important; }

/* ---- the body ---- */
.la-ht-body { max-width: none; }
.la-ht-body > h2:first-child { margin-top: 0; }
.la-ht-body h2 { scroll-margin-top: 100px; }
.la-ht-body ol, .la-ht-body ul { margin: 0; }
.la-ht-body ol > li::marker { color: var(--la-accent); font-weight: 600; }
.la-ht-body strong { color: var(--la-ink); }
.la-ht-table { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--la-line); border-radius: 16px; background: #fff; }
.la-ht-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.la-ht-table th, .la-ht-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--la-line-soft); }
.la-ht-table thead th { border-top: 0; background: var(--la-soft); color: var(--la-ink); font-weight: 600; font-size: 14px; }
.la-ht-table td:first-child { font-weight: 600; color: var(--la-ink); }
.la-ht-body blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--la-accent); background: var(--la-accent-soft); border-radius: 0 12px 12px 0; color: var(--la-card-ink); }
.la-ht-body blockquote p { margin: 0; }

/* ---- FAQ ---- */
.la-ht-faq { max-width: none; width: 100%; }
.la-ht-faq .la-faq-a { color: var(--la-body); }

/* ---- sources and byline ---- */
.la-ht-sources { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--la-body); }
.la-ht-sources li::marker { color: #8a93a8; }
.la-ht-byline { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px solid var(--la-line); border-radius: 18px; background: var(--la-soft); }
.la-ht-byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.la-ht-byline-name { margin: 0 0 4px; font-weight: 600; color: var(--la-ink); font-size: 15px; }
.la-ht-byline-p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--la-body); }
.la-ht-byline-p + .la-ht-byline-p { margin-top: 6px; }

/* ---- hub cards ---- */
.la-howto .la-card .la-kicker { margin-bottom: -4px; }
.la-howto .la-card-foot .la-chip { font-size: 12px; padding: 4px 10px; }

@media (max-width: 767px) {
  .la-howto .la-ht-wrap .la-h2 { font-size: 24px; }
  .la-howto .la-ht-wide .la-h2 { font-size: 28px; }
  .la-ht-answer { font-size: 17px; }
  .la-ht-cta.is-compact { flex-direction: column; align-items: flex-start; padding: 18px; }
  .la-ht-table table { font-size: 14px; }
  /* three or more columns: keep them readable and let the table scroll inside its box, never the page */
  .la-ht-table table:has(th:nth-child(3)) { min-width: 540px; }
  .la-ht-table th, .la-ht-table td { padding: 10px 12px; }
  .la-ht-byline { padding: 18px; }
}
