/* mako.legal's own pieces, loaded after the kit (mk.css, mk-brand.css). Kit tokens only; no raw colours.
   Intake asks with the kit's question card (<x-mk.question-card>); .lg-q is only the card look of a few pages. */

.lg-main { display: grid; gap: var(--mk-gap-card); width: 100%; } /* its width is the kit's page width (data-mk-layout) */
.lg-intro h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.lg-intro p { margin-top: var(--mk-s-2); font-size: 15px; line-height: 1.5; }
.lg-h { font-size: 17px; letter-spacing: -.01em; }
.lg-h .mk-muted { font-weight: 600; font-size: 14px; }
.lg-fine { color: var(--mk-muted); font-size: 13.5px; line-height: 1.5; }
.lg-empty { padding: var(--mk-s-2) 0; font-size: 14.5px; }
.lg-error { color: var(--mk-negative); font-size: 14px; font-weight: 650; }
.lg-actions { display: flex; flex-wrap: wrap; gap: var(--mk-s-2); }
.lg-actions .mk-btn, .lg-go { min-height: 48px; }
.lg-go { justify-self: start; }
.lg-form { display: grid; gap: var(--mk-s-3); }
.lg-form .mk-btn { justify-self: start; }

/* Card pages (a lead, a guide, not found). */
.lg-flow { display: grid; gap: var(--mk-s-4); }
.lg-q { gap: var(--mk-s-3); padding: var(--mk-s-5) var(--mk-s-4); }
.lg-q-title { display: flex; align-items: center; gap: var(--mk-s-2); font-size: 20px; line-height: 1.3; letter-spacing: -.015em; }
.lg-q-title .mk-icon { width: 24px; height: 24px; color: var(--mk-brand); }
.lg-q-context { color: var(--mk-muted); font-size: 15px; line-height: 1.5; }

/* Crisis lines and the "not legal advice" notice. */
.lg-crisis { display: grid; gap: var(--mk-s-3); }
.lg-crisis-lead { display: flex; align-items: flex-start; gap: var(--mk-s-2); font-size: 17px; line-height: 1.4; }
.lg-crisis-lead .mk-icon { flex: none; width: 24px; height: 24px; color: var(--mk-negative); }
.lg-crisis-lines { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.lg-crisis-lines li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1) var(--mk-s-3); }
.lg-crisis-lines span { color: var(--mk-muted); font-size: 13.5px; }
.lg-call { min-width: 200px; min-height: 48px; }
.lg-crisis-strip { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 48px; padding: var(--mk-s-2) var(--mk-s-4); border: 1px solid color-mix(in srgb, var(--mk-negative) 45%, var(--mk-edge)); border-radius: 999px; background: color-mix(in srgb, var(--mk-negative) 8%, var(--mk-surface)); color: var(--mk-ink); font-size: 14.5px; text-decoration: none; }
.lg-crisis-strip .mk-icon { flex: none; width: 20px; height: 20px; color: var(--mk-negative); }
.lg-notice { display: flex; align-items: flex-start; gap: var(--mk-s-3); padding: var(--mk-s-3) var(--mk-s-4); border-radius: 18px; background: var(--mk-tint); font-size: 14px; line-height: 1.5; }
.lg-notice > .mk-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--mk-brand); }

/* The consent block on the last intake screen. */
.lg-consent { display: grid; gap: var(--mk-s-2); padding: var(--mk-s-4); border: 1.5px solid var(--mk-brand); border-radius: 18px; }
.lg-consent-title { font-weight: 750; }
.lg-consent-body { font-size: 14.5px; line-height: 1.55; }
.lg-check { display: flex; align-items: flex-start; gap: var(--mk-s-3); min-height: 44px; padding-top: var(--mk-s-2); font-weight: 650; cursor: pointer; }
.lg-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--mk-brand); }

