/* Calendário de protestos — folha larga, fora do app de 470px */

[hidden] { display: none !important; }

.cal-body { background: #1a1814; }

.cal-sheet {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  border-left: 3px solid #000;
  border-right: 3px solid #000;
  position: relative;
  z-index: 1;
}

.cal-top .wordmark { margin: 0; }
.cal-top { height: auto; min-height: var(--topbar-h); padding-top: 8px; padding-bottom: 8px; }
.cal-create,
.cal-mod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.35rem 0.85rem;
  border: 3px solid #000;
  background: var(--acid);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  box-shadow: 4px 4px 0 #000;
}
.cal-mod { background: #fff; margin-right: 0.35rem; }

.cal-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1rem 1.3rem;
}

.cal-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cal-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.15rem, 6.4vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.anunciar {
  margin-top: 1.15rem;
  min-height: 72px;
  padding: 0.85rem 1.5rem;
  border: 3px solid #000;
  background: var(--acid);
  box-shadow: 7px 7px 0 #000;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.anunciar:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 #000; }
.anunciar-note {
  margin: 0.85rem 0 0;
  max-width: 42ch;
  color: var(--muted);
}
.anunciar-submit { min-height: 52px; font-size: 1rem; }

.geo-row,
.date-row,
.radius,
.card-actions,
.mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.geo-status,
.data-label {
  margin: 0.55rem 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.radius { margin-top: 0.7rem; }
.radius button {
  min-height: 36px;
  padding: 0.15rem 0.6rem;
  border: 2px solid #000;
  background: #fff;
  font-weight: 700;
}
.radius button.is-on { background: var(--acid); }

.proximos {
  list-style: none;
  width: min(440px, 100%);
  margin: 0.85rem 0 0;
  padding: 0;
  text-align: left;
}
.proximos a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.45rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.7rem;
  border: 2px solid #000;
  background: #fff;
}
.proximos strong { font-size: 1rem; }
.proximos span,
.proximos em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.86rem;
}
.prox-empty { margin-top: 0.6rem; color: var(--muted); }

.year-label { font-size: 1.35rem; min-width: 3.2ch; }

.date-field input,
.criar-form input,
.criar-form textarea,
.rede-form input {
  border: 2px solid #000;
  background: #fff;
  padding: 0.6rem 0.65rem;
  font: inherit;
  font-size: 1rem;
  width: 100%;
}
.criar-form textarea { min-height: 5.5rem; resize: vertical; }
.date-field input { width: auto; min-height: 44px; }

