/* Museu dos Blocos — tema retrô original, sem dependências externas */
:root {
  --ink: #152235;
  --muted: #5d6b7d;
  --paper: #ffffff;
  --canvas: #dce5ee;
  --blue-950: #082d52;
  --blue-900: #0a3f73;
  --blue-800: #0d5597;
  --blue-700: #176cb7;
  --red: #d93025;
  --gold: #f3b316;
  --green: #3d8b16;
  --line: #9bb0c5;
  --soft-line: #d5e0ea;
  --shadow: 0 3px 10px rgba(13, 38, 64, .14);
  --radius: 7px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--canvas);
  background-image: radial-gradient(#c4d0dc 1px, transparent 1px);
  background-size: 16px 16px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  line-height: 1.58;
}
a { color: #075aa5; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #003c73; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 28px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; padding: 10px 14px; background: #fff; border: 2px solid #111; color: #111; }
.skip-link:focus { top: 12px; }
.utility-bar { background: #171f28; color: #e7edf5; border-bottom: 1px solid #33485d; font-size: .78rem; }
.utility-inner { min-height: 32px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.utility-inner p { margin: 0; }
.utility-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.utility-links a { color: #e7edf5; }
.site-header { color: #fff; background: linear-gradient(#1066b2, #07509a 52%, #073c76 53%, #062f5e); border-bottom: 2px solid #001d3e; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.brand-row { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand-mark { width: 172px; height: 52px; display: block; filter: drop-shadow(0 2px 1px rgba(0,0,0,.22)); }
.brand-copy strong { display: block; letter-spacing: .03em; }
.brand-copy span { display: block; color: #d5eaff; font-size: .72rem; }
.site-search { display: flex; width: min(100%, 430px); padding: 4px; background: #fff; border: 1px solid #002753; border-radius: 6px; box-shadow: inset 0 1px 3px rgba(0,0,0,.2); }
.site-search input { min-width: 0; flex: 1; border: 0; outline: none; padding: 7px 9px; color: #1d2a39; }
.nav-wrap { background: #052f5a; border-top: 1px solid rgba(255,255,255,.22); }
.nav-inner { display: flex; align-items: center; }
.nav-toggle { display: none; width: 100%; padding: 11px 4px; border: 0; background: transparent; color: #fff; font-weight: 700; text-align: left; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a { color: #fff; font-weight: 700; font-size: .82rem; padding: 11px 14px; text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: #e8eef5; color: #07365f; border-color: #95a9bd; }
.notice { margin-top: 14px; padding: 10px 14px; background: linear-gradient(#fff7cb, #fbe899); border: 1px solid #d5b83e; color: #674a00; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-size: .82rem; }
.notice strong { color: #5a3c00; }
main { min-height: 54vh; }
.page-shell { padding: 20px 0 42px; }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.content-stack > * + * { margin-top: 18px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-body { padding: 20px; }
.panel-header { padding: 9px 13px; color: #173b61; background: linear-gradient(#eef4f9, #cbd8e5); border-bottom: 1px solid var(--line); font-weight: 800; text-shadow: 0 1px #fff; }
.eyebrow { margin: 0 0 6px; color: #9b2e25; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; line-height: 1.22; color: #133c66; }
h1 { margin: 0 0 12px; font-size: clamp(1.85rem, 4vw, 3rem); }
h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.4vw, 1.85rem); }
h3 { margin: 0 0 7px; font-size: 1.08rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { max-width: 72ch; color: #34465a; font-size: 1.04rem; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .76rem; }
.hero { display: grid; grid-template-columns: 1.3fr .8fr; gap: 20px; align-items: center; padding: 26px; background: linear-gradient(135deg, #fff 0 60%, #edf4fb 60%); }
.hero-art { min-height: 270px; display: grid; place-items: center; border: 1px solid #aac0d4; border-radius: 7px; overflow: hidden; background: #cfe4f8; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 15px; border-radius: 5px; border: 1px solid #14304e; font-weight: 800; font-size: .84rem; text-decoration: none; box-shadow: inset 0 1px rgba(255,255,255,.55), 0 2px 3px rgba(0,0,0,.18); }
.btn-primary { color: #fff; background: linear-gradient(#66a7e0, #2e73b6 50%, #1f5b94 51%, #153f6a); text-shadow: 0 1px 1px #000; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-green { color: #fff; background: linear-gradient(#87d92e, #58af0a 50%, #3f8700 51%, #2e6800); border-color: #244d00; text-shadow: 0 1px 1px #000; }
.btn-green:hover { color: #fff; filter: brightness(1.08); }
.btn-light { color: #20364b; background: linear-gradient(#fff, #e9eef3 50%, #d4dde6 51%, #bcc9d6); border-color: #71869a; }
.btn-light:hover { color: #0b3e6c; filter: brightness(1.05); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffbf1a; outline-offset: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #a3b6c9; border-radius: 7px; box-shadow: 0 2px 6px rgba(0,0,0,.1); overflow: hidden; }
.card-body { padding: 16px; }
.card-icon { display: grid; place-items: center; min-height: 112px; background: linear-gradient(145deg, #dfeffc, #a9c9e6); border-bottom: 1px solid #a3b6c9; }
.card p { color: #495a6d; font-size: .87rem; }
.card a.stretched { font-weight: 800; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #bdcad7; border-radius: 999px; background: #eef4f9; color: #38536c; font-size: .7rem; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { padding: 12px; background: #f3f7fb; border: 1px solid #cbd8e4; border-radius: 5px; }
.stat strong { display: block; color: #114e83; font-size: 1.25rem; }
.stat span { color: #5c6c7c; font-size: .72rem; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; color: #243447; }
.article-body h2, .article-body h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body blockquote { margin: 1.3rem 0; padding: 13px 16px; border-left: 5px solid #176cb7; background: #edf5fc; color: #25425b; }
.callout { padding: 14px 16px; border: 1px solid #b7cce0; border-left-width: 5px; background: #f4f9fd; border-radius: 5px; }
.callout.warning { border-color: #deb74f; background: #fff8d9; }
.callout.good { border-color: #70a64d; background: #f1faea; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li + li { border-top: 1px solid #e1e8ef; }
.sidebar-list a { display: block; padding: 10px 0; font-size: .82rem; font-weight: 700; }
.timeline { position: relative; margin: 8px 0 0; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 5px; bottom: 5px; width: 3px; background: #9bbbd7; }
.timeline-item { position: relative; padding: 0 0 20px 13px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border: 3px solid #fff; background: #176cb7; border-radius: 50%; box-shadow: 0 0 0 1px #6e94b5; }
.timeline-item time { display: inline-block; color: #a4352c; font-weight: 900; font-size: .8rem; }
.year-machine { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.year-controls { padding: 16px; background: #edf4fa; border: 1px solid #b5c8da; border-radius: 6px; }
.year-controls label { display: block; font-weight: 800; color: #173c60; }
.year-output { display: block; margin: 9px 0; color: #c22c22; font: 900 2.3rem/1 "Trebuchet MS", sans-serif; }
.year-controls input[type="range"] { width: 100%; }
.year-screen { min-height: 340px; padding: 20px; border: 5px solid #24384b; border-radius: 10px; background: #f8fbfe; box-shadow: inset 0 0 0 2px #8395a5, 0 4px 10px rgba(0,0,0,.18); }
.year-screen .screen-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid #bdcbd7; }
.year-screen .screen-tag { padding: 3px 7px; color: #fff; background: #a62f25; border-radius: 3px; font-size: .7rem; font-weight: 900; }
.ranking-tools { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-top: 14px; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { padding: 10px; color: #fff; background: linear-gradient(#315d8a, #173a61); text-align: left; font-size: .76rem; }
.ranking-table td { padding: 10px; border-bottom: 1px solid #dfe7ef; vertical-align: middle; font-size: .82rem; }
.ranking-table tr:nth-child(even) { background: #f7fafc; }
.avatar-mini { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid #9caebf; border-radius: 5px; background: #e4ecf3; overflow: hidden; }
.score { display: inline-grid; place-items: center; min-width: 40px; padding: 5px 7px; color: #fff; background: #1e6ba8; border-radius: 4px; font-weight: 900; }
.filter-note { color: #607182; font-size: .75rem; }
.table-wrap { overflow-x: auto; }
.search-results { display: grid; gap: 12px; }
.search-result { padding: 14px; border: 1px solid #c2d0dd; border-radius: 6px; background: #fff; }
.search-result h2 { margin: 0 0 5px; font-size: 1.12rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .8rem; color: #29445f; }
.field input, .field select, .field textarea { width: 100%; padding: 10px; border: 1px solid #8298ad; border-radius: 4px; background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }
.smallprint { color: #627386; font-size: .72rem; }
.ad-slot { display: none; margin: 18px 0; min-height: 90px; place-items: center; border: 1px dashed #9aaaba; background: #f4f6f8; color: #657484; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.ads-enabled .ad-slot { display: grid; }
.site-footer { margin-top: 28px; color: #c7d1dc; background: #18212a; border-top: 5px solid #0b61a7; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 24px; padding: 30px 0 20px; }
.site-footer h2 { color: #fff; font-size: .95rem; }
.site-footer p, .site-footer a { color: #c7d1dc; font-size: .76rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 7px; }
.footer-bottom { padding: 15px 0 22px; border-top: 1px solid #344657; color: #9eabb7; font-size: .7rem; }
.cookie-note { position: fixed; z-index: 50; left: 14px; right: 14px; bottom: 14px; max-width: 720px; margin: auto; padding: 14px; background: #fff; border: 1px solid #7d91a4; border-radius: 7px; box-shadow: 0 10px 35px rgba(0,0,0,.25); font-size: .78rem; }
.cookie-note[hidden] { display: none; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
@media (max-width: 900px) {
  .two-col, .hero, .year-machine { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .brand-row { align-items: stretch; flex-direction: column; padding: 14px 0; }
  .site-search { width: 100%; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; padding-bottom: 8px; }
  .main-nav.is-open { display: grid; }
  .main-nav a { width: 100%; }
  .grid-3, .grid-2, .stat-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .ranking-tools { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 18px; }
  .brand-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
