/* Shared behavior and compatibility for the static tools and reference pages.
   Visual component rules live in marketing.css; editorial compositions in editorial.css. */
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 80px;
}
:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 4px !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 1rem;
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.grain,
.beams,
.mn-beams,
.mn-belt,
.pcard::after,
.mn-chips,
.art__fig,
.rec-hero img,
.sol-art,
.tool-art,
.bold-art {
  display: none !important;
}
.reveal,
.has-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}
h1 em,
h2 em {
  font-family: inherit !important;
  font-style: normal !important;
  color: inherit !important;
}
.pill {
  min-height: 42px;
  line-height: 1.3;
}
.pill,
.pill:hover,
.card,
.card:hover {
  box-shadow: none;
  transform: none;
}
.prose,
.foot__tag {
  font-family: var(--sans);
}
input,
select,
textarea {
  accent-color: var(--ink);
}
/* Catalog state transitions and selected component handoff. */
.mn-modes {
  display: flex;
}
.mn-modes button {
  min-height: 44px;
  cursor: pointer;
}
.mn-search-label {
  display: block;
}
body:not(.mk-planning) .mn-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
body:not(.mk-planning) .mn-prompt textarea {
  white-space: pre;
  overflow-x: auto;
  line-height: 24px;
}
body:not(.mk-planning) .mn-send {
  margin: 0;
  flex: none;
}
body:not(.mk-planning) .mn-body,
body:not(.mk-planning) .mn-railtab {
  display: none;
}
body.mk-live .mn-hero {
  height: auto;
  overflow: visible;
}
body.mk-live .mn-body {
  padding-top: 24px;
}
.mk-selection {
  position: sticky;
  top: 70px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.mk-selection a {
  text-decoration: underline;
  font-weight: 500;
}
.mk-selection button,
.mk-empty button {
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}
.mk-selection button {
  margin-left: auto;
}
#mkResultCount {
  color: var(--mid);
  font-size: 14px;
  margin: 16px 0;
}
.mk-empty {
  padding: 28px;
  margin: 20px 0;
}
.mk-empty h3 {
  font: 500 22px var(--sans);
  margin-bottom: 14px;
}
.mk-empty p {
  font-size: 16px;
  line-height: 1.7;
}
.mk-empty a {
  text-decoration: underline;
}
.pcard .pcard-foot {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}
.pcard-foot .go {
  flex: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.pcard-foot .go::after {
  content: "↗";
  margin-left: 10px;
}
.pcard-select {
  position: relative;
  z-index: 3;
  cursor: pointer;
  min-height: 40px;
  color: var(--ink);
}
.pcard-caps {
  display: none;
}
.pcard-meta span {
  border: 0;
  padding: 0;
}
.pcard-meta span + span::before {
  content: "·";
  margin-right: 7px;
}
.pcard-body .blurb {
  display: block;
  overflow: visible;
}
.mn-art {
  width: 62px;
  height: 62px;
  min-width: 62px;
}
.mn-art svg {
  width: 30px;
  height: 30px;
}
.mn-loop {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid);
}
.mn-conn {
  min-height: 66px;
}
.mn-conn b {
  font-size: 15px;
}
.mn-conn span span {
  font-size: 12px;
}
.mn-rail li span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.mn-rail li button {
  min-width: 36px;
  min-height: 36px;
}
.mn-follow input {
  font-size: 16px;
}
.mn-follow button {
  min-width: 44px;
  min-height: 44px;
}
.mn-actions .act {
  font-size: 13px;
  min-height: 44px;
}
.mn-status {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
  padding: 12px 15px;
  border-left: 2px solid var(--ink);
  background: var(--card);
}
.mn-status a {
  text-decoration: underline;
}
.mn-maturity {
  display: block;
  font-size: 12px;
  color: var(--mid);
  margin-top: 7px;
}
.mn-body {
  padding-bottom: 50px;
}
.mn-compare {
  overflow: auto;
}
.mn-compare th {
  font-weight: 500;
  text-align: left;
}
.mn-compare td,
.mn-compare th {
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.mn-return {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.catalog-monogram {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 4px;
}
/* Request sections, drafts and optional system selection. */
.ob-sec {
  padding-bottom: 36px;
}
.ob-sec > header {
  margin-bottom: 18px;
}
.ob-sec > header .why {
  font-size: 14px;
  line-height: 1.65;
}
.sys-group {
  margin: 20px 0;
}
.sys-group > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sys-row {
  grid-template-columns: auto 1fr 1.5fr;
  gap: 15px;
}
.sys-row .sd {
  font-size: 13px;
}
.sys-row .ss {
  font: 400 12px var(--sans);
  grid-column: 2/-1;
  justify-self: start;
}
.ob-draft-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0 24px;
  font-size: 12px;
  color: var(--mid);
}
.ob-draft-tools button {
  border: 1px solid var(--line);
  background: none;
  font-size: 13px;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}
.ob-selection {
  padding: 20px;
  margin-bottom: 24px;
}
.ob-selection h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}
.ob-selection ul {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
}
.ob-selection p {
  font-size: 13px;
  color: var(--mid);
}
.ob-summary-count {
  font-size: 13px;
  color: var(--mid);
  font-weight: 400;
  margin-left: 12px;
}
.gr-row .gd,
.ob-submit .fine {
  font-size: 14px;
  line-height: 1.7;
}
.ob-done .body {
  font-family: var(--sans);
}
/* Reference behavior and narrow-screen navigation. */
.docs-mobile-toggle {
  display: none;
}
.docs__bar {
  top: 64px;
}
.docs__main {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.docs__main p,
.docs__main li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}
.docs-hero {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-bottom: 36px;
}
.docs__main .loop-strip,
.dcard__k .sq {
  display: none;
}
.docs__main :is(.code, pre) {
  max-width: 100%;
  overflow: auto;
}
.docs__main .tbl {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.docs__main :not(pre) > code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.docs-body .foot {
  margin-top: 0;
}
.docs-body .callout.warn {
  background: var(--paper-2);
  border-color: var(--line-2);
}
.docs-body .callout__icon {
  color: var(--mid);
}
.docs-body .callout.warn .callout__label {
  color: var(--ink);
}
.docs-body .code__head {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line);
}
.docs-body .code__lang,
.docs-body .code__copy {
  color: var(--mid);
}
.docs-body .code__copy:hover {
  color: var(--ink);
  background: var(--paper-3);
}
.docs-concepts {
  margin-block: 25px;
}
.docs-concepts > div {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.docs-concepts dt {
  font-weight: 500;
  font-size: 15px;
}
.docs-concepts dd {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
}
.docs-start > a {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.docs-start strong {
  font-size: 17px;
  font-weight: 500;
  display: block;
}
.docs-start span {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid);
  display: block;
  margin-top: 8px;
}
.docs-start > a:hover strong {
  text-decoration: underline;
}
.legal-body {
  min-width: 0;
  max-width: 68ch;
  overflow-wrap: anywhere;
}
.legal-shell {
  grid-template-columns: 230px minmax(0, 1fr);
}
.legal-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.75;
}
.cl-panel {
  border: 1px solid var(--line);
  box-shadow: none;
}
.cl-in input {
  font-size: 18px;
}
.cl-note {
  font-size: 14px;
  line-height: 1.75;
}
.cl-hero {
  padding-top: 112px;
}
@media (max-width: 1000px) {
  .docs-mobile-toggle {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px 16px;
    color: var(--ink);
    text-align: left;
    font: 500 14px var(--sans);
    grid-column: 1/-1;
  }
  .docs__rail.is-mobile-open {
    display: block;
    position: static;
    max-height: 50vh;
    grid-column: 1/-1;
    border: 1px solid var(--line);
    padding: 16px;
  }
  .docs__shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs__rail,
  .docs__toc {
    display: none;
  }
}
@media (max-width: 820px) {
  .legal-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .mk-filter {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }
  .mk-filter button {
    flex: none;
  }
  .mn-bundle__top {
    padding: 20px;
  }
  .mn-body {
    padding-bottom: 100px;
  }
  .mn-rail.open {
    bottom: 75px;
    max-height: 65dvh;
    overflow-y: auto;
  }
  .mn-railtab {
    min-height: 44px;
    bottom: 15px;
    right: var(--gutter);
  }
  .mn-bundle__foot {
    padding: 18px;
  }
  .ob-sec > header {
    gap: 12px;
  }
  .ob-sec > header .k {
    margin-bottom: 8px;
  }
  .sys-row {
    grid-template-columns: auto 1fr;
  }
  .sys-row .sd {
    grid-column: 2;
  }
  .ob-body {
    padding-top: 0;
  }
  .ob-draft-tools {
    align-items: flex-start;
  }
  .docs__bar {
    position: static;
    margin-top: 64px;
  }
  .mk-selection {
    top: 64px;
    gap: 8px 15px;
  }
  .mk-selection button {
    margin-left: 0;
  }
  .mk-empty {
    padding: 22px;
  }
}
@media (max-width: 650px) {
  .docs-concepts > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cl-hero {
    padding-top: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
