/* tradeeie.com: mesa de ateliê. Base de corte com régua, cartas em leque, adesivos e linhas de recorte. */
@font-face { font-family: "Russo One"; src: url("/assets/fonts/russo-one-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
@font-face { font-family: "Russo One"; src: url("/assets/fonts/russo-one-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Mada; src: url("/assets/fonts/mada-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
@font-face { font-family: Mada; src: url("/assets/fonts/mada-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --purple: #5B2BE0; --purple-deep: #3F17B0; --spark: #FFD23F; --teal: #12B5A5; --coral: #FF5A5F; --night: #14122B; --paper: #F5F4FF;
  --white: #FFFFFF; --soft: #E4E0FB; --muted: #4D4A6B;
  --title: "Russo One", "Arial Black", sans-serif;
  --body: Mada, "Segoe UI", system-ui, sans-serif;
  --lift: 0 1px 2px rgba(20,18,43,.10), 0 10px 26px -8px rgba(48,28,130,.24);
  --lift-high: 0 2px 4px rgba(20,18,43,.12), 0 22px 40px -12px rgba(48,28,130,.40);
}
.cat-first-card { --cat: #5B2BE0; --on-cat: #FFFFFF; }
.cat-photos-drawings { --cat: #12B5A5; --on-cat: #14122B; }
.cat-names-text { --cat: #FF5A5F; --on-cat: #14122B; }
.cat-occasions { --cat: #FFD23F; --on-cat: #14122B; }
.cat-print-keep { --cat: #14122B; --on-cat: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--night); font: 400 1.125rem/1.62 var(--body); }
img, canvas, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.12; margin: 1.6em 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.1rem); margin-top: .2em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--purple); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--spark); color: var(--night); }
:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; box-shadow: 0 0 0 6px var(--spark); }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.wrap-wide { width: min(1400px, 100% - 1.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }
.small, .muted { font-size: .95rem; color: var(--muted); }
.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; }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--spark); color: var(--night); padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* Botões: peças de jogo de mesa que afundam ao toque */
button, input, select, textarea { font: inherit; color: inherit; }
.button { display: inline-block; background: var(--purple); color: var(--white); border: 2px solid var(--night); border-radius: 14px; padding: .65rem 1.3rem; font: 800 1.08rem/1.3 var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--night); transition: transform .12s, box-shadow .12s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--night); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 var(--night); }
.button-spark { background: var(--spark); color: var(--night); }
.button-quiet { background: var(--white); color: var(--night); }
.button-danger { background: #FFE3E4; color: var(--night); }

/* Cabeçalho */
.top { background: var(--white); border-bottom: 3px solid var(--night); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; padding: .75rem 0 .55rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--title); font-size: 1.55rem; color: var(--night); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; transition: transform .2s; }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.menu-button { display: none; margin-left: auto; background: var(--spark); border: 2px solid var(--night); border-radius: 12px; padding: .45rem 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--night); }
.menu { display: grid; grid-template-columns: 1fr auto; flex: 1 1 640px; gap: .35rem 1.2rem; align-items: center; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .35rem; }
.menu a { color: var(--night); font-weight: 700; text-decoration: none; }
.menu-main { justify-content: flex-end; }
.menu-main a { display: inline-block; padding: .2rem .7rem; border-radius: 999px; }
.menu-main a:hover { background: var(--soft); }
.menu-main a[aria-current="page"] { background: var(--night); color: var(--white); }
.menu-search { display: flex; }
.menu-search input { width: 12.5rem; border: 2px solid var(--night); border-right: 0; border-radius: 999px 0 0 999px; padding: .28rem .9rem; background: var(--paper); font-size: 1rem; }
.menu-search button { border: 2px solid var(--night); border-radius: 0 999px 999px 0; background: var(--spark); padding: .28rem .95rem; font-weight: 800; font-size: 1rem; cursor: pointer; }
.menu-topics { grid-column: 1 / -1; justify-content: flex-end; font-size: 1rem; }
.topic-link { display: inline-block; padding: .1rem .55rem; border-bottom: 3px solid transparent; }
.topic-link::before { content: ""; display: inline-block; width: .74rem; height: 1rem; margin-right: .4rem; border-radius: 3px; background: var(--cat); transform: rotate(8deg); vertical-align: -2px; transition: transform .2s; }
.topic-link:hover::before { transform: rotate(-10deg) scale(1.15); }
.topic-link:hover, .topic-link[aria-current="page"] { border-bottom-color: var(--cat); }
@media (max-width: 899px) {
  .js .menu-button { display: inline-block; }
  .js .menu { display: none; }
  .js .menu.open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; flex-basis: 100%; display: flex; gap: .8rem; padding-bottom: .4rem; }
  .menu ul { flex-direction: column; justify-content: flex-start; }
  .menu li a { display: block; padding: .4rem .6rem; }
  .menu-search input { flex: 1; width: auto; min-width: 0; }
}

