/* ==========================================================================
   Pinta Owners
   Palette: cobalt painted on limewash, like an Algarve house-name tile,
   with the logo's sun as the one warm accent.
   ========================================================================== */

:root {
  /* limewash and glaze */
  --cal: #F6F6F2;            /* page */
  --tile: #FFFFFF;           /* raised, glazed surfaces */
  --cal-shade: #ECEDE7;      /* wells, hover */
  /* cobalt */
  --ink: #142152;            /* body text */
  --cobalt: #2443A8;         /* headings, links, primary actions */
  --cobalt-deep: #1A3185;
  --cobalt-wash: #E4E9F7;
  --noite: #111A44;          /* night: ticker, forecast, footer */
  /* accents */
  --sol: #F08A24;            /* the logo's sun */
  --sol-ink: #A84F05;        /* sun, dark enough for text */
  --sol-wash: #FDF0E1;
  --telha: #B23A26;          /* roof tile: errors, emergencies */
  --telha-wash: #FAE8E3;
  --pinho: #2E6B4B;          /* pine: signed in */
  --pedra: #5B6175;          /* muted text */
  --rule: #DADDE6;
  --rule-strong: #B7BDCF;

  --font-display: "Besley", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1160px;
  --shadow-tile: 0 1px 0 rgba(17, 26, 68, .05), 0 22px 44px -22px rgba(17, 26, 68, .55);
  --shadow-tab: 0 10px 22px -14px rgba(17, 26, 68, .6);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (min-width: 900px) { html { font-size: 112.5%; } }
body {
  margin: 0;
  background: var(--cal);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus, var(--cobalt)); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--tile); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-tile);
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; }
.icon--fill { fill: currentColor; stroke: none; }

/* ==========================================================================
   Masthead: the logo tile and the tabs hang from the top edge of the page
   ========================================================================== */
.masthead {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 10px;
  padding: 0 var(--gutter);
}
.masthead__side { display: flex; align-items: flex-start; gap: 8px; }
.masthead__side--end { justify-content: flex-end; }

.plaque {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: clamp(178px, 23vw, 292px);
  padding: 14px 18px 16px;
  background: radial-gradient(120% 70% at 30% 0%, #fff 55%, #f7f8fb);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-tile);
  color: var(--cobalt);
  text-decoration: none;
  animation: hang .9s var(--ease-out) both;
}
/* the painted border of a house-name tile, open at the top where it meets the edge */
.plaque::after {
  content: ""; position: absolute; inset: 0 7px 7px; pointer-events: none;
  border: 1.5px solid var(--cobalt); border-top: 0; border-radius: 0 0 9px 9px;
}
a.plaque:hover { color: var(--cobalt); text-decoration: none; }
.plaque > picture { width: 100%; }
.plaque__logo { width: 100%; height: auto; }
.plaque__title { display: flex; flex-direction: column; align-items: center; font: inherit; }
.plaque__name {
  margin-top: 2px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 1.05rem + 1.9vw, 2.55rem); line-height: .95; letter-spacing: -.01em;
}
.plaque__sub {
  margin-top: 7px; padding-left: .38em;
  font-family: var(--font-mono); font-weight: 600; font-size: .66rem;
  letter-spacing: .38em; text-transform: uppercase; color: var(--ink);
}
.plaque--compact { width: clamp(150px, 17vw, 214px); padding: 10px 14px 12px; }
.plaque--compact .plaque__name { font-size: clamp(1.4rem, 1rem + 1.1vw, 1.9rem); }
.plaque--compact .plaque__sub { font-size: .6rem; margin-top: 5px; }

@keyframes hang {
  from { transform: translateY(-104%); }
  to { transform: none; }
}

.tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 15px;
  background: var(--tile); color: var(--ink);
  border: 0; border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-tab);
  font-weight: 700; font-size: .92rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: padding-top .25s var(--ease-out), background-color .2s;
  animation: hang .7s var(--ease-out) both .15s;
}
.tab:hover { padding-top: 18px; color: var(--ink); text-decoration: none; }
.tab[aria-current="page"] { background: var(--cobalt); color: #fff; }
.tab[aria-current="page"]:hover { color: #fff; }

.tab--lang { padding-right: 12px; }
.tab--lang:focus-within { outline: 3px solid var(--sol); outline-offset: 2px; }
.tab__select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; appearance: none; border: 0;
}
.tab__code { font-family: var(--font-mono); letter-spacing: .06em; }
.tab__name { display: none; }

.nav { display: flex; gap: 8px; }
.nav__link--home { display: none; }
.nav__dot {
  position: absolute; top: 6px; right: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sol); box-shadow: 0 0 0 2px var(--tile);
}
.tab[aria-current="page"] .nav__dot { box-shadow: 0 0 0 2px var(--cobalt); }
.tab--menu { display: none; }

