/* ucli-kit base.css, version 4 ("Plain"). The .u-* components of the ucli sites. Only .u-* selectors,
   plus the scoped [hidden] rule below. Colours come from tokens.css. */

/* `hidden` must beat every display rule below (e.g. .u-copy { display: ... }).
   Scoped to kit classes: Material uses `hidden` on .md-tabs, .md-top, .md-header and .tabbed-control
   while keeping them in the layout, so a bare [hidden] rule would break the docs. */
[class^="u-"][hidden],
[class*=" u-"][hidden] { display: none !important; }

.u-wrap { max-width: 1160px; margin-inline: auto; padding-inline: 32px; }
.u-header { border-bottom: 1px solid var(--u-rule); background: var(--u-paper); }
.u-header__inner { display: flex; align-items: center; gap: 36px; min-height: 0; }
.u-header__brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.u-wordmark { font-size: 21px; }
.u-header__site { font-weight: 400; color: var(--u-ink-2); }
.u-header__site::before { content: "/"; margin-right: 8px; }
.u-nav { display: flex; gap: 2px; }
.u-nav a { display: block; padding: 20px 12px 18px; text-decoration: none; color: var(--u-ink-2); font-weight: 500; box-shadow: inset 0 -2px 0 transparent; }
.u-nav a:hover { color: var(--u-ink); }
.u-nav a[aria-current] { color: var(--u-ink); box-shadow: inset 0 -2px 0 var(--u-ink); }
.u-header__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.u-gh { padding: 8px 6px; color: var(--u-ink-2); text-decoration: none; font-size: .9em; }
.u-gh:hover { color: var(--u-ink); text-decoration: underline; }
.u-theme { width: 36px; height: 36px; flex: none; border: 1px solid var(--u-rule-strong); background: transparent; color: var(--u-ink); border-radius: var(--u-radius); display: grid; place-items: center; cursor: pointer; padding: 0; }
@media (max-width: 720px) {
  .u-header__inner { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .u-header__brand { min-height: 36px; align-items: center; }
  .u-nav { order: 3; flex: 1 0 100%; justify-content: space-between; margin: 4px -12px 0; }
  .u-nav a { padding: 12px 12px 12px; }
}

.u-install { margin-top: 32px; max-width: 680px; }
.u-install__label { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.u-cmd { display: flex; align-items: stretch; background: var(--u-slab-bg); color: var(--u-slab-fg); border: 1px solid var(--u-slab-bg); border-radius: var(--u-radius); overflow: hidden; max-width: 680px; }
.u-cmd__body { flex: 1; min-width: 0; margin: 0; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.u-cmd__body::before { content: "$ "; color: var(--u-slab-mute); }
.u-copy { font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border: 0; background: var(--u-btn-bg); color: var(--u-btn-fg); padding: 0 18px; min-width: 80px; flex: none; }
.u-cmd .u-copy { margin: 6px; border-radius: calc(var(--u-radius) - 2px); }
.u-copy:focus-visible { outline: 2px solid var(--u-ink); outline-offset: 2px; }
.u-cmd .u-copy:focus-visible { outline-color: var(--u-slab-fg); }   /* ink on the near-black bar is 1:1 in light mode (B7) */
.u-install__note { margin: 10px 0 0; color: var(--u-ink-2); font-size: 15px; }
@media (max-width: 720px) {
  .u-cmd { flex-direction: column; }
  .u-cmd__body { font-size: 14px; padding: 12px 14px; }
  .u-cmd .u-copy { margin: 0 8px 8px; padding: 10px 18px; }
}

.u-code { display: flex; align-items: flex-start; margin: 12px 0 20px; background: var(--u-paper-2); border: 1px solid var(--u-rule); border-radius: var(--u-radius); }
.u-code__x { flex: 1; min-width: 0; overflow-x: auto; border-radius: var(--u-radius); }
.u-code pre { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.6; white-space: pre; }
.u-copy--s { margin: 8px 8px 0 0; padding: 4px 12px; min-width: 0; font-size: 13px; border: 1px solid var(--u-rule-strong); background: var(--u-paper); color: var(--u-ink); border-radius: max(0px, calc(var(--u-radius) - 2px)); }
.u-o-prompt { color: var(--u-ink-2); }  .u-o-ok { color: var(--u-ok); font-weight: 500; }   /* .u-o-ok: kept for the day tests exist, unused now */
@media (max-width: 720px) { .u-code pre { font-size: 13px; } }

.u-section { padding: 48px 0; border-top: 1px solid var(--u-rule); }
.u-section h2 { font-size: 22px; margin: 0 0 20px; letter-spacing: -.01em; font-weight: 700; }
.u-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.u-tools li { padding: 18px 0; border-top: 1px solid var(--u-rule); }
.u-toolname { font-family: var(--u-font-mono); font-weight: 500; font-size: 17px; text-decoration: none; }
.u-toolname:hover { text-decoration: underline; }
.u-tools p { margin: 4px 0 6px; }
.u-tools code { color: var(--u-ink-2); font-size: 14px; }
.u-more { color: var(--u-ink-2); font-size: 15px; margin: 16px 0 0; }
@media (max-width: 720px) { .u-section { padding: 36px 0; } .u-tools { grid-template-columns: minmax(0, 1fr); } }

.u-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.u-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 2px solid var(--u-ink); }
.u-steps li::before { content: counter(s); font-family: var(--u-font-mono); font-size: 14px; color: var(--u-ink-2); }
.u-steps b { font-weight: 600; }  .u-steps span { color: var(--u-ink-2); }
@media (max-width: 900px) { .u-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .u-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.u-search { margin: 28px 0 0; }
.u-search label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.u-search__f { position: relative; max-width: 640px; }
.u-search__f svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--u-ink-2); pointer-events: none; }
.u-search input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px 12px 44px; border: 1px solid var(--u-rule-strong); border-radius: var(--u-radius); background: var(--u-paper); color: var(--u-ink); -webkit-appearance: none; appearance: none; }
.u-search input::placeholder { color: var(--u-ink-2); opacity: 1; }
.u-search input:focus-visible { outline: 2px solid var(--u-ink); outline-offset: 1px; }
.u-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 16px; }
.u-filters { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.u-fgroup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.u-fgroup__l { font-size: 14px; font-weight: 600; }
.u-fgroup__b { display: flex; flex-wrap: wrap; gap: 6px; }
.u-fgroup__b button { font: inherit; font-size: 14px; line-height: 1.3; padding: 7px 12px; border: 1px solid var(--u-rule-strong); background: var(--u-paper); color: var(--u-ink); border-radius: var(--u-radius); cursor: pointer; }
.u-fgroup__b button[aria-pressed="true"] { background: var(--u-ink); color: var(--u-paper); border-color: var(--u-ink); }
.u-count-n { color: var(--u-ink-2); font-variant-numeric: tabular-nums; margin-left: 2px; }
.u-fgroup__b button[aria-pressed="true"] .u-count-n { color: inherit; }
.u-total { margin: 0; color: var(--u-ink-2); font-size: 14px; }  .u-total b { color: var(--u-ink); font-weight: 600; }
.u-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.u-table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--u-ink-2); padding: 10px 20px 10px 0; border-bottom: 1px solid var(--u-rule-strong); white-space: nowrap; }
.u-table td { padding: 13px 20px 13px 0; border-bottom: 1px solid var(--u-rule); vertical-align: baseline; }
.u-table th:last-child, .u-table td:last-child { padding-right: 0; }
.u-table .u-tn a { font-family: var(--u-font-mono); font-weight: 500; text-decoration: none; }
.u-table .u-tn a:hover { text-decoration: underline; }
.u-table .u-tc code { color: var(--u-ink-2); font-size: 14px; }
.u-table .u-tk { color: var(--u-ink-2); }
.u-table tr[hidden] { display: none; }
.u-empty td { padding: 28px 0; color: var(--u-ink-2); }  .u-empty b { color: var(--u-ink); }
.u-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.u-status__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.u-status--ok .u-status__dot { background: var(--u-ok); }
.u-status--no { color: var(--u-ink-2); }  .u-status--no .u-status__dot { border: 1.5px solid var(--u-ink-2); }
@media (max-width: 720px) {
  .u-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .u-fgroup { flex-direction: column; align-items: flex-start; gap: 6px; }
  .u-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .u-table, .u-table tbody, .u-table td { display: block; }
  .u-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--u-rule); }
  .u-table td { padding: 0 !important; border: 0 !important; }
  .u-tn { grid-column: 1; grid-row: 1; }  .u-ts { grid-column: 2; grid-row: 1; justify-self: end; }   /* only when a tests field exists */
  .u-tc { grid-column: 1; grid-row: 2; font-size: 14px; }
  /* R3 N3: template rows are never pinned by the registry; label their cell "Commit" (class u-tc-t, content: "Commit ") */
  .u-tc::before { content: "Pinned at "; color: var(--u-ink-2); font-size: 13px; }
  .u-tk { grid-column: 2; grid-row: 1; justify-self: end; font-size: 14px; }   /* no status column: Kind takes row 1, column 2 (N10) */
  .u-td { grid-column: 1 / -1; grid-row: 3; }
  .u-table tr.u-empty { display: block; }  .u-table tr.u-empty[hidden] { display: none; }
}

