/* Carroll Elementary PTA */

:root {
  --navy: #071536;
  --navy-deep: #040b1c;
  --royal: #1a4fd8;
  --comet: #2b6bff;
  --yellow: #f5c400;
  --gold: #e0b000;
  --ink: #12203a;
  --mist: #f3f6fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 21, 54, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--royal);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 80;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--royal);
}

.kicker.light {
  color: var(--yellow);
}

h1, h2, h3 {
  line-height: 1.15;
  color: var(--navy);
}

.lead {
  color: rgba(18, 32, 58, 0.8);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 11, 28, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav-desktop {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--navy);
  background: var(--yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-desktop + .header-actions {
  margin-left: 16px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--yellow);
}

.icon-btn:hover {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.site-header a.icon-btn-cal.is-admin-cal {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

.site-header a.icon-btn-cal.is-admin-cal:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.menu-toggle {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  padding: 8px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
}

.nav-mobile a.is-active {
  background: var(--yellow);
  color: var(--navy);
}

.mobile-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.mobile-tools a {
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.download-ics {
  display: inline-block;
  margin-top: 12px;
  color: var(--yellow);
  font-size: 14px;
  text-decoration: underline;
}

@media (min-width: 960px) {
  .logo img {
    height: 64px;
  }

  .nav-desktop {
    display: flex;
  }

  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-secondary {
  background: var(--royal);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--comet);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Heroes */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero {
  min-height: 55vh;
}

.hero img,
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #040b1c 0%, rgba(7, 21, 54, 0.8) 55%, rgba(7, 21, 54, 0.25) 100%);
}

.page-hero-shade {
  background: linear-gradient(90deg, #040b1c 0%, rgba(7, 21, 54, 0.88) 60%, rgba(7, 21, 54, 0.45) 100%);
}

.hero-copy,
.page-hero-copy {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 0;
}

.page-hero-copy {
  padding: 64px 0;
}

.hero h1 {
  margin: 12px 0 0;
  max-width: 12em;
  color: #fff;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.03em;
}

.hero .hero-subhead {
  margin: 12px 0 0;
  max-width: none;
  color: var(--yellow);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
}

.page-hero h1 {
  margin: 12px 0 0;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
}

.hero p,
.page-hero p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.85);
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2,
.split h2,
.center-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 36px);
}

.section-head .btn-row {
  margin-top: 16px;
}

.btn-navy:hover {
  background: var(--comet);
  color: #fff;
}

.bg-white {
  background: #fff;
}

.bg-navy {
  background: var(--navy);
  color: #fff;
}

.bg-navy h2 {
  color: #fff;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(7, 21, 54, 0.15);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.photo-rounded {
  border-radius: 32px;
}

.center-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.center-copy .btn {
  margin-top: 24px;
}

/* Cards & events */

.grid-3,
.grid-2,
.calendar-grid,
.gallery-grid,
.board-grid,
.reason-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .grid-2,
  .calendar-grid,
  .board-grid,
  .reason-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .grid-3,
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.event-card,
.board-card,
.reason-card,
.info-card,
.calendar-card,
.form-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.event-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.event-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.event-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.date-badge {
  flex: 0 0 72px;
  width: 72px;
  min-height: 72px;
  padding: 8px 6px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.date-badge.has-time {
  flex-basis: 84px;
  width: 84px;
  min-height: 88px;
}

.date-badge .mon {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.date-badge .day {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.date-badge .time {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: var(--yellow);
  white-space: nowrap;
}

.cat {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
}

.event-card h3,
.past-card h3,
.gallery-card h2 {
  margin: 4px 0 0;
}

.muted {
  color: rgba(18, 32, 58, 0.7);
  font-size: 14px;
}

.event-links {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  flex: 1 1 auto;
  min-width: 0;
}

.event-card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.event-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.event-more-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--royal);
  white-space: nowrap;
}

.event-more-info:hover {
  color: var(--navy);
}

.event-more-info svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.admin-flyer-current {
  font-size: 14px;
  font-weight: 700;
}

.past-card,
.gallery-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
}

.past-card:hover,
.gallery-card:hover {
  color: inherit;
}

.past-photo,
.gallery-photo {
  position: relative;
  height: 224px;
  overflow: hidden;
}

.past-photo img,
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 21, 54, 0.8), transparent);
}

