/* Builder package file — replaced on every Update package. Change behaviour in functions/ops-hooks.ts (functions/mlm-ops/api.ts). */
/*
 * The articles' visitor styles (public/_articles/article.css): the plain article and listing pages a site without its
 * own article templates is served, and the parts the package fills into a template (the hero's meta line, the author
 * box, the series navigation, the listings' search, cards, the next read and next step, quotes, tables, FAQ pairs and the discussion). Every colour and
 * face is a custom property defaulting to the site's own (public/_articles/brand.css sets them from its theme, and
 * always sets the accent and the text on it); a site changes one by setting any --article-* on .mlm-articles or the
 * element in its own styles.
 */
:where(.mlm-articles, .mlm-article, .m-search, .m-cards, .m-authors, .m-series, .m-next-step, .m-discussion) {
  --article-ink: inherit;
  --article-muted: color-mix(in srgb, currentColor 62%, transparent);
  --article-line: color-mix(in srgb, currentColor 14%, transparent);
  --article-surface: transparent;
  --article-radius: 10px;
  --article-font: inherit;
  --article-heading-font: inherit;
  --article-type: var(--article-accent);
}

.mlm-articles { margin: 0; font-family: var(--article-font); color: var(--article-ink); background: var(--article-surface); }
.mlm-articles .m-site { max-width: 72rem; margin: 0 auto; padding: 16px; }
.mlm-article-page { max-width: 72rem; margin: 0 auto; padding: 24px 16px 64px; }
.mlm-articles h1, .mlm-articles h2, .mlm-articles h3 { font-family: var(--article-heading-font); line-height: 1.15; }
.mlm-article { max-width: 44rem; margin: 0 auto; line-height: 1.65; }
.mlm-article .m-hero h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.m-dek { margin: 0 0 20px; color: var(--article-muted); font-size: 1.15rem; }
.m-hero picture, .m-hero img, .m-card img, .m-author img { display: block; width: 100%; height: auto; }
.m-hero img { border-radius: var(--article-radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--article-line); }
.m-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 14px 0 24px; color: var(--article-muted); font-size: 0.92rem; }
.m-meta a { color: inherit; }
.m-type { color: var(--article-type); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; }
.m-body { margin-top: 24px; }
.m-body img { max-width: 100%; height: auto; border-radius: var(--article-radius); }
.m-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.m-quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--article-accent); font-size: 1.1rem; }
.m-quote footer { color: var(--article-muted); font-size: 0.92rem; }
.m-table { overflow-x: auto; margin: 24px 0; }
.m-table table { border-collapse: collapse; width: 100%; }
.m-table th, .m-table td { padding: 8px 10px; border-bottom: 1px solid var(--article-line); text-align: left; vertical-align: top; }
.m-faq { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--article-line); border-radius: var(--article-radius); }
.m-faq summary { cursor: pointer; font-weight: 600; }
.m-callout { margin: 20px 0; padding: 14px 16px; border-radius: var(--article-radius); background: color-mix(in srgb, var(--article-accent) 8%, transparent); }
.m-disclosures { margin: 32px 0; color: var(--article-muted); font-size: 0.9rem; }
.m-authors { display: grid; gap: 16px; margin: 40px 0; padding-top: 24px; border-top: 1px solid var(--article-line); }
.m-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
/* An author without a photo: the words take the whole row. */
.m-author > :only-child { grid-column: 1 / -1; }
.m-author picture, .m-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.m-author p { margin: 0 0 4px; }
.m-author-name { font-weight: 600; }
.m-author-name span, .m-author-credentials { color: var(--article-muted); font-weight: 400; font-size: 0.92rem; }
.m-series { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 32px 0; padding: 16px; border: 1px solid var(--article-line); border-radius: var(--article-radius); }
.m-series p { flex-basis: 100%; margin: 0; font-weight: 600; }
.m-cards { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.m-card a { color: inherit; text-decoration: none; }
.m-card img { border-radius: var(--article-radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--article-line); margin-bottom: 10px; }
.m-card h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.m-card p { margin: 0 0 6px; }
.m-card .m-meta { margin: 0; }
.m-next-read { margin: 56px auto 0; }
.m-next-step { margin: 40px auto; text-align: center; }
.m-button { display: inline-block; padding: 12px 22px; border-radius: var(--article-radius); background: var(--article-accent); color: var(--article-on-accent); font-weight: 600; text-decoration: none; }
.m-more { margin: 32px 0 0; text-align: center; }
.m-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 24px; max-width: 32rem; }
.m-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.m-search input { flex: 1 1 14rem; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--article-line); border-radius: var(--article-radius); font: inherit; color: inherit; background: transparent; }
.m-search .m-button { min-height: 44px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.m-search-status { margin: 0 0 20px; color: var(--article-muted); }
.m-discussion { max-width: 44rem; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--article-line); }
.m-comments, .m-replies { margin: 0; padding: 0; list-style: none; }
.m-comment { margin: 0 0 20px; }
.m-comment header { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.m-comment time, .m-discussion-status { color: var(--article-muted); font-size: 0.9rem; }
.m-comment p { margin: 6px 0; }
.m-comment footer { display: flex; flex-wrap: wrap; gap: 12px; }
.m-replies { margin: 12px 0 0; padding-left: 16px; border-left: 2px solid var(--article-line); }
.m-answer > header strong, .m-team { color: var(--article-accent); }
.m-tag { padding: 1px 8px; border-radius: 999px; background: var(--article-line); font-size: 0.78rem; }
.m-hidden { opacity: 0.6; }
.m-link { padding: 0; border: 0; background: none; color: var(--article-accent); font: inherit; font-size: 0.9rem; cursor: pointer; }
.m-composer { display: grid; gap: 12px; margin: 16px 0; }
.m-names { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.m-field { display: grid; gap: 4px; font-size: 0.92rem; }
.m-field input, .m-field textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--article-line); border-radius: var(--article-radius); font: inherit; color: inherit; background: transparent; }
.m-composer .m-button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.m-composer .m-button:disabled { opacity: 0.6; cursor: progress; }
.m-media { margin: 0 0 20px; }
.m-media video, .m-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--article-radius); background: #000; }
.m-audio audio { width: 100%; }
.m-audio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--article-line); border-radius: var(--article-radius); font-variant-numeric: tabular-nums; }
.m-audio-bar button { min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--article-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 0.9rem; cursor: pointer; }
.m-audio-bar button:focus-visible, .m-audio-seek:focus-visible { outline: 2px solid var(--article-accent); outline-offset: 2px; }
.m-audio-play { position: relative; width: 48px; height: 48px; border-color: var(--article-accent) !important; background: var(--article-accent) !important; color: var(--article-on-accent) !important; }
.m-audio-play::before { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; transform: translateX(2px); }
.m-audio-play[data-state="playing"]::before { width: 14px; height: 16px; border: 0; border-left: 5px solid currentColor; border-right: 5px solid currentColor; box-sizing: border-box; transform: none; }
.m-audio-seek { flex: 1 1 10rem; min-width: 8rem; accent-color: var(--article-accent); }
.m-audio-time { color: var(--article-muted); font-size: 0.9rem; }
.m-audio figcaption { margin-top: 6px; color: var(--article-muted); font-size: 0.9rem; }
