/* Static pages of touradasacorda.com (islands, parishes, years, ranches, agenda, video pages).
   Same look as the hub: Lora, navy ink on cool white, the white tile field, a plaque for the heading.
   Written by hand, used by scripts/seo_build.py and api/v.py. Small on purpose: these pages are read on phones. */
:root {
  --paper: #F8F9FB; --ink: #10285C; --muted: #3D4966; --cobalt: #1C4597; --navy: #0E2250;
  --tone: #D9E1EF; --grout: #C9D0DC; --soon: #B3261E;
  --f: "Lora", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --m: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 20px/1.6 var(--f); font-feature-settings: "lnum"; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-underline-offset: .18em; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--navy); } }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* the bar */
.bar { position: static; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; padding: 4px var(--m); background: var(--navy); color: #fff; }
.bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
@media (hover: hover) and (pointer: fine) { .bar a:hover { text-decoration: underline; } }
.mark { font-size: 22px; font-weight: 600; }
@media (min-width: 760px) { .bar { position: sticky; top: 0; } }
.links { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 18px; }

/* the tile field behind the heading */
.campo { background: #fff url(/assets/azores/azulejo-branco-512.jpg) 0 0 / 240px; border-bottom: 1px solid var(--grout); padding: 22px var(--m) 34px; }
.wrap { max-width: 960px; margin: 0 auto; }
.crumbs { font-size: 18px; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { display: inline-block; padding: 8px 0; }
.placa { display: inline-block; max-width: 100%; padding: 22px clamp(20px, 4vw, 44px) 24px; background: #fff url(/assets/azores/azulejo-branco-512.jpg) center / 170px; border-radius: 22px;
  box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 9px var(--cobalt), 0 1px 0 rgba(0,0,0,.08), 0 8px 22px rgba(20,30,60,.12);
  font-size: clamp(28px, 5.4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); overflow-wrap: anywhere; }
.lead { font-size: 22px; line-height: 1.5; max-width: 40em; margin-top: 22px; }

main section { padding: 0 var(--m); }
.sec { max-width: 960px; margin: 0 auto; padding: 36px 0 0; }
.sec > h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; line-height: 1.15; margin-bottom: 16px; }
.sec p + p { margin-top: 12px; }
.sec .txt { max-width: 40em; }

.stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 26px; }
.stats div { min-width: 6em; }
.stats dt { font-size: 18px; color: var(--muted); }
.stats dd { font-size: 34px; font-weight: 600; line-height: 1.15; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 16px; background: var(--tone); color: var(--ink); text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .chips a:hover { background: var(--grout); } }
.chips small { font-size: 17px; color: var(--muted); font-weight: 400; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 20px; }
.card { display: grid; align-content: start; gap: 8px; }
.card .thumb { display: block; background: var(--tone); aspect-ratio: 16 / 9; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card p { font-size: 18px; line-height: 1.45; color: var(--muted); }

.lista li { padding: 9px 0; border-top: 1px solid var(--grout); line-height: 1.45; }
.lista li:last-child { border-bottom: 1px solid var(--grout); }
.lista time, .lista .d { display: inline-block; min-width: 11.5em; margin-right: .5em; font-weight: 600; }
.lista .sub { display: block; font-size: 18px; color: var(--muted); }
.sec h3.mes { font-size: 22px; font-weight: 600; margin: 26px 0 8px; }
.ev.hoje { background: #FFF6DF; }
.ev .badge { display: inline-block; margin-left: .5em; padding: 0 .5em; background: var(--soon); color: #fff; font-size: 16px; font-weight: 600; }
.ev.passou { display: none; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--cobalt); color: #fff; } }
.btn.tone { background: var(--tone); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn.tone:hover { background: var(--grout); color: var(--ink); } }

/* the video page */
.video { position: relative; max-width: 960px; margin: 28px auto 0; background: #000; aspect-ratio: 16 / 9; }
.video img, .video iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.video .play span { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(14,34,80,.86); color: #fff; font-size: 38px; padding-left: 6px; }
@media (hover: hover) and (pointer: fine) { .video .play:hover span { background: var(--cobalt); } }

footer { margin-top: 72px; padding: 40px var(--m) 48px; background: #0A1A3E; color: #EEEDE9; font-size: 18px; line-height: 1.55; }
footer a { color: #fff; }
footer .wrap > * + * { margin-top: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
footer nav a { display: inline-block; padding: 8px 0; }
footer .fine { color: #C9D3EA; font-size: 17px; }

@media (max-width: 560px) {
  body { font-size: 19px; }
  .lead { font-size: 20px; }
  .lista time, .lista .d { min-width: 0; display: block; }
}
@media print { .bar, footer nav { display: none; } }

/* ---- on a phone: no grey flash on tap, no wait for a double tap, controls that don't select like text,
   and a press you can see (hover effects only answer a real mouse) ---- */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], summary, label, select { touch-action: manipulation; }
button, .btn, [role="button"], summary, .chip, .barra-baixo a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (hover: none) { button:active, .btn:active, .chip:active, .barra-baixo a:active, summary:active { opacity: .78; } }
input, textarea, select { font-size: max(16px, 1em); }