@media (min-width: 900px) and (max-width: 1140px) {
  .menu-topics { font-size: .9rem; gap: .1rem 0; }
  .topic-link { padding-inline: .35rem; }
  .topic-link::before { margin-right: .28rem; width: .6rem; height: .85rem; }
  .brand { font-size: 1.3rem; }
  .brand-mark { width: 38px; height: 38px; }
}
@media (max-width: 400px) {
  .brand { font-size: 1.22rem; }
  .brand-mark { width: 36px; height: 36px; }
  .top-row { gap: .4rem .6rem; }
}

/* Base de corte: quadriculado fino, linhas fortes a cada quatro e régua no alto */
.mat {
  position: relative; color: var(--white); background-color: var(--purple);
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(255,255,255,.16) 1.5px, transparent 1.5px),
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  background-position: 0 -1px, 22px 0, 0 -1px, 22px 0;
}
.mat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13px; opacity: .55; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, #fff 22px 23.5px, transparent 23.5px 150px),
    repeating-linear-gradient(90deg, transparent 0 22px, #fff 22px 23px, transparent 23px 30px);
  background-size: 128px 13px, 8px 7px; background-repeat: repeat-x; background-position: 0 0, -2px 0;
}
.mat a { color: var(--white); }
.mat .button { color: var(--night); }

/* Linha de recorte com tesoura entre as seções */
.cut { position: relative; border-top: 3px dashed var(--night); }
.cut::before {
  content: ""; position: absolute; top: -19px; left: max(1rem, calc(50% - 560px)); width: 46px; height: 34px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 34'%3E%3Cg fill='none' stroke='%2314122B' stroke-width='3.2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='9' r='5.5'/%3E%3Ccircle cx='10' cy='25' r='5.5'/%3E%3Cpath d='M14.5 12.5L40 26M14.5 21.5L40 8'/%3E%3C/g%3E%3C/svg%3E") center / 38px no-repeat;
  border-radius: 999px; border: 2px solid var(--night);
}

/* Abertura */
.hero { padding: 2.6rem 0 2.4rem; border-bottom: 3px solid var(--night); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 1.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 3.2vw, 3.55rem); line-height: 1.08; margin-bottom: .55em; text-shadow: 0 4px 0 var(--purple-deep); }
.hero p { font-size: 1.28rem; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.hero-actions .button { font-size: 1.2rem; padding: .8rem 1.6rem; }
.hero-link { font-weight: 800; }
.hero-table { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 1 / .86; }
.hero-table img { position: absolute; display: block; }
.hc { left: 50%; top: 52%; width: 43%; height: auto; border: 6px solid var(--white); border-radius: 18px; background: var(--white); box-shadow: 0 24px 44px -10px rgba(14,6,60,.65), 0 4px 10px rgba(14,6,60,.3); transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); animation: fan .9s cubic-bezier(.2,.8,.25,1) .15s backwards; transition: transform .25s; }
.hc-peek { --x: 30%; --y: -17%; --r: 21deg; }
.hc-left { --x: -66%; --y: 3%; --r: -13deg; }
.hc-right { --x: 66%; --y: 4%; --r: 13deg; }
.hc-front { --x: 0%; --y: -3%; --r: -2deg; width: 47%; }
.hc:hover { transform: translate(calc(-50% + var(--x)), calc(-54% + var(--y))) rotate(var(--r)); }
@keyframes fan { from { transform: translate(-50%, -42%) rotate(0deg); } }
.hs { width: 19%; height: auto; pointer-events: none; }
.hs-scissors { left: -1%; bottom: -3%; transform: rotate(-16deg); }
.hs-camera { right: 0; top: -2%; transform: rotate(11deg); }
.hs-pencil { right: 3%; bottom: -3%; transform: rotate(8deg); width: 17% !important; }
.hs-stars { left: 3%; top: 0; transform: rotate(-10deg); width: 17% !important; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 2rem; } .hc { border-width: 4px; border-radius: 12px; } }