/* The menu: always on phones, and on wider screens when the nav tabs don't fit (is-tight) */
.masthead__side.is-tight .nav.is-open {
  display: grid; gap: 2px;
  position: absolute; top: 64px; right: var(--gutter); z-index: 30;
  width: min(360px, calc(100% - 2 * var(--gutter)));
  padding: 6px; border-radius: var(--r-lg);
  background: var(--tile); box-shadow: 0 30px 60px -20px rgba(17, 26, 68, .6);
}
.masthead__side.is-tight .nav.is-open .tab {
  animation: none; box-shadow: none; border-radius: var(--r-md);
  min-height: 56px; padding: 0 16px; font-size: 1.05rem;
}
.masthead__side.is-tight .nav.is-open .tab:hover { padding-top: 0; background: var(--cobalt-wash); }
.masthead__side.is-tight .nav.is-open .tab[aria-current="page"]:hover { background: var(--cobalt-deep); }
.masthead__side.is-tight .nav.is-open .nav__link--home { display: inline-flex; }
.masthead__side.is-tight .nav.is-open .nav__dot { position: static; margin-left: auto; }

@media (min-width: 760px) {
  .tab__name { display: inline; }
  .tab__code { display: none; }

  /* The room the tabs need depends on the language and on whether Manage shows, so
     common.js steps each side of the logo down until its tabs fit: is-short, then is-tight. */
  .masthead__side.is-short .tab { padding-left: 12px; padding-right: 12px; }
  .masthead__side.is-short .tab__name { display: none; }
  .masthead__side.is-short .tab__code { display: inline; }
  .masthead__side.is-short:not(.is-tight) .nav .tab > .icon:first-child { display: none; }
  .masthead__side.is-tight .tab--lang { flex-direction: column; gap: 2px; padding: 9px 10px 8px; font-size: .72rem; }
  .masthead__side.is-tight .tab--lang .icon--sm { display: none; }
  .masthead__side.is-tight .tab--menu { display: inline-flex; }
  .masthead__side.is-tight .nav { display: none; }
}
@media (max-width: 759px) {
  .masthead { gap: 6px; }
  .tab { min-height: 44px; padding: 10px 11px; font-size: .85rem; }
  .tab:hover { padding-top: 14px; }
  .tab--menu { display: inline-flex; flex-direction: column; gap: 2px; padding: 9px 10px 8px; font-size: .72rem; }
  .tab--lang { flex-direction: column; gap: 2px; padding: 9px 10px 8px; font-size: .72rem; }
  .tab--lang .icon--sm { display: none; }
  .nav { display: none; }
}

/* ==========================================================================
   Home: the view with two tiles at its foot (new documents, the week's
   forecast), then the news line and the footer
   ========================================================================== */
.page--home { background: var(--noite); }
.scene { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.scene__top {
  position: relative; isolation: isolate;
  flex: 1 0 auto; display: flex; flex-direction: column;
  min-height: 86vh; min-height: 86svh;  /* phones: leave room to see the view above the tiles */
}
@media (min-width: 720px) {
  /* on wider screens the whole page — view, tiles, news, footer — fits one screen */
  .scene__top { min-height: 320px; }
}
.scene__photo, .scene__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__photo { z-index: -2; background: #6d8fb6; }
.scene__photo img { object-fit: cover; object-position: 44% 42%; }
.scene__top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 16, 48, .32), rgba(10, 16, 48, 0) 26%),
    linear-gradient(to top, rgba(17, 26, 68, .78), rgba(17, 26, 68, 0) 42%);
}

.home {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 40px var(--gutter) 26px;
}
.home__tiles {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 14px;
  width: 100%;
}

/* "What's new": the committee's announcements, then the new-documents line */
.whatsnew {
  width: min(100%, 400px);
  padding: 14px 12px 6px;
  background: var(--tile); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-tile);
  animation: rise .7s var(--ease-out) both .5s;
}
.whatsnew__title {
  display: flex; align-items: center; gap: 8px; padding: 0 6px 6px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pedra);
}
.whatsnew__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sol); }
.whatsnew__item + .whatsnew__item { border-top: 1px solid var(--rule); }
.whatsnew__link {
  display: grid; grid-template-columns: 1fr; gap: 2px 14px; align-items: center;
  margin: 2px 0; padding: 10px 8px; border-radius: 10px;
  color: var(--ink); text-decoration: none;
}
a.whatsnew__link:hover { background: var(--cal); color: var(--ink); text-decoration: none; }
a.whatsnew__link:hover .whatsnew__more { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.whatsnew__item--docs .whatsnew__link { grid-template-columns: auto 1fr; }
.whatsnew__count {
  grid-row: span 3;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sol); color: var(--noite);
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1;
}
.whatsnew__headline { font-weight: 700; line-height: 1.3; }
.whatsnew__body { color: var(--pedra); font-size: .9rem; line-height: 1.4; white-space: pre-line; }
.whatsnew__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  color: var(--cobalt); font-weight: 700; font-size: .92rem;
}
.whatsnew__more .icon { width: 1.1em; height: 1.1em; }
@media (max-width: 999px) {
  .whatsnew { width: min(100%, 500px); }   /* stacked above the forecast: same width */
}

