/* ---------- tokens (claro por padrão; escuro por preferência do sistema ou pelo botão) ---------- */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --ink: #161b26;
  --ink-2: #566074;
  --line: #dde1e8;
  --accent: #1d5bd6;
  --accent-ink: #ffffff;
  --accent-soft: #e6eefc;
  --tag-bg: #eceff4;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
  --radius: 12px;
  --top-bg: #0b1220;
  --top-ink: #e6ebf5;
  --top-ink-2: #9aa6bd;
  --top-line: #1e2a40;
  --top-field: #121b2e;
  --band-a: #0f2350;
  --band-b: #1d4fb8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1320;
    --surface: #141c2c;
    --surface-2: #1a2436;
    --ink: #e7ecf5;
    --ink-2: #9ba7bd;
    --line: #26324a;
    --accent: #6ea2ff;
    --accent-ink: #081226;
    --accent-soft: #172a4d;
    --tag-bg: #1f2a40;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    --top-bg: #070b14;
    --top-line: #182238;
    --top-field: #0f1726;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1320;
  --surface: #141c2c;
  --surface-2: #1a2436;
  --ink: #e7ecf5;
  --ink-2: #9ba7bd;
  --line: #26324a;
  --accent: #6ea2ff;
  --accent-ink: #081226;
  --accent-soft: #172a4d;
  --tag-bg: #1f2a40;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  --top-bg: #070b14;
  --top-line: #182238;
  --top-field: #0f1726;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- cabeçalho geral ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--top-bg); color: var(--top-ink); border-bottom: 1px solid var(--top-line); }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; color: #fff; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #3b82f6, #22d3ee); color: #06142e; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.topnav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.topnav > a, .dd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--top-ink); text-decoration: none; font: 600 14.5px var(--font); background: none; border: 0; cursor: pointer; }
.topnav > a:hover, .dd-btn:hover, .dd.open .dd-btn { background: rgba(255, 255, 255, .07); color: #fff; }
.topnav .ico { color: var(--top-ink-2); }
.dd-btn .chev { width: 14px; height: 14px; transition: transform .15s; }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd { position: relative; }
.dd-panel { display: none; position: absolute; top: calc(100% + 10px); left: 0; width: min(640px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px; }
.dd.open .dd-panel { display: block; }
.dd-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.dd-head a { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 13px; text-decoration: none; }
.dd-head a .ico { width: 14px; height: 14px; }
.dd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; max-height: 60vh; overflow: auto; }
.dd-grid a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 550; }
.dd-grid a:hover { background: var(--accent-soft); }
.dd-logo { display: grid; place-items: center; width: 54px; height: 32px; flex: none; border-radius: 6px; background: #fff; border: 1px solid var(--line); overflow: hidden; color: #1d5bd6; font-weight: 700; }
.dd-logo img { width: 100%; height: 100%; object-fit: contain; }
.topsearch { position: relative; flex: 1 1 260px; max-width: 460px; margin-left: auto; }
.topsearch .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--top-ink-2); width: 16px; height: 16px; }
.topsearch input { width: 100%; font: inherit; font-size: 14px; color: var(--top-ink); background: var(--top-field); border: 1px solid var(--top-line); border-radius: 10px; padding: 9px 12px 9px 36px; outline: none; }
.topsearch input::placeholder { color: var(--top-ink-2); }
.topsearch input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--top-line); background: var(--top-field); color: var(--top-ink); cursor: pointer; flex: none; }
.iconbtn:hover { color: #fff; border-color: #34425f; }
.themetoggle .i-moon { display: none; }
:root[data-theme="dark"] .themetoggle .i-sun { display: none; }
:root[data-theme="dark"] .themetoggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themetoggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .themetoggle .i-moon { display: block; }
}
.navtoggle { display: none; }

