/* Tokens. One set, light by default, dark by system preference or by the toggle. */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --border: #e5e5e5;
  --surface: #fafafa;
  --accent: #0a0a0a;
  --accent-fg: #ffffff;
  --hatch: #efefef;
  --warn: #d97706;
  --info: #2563eb;
  --ok: #16a34a;
  --code-comment: #8b8b8b;
  --code-string: #0a6b3d;
  --code-number: #8a4b00;
  --code-keyword: #7c1fa0;
  --code-function: #1a4fa0;
  --code-property: #0b5d8f;
  --code-punctuation: #6b7280;
  --code-variable: #a33a00;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --logo-top: #B3ADFF; --logo-front: #5E56F2; --logo-side: #3D35C4; --logo-word: #202B63;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b0c; --fg: #f4f4f5; --muted: #9b9ba3; --border: #26262b; --surface: #131316;
    --accent: #f4f4f5; --accent-fg: #0b0b0c; --hatch: #18181b;
    --code-comment: #6f6f78; --code-string: #7fd1a3; --code-number: #e8b17a; --code-keyword: #d4a8f0;
    --code-function: #8ab6f0; --code-property: #7ec8e8; --code-punctuation: #9b9ba3; --code-variable: #f0a878;
    --logo-top: #C2BDFF; --logo-front: #8276FF; --logo-side: #5249E0; --logo-word: #F1F0FF;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0b0c; --fg: #f4f4f5; --muted: #9b9ba3; --border: #26262b; --surface: #131316;
  --accent: #f4f4f5; --accent-fg: #0b0b0c; --hatch: #18181b;
  --code-comment: #6f6f78; --code-string: #7fd1a3; --code-number: #e8b17a; --code-keyword: #d4a8f0;
  --code-function: #8ab6f0; --code-property: #7ec8e8; --code-punctuation: #9b9ba3; --code-variable: #f0a878;
  --logo-top: #C2BDFF; --logo-front: #8276FF; --logo-side: #5249E0; --logo-word: #F1F0FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Where a jump to a heading lands: right under the sticky header (111px) with a little air.
   The only offset: a scroll-margin on a heading would add to it and land the heading lower,
   and app.js reads this same value to know which section is being read. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
a { color: inherit; text-decoration: none; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
code, pre, kbd { font-family: var(--mono); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
/* The Ingot logo, its height set by the name's x-height; the faces and the name in the
   brand's colours for each ground (Marca page: navy name on light, lilac block on dark). */
.brand-logo { display: block; height: 22px; width: auto; flex: none; }
.brand-logo .logo-top { fill: var(--logo-top); stroke: var(--logo-top); }
.brand-logo .logo-front { fill: var(--logo-front); stroke: var(--logo-front); }
.brand-logo .logo-side { fill: var(--logo-side); stroke: var(--logo-side); }
.brand-logo .logo-word { stroke: var(--logo-word); }
.brand-logo .logo-word circle { fill: var(--logo-word); }
.brand-sub { padding-left: 10px; border-left: 1px solid var(--border); color: var(--muted); line-height: 18px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; width: 256px; height: 34px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--muted); font: 14px/20px var(--sans); cursor: pointer; }
.search span { flex: 1; text-align: left; }
.search kbd { font: 10px/1 var(--sans); padding: 3px 5px; border: 1px solid var(--border); border-radius: 4px; }
.theme { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 12px; }
.theme button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.theme button:hover { color: var(--fg); }
.theme button[aria-pressed='true'] { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); }
.ghost { display: inline-flex; align-items: center; height: 34px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 14px; line-height: 20px; }
.ghost:hover { color: var(--fg); }
.menu { display: none; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--fg); cursor: pointer; }
.tabs { display: flex; padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px; font-size: 14px; line-height: 20px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s; }
.tabs a:hover { color: var(--fg); }
.tabs a.active { color: var(--fg); font-weight: 500; border-bottom-color: var(--fg); }