.past-photo-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
}

.past-photo-copy .kicker {
  color: var(--yellow);
}

.past-photo-copy h3 {
  margin: 4px 0 0;
  color: #fff;
}

.past-card p,
.gallery-card p {
  padding: 0 20px;
  font-size: 14px;
}

.gallery-card h2,
.gallery-card p,
.gallery-card .photo-count {
  padding-left: 20px;
  padding-right: 20px;
}

.gallery-card h2 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.gallery-card .photo-count {
  padding-bottom: 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--royal);
}

.date-on-photo {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  z-index: 1;
}

/* Board */

.board-card {
  display: flex;
  gap: 20px;
  padding: 24px;
}

.board-card.open {
  border: 2px dashed rgba(26, 79, 216, 0.4);
  box-shadow: none;
}

.avatar {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}

.avatar.open {
  background: var(--mist);
  color: var(--royal);
}

.board-card img.avatar {
  object-fit: cover;
  padding: 0;
}

.reason-card {
  background: var(--mist);
  padding: 28px;
  box-shadow: none;
}

.reason-card h3 {
  margin: 0;
}

/* Board CTA */

.board-cta {
  display: grid;
  gap: 32px;
}

.board-cta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 32px;
}

.board-cta ul {
  padding-left: 0;
  list-style: none;
}

.board-cta li {
  margin: 12px 0;
}

@media (min-width: 900px) {
  .board-cta {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Calendar */

.calendar-card {
  padding: 20px;
}

.calendar-card h3 {
  margin: 0 0 16px;
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(7, 21, 54, 0.45);
  padding: 4px 0;
}

.cal-days button {
  position: relative;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.cal-days button:hover {
  background: var(--mist);
}

.cal-days button.is-today {
  background: var(--navy);
  color: #fff;
}

.cal-days button.is-selected {
  background: var(--yellow);
  color: var(--navy);
}

.cal-days .dot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--royal);
}

.cal-days button.is-selected .dot {
  background: var(--navy);
}

.events-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 32px 0 16px;
}

.events-toolbar h3 {
  margin: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.info-card {
  padding: 24px;
  margin-bottom: 16px;
}

.info-card h2,
.info-card p:first-child {
  margin: 0;
}

.info-card a.big,
.info-card .big {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
}

.map-wrap {
  overflow: hidden;
  border-radius: 24px;
  height: 256px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-card {
  padding: 32px;
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(7, 21, 54, 0.1);
  border-radius: 16px;
  background: var(--mist);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--yellow);
  background: #fff;
}

.form-card .btn {
  width: 100%;
  margin-top: 24px;
}

.form-status {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-success {
  background: rgba(26, 79, 216, 0.08);
  color: var(--navy);
}

.form-status.is-error {
  background: rgba(176, 32, 32, 0.08);
  color: #8a1f1f;
}

/* Lightbox & photo grid */

.photo-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.photo-grid button {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}

.photo-grid img {
  width: 100%;
  height: 256px;
  object-fit: cover;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 11, 28, 0.9);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 16px;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  font-size: 28px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Footer */

.site-footer {
  background: var(--navy);
  color: #fff;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(245, 196, 0, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 88%, rgba(43, 107, 255, 0.4) 0 1.5px, transparent 2px);
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding: 56px 0;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer img {
  height: 64px;
  width: auto;
}

.site-footer h2 {
  margin: 0;
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.site-footer li {
  margin: 8px 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  color: var(--yellow);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.empty-note {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  color: rgba(18, 32, 58, 0.7);
}

.future-note {
  text-align: center;
  font-size: 14px;
  color: rgba(18, 32, 58, 0.6);
  margin-top: 16px;
}

.future-note button {
  background: none;
  border: 0;
  color: var(--royal);
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

/* Admin */

.admin-bar {
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.admin-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
}

.admin-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-bar a {
  color: var(--navy);
  font-weight: 800;
}

.admin-bar a:hover {
  color: var(--royal);
}

.admin-login-wrap {
  max-width: 480px;
}

.admin-section h1 {
  margin: 8px 0 0;
}

.admin-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-subhead {
  margin: 32px 0 12px;
  font-size: 20px;
}

.admin-flash {
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 0 20px;
}

.admin-flash-ok {
  background: #e8f6ee;
  color: #0f5132;
}

.admin-flash-error {
  background: #fdecec;
  color: #9b1c1c;
}

.admin-card {
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.admin-card h2 {
  margin: 0 0 8px;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(7, 21, 54, 0.08);
}

.admin-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 32, 58, 0.55);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: var(--mist);
}

.admin-thumb-empty {
  box-shadow: inset 0 0 0 1px rgba(7, 21, 54, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--royal);
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.admin-section-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--royal);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 79, 216, 0.2);
}

.admin-section-nav a.is-active {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}

.admin-check span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-weight: 500;
  color: rgba(18, 32, 58, 0.75);
}

.admin-check input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
}

.admin-board-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  margin: 16px 0 0;
}