/* the week's forecast: one small square of sky per day */
.forecast {
  width: min(100%, 500px);
  padding: 14px 14px 12px;
  background: var(--tile); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-tile);
  animation: rise .7s var(--ease-out) both .6s;
}
.forecast__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 8px; }
.forecast__title {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pedra);
}
.forecast__now { display: inline-flex; align-items: center; gap: 6px; color: var(--pedra); font-size: .88rem; white-space: nowrap; }
.forecast__now .icon { width: 18px; height: 18px; color: var(--cobalt); }
.forecast__now strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.forecast__days { display: grid; grid-template-columns: repeat(var(--days, 7), minmax(0, 1fr)); gap: 4px; }
.day { display: grid; justify-items: center; gap: 4px; padding: 6px 0 4px; border-radius: 10px; }
.day--today { background: var(--cobalt-wash); }
.day__name {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pedra);
}
.day--today .day__name { color: var(--cobalt); }
.day__sky {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 9px;
  background: #3a6fc0; background-image: var(--sky);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 6px 12px -8px rgba(17, 26, 68, .7);
}
.day__sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sky-texture, none); }
.day__sky .icon { width: 25px; height: 25px; stroke-width: 1.6; filter: drop-shadow(0 1px 1px rgba(5, 10, 30, .3)); }
.day__hi { margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1; font-variant-numeric: lining-nums; }
.day__lo { font-family: var(--font-mono); font-size: .74rem; line-height: 1; color: var(--pedra); }
.day__rain {
  display: inline-flex; align-items: center; gap: 1px; min-height: 14px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600; color: var(--cobalt);
}
.day__rain .icon { width: 11px; height: 11px; }
.forecast__status {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 118px; color: var(--pedra); font-size: .92rem; text-align: center;
}
@media (max-width: 559px) {
  .forecast { padding: 12px 8px 10px; }
  .forecast__days { gap: 2px; }
  .day__sky { width: 36px; height: 36px; border-radius: 8px; }
  .day__sky .icon { width: 22px; height: 22px; }
  .day__hi { font-size: 1rem; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- news line ---------- */
.ticker {
  --focus: var(--sol);
  display: flex; align-items: stretch;
  min-height: 54px;
  background: var(--noite); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.ticker__label {
  flex: none; display: flex; flex-direction: column; justify-content: center;
  padding: 6px 18px 6px var(--gutter);
  border-right: 1px solid rgba(255, 255, 255, .14);
  line-height: 1.15;
}
.ticker__kicker {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sol);
}
.ticker__source {
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: .98rem;
}
.ticker__source:hover { color: #fff; text-decoration: underline; }
.ticker__viewport {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 160s) linear infinite; }
.ticker[data-paused="true"] .ticker__track,
.ticker__viewport:hover .ticker__track,
.ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; }
.ticker__item {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 0 26px; white-space: nowrap;
  color: #fff; text-decoration: none; font-size: .96rem;
}
.ticker__item:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sol); }
.ticker__list > li { border-left: 1px solid rgba(255, 255, 255, .16); }
.ticker__list:first-child > li:first-child { border-left: 0; }
.ticker__time { font-family: var(--font-mono); font-size: .8rem; color: var(--sol); }
.ticker__msg { padding: 0 26px; color: rgba(255, 255, 255, .78); font-size: .95rem; white-space: nowrap; }
.ticker__msg a { color: #fff; }
.ticker__toggle {
  flex: none; width: 54px; display: grid; place-items: center;
  background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .14); color: #fff;
}
.ticker__toggle:hover { background: rgba(255, 255, 255, .08); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 559px) {
  /* label on its own line so the headlines get the full width */
  .ticker { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .ticker__label {
    grid-column: 1 / -1;
    flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 10px;
    padding: 10px var(--gutter) 0; border-right: 0;
  }
  .ticker__viewport { min-height: 46px; }
  .ticker__toggle { width: 50px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot { --focus: var(--sol); background: var(--noite); color: rgba(255, 255, 255, .86); }
.site-foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: 16px var(--gutter) 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-foot__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.site-foot__label {
  margin-right: 4px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .66);
}
.site-foot__mail { color: #fff; font-weight: 700; }
.site-foot__mail:hover { color: #fff; }
.site-foot__small { flex-basis: 100%; font-size: .82rem; color: rgba(255, 255, 255, .62); }
@media (max-width: 559px) {
  .site-foot__label { flex-basis: 100%; }
  .site-foot__group .social { flex: 1 1 200px; }
}

.social {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px 0 8px;
  background: var(--tile); color: var(--ink);
  border-radius: var(--r-md);
  font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.social:hover { color: var(--ink); text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
.social__glyph { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; }
.social__glyph .icon { width: 18px; height: 18px; }
.social--facebook .social__glyph { background: #1877F2; }
.social--whatsapp .social__glyph { background: #25D366; }
.social--outline { border: 1.5px solid var(--rule-strong); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.strip { position: relative; isolation: isolate; min-height: clamp(176px, 21vw, 248px); }
.strip__photo, .strip__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.strip__photo { z-index: -2; background: #6d8fb6; }
.strip__photo img { object-fit: cover; object-position: 50% 44%; }
.strip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 16, 48, .25), rgba(10, 16, 48, .05) 60%, rgba(246, 246, 242, .0));
}

.inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(32px, 5vw, 60px) var(--gutter) 80px; }
.page-head { display: grid; gap: 12px; margin-bottom: 32px; }
.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sol-ink);
}
.page-title {
  font-family: var(--font-display); font-weight: 700; color: var(--cobalt);
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.015em;
  text-wrap: balance;
}
.lede { max-width: 48ch; font-size: 1.12rem; color: var(--pedra); text-wrap: pretty; }
.section-title {
  font-family: var(--font-display); font-weight: 700; color: var(--cobalt);
  font-size: clamp(1.45rem, 1.1rem + 1vw, 1.85rem); line-height: 1.15;
}

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn--secondary { background: var(--tile); color: var(--cobalt); border-color: var(--rule-strong); }
.btn--secondary:hover { border-color: var(--cobalt); color: var(--cobalt-deep); }
.btn--quiet { background: transparent; color: var(--cobalt); padding: 0 12px; }
.btn--quiet:hover { background: var(--cobalt-wash); color: var(--cobalt-deep); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.field { display: grid; gap: 8px; }
.field__label { font-weight: 700; }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--tile); color: var(--ink);
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-md);
  font-size: 1.05rem;
}
.input::placeholder { color: #80869a; }
.input:focus-visible, .select:focus-visible { outline: 3px solid var(--cobalt-wash); outline-offset: 0; border-color: var(--cobalt); }
.input[aria-invalid="true"] { border-color: var(--telha); }
.select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232443A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pedra); pointer-events: none; }
.search .input { padding-left: 46px; }

.demo-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 28px; padding: 12px 16px;
  border: 1.5px dashed #e3b27c; border-radius: var(--r-md);
  background: var(--sol-wash); color: #5b3205; font-size: .92rem;
}
.demo-note .icon { margin-top: 2px; color: var(--sol-ink); }

