/* ── Hero Header (cover image variant) ──────────────────────────────────── */
.hero-header {
  position: relative;
  width: 100%;
  min-height: 400px;
  margin-top: var(--nav-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15,76,117,0.95), rgba(8,18,34,0.98));
}
.hero-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.hero-header__content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  max-width: 800px;
}
.hero-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-header .hero-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.9);
  color: #0c0c0c;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* ── Article layout ──────────────────────────────────────────────────────── */
.ann-article {
  background: var(--cream);
  padding: 3.5rem 0 5rem;
}

.ann-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--fg-subtle);
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  max-width: 800px;
}
.ann-breadcrumb a { color: var(--fg-subtle); transition: color 0.2s; }
.ann-breadcrumb a:hover { color: var(--fg-mid); }
.ann-breadcrumb__sep { color: var(--border-mid); }
.ann-breadcrumb__current { color: var(--fg-mid); }

.ann-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.ann-date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
}

.ann-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-mid);
}

.ann-rule {
  width: 3rem;
  height: 2px;
  border-radius: 2px;
  margin-bottom: 2.25rem;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */
/* Posters and circulars are uploaded at whatever ratio the designer used —
   portrait as often as not. A fixed-ratio box + object-fit:cover ate the top
   and bottom of them, and left the box hugging the left edge of the container
   when its ratio-derived width was narrower than the column. The image sizes
   itself now and the item shrink-wraps it. */
.ann-gallery {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.ann-gallery__item {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: box-shadow 0.28s;
}

.ann-gallery__item picture { display: block; }

.ann-gallery__item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  transition: transform 0.4s ease;
}

.ann-gallery__item:hover { box-shadow: 0 8px 24px rgba(27,43,75,0.12); }
.ann-gallery__item:hover img { transform: scale(1.04); }

/* The article column is 800px wide inside a much wider .container. Without
   this the gallery (which centres itself) floated in the middle while every
   text block hugged the left edge. */
.ann-breadcrumb,
.ann-body,
.ann-attachment,
.ann-share,
.ann-back { margin-inline: auto; }

/* ── Body prose ──────────────────────────────────────────────────────────── */
/* The admin writes the body in a plain <textarea>, so its line breaks are real
   newlines, not <br>. pre-line keeps them without touching stored content. */
.ann-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.85;
  max-width: 800px;
  white-space: pre-line;
  text-align: justify;
}

/* Justify on a narrow column opens rivers of whitespace — left-align on phones. */
@media (max-width: 600px) {
  .ann-body { text-align: left; }
}

.ann-body h2, .ann-body h3, .ann-body h4 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}
.ann-body h2 { font-size: 1.3rem; }
.ann-body h3 { font-size: 1.1rem; }
.ann-body h4 { font-size: 1rem; }

.ann-body p { margin-bottom: 1.25rem; color: var(--fg-muted); }
.ann-body ul, .ann-body ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.ann-body li { margin-bottom: 0.5rem; color: var(--fg-muted); line-height: 1.7; }
.ann-body a { color: var(--navy); text-decoration: underline; }
.ann-body strong { color: var(--fg); font-weight: 600; }

.ann-body img {
  border-radius: var(--r-md);
  margin: 1.75rem auto;
  max-width: 100%;
  display: block;
}

.ann-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.85rem; }
.ann-body th, .ann-body td { padding: 0.65rem 1rem; border: 1px solid var(--border-mid); text-align: left; }
.ann-body th { background: var(--cream-deep); color: var(--navy); font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; }

/* ── Attachment block ────────────────────────────────────────────────────── */
.ann-attachment {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  max-width: 800px;
}

.ann-attachment svg { flex-shrink: 0; margin-top: 2px; }

.ann-attachment__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 0.3rem;
}

.ann-attachment__link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--navy);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.ann-attachment__link:hover { color: var(--gold-hover); }

/* ── Share bar ───────────────────────────────────────────────────────────── */
.ann-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: 800px;
}

.ann-share__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ann-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.ann-share__btn--wa { background: #25D366; color: #fff; }
.ann-share__btn--wa:hover { background: #1ebf5a; transform: translateY(-1px); }

.ann-share__btn--copy { background: var(--navy); color: #fff; }
.ann-share__btn--copy:hover { background: var(--primary-dark); transform: translateY(-1px); }
.ann-share__btn--copy.is-copied { background: #2e7d32; }

/* ── Back link ───────────────────────────────────────────────────────────── */
.ann-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
  width: 100%;
  max-width: 800px;
}
.ann-back:hover { color: var(--navy); gap: 0.75rem; }