.u-docs { display: grid; grid-template-columns: 232px minmax(0, 1fr) 200px; gap: 56px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.u-dn { font-size: 15px; }
/* the mock puts search in the left column; the docs put the same field in the top bar (5.12 item 4, 7.4) */
.u-dsearch { position: relative; max-width: 640px; margin-bottom: 22px; }
.u-dsearch input { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px 8px 38px; border: 1px solid var(--u-rule-strong); border-radius: var(--u-radius); background: var(--u-paper); color: var(--u-ink); }
.u-dsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--u-ink-2); pointer-events: none; }
.u-dn-g { margin-bottom: 20px; }
.u-dn-h { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.u-dn ul { list-style: none; margin: 0; padding: 0; }
.u-dn li ul { margin: 2px 0 4px 10px; padding-left: 8px; border-left: 1px solid var(--u-rule); }
.u-dn a { display: block; padding: 4px 10px; margin-left: -10px; text-decoration: none; color: var(--u-ink-2); border-radius: var(--u-radius); }
.u-dn a:hover { color: var(--u-ink); }
.u-dn a[aria-current] { color: var(--u-ink); font-weight: 600; background: var(--u-paper-2); }
.u-doc { max-width: 70ch; min-width: 0; }
.u-crumb { font-size: 14px; color: var(--u-ink-2); display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.u-doc h1 { font-family: var(--u-font-mono); font-size: 34px; letter-spacing: -.02em; font-weight: 500; }
.u-doc-lede { font-size: 18px; color: var(--u-ink-2); margin: 10px 0 28px; }
.u-doc h2 { font-size: 20px; margin: 36px 0 10px; font-weight: 700; scroll-margin-top: 60px; }
.u-doc p { margin: 0 0 12px; }
.u-pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--u-rule); }
.u-pn a { text-decoration: none; font-weight: 600; display: flex; flex-direction: column; }
.u-pn a:hover { text-decoration: underline; }
.u-pn span { font-size: 13px; color: var(--u-ink-2); font-weight: 400; }
.u-pn a:last-child { text-align: right; }
.u-toc { font-size: 14px; }
.u-toc__h { font-weight: 600; margin: 0 0 8px; }
.u-toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--u-rule); }
.u-toc a { display: block; padding: 3px 0 3px 12px; color: var(--u-ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.u-toc a:hover { color: var(--u-ink); }
.u-toc a[aria-current], .u-toc a.is-active { color: var(--u-ink); border-left-color: var(--u-ink); }
.u-menu { display: none; width: 100%; font: inherit; color: var(--u-ink); background: transparent; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-weight: 600; cursor: pointer; text-align: left; border: 1px solid var(--u-rule-strong); border-radius: var(--u-radius); margin-bottom: 24px; }
.u-menu span { font-weight: 400; color: var(--u-ink-2); }
.u-menu::after { content: "+"; font-family: var(--u-font-mono); font-weight: 400; color: var(--u-ink-2); }
.u-menu[aria-expanded="true"]::after { content: "\2212"; }
@media (max-width: 1100px) { .u-docs { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; } .u-toc { display: none; } }
@media (max-width: 760px) { .u-docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 20px; } .u-docs > .u-dn { display: none; } .u-menu { display: flex; } }

.u-note { margin: 20px 0; padding: 12px 16px; border-left: 3px solid var(--u-ink); background: var(--u-paper-2); border-radius: 0 var(--u-radius) var(--u-radius) 0; }
.u-note__title { margin: 0 0 2px; font-weight: 600; font-size: 14px; }
.u-note p { margin: 0; }

.u-footer { border-top: 1px solid var(--u-rule); padding: 28px 0 32px; color: var(--u-ink-2); font-size: 14px; }
.u-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.u-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.u-footer p { margin: 0; }
@media (max-width: 720px) { .u-footer__in { flex-direction: column; } }

/* figure around a terminal or code sample */
.u-term { margin: 0; }  .u-term figcaption { font-size: 14px; color: var(--u-ink-2); margin-bottom: 8px; }
.u-term .u-code { margin: 0; background: var(--u-paper-2); }
/* page paddings */
@media (max-width: 720px) { .u-wrap { padding-inline: 16px; } }
.u-ipage { padding: 64px 0 56px; }  .u-rpage { padding: 56px 0 48px; }
@media (max-width: 720px) { .u-ipage, .u-rpage { padding-top: 36px; } }
.u-ibody h2 { font-size: 20px; margin: 0 0 12px; }  .u-ibody p { margin: 0 0 4px; max-width: 60ch; }
.u-ipage .u-lede { margin-bottom: 28px; }
@media (max-width: 720px) { .u-ibody { margin-top: 36px; padding-top: 28px; } }
.u-crumb a { color: inherit; text-decoration: none; }  .u-crumb a:hover { text-decoration: underline; }
/* small docs table */
.u-dt td:first-child { width: 1%; white-space: nowrap; padding-right: 32px; }
/* skip link and screen-reader-only text, kept from v3 (copy.js's live region uses u-visually-hidden) */
.u-skip { position: absolute; left: 8px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--u-ink); color: var(--u-paper); }
.u-skip:focus { top: 8px; }
.u-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* "Next" links under the install bar */
.u-next { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; }
.u-next a { font-weight: 600; text-decoration: none; }
.u-next a::after { content: " \2192"; }
.u-next a:hover { text-decoration: underline; }
/* template rows are never pinned by the registry: their cell reads "Commit" (class u-tc-t) */
@media (max-width: 720px) { .u-tc.u-tc-t::before { content: "Commit "; } }
