/* monetaworks.com: folha de desenho. Cores e fontes do plano do projeto. */
/* fontes locais (licença OFL), só o conjunto latino */
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/rajdhani-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/rajdhani-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Rajdhani';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/rajdhani-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Sarabun';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/sarabun-400-italic.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Sarabun';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/sarabun-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Sarabun';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/sarabun-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Sarabun';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/sarabun-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Ubuntu Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ubuntu-mono-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Ubuntu Mono';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/ubuntu-mono-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --paper: #F7F5EF;
  --paper-2: #ECE9DF;
  --paper-3: #E3E0D4;
  --ink: #2B2D42;
  --ink-soft: #565F73;
  --concrete: #8D99AE;
  --cota: #4F6D9A;
  --cota-deep: #3C5780;
  --safety: #EF8354;
  --safety-deep: #D96A3A;
  --rule: #D5D2C6;
  --f-head: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Sarabun', Arial, sans-serif;
  --f-mono: 'Ubuntu Mono', ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --gut: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cota-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.55rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.mono, code, kbd { font-family: var(--f-mono); }
kbd { background: var(--paper-2); border: 1px solid var(--concrete); border-bottom-width: 2px; border-radius: 3px; padding: 0 .35em; font-size: .92em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .band :focus-visible { outline-color: var(--paper); }
.skip { position: absolute; left: .75rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 50; font-family: var(--f-head); font-weight: 600; text-decoration: none; }
.skip:focus { top: .75rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap.wrap-xl { max-width: 1560px; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section + .section { padding-top: 0; }
.lede { font-size: 1.25rem; max-width: 40rem; color: var(--ink); }
.sub { color: var(--ink-soft); max-width: 40rem; }

/* ---------- cabeçalho ---------- */
.site-head { background: var(--paper); border-bottom: 2px solid var(--ink); position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; min-height: 4.4rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 1.65rem; letter-spacing: -.01em; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; align-items: center; gap: .25rem 1.4rem; flex-wrap: wrap; font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--safety); }
.nav .btn { padding: .4rem 1rem; border-bottom-width: 2px; margin-left: .3rem; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; line-height: 1.1; padding: .75rem 1.35rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 2px; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.btn-primary { background: var(--safety); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: #F39569; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-small { font-size: 1rem; padding: .45rem .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-quiet { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); }

/* ---------- cotas (linhas de dimensão) ---------- */
.dim { display: flex; align-items: center; gap: .7rem; color: var(--cota-deep); font-family: var(--f-mono); font-size: .98rem; margin: 0 0 1.4rem; }
.dim::before, .dim::after { content: ""; flex: 1; height: 12px; background: linear-gradient(var(--cota), var(--cota)) 0 50% / 100% 1px no-repeat; }
.dim::before { background: linear-gradient(var(--cota), var(--cota)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--cota), var(--cota)) 0 50% / 1.5px 12px no-repeat; }
.dim::after { background: linear-gradient(var(--cota), var(--cota)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--cota), var(--cota)) 100% 50% / 1.5px 12px no-repeat; }
.dim.short { max-width: 24rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); border-bottom: 2px solid var(--ink); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(141,153,174,.30) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.30) 1px, transparent 1px), linear-gradient(to right, rgba(141,153,174,.14) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.14) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7.2fr); } }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-bottom: 1.6rem; }
.hero .fine { color: var(--ink-soft); font-size: 1rem; margin: 0; max-width: 30rem; }

