/* =============================================
   SWLPC Newsletter — Bespoke Design
   ============================================= */

:root {
  --rich: #0C0B1E;
  --deep: #13122A;
  --ink: #1A1835;
  --slate: #2A2848;
  --gold: #C9A84C;
  --gold-soft: #D4B86A;
  --gold-muted: rgba(201, 168, 76, 0.15);
  --cream: #F6F1E7;
  --warm: #EDE6D6;
  --paper: #FAF7F0;
  --text: #1C1B2E;
  --text-sub: #55536B;
  --text-faint: #8D8BA3;
  --white: #FFFFFF;
  --maroon: #6B2A4A;
  --green: #2D6B3F;
  --red: #A33030;
  --blue: #2B5EA3;
  --amber: #D4860A;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0.55rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  text-size-adjust: auto;
  -webkit-text-size-adjust: auto;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(1.3rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   PIN GATE
   ============================================= */

.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gate__bg {
  position: absolute;
  inset: 0;
  background: var(--rich);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(107, 42, 74, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.gate__card {
  position: relative;
  text-align: center;
  max-width: 24rem;
  width: 100%;
  padding: 2.5rem 1.5rem 2rem;
}

.gate__crest img {
  width: 9rem; height: 9rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.3);
  padding: 3px;
  background: rgba(201, 168, 76, 0.05);
}

.gate__est {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 0.8rem;
  opacity: 0.7;
}

.gate__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin: 0.4rem 0 0;
}

.gate__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 1.5rem 0 0.8rem;
  position: relative;
}
.gate__label::before,
.gate__label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 1px;
  background: rgba(201, 168, 76, 0.25);
}
.gate__label::before { right: calc(100% + 0.75rem); }
.gate__label::after { left: calc(100% + 0.75rem); }

.gate__field {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.gate__field:focus-within {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.08);
}

.gate__field input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  color: var(--cream);
  text-align: center;
  outline: none;
  font-family: var(--font-sans);
  min-width: 0;
}
.gate__field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5em;
}

.gate__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 1.2rem;
  background: var(--gold);
  color: var(--rich);
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.gate__btn:hover { background: var(--gold-soft); }
.gate__btn:disabled { opacity: 0.5; cursor: wait; }

.gate__error {
  color: #E8836B;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  font-weight: 500;
}

.gate--exit { animation: gateExit 0.6s var(--ease-out) forwards; }
@keyframes gateExit { to { opacity: 0; transform: scale(1.02); pointer-events: none; } }

/* =============================================
   TOP BAR
   ============================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--rich);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.topbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.topbar__logo {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.3);
}

.topbar__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
}

.topbar__links { display: flex; gap: 0.15rem; }

.topbar__link {
  color: rgba(246, 241, 231, 0.6);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: 0.35rem;
  transition: all 0.2s;
  text-transform: uppercase;
}
.topbar__link:hover, .topbar__link.active {
  color: var(--gold-soft);
  background: rgba(201, 168, 76, 0.08);
}

/* =============================================
   MASTHEAD
   ============================================= */

.mast {
  position: relative;
  color: var(--cream);
  padding: 4.5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--rich);
}

.mast__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  transition: opacity 0.5s;
}

.mast__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--rich) 0%, rgba(12,11,30,0.6) 40%, var(--rich) 100%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.mast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.mast__inner {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
}

.mast__badge img {
  width: 10rem; height: 10rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.25);
  padding: 2px;
}

.mast__edition {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 1.2rem;
}

.mast__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0.3rem;
}

.mast__rule {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto;
  border-radius: 1px;
}

.mast__message {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.7);
  max-width: 34rem;
  margin: 0 auto;
}

/* =============================================
   GENERIC SECTIONS
   ============================================= */

.sect {
  padding: 3.5rem 2rem;
}
.sect--paper { background: var(--paper); }
.sect--dark { background: var(--deep); color: var(--cream); }
.sect--warm { background: var(--cream); }

.sect__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.section-label__line { flex: 1; height: 1px; background: var(--warm); }
.section-label__text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  white-space: nowrap;
}
.section-label--light .section-label__line { background: rgba(201, 168, 76, 0.2); }
.section-label--light .section-label__text { color: var(--cream); }

/* =============================================
   NEWS / ARTICLES
   ============================================= */

.news__feed {
  display: flex;
  flex-direction: column;
}

@media (min-width: 52rem) {
  .news__feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }
  .news__feed .article--featured { grid-column: 1 / -1; }
}

.article {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--warm);
  opacity: 0;
  transform: translateY(1.2rem);
}
.article.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-out);
}
.article:last-child { border-bottom: none; }

.article__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.2rem;
}

.article__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.article__meta {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.article__meta span { color: var(--gold); }

.article__body {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.85;
  white-space: pre-line;
}

.article__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}

