/* Agenda: /o-que-fazer-hoje, /fim-de-semana and the home call. Loaded only there (functions.php).
   Same status colors as Litoral agora (white text: green #16843f 4.77:1, amber #8f5300 6.4:1, red #d7263d 4.96:1). */
.agenda-strip, .agenda-page {
  --agenda-ok: #16843f;
  --agenda-warning: #8f5300;
  --agenda-alert: #d7263d;
}
.agenda-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Home call, right below Litoral agora: items stacked on the phone, in a row from 700 px. */
.agenda-strip { border-bottom: 1px solid var(--lnh-line); background: var(--lnh-paper); }
.agenda-strip-inner { display: grid; gap: .4rem; width: min(calc(100% - 2rem), 1200px); margin-inline: auto; padding-block: .5rem; }
.agenda-strip-title { justify-self: start; padding: .2rem .5rem; border-radius: .3rem; color: #fff; background: var(--lnh-accent, #176d88); font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.agenda-strip ul { display: grid; gap: .35rem; min-width: 0; margin: 0; padding: 0; list-style: none; }
.agenda-strip li { min-width: 0; }
.agenda-strip li a { display: flex; align-items: baseline; gap: .4rem; min-width: 0; padding: .25rem .6rem .25rem .5rem; border: 1px solid var(--lnh-line); border-left: 4px solid var(--lnh-accent, #176d88); border-radius: .35rem; color: var(--lnh-ink); background: var(--lnh-card, #fff); font-size: .8rem; line-height: 1.35; text-decoration: none; }
.agenda-strip li a:hover .agenda-strip-name { text-decoration: underline; }
.agenda-strip strong { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.agenda-strip-name { min-width: 0; overflow-wrap: anywhere; }
.agenda-strip-city { flex: 0 0 auto; margin-left: auto; color: var(--lnh-muted); font-size: .74rem; white-space: nowrap; }
@media (min-width: 700px) {
  .agenda-strip-inner { display: flex; align-items: center; gap: .75rem; }
  .agenda-strip ul { display: flex; flex-wrap: wrap; gap: .5rem; }
  .agenda-strip li { max-width: 26rem; }
}

/* Pages */
.agenda-page-heading { margin-bottom: .35rem; }
.agenda-intro { margin: 0 0 .8rem; color: var(--lnh-muted); }
.agenda-count { display: inline-block; min-width: 1.3rem; margin-left: .2rem; padding: 0 .3rem; border-radius: 99px; color: var(--lnh-blue); background: #fff; font-size: .72rem; line-height: 1.3rem; text-align: center; }
.feed-tabs button[aria-selected="false"] .agenda-count { color: #fff; background: var(--lnh-blue); }
.agenda-panel { display: grid; gap: 1rem; }
.agenda-panel[hidden] { display: none; }
.agenda-facts { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--lnh-line); border-radius: .5rem; background: var(--lnh-soft); font-size: .84rem; }
.agenda-weather { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.agenda-weather li { display: flex; gap: .3rem; align-items: baseline; }
.agenda-muted { color: var(--lnh-muted); }
.agenda-fact { margin: 0; }
.agenda-fact a { display: inline-flex; flex-wrap: wrap; gap: 0 .35rem; align-items: baseline; padding: .1rem .5rem; border-left: 3px solid var(--agenda-ok); border-radius: .2rem; color: var(--lnh-ink); background: var(--lnh-card, #fff); text-decoration: none; }
.agenda-fact a:hover { text-decoration: underline; }
.agenda-fact--warning a { border-left-color: var(--agenda-warning); }
.agenda-fact--alert a { border-left-color: var(--agenda-alert); }
.agenda-fact strong { white-space: nowrap; }
.agenda-fact--alert strong { color: var(--agenda-alert); }
.agenda-days { display: grid; gap: 1rem; }
.agenda-day h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.agenda-list { display: grid; margin: 0; padding: 0; border: 1px solid var(--lnh-line); border-radius: .6rem; background: var(--lnh-card, #fff); list-style: none; }
.agenda-item { display: grid; grid-template-columns: minmax(4.1rem, max-content) minmax(0, 1fr); gap: .6rem; padding: .7rem .8rem; border-top: 1px solid var(--lnh-line); }
.agenda-item:first-child { border-top: 0; }
.agenda-time { color: var(--lnh-blue); font-size: .84rem; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.agenda-time-sub { display: block; margin-top: .1rem; color: var(--lnh-muted); font-size: .78rem; font-weight: 700; }
.agenda-body { display: grid; gap: .15rem; min-width: 0; }
.agenda-name { color: var(--lnh-ink); font-weight: 750; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.agenda-name:hover { text-decoration: underline; }
.agenda-place { color: var(--lnh-muted); font-size: .86rem; overflow-wrap: anywhere; }
.agenda-links { margin: 1.2rem 0 .3rem; font-size: .9rem; }
.agenda-note { margin: 0; color: var(--lnh-muted); font-size: .78rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .agenda-fact--alert strong { color: #ff8c99; }
  :root:not([data-theme="light"]) .agenda-time { color: #8fd3ea; }
}
:root[data-theme="dark"] .agenda-fact--alert strong { color: #ff8c99; }
:root[data-theme="dark"] .agenda-time { color: #8fd3ea; }
/* Home call on the phone: two items, smaller type (the third shows from 700 px). */
@media (max-width: 699px) {
  .agenda-strip li:nth-child(n+3) { display: none; }
  .agenda-strip li a { font-size: .76rem; line-height: 1.3; }
}
