/* =============================================
   SWANSEA SCOOP — WHAT'S ON CALENDAR
   Brand: #1CA8E8 blue, #F4982E orange, clean white
   Fonts: Playfair Display (editorial headings), Inter (body/UI)
   ============================================= */

:root {
  --blue: #1CA8E8;
  --blue-dark: #0E7CB5;
  --orange: #F4982E;
  --black: #111111;
  --grey: #6B7280;
  --grey-light: #F3F4F6;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

h1, h2 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h3 { font-family: 'Inter', system-ui, sans-serif; line-height: 1.3; font-weight: 700; }

/* ── Container ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: 720px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
}
.site-header-top { background: var(--white); }
.site-header-stripe { height: 3px; background: var(--blue); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-brand {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--black);
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey);
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--black); background: var(--grey-light); text-decoration: none; }
.site-nav .btn-submit {
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 8px;
  margin-left: 0.25rem;
}
.site-nav .btn-submit:hover { background: #e08a1f; text-decoration: none; }

/* ── Hero ── */
.hero {
  background:
    linear-gradient(to bottom, rgba(0,18,45,0.52) 0%, rgba(14,100,160,0.60) 100%),
    url('/img/swansea-marina.jpg') center 40% / cover no-repeat;
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.025em;
  margin-bottom: 0.625rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero-sub {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.category-hero-tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
}
.free-badge {
  display: inline-block;
  background: #22C55E;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.2rem 0.875rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}

/* ── Month Navigation ── */
.month-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding: 1.25rem 0 0;
}
.month-nav-jumps {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.month-jump {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--grey);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  background: var(--white);
}
.month-jump:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.month-jump.active { background: var(--black); border-color: var(--black); color: var(--white); font-weight: 600; }
.month-nav-browse {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.month-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--black);
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.15s;
  line-height: 1;
}
.month-nav-arrow:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.month-nav-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--black);
  min-width: 110px;
  text-align: center;
}

/* ── Auto-derived card tags ── */
.card-auto-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.375rem;
}
.card-auto-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.card-auto-tag--free { background: #DCFCE7; color: #166534; }
.card-auto-tag--outdoors { background: #ECFDF5; color: #065F46; }

/* ── Category Filters ── */
.filters-wrap {
  padding: 1.5rem 0 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filters-wrap::-webkit-scrollbar { display: none; }
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding-bottom: 0.5rem;
  min-width: max-content;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
  background: var(--white);
}
.filter-chip:hover {
  border-color: var(--cat-color, var(--blue));
  color: var(--cat-color, var(--blue));
  text-decoration: none;
  background: color-mix(in srgb, var(--cat-color, var(--blue)) 8%, white);
}
.filter-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  font-weight: 600;
}

/* ── Events Grid ── */
.events-count {
  font-size: 0.875rem;
  color: var(--grey);
  padding: 1rem 0 0.75rem;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
  padding: 0.5rem 0 3rem;
}
@media (min-width: 640px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .events-grid { grid-template-columns: repeat(4, 1fr); } }
.events-grid--compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .events-grid--compact { grid-template-columns: repeat(3, 1fr); } }