.cal-more {
  margin-top: 1.1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.year-wrap { padding: 0.2rem 1rem 1.4rem; }
.year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.35rem 1rem;
  max-width: 920px;
  margin: 0 auto;
}
.month-name {
  margin: 0;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.15rem 0.2rem 0.35rem;
}
.month { width: min(100%, 520px); margin: 0 auto; }
.weekdays,
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
}
.week { margin-top: 6px; }
.weekdays span {
  width: 40px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 0.15rem;
}
.day {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  padding: 0;
  border-radius: 50%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 0.95rem;
  flex: none;
}
.day.is-out { color: #8d8d8d; }
.day.is-today { background: var(--stamp); color: #fff; }
.day.has {
  background: var(--acid);
  color: #000;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #000;
}
.day.is-today.has { background: var(--stamp); color: #fff; }
.day:disabled { cursor: default; }
.day.has { cursor: pointer; }

.lista { padding: 0.5rem 1rem 3rem; }
.lista-head { text-align: center; margin-bottom: 0.9rem; }
.lista-head h2 { margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; }
.lista-head p { margin: 0.25rem 0 0; color: var(--muted); }
.lista-vazia { text-align: center; margin: 1rem 0; }
#cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
}

.cal-map-wrap { padding: 0.4rem 1rem 1.4rem; }
#cal-map {
  height: 460px;
  border: 3px solid #000;
  background: #d9d3c5;
}
.map-pin-wrap.leaflet-div-icon {
  background: transparent;
  border: none;
  overflow: visible;
}
.map-spot {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -13px);
  cursor: pointer;
}
.map-days { display: flex; gap: 4px; }
.map-day {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid #000;
  background: var(--stamp);
  color: #fff;
  box-shadow: 2px 2px 0 #000;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
}
.map-city {
  margin-top: 5px;
  background: #fff;
  color: #111;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 2px 5px 3px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.map-city small { display: block; font-size: 0.62rem; letter-spacing: 0.02em; }
.map-city.is-above {
  position: absolute;
  bottom: calc(100% + 4px);
  margin-top: 0;
}

.protest-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  background: #fff;
  border: 3px solid #000;
  scroll-margin-top: 68px;
}
.card-photo { grid-column: 1 / -1; margin: 0; background: #111; }
.card-photo img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
}
.card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  background: var(--stamp);
  color: #fff;
  text-align: center;
}
.card-day { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.card-mon { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }
.card-time { font-size: 0.8rem; }
.card-body { padding: 0.75rem 0.8rem 0.85rem; min-width: 0; }
.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}
.card-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.card-summary { margin: 0.35rem 0 0; font-weight: 700; }
.card-desc { margin: 0.35rem 0 0; white-space: pre-wrap; }
.card-place { margin: 0.2rem 0 0; }
.card-when { margin: 0.15rem 0 0.45rem; color: var(--muted); font-size: 0.92rem; }
.card-wa { margin: 0 0 0.45rem; overflow-wrap: anywhere; }
.card-wa a, .card-links a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.card-links { margin: 0 0 0.5rem; padding-left: 1.1rem; }
.card-links li + li { margin-top: 0.2rem; }
.card-contact { margin: 0 0 0.45rem; font-weight: 700; }
.card-actions { justify-content: flex-start; }
.card-quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid #d5d0c4;
}
.card-quiet button {
  padding: 0.15rem 0;
  background: none;
  border: 0;
  color: #4a463d;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.criar-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.criar-form label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stamp {
  flex-shrink: 0;
  border: 2px solid #000;
  padding: 0.12rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stamp.wait { background: var(--acid); }
.stamp.ok { background: var(--stamp); color: #fff; }

.cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 2px solid #000;
  background: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}
.cal-btn.acid { background: var(--acid); }
.cal-btn.ghost { background: transparent; }
.cal-btn:focus-visible,
.day:focus-visible,
.month-name:focus-visible,
.cal-create:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
}