/* ==========================================================================
   Residents' area
   ========================================================================== */
.gate { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  /* intro and "inside" list share the left column; the sign-in card sits to the right */
  .gate { grid-template-columns: 1.05fr .95fr; grid-template-areas: "intro form" "inside form"; gap: 0 64px; }
  .gate__intro { grid-area: intro; }
  .gate__inside { grid-area: inside; }
  .gate__card { grid-area: form; }
}
.gate__intro { display: grid; gap: 14px; align-content: start; }
.gate__new {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 8px 14px; border-radius: 999px;
  background: var(--sol-wash); color: #6a3a06; font-weight: 700; font-size: .95rem;
}
.gate__new::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sol); }
.gate__inside { padding-top: 20px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .gate__inside { margin-top: 32px; } }
.gate__inside h2 {
  margin-bottom: 12px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--pedra);
}
.gate__inside ul { display: grid; gap: 10px; }
.gate__inside li { display: flex; gap: 12px; align-items: baseline; }
.gate__inside li::before {
  content: ""; flex: none; width: 14px; height: 2px; background: var(--cobalt); transform: translateY(-4px);
}

/* the sign-in card shares the logo tile's painted border */
.signin {
  position: relative; display: grid; gap: 18px;
  padding: 30px 30px 26px;
  background: var(--tile); border-radius: var(--r-lg); box-shadow: var(--shadow-tile);
}
.signin::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1.5px solid var(--cobalt); border-radius: 9px; opacity: .9;
}
.signin > * { position: relative; z-index: 1; }
.signin__title { display: flex; align-items: center; gap: 10px; }
.signin__title .icon { width: 26px; height: 26px; color: var(--cobalt); }
.signin__status {
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--cobalt-wash); color: var(--ink); font-size: .95rem;
}
.pw { position: relative; }
.pw .input { padding-right: 96px; font-family: var(--font-mono); letter-spacing: .04em; }
.pw__toggle {
  position: absolute; top: 6px; right: 6px; bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; border: 0; border-radius: 6px;
  background: var(--cal-shade); color: var(--cobalt); font-weight: 700; font-size: .88rem;
}
.pw__toggle:hover { background: var(--cobalt-wash); }
.field__error { display: flex; gap: 8px; align-items: flex-start; color: var(--telha); font-weight: 600; font-size: .95rem; }
.field__error .icon { margin-top: 2px; }
.field__error .pips__dots { margin-left: auto; align-self: center; padding-left: 8px; }
.field__error .pip { border-color: var(--telha); }
.field__error .pip--on { background: var(--telha); }
.pips { display: flex; align-items: center; gap: 8px; color: var(--pedra); font-size: .88rem; }
.pips__dots { display: flex; gap: 5px; }
.pip { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--cobalt); }
.pip--on { background: var(--cobalt); }
.signin__help { font-size: .95rem; color: var(--pedra); }
.signin__lede { color: var(--pedra); }
.field__hint { color: var(--pedra); font-size: .88rem; line-height: 1.4; }
.pw + .field__hint, .input + .field__hint, .textarea + .field__hint { margin-top: -2px; }