/* ── Event Card ── */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.event-card:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.card-header {
  padding: 0.625rem 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.card-img {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-date-badge {
  background: rgba(0,0,0,0.18);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-body {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-time, .card-venue {
  font-size: 0.78rem;
  color: var(--grey);
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

/* ── Event Page ── */
.breadcrumb-bar {
  background: var(--grey-light);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb-sep { color: var(--grey); }
.breadcrumb-current { color: var(--grey); }

.event-hero {
  padding: 2.5rem 0 2rem;
  background: var(--white);
}
.event-hero-inner { max-width: 800px; }
.event-tag-pill {
  display: inline-block;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.875rem;
}
.event-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--black);
}
.event-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .event-meta-grid { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; }
}
.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.event-meta-icon { font-size: 1.125rem; flex-shrink: 0; }
.event-meta-item div { display: flex; flex-direction: column; }
.event-meta-item strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); }
.event-meta-item span { font-size: 0.9375rem; font-weight: 500; color: var(--black); }
.event-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.75rem;
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 4px solid var(--blue);
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.share-feedback {
  font-size: 0.875rem;
  color: #22C55E;
  font-weight: 600;
  margin-top: 0.25rem;
}
.share-feedback.hidden { display: none; }

.related-section { padding: 2rem 0 3rem; background: var(--grey-light); }
.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.related-more { text-align: center; margin-top: 1.5rem; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--blue) !important;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--blue); color: var(--white) !important; text-decoration: none; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--blue) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-outline:hover { background: var(--blue); color: var(--white) !important; text-decoration: none; }

