  /* paleta suave (v3): vinho claro e creme na AGIORB, ocre e creme com azul-marinho na OPORB */
  :root {
    --ink: #2e2624; --text: #4a403c; --muted: #7d726c; --line: #ece3dc; --bg: #fbf8f4; --card: #fff;
    --acc: #9b4a4c; --acc-2: #7a3537; --acc-soft: #f6eae6; --gold: #b8955a;
    --hero-a: #f7ede7; --hero-b: #eedfd6; --foot: #3a2f2d;
    --pend: #9a5b00; --pend-soft: #fff4d6;
    --shadow: 0 1px 2px rgba(60,40,30,.05), 0 6px 20px rgba(60,40,30,.06);
  }
  body.t-oporb { --acc: #a8742c; --acc-2: #7f561c; --acc-soft: #f8eedd; --ink: #24304a; --text: #3f4658;
    --hero-a: #fbf3e4; --hero-b: #f1e4cb; --foot: #24304a; --line: #ece4d6; }
  body.t-igreja { --acc: #8f4a43; --acc-2: #6e3631; --acc-soft: #f5e9e5; }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
  h2 { font-size: 28px; } h3 { font-size: 19px; }
  a { color: var(--acc); }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 768px) { .wrap { padding: 0 32px; } }

  /* barra do protótipo */
  .proto { background: #111; color: #ddd; font-size: 13px; position: sticky; top: 0; z-index: 50; }
  .proto .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; padding-bottom: 8px; }
  @media (max-width: 700px) { .proto { position: static; } .proto .wrap > span:nth-child(2) { display: none; } }
  .proto b { color: #fff; }
  .proto .tag { background: #c99a2e; color: #111; font-weight: 700; border-radius: 4px; padding: 1px 7px; font-size: 11px; letter-spacing: .04em; }
  .proto nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .proto nav a { color: #ddd; text-decoration: none; border: 1px solid #333; border-radius: 999px; padding: 3px 11px; }
  .proto nav a.on { background: #fff; color: #111; border-color: #fff; }
  .addr { margin-left: auto; display: flex; align-items: center; gap: 6px; background: #222; border-radius: 999px; padding: 3px 12px; font-family: ui-monospace, Consolas, monospace; color: #9fe3b0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .addr::before { content: "🔒"; font-size: 11px; }

  /* cabeçalho do site */
  .site-head { background: var(--card); border-bottom: 1px solid var(--line); }
  .site-head .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
  .brand img { width: 52px; height: 52px; object-fit: contain; }
  .brand strong { font-family: "Source Serif 4", serif; font-size: 20px; display: block; }
  .brand small { color: var(--muted); font-size: 12px; display: block; }
  .menu { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
  .menu a { color: var(--text); text-decoration: none; }
  .menu a:hover { color: var(--acc); }

  /* hero */
  .hero { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: var(--text); border-bottom: 1px solid var(--line); }
  .hero .wrap { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 48px; align-items: center; }
  @media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.4fr 1fr; } }
  .hero h1 { color: var(--ink); font-size: clamp(30px, 4.6vw, 46px); }
  .hero p { font-size: 17px; max-width: 40em; }
  .hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--acc); }
  .hero .logo-big { justify-self: center; background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
  .hero .logo-big img { width: min(240px, 56vw); display: block; }
  .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
  .btn-w { background: var(--acc); color: #fff; }
  .btn-o { background: transparent; color: var(--acc-2); border: 1.5px solid var(--acc); }

  /* versículo sob os títulos */
  .verso { font-family: "Source Serif 4", Georgia, serif; font-style: italic; color: var(--muted); font-size: 15px; margin: -4px 0 16px; padding-inline-start: 12px; border-inline-start: 3px solid var(--gold); max-width: 46em; }
  .verso cite { font-style: normal; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; color: var(--acc); margin-inline-start: 6px; white-space: nowrap; }
  .hero .verso { margin-top: 14px; }

  /* capa com foto (nacional) */
  .capa { position: relative; min-height: 340px; display: flex; align-items: flex-end; background: #e9ddd3 center/cover no-repeat; overflow: hidden; }
  .capa svg.ilus { position: absolute; inset: 0; width: 100%; height: 100%; }
  .capa .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 26px; }
  .capa .fala { background: rgba(255,255,255,.9); backdrop-filter: blur(4px); border-radius: 16px; padding: 18px 22px; max-width: 640px; box-shadow: var(--shadow); }
  .capa .fala h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 6px; }
  .capa .leg { position: absolute; right: 12px; top: 12px; }
  .boasvindas { text-align: center; padding: 34px 0 6px; }
  .boasvindas p { font-family: "Source Serif 4", serif; font-size: 21px; color: var(--ink); max-width: 760px; margin: 0 auto; }
  .tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .tags span { font-weight: 700; color: var(--acc); background: var(--acc-soft); border-radius: 999px; padding: 4px 14px; font-size: 13px; letter-spacing: .04em; }
  .atalhos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 24px; }
  .atalho { display: block; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
  .atalho:hover { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
  .atalho .ic { font-size: 26px; display: block; margin-bottom: 6px; }
  .zap { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #3f9a6a; color: #fff; display: grid; place-items: center; font-size: 24px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
  .btn-a { background: var(--acc); color: #fff; }
  .btn-l { background: var(--acc-soft); color: var(--acc-2); }

  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: -26px; position: relative; }
  .stat { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; }
  .stat b { display: block; font-family: "Source Serif 4", serif; font-size: 28px; color: var(--acc); }
  .stat span { color: var(--muted); font-size: 13px; }

  section.blk { padding: 46px 0 8px; }
  .lead { color: var(--muted); max-width: 46em; margin-top: -4px; }
  .grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
  .card h3 { margin-bottom: 6px; }
  .card .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
  .card .v { font-weight: 600; color: var(--ink); }
  .muted { color: var(--muted); }
  .pill { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 10px; background: var(--acc-soft); color: var(--acc-2); font-weight: 600; }
  .pend { display: inline-block; font-size: 12px; border-radius: 6px; padding: 1px 8px; background: var(--pend-soft); color: var(--pend); font-weight: 600; border: 1px dashed #e0b450; }
  .two { display: grid; gap: 24px; }
  @media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
  .timeline { list-style: none; padding: 0; margin: 16px 0 0; }
  .timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
  .timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); }
  .timeline b { color: var(--ink); }
  .course { display: flex; gap: 12px; align-items: flex-start; }
  .course .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-size: 20px; }
  .note { background: var(--pend-soft); border: 1px dashed #e0b450; color: #6a4300; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-top: 18px; }

  footer.site-foot { margin-top: 56px; background: var(--foot); color: #e4dad4; font-size: 14px; }
  footer.site-foot .wrap { padding-top: 28px; padding-bottom: 28px; display: grid; gap: 18px; }
  @media (min-width: 760px) { footer.site-foot .wrap { grid-template-columns: 2fr 1fr 1fr; } }
  footer.site-foot b { color: #fff; }
  footer.site-foot a { color: #fff; }

  /* encontre */
  .finder { display: grid; gap: 18px; margin-top: 20px; }
  @media (min-width: 900px) { .finder { grid-template-columns: 1.05fr 1fr; align-items: start; } .mapbox { position: sticky; top: 60px; } }
  .filters { display: flex; flex-wrap: wrap; gap: 10px; }
  .filters input, .filters select, .drawer input, .drawer textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
  .filters input { flex: 2 1 220px; width: auto; } .filters select { flex: 1 1 180px; width: auto; }
  .polo-h { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
  .ig { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
  .ig:hover, .ig.sel { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
  .ig b { color: var(--ink); }
  .ig small { display: block; color: var(--muted); }
  .mapbox { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .mapbox iframe { width: 100%; height: 340px; border: 0; display: block; background: #eee; }
  .mapbox .info { padding: 14px 16px; }

  /* igreja */
  .cult { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .cult:last-child { border-bottom: 0; }
  .banner { background: var(--acc-soft); color: var(--acc-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-top: 18px; }
  .fab[hidden] { display: none; }
  .fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 60; box-shadow: -10px 0 40px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .25s; display: flex; flex-direction: column; }
  .drawer.open { transform: none; }
  .drawer header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
  .drawer header h3 { margin: 0; flex: 1; }
  .drawer .body { padding: 16px 18px; overflow: auto; flex: 1; }
  .drawer label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; color: var(--ink); }
  .drawer textarea { min-height: 90px; resize: vertical; }
  .drawer .hint { font-size: 12px; color: var(--muted); }
  .x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
  .valid { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
  .valid input { flex: 1 1 180px; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
  .ok { margin-top: 10px; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
  .ok.y { background: #e7f5ec; color: #135c32; } .ok.n { background: #fdecec; color: #8a1c1c; }

/* acréscimos da versão 2 (sites separados) */
.regioes { display: grid; gap: 18px; margin-top: 18px; }
.regiao h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: Inter, sans-serif; margin-bottom: 8px; }
.ufs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.uf { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: inherit; }
.uf:hover { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.uf img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.uf b { color: var(--ink); display: block; }
.uf small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.st { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.st.ok { background: #e7f5ec; color: #135c32; } .st.h { background: #eef1f8; color: #2c3e70; } .st.q { background: var(--pend-soft); color: var(--pend); }
.pres { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pres li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pres b { display: block; color: var(--ink); } .pres span { color: var(--muted); font-size: 13px; }
.doc { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; }
.irma { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: inherit; }
.irma img { width: 64px; height: 64px; object-fit: contain; }
.irma:hover { border-color: var(--acc); }
.trilha { font-size: 13px; color: var(--muted); padding-top: 14px; }
.trilha a { color: var(--muted); }
.filters select.sm { flex: 1 1 140px; }
@media (max-width: 700px) { .boasvindas p { font-size: 18px; } .capa { min-height: 300px; } .capa .wrap { padding-top: 70px; } }
/* barra de progresso das campanhas */
.progresso { margin-top: 8px; max-width: 560px; }
.progresso-barra { height: 14px; background: var(--acc-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progresso-barra span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--acc)); border-radius: 999px; }
.progresso-txt { font-size: 13px; margin-top: 5px; }
/* rádio da Obra */
#radio { position: fixed; left: 16px; bottom: 16px; z-index: 45; }
.radio-btn { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.radio-painel { position: absolute; left: 0; bottom: 52px; width: min(320px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.radio-topo { display: flex; justify-content: space-between; align-items: center; }
.radio-off { display: flex; gap: 10px; align-items: center; background: var(--acc-soft); border-radius: 10px; padding: 10px; margin-top: 8px; font-size: 14px; }
.radio-play { width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; flex: none; }
.radio-item { display: grid; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.radio-item:last-child { border-bottom: 0; }
@media print { #radio { display: none; } }