dialog {
  width: min(560px, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  border: 3px solid #000;
  background: var(--paper);
  padding: 0;
}
dialog::backdrop { background: rgba(13, 13, 13, 0.62); }
.criar-form { padding: 1rem 1rem 1.15rem; }
.criar-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.criar-head h2 { margin: 0; font-size: 1.4rem; }
.criar-note { margin: 0; font-size: 0.95rem; }
.criar-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.opc { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.geo-fill-status { margin: 0; min-height: 1.1em; color: var(--muted); font-size: 0.9rem; }
.js-close { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.cal-erro,
.cal-ok { margin: 0 0 0.8rem; padding: 0.6rem 0.7rem; border: 2px solid #000; }
.cal-banner { margin: 0.8rem 1rem 0; }
.cal-erro { background: var(--stamp); color: #fff; }
.cal-ok { background: var(--acid); }

.solo, .mod { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.back { display: inline-block; margin: 0.4rem 0 1rem; font-weight: 700; }
.mod h1, .solo h1 { margin: 0.4rem 0; letter-spacing: -0.03em; }
.mod-lead { margin-top: 0; max-width: 52ch; }
.mod-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.7rem 0;
  padding: 0.8rem;
  background: #fff;
  border: 3px solid #000;
}
.mod-item h3 { margin: 0 0 0.2rem; }
.mod-item p { margin: 0.15rem 0; }
.mod-meta { color: var(--muted); font-size: 0.9rem; }
.mod-fold { margin-top: 1.2rem; }
.mod-fold summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }

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

.field-help { margin: -0.15rem 0 0; color: var(--muted); font-size: 0.88rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.check-line {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.55rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}
.check-line input { width: 1.15rem !important; height: 1.15rem; margin-top: 0.15rem; flex: none; }
.suggest { position: relative; }
.suggest-list {
  list-style: none;
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 2px solid #000;
}
.suggest-list button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-bottom: 1px solid #e4dfd2;
  background: #fff;
  text-align: left;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}
.link-set { margin: 0; padding: 0.7rem 0.7rem 0.8rem; border: 2px solid #000; background: #fff; }
.link-set legend { padding: 0 0.3rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.link-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0.4rem; margin-bottom: 0.4rem; }
.danger-form { border-top: 2px solid #000; margin-top: 0.2rem; }
.criar-head h2 { line-height: 1.15; }

.rede-banner {
  margin: 0 1rem 1.3rem;
  padding: 1.15rem 1.15rem 1.25rem;
  background: #0d0d0d;
  color: #ebe6d8;
  border: 3px solid #000;
  box-shadow: 8px 8px 0 var(--stamp);
}
.rede-kicker {
  margin: 0 0 0.35rem;
  color: var(--acid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rede-banner h2 {
  margin: 0 0 0.45rem;
  color: var(--acid);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.rede-banner p { margin: 0; max-width: 68ch; }
.rede-form { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: end; margin-top: 0.9rem; }
.rede-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 240px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rede-banner .cal-ok { margin-top: 0.85rem; color: #0d0d0d; }

.peace-banner, .peace-slip {
  margin: 0.2rem 1rem 1rem;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 6px solid var(--stamp);
  max-width: 760px;
}
.peace-slip { margin: 0.15rem 0; }
.peace-banner strong, .peace-slip strong { display: block; font-size: 1.05rem; }
.peace-banner p, .peace-slip p { margin: 0.35rem 0 0; max-width: 68ch; }

.cal-search {
  position: fixed;
  z-index: 35;
  top: 78px;
  right: max(12px, calc(50vw - 640px + 12px));
  width: 250px;
  padding: 0.85rem 0.85rem 1rem;
  background: var(--paper);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
}
.cal-sheet { width: min(1280px, 100%); padding-right: 278px; }
.cal-search h2 { margin: 0; font-size: 1.2rem; }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
#busca-fechar { display: none; }
.cal-search label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cal-search input {
  width: 100%;
  border: 2px solid #000;
  background: #fff;
  padding: 0.65rem 0.7rem;
  font: inherit;
  font-size: 1rem;
}
.search-fab {
  display: none;
  position: fixed;
  z-index: 34;
  right: 12px;
  bottom: 14px;
  min-height: 48px;
  padding: 0 1rem;
  border: 3px solid #000;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  font-weight: 700;
  text-transform: uppercase;
}
.invite-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.invite-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #d5d0c4;
  overflow-wrap: anywhere;
}
.invite-list span { color: var(--muted); flex: none; }

.materiais, .atalho-banner {
  margin: 0 1rem 1.2rem;
  padding: 1rem 1rem 1.15rem;
  border: 3px solid #000;
  background: #fff;
}
.materiais { box-shadow: 6px 6px 0 var(--acid); }
.atalho-banner { background: #0d0d0d; color: #ebe6d8; box-shadow: 6px 6px 0 #000; }
.atalho-banner strong { display: block; color: var(--acid); font-size: 1.2rem; }
.atalho-banner p, .material-list p { margin: 0.4rem 0 0; max-width: 68ch; }
.atalho-banner .field-help { color: #c8c2b4; }
.atalho-banner .cal-btn { margin-top: 0.8rem; }
.material-list { list-style: none; margin: 0.8rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.material-list a { font-weight: 700; font-size: 1.08rem; text-decoration: underline; text-underline-offset: 3px; }
.photo-frame {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 2px solid #000;
  background: #111;
  touch-action: none;
  cursor: grab;
}
.photo-frame img {
  position: absolute;
  left: 0;
  top: 0;
  width: 165%;
  max-width: none;
  height: auto;
  min-height: 100%;
  user-select: none;
  pointer-events: none;
}
.mod-photo { display: block; width: min(100%, 280px); margin-bottom: 0.45rem; border: 2px solid #000; }

@media (max-width: 860px) {
  .cal-sheet { padding-right: 0; width: min(1120px, 100%); }
  .cal-search {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.22s ease;
    border-width: 3px 0 0;
    box-shadow: none;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  .cal-search.is-open { transform: none; box-shadow: 0 -6px 0 #000; }
  #busca-fechar { display: inline; }
  .search-fab { display: inline-flex; align-items: center; }
  .cal-create { max-width: 46vw; font-size: 0.78rem; min-height: 44px; box-shadow: 3px 3px 0 #000; }
}
@media (max-width: 560px) {
  .cal-sheet { border: none; }
  .link-row { grid-template-columns: 1fr; }
  .protest-card { grid-template-columns: 72px 1fr; }
  .rede-banner { margin-left: 0.7rem; margin-right: 0.7rem; }
}