/* ---------------------------------------------------------------- layout */
.shell { display: flex; }
.side { position: sticky; top: 113px; flex: none; width: 288px; height: calc(100vh - 113px); overflow-y: auto; padding: 32px 16px 32px 24px; }
.hatch { position: sticky; top: 113px; flex: none; width: 40px; height: calc(100vh - 113px); border-left: 1px solid var(--border); border-right: 1px solid var(--border); background-image: repeating-linear-gradient(315deg, var(--hatch) 0, var(--hatch) 1px, transparent 1px, transparent 10px); }
.main { flex: 1; min-width: 0; display: flex; gap: 40px; padding: 0 40px; }
.article { flex: 1; min-width: 0; max-width: 616px; padding: 40px 0 80px; }
.toc { position: sticky; top: 113px; flex: none; width: 224px; height: calc(100vh - 113px); overflow-y: auto; padding: 36px 0 32px; }

/* sidebar */
.side-group + .side-group { margin-top: 24px; }
.side-head { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.side ul { list-style: none; margin: 8px 0 0 8px; padding: 0; box-shadow: inset 1px 0 0 0 var(--border); }
.side li a { display: block; padding: 6px 0 6px 16px; font-size: 14px; line-height: 20px; color: var(--muted); transition: color 0.15s; }
.side li a:hover { color: var(--fg); }
.side li a[aria-current='page'] { color: var(--fg); font-weight: 500; box-shadow: inset 1px 0 0 0 var(--fg); }

/* on this page */
.toc-title { margin: 0 0 12px; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; box-shadow: inset 1px 0 0 0 var(--border); }
.toc li { margin-bottom: 6px; }
.toc a { display: block; padding: 2px 0 2px 12px; font-size: 14px; line-height: 20px; color: var(--muted); border-left: 1px solid transparent; transition: color 0.15s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--fg); }

