:root{
  --bg:#fff;
  --text:#202124;
  --muted:#5f6368;
  --border:#e0e0e0;
  --accent:#1a73e8;
  --accent-soft:#e8f0fe;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.page{
  width:min(1080px,100%);
  min-height:100vh;
  margin:0 auto;
  padding:44px 20px 36px;
}

.brand{
  text-align:center;
  margin-bottom:30px;
}

.brand-link{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}

.brand-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#1a73e8,#6aa8ff);
  color:#fff;
  font-weight:700;
  font-size:1.35rem;
  box-shadow:var(--shadow);
}

.brand-text{
  font-size:clamp(1.7rem,4vw,2.8rem);
  letter-spacing:.16em;
  font-weight:700;
}

.intro{
  max-width:760px;
  margin:0 auto 28px;
  text-align:center;
}

.intro h1{
  margin:0 0 10px;
  font-size:clamp(1.7rem,4vw,2.35rem);
  line-height:1.2;
}

.intro p{
  margin:0;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.6;
}

.hero{
  width:min(760px,100%);
  margin:0 auto 42px;
}

.search-shell{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:0 16px 0 18px;
  box-shadow:var(--shadow);
}

.search-shell:focus-within{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(26,115,232,.12),var(--shadow);
}

.search-icon{
  width:22px;
  height:22px;
  color:var(--muted);
  flex:0 0 auto;
}

.search-icon svg{
  width:100%;
  height:100%;
  display:block;
}

#search{
  width:100%;
  border:0;
  outline:none;
  padding:18px 12px;
  font-size:1.05rem;
  background:transparent;
  color:var(--text);
}

#search::placeholder{
  color:#80868b;
}

.clear-btn{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
  flex:0 0 auto;
}

.clear-btn:hover,
.clear-btn:focus-visible{
  background:#f1f3f4;
  outline:none;
}

.results{
  width:100%;
}

.section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}

.section-heading h2,
.about h2{
  margin:0 0 6px;
  font-size:1.35rem;
}

.section-heading p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}

.count{
  color:var(--muted);
  font-size:.9rem;
  white-space:nowrap;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:16px;
}

.card{
  display:block;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--border);
  border-radius:22px;
  padding:20px;
  background:#fff;
  min-height:180px;
  transition:.2s ease;
}

.card:hover,
.card:focus-visible,
.card.active{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(26,115,232,.12);
  transform:translateY(-2px);
  outline:none;
}

.card-top{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:13px;
}

.icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  flex:0 0 auto;
}

.icon svg{
  width:26px;
  height:26px;
  display:block;
}

.title{
  margin:0 0 7px;
  font-size:1.12rem;
  line-height:1.2;
}

.desc{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.55;
}

.meta{
  font-size:.88rem;
  color:var(--accent);
  word-break:break-word;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background:#f8f9fa;
  color:var(--muted);
  font-size:.78rem;
}

.about{
  max-width:860px;
  margin:48px auto 0;
  padding:28px 0 8px;
  border-top:1px solid var(--border);
}

.about p{
  margin:0 0 13px;
  color:var(--muted);
  line-height:1.7;
}

.footer-nav{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px 22px;
  margin-top:42px;
  padding-top:22px;
  border-top:1px solid var(--border);
}

.footer-nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:.92rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible{
  color:var(--accent);
  text-decoration:underline;
}

.copyright{
  margin:18px 0 0;
  text-align:center;
  color:#80868b;
  font-size:.82rem;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width:640px){
  .page{
    padding:34px 16px 28px;
  }

  .section-heading{
    display:block;
  }

  .count{
    margin-top:8px;
  }

  #search{
    padding:16px 10px;
  }

  .brand-text{
    letter-spacing:.11em;
  }

  .grid{
    grid-template-columns:1fr;
  }
}

@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }

  *{
    transition:none !important;
  }
}

/* Navegação principal compartilhada entre as páginas */

.site-nav {
  width: min(1060px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 auto 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  white-space: nowrap;
  transition: .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.rodape {
  padding: 28px;
  background: var(--azul-escuro);
  color: var(--branco);
  text-align: center;
}

@media (max-width: 640px) {
  .site-nav {
    border-radius: 18px;
    padding: 8px;
    gap: 6px;
  }

  .site-nav a {
    font-size: .84rem;
    padding: 7px 10px;
  }
}

/* =========================================================
   Sub Páginas: Sobre e outras...
   ========================================================= */

   .subpaginas {
    --azul-sobre: #2563eb;
    --azul-escuro-sobre: #172554;
    --fundo-sobre: #f8fafc;
    --texto-sobre: #334155;
    --borda-sobre: #e2e8f0;
    --branco-sobre: #ffffff;
  
    background: var(--fundo-sobre);
    color: var(--texto-sobre);
    line-height: 1.7;
  }
  
  .subpaginas .conteudo-sobre {
    width: 100%;
  }
  
  .subpaginas .container {
    width: min(1000px, 90%);
    margin: 0 auto;
  }
  
  .subpaginas .hero {
    width: 100%;
    margin: 0;
    padding: 110px 0;
    background: linear-gradient(135deg, #dbeafe, #ffffff);
  }
  
  .subpaginas .etiqueta {
    margin: 0 0 12px;
    color: var(--azul-sobre);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  .subpaginas .hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--azul-escuro-sobre);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.1;
  }
  
  .subpaginas .conteudo {
    width: 100%;
    padding: 80px 0;
    background: var(--branco-sobre);
  }
  
  .subpaginas .texto {
    max-width: 820px;
  }
  
  .subpaginas .texto > p {
    margin: 0 0 28px;
    color: var(--texto-sobre);
    font-size: 1.12rem;
  }
  
  .subpaginas .missao {
    margin-top: 55px;
    padding: 35px;
    border-left: 5px solid var(--azul-sobre);
    background: #eff6ff;
  }
  
  .subpaginas .missao h2 {
    margin: 0;
    color: var(--azul-escuro-sobre);
    font-size: 2rem;
    line-height: 1.25;
  }
  
  .subpaginas .copyright {
    color: #64748b;
  }
  
  @media (max-width: 650px) {
    .subpaginas .hero {
      padding: 75px 0;
    }
  
    .subpaginas .conteudo {
      padding: 55px 0;
    }
  
    .subpaginas .missao {
      padding: 25px;
    }
  
    .subpaginas .hero h1 {
      font-size: clamp(2rem, 10vw, 3.2rem);
    }
  }
