/* Shared by Lightfield pages and each article's Shadow Root. */
.lf-reader, .lf-prose, .lf-directory {
  --article-accent: var(--member-color-primary, var(--accent, #2563eb));
  --article-ink: var(--member-text-primary, var(--text, #253442));
  --article-muted: var(--member-text-secondary, var(--muted, #607080));
  --article-line: var(--member-border-color, var(--line, #dce4eb));
}
.lf-reader { container: lf-reader / inline-size; min-width: 0; width: 100%; }
.lf-spread { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 0; }
.lf-spread > .lf-prose { width:100%; box-sizing:border-box; }
.lf-prose { min-width: 0; color: var(--article-ink); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
/* V10 scales the document root for its layout. Article type scales from the body text. */
.lf-prose :is(h1,h2,h3,h4,h5,h6,[data-lf-heading]) { color: var(--article-ink); line-height: 1.45; font-weight: 650; margin-block: 1.25em .5em; scroll-margin-top: var(--article-scroll-offset, 96px); }
.lf-prose h1 { font-size: 1.5em; }
.lf-prose :is(h2,p[role="heading"][aria-level="2"]) { font-size: 1.375em; }
.lf-prose h3 { font-size: 1.1875em; }
.lf-prose h4 { font-size: 1.0625em; }
.lf-prose :is(h5,h6) { font-size: 1em; }
.lf-prose :is(p,ul,ol,blockquote,pre,table) { margin-block: .8em; }
.lf-prose > :first-child { margin-block-start: 0; }
.lf-prose :is(ol,ul) { padding-inline-start: 1.55em; }
.lf-prose ul { list-style: disc; } .lf-prose ol { list-style: decimal; }
.lf-prose li { list-style: inherit; }
.lf-prose a { color: var(--article-accent); text-underline-offset: .18em; }
.lf-prose img { max-width: 100%; height: auto; vertical-align: middle; cursor: zoom-in; }
.lf-prose img[height] { height:revert-layer; }
@supports (aspect-ratio: attr(width type(<number>)) / attr(height type(<number>))) {
  .lf-prose img[width][height] { height:auto; aspect-ratio:attr(width type(<number>)) / attr(height type(<number>)); }
}
.lf-prose img[role=button]:focus-visible {outline:2px solid var(--article-accent);outline-offset:3px;}
.lf-prose a img { cursor: pointer; }
.lf-prose :not(pre)>code { font: .9em/1.5 ui-monospace,Consolas,monospace; padding: .12em .32em; border-radius: 4px; background: #eef2f6; color: #334b67; }
.lf-prose pre { overflow-x:auto; white-space:pre; max-width:100%; }
.lf-prose blockquote { border-inline-start: 3px solid var(--article-accent); padding-inline-start: 1em; }
.lf-prose .lf-table-wrap { max-width:100%; overflow-x:auto; }
.lf-prose .lf-table-wrap > table { display:table; }
.lf-prose table { border-collapse: collapse; }
.lf-prose :is(td,th) { border:1px solid var(--article-line); padding:.48em .75em; vertical-align:top; }
.lf-prose table[cellpadding] > :is(thead,tbody,tfoot) > tr > :is(th,td) { padding:revert-layer; }
.lf-prose table[border] > :is(thead,tbody,tfoot) > tr > :is(th,td) { border:revert-layer; }
/* TinyMCE writes a collapsed default even when the author specifies cell spacing. */
.lf-prose table[cellspacing]:not([cellspacing="0"]) { border-collapse:separate !important; }
.lf-prose th { text-align:start; background:#f3f6f8; }
.lf-directory { font-family:inherit; line-height:1.55; color: var(--article-muted); font-size:14px; }
.lf-directory > p, .lf-directory summary { font-size:14px; font-weight:620; margin:0 0 10px; color:var(--article-ink); }
.lf-directory nav { display:grid; border-inline-start:1px solid var(--article-line); }
.lf-directory nav a { display:block; padding:5px 10px; text-align:start; color:var(--article-muted); text-decoration:none; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.lf-directory a[data-level="3"] { padding-inline-start:21px; }
.lf-directory a[data-level="4"] { padding-inline-start:29px; }
.lf-directory a[aria-current="location"] { color:var(--article-accent); box-shadow:-2px 0 var(--article-accent); font-weight:650; }
.lf-directory a:hover { color:var(--article-accent); }
.lf-rail { display:none; position:sticky; top:var(--article-rail-top,96px); max-height:calc(100vh - var(--article-rail-top,96px) - 25px); overflow-y:auto; overscroll-behavior:contain; }
.lf-fold { margin:0 0 16px; padding:10px 14px; border:1px solid var(--article-line); border-radius:8px; }
.lf-fold summary { margin:0; cursor:pointer; }
.lf-fold[open] summary { margin-bottom:.55em; }
@container lf-reader (min-width: 760px) {
  .lf-has-toc { grid-template-columns:minmax(0,1fr) minmax(145px,18%); gap:clamp(20px,3vw,46px); }
  .lf-spread > .lf-rail { display:block; } .lf-spread > .lf-fold {display:none;}
}
@container lf-reader (max-width: 640px) { .lf-prose { font-size:15px; } }
.ag-detail .ag-toc.lf-directory { display:block; }
.ag-article .lf-fold { display:none; }
.ag-detail .ag-toc[hidden] {display:none!important;}
@media(max-width:1100px) { .ag-detail .ag-toc.lf-directory { display:none; } .ag-article .lf-fold {display:block;} }
.lf-announcement-wrap:has(.lf-has-toc) { max-width: min(1152px, 94vw); }
.lf-block { margin:1.3em 0; min-width:0; }
.lf-block button, .lf-image-dialog button { font:inherit; cursor:pointer; }
.lf-block button:focus-visible, .lf-directory a:focus-visible, .lf-image-dialog button:focus-visible { outline:2px solid var(--article-accent,#2563eb); outline-offset:2px; }
.lf-note { --tone:#3874b9; --wash:#f0f6ff; background:var(--wash); border-inline-start:3px solid var(--tone); padding:12px 17px; border-radius:0 7px 7px 0; }
.lf-note[data-lf-kind="tip"] { --tone:#785ab0; --wash:#f6f1fc; }
.lf-note[data-lf-kind="success"] { --tone:#187353; --wash:#edf8f1; }
.lf-note[data-lf-kind="warning"] { --tone:#98600a; --wash:#fff7e9; }
.lf-note[data-lf-kind="error"] { --tone:#ab4040; --wash:#fff1f1; }
.lf-note>strong {color:var(--tone);} .lf-note>:last-child {margin-bottom:0;}
.lf-tabbar { display:flex; gap:6px; overflow:auto; border-bottom:1px solid var(--article-line); }
.lf-tabbar button { flex:none; padding:.45em .85em; border:0; background:transparent; color:var(--article-muted); }
.lf-tabbar button[aria-selected="true"] {color:var(--article-accent); box-shadow:inset 0 -2px var(--article-accent);}
.lf-panel { padding:.65em 0; } .lf-block [hidden], .lf-fold[hidden] {display:none!important;}
.lf-guide-tabs { container:guide-tabs / inline-size; }
.lf-guide-tabs > .lf-tabbar { flex-wrap:wrap; gap:6px; padding-bottom:12px; }
.lf-guide-tabs > .lf-tabbar button { border:1px solid var(--article-line); border-radius:6px; }
.lf-guide-tabs > .lf-tabbar button[aria-selected=true] { border-color:var(--article-accent); font-weight:600; }
.lf-guide-tabs > [role=tabpanel] { padding-top:16px; }
.lf-guide-picker { display:none; }
.lf-guide-picker select { max-width:100%; min-height:40px; padding:5px 10px; font:inherit; color:var(--article-ink); background:white; border:1px solid var(--article-line); border-radius:6px; }
@container guide-tabs (max-width:580px) {
  .lf-guide-tabs > .lf-tabbar { display:none; }
  .lf-guide-picker { display:grid; gap:4px; color:var(--article-muted); font-size:14px; }
  .lf-guide-picker select { font-size:16px; }
}
.lf-code { --article-muted:#c2cfdd; --article-accent:#a6d6ff; --article-line:#425366; border-radius:10px; overflow:hidden; background:#182432; color:#e5edf5; }
.lf-code .lf-codebar { display:flex; align-items:center; gap:12px; padding:9px 13px; background:#223243; font:13px/1.5 ui-monospace,monospace; }
.lf-dots { flex:none; width:8px; height:8px; margin-right:22px; border-radius:50%; background:#ff6961; box-shadow:11px 0 #f2c14d,22px 0 #62bd78; }
.lf-codebar .lf-code-label {flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.lf-copy { margin-inline-start:auto; display:inline-flex; align-items:center; justify-content:center; min-width:32px; min-height:30px; padding:4px; border:0; border-radius:5px; background:transparent; color:inherit; }
.lf-copy:hover {background:#ffffff20;}
.lf-prose .lf-code pre { display:block; padding:14px 17px; margin:0; color:inherit; background:transparent; border:0; }
.lf-prose .lf-code pre code { font:13px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre; color:inherit; }
.lf-code .token:is(.comment,.prolog) { color:#9bafbc; }
.lf-code .token:is(.keyword,.atrule,.selector) { color:#ceb1ff; }
.lf-code .token:is(.string,.attr-value,.char) { color:#a4dfb1; }
.lf-code .token:is(.function,.tag,.property,.builtin) { color:#9ed3ff; }
.lf-code .token:is(.number,.boolean,.constant) { color:#ffcf90; }
.lf-code .token:is(.operator,.punctuation) { color:#c0cddd; }
.lf-steps { counter-reset:lf-step; }
.lf-step { position:relative; margin-block:1em; padding-inline-start:38px; counter-increment:lf-step; }
.lf-step:before { content:counter(lf-step); position:absolute; inset-inline-start:0; width:26px; line-height:26px; text-align:center; border:1px solid var(--article-line); border-radius:50%; color:var(--article-accent); font-weight:600; font-size:13px; }
.lf-answer { padding:.6em 0; border-bottom:1px solid var(--article-line); }
.lf-answer summary {cursor:pointer; font-weight:600;}
.lf-download, .lf-api { border:1px solid var(--article-line); padding:16px 18px; border-radius:9px; }
.lf-download .lf-action, .lf-api .lf-copy, .lf-image-dialog button { border:1px solid #c4d1dc; background:#fff; color:#334b67; border-radius:6px; padding:.32em .75em; }
.lf-download input { max-width:100%; padding:.4em; border:1px solid #b8c6d2; border-radius:5px; }
.lf-download .lf-claim { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.lf-download .lf-result { margin-top:.4em; } .lf-result:empty {display:none;}
.lf-api-endpoint { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.lf-api-endpoint b { color:var(--article-accent); } .lf-api-endpoint code { overflow-wrap:anywhere; }
.lf-image-dialog { font-size:14px; line-height:1.5; position:fixed; inset:0; margin:auto; box-sizing:border-box; width:fit-content; max-width:94vw; max-height:94vh; padding:14px; border:0; border-radius:12px; background:#fff; }
.lf-image-dialog::backdrop { background:#111b29bd; } .lf-image-dialog img { max-width:86vw; max-height:76vh; object-fit:contain; display:block; margin:auto; }
.lf-image-tools {display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:12px; margin-block-start:10px;}
.lf-image-tools a {color:#345a82;}
.lf-preview-toolbar {display:flex; justify-content:flex-end; gap:6px; max-width:100%; margin-bottom:12px;}
.lf-preview-toolbar button {font:inherit; cursor:pointer; border:1px solid #cdd7df; background:#fff; color:#425466; padding:5px 12px; border-radius:5px;}
.lf-preview-toolbar button[aria-pressed=true] {border-color:var(--member-color-primary,#2563eb); color:var(--member-color-primary,#2563eb);}
.news-preview-shell.lf-mobile-preview { width:min(390px,100%); margin-inline:auto;}
@media(max-width:640px) { .lf-prose {font-size:15px;} .lf-prose .lf-code pre {padding:12px;} }