/* Prévia da ferramenta */
.try { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 2.4rem; align-items: center; padding-block: 3rem 3.4rem; }
.try-text h2 { margin-top: 0; }
.try-bench { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.5rem; align-items: center; background: var(--white); border-radius: 28px; padding: .9rem; box-shadow: var(--lift-high); }
.try-stage { position: relative; padding: 34px 20px 20px; border-radius: 20px; background-color: #221E47; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; }
.try-canvas { display: block; width: 100%; height: auto; touch-action: manipulation; border-radius: 14px; box-shadow: 0 16px 30px rgba(0,0,0,.45); cursor: grab; }
.try-tools { padding-right: .6rem; }
.try-tools input[type="text"] { display: block; width: 100%; border: 2px solid var(--night); border-radius: 12px; padding: .5rem .8rem; margin: .3rem 0 1rem; background: var(--paper); }
.try-tools label { font-weight: 800; }
.try-buttons { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.try-buttons button { background: var(--white); border: 2px solid var(--night); border-radius: 999px; padding: .4rem 1rem; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 3px 0 var(--night); }
.try-buttons button:hover { background: var(--spark); }
.try-buttons button:active { transform: translateY(3px); box-shadow: none; }
.try-note { color: var(--muted); font-size: 1rem; }
@media (max-width: 980px) { .try { grid-template-columns: 1fr; gap: 1.2rem; } }
@media (max-width: 640px) { .try-bench { grid-template-columns: 1fr; } .try-stage { max-width: 340px; width: 100%; margin-inline: auto; } .try-tools { padding: 0 .4rem .6rem; } }

/* Manoplas de girar e redimensionar (prévia e ferramenta) */
.handle { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: transparent; touch-action: none; z-index: 2; cursor: nwse-resize; }
.handle::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--spark); border: 3px solid var(--night); box-shadow: 0 0 0 2px var(--white); }
.handle.rotate { cursor: grab; }
.handle.rotate::after { border-style: dashed; background: var(--white); }

/* Três conjuntos, direto sobre o amarelo */
.uses { background-color: var(--spark); background-image: radial-gradient(rgba(20,18,43,.13) 1.6px, transparent 1.8px); background-size: 24px 24px; border-bottom: 3px solid var(--night); padding: 2rem 0 2.6rem; }
.uses h2, .topics h2, .essentials h2 { margin-top: .4em; }
.uses-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.use img { display: block; width: 100%; transition: transform .25s; }
.use:hover img { transform: translateY(-6px) scale(1.02); }
.use h3 { margin: .2rem 0 .5rem; font-size: 1.45rem; }
.use p a { font-weight: 800; color: var(--night); text-decoration-thickness: 3px; text-decoration-color: var(--purple); }

/* Temas: cinco cartas de categoria */
.topics { padding-top: 2rem; }
.topic-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
.topic-card a { display: flex; flex-direction: column; height: 100%; gap: .55rem; padding: .55rem .55rem 1.1rem; background: var(--white); color: var(--night); border-radius: 20px; text-decoration: none; box-shadow: var(--lift); transition: transform .2s, box-shadow .2s; }
.topic-card a:hover, .topic-card a:focus-visible { transform: translateY(-8px) rotate(-1.6deg); box-shadow: var(--lift-high); }
.topic-card img { width: 100%; border-radius: 15px; }
.topic-card-name { font-family: var(--title); font-size: 1.14rem; line-height: 1.2; padding: .35rem .5rem; margin-top: -1.7rem; position: relative; align-self: stretch; text-align: center; background: var(--cat); color: var(--on-cat); border: 3px solid var(--white); border-radius: 999px; min-height: 3.6rem; display: grid; place-items: center; }
.topic-card-lead { font-size: .99rem; line-height: 1.42; padding: 0 .45rem; color: var(--muted); text-align: center; }
@media (max-width: 1040px) { .topic-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }

/* Listas de guias */
.essentials { padding-top: 1.4rem; }
.guide-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.guide { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: 22px; padding: .5rem .5rem .2rem; box-shadow: var(--lift); transition: transform .2s, box-shadow .2s; }
.guide:hover { transform: translateY(-6px); box-shadow: var(--lift-high); }
.guide-art { display: block; width: 100%; aspect-ratio: 640 / 428; object-fit: cover; border-radius: 16px; background: var(--cat); }
.guide-text { display: flex; flex-direction: column; flex: 1; padding: .2rem .8rem .5rem; }
.guide h3 { margin: .75rem 0 .45rem; font-size: 1.14rem; line-height: 1.24; }
.guide h3 a { color: var(--night); text-decoration: none; }
.guide h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.guide:focus-within { outline: 3px solid var(--night); outline-offset: 2px; }
.guide p { font-size: 1.02rem; line-height: 1.46; margin-bottom: .7rem; color: var(--muted); }
.guide .guide-topic { display: flex; align-items: center; gap: .45rem; margin-top: auto; font-weight: 800; font-size: .95rem; color: var(--night); }
.guide-topic::before { content: ""; width: .7rem; height: .95rem; border-radius: 3px; background: var(--cat); transform: rotate(8deg); }

