/* Busca BNCC — 4education */
:root {
  --brand: #c125fa;
  --brand-dark: #9015c5;
  --brand-deep: #5c0d7b;
  --brand-soft: #f8eaff;
  --brand-line: #efcdfc;
  --ink: #1a1320;
  --ink-2: #3d3344;
  --muted: #6b6372;
  --line: #ebe5ee;
  --surface: #ffffff;
  --soft: #f9f7fb;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(40, 15, 51, .05), 0 4px 14px rgba(40, 15, 51, .04);
  --shadow: 0 18px 50px rgba(70, 18, 92, .12);
  --font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --area: var(--brand);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
main { flex: 1; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(193, 37, 250, .45); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }
.search-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(193, 37, 250, .25); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.icon-button { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 20px; line-height: 1; transition: .2s; }
.icon-button:hover { border-color: var(--brand); color: var(--brand-dark); }
.link-button { padding: 0; border: 0; background: none; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.link-arrow { color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.link-arrow:hover { text-decoration: underline; }

/* Chips e códigos */
.code { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--area) 12%, #fff); color: color-mix(in srgb, var(--area) 75%, #000); font-size: 13px; font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.code-lg { padding: 8px 14px; border-radius: 10px; font-size: 16px; }
.chip { display: inline-flex; align-items: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; }
.eyebrow { display: inline-block; color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }

/* Topo */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
body.scrolled .topbar, body.searching .topbar, body.page-inner .topbar { border-color: var(--line); }
.topbar-inner { width: min(1240px, 100%); height: 68px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { display: block; width: auto; height: 34px; max-width: 170px; object-fit: contain; }
.brand-badge { padding: 4px 8px; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav-link { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; transition: .2s; }
.top-nav-link:hover { background: var(--soft); color: var(--ink); }

/* Hero / landing */
.hero { position: relative; overflow: hidden; padding: 84px 24px 72px; display: grid; place-items: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(193, 37, 250, .14), rgba(193, 37, 250, 0)); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(193, 37, 250, .25) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 60%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 60%); pointer-events: none; }
body.searching .hero, body.searching .home-content { display: none; }
.hero-inner { position: relative; z-index: 2; width: min(820px, 100%); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--brand-line); border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(193, 37, 250, .15); }
.hero h1 { margin: 22px auto 16px; max-width: 780px; font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand) 10%, #7c3aed 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.65; }

.search-box { position: relative; isolation: isolate; width: min(720px, 100%); height: 68px; margin: 34px auto 0; padding: 0 10px 0 22px; display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 22px 60px rgba(106, 20, 141, .16), 0 0 0 5px rgba(193, 37, 250, .1); }
.search-box .search-icon { width: 22px; height: 22px; color: var(--brand); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-box input::placeholder { color: #a39aa9; }
.search-box .btn { height: 48px; border-radius: 14px; }
.search-kbd { padding: 2px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); font-family: inherit; font-size: 12px; }
.search-box:focus-within .search-kbd { display: none; }
.search-box-sm { height: 56px; margin-top: 24px; padding-left: 16px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.search-box-sm .btn { height: 40px; }

.suggestions { position: absolute; z-index: 60; top: calc(100% + 10px); left: 0; right: 0; max-height: 400px; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(52, 16, 67, .2); text-align: left; }
.suggestion-item { width: 100%; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.suggestion-item:hover, .suggestion-item.active { background: var(--brand-soft); }
.suggestion-main { min-width: 0; flex: 1; }
.suggestion-main strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.suggestion-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.suggestion-type { flex: 0 0 auto; padding: 4px 8px; border: 1px solid var(--brand-line); border-radius: 999px; color: var(--brand-dark); font-size: 11px; font-weight: 700; }
mark { padding: 0 1px; border-radius: 3px; background: #fbe1ff; color: inherit; }

.quick-examples { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.quick-examples button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: .2s; }
.quick-examples button:hover { border-color: var(--brand); color: var(--brand-dark); }

.hero-stats { margin: 44px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 680px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(6px); }
.hero-stats div { padding: 16px 12px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; }
.hero-stats dt { order: 2; color: var(--muted); font-size: 12px; font-weight: 600; }
.hero-stats dd { margin: 0 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

/* Seções da home */
.section { padding: 80px 24px; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); }
.section-inner { width: min(1180px, 100%); margin: auto; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 { margin: 8px 0 10px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.stage-heading { margin: 32px 0 14px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.discipline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.discipline-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s; }
.discipline-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--area) 45%, #fff); box-shadow: 0 14px 34px color-mix(in srgb, var(--area) 16%, transparent); }
.discipline-mark { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--area) 14%, #fff); color: color-mix(in srgb, var(--area) 80%, #000); font-size: 15px; font-weight: 800; }
.discipline-text { flex: 1; min-width: 0; }
.discipline-text strong { display: block; font-size: 15px; line-height: 1.3; }
.discipline-text small { color: var(--muted); font-size: 13px; }
.discipline-arrow { color: #c4bcc9; font-size: 18px; transition: transform .2s, color .2s; }
.discipline-card:hover .discipline-arrow { color: var(--area); transform: translateX(3px); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 17px; font-weight: 800; }
.feature h3 { margin: 16px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Como funcionam os códigos */
.code-explainers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.code-explainer { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.code-explainer header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.code-explainer h3 { margin: 0; font-size: 18px; }
.code-example { align-self: flex-start; display: inline-flex; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 24px; font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; transition: border-color .2s; }
.code-example:hover { border-color: var(--brand); }
.seg { padding: 4px 8px; border-radius: 9px; background: color-mix(in srgb, var(--seg) 14%, #fff); color: color-mix(in srgb, var(--seg) 80%, #000); }
.seg-1 { --seg: #c125fa; }
.seg-2 { --seg: #0891b2; }
.seg-3 { --seg: #ea580c; }
.seg-4 { --seg: #16a34a; }
.seg-5 { --seg: #4f46e5; }
.code-parts { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.code-parts > li { display: flex; gap: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.code-parts > li > div { min-width: 0; }
.seg-dot { width: 10px; height: 10px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: var(--seg); }
.code-parts ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; color: var(--muted); font-size: 13px; }
.code-parts ul b { color: var(--ink-2); }
.code-columns { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 12px; }
.code-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.code-footnote { max-width: 820px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.cta { position: relative; overflow: hidden; margin-top: 28px; padding: 24px; display: flex; align-items: center; gap: 18px; border-radius: 20px; background: linear-gradient(120deg, #3b0e4b, #8719b3); color: #fff; }
.cta::after { content: ""; position: absolute; right: -60px; top: -70px; width: 180px; height: 180px; border: 30px solid rgba(255, 255, 255, .06); border-radius: 50%; pointer-events: none; }
.cta-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .12); color: #f1a3ff; font-size: 20px; }
.cta-text { flex: 1; min-width: 0; }
.cta-text strong { display: block; font-size: 16px; }
.cta-text p { margin: 4px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
.cta .btn { position: relative; z-index: 1; }

/* Resultados */
.results-view { min-height: calc(100vh - 68px); padding: 28px 24px 72px; background: var(--soft); }
.results-layout { width: min(1240px, 100%); margin: auto; display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 92px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.filters-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters-title strong { font-size: 15px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fff; font-size: 14px; }
.field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(193, 37, 250, .12); }
.filter-note { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13px; line-height: 1.55; }

.results-main { min-width: 0; }
.results-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.toolbar-search { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); transition: border-color .2s, background .2s; }
.toolbar-search:focus-within { border-color: var(--brand); background: #fff; }
.toolbar-search .search-icon { color: var(--brand); }
.toolbar-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.toolbar-search input::-webkit-search-cancel-button { display: none; }
.toolbar-search button { width: 26px; height: 26px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 16px; line-height: 1; }
.mobile-filter-button { display: none; }
.filter-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; line-height: 20px; }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 2px 12px; }
.result-summary h2 { margin: 0 0 2px; font-size: 22px; letter-spacing: -.02em; }
.result-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.result-total { min-width: 58px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 8px 20px rgba(193, 37, 250, .22); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 16px; }
.active-filters:empty { display: none; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border: 1px solid var(--brand-line); border-radius: 999px; background: #fff; color: var(--brand-deep); font-size: 13px; font-weight: 600; }
.filter-pill span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 14px; line-height: 1; }

/* Cards de habilidade */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.skill-card { position: relative; min-width: 0; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s; animation: card-in .35s both; }
.skill-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--area); opacity: .85; }
.skill-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--area) 40%, #fff); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-top .chip { max-width: 60%; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.card-meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.card-description { color: var(--muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card-action { margin-top: auto; padding-top: 4px; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.card-action span { display: inline-block; transition: transform .2s; }
.skill-card:hover .card-action span { transform: translateX(3px); }
.skeleton { min-height: 190px; background: linear-gradient(90deg, #fff 0%, var(--soft) 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skeleton::before { display: none; }

.empty { padding: 64px 20px; border: 1px dashed #dcd2e1; border-radius: var(--radius); background: #fff; text-align: center; }
.empty-icon { width: 56px; height: 56px; margin: auto; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.empty-icon .search-icon { width: 26px; height: 26px; }
.empty h1, .empty h3 { margin: 16px 0 6px; font-size: 20px; }
.empty p { margin: 0; color: var(--muted); font-size: 15px; }
.empty p a { color: var(--brand-dark); font-weight: 700; }
.empty .btn { margin-top: 18px; }
.empty-404 { margin: 40px 0; }
.empty-404 h1 { font-size: 28px; }
.load-more-wrap { display: grid; place-items: center; margin-top: 26px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(20, 11, 25, .55); backdrop-filter: blur(6px); animation: fade-in .2s both; }
.modal { width: min(720px, 100%); max-height: min(840px, calc(100vh - 44px)); overflow: auto; border-radius: 24px; background: #fff; box-shadow: 0 35px 100px rgba(21, 5, 28, .35); animation: modal-in .25s both; }
.modal-header { position: sticky; top: 0; z-index: 2; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.modal-badges { display: flex; align-items: center; gap: 8px; min-width: 0; }
.modal-content { padding: 24px 26px 28px; }
.modal h2 { margin: 6px 0 20px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.detail small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.detail strong { display: block; font-size: 14px; line-height: 1.4; }
.skill-text { margin-top: 18px; padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 4px 14px 14px 4px; background: var(--brand-soft); }
.skill-text small { display: block; margin-bottom: 6px; color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.skill-text p { margin: 0; color: #43344b; font-size: 16px; line-height: 1.7; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tips-title, .panel-title { margin: 26px 0 12px; font-size: 18px; letter-spacing: -.01em; }
.tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tips li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.tips li.tip-4edu { border-color: var(--brand-line); background: linear-gradient(135deg, #fff, var(--brand-soft)); }
.tips li.tip-4edu p { margin: 2px 0 8px; }
.tips li.tip-4edu > span { background: var(--brand); color: #fff; }
.tip-4edu-label { display: block; color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tips li > span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 800; }

/* Páginas internas */
.page { padding: 28px 24px 80px; background: linear-gradient(180deg, color-mix(in srgb, var(--area) 6%, #fff) 0, #fff 340px); }
.page-inner { width: min(1180px, 100%); margin: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--brand-dark); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.skill-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.skill-hero { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.skill-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.skill-hero h1 { margin: 6px 0 20px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.skill-hero h1 a:hover { color: var(--brand-dark); }
.skill-quote { margin: 0; padding: 20px 22px; border-left: 4px solid var(--area); border-radius: 4px 14px 14px 4px; background: color-mix(in srgb, var(--area) 8%, #fff); }
.skill-quote small { display: block; margin-bottom: 6px; color: color-mix(in srgb, var(--area) 75%, #000); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.skill-quote p { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.panel { margin-top: 28px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cards-compact .card-description { -webkit-line-clamp: 2; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.pager-link { min-width: 160px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .2s; }
.pager-link:hover { border-color: var(--brand); }
.pager-link small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.pager-link strong { color: var(--brand-dark); font-size: 15px; }
.pager-next { margin-left: auto; text-align: right; }
.skill-aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.skill-aside .cta { margin: 0; flex-direction: column; align-items: flex-start; }
.skill-aside .cta .btn { width: 100%; }
.facts { margin: 0; padding: 6px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
.facts dd a { color: var(--brand-dark); }
.aside-search { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 1px dashed #d9cddf; border-radius: 14px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.aside-search:hover { border-color: var(--brand); background: var(--brand-soft); }

.group-hero { padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.group-hero h1 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.muted-title { color: #b3a9b8; font-weight: 700; }
.group-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.group-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.group-stats div { padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.group-stats dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.group-stats dd { margin: 0; font-size: 18px; font-weight: 800; }
.group-toolbar { position: sticky; top: 68px; z-index: 20; display: flex; align-items: center; gap: 12px; margin: 22px -24px 4px; padding: 12px 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); }
.year-nav { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.year-nav::-webkit-scrollbar { display: none; }
.year-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: .2s; }
.year-nav a:hover { border-color: var(--area); color: color-mix(in srgb, var(--area) 75%, #000); }
.year-nav a span { color: var(--muted); font-size: 12px; }
.page-filter { flex: 0 0 280px; }
.year-group { margin-top: 26px; }
/* Cards vindos do servidor aparecem direto, sem animação de entrada (que atrasa o LCP). */
.year-group .skill-card, .cards-compact .skill-card { animation: none; }
.year-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 20px; letter-spacing: -.01em; }
.year-title span { color: var(--muted); font-size: 14px; font-weight: 600; }
.page .cta { margin-top: 40px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: toast-in .25s both; }

/* Janela flutuante de divulgação */
.promo { position: fixed; right: 24px; bottom: 24px; z-index: 250; width: min(360px, calc(100vw - 32px)); padding: 22px 22px 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: linear-gradient(140deg, var(--brand-deep), var(--brand-dark)); color: #fff; box-shadow: 0 24px 60px rgba(70, 18, 92, .45); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s, transform .3s; }
.promo.open { opacity: 1; transform: none; }
.promo::before { content: ""; position: absolute; right: -60px; top: -70px; width: 180px; height: 180px; border: 30px solid rgba(255, 255, 255, .07); border-radius: 50%; pointer-events: none; }
.promo > * { position: relative; }
.promo-head { display: flex; align-items: center; gap: 10px; }
.promo-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #fff; font-size: 19px; }
.promo-eyebrow { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.promo-title { display: block; margin-top: 14px; font-size: 17px; line-height: 1.35; }
.promo-text { margin: 8px 0 14px; color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.55; }
.promo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.promo-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.promo-option-emoji { font-size: 22px; line-height: 1; }
.promo-option:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.promo-option[aria-pressed="true"] { border-color: #fff; background: rgba(255, 255, 255, .18); }
.promo-option:focus-visible, .promo-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.promo-cta.btn-primary { width: 100%; background: #fff; color: var(--brand-deep); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.promo-cta.btn-primary:hover { background: #fff; color: var(--brand-dark); transform: translateY(-1px); }
.promo-dismiss { display: block; margin: 8px auto 0; padding: 6px 10px; border: 0; background: transparent; color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; }
.promo-dismiss:hover { color: #fff; text-decoration: underline; }

/* Rodapé */
.site-footer { padding: 36px 24px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { width: min(1180px, 100%); margin: auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-brand { max-width: 380px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--brand-dark); }

@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1000px) {
  .skill-layout { grid-template-columns: 1fr; }
  .skill-aside { position: static; }
  .code-explainers { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; z-index: 60; inset: 80px 16px auto; transform: translateY(-12px); opacity: 0; pointer-events: none; box-shadow: 0 30px 80px rgba(28, 8, 36, .22); transition: .2s; }
  .filters.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-filter-button { display: inline-flex; height: 46px; }
  .feature-grid { grid-template-columns: 1fr; }
  .top-nav-link { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar-inner { height: 60px; padding: 0 16px; }
  .brand-logo { height: 28px; max-width: 130px; }
  .brand-badge { display: none; }
  .top-nav .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .hero { padding: 48px 16px 52px; }
  .hero-copy { font-size: 15px; }
  .search-box { height: 60px; padding: 0 8px 0 16px; border-radius: 16px; }
  .search-box input { font-size: 16px; }
  .search-box .btn, .search-kbd { display: none; }
  .search-box-sm .btn { display: inline-flex; }
  .suggestion-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 56px 16px; }
  .results-view { padding: 16px 12px 56px; }
  .results-toolbar { padding: 8px; gap: 6px; }
  .icon-button { width: 40px; height: 40px; }
  .mobile-filter-button { padding: 0 12px; }
  .cards { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-height: 92vh; border-radius: 22px 22px 0 0; }
  .modal-content { padding: 20px 18px 26px; }
  .modal h2 { font-size: 22px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
  .page { padding: 20px 16px 60px; }
  .skill-hero, .group-hero { padding: 22px 18px; border-radius: 18px; }
  .skill-quote p { font-size: 16px; }
  .group-toolbar { flex-direction: column; align-items: stretch; margin: 18px -16px 4px; padding: 10px 16px; top: 60px; }
  .page-filter { flex: none; }
  .pager-link { min-width: 0; flex: 1; }
  .promo { right: 16px; bottom: 16px; padding: 20px 18px 14px; }
  /* Desfoque de fundo é caro em celulares: usa fundo quase opaco no lugar. */
  .topbar, .group-toolbar, .modal-header, .hero-stats, .modal-backdrop { backdrop-filter: none; }
  .topbar, .group-toolbar { background: rgba(255, 255, 255, .97); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .site-footer, .skill-aside, .action-row, .pager, .cta, .group-toolbar, .promo { display: none !important; }
  .skill-layout { grid-template-columns: 1fr; }
  .skill-hero, .group-hero { box-shadow: none; }
}
