/* Styles for elements added by the dynamic (CMS) version of the site.
   Loaded after style.css; the original stylesheet is left untouched. */

nav .dd.dd-active > .dd-btn .dd-top { text-decoration: underline; text-underline-offset: 6px; }

.status.is-error, .fine.is-error { color: #b42318; }

/* Blog category chips are links */
a.chip { text-decoration: none; display: inline-flex; align-items: center; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a {
    min-width: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid #ddd;
    text-align: center; text-decoration: none; color: inherit; background: #fff; font-weight: 600;
}
.pager a[aria-current="page"] { background: #111; color: #fff; border-color: #111; }
.pager a:hover { border-color: #111; }

.empty-note { text-align: center; padding: 40px 0; color: #666; }

.draft-banner {
    background: #fff4ce; border: 1px solid #f0c36d; color: #6b4e00;
    padding: 10px 16px; border-radius: 8px; margin: 0 0 20px; font-weight: 600;
}

/* Rich text from the editor */
.cms-content img { max-width: 100%; height: auto; border-radius: 12px; }
.cms-content iframe { max-width: 100%; }
.cms-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.cms-content td, .cms-content th { border: 1px solid #e5e5e5; padding: 8px 10px; }
.comment-area img { max-width: 100%; height: auto; }

/* Useful organisations */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 48px; }
.org-card {
    display: flex; gap: 16px; align-items: flex-start; background: #fff;
    border: 1px solid #eee; border-radius: 16px; padding: 20px;
}
.org-card img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; border-radius: 10px; }
.org-card h3 { margin: 0 0 .4em; font-size: 1.1rem; }
.org-card p { margin: 0 0 .6em; font-size: .95rem; }
.org-links { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 600; }

/* Brochures */
.brochure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.brochure-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 20px; text-align: center; }
.brochure-card img { width: 100%; border-radius: 10px; margin-bottom: 14px; }
.brochure-card h3 { margin: 0 0 .5em; }

/* Event details */
.event-sub { margin-top: -.4em; }
.event-actions { margin-top: 24px; }
.event-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 30px; }
.event-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Tickets */
.ticket-area + .ticket-area { margin-top: 48px; }
.ticket-title { margin: 0 0 .3em; text-align: center; }
.ticket-meta { text-align: center; margin: 0 0 1em; }

.news-src { display: block; font-weight: 400; font-size: .85rem; opacity: .7; margin-top: 4px; }