.trust { background: var(--night); color: var(--white); padding: 1.4rem 0 2.2rem; margin-top: 3rem; }
.trust a { color: var(--spark); }

/* Cabeçalhos de página */
.page-head { padding: 1.4rem 0 1.8rem; margin-bottom: 1.8rem; border-bottom: 3px solid var(--night); }
.page-head h1 { text-shadow: 0 3px 0 var(--purple-deep); }
.page-head p { max-width: 60ch; margin-bottom: 0; font-size: 1.2rem; }
.page-head-topic { background: var(--cat); color: var(--on-cat); background-image: radial-gradient(rgba(255,255,255,.28) 2px, transparent 2.4px); background-size: 28px 28px; }
.page-head-topic h1 { text-shadow: none; }
.page-head-topic a { color: var(--on-cat); }
.page-head-grid { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.page-head-grid img { width: 250px; border: 6px solid var(--white); border-radius: 22px; transform: rotate(3deg); box-shadow: var(--lift-high); }
@media (max-width: 640px) { .page-head-grid img { display: none; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .4rem; margin: 0 0 .7rem; padding: 0; font-size: .96rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; opacity: .6; }

/* Texto corrido */
.prose { max-width: 70ch; }
.narrow.prose { max-width: 760px; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--purple); }
.prose h2 { position: relative; padding-left: 1.5rem; margin-top: 2em; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .06em; width: .8rem; height: 1.1em; border-radius: 4px; background: var(--cat, #5B2BE0); transform: rotate(7deg); }
.topic-layout { display: grid; grid-template-columns: minmax(0, 70ch) minmax(0, 1fr); gap: 3rem; align-items: start; margin-bottom: 1.8rem; }
.start-here { position: relative; background: var(--white); border-radius: 24px; padding: 1.1rem 1.1rem .4rem; box-shadow: var(--lift-high); transform: rotate(1.2deg); }
.start-here-art { display: block; width: 100%; border-radius: 16px; }
.start-here-link { font: 400 1.25rem/1.28 var(--title); margin: .9rem 0 .5rem; }
.start-here-link a { color: var(--night); text-decoration: none; }
.start-here-link a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.start-here:hover .start-here-link a { text-decoration: underline; }
@media (max-width: 960px) { .topic-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; } .start-here { transform: none; max-width: 520px; } }
.updated { color: var(--muted); font-size: 1rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; border-radius: 16px; box-shadow: var(--lift); background: var(--white); }
table { border-collapse: collapse; width: 100%; background: var(--white); font-size: 1.02rem; line-height: 1.45; }
caption { text-align: left; font-weight: 800; padding: .6rem .9rem; }
th, td { border-bottom: 1px solid var(--soft); padding: .65rem .9rem; text-align: left; vertical-align: top; }
tbody tr:nth-child(even) { background: #FAF9FF; }
thead th { background: var(--night); color: var(--white); border-bottom: 0; font-weight: 800; }
ul.checklist { list-style: none; padding: 1rem 1.2rem .6rem; background: var(--white); border-radius: 16px; box-shadow: var(--lift); }
ul.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .55rem; }
ul.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border: 2px solid var(--night); border-radius: 5px; background: var(--paper); }

/* Artigo */
.article-head { background: var(--cat); color: var(--on-cat); border-bottom: 3px solid var(--night); padding: 1.4rem 0 2rem; background-image: radial-gradient(rgba(255,255,255,.2) 2px, transparent 2.4px); background-size: 28px 28px; }
.article-head a { color: var(--on-cat); }
.article-head-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.2rem; align-items: center; }
.article-art { display: block; width: 100%; border-radius: 20px; border: 7px solid var(--white); transform: rotate(2deg); box-shadow: var(--lift-high); }
.byline { font-size: 1rem; margin: 0; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 70ch) minmax(0, 1fr); gap: 3.2rem; padding-top: 2rem; align-items: start; }
.article .prose > p:first-child { font-size: 1.3rem; line-height: 1.55; }
@media (max-width: 960px) { .article-wrap, .article-head-grid { grid-template-columns: minmax(0, 1fr); } .article-art { transform: none; } }
.box-title { font-family: var(--title); font-size: 1.35rem; margin: 0 0 .7rem; }
.tips-box { position: relative; background: #FFF1BF; border-radius: 6px 22px 6px 22px; padding: 1.6rem 1.5rem .8rem; margin: 2.6rem 0; box-shadow: var(--lift); }
.tips-box::before, .tips-box::after { content: ""; position: absolute; top: -13px; width: 96px; height: 27px; background: var(--teal); opacity: .86; }
.tips-box::before { left: 34px; transform: rotate(-5deg); }
.tips-box::after { right: 34px; transform: rotate(4deg); background: var(--coral); }
.tips-box ul { padding-left: 1.2rem; }
.mistakes { margin: 0; }
.mistakes div { position: relative; background: var(--white); border-radius: 16px; padding: .9rem 1.1rem .9rem 3.4rem; margin-bottom: .9rem; box-shadow: var(--lift); }
.mistakes div::before { content: "!"; position: absolute; left: 1rem; top: .95rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--night); font: 400 1.05rem var(--title); }
.mistakes dt { font-weight: 800; }
.mistakes dd { margin: .25rem 0 0; }
.try-it { background: var(--purple); color: var(--white); border-radius: 22px; padding: 1.4rem 1.5rem .7rem; margin: 2.6rem 0; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 30px 30px; box-shadow: var(--lift-high); }
.try-it .button { background: var(--spark); color: var(--night); }
.sources { border-top: 3px dashed var(--night); padding-top: 1.1rem; font-size: 1rem; overflow-wrap: anywhere; }
.side { position: sticky; top: 1rem; }
.side-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.side-list li { position: relative; display: grid; grid-template-columns: 118px 1fr; gap: .9rem; align-items: center; margin-bottom: .9rem; padding: .45rem; background: var(--white); border-radius: 16px; box-shadow: var(--lift); font-size: 1rem; line-height: 1.34; }
.side-list a { color: var(--night); font-weight: 700; text-decoration: none; }
.side-list a::after { content: ""; position: absolute; inset: 0; }
.side-list li:hover a { text-decoration: underline; }
.side-art { border-radius: 11px; }
@media (max-width: 960px) { .side { position: static; } }