/* ---------- faixa do site (identifica que o visitante está dentro de um site) ---------- */
.siteband { position: relative; z-index: 10; color: #fff; background: linear-gradient(120deg, var(--band-a), var(--band-b)); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
.siteband::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 200px at 85% 0%, rgba(34, 211, 238, .18), transparent 70%); }
.siteband .wrap { position: relative; }
.siteband-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px 10px; }
.site-id { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; }
.site-logo { display: grid; place-items: center; width: 156px; height: 56px; flex: none; border-radius: 10px; background: #fff; overflow: hidden; color: var(--band-a); font: 700 22px var(--serif); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.site-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.site-text { display: flex; flex-direction: column; min-width: 0; }
.site-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #a9c6ff; }
.site-kicker .ico { width: 13px; height: 13px; }
.site-title { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.site-all { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.site-all:hover { background: rgba(255, 255, 255, .18); }
.site-all .ico { width: 16px; height: 16px; }
.sitenav-toggle { display: none; }

.sitenav ul { list-style: none; margin: 0; padding: 0; }
.sitenav > ul { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; }
.sitenav li { position: relative; display: flex; align-items: center; }
.sitenav > ul > li > a, .sitenav > ul > li > .nolink { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, .88); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sitenav > ul > li > a .ico { width: 15px; height: 15px; }
.sitenav > ul > li.has-sub > a, .sitenav > ul > li.has-sub > .nolink { padding-right: 4px; border-radius: 999px 0 0 999px; }
.sitenav > ul > li:hover > a, .sitenav > ul > li:hover > .nolink, .sitenav > ul > li:hover > .sub-toggle { background: rgba(255, 255, 255, .1); color: #fff; }
.sitenav > ul > li.active > a, .sitenav > ul > li.active > .nolink, .sitenav > ul > li.active > .sub-toggle { background: #fff; color: var(--band-a); }
.sub-toggle { display: inline-grid; place-items: center; height: 37px; width: 28px; padding: 0 6px 0 0; border: 0; border-radius: 0 999px 999px 0; background: none; color: inherit; cursor: pointer; color: rgba(255, 255, 255, .75); }
.sub-toggle .ico { width: 14px; height: 14px; transition: transform .15s; }
.sitenav li.open > .sub-toggle .ico { transform: rotate(180deg); }
/* painéis suspensos */
.sitenav li ul { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; max-width: 340px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 30; }
.sitenav li ul::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.sitenav li ul li { display: flex; }
.sitenav li ul ul { top: -9px; left: calc(100% + 6px); }
.sitenav li ul a, .sitenav li ul .nolink { flex: 1; display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; }
.sitenav li ul a:hover { background: var(--accent-soft); color: var(--accent); }
.sitenav li ul li.active > a { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sitenav li ul .sub-toggle { color: var(--ink-2); height: auto; align-self: stretch; border-radius: 8px; padding: 0; width: 30px; }
.sitenav li ul .sub-toggle .ico { transform: rotate(-90deg); }
@media (hover: hover) and (min-width: 861px) {
  .sitenav li:hover > ul { display: block; }
}
.sitenav li.open > ul { display: block; }

/* ---------- rodapé ---------- */
footer.site { margin-top: 72px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }

/* ---------- início ---------- */
.hero { position: relative; padding-block: 60px 48px; background: radial-gradient(900px 320px at 15% -10%, var(--accent-soft), transparent 70%), var(--bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--banner) center / cover no-repeat; opacity: .08; }
.hero .wrap { position: relative; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin: 0 0 10px; letter-spacing: -.015em; }
.hero p { margin: 0 0 24px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.stat { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; box-shadow: var(--shadow); }
.stat strong { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.stat .ico { color: var(--accent); }
a.stat:hover { border-color: var(--accent); }

/* busca */
.search input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 40px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px center; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search.big { display: block; max-width: 580px; }
.search.big input { padding-block: 14px; font-size: 16px; box-shadow: var(--shadow); }

/* seções + cartões */
.block { margin-top: 44px; }
.block h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 14px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.cover { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.ph { display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 45% 42%), hsl(calc(var(--h) + 40) 50% 30%)); }
.cover.ph span { font-family: var(--serif); font-size: 34px; color: rgba(255, 255, 255, .92); letter-spacing: .04em; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-title { font-weight: 650; line-height: 1.3; }
.card-text { color: var(--ink-2); font-size: 13.5px; }
.card-meta { margin-top: auto; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 650; color: var(--accent); }
.card-cta .ico { width: 15px; height: 15px; transition: transform .15s; }
.card:hover .card-cta .ico { transform: translateX(3px); }
.card.mini .card-body { padding: 16px; min-height: 112px; }
.kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; }
.cover.banner { background: #fff; border-bottom: 1px solid var(--line); }
.cover.banner img { object-fit: contain; padding: 10px; }

/* faixa "Sites" na página inicial */
.sites-band { margin-top: 56px; padding-block: 44px 52px; color: #fff; background: linear-gradient(120deg, var(--band-a), var(--band-b)); position: relative; overflow: hidden; }
.sites-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 90% 0%, rgba(34, 211, 238, .2), transparent 70%); pointer-events: none; }
.sites-band .wrap { position: relative; }
.band-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.band-head > div { flex: 1 1 320px; }
.band-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.band-icon .ico { width: 26px; height: 26px; }
.band-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; }
.band-head p { margin: 4px 0 0; color: #c9d8f5; max-width: 70ch; }
.band-count { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-weight: 650; font-size: 14px; }
.sites-band .card { color: var(--ink); border-color: transparent; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.sites-band .card:hover { border-color: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
.sites-band .status { color: #c9d8f5; }

details summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
details summary::-webkit-details-marker { display: none; }
details summary h2 { display: inline; margin: 0; }
details summary::before { content: "▸"; color: var(--ink-2); transition: transform .15s; }
details[open] summary::before { transform: rotate(90deg); }
.count { background: var(--tag-bg); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.hint { color: var(--ink-2); font-size: 13px; }
.aux { columns: 260px auto; column-gap: 28px; padding: 0; margin: 16px 0 0; list-style: none; }
.aux li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; font-size: 14px; }
.aux li span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.aux a { text-decoration: none; }
.aux a:hover { text-decoration: underline; }

/* ---------- páginas de lista ---------- */
.crumbs { margin-top: 20px; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 6px; }
.list-head h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.meta { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.intro { color: var(--ink-2); max-width: 75ch; }
.prose img { height: auto; border-radius: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 8px; }
.toolbar .search { flex: 1 1 280px; }
.filters { display: contents; }
.filters select { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 32px 8px 14px; max-width: 240px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.filters select.on { border-color: var(--accent); background-color: var(--accent-soft); }
.status { color: var(--ink-2); font-size: 13px; margin: 6px 0 10px; min-height: 1.2em; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; cursor: pointer; user-select: none; }
th:hover { color: var(--ink); }
th[aria-sort="ascending"]::after { content: " ↑"; color: var(--accent); }
th[aria-sort="descending"]::after { content: " ↓"; color: var(--accent); }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--accent-soft); }
tbody tr:last-child td { border-bottom: 0; }
td { max-width: 380px; min-width: 7.5em; }
td:has(.clip) { min-width: 16em; }
td .clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
td img { max-height: 64px; border-radius: 4px; }
td.empty { text-align: center; color: var(--ink-2); padding: 40px; cursor: default; }

.tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: var(--tag-bg); border-radius: 999px; padding: 1px 9px; margin: 1px 4px 1px 0; font-size: 12.5px; white-space: nowrap; }
.rating { color: #c08a12; white-space: nowrap; }
.thumb { display: inline-block; margin: 0 6px 6px 0; }
.file { display: inline-block; margin: 0 8px 4px 0; word-break: break-all; }
.file::before { content: "📄 "; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.pager button { font: inherit; font-size: 14px; min-width: 38px; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { padding: 6px 4px; color: var(--ink-2); }

/* ---------- páginas dos sites ---------- */
.site-banner { margin: 16px 0 8px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.site-banner img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
/* conteúdo escrito pelos autores: fundo claro sempre, para respeitar as cores originais */
.page-content { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); margin-top: 16px; overflow-wrap: anywhere; color-scheme: light; box-shadow: var(--shadow); }
.page-content > :first-child { margin-top: 0; }
.page-content img { height: auto; border-radius: 6px; }
.page-content table { width: auto; max-width: 100%; }
.page-content a { color: #1d4fb8; }

/* ---------- ficha (diálogo) ---------- */
dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(8, 12, 22, .6); }
.dlg-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 0; }
.close { font-size: 26px; line-height: 1; border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 0 4px; }
.close:hover { color: var(--ink); }
dl { margin: 0; padding: 8px 22px 22px; display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); column-gap: 20px; }
dt { padding: 10px 0; color: var(--ink-2); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
dd { min-width: 0; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
dd img { max-height: 320px; height: auto; border-radius: 6px; }

/* ---------- telas médias e pequenas ---------- */
@media (max-width: 1080px) {
  .topnav > a .ico, .dd-btn > .ico:first-child { display: none; }
}
@media (max-width: 860px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .navtoggle { display: inline-grid; order: 3; }
  .themetoggle { order: 2; margin-left: auto; }
  .topsearch { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .topnav { order: 4; display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 4px 0; }
  .topbar.menu-open .topnav { display: flex; }
  .topnav > a .ico, .dd-btn > .ico:first-child { display: inline; }
  .dd-panel { position: static; width: auto; margin-top: 6px; box-shadow: none; }
  .dd-grid { grid-template-columns: minmax(0, 1fr); max-height: 50vh; }

  .site-all span { display: none; }
  .site-all { padding: 9px; }
  .site-logo { width: 96px; height: 40px; }
  .sitenav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font: 600 14px var(--font); cursor: pointer; }
  .sitenav { display: none; }
  .siteband.nav-open .sitenav { display: block; }
  .sitenav > ul { flex-direction: column; gap: 2px; }
  .sitenav li { flex-wrap: wrap; }
  .sitenav > ul > li > a, .sitenav > ul > li > .nolink { flex: 1; border-radius: 10px !important; padding: 10px 12px; white-space: normal; }
  .sub-toggle { width: 44px; height: 42px; border-radius: 10px !important; padding: 0; }
  .sitenav li ul { position: static; flex-basis: 100%; min-width: 0; max-width: none; margin: 4px 0 6px 12px; box-shadow: none; }
  .sitenav li ul ul { margin-left: 10px; }
  .sitenav li ul .sub-toggle .ico { transform: none; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 36px 28px; }
  dl { grid-template-columns: minmax(0, 1fr); padding-inline: 18px; }
  .dlg-head { padding-inline: 18px; }
  dt { border-bottom: 0; padding-bottom: 0; }
  .filters select { max-width: 100%; flex: 1 1 140px; }
  .brand > span:last-child { font-size: 16px; }
}