.locked {
  display: grid; gap: 10px;
  padding: 18px; border-radius: var(--r-md);
  background: var(--telha-wash); color: #5c1a0e;
}
.locked h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--telha); }
.locked__time { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.locked .btn { justify-self: start; margin-top: 4px; }

/* session bar */
.session {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  margin-bottom: 36px; padding: 10px 10px 10px 16px;
  background: var(--tile); border: 1px solid var(--rule); border-radius: var(--r-md);
}
.session__state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.session__who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.session__who::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pinho); box-shadow: 0 0 0 3px rgba(46, 107, 75, .18); }
.session__idle { display: inline-flex; align-items: center; gap: 6px; color: var(--pedra); font-size: .9rem; }
.session__actions { display: flex; flex-wrap: wrap; gap: 4px; }
.session__actions .btn { min-height: 44px; padding: 0 12px; font-size: .92rem; }

.lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 32px; }
.lib-head .page-head { margin-bottom: 0; }
.lib-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lib-loading { padding: 32px 0; color: var(--pedra); }

/* adding files (content management) */
.drop {
  display: grid; justify-items: center; gap: 8px;
  padding: 30px 20px; text-align: center;
  border: 2px dashed var(--cobalt); border-radius: var(--r-lg);
  background: var(--cobalt-wash);
  transition: background-color .15s, transform .15s var(--ease-out);
}
.drop.is-over { background: #d5ddf4; transform: scale(1.01); }
.drop > .icon { width: 34px; height: 34px; color: var(--cobalt); }
.drop__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--cobalt); }
.drop__or { color: var(--pedra); }
.drop__types { color: var(--pedra); font-size: .88rem; }

.queue { display: grid; gap: 12px; }
.queue__title { font-weight: 700; }
.queue__list { display: grid; gap: 10px; }
.queue__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, 13rem) auto; align-items: end; gap: 10px 14px;
  padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--cal);
}
.queue__type { align-self: center; }
.queue__item .field__label { font-size: .85rem; }
.queue__item .input, .queue__item .select { min-height: 46px; font-size: 1rem; }
.queue__file { grid-column: 2 / -1; font-family: var(--font-mono); font-size: .78rem; color: var(--pedra); overflow-wrap: anywhere; }
.queue__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--pedra);
}
.icon-btn:hover { background: var(--telha-wash); color: var(--telha); }
@media (max-width: 639px) {
  .queue__item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .queue__item .field--cat { grid-column: 2 / 3; grid-row: 2; }
  .queue__file { grid-column: 1 / -1; }
}