@media (min-width: 52rem) {
  .article--featured {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
  .article--featured .article__number {
    font-size: 5rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    align-self: start;
  }
}

/* =============================================
   BULLETIN BOARD
   ============================================= */

.bulletin__list {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 52rem) {
  .bulletin__list { grid-template-columns: 1fr 1fr; }
}

.bulletin__card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bulletin__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.bulletin__card--urgent {
  border-left-color: var(--amber);
  background: linear-gradient(135deg, #FFFBF0, var(--white));
}
.bulletin__card--urgent::before {
  content: 'IMPORTANT';
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  background: rgba(212, 134, 10, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

/* =============================================
   PROBATIONERS / WELCOME
   ============================================= */

.prob__list {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 40rem) {
  .prob__list { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
}

.prob__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}

.prob__icon {
  width: 2.8rem; height: 2.8rem;
  border-radius: 50%;
  background: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  font-size: 1.3rem;
}

.prob__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.prob__detail {
  font-size: 0.78rem;
  color: var(--gold-soft);
  opacity: 0.7;
}

/* =============================================
   MAINTENANCE / RANGE STATUS
   ============================================= */

.maint__list {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 40rem) {
  .maint__list { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
}

.maint__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.maint__dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.maint__dot--open { background: var(--green); box-shadow: 0 0 6px rgba(45,107,63,0.4); }
.maint__dot--partial { background: var(--amber); box-shadow: 0 0 6px rgba(212,134,10,0.4); }
.maint__dot--closed { background: var(--red); box-shadow: 0 0 6px rgba(163,48,48,0.4); }

.maint__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.maint__status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.maint__status--open { color: var(--green); }
.maint__status--partial { color: var(--amber); }
.maint__status--closed { color: var(--red); }

.maint__desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* =============================================
   SCORES / RESULTS
   ============================================= */

.scores__block {
  margin-bottom: 1.5rem;
}

.scores__header {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.scores__date {
  font-size: 0.72rem;
  color: var(--gold-soft);
  opacity: 0.7;
  margin-bottom: 0.8rem;
}

.scores__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.scores__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 20rem;
}

.scores__table th {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.scores__table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--cream);
}

.scores__table tr:hover td { background: rgba(255,255,255,0.03); }

.scores__place {
  font-weight: 700;
  width: 2.5rem;
  text-align: center;
}
.scores__place--1 { color: #FFD700; }
.scores__place--2 { color: #C0C0C0; }
.scores__place--3 { color: #CD7F32; }

.scores__score { font-weight: 600; color: var(--gold-soft); }

/* =============================================
   GALLERY
   ============================================= */

.gallery__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 52rem) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--slate), var(--ink));
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.gallery__item:hover .gallery__img { transform: scale(1.05); }

.gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(246,241,231,0.2);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}
.gallery__placeholder svg {
  display: block;
  margin: 0 auto 0.3rem;
  opacity: 0.3;
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 500;
}

/* =============================================
   CALENDAR
   ============================================= */

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cal-nav__btn {
  width: 2.8rem; height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 50%;
  color: var(--gold-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.cal-nav__btn:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold-soft);
}

.cal-nav__label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  min-width: 12rem;
  text-align: center;
}

.cal-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  min-width: 36rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
}

.cal-head {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-soft);
  text-align: center;
  padding: 0.5rem 0.2rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cal-day {
  background: rgba(255,255,255,0.02);
  min-height: 5rem;
  padding: 0.4rem;
  transition: background 0.2s;
  position: relative;
}
.cal-day:hover { background: rgba(255,255,255,0.05); }
.cal-day--other { opacity: 0.25; }
.cal-day--today { background: rgba(201, 168, 76, 0.08); }
.cal-day--today::after {
  content: '';
  position: absolute;
  top: 0.25rem; right: 0.25rem;
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.cal-day__num {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
  display: block;
  margin-bottom: 0.2rem;
}
.cal-day--other .cal-day__num { color: rgba(246, 241, 231, 0.3); }

.cal-day__evt {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  color: var(--white);
}

/* =============================================
   UPCOMING EVENTS
   ============================================= */

.upcoming { margin-top: 2.5rem; }

.upcoming__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.upcoming__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 72rem) {
  .upcoming__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

.evt-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s, border-color 0.2s;
}
.evt-row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201, 168, 76, 0.15);
}

.evt-row__bar {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  flex-shrink: 0;
}

.evt-row__date { text-align: center; min-width: 3rem; flex-shrink: 0; }
.evt-row__day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
}
.evt-row__month {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.8;
}

.evt-row__info { flex: 1; min-width: 0; }
.evt-row__name { font-weight: 600; font-size: 0.9rem; color: var(--cream); }
.evt-row__detail { font-size: 0.75rem; color: var(--gold-soft); opacity: 0.7; }
.evt-row__desc { font-size: 0.78rem; color: rgba(246,241,231,0.5); margin-top: 0.1rem; }

