/* ═══════════════════════════════════════════════════════════════════
   Trinity Canvas · Style Sheet
   Aesthetic: Sacred Elegance — deep navy + antique gold + ivory parchment
   Fonts: Cinzel (headings) · Cormorant Garamond (body/quotes) · Lato (UI)
═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0f1b2d;
  --navy-mid:   #1a2d45;
  --navy-soft:  #243550;
  --gold:       #c8993c;
  --gold-light: #e0b96a;
  --gold-pale:  #f5e9cc;
  --ivory:      #faf7f1;
  --ivory-dark: #f0ebe0;
  --text:       #2c2c2c;
  --text-muted: #6b6458;
  --white:      #ffffff;

  --font-head:  'Cinzel', Georgia, serif;
  --font-body:  'Cormorant Garamond', Georgia, serif;
  --font-ui:    'Lato', sans-serif;

  --radius:     4px;
  --shadow:     0 4px 24px rgba(15,27,45,.12);
  --shadow-lg:  0 12px 48px rgba(15,27,45,.22);

  --transition: .3s ease;
  --max-width:  1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Visitor Ribbon ─────────────────────────────────────────────── */
.visitor-ribbon {
  background: var(--navy);
  color: var(--gold-pale);
  font-family: var(--font-ui);
  font-size: .75rem;
  letter-spacing: .08em;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: .35rem 2rem;
}
.visitor-ribbon strong { color: var(--gold-light); }

/* ── Site Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(200,153,60,.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}

.logo-cross {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 12px rgba(200,153,60,.5);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ivory);
  letter-spacing: .1em;
}
.logo-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .78rem;
  color: var(--gold-pale);
  opacity: .8;
  letter-spacing: .06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--ivory);
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  text-transform: uppercase;
}
.nav-link:hover, .nav-link.active {
  background: rgba(200,153,60,.15);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Main ───────────────────────────────────────────────────────── */
.site-main { min-height: 60vh; }

/* ── Hero / Home Banner ─────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;  /* allow clicks to pass through to buttons */
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,153,60,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(200,153,60,.06) 0%, transparent 50%);
}
.hero-cross {
  font-size: 3rem;
  color: var(--gold);
  display: block;
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  text-shadow: 0 0 24px rgba(200,153,60,.5);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: .08em;
  color: var(--ivory);
  margin-bottom: .5rem;
  position: relative;
  z-index: 2;
}
.hero .hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-pale);
  opacity: .85;
  margin-bottom: 2rem;
}
.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: .6;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(200,153,60,.6);
}
.btn-outline:hover {
  background: rgba(200,153,60,.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-navy {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-soft); }

/* ── Section Commons ────────────────────────────────────────────── */
.section { padding: 4rem 2rem; }
.section-dark { background: var(--navy); color: var(--ivory); }
.section-ivory { background: var(--ivory-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  letter-spacing: .05em;
  color: inherit;
  margin-bottom: .75rem;
}
.section-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: .6;
}

/* ── Gallery Grid ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.artwork-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.artwork-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--navy);
  display: block;
}
.artwork-card__img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .6s ease;
  display: block;
}
.artwork-card:hover .artwork-card__img img { transform: scale(1.05); }

/* "View Full Image" hint on hover */
.artwork-card__img::after {
  content: '🔍 View Full Image';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,27,45,.92) 0%, transparent 100%);
  color: var(--gold-pale);
  font-family: var(--font-ui);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1.8rem .75rem .6rem;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.artwork-card:hover .artwork-card__img::after { opacity: 1; }

/* View count badge — sits at top-right of card */
.artwork-card__views {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(15,27,45,.75);
  color: var(--gold-pale);
  font-family: var(--font-ui);
  font-size: .68rem;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 3;
}

.artwork-card__body { padding: 1.1rem 1.2rem 1.2rem; }
.artwork-card__cat {
  font-family: var(--font-ui);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .3rem;
}
.artwork-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.artwork-card__meta {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-muted);
}