/* ---------------------------------------------------------------- prose */
.article .eyebrow { margin: 0; font: 12px/16px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.crumbs { margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.article h1 { margin: 12px 0 0; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; }
.article .lead { margin: 16px 0 0; max-width: 62ch; font-size: 18px; line-height: 32px; color: var(--muted); }
.article h2 { margin: 48px 0 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.025em; }
.article h3 { margin: 32px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.article p, .article li { font-size: 15px; line-height: 28px; color: var(--muted); }
.article p { margin: 12px 0 0; }
.article ul, .article ol { margin: 12px 0 0; padding-left: 20px; }
.article li + li { margin-top: 4px; }
.article strong { color: var(--fg); font-weight: 500; }
.article em { color: var(--fg); font-style: normal; }
.article p a, .article li a, .article td a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.article p a:hover, .article li a:hover { text-decoration-color: var(--fg); }
:not(pre) > code { font-size: 13px; color: var(--fg); background: var(--surface); border-radius: 4px; padding: 2px 4px; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--fg); background: transparent; white-space: nowrap; cursor: pointer; transition: background 0.15s; }
.btn:hover { background: var(--surface); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 500; }
.btn-primary:hover { background: var(--accent); opacity: 0.88; }

/* code blocks */
.code { margin: 16px 0 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.hero-code { margin-top: 32px; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.code-bar span { font: 12px/16px var(--mono); color: var(--muted); }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 12px/16px var(--sans); cursor: pointer; }
.copy:hover { background: var(--border); color: var(--fg); }
.code pre { margin: 0; padding: 16px 20px; overflow-x: auto; background: var(--surface); color: var(--fg); font-size: 14px; line-height: 22.75px; }
.t-c { color: var(--code-comment); } .t-s { color: var(--code-string); } .t-n { color: var(--code-number); }
.t-k { color: var(--code-keyword); } .t-f { color: var(--code-function); } .t-p { color: var(--code-property); }
.t-u { color: var(--code-punctuation); } .t-v { color: var(--code-variable); }

/* tables: same frame as the code blocks */
.table { margin: 16px 0 0; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.table th { padding: 8px 12px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); }
.table td { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; color: var(--fg); }

/* callouts */
.callout { display: flex; gap: 12px; margin: 20px 0 0; padding: 16px; border: 1px solid var(--border); border-left: 2px solid var(--info); border-radius: 12px; background: var(--surface); }
.callout-warn { border-left-color: var(--warn); }
.callout svg.i { margin-top: 2px; color: var(--muted); }
.callout-title { margin: 0 !important; font-size: 14px !important; line-height: 20px !important; font-weight: 500; color: var(--fg) !important; }
.callout-body { margin: 4px 0 0 !important; font-size: 14px !important; line-height: 24px !important; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.15s, background 0.15s; }
.card:hover { border-color: var(--muted); }
.card svg.i { width: 18px; height: 18px; color: var(--fg); }
.card-title { margin: 12px 0 0 !important; font-size: 15px !important; line-height: 22px !important; font-weight: 500; color: var(--fg) !important; }
.card-text { margin: 6px 0 0 !important; font-size: 14px !important; line-height: 24px !important; }
.card-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg); }
.cards-3 .card { padding: 16px; }

/* download / panel */
.panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 24px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.panel-text { flex: 1; min-width: 240px; }
.panel-text p { margin: 4px 0 0 !important; font-size: 14px !important; line-height: 24px !important; }

/* ---------------------------------------------------------------- reference */
.ops { margin-top: 16px; }
.op { margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.op-head { padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.op-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.method { padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; font: 500 11px/18px var(--mono); letter-spacing: 0.025em; text-transform: uppercase; color: var(--fg); background: var(--bg); }
.op-line > code { font-size: 13px; background: transparent !important; padding: 0 !important; }
.op-scope { display: inline-flex; align-items: center; gap: 6px; }
.op-scope span { font: 12px/16px var(--mono); color: var(--muted); }
.op-title { margin: 6px 0 0 !important; font-size: 14px !important; line-height: 22px !important; }
.op-body { padding: 16px; }
.op-body > * + * { margin-top: 20px; }
.label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.fields { margin: 8px 0 0; border: 1px solid var(--border); border-radius: 12px; }
.field { padding: 8px 12px; }
.field + .field { border-top: 1px solid var(--border); }
.field dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.field dt span { font: 12px/16px var(--mono); color: var(--muted); }
.field dt .req { color: var(--warn); }
.field dd { margin: 2px 0 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.field dd:empty { display: none; }
.field details { margin-top: 6px; }
.field summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.field summary:hover { color: var(--fg); }
.field .fields { margin-top: 8px; }
.resp { margin: 8px 0 0 !important; font-size: 14px !important; line-height: 22px !important; }
.op .code { margin-top: 8px; }

/* ---------------------------------------------------------------- footer & search */
.foot { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; line-height: 20px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.15s; }
.pager a:hover { border-color: var(--muted); }
.pager span { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.pager strong { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 500; }
.pager .next { grid-column: 2; text-align: right; }

.palette { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding-top: 12vh; background: rgb(0 0 0 / 0.4); }
.palette[hidden] { display: none; }
.palette-box { width: min(560px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); box-shadow: 0 24px 64px rgb(0 0 0 / 0.25); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.palette input { flex: 1; height: 48px; border: 0; background: transparent; color: var(--fg); font: 15px var(--sans); outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.palette li a span { font: 12px/20px var(--mono); color: var(--muted); }
.palette li a.sel { background: var(--surface); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) { .toc { display: none; } }
@media (max-width: 1024px) { .hatch { display: none; } .side { width: 248px; } }
@media (max-width: 860px) {
  html { scroll-padding-top: 120px; }
  .top-row { padding: 0 16px; gap: 10px; }
  .tabs { padding: 0 4px; }
  .search { flex: 1; width: auto; }
  .search kbd, .ghost { display: none; }
  .theme { display: none; }
  .menu { display: grid; }
  .shell { display: block; }
  .side { display: none; position: static; width: auto; height: auto; padding: 20px 16px; border-bottom: 1px solid var(--border); }
  body.side-open .side { display: block; }
  .main { padding: 0 16px; }
  .article { padding-top: 28px; }
  .article h1 { font-size: 30px; line-height: 36px; }
  .cards, .cards-3, .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
  .table td:first-child { white-space: normal; }
}

.resp-details { margin-top: 8px; }
.resp-details > summary { cursor: pointer; font-size: 13px; line-height: 20px; color: var(--muted); }
.resp-details > summary:hover { color: var(--fg); }

/* reference navigation: every route by name */
.side-sub { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.side-sub a:hover { color: var(--fg); }
.side li a .mini { display: inline-block; width: 34px; font: 500 10px/20px var(--mono); color: var(--muted); }
.side li a:has(.mini) { display: flex; align-items: baseline; }
.toc-sub a { padding-left: 24px; font-size: 13px; }
.op-name { margin: 32px 0 10px !important; font-size: 16px !important; line-height: 24px !important; }
.ops > .op-name:first-child { margin-top: 20px !important; }
.table td:last-child code { white-space: nowrap; }
.table .method { background: transparent; }

/* Centred frame: on wide screens the whole layout sits in the middle instead of hugging
   the left edge. Header, tabs and body share the same width so their edges line up. */
:root { --frame: 1440px; }
.top-row, .tabs { max-width: var(--frame); margin: 0 auto; }
.shell { max-width: var(--frame); margin: 0 auto; }
.main { justify-content: center; }
.article { max-width: 720px; }

/* ---------------------------------------------------------------- humanos / máquinas */
/* The floating switch between the portal for people and the same text for AI agents. It
   floats at the foot of every page; the article leaves room so the pager is never under it. */
:root { --brand: #5e56f2; }
:root[data-theme='dark'] { --brand: #8276ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --brand: #8276ff; } }
.article { padding-bottom: 120px; }
.mode { position: fixed; left: 50%; bottom: 20px; z-index: 40; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.18), 0 1px 2px rgb(0 0 0 / 0.06); }
.mode-opt { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 14px; border-radius: 999px; font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.mode-opt:hover { color: var(--fg); }
.mode-opt[aria-current] { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.mode-dot { position: relative; width: 12px; height: 12px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; opacity: 0.7; }
.mode-opt[aria-current] .mode-dot { border-color: var(--brand); opacity: 1; }
.mode-opt[aria-current] .mode-dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--brand); }
.mode-opt:focus-visible, .m-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* The page for machines: llms.txt on screen, monospaced, always dark. */
body.machines { min-height: 100vh; }
.m-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 40px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.m-label { padding-left: 16px; border-left: 1px solid var(--border); font: 12px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.m-actions { margin-left: auto; display: flex; gap: 8px; }
.m-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--fg); font: 12px/16px var(--mono); white-space: nowrap; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.m-btn:hover { border-color: var(--muted); background: var(--surface); }
.m-btn svg.i { width: 13px; height: 13px; }
.m-text { padding: 40px 40px 140px; }
.m-text pre { margin: 0 auto; max-width: 1360px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/24px var(--mono); color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
.m-text a { color: var(--fg); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--fg) 35%, transparent); text-underline-offset: 3px; }
.m-text a:hover { text-decoration-color: var(--brand); }

@media (max-width: 860px) {
  .mode { bottom: 14px; }
  .mode-opt { height: 34px; padding: 0 14px 0 12px; font-size: 13px; }
  .m-top { padding: 0 16px; gap: 10px; }
  .m-label { display: none; }
  .m-wide { display: none; }
  .m-text { padding: 20px 16px 120px; }
  .m-text pre { font-size: 12px; line-height: 21px; }
}

/* Marca: brand files on the ground each is made for, the palette, the seal and the misuses.
   Grounds are fixed colours, not theme tokens: a logo for a white page is shown on white even
   when the portal is dark. */
.assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.asset { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.asset-art { display: grid; place-items: center; height: 168px; padding: 28px; }
.asset-art img { display: block; max-width: min(100%, 260px); max-height: 100%; height: auto; }
.asset-light .asset-art { background: #ffffff; }
.asset-dark .asset-art { background: #0f1433; }
.asset-brand .asset-art { background: #5e56f2; }
.asset-plain .asset-art { background: repeating-conic-gradient(var(--hatch) 0 25%, var(--bg) 0 50%) 0 0 / 16px 16px; }
.asset-plain .asset-art img { max-height: 112px; }
.asset:has(img[src*='bloco']) .asset-art img { max-height: 84px; }
.asset figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.article .asset-title { margin: 0; font-size: 14px; line-height: 20px; color: var(--fg); font-weight: 500; }
.asset-title span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.article .asset-files { margin: 0; display: flex; gap: 6px; }
.asset-files a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; font: 500 12px/1 var(--mono); color: var(--fg); text-decoration: none; }
.asset-files a:hover { background: var(--surface); }
.assets:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.swatch { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.swatch-chip { display: block; height: 88px; border-bottom: 1px solid var(--border); }
.swatch-navy { background: #202b63; } .swatch-roxo { background: #5e56f2; } .swatch-lilas { background: #8276ff; }
.swatch-nevoa { background: #f2f1fe; } .swatch-noite { background: #0f1433; }
.article .swatch-name { margin: 10px 12px 0; font-size: 14px; line-height: 20px; color: var(--fg); font-weight: 500; }
.article .swatch-hex { margin: 2px 12px 0; font-size: 13px; line-height: 20px; }
.article .swatch-use { margin: 4px 12px 12px; font-size: 13px; line-height: 18px; }

.seals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.seal { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.seal-art { display: flex; align-items: center; justify-content: center; gap: 10px; height: 96px; padding: 0 20px; font: 400 14px/1 var(--sans); }
.seal-art img { height: 26px; width: auto; }
.seal-light .seal-art { background: #ffffff; color: #6b7280; }
.seal-dark .seal-art { background: #0f1433; color: #a9acd0; }
.seal figcaption, .misuse figcaption { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; line-height: 20px; color: var(--muted); }

.misuses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.misuse { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.misuse-art { display: flex; align-items: center; justify-content: center; gap: 8px; height: 112px; padding: 20px; background: #ffffff; }
.misuse-art img { display: block; width: min(100%, 200px); height: auto; }
.misuse figcaption { display: flex; align-items: center; gap: 8px; }
.misuse figcaption::before { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(45deg, transparent 43%, #e03131 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #e03131 43% 57%, transparent 57%); }
.misuse-stretch img { width: min(100%, 150px); transform: scale(1.45, 0.62); }
.misuse-recolor img { filter: hue-rotate(150deg) saturate(1.6); }
.misuse-contrast .misuse-art { background: #b3adff; }
.misuse-contrast img { opacity: 0.75; }
.misuse-effect img { filter: drop-shadow(5px 5px 0 #f59f00); }
.misuse-typed img { width: 46px; }
.misuse-typed b { font: italic 700 34px/1 Georgia, 'Times New Roman', serif; color: #202b63; }
.misuse-rotate img { transform: rotate(-14deg); width: min(100%, 180px); }
.article p a.btn { text-decoration: none; }
.article p a.btn-primary { color: var(--accent-fg); }
.article .asset-files a { text-decoration: none; }

@media (max-width: 860px) {
  .assets, .assets:has(> :nth-child(3):last-child), .seals { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .misuses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .misuses { grid-template-columns: 1fr; } }
