/* AcheiBR site: estilos compartilhados */

:root {
  --bg: #FAF8F4;
  --text: #1B1B1B;
  --muted: #5C5C57;
  --green: #0E7C4A;
  --green-dark: #0B6139;
  --gold: #F2C233;
  --line: #E6E1D6;
  --card: #FFFFFF;
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--green-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  padding: 20px 0 8px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
}

main {
  padding: 24px 0 56px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--green);
}

.site-footer p {
  margin: 0 0 8px;
}

/* Tipografia */

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

h1 {
  font-size: 32px;
  margin-top: 8px;
}

h2 {
  font-size: 22px;
  margin-top: 40px;
  padding-top: 8px;
}

h3 {
  font-size: 18px;
  margin-top: 24px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: -4px 0 28px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

.accent {
  display: inline-block;
  width: 44px;
  height: 5px;
  background: var(--gold);
  border-radius: 3px;
  margin: 4px 0 20px;
}

/* Blocos */

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-dark);
  color: #FFFFFF;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  background: #F1EDE4;
}

/* Sumário */

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px 16px 36px;
  margin: 24px 0 32px;
  font-size: 15px;
  columns: 2;
  column-gap: 24px;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p:first-of-type {
  margin-top: 10px;
}

.faq details p:last-child {
  margin-bottom: 4px;
}

/* Home */

.home {
  text-align: center;
  padding: 40px 0 24px;
}

.home .brand {
  display: block;
  margin: 0 auto 28px;
}

.home .wordmark {
  width: min(320px, 80%);
  margin: 0 auto;
}

.home h1 {
  font-size: 26px;
  font-weight: 600;
  max-width: 520px;
  margin: 0 auto 12px;
}

.home .soon {
  display: inline-block;
  background: #FBEBB4;
  color: #5A4300;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 8px 0 32px;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-links a {
  font-weight: 500;
}

.home ~ .site-footer {
  text-align: center;
  border-top: 0;
}

/* Responsivo */

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 20px;
  }

  .brand img {
    height: 34px;
  }

  .site-nav {
    display: none;
  }

  .toc {
    columns: 1;
  }
}

@media print {
  .site-nav,
  .toc,
  .btn {
    display: none;
  }

  body {
    background: #FFFFFF;
  }
}