.btn-outline {
  background: #fff;
  color: var(--royal);
  box-shadow: inset 0 0 0 1px rgba(26, 79, 216, 0.2);
}

.btn-outline:hover {
  background: var(--mist);
  color: var(--navy);
}

.btn-danger {
  background: #b42318;
  color: #fff;
}

.btn-danger:hover {
  background: #912018;
  color: #fff;
}

.admin-photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin: 20px 0;
}

.admin-photo {
  margin: 0;
  background: var(--mist);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.admin-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.admin-photo figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.admin-photo .btn {
  padding: 8px 14px;
  font-size: 12px;
}

.admin-cover-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.admin-photo.is-cover {
  box-shadow: 0 0 0 3px var(--yellow);
}

.admin-upload {
  margin-top: 16px;
}

.pta-uploader {
  margin-top: 20px;
}

.pta-uploader-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 220px;
  padding: 28px 20px;
  border: 2px dashed rgba(26, 79, 216, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(245, 196, 0, 0.16), transparent 46%),
    linear-gradient(180deg, #fff, var(--mist));
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pta-uploader-drop:hover,
.pta-uploader-drop.dz-drag-hover {
  border-color: var(--royal);
  box-shadow: 0 16px 40px rgba(26, 79, 216, 0.12);
  transform: translateY(-1px);
}

.pta-uploader-copy {
  display: grid;
  gap: 6px;
  margin: 0;
}

.pta-uploader-copy strong {
  font-size: 22px;
  color: var(--navy);
}

.pta-uploader-copy span,
.pta-uploader-copy em {
  color: #5b6b86;
  font-style: normal;
}

.pta-uploader-copy em {
  font-size: 13px;
}

.pta-uploader-drop .pta-uploader-browse {
  pointer-events: none;
}

.pta-uploader-total {
  margin: 16px 0 0;
}

.pta-uploader-total-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 79, 216, 0.12);
  overflow: hidden;
}

.pta-uploader-total-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--royal), var(--yellow));
  transition: width 0.2s ease;
}

.pta-uploader-total-text {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.pta-uploader-queue {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pta-up-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.pta-up-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mist);
}

.pta-up-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pta-up-meta {
  min-width: 0;
}

.pta-up-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.pta-up-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy);
}

.pta-up-bar {
  height: 8px;
  margin: 8px 0 6px;
  border-radius: 999px;
  background: rgba(26, 79, 216, 0.12);
  overflow: hidden;
}

.pta-up-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--royal);
  transition: width 0.15s linear;
}

.pta-up-item.is-success .pta-up-bar-fill {
  width: 100%;
  background: #14804a;
}

.pta-up-item.is-error .pta-up-bar-fill {
  width: 100%;
  background: #b42318;
}

.pta-up-status {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--royal);
}

.pta-up-item.is-success .pta-up-status {
  color: #14804a;
}

.pta-up-item.is-error .pta-up-status {
  display: none;
}

.pta-up-error {
  display: none;
  margin: 4px 0 0;
  font-size: 13px;
  font-style: normal;
  color: #b42318;
}

.pta-up-item.is-error .pta-up-error {
  display: block;
}

.pta-uploader-fallback[hidden] {
  display: none;
}

.gallery-admin {
  margin-bottom: 32px;
}

.gallery-admin h2 {
  margin: 0 0 8px;
}

.admin-danger-card {
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.15);
}

.admin-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-status-public {
  background: #e8f6ee;
  color: #0f5132;
}

.admin-status-board {
  background: #eef2ff;
  color: #1a4fd8;
}