/* file badge: a little folded-corner document with its type */
.filetype {
  position: relative; display: grid; place-items: end center;
  width: 40px; height: 48px; padding-bottom: 7px;
  border: 1.5px solid currentColor; border-radius: 4px 12px 4px 4px;
  color: var(--cobalt); background: var(--tile);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .04em;
}
.filetype::before {
  content: ""; position: absolute; top: -1.5px; right: -1.5px; width: 12px; height: 12px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 0 3px; background: var(--cal);
}
.filetype--pdf { color: #B23A26; }
.filetype--doc { color: #2443A8; }
.filetype--xls { color: #2E6B4B; }
.filetype--img { color: #8A4FA8; }

/* library */
.lib-tools { display: grid; gap: 14px; margin-bottom: 8px; }
@media (min-width: 900px) { .lib-tools { grid-template-columns: minmax(260px, 340px) 1fr; align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 14px;
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-md);
  background: var(--tile); color: var(--ink); font-weight: 700; font-size: .92rem;
}
.chip:hover { border-color: var(--cobalt); }
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chip__n { font-family: var(--font-mono); font-size: .76rem; opacity: .75; }
.lib-count { margin: 18px 0 0; color: var(--pedra); font-size: .9rem; }

.year { display: grid; gap: 0 32px; padding-top: 28px; }
@media (min-width: 900px) { .year { grid-template-columns: 7rem 1fr; } }
.year__label {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1;
  color: var(--cobalt); padding: 14px 0 10px;
}
@media (min-width: 900px) { .year__label { position: sticky; top: 20px; align-self: start; } }
.docs { border-top: 2px solid var(--ink); }
.doc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 18px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.doc__date {
  display: grid; justify-items: center; width: 3.4rem; line-height: 1.05;
  font-family: var(--font-mono); color: var(--pedra);
}
.doc__day { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.doc__mon { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.doc__body { display: grid; gap: 4px; min-width: 0; }
.doc__title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--pedra); font-size: .88rem; }
.doc__cat { color: var(--sol-ink); font-weight: 700; }
.doc__new {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sol-ink);
}
.doc__new::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sol); }
.doc__actions { display: flex; align-items: center; gap: 6px; }
.doc__open { min-height: 44px; padding: 0 14px; }
@media (min-width: 640px) {
  .doc { grid-template-columns: auto auto minmax(0, 1fr) auto; }
}
@media (max-width: 639px) {
  .doc .filetype { display: none; }
  .doc__actions { grid-column: 2 / -1; }
}
.lib-empty { display: grid; gap: 14px; justify-items: start; padding: 36px 0; color: var(--pedra); }

/* drag anywhere on the page */
.drop-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 24px;
  background: rgba(17, 26, 68, .78); color: #fff;
}
.drop-overlay__inner {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 56px 60px; border: 3px dashed rgba(255, 255, 255, .85); border-radius: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
}
.drop-overlay__inner .icon { width: 48px; height: 48px; }

/* inactivity warning */
.dialog {
  width: min(92vw, 460px); padding: 0;
  border: 0; border-radius: var(--r-lg);
  background: var(--tile); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(17, 26, 68, .7);
}
.dialog::backdrop { background: rgba(17, 26, 68, .6); }
.dialog__body { display: grid; gap: 10px; padding: 28px 28px 8px; }
.dialog__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--cobalt); }
.dialog__count {
  font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.dialog__label { font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pedra); }
.dialog__text { color: var(--pedra); }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 18px 28px 26px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  display: flex; align-items: flex-start; gap: 10px;
  width: max-content; max-width: min(92vw, 540px);
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--noite); color: #fff;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .icon { margin-top: 2px; color: var(--sol); }

/* ==========================================================================
   Content management (admin.html)
   ========================================================================== */
.strip--short { min-height: clamp(150px, 16vw, 200px); }
.denied { display: grid; gap: 24px; justify-items: start; }
.denied [data-session-bar] { justify-self: stretch; }
.console .page-head { margin-bottom: 24px; }

/* tabs: painted tiles in a row */
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2px solid var(--ink);
}
.tabs__tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-md);
  background: var(--tile); color: var(--ink); font-weight: 700;
}
.tabs__tab:hover { border-color: var(--cobalt); }
.tabs__tab[aria-selected="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.tabs__tab .icon { width: 20px; height: 20px; }

.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.panel-lede { max-width: 62ch; margin-top: 6px; color: var(--pedra); }

.cms-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .cms-split { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }
.cms-aside { display: grid; gap: 16px; }
@media (min-width: 1000px) { .cms-aside { position: sticky; top: 20px; } }
.aside-title {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pedra);
}

