@import url("./tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
.site-header :focus-visible, .guide-hero :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }
.shell { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--forest); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.preview-notice { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 32px; padding: 5px 16px; background: var(--sage); color: var(--forest); font-size: 12px; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; display: inline-block; border-radius: 50%; background: currentColor; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--forest); color: white; border-bottom: 1px solid #ffffff1f; }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -.045em; flex-shrink: 0; }
.brand img { border-radius: 10px; width: 34px; height: 34px; }
.brand > span { display: inline-flex; align-items: baseline; line-height: 1; white-space: nowrap; transform: translateY(.035em); }
.brand em { font-style: normal; color: var(--accent); }
.header-inner nav { display: flex; align-items: center; gap: 35px; font-size: 14px; font-weight: 500; }
.nav-current { padding-block: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 13px 23px; min-height: 48px; border: 0; border-radius: 999px; background: var(--forest); color: white; font-size: 14px; font-weight: 600; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.button span { font-size: 19px; font-weight: 400; line-height: 1; }
.button-light { background: var(--accent); color: var(--forest); }
.button:active, .filter-button:active { transform: scale(.98); }
.guide-hero { background: var(--forest); color: white; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 64px; max-width: 1120px; padding-block: 66px 74px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.guide-hero .eyebrow { color: var(--accent); }
.hero-inner h1 { margin-top: 22px; font-size: clamp(42px, 4.2vw, 62px); font-weight: 600; line-height: 1.06; }
.hero-inner h1 span { color: var(--accent); }
.hero-description { padding-bottom: 5px; max-width: 400px; justify-self: start; }
.hero-description > p { color: #ebf0e9; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.hero-jump { display: inline-flex; align-items: center; gap: 20px; margin-top: 26px; font-size: 13px; font-weight: 500; color: var(--accent); min-height: 36px; }
.hero-jump span { font-size: 20px; }
.article-library { padding-top: 55px; padding-bottom: 66px; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.library-heading h2, .related-heading h2 { margin-top: 13px; font-size: 30px; font-weight: 600; }
.article-count { color: var(--muted); font-size: 13px; padding-bottom: 3px; white-space: nowrap; }
.library-pagination { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 25px 28px; }
.filter-button { border: 1px solid var(--line); background: transparent; color: #4d6054; min-height: 40px; padding: 8px 17px; font-size: 12px; border-radius: 999px; transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out; }
.filter-button[aria-pressed="true"] { background: var(--forest); color: white; border-color: var(--forest); }
.featured-card { position: relative; display: grid; grid-template-columns: 1fr 1.18fr; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.featured-image { position: relative; min-height: 340px; background: var(--sage); }
.featured-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 35%; }
.featured-image > span { position: absolute; bottom: 12px; left: 17px; padding: 3px 9px; color: white; background: #173a2c99; border-radius: 4px; font-size: 10px; }
.featured-copy { display: flex; flex-direction: column; align-items: start; padding: 34px 36px 30px; }
.featured-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; }
.category { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: 11px; line-height: 1.5; font-weight: 500; }
.featured-kicker { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .075em; }
.featured-copy h3 { margin-top: 24px; font-size: 32px; font-weight: 600; line-height: 1.2; }
.featured-copy > p { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.featured-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 27px; margin-top: auto; }
.featured-bottom time, .card-bottom time { font-size: 11px; color: var(--muted); }
.articles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.article-card { position: relative; display: flex; flex-direction: column; padding: 28px 30px 23px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #ffffff80; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-symbol { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest); }
.article-card h3 { font-size: 25px; font-weight: 600; line-height: 1.25; margin-top: 21px; }
.article-card > p { margin-top: 13px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.card-bottom { margin-top: auto; padding-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.round-arrow { width: 32px; height: 32px; display: grid; place-items: center; color: var(--forest); border: 1px solid var(--line); border-radius: 50%; font-size: 17px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.featured-card .button { position: relative; z-index: 1; }
.article-card:focus-within, .featured-card:focus-within { outline: 2px solid var(--forest); outline-offset: 4px; }
.reading-note { padding: 36px 40px; display: grid; grid-template-columns: auto 1.2fr 1fr; gap: 26px; align-items: center; background: var(--sage); border-radius: var(--radius-card); }
.note-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; border: 1px solid #cbd5c3; color: var(--forest); font-size: 23px; }
.reading-note h2 { margin-top: 12px; font-size: 25px; font-weight: 600; line-height: 1.2; }
.reading-note h2 span { color: var(--forest); }
.reading-note > p { justify-self: end; max-width: 265px; font-size: 13px; color: #4d6054; }
.site-footer { margin-top: 62px; padding-bottom: 24px; }
.footer-top { display: flex; gap: 40px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.site-footer .brand { color: var(--forest); font-size: 23px; }
.site-footer .brand em { color: var(--forest); }
.footer-top > p { font-size: 11px; color: var(--muted); }
.text-link { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; font-size: 12px; font-weight: 500; color: var(--forest); }
.footer-top > .text-link { margin-left: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-cnpj { white-space: nowrap; }
.footer-information { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; font-size: 14px; }
.footer-information a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.information-page { max-width: 880px; padding-bottom: 30px; }
.information-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 15px; border-block: 1px solid var(--line); font-size: 15px; color: var(--forest); }
.information-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.information-content { max-width: 740px; }
.information-content section { scroll-margin-top: 115px; margin-block: 40px; }
.operator-details { margin-block: 25px; padding: 24px; background: var(--sage); border-radius: var(--radius-card); }
.operator-details dt { font-size: 14px; font-weight: 600; color: var(--forest); }
.operator-details dd { margin: 5px 0 20px; font-size: 16px; }
.operator-details dd:last-child { margin-bottom: 0; }
.information-contact { margin-top: 40px; padding: 24px; background: var(--sage); border-radius: var(--radius-card); }
.information-content a, .operator-details dd { overflow-wrap: anywhere; }
.policy-toc { padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--forest); font-size: 15px; }
.policy-toc summary { cursor: pointer; padding-block: 8px; font-weight: 600; }
.policy-toc ol { margin: 14px 0 0; padding-left: 23px; }
.policy-toc li { padding-block: 8px; }
.policy-toc a { text-decoration: underline; text-underline-offset: 4px; }
.policy-source { margin-top: 28px; }
.policy-source h2, #contato-privacidade { scroll-margin-top: 115px; }
.information-contact h2 { margin-top: 0; }
.breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 31px; font-size: 12px; color: var(--muted); }
.breadcrumbs a { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.article-heading { max-width: 880px; padding-block: 37px 41px; }
.article-labels { display: flex; gap: 12px; align-items: center; }
.draft-label { font-size: 11px; color: var(--muted); }
.article-heading h1 { margin-top: 23px; font-size: clamp(35px, 4vw, 52px); font-weight: 600; line-height: 1.13; overflow-wrap: anywhere; }
.article-summary { max-width: 760px; margin-top: 22px; color: #4d6054; font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 29px; }
.author-avatar { display: grid; place-items: center; width: 37px; height: 37px; flex-shrink: 0; border-radius: 50%; background: var(--sage); color: var(--forest); font-size: 11px; font-weight: 700; }
.author-name { display: block; font-size: 12px; font-weight: 500; }
.article-date { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.reviewer { margin-top: 12px; font-size: 12px; color: var(--muted); }
.review-status { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--forest); background: var(--sage); color: var(--forest); font-size: 14px; line-height: 1.7; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 70px; border-top: 1px solid var(--line); padding-top: 39px; }
.article-sidebar { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 110px; max-height: calc(100dvh - 130px); overflow-y: auto; }
.article-content { grid-column: 1; grid-row: 1; min-width: 0; max-width: 740px; }
.toc { background: var(--sage); border-radius: var(--radius-card); padding: 21px 21px 15px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; color: var(--forest); font-size: 13px; font-weight: 600; min-height: 25px; }
.toc summary::-webkit-details-marker { display: none; }
.toc[open] summary span { transform: rotate(180deg); }
.toc ol { list-style: none; padding: 0; margin: 17px 0 0; }
.toc li { font-size: 12px; line-height: 1.6; margin-block: 12px; color: #4d6054; }
.toc a { display: block; padding-block: 2px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.toc-level-3 { padding-left: 12px; }
.back-link { display: inline-block; font-size: 12px; min-height: 44px; margin: 0 8px 8px; padding-top: 17px; scroll-margin: 8px; color: var(--forest); }
.prose { color: #344b3e; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-block: 20px; }
.prose > p:first-child { font-size: 19px; color: var(--ink); }
.prose h2 { margin-top: 43px; margin-bottom: 20px; font-size: 28px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.prose h3 { margin-top: 30px; margin-bottom: 13px; font-size: 22px; font-weight: 600; line-height: 1.35; }
.prose ul, .prose ol { padding-left: 25px; margin-block: 20px; }
.prose li { padding-left: 5px; margin-block: 8px; }
.prose li::marker { color: var(--forest); }
.prose a { text-decoration: underline; text-underline-offset: 4px; color: var(--forest); }
.prose blockquote { margin: 28px 0; padding: 2px 23px; border-left: 3px solid var(--forest); background: var(--sage); border-radius: 0 10px 10px 0; font-size: 16px; }
.table-block { margin-block: 24px; }
.prose .table-hint { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.table-block[data-overflow="false"] .table-hint { display: none; }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { min-width: 140px; padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.prose th:last-child, .prose td:last-child { min-width: 260px; }
.prose code { background: var(--sage); border-radius: 4px; padding: 2px 5px; font-size: .85em; }
.prose pre { overflow-x: auto; padding: 18px; border-radius: 10px; background: var(--sage); line-height: 1.6; }
.prose pre code { padding: 0; }
.prose img { border-radius: var(--radius-card); height: auto; margin-block: 24px; }
.sources { margin-top: 41px; padding: 25px 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #ffffff80; }
.sources h2 { margin-top: 11px; font-size: 21px; font-weight: 600; }
.sources ol { padding-left: 19px; margin: 20px 0 0; font-size: 13px; color: var(--forest); line-height: 1.8; }
.sources a { text-decoration: underline; text-underline-offset: 4px; }
.sources li + li { margin-top: 10px; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.article-actions .text-link { font-size: 14px; }
.related { margin-top: 72px; padding-top: 35px; border-top: 1px solid var(--line); }
.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.related .articles-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 27px; }
.empty-state { margin-top: 30px; padding: 50px 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: white; text-align: center; }
.empty-state h3 { margin-top: 22px; font-size: 30px; }
.empty-state p { margin-top: 18px; color: var(--muted); }
.not-found { padding-block: 90px; }
.not-found h1 { margin-top: 25px; font-size: clamp(36px, 5vw, 60px); }
.not-found > p:not(.eyebrow) { margin-top: 25px; max-width: 500px; color: var(--muted); }
.not-found .button { margin-top: 25px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--forest-hover); }
  .button-light:hover { background: var(--accent-hover); }
  .filter-button:hover:not([aria-pressed="true"]) { background: var(--sage); }
  .card-link:hover, .toc a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (min-width: 1500px) { .shell { width: min(1250px, calc(100% - 120px)); } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .hero-inner { gap: 35px; }
  .hero-description > p { font-size: 15px; }
  .featured-copy { padding: 28px; }
  .featured-copy h3 { font-size: 27px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 35px; }
  .reading-note { gap: 20px; padding: 30px; }
  .reading-note > p { max-width: 200px; }
}
@media (max-width: 900px) {
  .reading-layout { display: flex; flex-direction: column; gap: 27px; padding-top: 27px; }
  .article-sidebar { width: 100%; max-width: 740px; position: static; max-height: none; overflow: visible; }
  .toc { padding: 19px 21px 12px; }
  .toc summary { min-height: 32px; font-size: 14px; }
  .toc li { font-size: 15px; margin-block: 8px; }
  .toc a { padding-block: 7px; }
  .back-link { display: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 89px; }
  .shell { width: calc(100% - 40px); }
  .header-inner { height: 66px; }
  .brand { font-size: 23px; }
  .header-inner nav { gap: 16px; font-size: 14px; }
  .nav-button { display: none; }
  .preview-notice { font-size: 12px; min-height: 30px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 43px 39px; gap: 25px; }
  .hero-inner h1 { font-size: clamp(32px, 10.5vw, 43px); margin-top: 20px; }
  .hero-description { justify-self: start; max-width: 350px; }
  .hero-description > p { font-size: 16px; line-height: 1.75; }
  .hero-jump { margin-top: 17px; font-size: 14px; min-height: 44px; }
  .article-library { padding-top: 35px; padding-bottom: 36px; }
  .library-heading h2 { font-size: 25px; max-width: 230px; }
  .eyebrow { font-size: 12px; letter-spacing: .07em; }
  .article-count { font-size: 13px; }
  .category-filters { gap: 7px; margin-block: 22px; }
  .filter-button { min-height: 44px; font-size: 13px; padding: 8px 14px; }
  .category { font-size: 12px; }
  .featured-label { flex-wrap: wrap; gap: 10px; }
  .featured-kicker { font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
  .featured-bottom time, .card-bottom time { font-size: 13px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-image { min-height: 210px; }
  .featured-image img { object-position: center 37%; }
  .featured-image > span { font-size: 12px; }
  .featured-copy { padding: 25px 22px 23px; }
  .featured-copy h3 { font-size: 27px; margin-top: 19px; }
  .featured-copy > p { font-size: 16px; }
  .featured-bottom { flex-wrap: wrap; padding-top: 23px; }
  .button { padding: 12px 20px; min-height: 47px; }
  .articles-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .article-card { padding: 24px 22px 20px; }
  .article-card h3 { font-size: 25px; }
  .article-card > p { font-size: 16px; }
  .reading-note { display: grid; grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
  .note-symbol { display: none; }
  .reading-note h2 { font-size: 25px; }
  .reading-note h2 br { display: none; }
  .reading-note > p { max-width: 100%; justify-self: start; font-size: 16px; }
  .site-footer { margin-top: 40px; }
  .footer-top { gap: 18px; flex-direction: column; align-items: flex-start; }
  .footer-top > p { margin-left: 0; font-size: 14px; line-height: 1.7; }
  .footer-top > .text-link { margin-left: 0; font-size: 14px; }
  .footer-bottom { font-size: 12px; flex-wrap: wrap; }
  .breadcrumbs { padding-top: 24px; font-size: 13px; }
  .article-heading { padding-block: 27px 29px; }
  .article-heading h1 { margin-top: 20px; font-size: 34px; }
  .article-summary { font-size: 17px; line-height: 1.8; margin-top: 19px; }
  .draft-label, .author-name, .reviewer { font-size: 13px; }
  .article-byline > div { min-width: 0; }
  .article-date { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.6; }
  .reading-separator { display: none; }
  .prose { font-size: 17px; line-height: 1.9; }
  .prose > p:first-child { font-size: 18px; }
  .prose h2 { font-size: 26px; margin-top: 34px; }
  .prose h3 { font-size: 21px; }
  .sources { padding: 23px 21px; }
  .sources ol { font-size: 15px; }
  .prose table { font-size: 15px; }
  .related { margin-top: 45px; padding-top: 28px; }
  .related-heading { flex-wrap: wrap; gap: 8px 16px; }
  .related-heading > div { flex: 1 0 200px; }
  .related-heading h2 { font-size: 25px; }
  .related-heading > .text-link { font-size: 14px; white-space: nowrap; }
}
@media (max-width: 359px) {
  .library-heading h2 { font-size: 23px; max-width: 185px; }
  .featured-copy { padding: 23px 19px; }
  .featured-copy h3 { font-size: 25px; }
  .article-heading h1 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .filter-button { transition: none; }
  .button:active, .filter-button:active { transform: none; }
}