.plate { background: var(--paper); border: 2px solid var(--ink); }
.plate-body { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 46rem) { .plate-body.two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.plate-draw { padding: .8rem; display: flex; align-items: center; justify-content: center; min-width: 0; }
.plate-draw svg { display: block; width: 100%; height: auto; max-height: 30rem; }
.plate-table { border-top: 2px solid var(--ink); padding: .9rem 1rem 1rem; min-width: 0; }
@media (min-width: 46rem) { .plate-body.two .plate-table { border-top: 0; border-left: 2px solid var(--ink); } }
.plate-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .55rem .9rem; border-top: 2px solid var(--ink); background: var(--paper-2); }
.plate-bar .cap { font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; }
.plate-table h2, .plate-table h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.unit-switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); }
.unit-switch label { position: relative; cursor: pointer; }
.unit-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.unit-switch span { display: block; padding: .25rem .85rem; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.unit-switch input:checked + span { background: var(--ink); color: var(--paper); }
.unit-switch input:focus-visible + span { outline: 3px solid var(--safety); outline-offset: 2px; }

/* tabela de cortes */
.cut { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.35; }
.cut caption { text-align: left; font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; padding-bottom: .4rem; color: var(--ink); }
.cut th { text-align: left; font-weight: 600; font-size: .9rem; color: var(--ink-soft); padding: .3rem .4rem .3rem 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.cut td { padding: .45rem .4rem .45rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cut .lbl { font-family: var(--f-mono); font-weight: 700; width: 1.8rem; }
.cut .q, .cut .sz { font-family: var(--f-mono); }
.cut .sz { white-space: nowrap; }
.cut td.empty { color: var(--ink-soft); padding-block: 1rem; }
.cut tr.is-selected td { background: rgba(239,131,84,.2); }

/* desenho: animação única do hero */
.drawing { overflow: visible; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.15s cubic-bezier(.4,.1,.2,1) forwards; animation-delay: calc(var(--i, 0) * 28ms); }
.fill-in { fill-opacity: 0; animation: fillin .5s ease forwards; animation-delay: calc(var(--i, 0) * 28ms + .7s); }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  .fill-in { animation: none; fill-opacity: 1; }
  html { scroll-behavior: auto; }
  .btn, .btn-primary { transition: none; }
}

/* ---------- prévia (passo a passo) ---------- */
.preview-head { display: grid; gap: 1.2rem 3rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.8rem; align-items: end; }
@media (min-width: 52rem) { .preview-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.step-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: .85rem 1rem; border-top: 2px solid var(--ink); background: var(--paper-2); }
.step-ctl label { font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; }
.step-ctl input[type=range] { flex: 1 1 12rem; accent-color: var(--ink); height: 2rem; }
.step-ctl output { font-family: var(--f-mono); }
.step-note { margin: 0; padding: .7rem 1rem; border-top: 1px solid var(--rule); font-size: 1rem; min-height: 3.1rem; }

/* ---------- índice de categorias ---------- */
.sheet-index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.sheet-index li { border-bottom: 1px solid var(--concrete); }
.sheet-index a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .3rem 1.4rem; align-items: center; padding: 1.1rem .5rem 1.1rem 0; text-decoration: none; color: var(--ink); }
.sheet-index a:hover { background: var(--paper-2); }
.sheet-index .thumb { grid-row: span 2; width: 5.5rem; height: 4.4rem; background: var(--paper); border: 1px solid var(--concrete); display: flex; align-items: center; justify-content: center; }
.sheet-index .thumb svg { width: 100%; height: 100%; }
.sheet-index h3 { font-size: 1.65rem; }
.sheet-index p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }
.sheet-index .count { font-family: var(--f-mono); color: var(--cota-deep); font-size: .98rem; }
@media (min-width: 46rem) {
  .sheet-index a { grid-template-columns: 7rem minmax(0, 1fr) auto; }
  .sheet-index .thumb { width: 7rem; height: 5rem; grid-row: auto; }
  .sheet-index .txt { display: grid; gap: .15rem; }
}

/* ---------- artigos essenciais ---------- */
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.pick a { display: grid; gap: .75rem; text-decoration: none; color: var(--ink); height: 100%; align-content: start; }
.pick .fig { border: 1px solid var(--concrete); background: var(--paper); aspect-ratio: 8 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pick .fig svg { width: 100%; height: 100%; }
.pick h3 { font-size: 1.45rem; line-height: 1.12; }
.pick a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--safety); text-underline-offset: .2em; }
.pick p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.pick .cat { font-family: var(--f-head); font-weight: 600; font-size: 1rem; color: var(--cota-deep); }

