/* Fontes (arquivos locais) */
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/montserrat-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   EIXO — linguagem visual editorial (jornal sério)
   ========================================================= */
:root {
  --ink: #0d1117;
  --ink-2: #2f3b47;
  --muted: #667380;
  --line: #d9e1e6;
  --line-2: #e9eef1;
  --paper: #f7f9fa;
  --card: #ffffff;
  --navy: #0a2f3c;           /* azul petróleo escuro (fundos) */
  --navy-2: #0e3d4e;
  --accent: #0097b2;         /* azul do logo */
  --accent-ink: #007890;
  --accent-soft: #e4f4f7;
  --accent-line: #b8e1ea;
  --green: #1f7a4f;
  --green-soft: #e6f3ec;
  --red: #b3261e;
  --red-soft: #fbeae8;
  --blue: #0b6b8a;
  --blue-soft: #e4f1f6;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(13,17,23,.05), 0 8px 24px rgba(13,17,23,.06);
  --serif: 'Montserrat Variable', 'Inter Variable', system-ui, sans-serif; /* títulos (sem serifa) */
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.icon { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link-more { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.link-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Cabeçalho de jornal ============ */
.topbar { background: var(--navy); color: #c9d3de; font-size: .78rem; letter-spacing: .02em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.masthead { background: var(--card); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 16px; }
.masthead-side { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.masthead-side b { color: var(--ink); font-weight: 600; }
.masthead-right { text-align: right; }
.nameplate { text-decoration: none; text-align: center; display: block; }
.nameplate img { height: 78px; width: auto; margin: 0 auto; }
.nameplate-title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.8rem); letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.nameplate-tag { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .masthead .wrap { grid-template-columns: 1fr; }
  .masthead-side { display: none; }
}
.mainnav { background: var(--card); border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); position: sticky; top: 0; z-index: 30; }
.mainnav .wrap { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; min-height: 46px; }
.mainnav a { text-decoration: none; padding: 12px 11px; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mainnav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.mainnav .nav-cta { color: var(--accent-ink); }
.menu-toggle { display: none !important; }
@media (max-width: 900px) {
  .mainnav { position: static; }
  .mainnav .wrap { justify-content: center; padding-top: 4px; padding-bottom: 4px; }
  .mainnav a { white-space: nowrap; padding: 7px 8px; font-size: .7rem; }
}
.catbar { border-bottom: 1px solid var(--line); background: var(--paper); overflow-x: auto; }
.catbar .wrap { display: flex; gap: 22px; padding-top: 9px; padding-bottom: 9px; white-space: nowrap; justify-content: center; }
@media (max-width: 900px) { .catbar .wrap { justify-content: flex-start; } }
.catbar a { text-decoration: none; font-size: .84rem; color: var(--muted); }
.catbar a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Marca (sidebar dos painéis) */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand-tag { font-size: .66rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

/* ============ Botões e formulários ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2; letter-spacing: .01em; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); border-color: var(--line); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8f1e18; border-color: #8f1e18; }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: #18643f; border-color: #18643f; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 5px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
input[type=file] { font-size: .86rem; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: .84rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; margin: 0; color: var(--ink); }
.check input { margin: 0; accent-color: var(--navy); }
.check:has(input:checked) { border-color: var(--navy); background: var(--blue-soft); }
.inline-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.inline-check input { margin-top: 4px; accent-color: var(--navy); }
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 14px; border-left: 3px solid currentColor; }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-ok { background: var(--green-soft); color: var(--green); }
.alert-info { background: var(--blue-soft); color: var(--blue); }
.alert-warn { background: var(--accent-soft); color: var(--accent-ink); }

/* ============ Cartões, selos ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-flat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge-verified { background: var(--blue-soft); color: var(--blue); }
.badge-destaque { background: var(--accent-soft); color: var(--accent-ink); }
.badge-premium { background: var(--navy); color: #ffffff; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-yellow { background: var(--accent-soft); color: var(--accent-ink); }
.kicker { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.stars { display: inline-flex; gap: 1px; color: var(--accent); vertical-align: -2px; }
.stars .off { color: #cfd8de; }

/* ============ Home (primeira página) ============ */
.frontpage { padding: 28px 0 10px; }
.front-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
@media (max-width: 960px) { .front-grid { grid-template-columns: 1fr; } }
.edition-line { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.lead-story { display: block; text-decoration: none; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.lead-story h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; margin: 10px 0 12px; font-weight: 700; }
.lead-story:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lead-story .lead-text { font-size: 1.1rem; color: var(--ink-2); max-width: 44em; }
.lead-story .thumb { margin-bottom: 16px; aspect-ratio: 16/8; }
.col-rule > * + * { border-left: 1px solid var(--line); padding-left: 24px; }
@media (max-width: 620px) { .col-rule > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 38em; }
.subscribe { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; }
.subscribe h3 { color: #fff; font-size: 1.2rem; }
.subscribe p { color: #b9c5d3; font-size: .9rem; }
.subscribe .stack-form > * + * { margin-top: 8px; }
.subscribe input, .subscribe select { border-color: transparent; }
.subscribe .alert-ok { background: rgba(255,255,255,.1); color: #fff; }
.subscribe-wide .row > * { flex: 1 1 170px; }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; border-top: 3px solid var(--ink); padding-top: 10px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-intro { color: var(--muted); max-width: 46em; margin: -8px 0 20px; font-size: .95rem; }

.thumb { aspect-ratio: 16/10; width: 100%; object-fit: cover; border-radius: 2px; background: var(--line-2); }
.thumb-ph { aspect-ratio: 16/10; border-radius: 2px; background: var(--line-2); display: flex; align-items: flex-end; padding: 12px; font-family: var(--serif); color: var(--muted); font-size: .9rem; }
.story { text-decoration: none; display: block; }
.story h3 { margin: 8px 0 6px; font-size: 1.12rem; line-height: 1.25; }
.story:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.meta { font-size: .78rem; color: var(--muted); }
.brief-list { list-style: none; padding: 0; margin: 0; }
.brief-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.brief-list li:last-child { border-bottom: 0; }
.brief-list a { text-decoration: none; }
.brief-list a:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.brief-list h4 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin: 3px 0 0; line-height: 1.3; }
.num-list { counter-reset: n; }
.num-list li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.num-list li::before { counter-increment: n; content: counter(n); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--accent); line-height: 1; }
.side-box { border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 30px; }
.side-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); font-weight: 700; margin-bottom: 6px; }
.side-box-soft { background: var(--accent-soft); border: 1px solid var(--accent-line); border-top: 3px solid var(--accent); padding: 16px 18px; margin-bottom: 30px; }

/* Blocos do ecossistema na home */
.eco-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
@media (max-width: 900px) { .eco-grid { grid-template-columns: 1fr; } }
.eco-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.eco-block h2 { font-size: 1.45rem; margin-bottom: 4px; }
.offer-list { list-style: none; margin: 16px 0; padding: 0; }
.offer-list li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.offer-list li:last-child { border-bottom: 0; }
.offer-discount { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--accent-ink); text-align: center; border: 1px solid var(--accent-line); background: var(--accent-soft); padding: 8px 4px; border-radius: 2px; line-height: 1.1; }
.city-list { columns: 2; column-gap: 24px; list-style: none; padding: 0; margin: 14px 0; }
.city-list li { break-inside: avoid; border-bottom: 1px solid var(--line-2); }
.city-list a { display: flex; justify-content: space-between; padding: 8px 0; text-decoration: none; font-size: .92rem; }
.city-list a:hover { text-decoration: underline; }
.city-list span { color: var(--muted); font-size: .82rem; }
.eco-foot { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cat-chips a { font-size: .8rem; text-decoration: none; border: 1px solid var(--line); padding: 4px 9px; border-radius: 2px; color: var(--ink-2); background: #fff; }
.cat-chips a:hover { border-color: var(--ink); color: var(--ink); }

.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c5d3; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 24px; } }

/* ============ Matéria ============ */
.article-head { padding: 36px 0 10px; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; }
.article-cover { margin: 20px 0 28px; }
.article-cover img { width: 100%; border-radius: 2px; aspect-ratio: 16/10; object-fit: cover; }
.prose .video, .editor-preview .video { position: relative; aspect-ratio: 16/9; margin: 1.6em 0; background: #000; border-radius: 2px; overflow: hidden; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: 1.1rem; line-height: 1.75; color: #1b2530; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.2em; }
.prose a { color: var(--blue); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0; }

/* ============ Vitrine de síndicos / diretórios ============ */
.market-hero { background: var(--navy); color: #fff; padding: 40px 0 30px; }
.market-hero h1 { color: #fff; }
.market-hero p { color: #b9c5d3; }
.market-hero .kicker { color: #7fd3e3; }
.searchbar { background: #fff; border-radius: var(--radius); padding: 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; margin-top: 18px; }
@media (max-width: 800px) { .searchbar { grid-template-columns: 1fr !important; } }
.market-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 28px; padding: 28px 0 50px; }
@media (max-width: 900px) { .market-layout { grid-template-columns: 1fr; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; position: sticky; top: 64px; }
@media (max-width: 900px) { .filters { position: static; } }
.filters h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 0 8px; font-weight: 700; }
.filters h4:first-child { margin-top: 0; }
.filters .check { font-size: .78rem; padding: 4px 8px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .15s, border-color .15s; position: relative; }
.pcard:hover { box-shadow: var(--shadow); border-color: #b9c7cf; }
.pcard.is-premium { border-top: 3px solid var(--accent); }
.pcard-photo { aspect-ratio: 4/3; background: var(--line-2); position: relative; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard-photo .ph, .avatar-ph { display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--navy); background: var(--line-2); }
.pcard-photo .ph { width: 100%; height: 100%; font-size: 2.6rem; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-body h3 { font-size: 1.12rem; margin: 0; }
.pcard-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.price { font-weight: 700; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: .76rem; background: var(--paper); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 2px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.with-icon { display: inline-flex; align-items: center; gap: 6px; }

.profile-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 30px 0; }
.profile-head .grid { grid-template-columns: 180px 1fr auto; gap: 26px; align-items: center; }
@media (max-width: 800px) { .profile-head .grid { grid-template-columns: 1fr; } }
.avatar-lg { width: 180px; height: 180px; border-radius: var(--radius); object-fit: cover; background: var(--line-2); }
.avatar-ph { width: 180px; height: 180px; border-radius: var(--radius); font-size: 3.4rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi { padding: 16px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }
.kpi b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-weight: 600; }
.kpi span { font-size: .78rem; color: var(--muted); }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 28px; padding: 28px 0 50px; }
@media (max-width: 960px) { .profile-layout { grid-template-columns: 1fr; } }
.sticky-card { position: sticky; top: 64px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; }
.contact-list .icon { color: var(--muted); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.reply { background: var(--paper); border-left: 3px solid var(--navy); padding: 8px 12px; margin-top: 8px; font-size: .92rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.hot { border-top: 3px solid var(--accent); }
.plan .pprice { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin: 6px 0 14px; }
.plan ul { padding-left: 1.1em; margin: 0 0 18px; }
.steps { counter-reset: s; }
.step-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--accent); }

.dir-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.dir-card.is-featured { border-top: 3px solid var(--accent); }
.logo-box { width: 52px; height: 52px; border-radius: 2px; object-fit: cover; background: var(--line-2); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--navy); flex-shrink: 0; border: 1px solid var(--line-2); }
.discount-big { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 12px 0 2px; color: var(--accent-ink); }
.code-box { border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--accent-ink); padding: 8px 12px; font-size: .9rem; border-radius: 2px; }

/* ============ Autenticação ============ */
.auth-wrap { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; }

/* ============ Painéis (admin e síndico) ============ */
.panel { display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: 100vh; }
.panel-side { background: var(--navy); color: #c3cfdc; padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.panel-side .brand-name { color: #fff; }
.panel-side .brand-tag { display: none; }
.panel-side nav { margin-top: 18px; display: flex; flex-direction: column; gap: 1px; }
.panel-side nav a { text-decoration: none; padding: 8px 12px; border-radius: 2px; font-size: .88rem; display: flex; gap: 10px; align-items: center; }
.panel-side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.panel-side nav .sep { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; opacity: .55; padding: 16px 12px 4px; }
.panel-side .count { margin-left: auto; font-size: .7rem; font-weight: 700; background: #7fd3e3; color: var(--navy); padding: 1px 7px; border-radius: 2px; }
.panel-main { padding: 26px 32px 60px; min-width: 0; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.panel-top h1 { font-size: 1.6rem; margin: 0; }
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel-side { position: static; height: auto; }
  .panel-side nav { flex-direction: row; flex-wrap: wrap; }
  .panel-side nav .sep { display: none; }
  .panel-main { padding: 20px 16px 50px; }
}
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; font-weight: 600; }
.stat span { font-size: .82rem; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #f2f6f8; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td form { display: inline; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.progress { height: 6px; background: var(--line-2); border-radius: 1px; overflow: hidden; }
.progress > div { height: 100%; background: var(--green); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; border-bottom: 1px solid var(--line-2); }
.checklist .dot { width: 16px; height: 16px; border-radius: 2px; border: 1.5px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.checklist .done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.checklist .done { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 20px; background: var(--card); }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; padding: 0 8px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.editor-grid { grid-template-columns: minmax(0,1fr) 300px; align-items: start; }
@media (max-width: 1000px) { .editor-grid { grid-template-columns: 1fr; } }

/* ============ Rodapé ============ */
.site-footer { background: var(--navy); color: #aebccb; padding: 44px 0 26px; margin-top: 40px; font-size: .88rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .78rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 620px) { .topbar-date { display: none; } .topbar .wrap { justify-content: flex-end; } }

code { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; font-size: .9em; }

/* Editor de matérias */
.editor { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.editor textarea { border: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: .98rem; line-height: 1.6; }
.editor textarea:focus { outline: none; }
.editor:focus-within { outline: 2px solid var(--accent); }
.editor-bar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.editor-bar button { border: 1px solid transparent; background: transparent; padding: 5px 9px; border-radius: 3px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--ink-2); }
.editor-bar button:hover:not(:disabled) { background: #fff; border-color: var(--line); }
.editor-bar button.on { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; }
.editor-bar button:disabled { opacity: .4; cursor: default; }
.editor-bar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.editor-count { margin-left: auto; font-size: .75rem; color: var(--muted); padding-right: 6px; }
.editor-preview { padding: 16px 20px; }

/* Publicidade */
.ad { margin: 0 auto; text-align: center; }
.ad-horizontal { padding: 14px 0; }
.ad-vertical { margin-bottom: 30px; }
.ad-label { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-link { display: block; margin: 0 auto; }
.ad-link img { width: 100%; height: auto; margin: 0 auto; }
.ad-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0 auto; width: 100%; border: 1px dashed var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; font-size: .82rem; border-radius: var(--radius-sm); min-height: 60px; }
.ad-empty b { font-weight: 700; }
.ad-empty span { font-size: .72rem; opacity: .8; }
.ad-empty:hover { border-style: solid; }
.ad-band { background: var(--card); border-bottom: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-bottom: 20px; }
.article-main { max-width: 760px; min-width: 0; }
.article-aside { padding-top: 40px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { padding-top: 0; } }
.ad-carousel { margin: 0 auto; position: relative; }
.ad-track { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-sm); background: var(--line-2); }
.ad-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.ad-slide.on { opacity: 1; pointer-events: auto; }
.ad-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.ad-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.ad-dots button.on { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .ad-slide { transition: none; } }
/* Mais conteúdo na página da matéria */
.article-more { margin-top: 34px; }
.hl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.hl-list li { border-bottom: 1px solid var(--line); }
.hl-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 0; text-decoration: none; align-items: start; }
.hl-item img, .hl-ph { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--line-2); }
.hl-ph { display: flex; align-items: flex-end; padding: 6px; font-size: .7rem; color: var(--muted); }
.hl-item b { display: block; font-family: var(--serif); font-size: 1rem; line-height: 1.3; margin-top: 3px; }
.hl-item:hover b { color: var(--accent-ink); }
.hl-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
@media (max-width: 700px) { .hl-list { grid-template-columns: 1fr; } }

/* Ajustes da versão PHP */
.qr-box svg, .qr-box img { width: 200px; height: 200px; image-rendering: pixelated; }
.flash-wrap { max-width: var(--wrap); margin: 14px auto 0; padding: 0 20px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.inline-form { display: inline; margin: 0; }
.inline-form + .inline-form { margin-left: 4px; }

/* ---------- Ferramentas do síndico ---------- */
.tool-cat { font-size: 1.15rem; margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tool-cat:first-child { margin-top: 0; }
.tool-grid { gap: 16px; }
.tool-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-card h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.tool-card p { font-size: .88rem; color: var(--ink-2); margin: 0 0 14px; }
.tool-card-kind { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.tool-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tool-lock { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 16px; color: var(--navy); }
.tool-lock.pulse { animation: toolpulse 1s ease 2; }
@keyframes toolpulse { 50% { box-shadow: 0 0 0 4px rgba(0,151,178,.35); } }
.tool-print-note { display: none; }
.tool-app { margin-top: 6px; }
.tool-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; backdrop-filter: blur(4px); }
.tool-bar-bottom { position: static; margin: 14px 0 0; }
.tool-bar-left { display: flex; flex-direction: column; gap: 6px; min-width: 220px; flex: 1; }
.tool-progress-text { font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.tool-progress-bar { display: block; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; max-width: 360px; }
.tool-progress-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.tool-bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tool-doc-title { width: 260px; max-width: 100%; padding: 7px 10px !important; font-size: .85rem !important; }
.tool-locked { opacity: .92; }
.tool-card-block { margin-bottom: 14px; padding: 18px; }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool-field { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.tool-field.wide { grid-column: 1 / -1; }
.tool-field input, .tool-field select, .tool-field textarea { font-weight: 400; color: var(--ink); }
.tool-sec { margin-bottom: 14px; padding: 18px 18px 8px; }
.tool-sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1rem; margin: 0 0 12px; }
.tool-sec-count { font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--paper); border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.tool-sec-count.full { background: var(--green-soft); color: var(--green); }
.tool-items { list-style: none; margin: 0; padding: 0; }
.tool-item { border-top: 1px solid var(--line-2); padding: 10px 0; }
.tool-item-main { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; }
.tool-num { font-size: .75rem; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.tool-item-text { font-size: .93rem; line-height: 1.45; }
.tool-item.is-ok .tool-item-text > span:first-child { color: var(--muted); }
.tool-tip { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.tool-note-btn { display: block; width: fit-content; background: none; border: 0; padding: 0; margin-top: 4px; font-size: .78rem; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-family: inherit; }
.tool-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.tool-seg button { border: 0; border-left: 1px solid var(--line); background: #fff; padding: 7px 11px; font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tool-seg button:first-child { border-left: 0; }
.tool-seg button:hover { background: var(--paper); }
.tool-seg .st-ok[aria-pressed="true"] { background: var(--green); color: #fff; }
.tool-seg .st-pend[aria-pressed="true"] { background: #b86e00; color: #fff; }
.tool-seg .st-prob[aria-pressed="true"] { background: var(--red); color: #fff; }
.tool-seg .st-na[aria-pressed="true"] { background: var(--muted); color: #fff; }
.tool-more { display: grid; grid-template-columns: 1fr 180px 160px; gap: 10px; margin: 10px 0 2px 44px; }
.tool-more[hidden] { display: none; }
.tool-more.insp { grid-template-columns: 1fr 200px; }
.tool-public .tool-bar { top: 50px; }
.tool-x { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius-sm); width: 30px; height: 30px; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.tool-x:hover { color: var(--red); border-color: var(--red); }
.tool-emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tool-emp { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.tool-emp-head { display: flex; justify-content: space-between; align-items: center; }
.tool-quote { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 10px; }
.tool-quote th, .tool-quote td { padding: 6px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.tool-quote thead th { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tool-quote input { padding: 6px 8px !important; font-size: .85rem !important; }
.tool-quote .w-desc { min-width: 200px; } .tool-quote .w-un { width: 60px; } .tool-quote .w-qtd { width: 70px; } .tool-quote .w-price { width: 120px; text-align: right; }
.tool-quote .emp-col.is-min { background: var(--green-soft); }
.tool-quote tfoot th { font-size: .9rem; color: var(--ink); text-align: right; }
.tool-sub { display: block; text-align: right; color: var(--muted); font-size: .74rem; margin-top: 2px; min-height: 1em; }
.tool-hint { color: var(--green); font-weight: 600; margin-top: 4px; }
.tool-legend { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tool-legend .lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-left: 10px; }
.tool-plan-item { border-top: 1px solid var(--line-2); padding: 10px 0; }
.tool-plan-row { display: grid; grid-template-columns: minmax(200px, 2fr) 120px 120px minmax(120px, 1fr) 140px 30px; gap: 8px; align-items: end; }
.tool-plan-row .tool-field.wide { grid-column: auto; }
.tool-gantt { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; margin-top: 8px; }
.tool-gantt i, .tool-legend .lg { background: var(--line-2); height: 8px; border-radius: 2px; }
.tool-gantt i.sep { margin-left: 4px; }
.tool-gantt i.on.st-, .tool-legend .lg.st- { background: #9fc6d3; }
.tool-gantt i.on.st-and, .tool-legend .lg.st-and { background: var(--accent); }
.tool-gantt i.on.st-ok, .tool-legend .lg.st-ok { background: var(--green); }
@media (max-width: 760px) {
  .tool-item-main { grid-template-columns: 28px 1fr; }
  .tool-seg { grid-column: 1 / -1; margin-left: 38px; flex-wrap: wrap; }
  .tool-more { grid-template-columns: 1fr; margin-left: 0; }
  .tool-plan-row { grid-template-columns: 1fr 1fr; }
  .tool-plan-row .tool-field:first-child { grid-column: 1 / -1; }
  .tool-doc-title { width: 100%; }
  .tool-bar { position: static; }
}
@media print {
  .tool-public .tool-app, .tool-public .tool-lock { display: none !important; }
  .tool-public .tool-print-note { display: block; padding: 20px; border: 1px solid #999; }
}