/* the preview sits on the home page's photo, as it will be seen */
.preview {
  display: grid; place-items: center; min-height: 180px; padding: 22px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(rgba(17, 26, 68, .25), rgba(17, 26, 68, .55)), url("../img/pinta-view-1000.webp") 50% 45% / cover, #6d8fb6;
}
.whatsnew--preview { width: 100%; animation: none; }
.preview__empty { color: #fff; text-align: center; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* forms */
.editor, .card.auto, .user-form {
  display: grid; gap: 16px;
  padding: 22px; background: var(--tile); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.editor { margin-bottom: 20px; border-color: var(--cobalt); box-shadow: var(--shadow-tile); }
.editor__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--cobalt); }
.editor__note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--r-md);
  background: var(--sol-wash); color: #5b3205; font-size: .92rem;
}
.editor__note .icon { margin-top: 2px; color: var(--sol-ink); }
.editor__actions, .row__edit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset > .field__label { padding: 0; margin-bottom: 8px; }
.fieldset > .field { margin-top: 12px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio, .check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.radio {
  min-height: 44px; padding: 0 14px 0 10px;
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-md); background: var(--tile);
}
.radio:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-wash); }
.radio input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--cobalt); }
.check { font-weight: 600; min-height: 44px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row--3 { grid-template-columns: 1fr 1.3fr .8fr; }
}
.textarea { min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.input--short { max-width: 8rem; }
.input:disabled { background: var(--cal-shade); color: var(--pedra); }

/* an announcement's languages: the one it's written in, then the others, folded away */
.langs { gap: 10px; }
.langs__source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.langs__source .select { width: auto; min-width: 13rem; }
.langs__more { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--cal); }
.langs__more > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
  min-height: 52px; padding: 10px 16px; border-radius: var(--r-md);
  list-style: none; cursor: pointer;
}
.langs__more > summary::-webkit-details-marker { display: none; }
.langs__title { font-weight: 700; color: var(--cobalt); }
.langs__more > summary:hover .langs__title { text-decoration: underline; text-underline-offset: 3px; }
.langs__status { grid-row: 2; color: var(--pedra); font-size: .92rem; }
.langs__more > summary .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--cobalt); transition: transform .2s var(--ease-out); }
.langs__more[open] > summary .icon { transform: rotate(180deg); }
.langs__list { display: grid; gap: 16px; padding: 0 16px 18px; }
.tr { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.tr__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 40px; }
.tr__name { font-weight: 700; }
.tr__head .btn { min-height: 40px; margin-left: auto; font-size: .92rem; }
.tr .input { min-height: 46px; font-size: 1rem; }
.tr .textarea { field-sizing: content; max-height: 16rem; }   /* grows with the text where supported */
.badge--tr-auto { background: #E2F1E8; color: var(--pinho); }
.badge--tr-own { background: var(--cobalt-wash); color: var(--cobalt-deep); }
.badge--tr-none { background: var(--cal-shade); color: var(--pedra); }
.user-form { margin-bottom: 20px; }
.user-form .btn, .card.auto .btn { justify-self: start; }
.lib-tools--single { grid-template-columns: minmax(0, 420px) !important; margin-top: 28px; }

/* rows: announcements, documents and users */
.rows { display: grid; gap: 10px; }
.rows__empty { padding: 24px; border: 1.5px dashed var(--rule-strong); border-radius: var(--r-lg); color: var(--pedra); text-align: center; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 18px; align-items: center;
  padding: 16px 18px; background: var(--tile); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
@media (min-width: 900px) { .row { grid-template-columns: minmax(0, 1fr) auto; } }
.row--doc, .row--user { grid-template-columns: auto minmax(0, 1fr); }
@media (min-width: 900px) { .row--doc, .row--user { grid-template-columns: auto minmax(0, 1fr) auto; } }
@media (max-width: 899px) { .row--doc .row__actions, .row--user .row__actions { grid-column: 1 / -1; } }
.row--muted { background: var(--cal); }
.row--muted .row__title { color: var(--pedra); }
.row__main { display: grid; gap: 4px; min-width: 0; }
.row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 700; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.row__text { color: var(--ink); font-size: .95rem; white-space: pre-line; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--pedra); font-size: .88rem; overflow-wrap: anywhere; }
.row__states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.row__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px; }
@media (min-width: 900px) { .row__actions { justify-content: flex-end; } }
.row__actions .btn { min-height: 44px; padding: 0 12px; font-size: .92rem; }
.row__edit { display: grid; gap: 12px; }
@media (min-width: 640px) { .row__edit { grid-template-columns: minmax(0, 1fr) 13rem; } .row__edit-actions { grid-column: 1 / -1; } }
.btn--danger { color: var(--telha); }
.btn--danger:hover { background: var(--telha-wash); color: var(--telha); }