/* ── Artwork Detail ─────────────────────────────────────────────── */
.artwork-detail {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .artwork-detail { grid-template-columns: 1fr; }
}
.artwork-detail__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.artwork-detail__image img { width: 100%; }

.artwork-detail__info { padding-top: .5rem; }
.artwork-detail__cat {
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.artwork-detail__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--navy);
  margin: .4rem 0 .5rem;
  line-height: 1.2;
}
.artwork-detail__rule {
  width: 50px; height: 1px;
  background: var(--gold); opacity: .5;
  margin-bottom: 1.2rem;
}
.artwork-detail__desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.artwork-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: .82rem;
}
.artwork-meta-table td {
  padding: .4rem .2rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--text-muted);
}
.artwork-meta-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 35%;
  letter-spacing: .04em;
}
.view-count-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--gold-pale);
  border: 1px solid rgba(200,153,60,.3);
  border-radius: 20px;
  padding: .25rem .8rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ── Article Cards ──────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card__cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-mid);
}
.article-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.article-card:hover .article-card__cover img { transform: scale(1.05); }

.article-card__body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__cat {
  font-family: var(--font-ui);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.article-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .6rem;
}
.article-card__excerpt {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1rem;
}
.article-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: .75rem;
}

/* ── Article Single ─────────────────────────────────────────────── */
.article-single {
  max-width: 780px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.article-single__cat {
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.article-single__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
  margin: .5rem 0 .75rem;
}
.article-single__meta {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-single__cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}
.article-single__cover img { width: 100%; max-height: 480px; object-fit: cover; }

.article-body {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
}
.article-body h2, .article-body h3 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 2rem 0 .75rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--gold-pale);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

/* ── Comments ───────────────────────────────────────────────────── */
.comments-section {
  max-width: 780px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}
.comments-section h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.comments-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.1);
}

.comment-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-left: 3px solid var(--gold);
}
.comment-author {
  font-family: var(--font-head);
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .2rem;
}
.comment-date {
  font-family: var(--font-ui);
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.comment-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}

.comment-form { margin-top: 2rem; }
.comment-form h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,153,60,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .3rem;
  font-style: italic;
}

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .08em;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.12);
  color: var(--navy);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Filter Bar ─────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border: 1px solid rgba(200,153,60,.4);
  border-radius: 20px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ── About Page ─────────────────────────────────────────────────── */
.about-layout {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) { .about-layout { grid-template-columns: 1fr; } }
.about-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-portrait img { width: 100%; }
.about-text { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.9; }
.about-text h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.about-text .about-title {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* ── Alert Messages ─────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-family: var(--font-ui);
  font-size: .9rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: var(--gold-pale); color: var(--navy); border: 1px solid rgba(200,153,60,.3); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-cross {
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
  text-shadow: 0 0 16px rgba(200,153,60,.4);
}
.footer-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: .1em;
  color: var(--ivory);
  margin-bottom: .2rem;
}
.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .85rem;
  color: var(--gold-pale);
  opacity: .7;
  margin-bottom: 1.5rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  font-family: var(--font-ui);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-pale);
  opacity: .7;
  transition: opacity var(--transition);
}
.footer-nav a:hover { opacity: 1; color: var(--gold-light); }

.footer-copy {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--gold-pale);
  opacity: .55;
  margin-top: 1rem;
  line-height: 1.8;
}
.footer-copy a { color: var(--gold-pale); opacity: .7; }
.footer-copy a:hover { opacity: 1; }

/* ── Lightbox ───────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,16,28,.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold-pale);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* ── Admin Panel ────────────────────────────────────────────────── */
.admin-wrap {
  display: flex;
  min-height: 100vh;
  font-family: var(--font-ui);
}
.admin-sidebar {
  width: 240px;
  background: var(--navy);
  color: var(--ivory);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.admin-sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(200,153,60,.2);
  text-align: center;
}
.admin-sidebar-logo .logo-cross { font-size: 1.5rem; }
.admin-sidebar-logo .logo-title { font-size: 1rem; }