/* ---------- faixa de transparência ---------- */
.band { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 6vw, 5rem); }
.band h2 { color: var(--paper); margin-bottom: 1rem; }
.band a { color: var(--paper); text-decoration-color: var(--safety); text-decoration-thickness: 2px; }
.band a:hover { color: #fff; }
.band-grid { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .band-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.band li { padding-left: 1.5rem; position: relative; }
.band li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8rem; height: 2px; background: var(--safety); }
.band .muted { color: #C9CEDA; }

/* ---------- rodapé (carimbo da folha) ---------- */
.site-foot { border-top: 2px solid var(--ink); background: var(--paper); }
.titleblock { display: grid; grid-template-columns: minmax(0, 1fr); border-inline: 0; }
@media (min-width: 52rem) { .titleblock { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.titleblock > div { padding: 1.6rem 1.4rem 1.6rem 0; border-bottom: 1px solid var(--concrete); }
@media (min-width: 52rem) { .titleblock > div { border-bottom: 0; border-left: 1px solid var(--concrete); padding-left: 1.4rem; } .titleblock > div:first-child { border-left: 0; padding-left: 0; } }
.titleblock h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.titleblock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: 1rem; }
.titleblock a { color: var(--ink); text-decoration: none; }
.titleblock a:hover { text-decoration: underline; text-decoration-color: var(--safety); text-decoration-thickness: 2px; }
.titleblock p { font-size: 1rem; color: var(--ink-soft); margin: .5rem 0 0; max-width: 24rem; line-height: 1.5; }
.foot-base { border-top: 2px solid var(--ink); background: var(--paper-2); font-size: .98rem; }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding-block: .9rem; }
.foot-base p { margin: 0; }

/* ---------- páginas de texto e artigos ---------- */
.crumbs { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); font-size: .98rem; padding-block: 1.1rem 0; color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--concrete); }
.crumbs a { color: var(--cota-deep); }
.page-head { padding-block: 1.6rem 2rem; }
.page-head h1 { max-width: 20ch; margin-bottom: 1rem; }
.page-head.wide h1 { max-width: 24ch; }
.page-head .lede { margin-bottom: 0; }

.art-layout { display: grid; gap: 2.2rem 3.5rem; grid-template-columns: minmax(0, 1fr); padding-bottom: 4rem; }
@media (min-width: 70rem) { .art-layout { grid-template-columns: 15rem minmax(0, 44rem); justify-content: start; } }
.toc { font-size: 1rem; }
@media (min-width: 70rem) { .toc { position: sticky; top: 1.2rem; align-self: start; } }
.toc h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--concrete); }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; color: var(--ink); text-decoration: none; line-height: 1.35; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { border-left-color: var(--safety); background: var(--paper-2); }
@media (max-width: 69.98rem) { .toc { border: 1px solid var(--concrete); padding: .9rem 1rem; background: var(--paper-2); } .toc ol { border-left: 0; columns: 1; } .toc a { padding-left: 0; border-left: 0; } }

.fig-main { margin: 0 0 2.4rem; }
.fig-main .fig-frame { border: 2px solid var(--ink); background: var(--paper); padding: .6rem; }
.fig-main svg { display: block; width: 100%; height: auto; }
.fig-main figcaption { font-size: .98rem; color: var(--ink-soft); padding-top: .6rem; line-height: 1.5; }

.prose { max-width: 44rem; }
.prose h2 { margin: 2.8rem 0 1rem; scroll-margin-top: 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose p, .prose li { max-width: 40rem; }
.prose li { margin-bottom: .45em; }
.prose strong { font-weight: 600; }
.prose table { max-width: none; }

.tablewrap { overflow-x: auto; margin: 1.6rem 0 2rem; }
.tablewrap table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; min-width: 28rem; }
.tablewrap caption { text-align: left; font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; padding-bottom: .5rem; color: var(--ink); }
.tablewrap th { text-align: left; background: var(--ink); color: var(--paper); font-weight: 600; padding: .55rem .8rem; vertical-align: bottom; }
.tablewrap td { padding: .6rem .8rem; border-bottom: 1px solid var(--concrete); vertical-align: top; font-variant-numeric: tabular-nums; }
.tablewrap tr:last-child td { border-bottom: 2px solid var(--ink); }
.tablewrap tbody th { background: transparent; color: var(--ink); border-bottom: 1px solid var(--concrete); font-weight: 600; }

.callout { margin: 1.8rem 0; padding: 1rem 1.2rem 1rem 1.4rem; background: var(--paper-2); border-left: 6px solid var(--safety); }
.callout h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.callout p:last-child { margin-bottom: 0; }
.example { margin: 1.8rem 0; padding: 1rem 1.2rem 1rem 1.4rem; border: 1px solid var(--cota); border-left: 6px solid var(--cota); background: #F0F2F6; }
.example h3 { font-size: 1.2rem; margin: 0 0 .3rem; color: var(--cota-deep); }
.example p:last-child { margin-bottom: 0; }
.checklist { margin: 1.8rem 0; padding: 1rem 1.2rem 1.1rem; border: 2px solid var(--ink); background: var(--paper); }
.checklist h3 { font-size: 1.25rem; margin: 0 0 .6rem; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin: 0 0 .5em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--ink); background: var(--paper); }