.badge {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.badge--showing { background: #E2F1E8; color: var(--pinho); }
.badge--scheduled { background: var(--cobalt-wash); color: var(--cobalt-deep); }
.badge--ended, .badge--hidden, .badge--disabled { background: var(--cal-shade); color: var(--pedra); }
.badge--admin { background: var(--cobalt); color: #fff; }
.badge--you { border-color: var(--rule-strong); color: var(--pedra); }
.badge--locked { background: var(--telha-wash); color: var(--telha); }
.badge--temp { background: var(--sol-wash); color: var(--sol-ink); }

.avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--cobalt-wash); color: var(--cobalt);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.avatar--admin { background: var(--cobalt); color: #fff; }

/* an on/off switch for "Show on home page" */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; cursor: pointer; font-size: .92rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch__track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px;
  background: var(--rule-strong); transition: background-color .15s;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--pinho); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.queue__announce { grid-column: 2 / -1; }
.queue__progress { align-self: center; color: var(--pedra); font-size: .92rem; }

/* the temporary password, shown once */
.secret {
  display: grid; gap: 10px; margin-bottom: 20px; padding: 22px;
  border: 2px solid var(--pinho); border-radius: var(--r-lg); background: #F1F8F3;
}
.secret:focus { outline: none; }
.secret__title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--pinho); }
.secret__label {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pedra);
}
.secret__value { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.secret__value code {
  padding: 10px 14px; border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--rule);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; color: var(--ink);
  user-select: all;
}
.secret__hint { color: var(--pedra); max-width: 64ch; }
.secret__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ==========================================================================
   Useful contacts
   ========================================================================== */
.con-head { display: grid; gap: 22px; margin-bottom: 12px; }
@media (min-width: 900px) {
  .con-head { grid-template-columns: 1fr minmax(280px, 380px); align-items: end; gap: 40px; }
  .con-head .page-head { margin-bottom: 0; }
}
.jump {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 24px 0 8px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.jump__label {
  margin-right: 4px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pedra);
}
.jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-md); font-weight: 700; text-decoration: none;
}
.jump a:hover { background: var(--cobalt-wash); }

.dir-section { padding-top: 44px; scroll-margin-top: 12px; }
.dir-section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.dir-note {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 64ch; margin-top: 14px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--cobalt-wash); color: var(--ink); font-size: .93rem;
}
.dir-note .icon { margin-top: 2px; color: var(--cobalt); }

/* emergency: big, red-barred tiles */
.sos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.sos__item {
  display: grid; gap: 6px; align-content: start;
  padding: 18px 18px 16px;
  background: var(--tile); color: var(--ink);
  border: 1px solid var(--rule); border-top: 5px solid var(--telha); border-radius: 6px 6px var(--r-lg) var(--r-lg);
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.sos__item:hover { color: var(--ink); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-tile); }
.sos__num { font-family: var(--font-mono); font-weight: 700; font-size: 1.08rem; line-height: 1.5; color: var(--telha); white-space: nowrap; }
.sos__num--big { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.01em; }
.sos__label { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.sos__desc { font-size: .9rem; color: var(--pedra); }

/* Pinta: committee card and groups */
.pinta-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 900px) { .pinta-grid { grid-template-columns: 1.2fr 1fr; } }
.card {
  display: grid; gap: 10px; align-content: start;
  padding: 22px; background: var(--tile); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--cobalt); }
.card__text { color: var(--pedra); }
.card .btn { justify-self: start; }
.card__mail { font-family: var(--font-mono); font-size: .95rem; overflow-wrap: anywhere; }
.groups { display: grid; gap: 10px; }

/* the directory: a phone book with dot leaders */
.dept {
  display: grid; gap: 10px 36px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 820px) { .dept { grid-template-columns: minmax(15rem, 1fr) 1.6fr; } }
.dept__name { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.dept__pt { margin-top: 2px; font-style: italic; color: var(--pedra); font-size: .9rem; }
.dept__desc { margin-top: 2px; color: var(--pedra); font-size: .9rem; }
.dept__lines { display: grid; gap: 12px; }
.line { display: grid; gap: 2px; }
.line__top { display: flex; align-items: baseline; gap: 10px; }
.line__who { font-weight: 600; }
.line__lead { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--rule-strong); transform: translateY(-5px); }
.line__num {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-mono); font-weight: 700; white-space: nowrap; text-decoration: none;
}
.line__num:hover { text-decoration: underline; }
.line__tag { font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--pedra); }
.line__mail { justify-self: start; font-size: .93rem; overflow-wrap: anywhere; }
.line__sep { color: var(--pedra); font-family: var(--font-mono); }
.dir-empty { padding: 32px 0; color: var(--pedra); display: grid; gap: 12px; justify-items: start; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none !important; }
  .ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__toggle { display: none; }
}