/* =============================================
   FOOTER
   ============================================= */

.foot {
  background: var(--rich);
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}
.foot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.2;
}

.foot__inner { max-width: 30rem; margin: 0 auto; }
.foot__logo { border-radius: 50%; opacity: 0.6; margin-bottom: 0.6rem; width: 3.2rem; height: 3.2rem; }
.foot__name { font-family: var(--font-serif); font-size: 1rem; color: var(--cream); opacity: 0.8; }
.foot__est { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); opacity: 0.4; margin-top: 0.15rem; }
.foot__private {
  font-size: 0.7rem;
  color: rgba(246,241,231,0.3);
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 80rem) {
  .mast { padding: 5rem 2rem 4.5rem; }
  .mast__badge img { width: 12rem; height: 12rem; }
  .mast__title { font-size: 3.2rem; }
  .sect { padding: 4rem 2rem; }
}

@media (max-width: 40rem) {
  html { font-size: 100%; }
  .mast { padding: 2.5rem 1rem; }
  .mast__title { font-size: 2rem; }
  .mast__badge img { width: 6rem; height: 6rem; }
  .gate__title { font-size: 1.2rem; }
  .gate__card { padding: 2rem 1.2rem 1.5rem; }
  .topbar__inner { padding: 0 0.8rem; }
  .sect { padding: 2.5rem 1rem; }
  .cal-wrap { display: none; }
  .cal-nav { display: none; }
  .upcoming { margin-top: 0; }
  .article__number { font-size: 2.2rem; }
  .article__title { font-size: 1.25rem; }
  .evt-row { padding: 0.6rem; gap: 0.6rem; }
  .evt-row__day { font-size: 1.2rem; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =============================================
   ADMIN STYLES
   ============================================= */

.admin-body { background: var(--paper); }

.admin-header {
  background: var(--rich);
  color: var(--cream);
  padding: 0 1.5rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
}
.admin-header__actions { display: flex; gap: 0.4rem; align-items: center; }

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--rich);
}
.admin-login-box {
  max-width: 22rem;
  width: 100%;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
}
.admin-login-box h2 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0.8rem 0 1.2rem;
}

.admin-container { max-width: 56rem; margin: 0 auto; padding: 1.2rem; }

.admin-tabs {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 1.2rem;
  overflow-x: auto;
}
.admin-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--warm);
  border-bottom: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  border-radius: 0.5rem 0.5rem 0 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-tab:hover { background: var(--warm); }
.admin-tab.active { background: var(--rich); color: var(--gold-soft); border-color: var(--rich); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--warm);
  margin-bottom: 0.8rem;
}
.admin-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.form-group { margin-bottom: 0.6rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  border: 1px solid var(--warm);
  border-radius: 0.35rem;
  font-family: var(--font-sans);
  line-height: 1.5;
  transition: border-color 0.2s;
  background: var(--paper);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 5rem; resize: vertical; }

.form-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 2.4rem;
}
.btn-primary { background: var(--rich); color: var(--gold-soft); border-color: var(--rich); }
.btn-primary:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--warm); }
.btn-outline:hover { background: var(--warm); }
.btn-gold { background: var(--gold); color: var(--rich); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(163,48,48,0.3); }
.btn-danger:hover { background: var(--red); color: white; }
.btn-small { padding: 0.3rem 0.6rem; font-size: 0.72rem; min-height: 1.8rem; }

.admin-article-item, .admin-event-item, .admin-section-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.8rem;
  border: 1px solid var(--warm);
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--gold);
}
.article-edit-form, .section-item-edit-form {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--warm);
}
.admin-article-item h4, .admin-event-item h4, .admin-section-item h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
}
.admin-article-item .meta, .admin-event-item .meta, .admin-section-item .meta {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.admin-item-actions { display: flex; gap: 0.3rem; margin-top: 0.3rem; }

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.toggle {
  position: relative;
  width: 2.8rem;
  height: 1.5rem;
  background: var(--warm);
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(1.3rem); }
.toggle__label { font-size: 0.85rem; font-weight: 600; color: var(--text); }

.toast {
  position: fixed;
  bottom: 1.2rem; right: 1.2rem;
  background: var(--rich);
  color: var(--gold-soft);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(201,168,76,0.2);
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 1000;
  transform: translateY(5rem);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--red); color: white; border-color: transparent; }

.image-preview { max-width: 10rem; max-height: 7rem; object-fit: cover; border-radius: 0.35rem; margin-top: 0.3rem; }

.colour-options { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.colour-option {
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.colour-option:hover, .colour-option.selected {
  border-color: var(--text);
  transform: scale(1.15);
}

.error-message { color: var(--red); font-size: 0.8rem; font-weight: 500; }
