:root {
  --wo-accent: #7a1424;
  --wo-accent2: #f3df8f;
  --wo-text: #1f1f23;
  --wo-muted: #6b6b73;
  --wo-bg: transparent;
  --wo-card: #ffffff;
  --wo-time: var(--wo-accent);
  --wo-day-bg: #f7f5f2;
  --wo-border: #e9e5e0;
  --wo-title: var(--wo-accent);
  --wo-today: color-mix(in srgb, var(--wo-accent) 7%, var(--wo-card));
  --wo-accent-soft: color-mix(in srgb, var(--wo-accent) 8%, var(--wo-card));
  --wo-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wo-heading-font: var(--wo-font);
  --wo-radius: 14px;
  --wo-shadow: 0 1px 2px rgba(24, 18, 12, .06), 0 2px 10px rgba(24, 18, 12, .06);
  --wo-shadow-hover: 0 18px 34px -14px rgba(24, 18, 12, .35), 0 2px 6px rgba(24, 18, 12, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--wo-bg); color: var(--wo-text); font-family: var(--wo-font); line-height: 1.45; -webkit-font-smoothing: antialiased; }
html.wo-embedded, html.wo-embedded body { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--wo-accent) 55%, transparent); outline-offset: 2px; }
.wo-wrap { padding: 8px; }
.wo-icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.15em; }
.wo-heading { font-family: var(--wo-heading-font); color: var(--wo-title); text-align: center; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; margin: .2em 0 .9em; }
.wo-error, .wo-empty { color: var(--wo-muted); text-align: center; padding: 2rem 1rem; margin: 0; background: var(--wo-card); border: 1px dashed var(--wo-border); border-radius: var(--wo-radius); grid-column: 1 / -1; }
.wo-loading { text-align: center; color: var(--wo-muted); padding: 2.5rem 0; grid-column: 1 / -1; }
.wo-loading::before { content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--wo-border); border-top-color: var(--wo-accent); animation: wo-spin .8s linear infinite; }
@keyframes wo-spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.wo-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.2em; border-radius: 999px; background: var(--wo-accent); color: #fff; border: 1px solid var(--wo-accent); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.2; cursor: pointer; transition: filter .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.wo-btn:hover { filter: brightness(1.12); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--wo-accent) 70%, transparent); }
.wo-btn-ghost { background: var(--wo-card); color: var(--wo-accent); border-color: color-mix(in srgb, var(--wo-accent) 28%, var(--wo-border)); }
.wo-btn-ghost:hover { background: var(--wo-accent-soft); filter: none; box-shadow: none; }
.wo-btn-sm { padding: .5em .95em; font-size: .85rem; }
.wo-back { display: inline-flex; align-items: center; gap: .35em; padding: .5em 1.05em .5em .75em; border-radius: 999px; border: 1px solid var(--wo-border); background: var(--wo-card); color: var(--wo-accent); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s; }
.wo-back:hover { background: var(--wo-accent-soft); }
.wo-back .wo-icon { transition: transform .2s; }
.wo-back:hover .wo-icon { transform: translateX(-2px); }
.wo-badge { margin-left: auto; background: var(--wo-accent); color: #fff; border-radius: 999px; padding: .2em .75em; font-size: .68rem; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.wo-badge.is-soft { background: var(--wo-accent-soft); color: var(--wo-accent); }

/* ---------- Agenda (timetable, calendar list) ---------- */
.wo-timetable, .wo-cal-list { display: grid; gap: 12px; }
.wo-timetable.is-scroll { overflow-y: auto; scrollbar-width: thin; padding: 2px 6px 2px 2px; }
.wo-day { background: var(--wo-card); border-radius: var(--wo-radius); box-shadow: var(--wo-shadow); overflow: hidden; }
.wo-day-head { display: flex; align-items: center; gap: .55em; padding: 10px 18px; background: var(--wo-day-bg); border-bottom: 1px solid var(--wo-border); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }
.wo-day-name { font-weight: 800; }
.wo-day-date { color: var(--wo-muted); font-weight: 600; }
.wo-day.is-today .wo-day-head { background: var(--wo-today); }
.wo-day.is-today .wo-day-name { color: var(--wo-accent); }
.wo-day-list { list-style: none; margin: 0; padding: 4px 8px; }
.wo-tt-item + .wo-tt-item { border-top: 1px solid var(--wo-border); }
.wo-tt-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 10px; margin: 2px 0; border-radius: 10px; text-decoration: none; color: var(--wo-text); transition: background .15s; }
.wo-tt-row:hover { background: var(--wo-accent-soft); }
.wo-tt-row > .wo-icon { color: var(--wo-accent); opacity: .35; transition: opacity .15s, transform .15s; }
.wo-tt-row:hover > .wo-icon { opacity: 1; transform: translateX(2px); }
.wo-tt-time { font-weight: 700; color: var(--wo-time); font-variant-numeric: tabular-nums; font-size: .95rem; }
.wo-tt-title { display: block; font-weight: 600; line-height: 1.3; }
.wo-tt-loc { display: block; font-size: .84rem; color: var(--wo-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wo-tt-thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; display: block; }
.wo-tt-more { text-align: center; margin: 18px 0 4px; }
@media (max-width: 420px) { .wo-tt-row { grid-template-columns: 4em minmax(0, 1fr) auto; gap: 10px; } .wo-tt-row > .wo-icon { display: none; } }

/* ---------- Seven-day hero: polished weekly agenda, 593 × 434 ---------- */
/* Seven calm, aligned date rows; this is intentionally not the full agenda. */
.wo-hero-compact { width: 100%; max-width: 593px; margin: 0 auto; }
.wo-hero-week {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(var(--wo-hero-rows, 7), minmax(0, 1fr));
  /* Override the generic .wo-timetable grid gap: it was leaving white
     gutters between dates and breaking the continuous left-hand rail. */
  gap: 0;
  height: calc(var(--wo-hero-height, 434px) - 16px);
  min-width: 0; overflow: hidden;
  border: 1px solid #eee9e6; border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(43, 30, 28, .035);
}
.wo-hero-day {
  display: grid; grid-template-columns: 94px minmax(0, 1fr);
  min-width: 0; min-height: 0;
  border-bottom: 1px solid #f4f1ef;
  background: #fff;
  transition: background-color .15s ease;
}
.wo-hero-day:nth-child(even) { background: #fdfcfa; }
.wo-hero-day:last-child { border-bottom: 0; }
.wo-hero-day:has(.wo-hero-event a:hover) { background: #fdf8f7; }
.wo-hero-day-head {
  position: relative; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 2px;
  min-width: 0; min-height: 0; padding: 4px 13px;
  background: #f8f5f2; line-height: 1.1;
}
.wo-hero-day:nth-child(even) .wo-hero-day-head { background: #f6f2ef; }
.wo-hero-day-head strong {
  color: var(--wo-accent); font-size: 13.5px;
  font-weight: 800; letter-spacing: .01em;
}
.wo-hero-date {
  color: #6e6665; font-size: 11.5px; font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.wo-hero-day.is-today .wo-hero-day-head {
  background: color-mix(in srgb, var(--wo-accent) 9%, #fff);
  padding-left: 13px;
}
.wo-hero-events {
  display: flex; flex-direction: column; justify-content: center;
  gap: 2px; list-style: none; margin: 0; padding: 3px 15px;
  min-width: 0; min-height: 0;
}
.wo-hero-event { min-width: 0; min-height: 0; }
.wo-hero-event a {
  display: grid; grid-template-columns: 48px 14px minmax(0, 1fr);
  gap: 5px; align-items: center; min-width: 0; min-height: 17px;
  border-radius: 5px; text-decoration: none; color: var(--wo-text);
  font-size: 12.5px; line-height: 17px;
}
.wo-hero-event a:hover { color: var(--wo-accent); }
.wo-hero-event a:focus-visible { background: var(--wo-accent-soft); }
.wo-hero-time {
  display: inline-block; width: fit-content; min-width: 44px;
  color: var(--wo-accent); background: color-mix(in srgb, var(--wo-accent) 8%, #fff);
  border-radius: 4px; padding: 0 4px;
  font-weight: 750; font-variant-numeric: tabular-nums;
  font-size: 11px; text-align: center;
}
.wo-hero-title {
  grid-column: 3; display: block; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  font-weight: 575; letter-spacing: -.01em;
}
.wo-hero-regular {
  grid-column: 2; display: inline-flex; align-items: center;
  justify-content: center; width: 14px; height: 17px;
  color: var(--wo-accent);
}
.wo-hero-regular .wo-icon { width: 13px; height: 13px; stroke-width: 1.7; }
.wo-hero-none {
  display: flex; align-items: center; gap: 9px;
  color: #97908f; font-size: 11.8px; font-style: normal;
}
.wo-hero-none::before {
  content: ''; display: inline-block; width: 11px;
  height: 1px; background: #cbc4c1; flex: none;
}
.wo-hero-more a {
  display: block; min-height: 17px; color: var(--wo-accent);
  font-size: 11.5px; font-weight: 700; line-height: 17px;
}
.wo-hero-more a:hover { text-decoration: underline; }
/* Narrow tablet / landscape phone: keep all seven rows inside 434px but
   reclaim horizontal room for longer event names and the repeat icon. */
@media (min-width: 521px) and (max-width: 760px) {
  .wo-hero-day { grid-template-columns: 86px minmax(0, 1fr); }
  .wo-hero-day-head { padding: 4px 10px; }
  .wo-hero-day.is-today .wo-hero-day-head { padding-left: 10px; }
  .wo-hero-events { padding: 3px 10px; }
  .wo-hero-event a { gap: 5px; }
}
/* Mobile: preserve all seven day rows and let long labels wrap naturally.
   Height is reported to Duda by the common iframe resizing helper. */
@media (max-width: 520px) {
  .wo-hero-week { height: auto; grid-template-rows: none; }
  .wo-hero-day { grid-template-columns: 82px minmax(0, 1fr); min-height: 52px; }
  .wo-hero-day-head { padding: 6px 10px; }
  .wo-hero-day.is-today .wo-hero-day-head { padding-left: 10px; }
  .wo-hero-events { padding: 6px 10px; gap: 3px; }
  .wo-hero-event a { grid-template-columns: 44px 14px minmax(0, 1fr); gap: 5px; font-size: 12px; }
  .wo-hero-time { min-width: 42px; }
  .wo-hero-title {
    white-space: normal; overflow: visible; text-overflow: clip;
    overflow-wrap: anywhere; line-height: 1.25;
  }
}
/* ---------- Cards ---------- */
.wo-month-navigation{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}
.wo-month-navigation h3{font-family:var(--wo-heading-font);color:var(--wo-title);font-size:clamp(1.25rem,2.8vw,1.65rem);font-weight:800;margin:0}
.wo-month-navigation[hidden]{display:none}
#highlights-section .wo-cards{margin-top:12px}
@media(max-width:640px){.wo-month-navigation{align-items:flex-start}.wo-month-navigation .wo-cal-nav{width:100%;justify-content:space-between}}

.wo-cards { display: grid; gap: 22px; grid-template-columns: repeat(var(--wo-cols, 3), minmax(0, 1fr)); }
.wo-card { position: relative; isolation: isolate; display: flex; flex-direction: column; background: var(--wo-card); border-radius: var(--wo-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--wo-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.wo-card:hover { transform: translateY(-4px); box-shadow: var(--wo-shadow-hover); }
.wo-card-media { position: relative; aspect-ratio: var(--wo-ratio, 16 / 10); background: var(--wo-day-bg); overflow: hidden; }
.wo-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--wo-focus, center center); display: block; transition: transform .6s ease; }
.wo-card:hover .wo-card-media img { transform: scale(1.04); }
.wo-card-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.28);
  background: radial-gradient(120% 120% at 15% 0%, color-mix(in srgb, var(--wo-accent) 65%, #fff) 0%, var(--wo-accent) 50%, color-mix(in srgb, var(--wo-accent) 65%, #000) 100%); }
.wo-card-placeholder .wo-icon { width: 34%; height: 34%; stroke-width: 1.1; }
.wo-date-badge, .wo-tag { position: absolute; z-index: 1; top: 12px; left: 12px; background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(0,0,0,.18); color: var(--wo-text); }
.wo-date-badge { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 7px 8px 6px; border-radius: 12px; line-height: 1; }
.wo-date-badge b { font-size: 1.4rem; font-weight: 800; color: var(--wo-accent); }
.wo-date-badge span { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-top: 4px; color: var(--wo-muted); }
.wo-tag { display: inline-flex; align-items: center; gap: .4em; padding: .38em .8em; border-radius: 999px; color: var(--wo-accent); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.wo-tag-regular { left: auto; right: 12px; }
.wo-card-body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; flex: 1; }
.wo-card-title { margin: 0 0 2px; font-family: var(--wo-heading-font); font-size: 1.12rem; line-height: 1.3; color: var(--wo-title); font-weight: 700; }
.wo-card-meta { display: flex; gap: .55em; align-items: flex-start; margin: 0; color: var(--wo-muted); font-size: .9rem; line-height: 1.35; }
.wo-card-meta .wo-icon { width: 1em; height: 1em; margin-top: .12em; color: var(--wo-accent); }
.wo-card-summary { margin: 4px 0 0; font-size: .92rem; line-height: 1.55; color: color-mix(in srgb, var(--wo-text) 82%, transparent); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wo-card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: .4em; color: var(--wo-accent); font-weight: 700; font-size: .9rem; }
.wo-card-link .wo-icon { transition: transform .2s; }
.wo-card:hover .wo-card-link .wo-icon { transform: translateX(4px); }
/* Banner style: body in the accent colour */
.wo-cards.is-band .wo-card-body { background: var(--wo-accent); color: #fff; }
.wo-cards.is-band .wo-card-title { color: #fff; }
.wo-cards.is-band .wo-card-meta { color: var(--wo-accent2); font-weight: 600; }
.wo-cards.is-band .wo-card-meta .wo-icon { color: var(--wo-accent2); }
.wo-cards.is-band .wo-card-link { color: #fff; }
/* Regular-event tiles: full-bleed image with the text over it */
.wo-cards.is-overlay .wo-card { min-height: 300px; background: #1b1b1f; justify-content: flex-end; }
.wo-cards.is-overlay .wo-card-media { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
.wo-cards.is-overlay .wo-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,.08) 100%); }
.wo-cards.is-overlay .wo-card-media img { object-position: var(--wo-focus, center center); }
.wo-cards.is-overlay .wo-tag { display: none; }
.wo-cards.is-overlay .wo-card-body { flex: none; color: #fff; padding: 22px 22px 24px; }
.wo-cards.is-overlay .wo-card-title { color: #fff; font-size: 1.45rem; line-height: 1.2; }
.wo-cards.is-overlay .wo-card-meta, .wo-cards.is-overlay .wo-card-meta .wo-icon { color: rgba(255,255,255,.9); }
.wo-cards.is-overlay .wo-card-link { align-self: flex-start; margin-top: 10px; padding: .5em 1.05em; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); transition: background .2s; }
.wo-cards.is-overlay .wo-card:hover .wo-card-link { background: var(--wo-accent); border-color: var(--wo-accent); }

/* ---------- Pager ---------- */
.wo-pager { display: flex; justify-content: center; align-items: center; gap: 6px; }
.wo-pager button { min-width: 38px; height: 38px; padding: 0 6px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--wo-text); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.wo-pager button:hover:not(:disabled) { background: var(--wo-accent-soft); color: var(--wo-accent); }
.wo-pager .wo-pager-arrow { background: var(--wo-card); border-color: var(--wo-border); color: var(--wo-accent); box-shadow: var(--wo-shadow); }
.wo-pager button.is-current { background: var(--wo-accent); color: #fff; }
.wo-pager button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.wo-pager .wo-icon { width: 1.15em; height: 1.15em; stroke-width: 2.5; }
.wo-pager-gap { color: var(--wo-muted); }
.wo-foot { display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 24px; }
.wo-foot:empty { display: none; }
.wo-more-link { display: inline-flex; align-items: center; gap: .4em; color: var(--wo-accent); font-weight: 700; text-decoration: none; }
.wo-more-link:hover { text-decoration: underline; }

/* ---------- Banner ---------- */
.wo-banner { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* Four equal slots: with both publications, two event columns rotate
   while the weekly mailing and magazine each occupy a persistent column.
   With just one publication, three event columns remain available. */
.wo-banner.has-side, .wo-banner.has-mailing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wo-banner.has-side .wo-banner-main, .wo-banner.has-mailing .wo-banner-main { grid-column: span 3; }
.wo-banner.has-side.has-mailing .wo-banner-main { grid-column: span 2; }
.wo-banner.has-mailing .wo-banner-mailing, .wo-banner.has-side .wo-banner-side { grid-column: span 1; }
.wo-banner-main, .wo-banner-side, .wo-banner-mailing { min-width: 0; }
.wo-banner-mailing .wo-card { width: 100%; min-width: 0; }
/* The magazine card also uses .wo-card, so it shares the same radius,
   hover transition, shadows and intrinsic width rules as event cards. */
.wo-magazine-card { width: 100%; min-width: 0; }
/* A portrait cover's intrinsic dimensions must never dictate grid/card
   size. The media area is a fixed-ratio positioning box, just like event cards.
   Its absolutely positioned image is removed from flex intrinsic sizing. */
.wo-magazine-cover {
  position: relative; flex: 0 0 auto; width: 100%; min-width: 0;
  aspect-ratio: var(--wo-ratio, 16 / 10); overflow: hidden;
  background: linear-gradient(125deg, #f4f0e8, #ffffff 48%, #eee5de);
}
.wo-magazine-cover img {
  position: absolute; display: block; inset: 8px;
  width: calc(100% - 16px); height: calc(100% - 16px);
  min-width: 0; max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center;
}
.wo-magazine-cover .wo-magazine-placeholder {
  position: absolute; inset: 8px;
}
.wo-magazine-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--wo-accent); font-weight: 700;
}
.wo-magazine-placeholder .wo-icon { width: 44px; height: 44px; }
/* Use the standard event-card typography, vertical spacing and colour band. */
.wo-magazine-body { background: var(--wo-accent); color: #fff; }
.wo-magazine-body .wo-card-title { color: #fff; }
.wo-magazine-title {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.wo-magazine-body .wo-card-meta { color: var(--wo-accent2); font-weight: 600; }
.wo-magazine-body .wo-card-meta .wo-icon { color: var(--wo-accent2); }
@media (max-width: 1120px) {
  /* Tablet: events take a full row and both publications sit side by side.
     Single-publication banners retain the previous stacked-card treatment. */
  .wo-banner.has-side, .wo-banner.has-mailing { grid-template-columns: minmax(0, 1fr); }
  .wo-banner.has-side .wo-banner-main, .wo-banner.has-side .wo-banner-side,
  .wo-banner.has-mailing .wo-banner-main, .wo-banner.has-mailing .wo-banner-mailing { grid-column: auto; }
  .wo-banner-side, .wo-banner-mailing { width: 100%; max-width: 420px; margin: 0 auto; }
  .wo-banner.has-side.has-mailing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wo-banner.has-side.has-mailing .wo-banner-main { grid-column: span 2; }
  .wo-banner.has-side.has-mailing .wo-banner-side,
  .wo-banner.has-side.has-mailing .wo-banner-mailing {
    grid-column: span 1; width: 100%; max-width: none; margin: 0;
  }
}
@media (max-width: 760px) {
  .wo-banner.has-side.has-mailing { grid-template-columns: minmax(0, 1fr); }
  .wo-banner.has-side.has-mailing .wo-banner-main,
  .wo-banner.has-side.has-mailing .wo-banner-mailing,
  .wo-banner.has-side.has-mailing .wo-banner-side { grid-column: auto; }
  .wo-banner.has-side.has-mailing .wo-banner-mailing,
  .wo-banner.has-side.has-mailing .wo-banner-side { max-width: 420px; margin: 0 auto; }
}


/* ---------- Latest mailing hero content for existing Duda Mailing tab ---------- */
/* The parent tab already has Mailing navigation/heading/subscription UI.
   Inside this 593x434 canvas: actual campaign image and a quiet issue strip. */
.wo-mailing-hero-wrap { width: 100%; max-width: 593px; margin: 0 auto; }
.wo-mailing-hero-card {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%; height: 418px; min-width: 0; overflow: hidden;
  border: 1px solid #e7e2df; border-radius: 5px;
  background: #fff; color: var(--wo-text); text-decoration: none;
}
.wo-mailing-hero-card.has-image {
  grid-template-rows: minmax(0, 272px) minmax(0, 1fr);
}
.wo-mailing-hero-card:focus-visible { outline-offset: 2px; }
.wo-mailing-hero-picture {
  min-width: 0; min-height: 0; overflow: hidden;
  background: #f1efed;
}
.wo-mailing-hero-picture img {
  display: block; width: 100%; height: 100%;
  /* Logos should remain complete rather than being cropped as photographs. */
  object-fit: contain; object-position: center; background: #fff;
}
.wo-mailing-hero-card.is-text-only .wo-mailing-hero-picture { display: none; }
.wo-mailing-hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; min-height: 0; padding: 25px 29px;
}
.wo-mailing-hero-card.has-image .wo-mailing-hero-copy {
  padding: 13px 20px 15px;
}
.wo-mailing-hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px;
  margin: 0 0 5px; font-size: 11.5px; font-weight: 600;
  color: #736b69; font-variant-numeric: tabular-nums;
}
.wo-mailing-hero-preview { color: #856c4f; }
.wo-mailing-hero-title {
  margin: 0; color: var(--wo-accent);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px; font-weight: 400; line-height: 1.13;
  letter-spacing: -.025em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden;
}
.wo-mailing-hero-card.has-image .wo-mailing-hero-title {
  font-family: var(--wo-font); font-size: 20px;
  font-weight: 700; line-height: 1.22; letter-spacing: -.015em;
  -webkit-line-clamp: 2;
}
.wo-mailing-hero-summary {
  color: #655f5c; font-size: 14px; line-height: 1.48;
  margin: 15px 0 17px; max-width: 480px;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere;
}
.wo-mailing-hero-card.has-image .wo-mailing-hero-summary { display: none; }
.wo-mailing-hero-link {
  display: inline-flex; align-items: center; align-self: flex-start;
  gap: 8px; margin-top: 14px;
  color: var(--wo-accent); font-size: 13px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.wo-mailing-hero-card.has-image .wo-mailing-hero-link {
  margin-top: 5px; font-size: 12px;
}
.wo-mailing-hero-link span { font-size: 16px; transition: transform .16s ease; }
.wo-mailing-hero-card:hover .wo-mailing-hero-link span {
  transform: translateX(3px);
}
.wo-mailing-hero-status {
  display: flex; flex-direction: column; justify-content: center;
  height: 418px; padding: 28px;
  border: 1px solid var(--wo-border); border-radius: 5px;
  background: #fff;
}
.wo-mailing-hero-status h2 { margin: 0 0 8px; color: var(--wo-accent); }
.wo-mailing-hero-status p { margin: 0; color: var(--wo-muted); }
@media (max-width: 520px) {
  .wo-mailing-hero-card, .wo-mailing-hero-card.has-image {
    height: auto; min-height: 290px; grid-template-rows: auto;
  }
  .wo-mailing-hero-card.has-image .wo-mailing-hero-picture {
    height: auto; aspect-ratio: 2.1 / 1;
  }
  .wo-mailing-hero-copy { padding: 25px 20px; }
  .wo-mailing-hero-card.has-image .wo-mailing-hero-copy {
    padding: 14px 18px 17px;
  }
  .wo-mailing-hero-title { font-size: clamp(26px, 7vw, 33px); }
  .wo-mailing-hero-card.has-image .wo-mailing-hero-title { font-size: 19px; }
  .wo-mailing-hero-summary { font-size: 13px; }
  .wo-mailing-hero-status { height: auto; min-height: 290px; }
}
@media (max-width: 360px) {
  .wo-mailing-hero-copy { padding: 22px 16px; }
  .wo-mailing-hero-card.has-image .wo-mailing-hero-copy { padding: 12px 15px 15px; }
  .wo-mailing-hero-card.has-image .wo-mailing-hero-title { font-size: 17px; }
}

/* ---------- Weekly mailing cards / archive ---------- */
.wo-mailing-media { background: linear-gradient(135deg, #770e23, #aa3141 75%, #d5a457); }
.wo-mailing-media.has-image { background: #fff; }
.wo-mailing-media.has-image .wo-mailing-art { display: none; }
.wo-mailing-media .wo-mailing-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Keep the parish logo readable, not zoomed/cropped like an event photo. */
  object-fit: contain; object-position: center; background: #fff;
}
.wo-mailing-card:hover .wo-mailing-cover { transform: none; }

.wo-mailing-art { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff3cf; letter-spacing: .14em; font-weight: 800; font-size: .85rem; text-align: center; padding: 16px; }
.wo-mailing-art .wo-icon { width: 64px; height: 64px; stroke-width: 1.25; }
.wo-cards.is-band .wo-mailing-body .wo-card-title, .wo-mailing-body .wo-card-title { color: #fff; }
.wo-mailing-body { background: var(--wo-accent); color: #fff; }
.wo-mailing-body .wo-card-meta { color: var(--wo-accent2); font-weight: 600; }
.wo-mailing-body .wo-card-meta .wo-icon { color: var(--wo-accent2); }
.wo-mailings-wrap { max-width: 920px; margin: auto; }
.wo-mailings-intro { margin: 0 0 20px; color: var(--wo-muted); text-align: center; }
.wo-mailings-count { color: var(--wo-muted); font-size: .88rem; }
.wo-mailings-list { display: grid; gap: 12px; }
.wo-mailing-row { display: flex; gap: 20px; align-items: center; padding: 19px; border: 1px solid var(--wo-border); border-radius: var(--wo-radius); box-shadow: var(--wo-shadow); background: var(--wo-card); color: inherit; text-decoration: none; }
.wo-mailing-row:hover { border-color: var(--wo-accent); }
.wo-mailing-row-date { flex: 0 0 110px; font-weight: 700; color: var(--wo-accent); font-size: .9rem; }
.wo-mailing-row-content { display: flex; flex-direction: column; min-width: 0; gap: 6px; flex: 1; }
.wo-mailing-row-summary { font-size: .86rem; color: var(--wo-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wo-mailing-row-link { color: var(--wo-accent); font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
@media (max-width: 580px) {
  .wo-mailing-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wo-mailing-row-date { flex: none; }
  .wo-mailing-row-link { align-self: flex-end; }
}

/* ---------- What's On page ---------- */
.wo-section + .wo-section { margin-top: 44px; }
.wo-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.wo-section-title { font-family: var(--wo-heading-font); color: var(--wo-title); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; margin: 0; }
.wo-count { color: var(--wo-muted); font-size: .9rem; white-space: nowrap; }
.wo-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 22px; }
.wo-search { flex: 1 1 280px; display: flex; align-items: center; gap: .6em; background: var(--wo-card); border: 1px solid var(--wo-border); border-radius: 999px; padding: 0 18px; box-shadow: var(--wo-shadow); transition: border-color .15s, box-shadow .15s; }
.wo-search .wo-icon { color: var(--wo-muted); width: 1.15em; height: 1.15em; }
.wo-search input { flex: 1; border: 0; padding: .85em 0; font: inherit; background: transparent; min-width: 0; color: inherit; }
.wo-search input:focus { outline: none; }
.wo-search:focus-within { border-color: var(--wo-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wo-accent) 14%, transparent); }
.wo-search:focus-within .wo-icon { color: var(--wo-accent); }
.wo-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wo-chip { border: 1px solid var(--wo-border); color: var(--wo-text); background: var(--wo-card); border-radius: 999px; padding: .6em 1.05em; cursor: pointer; font-size: .88rem; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.wo-chip:hover { border-color: var(--wo-accent); color: var(--wo-accent); }
.wo-chip[aria-pressed="true"] { background: var(--wo-accent); border-color: var(--wo-accent); color: #fff; }

/* ---------- Detail ---------- */
.wo-detail { background: var(--wo-card); border-radius: var(--wo-radius); box-shadow: var(--wo-shadow); overflow: hidden; }
.wo-detail-top { padding: 16px 18px 0; }
.wo-detail-media { position: relative; overflow: hidden; margin: 14px 18px 0; border-radius: calc(var(--wo-radius) - 4px); background: #16161a; display: flex; justify-content: center; height: clamp(220px, 40vw, 440px); }
.wo-detail-media.is-portrait { height: clamp(320px, 58vw, 560px); }
.wo-detail-media::before { content: ''; position: absolute; inset: -40px; background: var(--wo-media-bg) center / cover no-repeat; filter: blur(30px) brightness(.65) saturate(1.2); }
.wo-detail-media a { position: relative; display: block; height: 100%; max-width: 100%; }
.wo-detail-media img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.wo-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); grid-template-areas: "head aside" "body aside"; grid-template-rows: auto 1fr; gap: 0 40px; padding: 26px clamp(18px, 3.4vw, 40px) 36px; align-items: start; }
.wo-detail-head { grid-area: head; }
.wo-detail-aside { grid-area: aside; display: grid; gap: 14px; position: sticky; top: 12px; min-width: 0; }
.wo-detail-body { grid-area: body; min-width: 0; }
@media (max-width: 760px) {
  .wo-detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "body"; gap: 20px; }
  .wo-detail-aside { position: static; }
}
.wo-eyebrow { margin: 0 0 8px; color: var(--wo-accent); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wo-detail-title { font-family: var(--wo-heading-font); color: var(--wo-title); font-size: clamp(1.65rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 18px; }
.wo-panel { background: var(--wo-day-bg); border: 1px solid var(--wo-border); border-radius: var(--wo-radius); padding: 18px; }
.wo-panel h3, .wo-detail-section h3 { margin: 0 0 12px; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wo-muted); font-weight: 800; }
.wo-info { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.wo-info li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.wo-info li > .wo-icon { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--wo-card); color: var(--wo-accent); box-shadow: inset 0 0 0 1px var(--wo-border); }
.wo-info-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wo-muted); font-weight: 700; margin-bottom: 1px; }
.wo-info-value { display: block; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.wo-info-link { display: inline-flex; align-items: center; gap: .3em; margin-top: 4px; font-size: .86rem; color: var(--wo-accent); text-decoration: none; }
.wo-info-link:hover { text-decoration: underline; }
.wo-actions { display: grid; gap: 8px; }
.wo-actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.wo-actions .wo-btn { width: 100%; padding-left: .8em; padding-right: .8em; }
.wo-description { font-size: 1.04rem; line-height: 1.7; overflow-wrap: anywhere; }
.wo-description > :first-child { margin-top: 0; }
.wo-description a { color: var(--wo-accent); text-underline-offset: 2px; }
.wo-description p { margin: 0 0 1em; }
.wo-description ul, .wo-description ol { padding-left: 1.3em; margin: 0 0 1em; }
.wo-description li { margin: .25em 0; }
.wo-description li::marker { color: var(--wo-accent); }
.wo-description h1, .wo-description h2, .wo-description h3, .wo-description h4 { font-family: var(--wo-heading-font); color: var(--wo-title); line-height: 1.25; margin: 1.3em 0 .5em; }
.wo-detail-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--wo-border); }
.wo-contact, .wo-files, .wo-dates { list-style: none; margin: 0; padding: 0; }
.wo-contact { display: grid; gap: 10px; }
.wo-contact li { display: flex; align-items: center; gap: .65em; min-width: 0; }
.wo-contact .wo-icon { color: var(--wo-accent); }
.wo-contact a { color: var(--wo-text); font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.wo-contact a:hover { color: var(--wo-accent); text-decoration: underline; }
.wo-files { display: grid; gap: 8px; }
.wo-files a { display: flex; align-items: center; gap: .75em; padding: 10px 12px; border-radius: 10px; background: var(--wo-card); border: 1px solid var(--wo-border); text-decoration: none; color: var(--wo-text); transition: border-color .15s, box-shadow .15s; }
.wo-files a:hover { border-color: var(--wo-accent); box-shadow: var(--wo-shadow); }
.wo-files .wo-icon { color: var(--wo-accent); }
.wo-file-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wo-file-name { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.wo-file-kind { color: var(--wo-muted); font-size: .78rem; }
.wo-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.wo-dates a { display: inline-block; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--wo-border); background: var(--wo-card); text-decoration: none; color: var(--wo-text); font-size: .88rem; font-weight: 600; transition: border-color .15s, color .15s; }
.wo-dates a:hover { border-color: var(--wo-accent); color: var(--wo-accent); }

/* ---------- Month calendar ---------- */
.wo-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 16px; }
.wo-cal-head h2 { margin: 0; font-family: var(--wo-heading-font); color: var(--wo-title); font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.015em; }
.wo-cal-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wo-group { display: inline-flex; background: var(--wo-card); border: 1px solid var(--wo-border); border-radius: 999px; box-shadow: var(--wo-shadow); overflow: hidden; }
.wo-group button { border: 0; background: none; padding: 8px 14px; color: var(--wo-accent); cursor: pointer; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .88rem; transition: background .15s, color .15s; }
.wo-group button + button { border-left: 1px solid var(--wo-border); }
.wo-group button:hover:not(:disabled) { background: var(--wo-accent-soft); }
.wo-group button:disabled { opacity: .35; cursor: default; }
.wo-group button[aria-pressed="true"] { background: var(--wo-accent); color: #fff; }
.wo-group .wo-icon { width: 1.15em; height: 1.15em; }
.wo-cal-board { background: var(--wo-card); border: 1px solid var(--wo-border); border-radius: var(--wo-radius); box-shadow: var(--wo-shadow); overflow: hidden; }
.wo-cal-weekdays, .wo-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wo-cal-weekdays { background: var(--wo-day-bg); border-bottom: 1px solid var(--wo-border); }
.wo-cal-weekdays div { padding: 11px 12px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wo-muted); }
.wo-cal-grid { margin-bottom: -1px; }
.wo-cal-day { min-height: var(--wo-cell, 128px); padding: 8px 8px 10px; border-right: 1px solid var(--wo-border); border-bottom: 1px solid var(--wo-border); min-width: 0; font-size: .8rem; }
.wo-cal-day:nth-child(7n) { border-right: 0; }
.wo-cal-day.is-other { background: color-mix(in srgb, var(--wo-day-bg) 70%, var(--wo-card)); }
.wo-cal-day.is-other > * { opacity: .5; }
.wo-cal-day.is-today { background: var(--wo-today); }
.wo-cal-num { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.wo-cal-day.is-today .wo-cal-num { background: var(--wo-accent); color: #fff; }
.wo-cal-day ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.wo-cal-ev { min-width: 0; }
.wo-cal-ev { --wo-ev: var(--wo-time); }
.wo-cal-ev a { display: block; padding: 3px 7px; border-radius: 6px; border-left: 3px solid var(--wo-ev); background: color-mix(in srgb, var(--wo-ev) 8%, var(--wo-card)); color: var(--wo-text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; transition: background .15s; }
.wo-cal-ev a:hover { background: color-mix(in srgb, var(--wo-ev) 17%, var(--wo-card)); }
.wo-cal-ev b { font-weight: 700; color: var(--wo-ev); font-variant-numeric: tabular-nums; margin-right: .2em; }
.wo-cal-ev.is-featured a { background: var(--wo-ev); color: #fff; font-weight: 600; }
.wo-cal-ev.is-featured b { color: #fff; }
.wo-cal-ev.is-featured a:hover { filter: brightness(1.12); }
.wo-cal-more { margin-top: 3px; border: 0; background: none; padding: 2px 7px; border-radius: 6px; color: var(--wo-accent); font-weight: 700; cursor: pointer; font-size: inherit; }
.wo-cal-more:hover { background: var(--wo-accent-soft); }
.wo-cal-more:focus-visible { outline:2px solid var(--wo-accent); outline-offset:2px; }
.wo-cal-repeat { font-weight:800; color:var(--wo-accent); margin-right:3px; }
.wo-cal-ev.is-featured .wo-cal-repeat { color:#fff; }
.wo-cal-list { display: none; }
.wo-cal-earlier { justify-self: center; }
.wo-cal.is-list .wo-cal-board { display: none; }
.wo-cal.is-list .wo-cal-list { display: grid; }
@media (max-width: 640px) {
  .wo-cal.is-auto .wo-cal-board, .wo-cal.is-auto #view-toggle { display: none; }
  .wo-cal.is-auto .wo-cal-list { display: grid; }
}

/* Public staging mode is always labelled, including inside individual embeds. */
.wo-demo-notice {
  padding: 10px 16px;
  background: #fff0c4;
  border-bottom: 2px solid #bf8d2d;
  color: #503b16;
  text-align: center;
  font: 700 13px/1.5 system-ui, sans-serif;
  letter-spacing: .02em;
}


/* Optional gallery, separate from the chosen event header image. */
.wo-detail-gallery { min-width: 0; }
.wo-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(112px,1fr)); gap: 10px; margin-top: 10px; }
.wo-gallery-grid a { display: block; border-radius: 7px; overflow: hidden; background: #f3eee9; border: 1px solid var(--wo-border); }
.wo-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .18s ease; }
.wo-gallery-grid a:hover img { transform: scale(1.035); }