.art-foot { margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--ink); }
.faq h3 { margin: 1.4rem 0 .35rem; font-size: 1.3rem; }
.faq p { margin: 0; }
.sources { margin-top: 3rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); font-size: 1rem; }
.sources ol { padding-left: 1.4rem; }
.sources li { margin-bottom: .8rem; line-height: 1.5; }
.sources .note { color: var(--ink-soft); display: block; }
.meta-line { color: var(--ink-soft); font-size: 1rem; }
.keep { margin-top: 3rem; }
.keep ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.keep li { border-bottom: 1px solid var(--concrete); margin: 0; max-width: none; }
.keep a { display: block; padding: .85rem .2rem; text-decoration: none; color: var(--ink); }
.keep a:hover { background: var(--paper-2); }
.keep strong { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; display: block; line-height: 1.15; }
.keep span { color: var(--ink-soft); font-size: .98rem; line-height: 1.45; display: block; margin-top: .15rem; }

/* ---------- explorador de artigos ---------- */
.finder-ctl { display: grid; gap: 1.1rem; padding: 1.2rem 0 1.6rem; border-top: 2px solid var(--ink); }
.field label, .field .lab { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; margin-bottom: .3rem; }
.input { width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 2px; padding: .6rem .8rem; min-height: 2.8rem; }
.input:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: #B3361B; background: #FFF4F0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; line-height: 1.1; padding: .45rem .9rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 2px; cursor: pointer; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.finder-count { font-family: var(--f-mono); color: var(--cota-deep); margin: 0 0 1rem; min-height: 1.6rem; }
.results { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.results li { border-bottom: 1px solid var(--concrete); }
.results a { display: grid; gap: .3rem 1.4rem; grid-template-columns: 6.4rem minmax(0, 1fr); align-items: start; padding: 1.1rem .3rem 1.1rem 0; text-decoration: none; color: var(--ink); }
.results a:hover { background: var(--paper-2); }
.results .fig { width: 6.4rem; height: 4rem; border: 1px solid var(--concrete); background: var(--paper); }
.results .fig svg { width: 100%; height: 100%; display: block; }
.results h3 { font-size: 1.5rem; line-height: 1.12; margin-bottom: .2rem; }
.results p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.results .cat { font-family: var(--f-head); font-weight: 600; color: var(--cota-deep); font-size: 1rem; }
.results li[hidden] { display: none; }
.empty-note { padding: 2rem 0; color: var(--ink-soft); }

/* ---------- formulário ---------- */
.form { display: grid; gap: 1.2rem; max-width: 36rem; }
.form textarea.input { min-height: 9rem; resize: vertical; }
.form .hint { font-size: .95rem; color: var(--ink-soft); margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: .8rem 1rem; border: 2px solid var(--ink); background: var(--paper-2); margin: 0; }
.status[data-kind="ok"] { border-color: #2F6B3A; background: #EAF3EA; }
.status[data-kind="err"] { border-color: #B3361B; background: #FFF4F0; }
.status:empty { display: none; }

/* ---------- ferramenta (builder) ---------- */
.notice { display: flex; gap: .9rem; align-items: flex-start; border: 2px solid var(--ink); background: var(--paper-2); padding: .8rem 1rem; margin: 0 0 1.4rem; font-size: 1rem; line-height: 1.5; }
.notice strong { font-family: var(--f-head); font-weight: 700; }
.notice p { margin: 0; }
.bd { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 2rem; }
@media (min-width: 64rem) { .bd { grid-template-columns: 19.5rem minmax(0, 1fr); } }
@media (min-width: 88rem) { .bd { grid-template-columns: 19.5rem minmax(0, 1fr) 21rem; } }
.bd-side { display: grid; gap: 1.2rem; }
.panel { border: 2px solid var(--ink); background: var(--paper); }
.panel > h2, .panel > .ph { font-size: 1.3rem; padding: .55rem .9rem; border-bottom: 2px solid var(--ink); background: var(--paper-2); display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.panel .pb { padding: .9rem; }
.fields { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .field { min-width: 0; }
.bd > * { min-width: 0; }
.bd-side .panel { min-width: 0; }
.bd-right .pb { overflow-x: auto; }
.lib button, .tools .btn, .chip { user-select: none; -webkit-user-select: none; }
body.dragging, body.dragging * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }
.fields .field.full { grid-column: 1 / -1; }
.fields .input { font-family: var(--f-mono); font-size: 1.05rem; padding: .4rem .55rem; min-height: 2.5rem; }
.fields label { font-size: 1rem; margin-bottom: .15rem; }
.err { color: #A02E16; font-size: .92rem; margin: .2rem 0 0; min-height: 1.1rem; }

.lib-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.lib-chips .chip { font-size: .98rem; padding: .3rem .65rem; }
.lib { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; max-height: 22rem; overflow: auto; }
.lib li[hidden] { display: none; }
.lib button { width: 100%; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .1rem .7rem; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--concrete); padding: .4rem .5rem; cursor: grab; border-radius: 2px; }
.lib button:hover { border-color: var(--ink); background: var(--paper-2); }
.lib button:active { cursor: grabbing; }
.lib .ic { grid-row: span 2; width: 2.6rem; height: 2.6rem; display: block; }
.lib .nm { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.lib .nt { font-size: .9rem; color: var(--ink-soft); line-height: 1.2; }
.ghost { position: fixed; z-index: 60; pointer-events: none; padding: .4rem .7rem; background: var(--safety); border: 2px solid var(--ink); font-family: var(--f-head); font-weight: 700; transform: translate(-50%, -120%); border-radius: 2px; }

.stage { border: 2px solid var(--ink); background: var(--paper); min-width: 0; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; padding: .6rem .7rem; border-bottom: 2px solid var(--ink); background: var(--paper-2); align-items: center; }
.tools .sp { flex: 1; }
.canvas { position: relative; background-image: linear-gradient(to right, rgba(141,153,174,.22) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.22) 1px, transparent 1px); background-size: 20px 20px; min-height: 22rem; padding: .6rem; }
.canvas svg { display: block; width: 100%; height: auto; max-height: 44rem; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.canvas .part, .canvas .handle { touch-action: none; }
.canvas .part { cursor: grab; }
.canvas .part:hover > rect:first-child { stroke: var(--cota); stroke-width: 2.5px; }
.canvas .part:focus { outline: none; }
.canvas .part:focus-visible > rect:first-child { stroke: var(--safety); stroke-width: 4px; }
.canvas .part.is-selected > rect:first-child { stroke: var(--safety); }
.canvas.dragover { outline: 3px dashed var(--safety); outline-offset: -6px; }
.handle { fill: var(--paper); stroke: var(--ink); stroke-width: 2px; cursor: nwse-resize; }
.handle.h { cursor: ns-resize; } .handle.w { cursor: ew-resize; }
.empty-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(27rem, calc(100% - 2rem)); background: var(--paper); border: 2px solid var(--ink); padding: 1rem 1.2rem 1.2rem; box-shadow: 5px 5px 0 var(--ink); }
.empty-card h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.empty-card ol { margin: 0 0 1rem; padding-left: 1.3rem; font-size: 1.02rem; }
.empty-card li { margin-bottom: .3rem; }
.empty-card[hidden] { display: none; }
.statusbar { padding: .55rem .8rem; border-top: 1px solid var(--concrete); font-size: .98rem; min-height: 2.7rem; background: var(--paper); }
.keys { padding: .6rem .8rem .8rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }
.keys p { margin: 0; }
.save-note { font-size: .92rem; color: var(--ink-soft); margin: .6rem 0 0; line-height: 1.45; }

.sel-panel .row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.sel-panel .none { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.tables { display: grid; gap: 1.2rem; }
.tables .panel .pb { overflow-x: auto; }
.parts-t { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.3; }
.parts-t caption { text-align: left; padding-bottom: .4rem; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; }
.parts-t th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: .3rem .4rem .3rem 0; border-bottom: 2px solid var(--ink); white-space: nowrap; font-size: .9rem; }
.parts-t td { padding: .35rem .4rem .35rem 0; border-bottom: 1px solid var(--rule); font-family: var(--f-mono); vertical-align: middle; }
.parts-t td.nm { font-family: var(--f-body); }
.parts-t tr.is-selected td { background: rgba(239,131,84,.2); }
.parts-t button { font: inherit; font-family: var(--f-head); font-weight: 600; background: var(--paper); border: 1px solid var(--ink); padding: .1rem .5rem; cursor: pointer; border-radius: 2px; }
@media (min-width: 64rem) and (max-width: 87.99rem) { .bd-right { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }

/* ---------- 404 e utilidades ---------- */
.center-page { padding-block: 4rem 6rem; }
.center-page h1 { margin-bottom: 1rem; }
.legal h2 { font-size: 1.7rem; margin: 2.2rem 0 .7rem; }
.legal .updated { color: var(--ink-soft); }

/* ---------- categoria ---------- */
.cat-intro { max-width: 42rem; }
.cat-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.cat-list li { border-bottom: 1px solid var(--concrete); }
.cat-list a { display: grid; gap: .3rem 1.4rem; grid-template-columns: 6.4rem minmax(0, 1fr); padding: 1.1rem .3rem 1.1rem 0; text-decoration: none; color: var(--ink); align-items: start; }
.cat-list a:hover { background: var(--paper-2); }
.cat-list .fig { width: 6.4rem; height: 4rem; border: 1px solid var(--concrete); background: var(--paper); }
.cat-list .fig svg { width: 100%; height: 100%; display: block; }
.cat-list h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.cat-list p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.other-cats { margin-top: 3rem; }
.other-cats ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.other-cats a { display: inline-block; padding: .4rem .9rem; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; background: var(--paper); border-radius: 2px; }
.other-cats a:hover { background: var(--paper-2); }

@media print {
  .site-head, .site-foot, .skip, .toc { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero::before { display: none; }
}

/* =====================================================================
   Refinamento visual (24/11): tons por seção, folha com sombra impressa,
   faixa de título, topo dos artigos com figura, índice ativo, detalhes finos.
   ===================================================================== */
:root {
  --blue-tint: #E7ECF4;
  --blue-line: #C5D0E2;
  --sand: #EFECE2;
}
html { scroll-padding-top: 1rem; }
::selection { background: rgba(239, 131, 84, .38); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { text-decoration-color: var(--concrete); }
a:hover { text-decoration-color: var(--safety); }

/* cabeçalho fixo (só em tela larga) */
@media (min-width: 48rem) {
  html { scroll-padding-top: 5.5rem; }
  .site-head { position: sticky; top: 0; z-index: 30; background: rgba(247, 245, 239, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .toc { top: 5.8rem !important; }
}
.brand svg { transition: transform .18s ease; }
.brand:hover svg { transform: rotate(-4deg); }

/* ---------- régua de marcações sob o hero ---------- */
.ticks { height: 18px; position: relative; background: var(--paper); }
.ticks::before { content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(to right, var(--ink) 0 2px, transparent 2px 40px);
  background-size: 100% 7px, 100% 14px; background-repeat: no-repeat; background-position: 0 0, 0 0; opacity: .5; }

/* ---------- folha (hero e prévia) ---------- */
.plate { box-shadow: 8px 8px 0 var(--ink); background: var(--paper); }
.hero { padding-bottom: clamp(3.4rem, 6vw, 5.4rem); }
.hero-grid { gap: clamp(2rem, 5vw, 4.5rem); }
.plate-bar { padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; gap: 0; background: var(--paper-2); }
.plate-bar > * { display: flex; align-items: center; padding: .6rem .95rem; }
.plate-bar > * + * { border-left: 2px solid var(--ink); }
.plate-bar .cap { flex: 1 1 11rem; }
.plate-bar .size { font-family: var(--f-mono); font-size: 1rem; color: var(--cota-deep); white-space: nowrap; }
.plate-draw { background-image: linear-gradient(to right, rgba(141,153,174,.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.16) 1px, transparent 1px); background-size: 16px 16px; }
@media (max-width: 40rem) { .plate { box-shadow: 5px 5px 0 var(--ink); } }

/* destaque cruzado entre a lista de cortes e o desenho */
.drawing g.part.hl > rect:first-child { fill: rgba(239, 131, 84, .55); stroke: var(--safety); stroke-width: 3px; fill-opacity: 1; }
.cut tbody tr { transition: background-color .12s ease; }
.cut tbody tr.hl td { background: rgba(239, 131, 84, .26); }
.cut tbody tr.hl .lbl { color: var(--ink); }
.plate-table .tip { margin: .8rem 0 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- faixas de tom ---------- */
.tone-blue, .tone-sand { padding-block: clamp(3.2rem, 6vw, 5.4rem); }
.tone-blue { background-color: var(--blue-tint); border-block: 2px solid var(--ink);
  background-image: linear-gradient(to right, rgba(79,109,154,.13) 1px, transparent 1px), linear-gradient(to bottom, rgba(79,109,154,.13) 1px, transparent 1px);
  background-size: 24px 24px; }
.tone-sand { background: var(--sand); border-bottom: 1px solid var(--concrete); }
.tone-blue .dim, .tone-sand .dim { margin-bottom: 1.2rem; }
.tone-blue .sub { color: #3F4A5F; }

/* ---------- índice das categorias ---------- */
.sheet-index { border-top: 2px solid var(--ink); }
.sheet-index a { position: relative; padding: 1.3rem .6rem 1.3rem 0; transition: padding-left .16s ease, background-color .16s ease; }
.sheet-index a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--safety); transition: width .16s ease; }
.sheet-index a:hover, .sheet-index a:focus-visible { padding-left: 1.3rem; }
.sheet-index a:hover::before, .sheet-index a:focus-visible::before { width: 7px; }
.sheet-index .thumb { border: 2px solid var(--ink); background-color: var(--paper); }
.sheet-index h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); }
.sheet-index p { font-size: 1.06rem; }
.sheet-index .count { border: 1.5px solid var(--cota); color: var(--cota-deep); background: var(--paper); padding: .15rem .65rem; white-space: nowrap; }
@media (min-width: 46rem) {
  .sheet-index a { grid-template-columns: 10rem minmax(0, 1fr) auto; }
  .sheet-index .thumb { width: 10rem; height: 6.4rem; }
}

/* ---------- seis artigos ---------- */
.pick a { transition: transform .16s ease; }
.pick .fig { border: 2px solid var(--ink); background: var(--paper); transition: box-shadow .16s ease, transform .16s ease; }
.pick a:hover .fig, .pick a:focus-visible .fig { box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -3px); }
.pick .cat { display: inline-block; width: fit-content; border: 1px solid var(--cota); background: var(--paper); padding: .05rem .55rem; font-size: .95rem; }
.pick h3 { font-size: 1.55rem; }

/* faixa escura */
.band { background-image: linear-gradient(to right, rgba(247,245,239,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(247,245,239,.05) 1px, transparent 1px); background-size: 32px 32px; }
.band li::before { height: 3px; }

/* ---------- topo das páginas internas (artigos, categorias, textos) ---------- */
.art-band { background-color: var(--sand); border-bottom: 2px solid var(--ink);
  background-image: linear-gradient(to right, rgba(141,153,174,.22) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.22) 1px, transparent 1px), linear-gradient(to right, rgba(141,153,174,.11) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.11) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; }
.art-band .crumbs { padding-top: 1.3rem; }
.art-band .page-head { padding-block: 1.4rem 2.8rem; }
.art-band .page-head h1 { max-width: 22ch; }
.art-head-grid { display: grid; gap: 2.2rem 3.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: 1.4rem 3rem; }
@media (min-width: 62rem) { .art-head-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.art-head-grid h1 { font-size: clamp(2.3rem, 1.2rem + 3.1vw, 3.8rem); max-width: 18ch; margin-bottom: 1.1rem; }
.art-head-grid .lede { font-size: 1.2rem; }
.art-fig { margin: 0; border: 2px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.art-fig .fig-frame { padding: .7rem; background-image: linear-gradient(to right, rgba(141,153,174,.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.16) 1px, transparent 1px); background-size: 16px 16px; }
.art-fig svg { display: block; width: 100%; height: auto; }
.art-fig figcaption { border-top: 2px solid var(--ink); background: var(--paper-2); padding: .6rem .95rem; font-size: .98rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 40rem) { .art-fig { box-shadow: 5px 5px 0 var(--ink); } }
.art-layout { padding-top: 3rem; }

/* ---------- texto corrido ---------- */
.prose h2 { position: relative; margin: 3.2rem 0 1.1rem; padding-top: 1.15rem; border-top: 1px solid var(--concrete); }
.prose h2::before { content: ""; position: absolute; left: 0; top: -3px; width: 3.4rem; height: 5px; background: var(--safety); }
.prose > section:first-of-type > h2, .prose.legal > h2:first-child { margin-top: 2.6rem; }
.prose.art > p:first-child { font-size: 1.28rem; line-height: 1.6; color: var(--ink); }
.prose a { text-decoration-color: var(--cota); text-decoration-thickness: 1.5px; }
.prose a:hover { background: rgba(239, 131, 84, .18); text-decoration-color: var(--safety); }
.tablewrap tbody tr:nth-child(even) > * { background: rgba(236, 233, 223, .6); }
.tablewrap tbody th[scope="row"] { color: var(--ink); }
.tablewrap th { letter-spacing: .005em; }
.callout { border-left-color: var(--safety); background: #F4EFE6; }
.example { background: var(--blue-tint); border-color: var(--blue-line); border-left-color: var(--cota); }
.checklist { box-shadow: 5px 5px 0 var(--ink); }
.checklist li::before { background: var(--blue-tint); }

/* índice lateral */
.toc a { transition: background-color .12s ease; }
.toc a.is-active { border-left-color: var(--safety); background: var(--sand); font-weight: 600; color: var(--ink); }
.toc ol { border-left-color: var(--blue-line); border-left-width: 3px; }
.toc a { margin-left: -3px; border-left-width: 3px; }

/* listas de artigos (categoria e explorador) */
.cat-list a, .results a { position: relative; transition: padding-left .16s ease, background-color .16s ease; }
.cat-list a::before, .results a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--safety); transition: width .16s ease; }
.cat-list a:hover, .results a:hover, .cat-list a:focus-visible, .results a:focus-visible { padding-left: 1.2rem; }
.cat-list a:hover::before, .results a:hover::before, .cat-list a:focus-visible::before, .results a:focus-visible::before { width: 6px; }
.cat-list .fig, .results .fig { border: 2px solid var(--ink); width: 8.4rem; height: 5.4rem; }
.cat-list a, .results a { grid-template-columns: 8.4rem minmax(0, 1fr); }
.results .cat, .cat-list .cat { color: var(--cota-deep); }
.finder-ctl, .cat-list, .results { border-top-width: 2px; }
.chip[aria-pressed="true"] { box-shadow: 3px 3px 0 var(--safety); }

/* rodapé */
.site-foot { background: var(--sand); }
.foot-base { background: var(--ink); color: var(--paper); border-top-color: var(--ink); }
.foot-base a { color: var(--paper); text-decoration-color: var(--safety); }
.foot-base a:hover { color: #fff; }
.foot-base :focus-visible { outline-color: var(--paper); }

/* ---------- Construtor ---------- */
.stage { box-shadow: 8px 8px 0 var(--ink); }
.canvas { background-image:
  linear-gradient(to right, rgba(79,109,154,.20) 1px, transparent 1px), linear-gradient(to bottom, rgba(79,109,154,.20) 1px, transparent 1px),
  linear-gradient(to right, rgba(141,153,174,.20) 1px, transparent 1px), linear-gradient(to bottom, rgba(141,153,174,.20) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; background-color: #FBFAF6; }
.panel > h2, .panel > .ph { border-bottom-width: 2px; background: var(--sand); }
.panel { box-shadow: 4px 4px 0 var(--blue-line); }
.tools { background: var(--sand); }
.lib button { border-width: 1.5px; }
.lib button:hover { border-color: var(--ink); background: var(--blue-tint); }
.notice { border-left-width: 8px; border-left-color: var(--safety); background: #F4EFE6; }

/* quadros de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .brand svg, .pick a, .pick .fig, .sheet-index a, .sheet-index a::before, .cat-list a, .results a, .toc a, .cut tbody tr { transition: none; }
}
.section.pad { padding-top: clamp(3.2rem, 6vw, 5.4rem); }
.section.tone-blue + .section.pad { padding-top: clamp(3.2rem, 6vw, 5.4rem); }

/* tracado e preenchimento na mesma peca rodam juntos (sem um cancelar o outro) */
.draw.fill-in { animation-name: trace, fillin; animation-duration: 1.15s, .5s; animation-timing-function: cubic-bezier(.4, .1, .2, 1), ease; animation-fill-mode: forwards, forwards; animation-delay: calc(var(--i, 0) * 28ms), calc(var(--i, 0) * 28ms + .7s); }
@media (prefers-reduced-motion: reduce) { .draw.fill-in { animation: none; stroke-dashoffset: 0; fill-opacity: 1; } }
