:root {
  --ar-bg: #f6f6f1;
  --ar-text: #201e1d;
  --ar-navy: #1d3660;
  --ar-navy-hover: #142748;
  --ar-yellow: #e8e63f;
  --ar-yellow-hover: #dbd92f;
  --ar-blue-soft: #e6eaf3;
  --ar-blue-soft-text: #3a4a66;
  --ar-muted: #4d5a70;
  --ar-font-heading: "Source Serif 4", system-ui, sans-serif;
  --ar-font-body: "Source Serif 4", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ar-bg);
  color: var(--ar-text);
  font-family: var(--ar-font-body);
}

a { color: var(--ar-navy); text-decoration: none; }
a:hover { color: var(--ar-navy-hover); }
:focus-visible { outline: 2px solid var(--ar-navy); outline-offset: 2px; }

.ar {
  min-height: 100vh;
  background: var(--ar-bg);
  color: var(--ar-text);
  font-family: var(--ar-font-body);
  padding: 24px 18px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.ar-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 6px auto 24px;
}

.ar-title {
  font-family: var(--ar-font-heading);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  color: var(--ar-navy);
  margin: 0 0 8px;
}

.ar-subtitle {
  margin: 0;
  font-size: 17px;
  color: var(--ar-muted);
}

.ar-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 4px 20px;
  background: var(--ar-blue-soft);
  border-radius: 999px;
}

.ar-search .ar-ico { width: 22px; height: 22px; flex: none; }

.ar-search input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--ar-font-body);
  font-size: 17px;
  color: var(--ar-text);
  background: transparent;
  border: none;
  padding: 14px 0;
  outline: none;
}

.ar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.ar-grid--secretarias {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 14px;
}

.ar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 26px;
  min-height: 160px;
  transition: transform .14s ease, background-color .14s ease;
}

.ar-card--dark { background: var(--ar-navy); color: #ffffff; }
.ar-card--dark:hover { background: var(--ar-navy-hover); transform: translateY(-3px); color: #ffffff; }

.ar-card--yellow { background: var(--ar-yellow); color: var(--ar-text); }
.ar-card--yellow:hover { background: var(--ar-yellow-hover); transform: translateY(-3px); color: var(--ar-text); }

.ar-card--secretaria { background: var(--ar-blue-soft); color: var(--ar-navy); }

/* Phosphor SVGs are single-color glyphs painted via mask-image so they take
   the exact design tokens (currentColor doesn't survive into an <img>'s
   isolated SVG document, and CSS filter() can only approximate a hex). */
.ar-ico {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex: none;
  background-color: currentColor;
  -webkit-mask-image: var(--ico);
  mask-image: var(--ico);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.ar-ico--muted { color: var(--ar-navy); }
.ar-ico--white { color: #ffffff; }
.ar-ico--yellow { color: var(--ar-yellow); }

.ar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  flex: none;
}
.ar-icon .ar-ico { width: 30px; height: 30px; }
.ar-icon--yellow { background: var(--ar-yellow); }
.ar-icon--dark { background: var(--ar-navy); }
/* On a yellow circle the glyph is navy; on a navy circle the glyph is yellow. */
.ar-icon--yellow .ar-ico { color: var(--ar-navy); }
.ar-icon--dark .ar-ico { color: var(--ar-yellow); }

.ar-card-title {
  font-family: var(--ar-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  margin-top: auto;
}

.ar-card--secretaria .ar-card-title { margin-top: 0; }

.ar-card-sub { font-size: 15px; }
.ar-card--dark .ar-card-sub { color: #c9d3e6; }
.ar-card--yellow .ar-card-sub { color: #4d4a24; }
.ar-card--secretaria .ar-card-sub { color: var(--ar-blue-soft-text); }

.ar-contatos { display: flex; gap: 10px; }

.ar-contato {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}
.ar-contato .ar-ico { width: 24px; height: 24px; }
.ar-contato--dark { background: var(--ar-navy); color: #ffffff; }
.ar-contato--dark:hover { background: var(--ar-navy-hover); }
.ar-contato--yellow { background: var(--ar-yellow); color: var(--ar-navy); }
.ar-contato--yellow:hover { background: var(--ar-yellow-hover); }

.ar-empty {
  display: none;
  font-family: var(--ar-font-heading);
  font-style: italic;
  font-size: 19px;
  color: var(--ar-muted);
  margin: 24px 0 0;
}

.ar-hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 26px;
  padding: 24px;
  background: var(--ar-navy-hover);
  border-radius: 26px;
  color: #ffffff;
}
.ar-hours-text { display: flex; flex-direction: column; gap: 4px; }
.ar-hours-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ar-yellow);
}
.ar-hours-title {
  font-family: var(--ar-font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}
.ar-hours-note { font-size: 15px; color: #c9d3e6; }

.ar-section { margin-top: 44px; }
.ar-section h2 {
  font-family: var(--ar-font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--ar-navy);
  margin: 0 0 16px;
}

.ar-map { overflow: hidden; border-radius: 26px; }
.ar-map iframe { display: block; width: 100%; height: 300px; border: none; }

.ar-route {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 24px;
  background: var(--ar-navy);
  color: #ffffff;
  font-size: 17px;
  border-radius: 999px;
}
.ar-route:hover { background: var(--ar-navy-hover); color: #ffffff; }
.ar-route .ar-ico { width: 20px; height: 20px; }

.ar-cal {
  padding: 22px 20px;
  background: var(--ar-blue-soft);
  border-radius: 26px;
}

.ar-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ar-cal-head button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--ar-navy);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.ar-cal-head button:hover { background: var(--ar-navy-hover); }
.ar-cal-head button .ar-ico { width: 20px; height: 20px; }
.ar-cal-head span {
  font-family: var(--ar-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--ar-navy);
}

.ar-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.ar-cal-dow span {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ar-blue-soft-text);
}

.ar-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.ar-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  aspect-ratio: 1;
  border-radius: 999px;
  font-size: 16px;
}
.ar-cal-day-dot { width: 6px; height: 6px; border-radius: 999px; }

.ar-events { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ar-event {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 22px;
}
.ar-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  background: var(--ar-yellow);
  border-radius: 999px;
  color: var(--ar-navy);
}
.ar-event-day { font-family: var(--ar-font-heading); font-size: 20px; font-weight: 600; line-height: 1; }
.ar-event-mon { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.ar-event-info { display: flex; flex-direction: column; gap: 3px; }
.ar-event-title { font-family: var(--ar-font-heading); font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ar-navy); }
.ar-event-note { font-size: 15px; color: var(--ar-muted); }

.ar-no-events {
  font-family: var(--ar-font-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--ar-muted);
  margin: 8px 0 0;
}

.ar-footer {
  margin: 56px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ar-muted);
}