/* ── Subscribe Section ── */
.subscribe-section {
  background: linear-gradient(135deg, #0E7CB5 0%, #1CA8E8 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.subscribe-inner { max-width: 640px; margin: 0 auto; }
.subscribe-logo { font-size: 3rem; margin-bottom: 1rem; }
.subscribe-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.subscribe-section p { opacity: 0.85; font-size: 1rem; margin-bottom: 1.5rem; }
.subscribe-form-wrap { min-height: 50px; }

/* ── Footer ── */
.site-footer {
  background: var(--white);
  color: var(--black);
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
}
.footer-inner { text-align: center; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-bottom: 1rem;
}
.footer-links a { color: #374151; font-size: 0.875rem; }
.footer-links a:hover { color: var(--black); text-decoration: none; }
.footer-copy { font-size: 0.8125rem; color: #6b7280; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(2px);
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 1.5rem; }
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--white);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  animation: slideUp 0.25s ease;
}
@media (min-width: 640px) {
  .modal { border-radius: var(--radius); animation: fadeScaleIn 0.2s ease; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeScaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  background: none;
  border: none;
  font-size: 1.625rem;
  cursor: pointer;
  color: var(--grey);
  line-height: 1;
  padding: 0.25rem;
  border-radius: 6px;
}
.modal-close:hover { color: var(--black); background: var(--grey-light); }
.modal-tag-bar {
  height: 6px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.25rem 1.5rem 0.5rem;
  padding-right: 2.5rem;
  line-height: 1.3;
}
.modal-meta {
  padding: 0 1.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.modal-blurb {
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #333;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.modal-actions {
  padding: 0.875rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-actions a { font-size: 0.875rem; padding: 0.5rem 1rem; }

/* ── Submit Form ── */
.page-header { padding: 2.5rem 0 1.5rem; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--grey); font-size: 1rem; }
.submit-form { display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 3rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}
.required { color: #EF4444; }
.char-hint { font-weight: 400; color: var(--grey); font-size: 0.8rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--white);
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,168,232,0.12);
}
textarea { resize: vertical; min-height: 100px; }
.char-counter { font-size: 0.8rem; color: var(--grey); text-align: right; }
.form-fieldset {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
.form-fieldset legend { font-weight: 600; font-size: 0.875rem; padding: 0 0.25rem; }
.radio-group { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.radio-label { display: flex; align-items: center; gap: 0.375rem; font-size: 0.9375rem; cursor: pointer; }
.form-divider { border: none; border-top: 1px solid var(--border); }
.form-note { font-size: 0.8125rem; color: var(--grey); }
.btn-submit-form {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
  align-self: flex-start;
}
.btn-submit-form:hover { background: var(--blue-dark); }

/* Checkbox labels */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400;
}
.checkbox-label--toggle { font-weight: 500; }
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
  border: none;
  border-radius: 4px;
}
.checkbox-label span { font-size: 0.9rem; line-height: 1.5; color: var(--black); }

/* Recurring fieldset */
.recurring-fieldset { margin-bottom: 0; }

/* Organiser section */
.organiser-header { margin-bottom: 1.25rem; }
.organiser-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.25rem; }

/* Consent boxes */
.consent-box {
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 1rem 1.125rem;
  margin-bottom: 0.75rem;
}
.consent-box--required {
  background: #FFFBEB;
  border-color: #FDE68A;
}

/* ── Thank-you page ── */
.thanks-page {
  padding: 3rem 0 4rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.thanks-icon {
  width: 64px; height: 64px;
  background: #D1FAE5;
  color: #065F46;
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.thanks-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
}
.thanks-body {
  font-size: 1rem;
  color: #374151;
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.thanks-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 2rem;
}
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 8px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: background 0.15s, transform 0.1s; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--secondary { background: #F3F4F6; color: var(--black); border: 1px solid var(--border); }
.btn--secondary:hover { background: #E5E7EB; }
.thanks-subscribe {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #0C4A6E;
  line-height: 1.55;
}
.thanks-subscribe a { color: var(--blue); font-weight: 500; }

/* ── Alerts ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}
.alert--success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.alert--error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ── Admin ── */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header h1 { font-size: 1.75rem; }
.admin-header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.admin-section { margin-bottom: 3rem; }
.admin-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.admin-empty { color: var(--grey); }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  background: var(--grey-light);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table small { color: var(--grey); }
.admin-actions-cell { white-space: nowrap; }
.btn-approve {
  background: #22C55E; color: white; border: none; border-radius: 6px;
  padding: 0.3rem 0.625rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.btn-approve:hover { background: #16A34A; }
.btn-reject {
  background: #EF4444; color: white; border: none; border-radius: 6px;
  padding: 0.3rem 0.625rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; margin-left: 0.375rem;
}
.btn-reject:hover { background: #DC2626; }
.row-rejected { opacity: 0.5; }
.row-pending { background: #FFFBEB; }
.source-badge, .status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.source-badge--newsletter { background: #DBEAFE; color: #1E40AF; }
.source-badge--manual { background: #F3E8FF; color: #7C3AED; }
.source-badge--submitted { background: #FEF9C3; color: #854D0E; }
.status-badge--published { background: #DCFCE7; color: #166534; }
.status-badge--pending { background: #FEF9C3; color: #854D0E; }
.status-badge--rejected { background: #FEE2E2; color: #991B1B; }
.admin-link { color: var(--blue); font-size: 1.125rem; }

/* Admin Login */
.admin-login-wrap { padding: 4rem 0; display: flex; justify-content: center; }
.admin-login-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}
.admin-login-box h1 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.admin-login-box .form-group { margin-bottom: 1rem; }
.admin-login-box .btn-submit-form { width: 100%; text-align: center; justify-content: center; }

/* ── Empty / Error ── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--grey);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.375rem; margin-bottom: 0.5rem; color: var(--black); }
.empty-state p { margin-bottom: 1.5rem; }
.error-page {
  text-align: center;
  padding: 5rem 1rem;
}
.error-icon { font-size: 4rem; margin-bottom: 1.25rem; }
.error-page h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.error-message { color: var(--grey); font-size: 1.0625rem; margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .site-nav a:not(.btn-submit) { display: none; }
}

/* Edit form */
.edit-form { max-width: 720px; }
.edit-form .form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.edit-form .form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .edit-form .form-row--half { grid-template-columns: 1fr; } }
.edit-form label { font-weight: 600; font-size: 0.875rem; color: var(--text-muted, #6B7280); }
.edit-form input[type="text"],
.edit-form input[type="url"],
.edit-form input[type="date"],
.edit-form select,
.edit-form textarea {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #D1D5DB;
  border-radius: 6px; font-size: 1rem; font-family: inherit;
  background: #fff; color: inherit;
}
.edit-form textarea { resize: vertical; }
.edit-form input:focus, .edit-form select:focus, .edit-form textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px;
}
.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.btn-edit {
  display: inline-block; padding: 0.3rem 0.65rem; font-size: 0.8rem;
  background: #F3F4F6; border: 1px solid #D1D5DB; border-radius: 5px;
  color: #374151; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-edit:hover { background: #E5E7EB; text-decoration: none; }
.muted { color: #6B7280; font-size: 0.85rem; }

/* Edit form image preview */
.image-preview { margin-bottom: 0.5rem; }
.image-preview img { max-width: 100%; max-height: 200px; border-radius: 6px; border: 1px solid #E5E7EB; object-fit: cover; }

/* Unsplash search panel */
.unsplash-search { margin-top: 0.5rem; }
.unsplash-search__bar { display: flex; gap: 0.5rem; }
.unsplash-search__bar input { flex: 1; padding: 0.4rem 0.65rem; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 0.9rem; }
.btn-sm { padding: 0.35rem 0.75rem !important; font-size: 0.85rem !important; }
.unsplash-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.5rem; max-height: 320px; overflow-y: auto; padding: 0.25rem; border: 1px solid #E5E7EB; border-radius: 6px; background: #F9FAFB; }
.uThumb { background: none; border: 2px solid transparent; border-radius: 6px; padding: 0; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.uThumb:hover { border-color: var(--blue, #1CA8E8); }
.uThumb img { width: 100%; height: 80px; object-fit: cover; display: block; }
.uThumb span { font-size: 0.65rem; color: #6B7280; padding: 0.2rem 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Upload row */
.upload-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.upload-label { cursor: pointer; display: inline-block; }

/* ── Card preview FAB + modal ── */
.preview-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.preview-fab:hover { background: #222; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.28); }
.preview-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.preview-overlay.is-open { display: block; }
.preview-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  bottom: 5rem;
  right: 2rem;
  width: 300px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  overflow: hidden;
}
.preview-modal.is-open { display: block; }
.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
.preview-modal-title { font-size: 0.8125rem; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; }
.preview-close { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--grey); line-height: 1; padding: 0.2rem 0.3rem; border-radius: 4px; }
.preview-close:hover { background: var(--grey-light); color: var(--black); }
.preview-modal-body { padding: 0.875rem; }
.preview-hint { font-size: 0.78rem; color: var(--grey); margin: 0 0 0.75rem; }
.preview-card-wrap { border-radius: var(--radius); overflow: hidden; }
.preview-card { cursor: default; }
.preview-card:hover { transform: none; box-shadow: var(--shadow); }

/* Submit form image dropzone */
.dropzone-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; gap: 0.5rem; flex-wrap: wrap; }
.dropzone-label-title { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--black); }
.dropzone-label-tip { font-size: 0.8rem; color: var(--grey); }
.dropzone-label-tip strong { color: var(--black); }

.dropzone {
  display: block;
  position: relative;
  border: 2px dashed #CBD5E1;
  border-radius: 10px;
  background: #F8FAFC;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  overflow: hidden;
}
.dropzone:hover, .dropzone--over { border-color: var(--blue); background: #EFF6FF; }
.dropzone--filled { border-style: solid; border-color: #CBD5E1; background: var(--white); }

.dropzone-idle { padding: 2.25rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; pointer-events: none; }
.dropzone-icon { color: #94A3B8; }
.dropzone:hover .dropzone-icon, .dropzone--over .dropzone-icon { color: var(--blue); }
.dropzone-cta { font-size: 0.9rem; color: #374151; }
.dropzone-cta-link { color: var(--blue); font-weight: 600; }
.dropzone-hint { font-size: 0.775rem; color: #94A3B8; }

.dropzone-preview { position: relative; }
.dropzone-preview img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.dropzone-remove {
  position: absolute; bottom: 0.6rem; right: 0.6rem;
  background: rgba(0,0,0,0.55); color: #fff;
  border: none; border-radius: 6px;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.65rem; cursor: pointer;
  transition: background 0.15s;
}
.dropzone-remove:hover { background: rgba(0,0,0,0.8); }