.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  letter-spacing: .04em;
  transition: all var(--transition);
  text-decoration: none;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(200,153,60,.12);
  color: var(--gold-light);
  border-right: 3px solid var(--gold);
}
.admin-nav .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.admin-content {
  flex: 1;
  background: #f4f5f7;
  overflow-x: hidden;
}
.admin-topbar {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  font-size: .85rem;
}
.admin-topbar strong { color: var(--navy); }

.admin-page { padding: 2rem; }
.admin-page h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.admin-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
}
.admin-card h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #eee;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
  border-top: 3px solid var(--gold);
}
.stat-card .stat-val {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--navy);
}
.stat-card .stat-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.data-table th {
  background: var(--navy);
  color: var(--ivory);
  padding: .7rem 1rem;
  text-align: left;
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .08em;
}
.data-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid #eee;
  color: var(--text);
}
.data-table tr:hover td { background: #fafafa; }

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.badge-green  { background: #d4edda; color: #155724; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-red    { background: #f8d7da; color: #721c24; }

/* ── Mobile Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .visitor-ribbon { font-size: .7rem; gap: .8rem; padding: .3rem 1rem; }
  .header-inner { padding: .8rem 1rem; }
  .logo-title { font-size: 1.1rem; }
  .logo-tagline { display: none; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .2rem;
    border-top: 1px solid rgba(200,153,60,.2);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: .75rem 1rem; }

  .hero { padding: 3rem 1.5rem; }
  .section { padding: 3rem 1rem; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .articles-grid { grid-template-columns: 1fr; }

  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-nav { display: flex; overflow-x: auto; padding: 0; }
  .admin-nav a { white-space: nowrap; border-right: none !important; border-bottom: 3px solid transparent; }
  .admin-nav a.active { border-bottom-color: var(--gold) !important; }
  .admin-page { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Social Share ────────────────────────────────────────────────── */
.social-share {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,.08);
}
.social-share__label {
  display: block;
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.social-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  color: #fff;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.share-btn span  { font-size: .9rem; }
.share-fb   { background: #1877f2; }
.share-tw   { background: #000; }
.share-wa   { background: #25d366; }
.share-pi   { background: #e60023; }
.share-copy { background: var(--navy); color: var(--ivory); }
.share-copy.copied { background: #27ae60; }

/* ── Shared Drop Zone (artwork_add + article_add) ────────────────── */
.drop-zone {
    position: relative;
    border: 2px dashed rgba(200,153,60,.5);
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    transition: all .2s;
    cursor: pointer;
    overflow: hidden;
}
.drop-zone:hover  { border-color: var(--gold); background: var(--gold-pale); }
.drop-zone.over   { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 0 0 4px rgba(200,153,60,.15); }
.drop-zone.chosen { border-color: #27ae60; background: #f0fff4; border-style: solid; }
.drop-zone input[type=file] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 10; font-size: 0;
}
.drop-zone-inner { pointer-events: none; text-align: center; padding: 2rem 1.5rem; z-index: 1; }
.dz-icon  { font-size: 3rem; display: block; margin-bottom: .75rem; line-height: 1; }
.dz-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: .4rem; }
.dz-sub   { font-family: var(--font-ui); font-size: .8rem; color: var(--text-muted); }
.dz-sub strong { color: var(--gold); }
.dz-or    { font-family: var(--font-ui); font-size: .75rem; color: var(--text-muted); margin: .5rem 0; }

/* ── Multi-Category Pills — styles handled inline in category_checkboxes.php ── */

/* Category pills on gallery cards */
.artwork-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-bottom: .3rem;
}
.artwork-card__cat-pill {
    font-family: var(--font-ui);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-pale);
    padding: .1rem .45rem;
    border-radius: 10px;
}