/* Busca */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: .8rem; }
.filters-search { flex: 1 1 260px; }
.filters-search label, .filters legend { font-weight: 800; }
.filters-search input { display: block; width: 100%; border: 2px solid var(--night); border-radius: 999px; padding: .65rem 1.2rem; margin-top: .2rem; background: var(--white); box-shadow: 0 4px 0 var(--night); }
.filters-topics { border: 0; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; flex-basis: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; border: 2px solid var(--night); border-radius: 999px; padding: .3rem 1rem; background: var(--white); font-size: 1rem; }
.chip:hover span { background: var(--soft); }
.chip input:checked + span { background: var(--cat, #14122B); color: var(--on-cat, #FFFFFF); font-weight: 800; text-decoration: underline; box-shadow: 0 3px 0 var(--night); }
.chip input:focus-visible + span { outline: 3px solid var(--night); box-shadow: 0 0 0 6px var(--spark); }
.filters.live .filters-go { display: none; }
.result-count { font-weight: 800; margin-top: .6rem; }
.empty { background: var(--white); border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: var(--lift); }

/* Formulário de contato */
.contact-form { background: var(--white); border-radius: 22px; padding: 1.4rem; box-shadow: var(--lift-high); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 2px solid var(--night); border-radius: 12px; padding: .55rem .85rem; background: var(--paper); }
.field [aria-invalid="true"] { border-color: #B00020; border-width: 3px; }
.field-error { color: #8C001A; font-weight: 800; margin: .25rem 0 0; }
.hp { position: absolute; left: -9999px; }
.notice { border: 2px solid var(--night); border-radius: 14px; padding: .85rem 1.1rem; background: var(--white); }
.notice-ok { background: #D7F5F0; }
.notice-bad { background: #FFE3E4; }

/* Rodapé */
.foot { background: var(--night); color: var(--white); margin-top: 3.5rem; padding: 2.6rem 0 1.2rem; font-size: 1.02rem; border-top: 6px solid var(--spark); }
.foot a { color: var(--white); text-decoration-color: rgba(255,255,255,.4); }
.foot a:hover { text-decoration-color: var(--spark); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot-brand { font-family: var(--title); font-size: 1.4rem; margin-bottom: .5rem; }
.foot-title { font-weight: 800; color: var(--spark); margin-bottom: .5rem; }
.foot-line { border-top: 2px dashed #4A4677; margin-top: 1.8rem; padding-top: .9rem; }
.page-home .foot { margin-top: 0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .topic-card a:hover, .guide:hover, .use:hover img, .brand:hover .brand-mark { transform: none; }
}
@media print {
  .top, .foot, .side, .try-it, .menu { display: none; }
  body { background: #fff; }
}