/* Facts, rows, tags. The words carry the meaning; colour only backs them up. */
.lg-facts { display: grid; gap: var(--mk-s-2); margin: 0; }
.lg-facts div { display: grid; gap: 2px; }
.lg-facts dt { color: var(--mk-muted); font-size: 12.5px; font-weight: 650; }
.lg-facts dd { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.lg-facts a { color: var(--mk-brand); font-weight: 700; }
.lg-list { display: grid; gap: var(--mk-s-3); }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-3); min-height: 64px; color: var(--mk-ink); text-decoration: none; }
.lg-row-main { display: grid; gap: 2px; min-width: 0; }
.lg-row-main .mk-muted { font-size: 13.5px; }
.lg-row > .mk-icon { flex: none; width: 20px; height: 20px; color: var(--mk-muted); }
.lg-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--mk-s-2); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--mk-edge); color: var(--mk-muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.lg-tag-on { background: var(--mk-tint); color: var(--mk-brand); box-shadow: none; }
.lg-tag-urgent { background: color-mix(in srgb, var(--mk-dot) 22%, transparent); color: var(--mk-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-dot) 55%, transparent); }
.lg-points { display: grid; gap: var(--mk-s-2); margin: 0; padding: 0; list-style: none; }
.lg-points li { display: flex; align-items: flex-start; gap: var(--mk-s-2); font-size: 15px; line-height: 1.45; }
.lg-points .mk-icon { flex: none; width: 20px; height: 20px; color: var(--mk-brand); }

/* Leads */
.lg-firm { display: grid; gap: var(--mk-s-1); }
.lg-scopes .mk-chip { flex: 0 0 auto; }
.lg-lead { display: grid; gap: var(--mk-s-1); color: var(--mk-ink); text-decoration: none; }
.lg-lead-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.lg-lead-text { font-size: 14.5px; line-height: 1.45; }
.lg-lead-meta { font-size: 13px; }
.lg-quote { padding: var(--mk-s-3); border-radius: 14px; background: var(--mk-tint); font-size: 15px; line-height: 1.55; white-space: pre-wrap; }

/* Consent */
.lg-consent-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--mk-s-3); }
.lg-consent-main { display: grid; gap: var(--mk-s-1); flex: 1 1 240px; min-width: 0; }
.lg-consent-main .mk-muted { font-size: 13px; }
.lg-consent-off { opacity: .8; }
.lg-withdraw { min-height: 44px; }
.lg-words summary, .lg-history summary { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; color: var(--mk-brand); font-size: 14px; font-weight: 700; cursor: pointer; }
.lg-words p { font-size: 14px; line-height: 1.55; }
.lg-history ol { display: grid; gap: var(--mk-s-2); margin: 0; padding-left: var(--mk-s-5); font-size: 13.5px; line-height: 1.45; }

/* Find a lawyer, Guides */
.lg-filter { display: grid; gap: var(--mk-s-3); }
.lg-filter .mk-btn { justify-self: start; }
.lg-firm-card { gap: var(--mk-s-2); }
.lg-firm-card p { font-size: 14.5px; line-height: 1.5; }
.lg-firm-card .mk-chip { flex: 0 0 auto; }
.lg-firm-card .mk-btn { justify-self: start; }
.lg-guide { gap: var(--mk-s-3); }
.lg-guide p { font-size: 15px; line-height: 1.6; }

@media (min-width: 900px) {
    .lg-filter { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}

/* Leads: the AI's summary sits above the person's own words. */
.lg-summary { display: grid; gap: var(--mk-s-1); padding: var(--mk-s-3); border: 1px solid var(--mk-edge); border-radius: 14px; font-size: 15px; line-height: 1.5; }
.lg-summary-label { display: flex; align-items: center; gap: var(--mk-s-2); color: var(--mk-muted); font-size: 12.5px; font-weight: 700; }
.lg-summary-label .mk-icon { width: 16px; height: 16px; color: var(--mk-brand); }

/* Follow-up: the thread and the firm's next step. */
.lg-thread { display: grid; gap: var(--mk-s-2); }
.lg-msg { display: grid; gap: var(--mk-s-1); max-width: min(85%, 560px); padding: var(--mk-s-3); border-radius: 18px 18px 18px 6px; background: var(--mk-surface); box-shadow: inset 0 0 0 1px var(--mk-edge); }
.lg-msg p { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-msg .mk-muted { font-size: 12.5px; }
.lg-msg-me { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--mk-tint); box-shadow: none; }
.lg-next { align-items: end; }
.lg-next-due { margin: 0; }
@media (min-width: 900px) {
    .lg-next { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) auto; }
    .lg-next .mk-field, .lg-next input, .lg-next select { min-width: 0; width: 100%; }
}
.lg-link { overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
