:root {
  --pdj-background: #f7f4ee;
  --pdj-ink: #17211d;
  --pdj-forest: #1f352d;
  --pdj-forest-2: #29473d;
  --pdj-gold: #b88a4a;
  --pdj-muted: #8a8174;
  --pdj-white: #ffffff;
  --pdj-line: rgba(23, 33, 29, 0.14);
  --pdj-danger: #9b2c2c;
  --pdj-success: #2f6b4f;
  --pdj-radius: 8px;
  --pdj-shadow: 0 18px 50px rgba(23, 33, 29, 0.10);
  --pdj-header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pdj-background);
  color: var(--pdj-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--pdj-gold);
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(184, 138, 74, 0.28);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 2000;
  padding: 0.65rem 0.9rem;
  background: var(--pdj-ink);
  color: var(--pdj-white);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-container {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

.section-pad {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-pad-sm {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-kicker,
.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--pdj-gold);
  font-size: var(--pdj-page-kicker-size, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-title,
.page-title,
.section-title,
.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--pdj-ink);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-title {
  max-width: 780px;
  color: var(--pdj-white);
  font-size: clamp(2.35rem, 8vw, var(--pdj-hero-title-size, 7rem));
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-title {
  max-width: var(--pdj-page-title-max-width, 1120px);
  font-size: clamp(var(--pdj-page-title-min-size, 2.6rem), var(--pdj-page-title-fluid-size, 6vw), var(--pdj-page-title-max-size, 5.5rem));
  line-height: var(--pdj-page-title-line-height, 1.03);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, var(--pdj-section-title-size, 3.4rem));
}

.lead-soft {
  max-width: 700px;
  color: var(--pdj-muted);
  font-size: clamp(1rem, 1.6vw, var(--pdj-page-lead-size, 1.22rem));
}

.muted {
  color: var(--pdj-muted);
}

.btn {
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.82rem 1.18rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  border: 1px solid var(--pdj-gold);
  background: var(--pdj-gold);
  color: var(--pdj-white);
}

.btn-gold:hover,
.btn-gold:focus {
  border-color: #a77a3e;
  background: #a77a3e;
  color: var(--pdj-white);
  box-shadow: 0 12px 30px rgba(184, 138, 74, 0.22);
}

.btn-outline-quiet {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: var(--pdj-white);
  backdrop-filter: blur(8px);
}

.btn-outline-quiet:hover,
.btn-outline-quiet:focus {
  border-color: var(--pdj-white);
  background: rgba(255, 255, 255, 0.18);
  color: var(--pdj-white);
}

.btn-forest {
  border: 1px solid var(--pdj-forest);
  background: var(--pdj-forest);
  color: var(--pdj-white);
}

.btn-forest:hover,
.btn-forest:focus {
  background: var(--pdj-ink);
  color: var(--pdj-white);
}

.btn-line {
  border: 1px solid var(--pdj-line);
  background: transparent;
  color: var(--pdj-ink);
}

.btn-line:hover,
.btn-line.active {
  border-color: var(--pdj-gold);
  background: rgba(184, 138, 74, 0.10);
  color: var(--pdj-ink);
}

.site-header {
  --pdj-split-brand-offset: 0px;
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--pdj-header-height);
  background: var(--pdj-header-solid-bg, rgba(247, 244, 238, 0.92));
  border-bottom: 1px solid rgba(23, 33, 29, 0.10);
  backdrop-filter: blur(16px);
  color: var(--pdj-header-solid-text, var(--pdj-ink));
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.site-header.is-transparent:not(.is-scrolled) {
  position: fixed;
  width: 100%;
  background: rgba(var(--pdj-header-bg-rgb, 23, 33, 29), var(--pdj-header-bg-alpha, 0.62));
  border-bottom-color: transparent;
  color: var(--pdj-header-text, var(--pdj-white));
}

.site-header.is-glass {
  background: rgba(var(--pdj-header-bg-rgb, 247, 244, 238), 0.58);
  color: var(--pdj-header-text, var(--pdj-ink));
}

.site-header .navbar {
  min-height: var(--pdj-header-height);
  padding: 0;
}

.site-header-grid {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, 1240px);
  min-height: var(--pdj-header-height);
}

.brand-lockup {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: var(--pdj-brand-logo-size, 44px);
  height: var(--pdj-brand-logo-size, 44px);
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.brand-logo {
  width: var(--pdj-brand-logo-size, 48px);
  height: var(--pdj-brand-logo-size, 48px);
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.brand-name,
.footer-brand {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  margin-top: 0.1rem;
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.72;
}

.nav-link {
  position: relative;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.7rem 0.78rem !important;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  bottom: 0.24rem;
  left: 50%;
  width: calc(100% - 1.65rem);
  height: 3px;
  content: "";
  border-radius: 999px;
  background: var(--pdj-header-accent, var(--pdj-gold));
  opacity: 0;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--pdj-header-accent, var(--pdj-gold)) 34%, transparent);
  transform: translateX(-50%) scaleX(0.28);
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.navbar-collapse {
  gap: 1rem;
  min-width: 0;
}

.site-nav-list {
  flex-wrap: wrap;
  margin-left: auto;
}

.site-header-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-header .site-header-cta.btn-outline-quiet {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.site-header .site-header-cta.btn-outline-quiet:hover,
.site-header .site-header-cta.btn-outline-quiet:focus {
  border-color: var(--pdj-header-accent, var(--pdj-gold));
  background: var(--pdj-header-accent, var(--pdj-gold));
  color: #fff;
}

@media (min-width: 992px) {
  .site-header {
    --pdj-header-center-space: clamp(116px, 15vw, 230px);
  }

  .header-brand,
  .header-navigation {
    align-self: center;
    min-width: 0;
  }

  .header-layout-brand-left-menu-right .navbar-collapse {
    justify-content: flex-end;
  }

  .header-layout-logo-left-menu-center-cta-right .navbar-collapse {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .header-layout-logo-left-menu-center-cta-right .site-nav-list {
    justify-self: center;
    margin-left: 0;
  }

  .header-layout-menu-split-logo-center .site-header-grid,
  .header-layout-menu-left-logo-center-cta-right .site-header-grid,
  .header-layout-menu-left-cta-center-logo-right .site-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-auto-rows: var(--pdj-header-height);
    position: relative;
  }

  .header-layout-menu-split-logo-center .site-header-grid {
    width: min(100% - 2rem, 1500px);
  }

  .header-layout-menu-split-logo-center .brand-lockup,
  .header-layout-menu-left-logo-center-cta-right .brand-lockup {
    z-index: 2;
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }

  .header-layout-menu-split-logo-center .brand-lockup,
  .header-layout-menu-left-logo-center-cta-right .brand-lockup,
  .header-layout-logo-left-menu-center-cta-right .brand-lockup,
  .header-layout-menu-left-cta-center-logo-right .brand-lockup {
    width: var(--pdj-brand-logo-size, 66px);
    height: var(--pdj-brand-logo-size, 66px);
    overflow: visible;
    display: grid;
    place-items: center;
    padding: clamp(2px, calc(var(--pdj-brand-logo-size, 66px) * 0.06), 6px);
    border: 1px solid rgba(184, 138, 74, 0.42);
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
  }

  .header-layout-menu-split-logo-center .brand-lockup > span,
  .header-layout-menu-left-logo-center-cta-right .brand-lockup > span,
  .header-layout-logo-left-menu-center-cta-right .brand-lockup > span,
  .header-layout-menu-left-cta-center-logo-right .brand-lockup > span {
    display: none;
  }

  .header-layout-menu-split-logo-center .brand-logo,
  .header-layout-menu-left-logo-center-cta-right .brand-logo,
  .header-layout-logo-left-menu-center-cta-right .brand-logo,
  .header-layout-menu-left-cta-center-logo-right .brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
    transform-origin: center;
  }

  .header-layout-menu-split-logo-center .brand-mark,
  .header-layout-menu-left-logo-center-cta-right .brand-mark,
  .header-layout-logo-left-menu-center-cta-right .brand-mark,
  .header-layout-menu-left-cta-center-logo-right .brand-mark {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .header-layout-menu-split-logo-center .brand-lockup {
    transform: translateX(var(--pdj-split-brand-offset, 0px));
    transition: transform 180ms ease;
  }

  .header-layout-menu-split-logo-center .navbar-collapse {
    display: grid !important;
    grid-row: 1;
    grid-column: 1 / -1;
    position: relative;
    grid-template-columns: minmax(0, 1fr) var(--pdj-header-center-space) minmax(0, 1fr);
    align-items: center;
    height: var(--pdj-header-height);
    min-width: 0;
  }

  .header-layout-menu-split-logo-center .site-nav-list {
    margin-left: 0;
  }

  .header-layout-menu-split-logo-center .site-nav-list-left {
    grid-column: 1;
    justify-self: end;
    padding-right: 1.25rem;
  }

  .header-layout-menu-split-logo-center .site-nav-list-right {
    grid-column: 3;
    justify-self: start;
    padding-left: 1.25rem;
  }

  .header-layout-menu-split-logo-center .site-header-cta {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .header-layout-menu-left-logo-center-cta-right .navbar-collapse {
    display: grid !important;
    grid-row: 1;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) var(--pdj-header-center-space) minmax(0, 1fr);
    align-items: center;
    height: var(--pdj-header-height);
    min-width: 0;
  }

  .header-layout-menu-left-logo-center-cta-right .site-nav-list {
    grid-column: 1;
    justify-self: start;
    margin-left: 0;
  }

  .header-layout-menu-left-logo-center-cta-right .site-header-cta {
    grid-column: 3;
    justify-self: end;
  }

  .header-layout-menu-left-cta-center-logo-right .brand-lockup {
    z-index: 2;
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    margin: 0;
  }

  .header-layout-menu-left-cta-center-logo-right .navbar-collapse {
    display: grid !important;
    grid-row: 1;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    height: var(--pdj-header-height);
    min-width: 0;
  }

  .header-layout-menu-left-cta-center-logo-right .site-nav-list {
    grid-column: 1;
    justify-self: start;
    margin-left: 0;
  }

  .header-layout-menu-left-cta-center-logo-right .site-header-cta {
    grid-column: 2;
    justify-self: center;
  }
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: end start;
  overflow: hidden;
  background: var(--pdj-ink);
  color: var(--pdj-white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(8px) saturate(0.9);
  transform: scale(1.045);
  transition: opacity 1200ms ease, filter 1200ms ease, transform 8500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.hero-slide.is-active {
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: scale(1);
}

.hero-media:not(.hero-slider) .hero-slide {
  opacity: 1;
}

.hero-media img,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(23, 33, 29, var(--pdj-hero-overlay-strength, 0.64)) 0%, rgba(23, 33, 29, 0.32) 48%, rgba(23, 33, 29, 0.12) 100%),
    linear-gradient(0deg, rgba(23, 33, 29, 0.58) 0%, rgba(23, 33, 29, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: calc(var(--pdj-header-height) + 5rem) 0 clamp(3rem, 8vw, 6rem);
}

.hero-copy {
  max-width: 760px;
}

.hero-align-center {
  place-items: end center;
  text-align: center;
}

.hero-align-center .hero-copy {
  margin-inline: auto;
}

.hero-align-center .hero-actions,
.hero-align-center .hero-meta {
  justify-content: center;
}

.hero-align-right {
  place-items: end end;
  text-align: right;
}

.hero-align-right .hero-copy {
  margin-left: auto;
}

.hero-align-right .hero-actions,
.hero-align-right .hero-meta {
  justify-content: flex-end;
}

.hero-lead {
  max-width: 620px;
  margin: 1.4rem 0 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, var(--pdj-hero-lead-size, 1.24rem));
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-copy.is-changing .hero-title,
.hero-copy.is-changing .hero-lead {
  opacity: 0;
  transform: translateY(8px);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slider-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: clamp(2.7rem, 4.2vw, 3.55rem);
  height: clamp(2.7rem, 4.2vw, 3.55rem);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.08);
  color: #fff;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  transition: opacity 240ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.hero-slider-arrow-prev {
  left: clamp(1rem, 3.6vw, 3.5rem);
}

.hero-slider-arrow-next {
  right: clamp(1rem, 3.6vw, 3.5rem);
}

.hero-slider-arrow i {
  font-size: 1.18rem;
  line-height: 1;
}

.hero.is-slider:hover .hero-slider-arrow,
.hero.is-slider:focus-within .hero-slider-arrow {
  opacity: 0.86;
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(247, 244, 238, 0.18);
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1);
  outline: none;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2.25rem);
  display: flex;
  gap: 0.42rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.20);
  opacity: 0.72;
  pointer-events: auto;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  transition: opacity 220ms ease, background 220ms ease, border-color 220ms ease;
}

.hero.is-slider:hover .hero-slider-dots,
.hero.is-slider:focus-within .hero-slider-dots {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(23, 33, 29, 0.34);
  opacity: 1;
}

.hero-slider-dots button {
  width: clamp(1.45rem, 2.8vw, 2.4rem);
  height: 0.18rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}

.hero-slider-dots button:hover,
.hero-slider-dots button:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  transform: scaleY(1.7);
}

.hero-slider-dots button.is-active {
  width: clamp(2.3rem, 4vw, 3.8rem);
  background: #fff;
}

@media (hover: none) {
  .hero-slider-arrow {
    opacity: 0.78;
    transform: translateY(-50%) scale(1);
  }

  .hero-slider-dots {
    opacity: 0.94;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    filter: none;
    transform: none;
    transition: opacity 260ms ease;
  }

  .hero-slider-arrow,
  .hero-slider-dots,
  .hero-slider-dots button {
    transition: none;
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.photo-tile {
  position: relative;
  isolation: isolate;
  grid-column: span 4;
  overflow: hidden;
  min-height: max(var(--pdj-photo-card-min-height, 320px), 26vw);
  border-radius: 8px;
  background: #e8e2d8;
  color: var(--pdj-white);
  box-shadow: 0 22px 70px rgba(23, 33, 29, 0.08);
  transform: translateY(0);
  animation: galleryTileReveal 720ms cubic-bezier(0.2, 0.74, 0.2, 1) both;
  animation-delay: var(--tile-delay, 0ms);
  transition: transform 0.42s cubic-bezier(0.2, 0.74, 0.2, 1), box-shadow 0.42s ease, opacity 0.24s ease;
}

.photo-tile.is-large {
  grid-column: span 6;
  min-height: max(calc(var(--pdj-photo-card-min-height, 360px) + 80px), 34vw);
}

.photo-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(23, 33, 29, 0) 36%, rgba(23, 33, 29, 0.22) 58%, rgba(23, 33, 29, var(--pdj-photo-card-overlay-strength, 0.86)) 100%);
  pointer-events: none;
}

.photo-tile-media {
  display: block;
  height: 100%;
  min-height: inherit;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.012);
  transition: transform 1.1s cubic-bezier(0.2, 0.74, 0.2, 1), filter 1.1s ease, opacity 0.3s ease;
}

.photo-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 90px rgba(23, 33, 29, 0.14);
}

.photo-tile:hover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.02);
}

.photo-tile.is-hidden {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
}

.photo-view-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  background: rgba(23, 33, 29, 0.44);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  pointer-events: none;
}

.photo-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--pdj-photo-card-title-size, var(--pdj-gallery-card-title-size, 1.45rem));
  line-height: 1.1;
}

.photo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--pdj-photo-card-meta-size, var(--pdj-gallery-card-meta-size, 0.74rem));
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.photo-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: auto;
}

.photo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.photo-stats > span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.photo-stats .rating-stars {
  color: #f2bf6a;
  font-size: 0.72rem;
}

.photo-comment-link {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.photo-tile:hover .photo-actions,
.photo-tile:focus-within .photo-actions {
  opacity: 1;
  transform: translateY(0);
}

.photo-action-link {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.5rem 0.72rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.photo-comment-link:hover,
.photo-comment-link:focus-visible,
.photo-action-link:hover,
.photo-action-link:focus-visible {
  border-color: rgba(184, 138, 74, 0.92);
  background: rgba(184, 138, 74, 0.92);
  color: #fff;
  transform: translateY(-1px);
}

.home-gallery-section .site-container {
  width: min(100% - clamp(1.2rem, 4vw, 4rem), 1560px);
}

.home-gallery-grid .photo-tile,
.home-gallery-grid .photo-tile.is-large {
  grid-column: span 4;
  min-height: clamp(360px, 24vw, 520px);
}

.home-photo-tile .photo-panel {
  align-items: flex-start;
}

.home-carousel-section {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(247, 244, 238, 0));
}

.home-carousel-section .site-container {
  width: min(100% - clamp(1.2rem, 4vw, 4rem), 1560px);
}

.home-carousel-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.home-photo-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  gap: 0.85rem;
  align-items: center;
}

.home-carousel-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.home-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.home-carousel-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
  padding: 0.2rem 0 0.6rem;
}

.home-carousel-card {
  position: relative;
  flex: 0 0 clamp(280px, 28vw, 430px);
  min-height: clamp(360px, 30vw, 520px);
  overflow: hidden;
  border-radius: 8px;
  background: #17211d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 26px 70px rgba(23, 33, 29, 0.13);
  isolation: isolate;
  animation: galleryTileReveal 720ms cubic-bezier(0.2, 0.74, 0.2, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}

.home-carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 33, 29, 0) 30%, rgba(23, 33, 29, 0.82) 100%);
  pointer-events: none;
}

.home-carousel-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(0.2, 0.74, 0.2, 1), filter 700ms ease;
}

.home-carousel-card span {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 2;
}

.home-carousel-card strong,
.home-carousel-card small {
  display: block;
}

.home-carousel-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.03;
}

.home-carousel-card small {
  margin-top: 0.42rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.home-carousel-card:hover img,
.home-carousel-card:focus-visible img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.045);
}

.home-carousel-arrow {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--pdj-forest);
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-carousel-arrow:hover,
.home-carousel-arrow:focus-visible {
  border-color: rgba(184, 138, 74, 0.45);
  background: #fff;
  color: var(--pdj-gold);
  transform: translateY(-1px);
}

.home-about-section {
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.home-about-section .site-container {
  width: min(100% - clamp(1.2rem, 4vw, 4rem), 1360px);
}

.home-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(2.4rem, 5.4vw, 5.8rem);
  align-items: center;
}

.home-about-copy {
  max-width: 570px;
}

.home-about-copy .section-title {
  margin-bottom: 0.85rem;
}

.home-about-copy .lead-soft {
  max-width: 620px;
}

.home-about-visual {
  position: relative;
}

.home-about-visual::before {
  content: "";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: -1.2rem;
  z-index: 0;
  width: 72%;
  height: 46%;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: 8px;
}

.home-about-media {
  position: relative;
  z-index: 1;
  min-height: clamp(360px, 34vw, 520px);
  overflow: hidden;
  border-radius: 8px;
  background: #ded8ce;
  box-shadow: 0 32px 90px rgba(23, 33, 29, 0.13);
  isolation: isolate;
}

.home-about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.16), rgba(23, 33, 29, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(23, 33, 29, 0.12));
}

.home-about-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transform: scale(1.018);
}

.glightbox-clean .gslide-description {
  background: rgba(247, 244, 238, 0.98) !important;
}

.glightbox-clean .gslide-title {
  margin-bottom: 0.45rem;
  color: var(--pdj-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.1;
}

.lightbox-meta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--pdj-ink);
}

.lightbox-meta-context,
.lightbox-meta-stats,
.lightbox-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.lightbox-meta-context {
  margin-bottom: 0.45rem;
  color: var(--pdj-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-meta-stats > span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 999px;
  padding: 0.36rem 0.62rem;
  background: rgba(255, 255, 255, 0.62);
  color: var(--pdj-forest);
  font-size: 0.78rem;
  font-weight: 850;
}

.lightbox-meta-stats .rating-stars {
  color: var(--pdj-gold);
}

.lightbox-meta-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: var(--pdj-forest);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.lightbox-meta-actions a:hover,
.lightbox-meta-actions a:focus-visible {
  border-color: var(--pdj-gold);
  background: var(--pdj-gold);
  color: #fff;
}

@keyframes galleryTileReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes galleryGridReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes galleryMotionCalmRise {
  from {
    opacity: 0.42;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes galleryMotionSoftVeil {
  from {
    opacity: 0.46;
    transform: scale(0.988);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes galleryMotionGallerySlide {
  from {
    opacity: 0.42;
    transform: translate3d(12px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes galleryMotionDepthFade {
  from {
    opacity: 0.42;
    transform: translate3d(0, 10px, 0) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-gallery .photo-grid,
  .photo-tile,
  .public-gallery .photo-tile.is-gallery-entering {
    animation: none;
    transition: none;
    transform: none;
    will-change: auto;
  }

  .photo-tile img,
  .photo-comment-link,
  .photo-action-link,
  .photo-actions {
    transition: none;
  }
}

@media (hover: none) {
  .photo-actions {
    opacity: 1;
    transform: none;
  }
}

.editorial-band {
  background: var(--pdj-forest);
  color: var(--pdj-white);
}

.editorial-band .section-title,
.editorial-band .lead-soft {
  color: var(--pdj-white);
}

.collection-card,
.event-card,
.content-panel,
.admin-card,
.form-panel {
  border: 1px solid var(--pdj-line);
  border-radius: var(--pdj-radius);
  background: rgba(255, 255, 255, 0.58);
}

.collection-card {
  display: grid;
  grid-template-rows: 240px auto;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.collection-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.collection-card:hover img {
  transform: scale(1.04);
}

.collection-body,
.event-body {
  padding: 1.45rem;
}

.collection-title,
.event-title {
  margin: 0 0 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.15;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.event-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  object-position: center;
}

.public-expositions .site-container {
  width: min(100% - clamp(1rem, 3vw, 3rem), 1420px);
}

.expositions-hero {
  padding: calc(var(--pdj-header-height) + clamp(3.2rem, 6vw, 6rem)) 0 clamp(3.4rem, 6vw, 5.2rem);
}

.expositions-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.24fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.expositions-hero .page-title {
  max-width: var(--pdj-page-title-max-width, 1060px);
  font-size: clamp(var(--pdj-page-title-min-size, 2.6rem), var(--pdj-page-title-fluid-size, 6vw), var(--pdj-page-title-max-size, 5.5rem));
  line-height: var(--pdj-page-title-line-height, 1.03);
}

.expositions-hero .lead-soft {
  max-width: 680px;
}

.expositions-hero-actions {
  margin-top: 1.35rem;
}

.expositions-summary {
  display: grid;
  gap: 0.8rem;
  align-self: end;
}

.expositions-summary span {
  display: grid;
  gap: 0.12rem;
  padding: 1rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.expositions-summary strong {
  font-family: var(--pdj-serif);
  font-size: 2.4rem;
  line-height: 1;
}

.expositions-summary small {
  color: var(--pdj-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-agenda-section {
  position: relative;
}

.event-section-heading {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.event-section-heading .section-title {
  margin-bottom: 0;
}

.event-section-heading > p {
  max-width: 420px;
  margin: 0 0 0.3rem;
  color: var(--pdj-muted);
}

.event-list {
  display: grid;
  gap: 1.1rem;
}

.event-card-premium {
  position: relative;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 1fr);
  border-color: rgba(23, 33, 29, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 238, 0.62)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(23, 33, 29, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.event-card-premium:hover {
  border-color: rgba(184, 138, 74, 0.34);
  box-shadow: 0 28px 64px rgba(23, 33, 29, 0.10);
  transform: translateY(-2px);
}

.event-card-premium.is-past {
  opacity: 0.86;
}

.event-media {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  padding: clamp(0.6rem, 1.3vw, 1rem);
  place-items: center;
  background:
    linear-gradient(145deg, rgba(31, 53, 45, 0.96), rgba(15, 35, 28, 0.99)),
    var(--pdj-forest);
}

.event-media img {
  min-height: 300px;
  object-fit: contain;
  object-position: center;
  transition: filter 350ms ease;
}

.event-card-premium:hover .event-media img {
  filter: saturate(1.04) contrast(1.03);
}

.event-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  min-width: 4.2rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.90);
  color: var(--pdj-ink);
  text-align: center;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.18);
}

.event-date-badge strong {
  font-family: var(--pdj-serif);
  font-size: 2rem;
  line-height: 0.92;
}

.event-date-badge span {
  color: var(--pdj-gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card-premium .event-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.event-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.event-status-pill,
.event-time-pill {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-status-pill {
  background: rgba(31, 53, 45, 0.10);
  color: var(--pdj-forest);
}

.event-time-pill {
  background: rgba(184, 138, 74, 0.14);
  color: #7b5521;
}

.event-title {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.15rem;
}

.event-details-grid div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.event-details-grid dt {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  margin-bottom: 0.25rem;
  color: var(--pdj-gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-details-grid dd {
  margin: 0;
  color: var(--pdj-ink);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.35;
}

.event-description {
  max-width: 740px;
  margin: 0 0 1.15rem;
  color: color-mix(in srgb, var(--pdj-ink) 82%, var(--pdj-muted));
  line-height: 1.75;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
}

.event-actions .btn {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.event-card-premium {
  scroll-margin-top: calc(var(--pdj-header-height) + 1.4rem);
}

.home-events-section .site-container {
  width: min(100% - clamp(1.2rem, 3vw, 3rem), 1320px);
}

.home-events-heading {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(1.15rem, 2.4vw, 1.9rem);
}

.home-events-heading .section-title {
  margin-bottom: 0;
}

.home-events-list {
  display: grid;
  gap: clamp(0.9rem, 1.7vw, 1.2rem);
}

.home-event-card {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 244, 238, 0.62)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(23, 33, 29, 0.055);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-event-card:hover {
  border-color: rgba(184, 138, 74, 0.30);
  box-shadow: 0 24px 58px rgba(23, 33, 29, 0.09);
  transform: translateY(-2px);
}

.home-event-media {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  padding: 0.55rem;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(31, 53, 45, 0.96), rgba(15, 35, 28, 0.99)),
    var(--pdj-forest);
}

.home-event-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: contain;
  object-position: center;
  transition: filter 350ms ease;
}

.home-event-card:hover .home-event-media img {
  filter: saturate(1.04) contrast(1.03);
}

.home-event-date {
  top: 0.82rem;
  left: 0.82rem;
  min-width: 3.55rem;
  padding: 0.48rem 0.58rem;
}

.home-event-date strong {
  font-size: 1.62rem;
}

.home-event-body {
  display: grid;
  align-content: center;
  gap: 0.72rem;
  padding: clamp(1.1rem, 2vw, 1.55rem);
}

.home-event-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.home-event-title {
  max-width: 860px;
  margin: 0;
  color: var(--pdj-ink);
  font-family: var(--pdj-serif);
  font-size: clamp(1.45rem, 2.1vw, 2.15rem);
  line-height: 1.08;
}

.home-event-facts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.62rem;
  margin: 0;
}

.home-event-facts div {
  min-width: 0;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
  background: rgba(255, 255, 255, 0.50);
}

.home-event-facts dt {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.2rem;
  color: var(--pdj-gold);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-event-facts dd {
  margin: 0;
  color: var(--pdj-ink);
  font-size: 0.88rem;
  font-weight: 690;
  line-height: 1.34;
}

.home-event-summary {
  display: -webkit-box;
  max-width: 780px;
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--pdj-ink) 82%, var(--pdj-muted));
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-event-cta {
  width: fit-content;
  margin-top: 0.12rem;
}

.meta-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  color: var(--pdj-muted);
}

.page-hero {
  padding: calc(var(--pdj-header-height) + var(--pdj-page-hero-top-space, 3rem)) 0 var(--pdj-page-hero-bottom-space, clamp(3rem, 7vw, 6rem));
}

.public-gallery .site-container {
  width: min(100% - clamp(0.75rem, 1.8vw, 2rem), 1860px);
}

.public-gallery .page-hero {
  padding: calc(var(--pdj-header-height) + var(--pdj-page-hero-top-space, 3rem)) 0 var(--pdj-page-hero-bottom-space, clamp(2rem, 4vw, 3.5rem));
}

.public-gallery .page-title {
  max-width: var(--pdj-page-title-max-width, 1120px);
  font-size: clamp(var(--pdj-page-title-min-size, 2.6rem), var(--pdj-page-title-fluid-size, 6vw), var(--pdj-page-title-max-size, 5.5rem));
  line-height: var(--pdj-page-title-line-height, 1.03);
}

.public-gallery .lead-soft {
  max-width: 760px;
}

.public-gallery .filter-bar {
  margin-top: 0;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.public-gallery .photo-grid {
  display: block;
  column-count: var(--pdj-gallery-columns-desktop, 4);
  column-gap: clamp(0.85rem, 1.25vw, 1.35rem);
  animation: galleryGridReveal 460ms ease-out both;
}

.public-gallery .photo-grid.is-masonry-ready {
  display: block;
  width: 100%;
  min-height: 0;
}

.public-gallery .photo-tile,
.public-gallery .photo-tile.is-large {
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 clamp(0.85rem, 1.25vw, 1.35rem);
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
  grid-column: auto;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 38px rgba(23, 33, 29, 0.08);
  vertical-align: top;
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    box-shadow 260ms ease;
}

.public-gallery .photo-grid.is-masonry-ready .photo-tile,
.public-gallery .photo-grid.is-masonry-ready .photo-tile.is-large {
  position: relative;
  display: inline-block;
  transform: none;
}

.public-gallery .photo-tile.is-gallery-entering {
  animation-duration: 620ms;
  animation-delay: var(--tile-delay, 0ms);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 0.76, 0.2, 1);
  will-change: opacity, transform;
}

.public-gallery .photo-tile.gallery-motion-calm-rise {
  animation-name: galleryMotionCalmRise;
}

.public-gallery .photo-tile.gallery-motion-soft-veil {
  animation-name: galleryMotionSoftVeil;
}

.public-gallery .photo-tile.gallery-motion-gallery-slide {
  animation-name: galleryMotionGallerySlide;
}

.public-gallery .photo-tile.gallery-motion-depth-fade {
  animation-name: galleryMotionDepthFade;
}

.public-gallery .photo-grid.is-masonry-ready .photo-tile-media {
  height: auto;
}

.public-gallery .photo-grid.is-masonry-ready .photo-tile img {
  height: auto;
  object-fit: contain;
}

.public-gallery .photo-tile-media {
  display: block;
  height: auto;
  min-height: 0;
  background: rgba(23, 33, 29, 0.08);
}

.public-gallery .photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  transform: none;
  transition: filter 260ms ease;
}

.public-gallery .photo-tile:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: none;
}

.public-gallery .photo-tile:hover {
  transform: none;
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.12);
}

.public-gallery .photo-grid.is-masonry-ready .photo-tile:hover {
  transform: none;
}

.public-gallery .photo-tile.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-hero-cms {
  padding: calc(var(--pdj-header-height) + var(--pdj-page-hero-top-space, 2.4rem)) 0 var(--pdj-page-hero-bottom-space, clamp(1.5rem, 4vw, 3rem));
}

.page-hero-cms .site-container {
  width: min(100% - 2rem, 1120px);
}

.page-hero-cms.with-image {
  min-height: 42vh;
}

.page-hero.with-image {
  position: relative;
  overflow: hidden;
  min-height: 55vh;
  color: var(--pdj-white);
}

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

.page-hero.with-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(23, 33, 29, 0.70), rgba(23, 33, 29, 0.20));
}

.page-hero.with-image .site-container {
  position: relative;
  z-index: 2;
}

.page-hero.page-hero-cms.with-image {
  min-height: clamp(250px, 31vh, 360px);
  padding: calc(var(--pdj-header-height) + var(--pdj-page-hero-top-space, 2rem)) 0 var(--pdj-page-hero-bottom-space, clamp(1.5rem, 3vw, 2.4rem));
}

.page-hero.page-hero-cms.with-image img {
  opacity: 0.82;
  object-position: center center;
  filter: saturate(0.92) contrast(1.04);
}

.page-hero.page-hero-cms.with-image::after {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.76), rgba(23, 33, 29, 0.36) 48%, rgba(23, 33, 29, 0.24)),
    linear-gradient(0deg, rgba(23, 33, 29, 0.24), rgba(23, 33, 29, 0));
}

.page-hero.page-hero-cms.with-image .page-title {
  max-width: var(--pdj-page-title-max-width, 860px);
  color: #fffefa;
  font-size: clamp(var(--pdj-page-title-min-size, 2.6rem), var(--pdj-page-title-fluid-size, 6vw), var(--pdj-page-title-max-size, 5.5rem));
  line-height: var(--pdj-page-title-line-height, 1.03);
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.page-hero.page-hero-cms.with-image .lead-soft {
  max-width: 760px;
  color: rgba(255, 254, 250, 0.82);
}

.page-hero.page-hero-cms.with-image .section-kicker {
  color: #d6a461;
}

.public-photo-detail {
  background: #0b1110;
}

.public-photo-detail .site-header-cta {
  display: none;
}

.public-photo-detail main > .section-pad-sm {
  background: var(--pdj-background);
  color: var(--pdj-ink);
}

.photo-viewer-shell {
  min-height: calc(100svh - var(--pdj-header-height));
  background:
    radial-gradient(circle at 18% 10%, rgba(184, 138, 74, 0.16), transparent 32%),
    linear-gradient(135deg, #08100e 0%, #111d18 46%, #070b0a 100%);
  color: #fff;
}

.photo-viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  min-height: calc(100svh - var(--pdj-header-height));
}

.photo-viewer-media-pane {
  display: flex;
  min-width: 0;
  min-height: calc(100svh - var(--pdj-header-height));
  flex-direction: column;
  gap: clamp(0.7rem, 1.25vw, 1rem);
  padding: clamp(0.8rem, 1.55vw, 1.25rem);
}

.photo-viewer-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.photo-viewer-back,
.photo-viewer-collection {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.62rem 0.88rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.photo-viewer-collection {
  color: #f1cf99;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-viewer-back:hover,
.photo-viewer-back:focus-visible,
.photo-viewer-collection:hover,
.photo-viewer-collection:focus-visible {
  border-color: rgba(184, 138, 74, 0.62);
  background: rgba(184, 138, 74, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.photo-viewer-frame {
  display: grid;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: clamp(0.34rem, 0.8vw, 0.72rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(4, 8, 7, 0.74);
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.28);
  animation: photoFrameIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  cursor: default;
  --photo-zoom-x: 50%;
  --photo-zoom-y: 50%;
}

.photo-viewer-frame.protected-media {
  display: grid;
  cursor: default;
}

.photo-viewer-frame[data-photo-zoom] {
  cursor: zoom-in;
}

.photo-viewer-frame[data-photo-zoom].is-zoomed {
  cursor: zoom-out;
}

.photo-viewer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - var(--pdj-header-height) - 4.35rem);
  border-radius: 5px;
  object-fit: contain;
  object-position: center;
  transform-origin: var(--photo-zoom-x) var(--photo-zoom-y);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
  will-change: transform;
}

.photo-viewer-frame.is-zoomed .photo-viewer-image {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.85);
}

.photo-viewer-zoom-toggle {
  position: absolute;
  right: clamp(0.72rem, 1.3vw, 1rem);
  top: clamp(0.72rem, 1.3vw, 1rem);
  z-index: 4;
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  background: rgba(8, 13, 11, 0.56);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  opacity: 0;
  backdrop-filter: blur(14px);
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.photo-viewer-frame:hover .photo-viewer-zoom-toggle,
.photo-viewer-frame:focus-within .photo-viewer-zoom-toggle,
.photo-viewer-frame.is-zoomed .photo-viewer-zoom-toggle {
  opacity: 1;
  transform: translateY(0);
}

.photo-viewer-zoom-toggle:hover,
.photo-viewer-zoom-toggle:focus-visible {
  border-color: rgba(184, 138, 74, 0.68);
  background: rgba(23, 33, 29, 0.78);
  color: #fff;
}

@media (hover: none) {
  .photo-viewer-zoom-toggle {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-viewer-panel {
  display: flex;
  align-items: flex-start;
  max-height: none;
  overflow: visible;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 238, 0.99)),
    var(--pdj-background);
  color: var(--pdj-ink);
}

.photo-viewer-panel-inner {
  display: grid;
  width: 100%;
  gap: clamp(0.58rem, 0.92vw, 0.82rem);
  padding: clamp(4.85rem, 5.4vw, 5.85rem) clamp(1rem, 1.65vw, 1.42rem) clamp(1rem, 1.5vw, 1.35rem);
  animation: photoPanelIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.photo-viewer-title {
  margin: 0;
  color: var(--pdj-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: min(clamp(1.55rem, 2.05vw, var(--pdj-photo-detail-title-size, 2.65rem)), 2.65rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.photo-viewer-description {
  margin: 0;
  color: rgba(23, 33, 29, 0.76);
  font-size: clamp(0.86rem, 0.95vw, 0.96rem);
  line-height: 1.48;
}

.photo-viewer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.photo-viewer-stats > span,
.photo-viewer-stats > a {
  display: grid;
  gap: 0.12rem;
  min-height: 3.65rem;
  align-content: center;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.62);
  color: var(--pdj-ink);
  text-decoration: none;
}

.photo-viewer-stats i {
  color: var(--pdj-gold);
  font-size: 1rem;
}

.photo-viewer-stats strong {
  color: var(--pdj-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.24rem;
  line-height: 1;
}

.photo-viewer-stats small {
  color: var(--pdj-muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-viewer-block {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.62rem;
  border-top: 1px solid rgba(23, 33, 29, 0.10);
}

.photo-viewer-block h2,
.photo-comment-form h3 {
  margin: 0;
  color: var(--pdj-ink);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.photo-info-list,
.photo-tech-grid {
  display: grid;
  gap: 0.58rem;
  margin: 0;
}

.photo-tech-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-info-list div,
.photo-tech-grid div {
  display: grid;
  gap: 0.16rem;
  border: 1px solid rgba(23, 33, 29, 0.09);
  border-radius: 8px;
  padding: 0.48rem 0.56rem;
  background: rgba(255, 255, 255, 0.52);
}

.photo-info-list dt,
.photo-tech-grid dt {
  display: inline-flex;
  gap: 0.36rem;
  align-items: center;
  color: var(--pdj-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-info-list dt i,
.photo-tech-grid dt i {
  color: var(--pdj-gold);
  font-size: 0.88rem;
}

.photo-info-list dd,
.photo-tech-grid dd {
  margin: 0;
  color: var(--pdj-ink);
  font-size: 0.86rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.photo-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.photo-viewer-section-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.photo-viewer-section-head span {
  color: var(--pdj-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.photo-comment-list {
  display: grid;
  gap: 0.45rem;
}

.photo-comment-item {
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.58);
}

.photo-comment-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(184, 138, 74, 0.24);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
}

.photo-viewer-empty {
  margin: 0;
  color: var(--pdj-muted);
  font-size: 0.88rem;
}

.photo-related-section {
  padding-top: clamp(2.15rem, 3.6vw, 3.6rem);
}

.photo-related-section .site-container {
  width: min(100% - clamp(1.2rem, 3.4vw, 3rem), 1480px);
}

.photo-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.42fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: end;
  margin-bottom: clamp(1.05rem, 2vw, 1.7rem);
}

.photo-section-heading .section-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.55rem, 2.1vw, 2.75rem);
  line-height: 1.04;
}

.photo-section-heading > p {
  max-width: 31rem;
  margin: 0 0 0.35rem;
  color: var(--pdj-muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.photo-related-carousel {
  --photo-related-gap: clamp(0.56rem, 0.9vw, 0.82rem);

  display: flex;
  gap: var(--photo-related-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0 0.85rem;
  scroll-padding-inline: 0.1rem;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(184, 138, 74, 0.68) rgba(23, 33, 29, 0.08);
  scrollbar-width: thin;
}

.photo-related-carousel::-webkit-scrollbar {
  height: 0.42rem;
}

.photo-related-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.08);
}

.photo-related-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(184, 138, 74, 0.68);
}

.photo-related-card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - (var(--photo-related-gap) * 5)) / 6);
  min-width: 0;
  min-height: clamp(150px, 11.8vw, 190px);
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: var(--pdj-forest);
  box-shadow: 0 24px 70px rgba(23, 33, 29, 0.12);
  color: #fff;
  scroll-snap-align: start;
  text-decoration: none;
}

.photo-related-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.02) 34%, rgba(5, 8, 7, 0.82) 100%);
  content: "";
  pointer-events: none;
}

.photo-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.photo-related-card:hover img,
.photo-related-card:focus-visible img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.045);
}

.photo-related-card-body {
  position: absolute;
  right: clamp(0.66rem, 0.9vw, 1rem);
  bottom: clamp(0.66rem, 0.9vw, 1rem);
  left: clamp(0.66rem, 0.9vw, 1rem);
  z-index: 2;
  display: grid;
  gap: 0.25rem;
}

.photo-related-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.88rem, 1vw, 1.12rem);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photo-related-card-body span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-related-card.protected-media::after {
  content: none;
}

@media (max-width: 1199.98px) {
  .photo-related-card {
    flex-basis: calc((100% - (var(--photo-related-gap) * 3)) / 4);
    min-height: clamp(160px, 17vw, 205px);
  }
}

.photo-related-empty,
.photo-comments-empty {
  border: 1px dashed rgba(23, 33, 29, 0.18);
  border-radius: 8px;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.46);
  color: var(--pdj-muted);
}

.photo-related-empty p,
.photo-comments-empty p {
  margin: 0;
}

.photo-detail-comments-section {
  padding-top: clamp(2rem, 3.4vw, 3.25rem);
}

.photo-comments-layout {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.6vw, 2.5rem);
  align-items: start;
}

.photo-comments-intro {
  position: sticky;
  top: calc(var(--pdj-header-height) + 1.5rem);
}

.photo-comments-intro .section-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 2.55vw, calc(var(--pdj-section-title-size, 54px) * 0.72));
  line-height: 1.04;
}

.photo-comments-intro p {
  margin: 0;
  color: var(--pdj-muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.photo-comments-board {
  display: grid;
  gap: 1rem;
}

.photo-detail-comments-section .photo-comment-list {
  display: grid;
  gap: 0.75rem;
}

.photo-detail-comments-section .photo-comment-item {
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
}

.photo-comment-thread {
  display: grid;
  gap: 0.55rem;
}

.photo-admin-reply {
  position: relative;
  margin-left: clamp(1rem, 4vw, 3.25rem);
  padding: 0.9rem 1rem 0.95rem 1.15rem;
  border: 1px solid rgba(184, 138, 74, 0.24);
  border-left: 3px solid var(--pdj-gold);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(248, 242, 232, 0.72));
}

.photo-admin-reply::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: -2rem;
  width: 1.8rem;
  height: 1.15rem;
  border-bottom: 1px solid rgba(184, 138, 74, 0.45);
  border-left: 1px solid rgba(184, 138, 74, 0.45);
  border-radius: 0 0 0 8px;
}

.photo-admin-reply-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.photo-admin-reply-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--pdj-forest);
  color: var(--pdj-white);
}

.photo-admin-reply-head div {
  display: grid;
  gap: 0.08rem;
}

.photo-admin-reply-head strong {
  color: var(--pdj-forest);
  font-size: 0.92rem;
}

.photo-admin-reply-head span:not(.photo-admin-reply-mark) {
  color: var(--pdj-gold-dark, #8b642e);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-admin-reply p {
  margin: 0 0 0.4rem;
  color: var(--pdj-text);
  line-height: 1.6;
}

.photo-admin-reply > small {
  color: var(--pdj-muted);
}

.photo-comment-form-wide {
  gap: 1rem;
  margin-top: 0.15rem;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48));
}

.photo-comment-form-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: baseline;
  justify-content: space-between;
}

.photo-comment-form-head p {
  max-width: 34rem;
  margin: 0;
  color: var(--pdj-muted);
  font-size: 0.9rem;
}

.photo-comment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.photo-comment-field-full {
  grid-column: 1 / -1;
}

@keyframes photoFrameIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes photoPanelIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-viewer-frame,
  .photo-viewer-panel-inner {
    animation: none;
  }
}

.protected-image,
.gslide-image img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.protected-media {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.protected-media::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: rgba(23, 33, 29, 0.42);
  color: rgba(255, 255, 255, 0.86);
  content: "© Photo du Jour";
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.protected-media:hover::after,
.protected-media:focus-within::after {
  opacity: 1;
}

.photo-tile-media.protected-media::after {
  content: none;
}

.detail-aside {
  position: sticky;
  top: calc(var(--pdj-header-height) + 2rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0 2.5rem;
}

#galerie {
  scroll-margin-top: calc(var(--pdj-header-height) + 1rem);
}

.empty-state {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--pdj-line);
  border-radius: var(--pdj-radius);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.comment-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--pdj-line);
}

.comment-head,
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.rating-summary {
  margin-top: 1.25rem;
}

.rating-summary strong {
  color: var(--pdj-forest);
}

.rating-stars {
  display: inline-flex;
  gap: 0.16rem;
  align-items: center;
  color: var(--pdj-gold);
  line-height: 1;
}

.rating-stars.is-empty {
  color: rgba(138, 129, 116, 0.36);
  letter-spacing: 0.06em;
}

.rating-stars-lg {
  font-size: 1.25rem;
}

.rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.rating-field legend {
  margin-bottom: 0.55rem;
  color: var(--pdj-forest);
  font-size: 0.88rem;
  font-weight: 700;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.2rem;
  align-items: center;
}

.rating-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rating-input label {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(184, 138, 74, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(138, 129, 116, 0.46);
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked + label,
.rating-input input:checked ~ label {
  border-color: rgba(184, 138, 74, 0.54);
  background: rgba(184, 138, 74, 0.12);
  color: var(--pdj-gold);
}

.rating-input input:focus-visible + label {
  outline: 3px solid rgba(184, 138, 74, 0.26);
  outline-offset: 2px;
}

.rating-input label:hover {
  transform: translateY(-1px);
}

.form-control,
.form-select {
  border: 1px solid rgba(23, 33, 29, 0.18);
  border-radius: var(--pdj-radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--pdj-ink);
  padding: 0.85rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pdj-gold);
  box-shadow: 0 0 0 0.18rem rgba(184, 138, 74, 0.14);
}

.form-label {
  color: var(--pdj-forest);
  font-size: 0.88rem;
  font-weight: 700;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.18);
  border-radius: var(--pdj-radius);
  background: var(--pdj-white);
}

.rich-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.65rem;
  border-bottom: 1px solid var(--pdj-line);
  background: rgba(247, 244, 238, 0.96);
}

.rich-editor-select,
.rich-editor-button {
  min-height: 38px;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--pdj-ink);
  font-size: 0.88rem;
}

.rich-editor-select {
  max-width: 170px;
  padding: 0.4rem 0.55rem;
}

.rich-editor-button {
  display: inline-grid;
  width: 38px;
  place-items: center;
}

.rich-editor-button:hover,
.rich-editor-button:focus,
.rich-editor-select:focus {
  border-color: var(--pdj-gold);
  outline: 0;
  box-shadow: 0 0 0 0.16rem rgba(184, 138, 74, 0.14);
}

.rich-editor-button.is-loading {
  opacity: 0.55;
  cursor: wait;
}

.rich-editor-divider {
  width: 1px;
  height: 28px;
  margin-inline: 0.15rem;
  background: var(--pdj-line);
}

.rich-editor-surface {
  min-height: 420px;
  max-height: 70vh;
  overflow-y: auto;
  padding: clamp(1rem, 2vw, 2rem);
  background: #fffefa;
  outline: 0;
}

.rich-editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(184, 138, 74, 0.18);
}

.cms-content {
  color: var(--pdj-ink);
}

.cms-content > *:first-child {
  margin-top: 0;
}

.cms-content > *:last-child {
  margin-bottom: 0;
}

.cms-content p,
.cms-content li {
  color: rgba(23, 33, 29, 0.86);
  font-size: 1.02rem;
  line-height: 1.78;
}

.cms-content h2,
.cms-content h3,
.cms-content h4 {
  margin: 1.65em 0 0.65em;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--pdj-ink);
  line-height: 1.12;
}

.cms-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.cms-content h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.cms-content h4 {
  font-size: 1.35rem;
}

.cms-content a {
  color: var(--pdj-forest);
  font-weight: 700;
  text-decoration-color: rgba(184, 138, 74, 0.72);
}

.cms-content blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--pdj-gold);
  color: var(--pdj-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
}

.cms-content ul,
.cms-content ol {
  margin: 1rem 0 1.4rem 1.25rem;
  padding: 0;
}

.cms-content li + li {
  margin-top: 0.35rem;
}

.cms-content figure {
  margin: 2rem 0;
}

.cms-content figure.editor-image {
  overflow: hidden;
  border-radius: var(--pdj-radius);
}

.cms-content figure.editor-image-wide {
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.cms-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pdj-radius);
}

.cms-content figcaption {
  margin-top: 0.7rem;
  color: var(--pdj-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.cms-content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--pdj-line);
  opacity: 1;
}

.cms-content .text-start {
  text-align: left;
}

.cms-content .text-center {
  text-align: center;
}

.cms-content .text-end {
  text-align: right;
}

.cms-content .editor-font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

.cms-content .editor-font-sans {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cms-content .editor-font-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.prose-content {
  color: var(--pdj-ink);
}

.page-content-section {
  padding-top: clamp(0.25rem, 1.5vw, 1rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.page-content-panel {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prose-content-wide {
  font-size: 1.04rem;
}

.prose-content-wide > p,
.prose-content-wide > ul,
.prose-content-wide > ol,
.prose-content-wide > blockquote,
.prose-content-wide > table {
  max-width: 980px;
}

.prose-content-wide > h2,
.prose-content-wide > h3,
.prose-content-wide > h4 {
  max-width: 1080px;
}

.prose-content-wide > p:has(> img),
.prose-content-wide > div:has(> img) {
  max-width: none;
}

.prose-content > *:first-child {
  margin-top: 0;
}

.prose-content > *:last-child {
  margin-bottom: 0;
}

.prose-content p,
.prose-content li {
  color: rgba(23, 33, 29, 0.88);
  font-size: 1.03rem;
  line-height: 1.78;
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
  margin: 1.55em 0 0.62em;
  color: var(--pdj-ink);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
}

.prose-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prose-content h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.prose-content h4 {
  font-size: 1.4rem;
}

.prose-content a {
  color: var(--pdj-forest);
  font-weight: 700;
  text-decoration-color: rgba(184, 138, 74, 0.72);
}

.prose-content blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.2rem;
  border-left: 3px solid var(--pdj-gold);
  color: var(--pdj-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
}

.prose-content ul,
.prose-content ol {
  margin: 1rem 0 1.4rem 1.25rem;
  padding: 0;
}

.prose-content li + li {
  margin-top: 0.35rem;
}

.prose-content figure {
  margin: 2rem 0;
}

.prose-content-wide figure {
  width: min(100%, 1120px);
  margin: clamp(2rem, 4vw, 3.5rem) auto;
}

.prose-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--pdj-radius);
}

.prose-content-wide img {
  box-shadow: 0 20px 54px rgba(23, 33, 29, 0.10);
}

.prose-content figcaption {
  margin-top: 0.7rem;
  color: var(--pdj-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.prose-content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--pdj-line);
  opacity: 1;
}

.prose-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--pdj-line);
  border-radius: var(--pdj-radius);
  background: var(--pdj-white);
}

.prose-content th,
.prose-content td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pdj-line);
  color: rgba(23, 33, 29, 0.88);
  vertical-align: top;
}

.prose-content th {
  background: rgba(31, 53, 45, 0.06);
  color: var(--pdj-forest);
  font-weight: 700;
}

.prose-content .content-image-left,
.prose-content img.content-image-left {
  float: left;
  max-width: 44%;
  margin: 0.45rem 1.4rem 1rem 0;
}

.prose-content-wide .content-image-left,
.prose-content-wide img.content-image-left {
  max-width: min(48%, 520px);
  margin: 0.45rem 2rem 1.25rem 0;
}

.prose-content .content-image-right,
.prose-content img.content-image-right {
  float: right;
  max-width: 44%;
  margin: 0.45rem 0 1rem 1.4rem;
}

.prose-content-wide .content-image-right,
.prose-content-wide img.content-image-right {
  max-width: min(48%, 520px);
  margin: 0.45rem 0 1.25rem 2rem;
}

.prose-content .content-image-center,
.prose-content img.content-image-center {
  display: block;
  margin: 2rem auto;
}

.prose-content-wide .content-image-center,
.prose-content-wide img.content-image-center {
  width: min(100%, 920px);
  margin: clamp(2rem, 4vw, 3.4rem) auto;
}

.prose-content .content-image-full,
.prose-content img.content-image-full {
  display: block;
  width: 100%;
  margin: 2rem auto;
}

.prose-content-wide .content-image-full,
.prose-content-wide img.content-image-full {
  width: min(100%, 1120px);
  margin: clamp(2.3rem, 5vw, 4rem) auto;
}

.prose-content::after {
  display: block;
  clear: both;
  content: "";
}

@media (max-width: 720px) {
  .page-content-panel {
    padding: 0;
  }

  .prose-content-wide > p,
  .prose-content-wide > ul,
  .prose-content-wide > ol,
  .prose-content-wide > blockquote,
  .prose-content-wide > table {
    max-width: none;
  }

  .prose-content .content-image-left,
  .prose-content .content-image-right,
  .prose-content img.content-image-left,
  .prose-content img.content-image-right {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1.5rem auto;
  }
}

.tinymce-shell {
  overflow: hidden;
  border-top: 1px solid rgba(23, 33, 29, 0.10);
  background: #f1ede5;
}

.tinymce-shell .tox.tox-tinymce {
  border: 0;
  border-radius: 0;
  background: #f1ede5;
}

.tinymce-shell .tox .tox-editor-header {
  border-bottom: 1px solid rgba(23, 33, 29, 0.10);
  background: rgba(247, 244, 238, 0.98);
  box-shadow: none;
}

.tinymce-shell .tox .tox-toolbar-overlord,
.tinymce-shell .tox .tox-toolbar,
.tinymce-shell .tox .tox-toolbar__primary {
  background: transparent;
}

.tinymce-shell .tox .tox-tbtn,
.tinymce-shell .tox .tox-split-button,
.tinymce-shell .tox .tox-listboxfield .tox-listbox--select {
  border-radius: 8px;
}

.tinymce-shell .tox .tox-tbtn:hover,
.tinymce-shell .tox .tox-tbtn--enabled,
.tinymce-shell .tox .tox-tbtn--enabled:hover {
  background: rgba(31, 53, 45, 0.10);
  color: var(--pdj-forest);
}

.tinymce-shell .tox .tox-edit-area::before {
  border: 2px solid rgba(184, 138, 74, 0.22);
  border-radius: 0;
}

.tinymce-shell .tox .tox-statusbar {
  border-top: 1px solid rgba(23, 33, 29, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: var(--pdj-muted);
}

.studio-panel-header-editor {
  align-items: center;
}

.studio-editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  color: var(--pdj-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.editor-status {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
}

.editor-status.is-ready {
  color: var(--pdj-success);
}

.editor-status.is-dirty {
  color: #8a5c24;
}

.editor-status.is-saving {
  color: var(--pdj-forest);
}

.google-preview {
  padding: 1rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 10px;
  background: #fffefa;
}

.google-preview span {
  display: block;
  color: #5f6368;
  font-size: 0.82rem;
}

.google-preview strong {
  display: block;
  margin-top: 0.22rem;
  color: #1a0dab;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.google-preview p {
  margin: 0.22rem 0 0;
  color: #4d5156;
  font-size: 0.9rem;
}

.studio-updated-at,
.studio-save-hint {
  margin-top: 0.9rem;
  color: var(--pdj-muted);
  font-size: 0.86rem;
}

.studio-side-help {
  margin: 0.45rem 0 0;
  color: var(--pdj-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Studio CMS moderne */
.page-studio-form {
  display: block;
}

.studio-panel,
.studio-side-card {
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 55px rgba(23, 33, 29, 0.06);
}

.studio-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
  margin-bottom: 1rem;
}

.studio-panel-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.studio-panel-header h2,
.studio-side-card h2 {
  margin: 0;
  color: var(--pdj-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.studio-kicker {
  margin: 0 0 0.3rem;
  color: var(--pdj-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-status-pill {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(184, 138, 74, 0.10);
  color: #735226;
  font-size: 0.8rem;
  font-weight: 800;
}

.studio-excerpt {
  min-height: 112px;
  resize: vertical;
}

.studio-side {
  position: sticky;
  top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.studio-side-card {
  padding: 1rem;
}

.studio-upload {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
  cursor: pointer;
}

.studio-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.studio-upload span {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px dashed rgba(31, 53, 45, 0.34);
  border-radius: 10px;
  background: rgba(247, 244, 238, 0.7);
  color: var(--pdj-forest);
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.studio-upload:hover span {
  border-color: var(--pdj-gold);
  background: rgba(184, 138, 74, 0.10);
  transform: translateY(-1px);
}

.studio-cover-preview {
  display: block;
  width: 100%;
  max-height: 300px;
  margin-top: 1rem;
  border-radius: 10px;
  object-fit: cover;
}

.studio-cover-current {
  display: grid;
  gap: 0.75rem;
}

.studio-remove-cover {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.studio-remove-cover input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: #963232;
}

.studio-remove-cover span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(150, 50, 50, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(150, 50, 50, 0.06);
  color: #963232;
  font-size: 0.86rem;
  font-weight: 800;
}

.studio-cover-current.is-removing::after {
  display: block;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  background: rgba(184, 138, 74, 0.11);
  color: #735226;
  content: "L’image sera retirée après enregistrement.";
  font-size: 0.84rem;
  font-weight: 800;
}

.studio-publication-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.studio-publication-row strong,
.studio-publication-row span {
  display: block;
}

.studio-publication-row span {
  color: var(--pdj-muted);
  font-size: 0.88rem;
}

.studio-actions-card {
  display: grid;
  gap: 0.75rem;
}

.rich-editor-mode {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--pdj-line);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.88);
}

.rich-editor-mode button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pdj-muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
}

.rich-editor-mode button.active {
  background: var(--pdj-forest);
  color: var(--pdj-white);
  box-shadow: 0 8px 20px rgba(31, 53, 45, 0.14);
}

.studio-editor-panel {
  padding: 0;
  overflow: hidden;
  background: #fbfaf6;
}

.studio-editor-panel .studio-panel-header {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--pdj-line);
  background: rgba(255, 255, 255, 0.72);
}

.rich-editor {
  border: 0;
  border-radius: 0;
  background: #f3efe7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rich-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid rgba(23, 33, 29, 0.10);
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(14px);
}

.rich-editor-group {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 10px;
  padding: 0.22rem;
  background: rgba(255, 255, 255, 0.78);
}

.rich-editor-group-selects {
  gap: 0.35rem;
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.rich-editor-select,
.rich-editor-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pdj-ink);
  font-size: 0.9rem;
}

.rich-editor-select {
  width: auto;
  min-width: 154px;
  min-height: 42px;
  border: 1px solid rgba(23, 33, 29, 0.12);
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.rich-editor-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.rich-editor-button:hover,
.rich-editor-button:focus,
.rich-editor-button.active {
  background: rgba(31, 53, 45, 0.10);
  color: var(--pdj-forest);
  outline: 0;
}

.rich-editor-select:focus {
  border-color: var(--pdj-gold);
  outline: 0;
  box-shadow: 0 0 0 0.16rem rgba(184, 138, 74, 0.14);
}

.rich-editor-button-accent {
  background: var(--pdj-forest);
  color: var(--pdj-white);
}

.rich-editor-button-accent:hover,
.rich-editor-button-accent:focus {
  background: var(--pdj-ink);
  color: var(--pdj-white);
}

.rich-editor-button.is-loading {
  opacity: 0.58;
  cursor: wait;
}

.rich-editor-divider {
  display: none;
}

.rich-editor-workspace {
  min-height: 580px;
  padding: clamp(1rem, 2.6vw, 2rem);
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 33, 29, 0.025) 1px, transparent 1px),
    #f1ede5;
  background-size: 28px 28px;
}

.rich-editor-page,
.rich-editor-preview {
  width: min(100%, 860px);
  min-height: 520px;
  margin: 0 auto;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 26px 70px rgba(23, 33, 29, 0.12);
}

.rich-editor-surface,
.rich-editor-preview {
  padding: clamp(1.35rem, 4vw, 3.4rem);
}

.rich-editor-surface {
  min-height: 520px;
  max-height: none;
  overflow-y: visible;
  background: transparent;
  outline: 0;
}

.rich-editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(184, 138, 74, 0.16);
}

.rich-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: rgba(138, 129, 116, 0.78);
}

.rich-editor-preview {
  display: block;
}

.rich-editor.is-previewing .rich-editor-page {
  display: none;
}

.rich-editor-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(23, 33, 29, 0.10);
  background: rgba(255, 255, 255, 0.76);
  color: var(--pdj-muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.rich-editor-status {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.rich-editor-status.is-ready {
  color: var(--pdj-success);
}

.rich-editor-status.is-dirty {
  color: #8a5c24;
}

.rich-editor-status.is-upload {
  color: var(--pdj-forest);
}

.rich-editor-status.is-error {
  color: var(--pdj-danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash-stack {
  position: fixed;
  top: calc(var(--pdj-header-height) + 1rem);
  right: 1rem;
  z-index: 2000;
  display: grid;
  gap: 0.75rem;
  width: min(92vw, 420px);
}

.flash-message {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border: 1px solid var(--pdj-line);
  border-radius: var(--pdj-radius);
  background: var(--pdj-white);
  box-shadow: var(--pdj-shadow);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash-message.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.flash-success {
  border-color: rgba(47, 107, 79, 0.35);
}

.flash-error {
  border-color: rgba(155, 44, 44, 0.35);
}

.flash-close {
  border: 0;
  background: transparent;
  color: var(--pdj-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.site-footer {
  padding: clamp(3rem, 7vw, 6rem) 0 2rem;
  background: var(--pdj-ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand {
  color: var(--pdj-white);
  font-size: 2rem;
  text-decoration: none;
}

.footer-slogan {
  max-width: 420px;
  margin: 1rem 0;
}

.footer-email {
  color: var(--pdj-white);
}

.footer-title {
  color: var(--pdj-white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover,
.social-links a:hover {
  color: var(--pdj-gold);
}

.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--pdj-white);
}

.footer-muted {
  color: rgba(255, 255, 255, 0.54);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1000;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--pdj-line);
  border-radius: 50%;
  background: var(--pdj-white);
  color: var(--pdj-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(184, 138, 74, 0.08), transparent 32rem),
    #f3efe7;
  color: var(--pdj-ink);
}

.admin-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.35rem 1rem;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28rem),
    #111c18;
  color: rgba(255, 255, 255, 0.76);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin: 0 0 1.65rem;
  padding: 0 0.8rem;
  color: var(--pdj-white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.52rem;
  line-height: 1.05;
  text-decoration: none;
}

.admin-nav {
  display: grid;
  gap: 0.28rem;
  padding: 0;
  list-style: none;
}

.admin-nav a,
.admin-nav button {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.admin-nav i {
  width: 1.1rem;
  color: var(--admin-nav-icon, rgba(184, 138, 74, 0.96));
  font-size: 1rem;
  text-align: center;
}

.admin-nav a[data-nav-tone="dashboard"] { --admin-nav-icon: #d7a44d; }
.admin-nav a[data-nav-tone="visits"] { --admin-nav-icon: #7cb3a2; }
.admin-nav a[data-nav-tone="photos"] { --admin-nav-icon: #92b7d8; }
.admin-nav a[data-nav-tone="categories"] { --admin-nav-icon: #d6b46e; }
.admin-nav a[data-nav-tone="pages"] { --admin-nav-icon: #c4a3d9; }
.admin-nav a[data-nav-tone="events"] { --admin-nav-icon: #d4915f; }
.admin-nav a[data-nav-tone="comments"] { --admin-nav-icon: #77b58a; }
.admin-nav a[data-nav-tone="messages"] { --admin-nav-icon: #e0b15f; }
.admin-nav a[data-nav-tone="users"] { --admin-nav-icon: #9fb5ea; }
.admin-nav a[data-nav-tone="appearance"] { --admin-nav-icon: #d98f8f; }
.admin-nav a[data-nav-tone="settings"] { --admin-nav-icon: #b8a88a; }
.admin-nav a[data-nav-tone="tools"] { --admin-nav-icon: #d4a15f; }
.admin-nav a[data-nav-tone="extensions"] { --admin-nav-icon: #a985db; }

.admin-nav a:hover,
.admin-nav a.active,
.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--pdj-white);
  transform: translateX(2px);
}

.admin-main {
  min-width: 0;
  padding: clamp(1rem, 2.8vw, 2.25rem);
}

.admin-topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.65rem;
}

.admin-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  line-height: 0.98;
}

.admin-card {
  padding: 1.2rem;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(23, 33, 29, 0.06);
}

.admin-event-poster-preview {
  display: block;
  width: 100%;
  height: clamp(360px, 54vh, 560px);
  margin-inline: auto;
  padding: 0.65rem;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(31, 53, 45, 0.96), rgba(15, 35, 28, 0.99)),
    var(--pdj-forest);
  object-fit: contain;
  object-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.photo-form-section-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 33, 29, 0.10);
}

.photo-form-section-title span {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--pdj-ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-form-section-title i {
  color: var(--pdj-gold);
}

.photo-form-section-title small {
  color: var(--pdj-muted);
  font-weight: 650;
}

.technical-preset-field {
  position: relative;
}

.technical-preset-control {
  position: relative;
  display: flex;
  gap: 0.4rem;
}

.technical-preset-control .form-control {
  padding-right: 3rem;
}

.technical-preset-icon,
.technical-preset-add {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background: #fffefa;
  color: var(--pdj-forest);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.technical-preset-icon {
  position: absolute;
  top: 50%;
  right: 3rem;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.technical-preset-add {
  color: #fff;
  background: var(--pdj-forest);
}

.technical-preset-icon:hover,
.technical-preset-icon:focus-visible,
.technical-preset-add:hover,
.technical-preset-add:focus-visible {
  border-color: rgba(184, 138, 74, 0.45);
  background: var(--pdj-gold);
  color: #fff;
}

.technical-preset-field.is-open .technical-preset-icon i {
  transform: rotate(180deg);
}

.technical-preset-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 22px 55px rgba(23, 33, 29, 0.16);
}

.technical-preset-menu::before {
  position: absolute;
  bottom: 100%;
  left: 1.4rem;
  width: 0.78rem;
  height: 0.78rem;
  border-top: 1px solid rgba(23, 33, 29, 0.14);
  border-left: 1px solid rgba(23, 33, 29, 0.14);
  background: rgba(255, 254, 250, 0.98);
  content: "";
  transform: translateY(50%) rotate(45deg);
}

.technical-preset-menu-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
  color: var(--pdj-ink);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.technical-preset-menu-head small {
  color: var(--pdj-muted);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
}

.technical-preset-list {
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.35rem;
}

.technical-preset-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 0.25rem;
  align-items: center;
  border-radius: 8px;
}

.technical-preset-option:hover,
.technical-preset-option:focus-within {
  background: rgba(23, 33, 29, 0.05);
}

.technical-preset-option button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--pdj-ink);
  font-weight: 720;
}

.technical-preset-option [data-preset-select] {
  overflow: hidden;
  padding: 0 0.6rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-preset-option [data-preset-remove] {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--pdj-muted);
}

.technical-preset-option [data-preset-remove]:hover,
.technical-preset-option [data-preset-remove]:focus-visible {
  background: rgba(155, 44, 44, 0.10);
  color: var(--pdj-danger);
}

.technical-preset-empty,
.technical-preset-status {
  margin: 0;
  padding: 0.35rem 0.8rem 0.72rem;
  color: var(--pdj-muted);
  font-size: 0.78rem;
}

.technical-preset-status[data-state="success"] {
  color: var(--pdj-success);
}

.technical-preset-status[data-state="error"] {
  color: var(--pdj-danger);
}

.technical-preset-status[data-state="loading"] {
  color: #8a5c24;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-card {
  padding: 1.1rem;
  border: 1px solid var(--pdj-line);
  border-radius: var(--pdj-radius);
  background: var(--pdj-white);
}

.kpi-card span {
  color: var(--pdj-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.admin-table {
  overflow-x: auto;
  border: 1px solid var(--pdj-line);
  border-radius: var(--pdj-radius);
  background: var(--pdj-white);
}

.admin-table table {
  margin: 0;
  min-width: 760px;
}

.admin-table th {
  color: var(--pdj-muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  background: rgba(31, 53, 45, 0.08);
  color: var(--pdj-forest);
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-soft.gold {
  background: rgba(184, 138, 74, 0.16);
  color: #7a5525;
}

.badge-soft.danger {
  background: rgba(155, 44, 44, 0.12);
  color: var(--pdj-danger);
}

.badge-soft.muted-badge {
  background: rgba(138, 129, 116, 0.12);
  color: var(--pdj-muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-comment-reply-row > td {
  padding: 0 0.8rem 1rem;
  border-top: 0;
}

.admin-comment-reply-panel {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(184, 138, 74, 0.22);
  border-radius: 8px;
  background: rgba(248, 244, 237, 0.72);
}

.admin-comment-reply-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.admin-comment-reply-heading > div {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.admin-comment-reply-heading small {
  color: var(--pdj-muted);
}

.admin-comment-reply-icon {
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 50%;
  background: var(--pdj-forest);
  color: var(--pdj-white);
}

.admin-comment-existing-reply {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(240px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
}

.admin-comment-existing-reply > div {
  display: grid;
  gap: 0.1rem;
}

.admin-comment-existing-reply small {
  color: var(--pdj-muted);
}

.admin-comment-existing-reply p {
  margin: 0;
  line-height: 1.5;
}

.admin-comment-reply-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-comment-reply-form textarea {
  min-height: 72px;
  resize: vertical;
}

.admin-comment-reply-form .btn {
  min-height: 44px;
  white-space: nowrap;
}

.webmail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 8px;
  background: #17362d;
  color: #fff;
  box-shadow: 0 18px 45px rgba(18, 47, 39, 0.14);
}

.webmail-kicker,
.webmail-address-card small {
  color: #d8af6d;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.webmail-hero h2 {
  margin: 0.35rem 0 0.65rem;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.02;
}

.webmail-hero-copy > p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.65;
}

.webmail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.webmail-address-card {
  display: grid;
  gap: 0.28rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.webmail-address-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.55rem;
  place-items: center;
  border-radius: 50%;
  background: #d8af6d;
  color: #17362d;
  font-size: 1.25rem;
}

.webmail-address-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.webmail-address-card > span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.webmail-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 1rem;
}

.webmail-main-card,
.webmail-stat-card,
.webmail-status-card {
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
}

.webmail-card-header,
.webmail-status-heading {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.webmail-card-header > span,
.webmail-stat-icon {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 2.7rem;
  place-items: center;
  border-radius: 7px;
  background: rgba(23, 54, 45, 0.09);
  color: #17362d;
  font-size: 1.15rem;
}

.webmail-stat-icon.is-gold {
  background: rgba(184, 138, 74, 0.16);
  color: #916426;
}

.webmail-stat-icon.is-green {
  background: rgba(54, 123, 91, 0.13);
  color: #236745;
}

.webmail-card-header p,
.webmail-card-header h3 {
  margin: 0;
}

.webmail-card-header p,
.webmail-status-heading small {
  color: var(--pdj-muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.webmail-card-header h3 {
  font-size: 1.15rem;
}

.webmail-card-description {
  max-width: 48rem;
  margin: 1.2rem 0;
  color: var(--pdj-muted);
  line-height: 1.65;
}

.webmail-open-button {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 8px;
  background: #17362d;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.webmail-open-button:hover,
.webmail-open-button:focus-visible {
  background: #20493c;
  color: #fff;
  transform: translateY(-2px);
}

.webmail-open-button > span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.08rem 0.75rem;
  align-items: center;
}

.webmail-open-button > span > i {
  grid-row: 1 / 3;
  font-size: 1.25rem;
}

.webmail-open-button small {
  color: rgba(255, 255, 255, 0.64);
}

.webmail-security-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 1rem;
  color: var(--pdj-muted);
  font-size: 0.82rem;
}

.webmail-security-note i {
  color: #26704c;
}

.webmail-side-stack {
  display: grid;
  gap: 1rem;
}

.webmail-stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 0.85rem;
  align-items: center;
}

.webmail-stat-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.05rem 0.45rem;
  align-items: baseline;
}

.webmail-stat-card small {
  grid-column: 1 / -1;
  color: var(--pdj-muted);
}

.webmail-stat-card strong {
  color: var(--pdj-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.webmail-stat-card > a {
  grid-column: 1 / -1;
  color: var(--pdj-forest);
  font-weight: 750;
  text-decoration: none;
}

.webmail-status-heading strong {
  display: block;
  color: var(--pdj-forest);
}

.webmail-status-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.webmail-status-card dl > div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--pdj-line);
}

.webmail-status-card dt {
  color: var(--pdj-muted);
  font-weight: 600;
}

.webmail-status-card dd {
  margin: 0;
  color: var(--pdj-forest);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-align: right;
}

.admin-body.admin-mail-workspace .admin-main {
  height: 100vh;
  padding: 0.75rem;
  overflow: hidden;
}

.admin-body.admin-mail-workspace .admin-topbar {
  display: none;
}

.mail-console-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-bottom: 0.65rem;
}

.mail-console-heading-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}

.mail-console-heading-brand > span {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 2.45rem;
  place-items: center;
  border-radius: 50%;
  background: var(--pdj-forest);
  color: #fff;
  font-size: 1rem;
}

.mail-console-heading-brand > div {
  display: grid;
  min-width: 0;
}

.mail-console-heading-brand strong {
  color: var(--pdj-forest);
  font-size: 0.95rem;
}

.mail-console-heading-brand small {
  overflow: hidden;
  color: var(--pdj-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-console-heading-actions,
.mail-console-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mail-console-heading-actions .btn {
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  font-size: 0.76rem;
}

.mail-console-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  max-width: 920px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.mail-console-setup-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(184, 138, 74, 0.14);
  color: #9a682b;
  font-size: 1.3rem;
}

.mail-console-setup h2 {
  margin: 0.15rem 0 0.5rem;
  color: var(--pdj-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}

.mail-console-setup p:not(.section-kicker) {
  max-width: 48rem;
  color: var(--pdj-muted);
  line-height: 1.6;
}

.mail-console {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.5fr);
  min-height: 540px;
  height: calc(100vh - 74px);
  height: calc(100dvh - 74px);
  overflow: hidden;
  border: 1px solid #ded8ce;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 54, 45, 0.08);
}

.mail-console-list-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #e5dfd5;
  background: #fbfaf7;
}

.mail-console-list-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e8e2d8;
}

.mail-console-list-header > div {
  display: grid;
  gap: 0.08rem;
}

.mail-console-list-header strong {
  color: var(--pdj-forest);
  font-size: 0.92rem;
}

.mail-console-list-header span {
  color: var(--pdj-muted);
  font-size: 0.76rem;
}

.mail-console-live {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  white-space: nowrap;
}

.mail-console-live i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #3f9467;
  box-shadow: 0 0 0 4px rgba(63, 148, 103, 0.12);
}

.mail-console-filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e8e2d8;
}

.mail-console-filters a {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 6px;
  color: #6d685f;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.mail-console-filters a span {
  min-width: 1.45rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: #eeeae3;
  color: #746e64;
  font-size: 0.68rem;
  text-align: center;
}

.mail-console-filters a:hover,
.mail-console-filters a.active {
  background: #17362d;
  color: #fff;
}

.mail-console-filters a.active span {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.mail-console-message-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 54, 45, 0.25) transparent;
}

.mail-console-message {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.7rem;
  min-height: 94px;
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid #ebe6dd;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.mail-console-message:hover {
  background: #fff;
  color: inherit;
}

.mail-console-message.is-selected {
  background: #eef3ef;
  box-shadow: inset 3px 0 #b88747;
}

.mail-console-message.is-unread {
  background: #fff;
}

.mail-console-avatar {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: #e6eee9;
  color: #17362d;
  font-size: 0.82rem;
  font-weight: 800;
}

.mail-console-avatar.is-large {
  width: 2.75rem;
  height: 2.75rem;
  flex-basis: 2.75rem;
  background: #17362d;
  color: #fff;
  font-size: 1rem;
}

.mail-console-message-copy {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.mail-console-message-line {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.mail-console-message-line strong,
.mail-console-message-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-console-message-line strong {
  color: #504c45;
  font-size: 0.78rem;
  font-weight: 650;
}

.mail-console-message.is-unread .mail-console-message-line strong,
.mail-console-message.is-unread .mail-console-message-subject {
  color: #17362d;
  font-weight: 800;
}

.mail-console-message-line time {
  flex: 0 0 auto;
  color: #968e82;
  font-size: 0.68rem;
}

.mail-console-message-subject {
  color: #625d55;
  font-size: 0.82rem;
}

.mail-console-message-meta {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: #9a9388;
  font-size: 0.66rem;
}

.mail-console-message-meta i {
  color: #b88747;
}

.mail-console-unread-dot {
  position: absolute;
  right: 0.65rem;
  bottom: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #3d8060;
}

.mail-console-empty-list,
.mail-console-reader-empty {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.mail-console-empty-list {
  min-height: 250px;
  padding: 2rem 1rem;
  color: var(--pdj-muted);
}

.mail-console-empty-list i {
  margin-bottom: 0.7rem;
  color: #bdb6aa;
  font-size: 1.8rem;
}

.mail-console-empty-list strong {
  color: var(--pdj-forest);
}

.mail-console-empty-list span {
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

.mail-console-pagination {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-top: 1px solid #e8e2d8;
  background: #fff;
}

.mail-console-pagination a,
.mail-console-pagination > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #ded8ce;
  border-radius: 50%;
  color: var(--pdj-forest);
  text-decoration: none;
}

.mail-console-pagination > span {
  color: #c3bdb3;
}

.mail-console-pagination strong {
  color: #716b62;
  font-size: 0.75rem;
}

.mail-console-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.mail-console-reader-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #e8e2d8;
}

.mail-console-reader-title {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.mail-console-reader-title > div {
  display: grid;
  min-width: 0;
  gap: 0.05rem;
}

.mail-console-reader-title span,
.mail-console-reader-title a,
.mail-console-reader-title time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-console-reader-title span {
  color: #59544c;
  font-size: 0.8rem;
}

.mail-console-reader-title a,
.mail-console-reader-title time {
  color: #948c81;
  font-size: 0.7rem;
  text-decoration: none;
}

.mail-console-reader-actions {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.mail-console-reader-actions form {
  margin: 0;
}

.mail-console-reader-actions button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid #ddd7ce;
  border-radius: 50%;
  background: #fff;
  color: #524d46;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.mail-console-reader-actions button:hover {
  border-color: #b88747;
  background: #fbf6ee;
  color: #9a682b;
}

.mail-console-reader-actions .mail-console-reply-action {
  display: inline-flex;
  width: auto;
  min-width: 7rem;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border-color: var(--pdj-forest);
  border-radius: 999px;
  background: var(--pdj-forest);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
}

.mail-console-reader-actions .mail-console-reply-action:hover {
  border-color: #214c3f;
  background: #214c3f;
  color: #fff;
}

.mail-console-reader-actions button.is-danger:hover {
  border-color: #bd655c;
  background: #fff3f1;
  color: #a83d34;
}

.mail-console-reader-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1rem, 2.1vw, 1.6rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 54, 45, 0.25) transparent;
}

.mail-console-subject-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ece7df;
}

.mail-console-label {
  display: block;
  margin-bottom: 0.25rem;
  color: #a16d2d;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-console-subject-row h3 {
  max-width: 56rem;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--pdj-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.12;
}

.mail-console-size {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #f1eee8;
  color: #777066;
  font-size: 0.68rem;
  font-weight: 700;
}

.mail-console-body {
  min-height: 160px;
  padding: clamp(1.1rem, 2.5vw, 2rem) 0;
  overflow-wrap: anywhere;
  color: #393630;
  font-size: 0.92rem;
  line-height: 1.72;
}

.mail-console-attachments {
  padding: 1rem 0;
  border-top: 1px solid #ece7df;
}

.mail-console-attachments h4 {
  margin: 0 0 0.7rem;
  color: var(--pdj-forest);
  font-size: 0.88rem;
}

.mail-console-attachments > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mail-console-attachments > div > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 0.5rem;
  min-width: min(100%, 220px);
  padding: 0.65rem 0.75rem;
  border: 1px solid #e1dbd2;
  border-radius: 7px;
  background: #fbfaf7;
}

.mail-console-attachments > div i {
  grid-row: 1 / 3;
  align-self: center;
  color: #a16d2d;
}

.mail-console-attachments strong {
  overflow: hidden;
  color: #4f4a43;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-console-attachments small,
.mail-console-attachments p {
  color: #948c81;
  font-size: 0.68rem;
}

.mail-console-attachments p {
  margin: 0.65rem 0 0;
}

.mail-console-reply {
  margin-top: 0.5rem;
  padding: clamp(0.9rem, 1.5vw, 1.2rem);
  border: 1px solid #d8d2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 42, 36, 0.08);
}

.mail-console-reply[hidden] {
  display: none;
}

.mail-console-reply > header,
.mail-console-reply-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.mail-console-reply > header {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #ece7df;
}

.mail-console-reply h4 {
  margin: 0;
  color: var(--pdj-forest);
  font-size: 1rem;
}

.mail-console-compose-status {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.mail-console-compose-status > span {
  color: #4b8065;
  font-size: 0.7rem;
  font-weight: 700;
}

.mail-console-compose-status button {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid #e0dbd2;
  border-radius: 50%;
  background: #fff;
  color: #686158;
}

.mail-console-compose-status button:hover {
  border-color: #b88747;
  background: #fbf6ee;
  color: #9a682b;
}

.mail-console-reply form {
  display: grid;
  gap: 0.75rem;
}

.mail-console-recipient {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  background: #edf2ee;
  color: #17362d;
  font-size: 0.78rem;
}

.mail-console-recipient span {
  color: #837c72;
}

.mail-console-recipient strong {
  overflow-wrap: anywhere;
}

.mail-console-subject-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid #dfd9d0;
  border-radius: 6px;
  background: #fff;
}

.mail-console-subject-input > span {
  margin: 0 !important;
}

.mail-console-subject-input .form-control {
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2d302e;
  font-size: 0.83rem;
  font-weight: 650;
}

.mail-console-reply label > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #4e4942;
  font-size: 0.76rem;
  font-weight: 750;
}

.mail-compose-editor-shell {
  overflow: hidden;
  border: 1px solid #d9d3ca;
  border-radius: 7px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mail-compose-editor-shell:focus-within {
  border-color: #a9783c;
  box-shadow: 0 0 0 3px rgba(169, 120, 60, 0.11);
}

.mail-compose-toolbar {
  display: flex;
  min-height: 43px;
  gap: 0.2rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  overflow-x: auto;
  border-bottom: 1px solid #e9e4dc;
  background: #f7f5f1;
  scrollbar-width: thin;
}

.mail-compose-toolbar select {
  min-width: 8.2rem;
  height: 2rem;
  padding: 0 1.7rem 0 0.55rem;
  border: 1px solid #ded8cf;
  border-radius: 5px;
  background-color: #fff;
  color: #3f443f;
  font-size: 0.72rem;
  font-weight: 700;
}

.mail-compose-toolbar button {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #4c514d;
}

.mail-compose-toolbar button:hover,
.mail-compose-toolbar button:focus-visible {
  border-color: #d9d1c5;
  background: #fff;
  color: var(--pdj-forest);
}

.mail-compose-toolbar-divider {
  width: 1px;
  height: 1.35rem;
  flex: 0 0 1px;
  margin: 0 0.15rem;
  background: #ddd6cc;
}

.mail-compose-editor {
  min-height: 185px;
  max-height: 38vh;
  padding: 1rem 1.1rem;
  overflow-y: auto;
  outline: 0;
  color: #343936;
  font-size: 0.88rem;
  line-height: 1.65;
}

.mail-compose-editor:empty::before {
  color: #aaa39a;
  content: "Rédigez votre réponse...";
  pointer-events: none;
}

.mail-compose-editor p {
  margin: 0 0 0.85rem;
}

.mail-compose-editor h2,
.mail-compose-editor h3 {
  margin: 0 0 0.65rem;
  color: var(--pdj-forest);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.mail-compose-editor h2 {
  font-size: 1.5rem;
}

.mail-compose-editor h3 {
  font-size: 1.15rem;
}

.mail-compose-editor ul,
.mail-compose-editor ol {
  padding-left: 1.35rem;
}

.mail-compose-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.15rem 0;
}

.mail-compose-attachment-button {
  display: inline-flex;
  min-height: 38px;
  gap: 0.4rem;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid #d9d3ca;
  border-radius: 999px;
  background: #fff;
  color: var(--pdj-forest);
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
}

.mail-compose-attachment-button:hover {
  border-color: #b88747;
  background: #fbf6ee;
}

.mail-compose-attachment-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mail-compose-attachments > small {
  color: #8a8379;
  font-size: 0.68rem;
}

.mail-compose-attachment-list {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mail-compose-attachment-list:empty {
  display: none;
}

.mail-compose-attachment-list > span {
  display: inline-flex;
  max-width: 100%;
  gap: 0.4rem;
  align-items: center;
  padding: 0.38rem 0.45rem 0.38rem 0.65rem;
  border: 1px solid #dde3df;
  border-radius: 999px;
  background: #f0f5f1;
  color: #315247;
  font-size: 0.7rem;
}

.mail-compose-attachment-list strong {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-compose-attachment-list > span > span {
  display: grid;
  min-width: 0;
}

.mail-compose-attachment-list small {
  color: #7d8b84;
  font-size: 0.65rem;
}

.mail-compose-attachment-list button {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 54, 45, 0.08);
  color: #315247;
}

.mail-compose-attachment-list button:hover {
  background: #17362d;
  color: #fff;
}

.mail-console-reply-footer small {
  color: #8d867c;
  font-size: 0.7rem;
}

.mail-console-reader-empty {
  grid-row: 1 / -1;
  min-height: 480px;
  padding: 2rem;
  color: var(--pdj-muted);
}

.mail-console-reader-empty > span {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: #edf2ee;
  color: #315e4d;
  font-size: 1.5rem;
}

.mail-console-reader-empty h2 {
  margin: 0.15rem 0 0.45rem;
  color: var(--pdj-forest);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.mail-console-reader-empty > p:last-child {
  max-width: 30rem;
  margin: 0;
  line-height: 1.6;
}

.mail-console-mobile-back {
  display: none;
}

@media (max-width: 980px) {
  .admin-body.admin-mail-workspace .admin-main {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .mail-console-heading {
    align-items: flex-start;
  }

  .mail-console-heading-actions {
    justify-content: flex-end;
  }

  .mail-console {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }

  .mail-console-list-panel {
    min-height: 520px;
    max-height: 72vh;
    border-right: 0;
  }

  .mail-console.has-selection .mail-console-list-panel {
    display: none;
  }

  .mail-console:not(.has-selection) .mail-console-reader {
    display: none;
  }

  .mail-console-reader {
    min-height: 620px;
    overflow: visible;
  }

  .mail-console-reader-content {
    overflow: visible;
  }

  .mail-console-reader-header {
    flex-wrap: wrap;
  }

  .mail-console-mobile-back {
    display: inline-flex;
    width: 100%;
    gap: 0.4rem;
    align-items: center;
    color: var(--pdj-forest);
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
  }
}

@media (max-width: 680px) {
  .mail-console-heading {
    display: grid;
    align-items: start;
  }

  .mail-console-heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .mail-console-heading-actions .btn {
    justify-content: center;
  }

  .mail-console-heading-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .mail-console-setup {
    grid-template-columns: 1fr;
  }

  .mail-console-setup-actions,
  .mail-console-reply > header,
  .mail-console-reply-footer {
    display: grid;
    justify-content: stretch;
  }

  .mail-console-setup-actions .btn,
  .mail-console-reply-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .mail-console-reader-header {
    align-items: flex-start;
  }

  .mail-console-reader-title {
    width: calc(100% - 8.4rem);
  }

  .mail-console-reader-actions {
    margin-left: auto;
  }

  .mail-console-reader-actions .mail-console-reply-action {
    min-width: 2.35rem;
    width: 2.35rem;
    padding: 0;
    border-radius: 50%;
  }

  .mail-console-reader-actions .mail-console-reply-action span {
    display: none;
  }

  .mail-console-subject-row {
    display: grid;
  }

  .mail-console-size {
    justify-self: start;
  }

  .mail-console-reply {
    padding: 0.8rem;
  }

  .mail-console-reply > header {
    position: relative;
    display: block;
    min-height: 2.4rem;
    padding-right: 2.6rem;
  }

  .mail-console-compose-status {
    position: absolute;
    top: 0;
    right: 0;
  }

  .mail-console-compose-status > span {
    display: none;
  }

  .mail-console-subject-input {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.55rem 0.7rem;
  }

  .mail-compose-editor {
    min-height: 210px;
  }
}

.thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #e8e2d8;
}

.dashboard-alert {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(184, 138, 74, 0.34);
  border-radius: 8px;
  background: rgba(184, 138, 74, 0.10);
  color: var(--pdj-ink);
}

.dashboard-alert i {
  color: #8a5d1f;
  font-size: 1.25rem;
}

.dashboard-command {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 53, 45, 0.96), rgba(23, 33, 29, 0.92)),
    var(--pdj-forest);
  color: var(--pdj-white);
  box-shadow: 0 20px 60px rgba(23, 33, 29, 0.16);
}

.dashboard-command h2 {
  margin: 0 0 0.42rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.dashboard-command p {
  max-width: 58rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.dashboard-date,
.dashboard-panel-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--pdj-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-command-actions,
.dashboard-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.dashboard-metric,
.dashboard-panel,
.dashboard-mini-stat,
.dashboard-actions-panel {
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(23, 33, 29, 0.055);
}

.dashboard-metric {
  position: relative;
  min-height: 150px;
  padding: 1.05rem;
  overflow: hidden;
}

.dashboard-metric::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -2.8rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(184, 138, 74, 0.18);
  border-radius: 50%;
}

.dashboard-metric-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.85rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 53, 45, 0.08);
  color: var(--pdj-forest);
}

.dashboard-metric span,
.dashboard-mini-stat span {
  display: block;
  color: var(--pdj-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric strong {
  display: block;
  margin-top: 0.24rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1;
}

.dashboard-metric small {
  display: block;
  margin-top: 0.45rem;
  color: #6f675d;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-content-grid-third {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-panel,
.dashboard-actions-panel {
  padding: clamp(1rem, 1.8vw, 1.3rem);
}

.dashboard-panel-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-panel-header h2,
.dashboard-actions-panel h2 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
}

.dashboard-panel-header a,
.dashboard-panel-meta {
  color: var(--pdj-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(28px, 1fr));
  gap: 0.55rem;
  align-items: end;
  min-height: 260px;
  padding-top: 1rem;
}

.dashboard-chart-item {
  display: grid;
  grid-template-rows: 1.4rem 1fr 1.25rem;
  align-items: end;
  min-height: 245px;
}

.dashboard-chart-value,
.dashboard-chart-label {
  color: var(--pdj-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.dashboard-chart-bar {
  display: block;
  min-height: 0.45rem;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #b88a4a, #1f352d);
  box-shadow: 0 12px 28px rgba(31, 53, 45, 0.14);
}

.dashboard-progress-list,
.dashboard-media-list,
.dashboard-rank-list,
.dashboard-feed,
.dashboard-side-stack {
  display: grid;
  gap: 0.72rem;
}

.dashboard-progress-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding-bottom: 0.78rem;
  overflow: hidden;
}

.dashboard-progress-row:not(:last-child) {
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
}

.dashboard-progress-row strong,
.dashboard-media-item strong,
.dashboard-rank-item strong,
.dashboard-feed strong {
  display: block;
  color: var(--pdj-ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.dashboard-progress-row span,
.dashboard-media-item small,
.dashboard-rank-item small,
.dashboard-feed small,
.dashboard-table span {
  display: block;
  color: var(--pdj-muted);
  font-size: 0.79rem;
  line-height: 1.35;
}

.dashboard-progress-row b,
.dashboard-rank-item em {
  color: var(--pdj-forest);
  font-style: normal;
  font-weight: 900;
}

.dashboard-progress-row i {
  grid-column: 1 / -1;
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pdj-gold), var(--pdj-forest));
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.dashboard-table th {
  padding: 0 0.75rem 0.65rem 0;
  color: var(--pdj-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-table td {
  padding: 0.78rem 0.75rem 0.78rem 0;
  border-top: 1px solid rgba(23, 33, 29, 0.09);
  color: var(--pdj-ink);
  font-size: 0.88rem;
  vertical-align: top;
}

.dashboard-table strong {
  display: block;
  max-width: 18rem;
  font-size: 0.92rem;
  line-height: 1.25;
}

.dashboard-mini-stat {
  position: relative;
  min-height: 112px;
  padding: 1rem;
  overflow: hidden;
}

.dashboard-mini-stat i {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 53, 45, 0.08);
  color: var(--pdj-forest);
}

.dashboard-mini-stat strong {
  display: block;
  margin-top: 0.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-mini-stat.is-gold i {
  background: rgba(184, 138, 74, 0.15);
  color: #8a5d1f;
}

.dashboard-mini-stat.is-danger i {
  background: rgba(155, 44, 44, 0.10);
  color: var(--pdj-danger);
}

.dashboard-mini-stat.is-stone i {
  background: rgba(138, 129, 116, 0.14);
  color: #5f584f;
}

.dashboard-media-item,
.dashboard-feed a,
.dashboard-rank-item,
.dashboard-action-grid a {
  display: flex;
  gap: 0.78rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.dashboard-media-item,
.dashboard-feed a,
.dashboard-rank-item {
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
}

.dashboard-media-item:last-child,
.dashboard-feed a:last-child,
.dashboard-rank-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-media-item img {
  width: 72px;
  height: 56px;
  flex: 0 0 72px;
  border-radius: 7px;
  object-fit: cover;
  background: #e8e2d8;
}

.dashboard-rank-item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
}

.dashboard-rank-item b {
  color: var(--pdj-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1;
}

.dashboard-feed i,
.dashboard-action-grid i {
  color: var(--pdj-gold);
}

.dashboard-actions-panel {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.dashboard-actions-panel p {
  margin: 0.35rem 0 0;
  color: var(--pdj-muted);
}

.dashboard-action-grid a {
  min-height: 2.75rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.72);
  font-weight: 900;
}

.dashboard-empty {
  margin: 0;
  color: var(--pdj-muted);
}

.admin-dashboard-body {
  background: #fbfaf6;
  color: #0d1815;
  font-size: 14px;
  line-height: 1.45;
}

.admin-dashboard-body .admin-shell {
  grid-template-columns: 255px minmax(0, 1fr);
}

.admin-dashboard-body .admin-sidebar {
  padding: 0;
  background:
    radial-gradient(circle at 70% 5%, rgba(184, 138, 74, 0.12), transparent 12rem),
    linear-gradient(180deg, #0d2b22 0%, #092119 45%, #071b15 100%);
  box-shadow: none;
}

.admin-sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.45rem 0.78rem 1rem;
}

.admin-dashboard-body .admin-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 96px;
  margin: 0 0 1rem;
  padding: 0.15rem 0.7rem;
}

.admin-dashboard-body .admin-brand strong {
  display: block;
  color: #fffef8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-dashboard-body .admin-brand small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.25;
}

.admin-brand-mark {
  width: 48px;
  height: 58px;
  color: #b88a4a;
}

.admin-dashboard-body .admin-nav {
  gap: 0.38rem;
}

.admin-dashboard-body .admin-nav a,
.admin-dashboard-body .admin-nav button,
.admin-dashboard-body .admin-nav-static {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.65rem;
  padding: 0.66rem 0.8rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-dashboard-body .admin-nav a.active {
  position: relative;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.admin-dashboard-body .admin-nav a.active::before {
  content: "";
  position: absolute;
  left: -0.78rem;
  top: 0.48rem;
  bottom: 0.48rem;
  width: 3px;
  border-radius: 999px;
  background: #b88a4a;
}

.admin-dashboard-body .admin-nav i,
.admin-dashboard-body .admin-nav-static i {
  width: 1.1rem;
  color: #c19a5d;
  font-size: 0.95rem;
}

.admin-nav-static {
  cursor: default;
}

.admin-sidebar-footer {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-profile-link,
.admin-site-link,
.admin-logout-link {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.6rem 0.62rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.admin-profile-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.9rem;
}

.admin-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #b88a4a;
  border-radius: 999px;
  color: #f6d89c;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
}

.admin-profile-link span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.admin-profile-link strong,
.admin-profile-link small {
  display: block;
}

.admin-profile-link strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile-link small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.admin-site-link,
.admin-logout-link {
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.admin-dashboard-body .admin-main {
  padding: 0;
  background: #fbfaf6;
}

.admin-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 1.55rem;
  border-bottom: 1px solid #e7e2d7;
  background: rgba(255, 255, 255, 0.78);
}

.admin-dashboard-topbar h1 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.admin-dashboard-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-dashboard-controls span,
.admin-dashboard-controls a {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid #d8d3c8;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
  color: #17211d;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-dashboard-controls a {
  min-width: 2rem;
  justify-content: center;
  padding-inline: 0.45rem;
  border-color: transparent;
  background: transparent;
}

.dashboard-kpi-row,
.dashboard-main-grid,
.dashboard-secondary-grid,
.dashboard-quick-actions {
  margin-inline: 1.55rem;
}

.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.92rem;
  margin-top: 0.92rem;
}

.dashboard-kpi-card,
.dashboard-card,
.dashboard-quick-actions {
  border: 1px solid #e4dfd4;
  border-radius: 6px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 8px 18px rgba(23, 33, 29, 0.035);
}

.dashboard-kpi-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 124px;
  padding: 1.22rem 1.45rem;
}

.dashboard-kpi-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    #082a20;
  color: #b88a4a;
  font-size: 1.55rem;
}

.dashboard-kpi-card p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-kpi-card strong {
  display: inline-block;
  margin-right: 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-kpi-card small {
  display: block;
  margin-top: 0.26rem;
  color: #504b43;
  font-size: 0.76rem;
}

.dashboard-kpi-card small b {
  color: #2f6b4f;
  font-weight: 900;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.18fr 1.42fr 1.14fr;
  gap: 0.92rem;
  margin-top: 0.92rem;
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.14fr 1.48fr;
  gap: 0.92rem;
  margin-top: 0.92rem;
}

.dashboard-card {
  min-height: 318px;
  padding: 1rem 1.08rem 0.82rem;
}

.dashboard-map-card {
  display: flex;
  flex-direction: column;
}

.dashboard-secondary-grid .dashboard-card {
  min-height: 258px;
}

.dashboard-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.6rem;
  margin-bottom: 0.72rem;
}

.dashboard-card h2,
.dashboard-quick-actions h2 {
  margin: 0;
  color: #0d1815;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-card header span {
  font-size: 0.76rem;
  font-weight: 900;
}

.dashboard-map-visual {
  display: grid;
  position: relative;
  isolation: isolate;
  height: clamp(248px, 18vw, 315px);
  place-items: center;
  padding: 0.05rem 0 0.3rem;
  overflow: visible;
}

.dashboard-map-visual img,
.dashboard-world-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.dashboard-world-map {
  overflow: visible;
}

.dashboard-world-country {
  cursor: help;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    stroke-width 180ms ease;
}

.dashboard-world-country:not(.is-active) {
  opacity: 0.86;
}

.dashboard-world-country.is-active {
  filter: drop-shadow(0 4px 7px rgba(8, 42, 32, 0.3));
  opacity: 1;
  stroke: #082a20 !important;
  stroke-width: 1.55 !important;
}

.dashboard-world-country:hover,
.dashboard-world-country:focus,
.dashboard-world-country.is-hovered {
  filter: drop-shadow(0 8px 12px rgba(8, 42, 32, 0.34));
  opacity: 1;
  outline: none;
  stroke: #082a20 !important;
  stroke-width: 2.1 !important;
  transform: scale(1.055);
}

.dashboard-map-tooltip {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  max-width: min(260px, calc(100% - 1rem));
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(184, 138, 74, 0.38);
  border-radius: 6px;
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.14);
  color: #17211d;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -112%);
  transition: opacity 150ms ease;
  white-space: normal;
}

.dashboard-map-tooltip.is-visible {
  opacity: 1;
}

.dashboard-map-note {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: -0.18rem 0 0.72rem;
  color: #6d655a;
  font-size: 0.76rem;
  line-height: 1.42;
}

.dashboard-map-note i {
  color: #b88a4a;
  line-height: 1.35;
}

.dashboard-map-note strong {
  color: #17211d;
}

.dashboard-geo-list {
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
  max-width: 290px;
}

.dashboard-geo-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  color: #17211d;
  font-size: 0.82rem;
}

.dashboard-geo-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
}

.dashboard-geo-list i {
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid #b9c4b9;
  border-radius: 999px;
  background: #8aa08e;
}

.dashboard-geo-list div.is-muted i {
  background: #d7d3cb;
}

.dashboard-geo-list div.is-muted span {
  color: #6d655a;
}

.dashboard-geo-list div:nth-child(n+3) i {
  opacity: 0.55;
}

.dashboard-geo-list strong {
  font-weight: 900;
}

.dashboard-compact-table-wrap {
  overflow-x: auto;
}

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

.dashboard-compact-table th {
  padding: 0.52rem 0.55rem;
  border-bottom: 1px solid #e8e3d8;
  color: #17211d;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: left;
  white-space: nowrap;
}

.dashboard-compact-table td {
  padding: 0.46rem 0.55rem;
  border-bottom: 1px solid #eee9df;
  color: #17211d;
  font-size: 0.76rem;
  line-height: 1.24;
  white-space: nowrap;
}

.dashboard-compact-table td strong {
  font-weight: 900;
}

.dashboard-visit-location {
  display: block;
  margin-top: 0.16rem;
  color: #776f64;
  font-size: 0.68rem;
  font-weight: 800;
}

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

.dashboard-card-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  float: right;
  margin-top: 0.62rem;
  color: #17211d;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-photo-rank {
  display: grid;
  gap: 0.5rem;
}

.dashboard-photo-rank a {
  display: grid;
  grid-template-columns: 1.2rem 62px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  color: #17211d;
  text-decoration: none;
}

.dashboard-photo-rank b,
.dashboard-photo-rank em {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.dashboard-photo-rank img {
  width: 62px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  background: #e6e1d8;
}

.dashboard-photo-rank strong,
.dashboard-photo-rank small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-photo-rank strong {
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-photo-rank small {
  color: #776f64;
  font-size: 0.72rem;
}

.dashboard-kpi-list {
  display: grid;
  gap: 0.48rem;
}

.dashboard-kpi-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  font-size: 0.79rem;
}

.dashboard-kpi-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dashboard-kpi-list i {
  color: #17211d;
}

.dashboard-kpi-list strong {
  font-weight: 900;
}

.dashboard-storage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1rem;
  margin-top: 0.68rem;
  color: #504b43;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-storage-row i {
  grid-column: 1 / -1;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9df;
}

.dashboard-storage-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1f352d;
}

.dashboard-storage-panel {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.92rem;
  padding-top: 0.92rem;
  border-top: 1px solid #e8e3d8;
}

.dashboard-storage-head,
.dashboard-storage-grid {
  display: grid;
  gap: 0.58rem;
}

.dashboard-storage-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.dashboard-storage-head span {
  display: inline-flex;
  gap: 0.48rem;
  align-items: center;
  color: #17211d;
  font-size: 0.8rem;
  font-weight: 950;
}

.dashboard-storage-head i {
  color: #b88a4a;
}

.dashboard-storage-head strong {
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  background: rgba(47, 107, 79, 0.12);
  color: #2f6b4f;
  font-size: 0.68rem;
  font-weight: 950;
}

.dashboard-storage-panel.is-warning .dashboard-storage-head strong {
  background: rgba(184, 138, 74, 0.16);
  color: #8a5d1f;
}

.dashboard-storage-panel.is-danger .dashboard-storage-head strong {
  background: rgba(155, 44, 44, 0.12);
  color: #9b2c2c;
}

.dashboard-storage-panel.is-muted .dashboard-storage-head strong {
  background: #eee9df;
  color: #776f64;
}

.dashboard-storage-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.62rem;
  align-items: center;
}

.dashboard-storage-meter i {
  height: 0.48rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9df;
}

.dashboard-storage-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f352d, #b88a4a);
}

.dashboard-storage-panel.is-warning .dashboard-storage-meter b {
  background: linear-gradient(90deg, #b88a4a, #c97733);
}

.dashboard-storage-panel.is-danger .dashboard-storage-meter b {
  background: linear-gradient(90deg, #c97733, #9b2c2c);
}

.dashboard-storage-meter em {
  color: #17211d;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
}

.dashboard-storage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-storage-grid span {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
  padding: 0.58rem 0.62rem;
  border: 1px solid #eee9df;
  border-radius: 5px;
  background: #fffefa;
  color: #776f64;
  font-size: 0.68rem;
  font-weight: 850;
}

.dashboard-storage-grid strong {
  overflow: hidden;
  color: #17211d;
  font-size: 0.86rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-storage-estimate {
  margin: 0;
  color: #504b43;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.dashboard-storage-estimate strong {
  color: #17211d;
  font-weight: 950;
}

.dashboard-storage-panel small {
  color: #8a8174;
  font-size: 0.7rem;
  font-weight: 800;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  background: rgba(184, 138, 74, 0.16);
  color: #8a5d1f;
  font-size: 0.68rem;
  font-weight: 900;
}

.dashboard-status.is-read,
.dashboard-status.is-approved {
  background: rgba(47, 107, 79, 0.14);
  color: #2f6b4f;
}

.dashboard-status.is-spam {
  background: rgba(155, 44, 44, 0.12);
  color: #9b2c2c;
}

.dashboard-quick-actions {
  min-height: 88px;
  margin-top: 0.92rem;
  margin-bottom: 1rem;
  padding: 0.92rem 1.12rem;
}

.dashboard-quick-actions div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0.72rem;
}

.dashboard-quick-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  min-height: 2.45rem;
  border-right: 1px solid #e7e2d7;
  color: #17211d;
  font-size: 0.83rem;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-quick-actions a:last-child {
  border-right: 0;
}

.dashboard-quick-actions i {
  color: #1f352d;
  font-size: 1.15rem;
}

.admin-dashboard-body .dashboard-alert,
.admin-dashboard-body .dashboard-command,
.admin-dashboard-body .dashboard-metrics,
.admin-dashboard-body .dashboard-content-grid,
.admin-dashboard-body .dashboard-actions-panel {
  display: none;
}

.admin-body .admin-shell {
  grid-template-columns: 255px minmax(0, 1fr);
}

.admin-body .admin-sidebar {
  padding: 0;
  background:
    radial-gradient(circle at 70% 5%, rgba(184, 138, 74, 0.12), transparent 12rem),
    linear-gradient(180deg, #0d2b22 0%, #092119 45%, #071b15 100%);
  box-shadow: none;
}

.admin-body .admin-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 96px;
  margin: 0 0 1rem;
  padding: 0.15rem 0.7rem;
  color: #fffef8;
  text-decoration: none;
}

.admin-body .admin-brand strong {
  display: block;
  color: #fffef8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-body .admin-brand small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.25;
}

.admin-body .admin-nav {
  gap: 0.38rem;
}

.admin-body .admin-nav a,
.admin-body .admin-nav button,
.admin-body .admin-nav-static {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.65rem;
  padding: 0.66rem 0.8rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.admin-body .admin-nav a.active {
  position: relative;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.admin-body .admin-nav a.active::before {
  content: "";
  position: absolute;
  left: -0.78rem;
  top: 0.48rem;
  bottom: 0.48rem;
  width: 3px;
  border-radius: 999px;
  background: var(--admin-nav-icon, #b88a4a);
}

.admin-body .admin-nav i,
.admin-body .admin-nav-static i {
  width: 1.1rem;
  color: var(--admin-nav-icon, #c19a5d);
  font-size: 0.95rem;
}

.admin-body .admin-profile-link,
.admin-body .admin-site-link,
.admin-body .admin-logout-link {
  border-radius: 6px;
}

.admin-body .admin-profile-link:hover,
.admin-body .admin-site-link:hover,
.admin-body .admin-logout-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-module-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding: 1.25rem;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 53, 45, 0.96), rgba(23, 33, 29, 0.92)),
    var(--pdj-forest);
  color: #fff;
}

.admin-module-hero span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pdj-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-module-hero h2 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.admin-module-hero p {
  max-width: 62rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.admin-module-hero-stats {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.2rem 0.7rem;
  min-width: 170px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-module-hero-stats strong {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.admin-module-hero-stats span {
  margin: 0;
  align-self: center;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
  text-transform: none;
}

.admin-tool-grid,
.admin-extension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-tool-card,
.admin-extension-card {
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(23, 33, 29, 0.055);
}

.admin-tool-card {
  min-height: 135px;
  padding: 1rem;
}

.admin-tool-card > i,
.admin-extension-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 53, 45, 0.08);
  color: var(--pdj-forest);
}

.admin-tool-card span {
  display: block;
  margin-top: 0.85rem;
  color: var(--pdj-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-tool-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.admin-tool-card.is-warning > i {
  background: rgba(184, 138, 74, 0.16);
  color: #8a5d1f;
}

.admin-extension-card {
  display: flex;
  flex-direction: column;
  min-height: 275px;
  padding: 1rem;
}

.admin-extension-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-extension-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(138, 129, 116, 0.12);
  color: var(--pdj-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-extension-status.is-on {
  background: rgba(47, 107, 79, 0.14);
  color: var(--pdj-success);
}

.admin-extension-status.is-ready {
  background: rgba(184, 138, 74, 0.16);
  color: #8a5d1f;
}

.admin-extension-category {
  margin: 0 0 0.2rem;
  color: var(--pdj-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-extension-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 900;
}

.admin-extension-card p:not(.admin-extension-category) {
  color: var(--pdj-muted);
  font-size: 0.92rem;
}

.admin-extension-card form {
  margin-top: auto;
}

.admin-tool-list {
  display: grid;
  gap: 0.75rem;
}

.admin-tool-list a,
.admin-tool-list div {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.admin-tool-list i {
  color: var(--pdj-gold);
  font-size: 1.15rem;
}

.admin-tool-list strong,
.admin-tool-list small {
  display: block;
}

.admin-tool-list strong {
  margin-bottom: 0.2rem;
}

.admin-tool-list small {
  color: var(--pdj-muted);
}

.extension-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.extension-module-rail {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.extension-module-tab {
  --module-accent: var(--pdj-gold);
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) auto;
  gap: 0.78rem;
  align-items: center;
  min-height: 4.75rem;
  padding: 0.78rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--pdj-ink);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(23, 33, 29, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.extension-module-tab:hover,
.extension-module-tab:focus-visible,
.extension-module-tab.is-active {
  border-color: color-mix(in srgb, var(--module-accent) 52%, transparent);
  background: #fff;
  color: var(--pdj-ink);
  transform: translateX(2px);
  box-shadow: 0 16px 40px rgba(23, 33, 29, 0.075);
}

.extension-module-tab.is-active {
  box-shadow: inset 3px 0 0 var(--module-accent), 0 16px 40px rgba(23, 33, 29, 0.075);
}

.extension-module-icon,
.extension-config-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--module-accent) 15%, #fff);
  color: var(--module-accent);
}

.extension-module-icon {
  width: 2.65rem;
  height: 2.65rem;
  font-size: 1.05rem;
}

.extension-module-tab strong,
.extension-module-tab small {
  display: block;
}

.extension-module-tab strong {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
}

.extension-module-tab small {
  margin-top: 0.22rem;
  color: var(--pdj-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.extension-module-tab em {
  justify-self: end;
  min-width: 3rem;
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  background: rgba(138, 129, 116, 0.12);
  color: var(--pdj-muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.extension-module-tab.is-enabled em {
  background: color-mix(in srgb, var(--module-accent) 16%, #fff);
  color: var(--module-accent);
}

.extension-config-panel {
  --module-accent: var(--pdj-gold);
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.05rem;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(23, 33, 29, 0.065);
}

.extension-config-header {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(23, 33, 29, 0.10);
}

.extension-config-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

.extension-config-header p,
.extension-config-header h2,
.extension-config-header small {
  margin: 0;
}

.extension-config-header p {
  color: var(--module-accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.extension-config-header h2 {
  margin-top: 0.18rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 950;
  line-height: 1.1;
}

.extension-config-header small {
  display: block;
  margin-top: 0.24rem;
  color: var(--pdj-muted);
  font-size: 0.88rem;
}

.extension-toggle-strip,
.extension-test-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--module-accent) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--module-accent) 8%, #fff);
}

.extension-toggle-strip strong,
.extension-toggle-strip small,
.extension-test-panel strong,
.extension-test-panel small {
  display: block;
}

.extension-toggle-strip strong,
.extension-test-panel strong {
  font-weight: 950;
}

.extension-toggle-strip small,
.extension-test-panel small {
  color: var(--pdj-muted);
  font-size: 0.83rem;
}

.extension-switch {
  display: inline-flex;
  gap: 0.62rem;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.extension-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.extension-switch span {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(138, 129, 116, 0.24);
  transition: background 0.18s ease;
}

.extension-switch span::after {
  content: "";
  position: absolute;
  top: 0.22rem;
  left: 0.24rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 9px rgba(23, 33, 29, 0.18);
  transition: transform 0.18s ease;
}

.extension-switch input:checked + span {
  background: var(--module-accent, var(--pdj-gold));
}

.extension-switch input:checked + span::after {
  transform: translateX(1.3rem);
}

.extension-switch strong {
  color: var(--pdj-ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.extension-form-grid {
  display: grid;
  gap: 1rem;
}

.extension-form-section {
  padding: 1rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.52);
}

.extension-form-section h3 {
  margin: 0 0 0.85rem;
  color: var(--pdj-ink);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slide-editor-panel {
  display: grid;
  gap: 1rem;
}

.hero-slide-editor-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-slide-editor-heading h3 {
  margin-bottom: 0.35rem;
}

.hero-slide-editor-heading p {
  max-width: 48rem;
  margin: 0;
  color: var(--pdj-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-slide-editor-empty {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px dashed rgba(23, 33, 29, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-slide-editor-empty i {
  display: grid;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-accent) 14%, #fff);
  color: var(--module-accent);
}

.hero-slide-editor-empty strong,
.hero-slide-editor-empty span {
  display: block;
}

.hero-slide-editor-empty span {
  color: var(--pdj-muted);
  font-size: 0.86rem;
}

.hero-slide-editor-grid {
  display: grid;
  gap: 1.05rem;
}

.hero-slide-editor-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    var(--pdj-white);
  box-shadow: 0 18px 46px rgba(23, 33, 29, 0.06);
}

.hero-slide-editor-card-head {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.82rem;
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(247, 244, 238, 0.68);
}

.hero-slide-editor-media {
  position: relative;
  overflow: hidden;
  width: 9.5rem;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #17211d;
}

.hero-slide-editor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-editor-media span {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.72);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-slide-editor-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.hero-slide-editor-source strong,
.hero-slide-editor-source small {
  display: block;
}

.hero-slide-editor-source strong {
  color: var(--pdj-ink);
  font-size: 1rem;
  font-weight: 950;
}

.hero-slide-editor-source small {
  margin-top: 0.18rem;
  color: var(--pdj-muted);
  font-size: 0.8rem;
}

.hero-slide-editor-card-meta {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  min-width: 8.5rem;
}

.hero-slide-editor-card-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 999px;
  background: #fff;
  color: var(--pdj-muted);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-slide-editor-card-meta span.is-custom {
  border-color: color-mix(in srgb, var(--module-accent) 38%, transparent);
  background: color-mix(in srgb, var(--module-accent) 12%, #fff);
  color: var(--pdj-ink);
}

.hero-slide-editor-card-meta a {
  color: var(--pdj-forest);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.hero-slide-editor-section {
  display: grid;
  gap: 0.82rem;
  padding: 0.9rem;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.34);
}

.hero-slide-editor-section-title {
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.hero-slide-editor-section-title i {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-accent) 13%, #fff);
  color: var(--module-accent);
}

.hero-slide-editor-section-title strong,
.hero-slide-editor-section-title span {
  display: block;
}

.hero-slide-editor-section-title strong {
  color: var(--pdj-ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.hero-slide-editor-section-title span {
  margin-top: 0.08rem;
  color: var(--pdj-muted);
  font-size: 0.8rem;
}

.hero-slide-editor-fields,
.hero-slide-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.85rem;
  align-items: start;
}

.hero-slide-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.hero-slide-field > span {
  color: var(--pdj-ink);
  font-size: 0.8rem;
  font-weight: 950;
}

.hero-slide-field .form-control {
  min-height: 3rem;
}

.hero-slide-field textarea.form-control {
  min-height: 7.1rem;
  resize: vertical;
}

.hero-slide-cta-box {
  display: grid;
  gap: 0.68rem;
  min-width: 0;
  padding: 0.82rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-slide-cta-title {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.hero-slide-cta-title strong,
.hero-slide-cta-title span {
  display: block;
}

.hero-slide-cta-title strong {
  font-size: 0.82rem;
  font-weight: 950;
}

.hero-slide-cta-title span {
  margin-top: 0.08rem;
  color: var(--pdj-muted);
  font-size: 0.74rem;
}

.hero-slide-toggle {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  color: var(--pdj-muted);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.hero-slide-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-slide-toggle > span {
  position: relative;
  display: inline-block;
  width: 2.35rem;
  height: 1.35rem;
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 999px;
  background: #fff;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.hero-slide-toggle > span::after {
  content: "";
  position: absolute;
  top: 0.17rem;
  left: 0.18rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--pdj-muted);
  transition: transform 0.18s ease, background 0.18s ease;
}

.hero-slide-toggle input:checked + span {
  border-color: rgba(154, 60, 51, 0.35);
  background: rgba(154, 60, 51, 0.10);
}

.hero-slide-toggle input:checked + span::after {
  transform: translateX(0.98rem);
  background: #9a3c33;
}

.hero-slide-toggle input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--module-accent) 42%, transparent);
  outline-offset: 2px;
}

.hero-slide-toggle em {
  color: var(--pdj-muted);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.extension-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.extension-field {
  display: block;
  min-width: 0;
}

.extension-field.is-wide {
  grid-column: 1 / -1;
}

.extension-field .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.extension-input-with-suffix,
.extension-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.extension-input-with-suffix span,
.extension-range-row span {
  min-width: 2.8rem;
  color: var(--pdj-muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: right;
}

.extension-image-current {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.extension-image-current img {
  width: 8rem;
  height: 5.4rem;
  border-radius: 7px;
  object-fit: cover;
  background: #ded8ce;
}

.extension-image-current strong,
.extension-image-current small {
  display: block;
}

.extension-image-current small {
  margin-top: 0.15rem;
  color: var(--pdj-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.extension-image-current.is-empty {
  grid-template-columns: minmax(0, 1fr);
}

.extension-remove-image {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: #9a3c33;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.extension-test-panel {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) auto;
}

.extension-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  padding-top: 0.4rem;
}

.extension-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.extension-empty i {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-accent) 12%, #fff);
  color: var(--module-accent);
  font-size: 1.5rem;
}

.extension-empty h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 950;
}

.extension-empty p {
  max-width: 32rem;
  margin: 0;
  color: var(--pdj-muted);
}

.settings-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 1.45rem;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 238, 0.72)),
    radial-gradient(circle at top right, rgba(184, 138, 74, 0.16), transparent 34rem);
  box-shadow: 0 18px 48px rgba(23, 33, 29, 0.06);
}

.settings-eyebrow {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.65rem;
  color: var(--pdj-gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-admin-hero h2 {
  margin: 0 0 0.35rem;
  font-family: var(--pdj-serif);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 800;
  line-height: 0.95;
}

.settings-admin-hero p {
  max-width: 58rem;
  margin: 0;
  color: var(--pdj-muted);
  font-size: 0.98rem;
}

.settings-admin-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
}

.settings-workspace {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.settings-rail {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.58rem;
}

.settings-rail-item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  padding: 0.78rem;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--pdj-ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.settings-rail-item:hover,
.settings-rail-item:focus-visible {
  border-color: color-mix(in srgb, var(--settings-accent, var(--pdj-gold)) 46%, transparent);
  box-shadow: 0 16px 34px rgba(23, 33, 29, 0.08);
  transform: translateY(-1px);
}

.settings-rail-item i,
.settings-panel-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--settings-accent, var(--pdj-gold)) 14%, white);
  color: var(--settings-accent, var(--pdj-gold));
}

.settings-rail-item i {
  width: 2.2rem;
  height: 2.2rem;
}

.settings-rail-item strong,
.settings-rail-item small {
  display: block;
}

.settings-rail-item strong {
  font-size: 0.88rem;
  font-weight: 900;
}

.settings-rail-item small {
  color: var(--pdj-muted);
  font-size: 0.74rem;
}

.settings-panel-stack {
  display: grid;
  gap: 1rem;
}

.settings-panel {
  padding: 1.15rem;
  border: 1px solid rgba(23, 33, 29, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(23, 33, 29, 0.05);
}

.settings-panel-header {
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
}

.settings-panel-icon {
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.15rem;
}

.settings-panel-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--settings-accent, var(--pdj-gold));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-panel h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.settings-panel p {
  max-width: 46rem;
  margin: 0.25rem 0 0;
  color: var(--pdj-muted);
  font-size: 0.88rem;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-field.is-wide {
  grid-column: 1 / -1;
}

.settings-field .form-control,
.settings-field .form-select {
  min-height: 3.05rem;
}

.settings-field textarea.form-control {
  min-height: 8rem;
}

.settings-color-control {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.settings-color-control .form-control-color {
  width: 4rem;
  min-height: 3rem;
  padding: 0.3rem;
}

.settings-color-control span {
  color: var(--pdj-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.settings-switch {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 3.05rem;
  cursor: pointer;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
}

.settings-switch span {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 1.76rem;
  border-radius: 999px;
  background: #d9d3c8;
  transition: background 180ms ease;
}

.settings-switch span::after {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.32rem;
  height: 1.32rem;
  content: "";
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(23, 33, 29, 0.18);
  transition: transform 180ms ease;
}

.settings-switch input:checked + span {
  background: var(--pdj-forest);
}

.settings-switch input:checked + span::after {
  transform: translateX(1.48rem);
}

.settings-switch strong {
  font-size: 0.86rem;
}

.settings-save-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.12);
  backdrop-filter: blur(14px);
}

.settings-save-bar strong,
.settings-save-bar span {
  display: block;
}

.settings-save-bar span {
  color: var(--pdj-muted);
  font-size: 0.82rem;
}

.appearance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.appearance-grid .admin-card {
  margin: 0;
}

.appearance-slider-card,
.appearance-preview-panel {
  grid-column: 1 / -1;
}

.admin-card-heading {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.admin-card-heading > span {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(184, 138, 74, 0.12);
  color: var(--pdj-gold);
  font-size: 1.1rem;
}

.admin-card-heading h2 {
  margin: 0 0 0.18rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.admin-card-heading p {
  margin: 0;
  color: var(--pdj-muted);
  font-size: 0.88rem;
}

.appearance-switch-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.58);
}

.appearance-switch-row strong,
.appearance-switch-row small {
  display: block;
}

.appearance-switch-row small {
  margin-top: 0.1rem;
  color: var(--pdj-muted);
}

.appearance-current-asset {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.65rem;
  color: var(--pdj-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.appearance-current-asset .thumb {
  object-fit: contain;
  background: transparent;
}

.appearance-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 1rem;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.95rem;
  border: 1px solid rgba(23, 33, 29, 0.10);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.58);
}

.appearance-control-panel .form-label,
.appearance-control-panel p {
  margin: 0;
}

.appearance-control-panel p {
  margin-top: 0.18rem;
  color: var(--pdj-muted);
  font-size: 0.83rem;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 3.3rem;
  height: 1.78rem;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d2c7;
  transition: background 180ms ease;
}

.switch span::after {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.34rem;
  height: 1.34rem;
  content: "";
  border-radius: 999px;
  background: #fffefa;
  box-shadow: 0 4px 10px rgba(23, 33, 29, 0.18);
  transition: transform 180ms ease;
}

.switch input:checked + span {
  background: var(--pdj-forest);
}

.switch input:checked + span::after {
  transform: translateX(1.52rem);
}

.appearance-preview-panel {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #e4dfd4;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.72), rgba(23, 33, 29, 0.22)),
    url("../img/placeholders/hero-bretagne.jpg") center/cover;
  color: #fff;
}

.appearance-preview-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: rgba(23, 33, 29, 0.52);
  font-size: 0.78rem;
  font-weight: 850;
}

.appearance-preview-header b {
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: var(--pdj-gold);
}

.appearance-preview-hero {
  display: grid;
  align-content: end;
  width: min(100%, 680px);
  min-height: 220px;
  padding: 2rem;
}

.appearance-preview-hero span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appearance-preview-hero strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.appearance-preview-hero small {
  display: block;
  max-width: 560px;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.sticky-actions {
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  padding: 1rem 0 0.1rem;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0), var(--pdj-bg) 42%);
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.76), rgba(23, 33, 29, 0.30)),
    url("../img/placeholders/hero-bretagne.jpg") center/cover;
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--pdj-radius);
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

@media (max-width: 991.98px) {
  .site-header.is-transparent:not(.is-scrolled) {
    background: rgba(var(--pdj-header-bg-rgb, 23, 33, 29), 0.9);
  }

  .site-header-grid {
    flex-wrap: wrap;
  }

  .navbar-collapse {
    width: 100%;
    padding: 1rem 0 1.2rem;
  }

  .site-nav-list {
    align-items: flex-start !important;
    margin-left: 0;
  }

  .site-header-cta {
    margin-top: 0.65rem;
  }

  .appearance-grid {
    grid-template-columns: 1fr;
  }

  .appearance-control-panel {
    grid-template-columns: 1fr;
  }

  .photo-tile,
  .photo-tile.is-large {
    grid-column: span 6;
  }

  .home-gallery-grid .photo-tile,
  .home-gallery-grid .photo-tile.is-large {
    grid-column: span 6;
  }

  .home-carousel-header {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .home-about-layout {
    grid-template-columns: 1fr;
  }

  .home-about-copy {
    max-width: 760px;
  }

  .home-about-media {
    min-height: clamp(300px, 52vw, 440px);
  }

  .home-event-card {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  }

  .home-event-facts {
    grid-template-columns: 1fr;
  }

  .public-gallery .photo-grid {
    column-count: 2;
  }

  .public-gallery .photo-tile,
  .public-gallery .photo-tile.is-large {
    grid-column: auto;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-media {
    min-height: clamp(420px, 72svh, 720px);
  }

  .event-media img {
    min-height: 0;
  }

  .expositions-hero-layout,
  .event-card-premium {
    grid-template-columns: 1fr;
  }

  .expositions-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-details-grid {
    grid-template-columns: 1fr;
  }

  .event-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-command,
  .dashboard-actions-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-metrics,
  .dashboard-content-grid,
  .dashboard-content-grid-third {
    grid-template-columns: 1fr 1fr;
  }

  .extension-workspace {
    grid-template-columns: 1fr;
  }

  .settings-admin-hero,
  .settings-workspace {
    grid-template-columns: 1fr;
  }

  .settings-admin-actions {
    justify-content: flex-start;
  }

  .settings-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extension-module-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extension-test-panel {
    grid-template-columns: 1fr;
  }

  .hero-slide-editor-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide-editor-fields,
  .hero-slide-cta-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-wide {
    grid-column: 1 / -1;
  }

  .studio-side {
    position: static;
  }

  .rich-editor-toolbar {
    position: static;
  }

  .photo-viewer-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .photo-viewer-media-pane {
    min-height: auto;
    padding: clamp(0.8rem, 3vw, 1.2rem);
  }

  .photo-viewer-frame {
    min-height: min(72svh, 720px);
  }

  .photo-viewer-image {
    max-height: min(72svh, 720px);
  }

  .photo-viewer-panel {
    display: block;
    max-height: none;
    overflow: visible;
    border-left: 0;
  }

  .photo-viewer-panel-inner {
    width: min(100%, 920px);
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
  }

  .photo-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .photo-section-heading > p {
    max-width: 100%;
    margin-bottom: 0;
  }

  .photo-related-card {
    flex-basis: calc((100% - (var(--photo-related-gap) * 2)) / 3);
    min-width: 210px;
  }

  .photo-comments-layout {
    grid-template-columns: 1fr;
  }

  .photo-comments-intro {
    position: static;
  }
}

@media (max-width: 767.98px) {
  :root {
    --pdj-header-height: 72px;
  }

  .site-container {
    width: min(100% - 1.2rem, 1240px);
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding-bottom: 2.5rem;
  }

  .hero-align-right,
  .hero-align-center {
    text-align: left;
  }

  .hero-align-right .hero-copy,
  .hero-align-center .hero-copy {
    margin-inline: 0;
  }

  .hero-align-right .hero-actions,
  .hero-align-right .hero-meta,
  .hero-align-center .hero-actions,
  .hero-align-center .hero-meta {
    justify-content: flex-start;
  }

  .hero-slider-arrow {
    width: 2.55rem;
    height: 2.55rem;
    opacity: 0.76;
    transform: translateY(-50%) scale(1);
  }

  .hero-slider-arrow-prev {
    left: 0.75rem;
  }

  .hero-slider-arrow-next {
    right: 0.75rem;
  }

  .home-events-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-event-card {
    grid-template-columns: 1fr;
  }

  .home-event-media {
    height: clamp(360px, 70svh, 520px);
    min-height: 360px;
    max-height: 520px;
  }

  .home-event-media img {
    min-height: 0;
    max-height: 100%;
  }

  .home-event-body {
    padding: 1.1rem;
  }

  .home-event-title {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .home-event-cta {
    width: 100%;
    justify-content: center;
  }

  .photo-viewer-shell {
    min-height: auto;
  }

  .photo-viewer-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-viewer-frame {
    min-height: 58svh;
  }

  .photo-viewer-image {
    max-height: 58svh;
  }

  .photo-viewer-panel-inner {
    gap: 1rem;
    padding: 1.15rem;
  }

  .photo-viewer-title {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .photo-viewer-stats,
  .photo-tech-grid {
    grid-template-columns: 1fr;
  }

  .photo-viewer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .photo-comment-form {
    padding: 0.9rem;
  }

  .photo-section-heading .section-title,
  .photo-comments-intro .section-title {
    font-size: clamp(1.55rem, 8vw, calc(var(--pdj-section-title-size, 54px) * 0.72));
  }

  .photo-section-heading {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .photo-comments-layout {
    gap: 1.1rem;
  }

  .photo-comments-intro {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(23, 33, 29, 0.10);
  }

  .photo-comment-form-grid {
    grid-template-columns: 1fr;
  }

  .photo-related-card {
    flex-basis: min(82vw, 310px);
    min-height: 220px;
  }

  .photo-comment-form-head {
    display: grid;
    gap: 0.35rem;
  }

  .photo-comment-form-wide .btn {
    width: 100%;
    justify-content: center;
  }

  .photo-admin-reply {
    margin-left: 0.65rem;
  }

  .photo-admin-reply::before {
    display: none;
  }

  .admin-comment-existing-reply,
  .admin-comment-reply-form {
    grid-template-columns: 1fr;
  }

  .webmail-hero,
  .webmail-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .webmail-address-card {
    max-width: none;
  }

  .admin-comment-existing-reply form,
  .admin-comment-existing-reply .btn,
  .admin-comment-reply-form .btn {
    width: 100%;
  }

  .hero-slider-dots {
    bottom: 0.85rem;
    opacity: 0.9;
  }

  .hero-slider-dots button {
    width: 1.35rem;
  }

  .hero-slider-dots button.is-active {
    width: 2.35rem;
  }

  .expositions-hero .page-title {
    font-size: clamp(var(--pdj-page-title-min-size, 2.6rem), var(--pdj-page-title-fluid-size, 6vw), var(--pdj-page-title-max-size, 5.5rem));
  }

  .expositions-summary,
  .expositions-hero-actions,
  .event-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .event-actions .btn,
  .expositions-hero-actions .btn {
    width: 100%;
  }

  .event-media {
    min-height: clamp(360px, 70svh, 620px);
  }

  .event-media img {
    min-height: 0;
  }

  .extension-module-rail,
  .extension-field-grid,
  .hero-slide-editor-fields,
  .hero-slide-cta-grid,
  .settings-rail,
  .settings-field-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide-editor-heading {
    flex-direction: column;
  }

  .hero-slide-editor-heading .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-slide-editor-card {
    grid-template-columns: 1fr;
  }

  .hero-slide-editor-card-head {
    grid-template-columns: 1fr;
  }

  .hero-slide-editor-media {
    width: 100%;
  }

  .hero-slide-editor-media img {
    height: 15rem;
    min-height: 15rem;
  }

  .hero-slide-editor-card-meta {
    justify-items: start;
    min-width: 0;
  }

  .settings-admin-actions,
  .settings-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-admin-actions .btn,
  .settings-save-bar .btn {
    width: 100%;
  }

  .settings-panel-header {
    grid-template-columns: 2.65rem minmax(0, 1fr);
  }

  .extension-config-header {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .extension-config-header .admin-extension-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .extension-toggle-strip,
  .extension-test-panel {
    grid-template-columns: 1fr;
  }

  .extension-image-current {
    grid-template-columns: 1fr;
  }

  .extension-image-current img {
    width: 100%;
    height: 190px;
  }

  .extension-actions {
    justify-content: stretch;
  }

  .extension-actions .btn {
    width: 100%;
  }

  .photo-tile,
  .photo-tile.is-large {
    grid-column: span 12;
    min-height: 320px;
  }

  .home-gallery-grid .photo-tile,
  .home-gallery-grid .photo-tile.is-large {
    grid-column: span 12;
    min-height: 340px;
  }

  .home-photo-carousel {
    grid-template-columns: 1fr;
  }

  .home-carousel-arrow {
    display: none;
  }

  .home-carousel-card {
    flex-basis: min(82vw, 360px);
    min-height: 390px;
  }

  .home-about-section {
    padding-block: clamp(3.5rem, 14vw, 5rem);
  }

  .home-about-layout {
    gap: 2rem;
  }

  .home-about-visual::before {
    right: 0.75rem;
    bottom: -0.75rem;
  }

  .home-about-media {
    min-height: clamp(260px, 70vw, 360px);
  }

  .public-gallery .photo-grid {
    column-count: 1;
  }

  .public-gallery .photo-tile,
  .public-gallery .photo-tile.is-large {
    grid-column: auto;
    min-height: 0;
  }

  .public-gallery .page-hero {
    padding-top: calc(var(--pdj-header-height) + var(--pdj-page-hero-top-space, 1.6rem));
  }

  .public-gallery .page-title {
    font-size: clamp(var(--pdj-page-title-min-size, 2.6rem), var(--pdj-page-title-fluid-size, 6vw), var(--pdj-page-title-max-size, 5.5rem));
  }

  .page-hero.page-hero-cms.with-image {
    min-height: 240px;
    padding-top: calc(var(--pdj-header-height) + var(--pdj-page-hero-top-space, 1.2rem));
  }

  .page-hero.page-hero-cms.with-image .page-title {
    font-size: clamp(var(--pdj-page-title-min-size, 2.6rem), var(--pdj-page-title-fluid-size, 6vw), var(--pdj-page-title-max-size, 5.5rem));
  }

  .photo-overlay {
    gap: 0.85rem;
    padding: 1rem;
  }

  .photo-view-badge {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.72rem;
  }

  .photo-panel {
    align-items: flex-start;
  }

  .photo-actions {
    width: 100%;
  }

  .photo-stats > span {
    min-height: 1.85rem;
    font-size: 0.72rem;
  }

  .photo-comment-link,
  .photo-action-link {
    width: 100%;
    min-height: 2.45rem;
  }

  .dashboard-metrics,
  .dashboard-content-grid,
  .dashboard-content-grid-third {
    grid-template-columns: 1fr;
  }

  .dashboard-metric {
    min-height: 132px;
  }

  .dashboard-chart {
    gap: 0.32rem;
    min-height: 210px;
  }

  .dashboard-chart-item {
    min-height: 200px;
  }

  .dashboard-chart-value {
    display: none;
  }

  .dashboard-chart-label {
    font-size: 0.64rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .dashboard-panel-header {
    flex-direction: column;
    gap: 0.35rem;
  }

  .collection-card {
    grid-template-rows: 210px auto;
  }

  .collection-card img {
    height: 210px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rich-editor-mode {
    width: 100%;
  }

  .rich-editor-mode button {
    flex: 1;
  }

  .rich-editor-toolbar,
  .rich-editor-group,
  .rich-editor-group-selects {
    width: 100%;
  }

  .rich-editor-select {
    flex: 1;
    min-width: 0;
  }

  .rich-editor-workspace {
    min-height: 420px;
    padding: 0.7rem;
  }

  .rich-editor-page,
  .rich-editor-preview {
    min-height: 420px;
  }

  .rich-editor-surface,
  .rich-editor-preview {
    padding: 1.1rem;
  }
}

/* Studio CMS v2 - editor-grade layout */
.admin-body .page-studio-form {
  width: 100%;
}

.admin-body .page-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.admin-body .studio-main-column,
.admin-body .studio-aside-column {
  min-width: 0;
}

.admin-body .studio-panel,
.admin-body .studio-side-card {
  border: 1px solid rgba(23, 33, 29, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(23, 33, 29, 0.07);
}

.admin-body .studio-panel {
  padding: clamp(1.1rem, 2vw, 1.45rem);
}

.admin-body .studio-editor-panel {
  padding: 0;
  overflow: hidden;
  border-color: rgba(31, 53, 45, 0.16);
  background: #fbfaf6;
}

.admin-body .studio-panel-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-body .studio-panel-header h2,
.admin-body .studio-side-card h2 {
  margin: 0;
  color: var(--pdj-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-body .studio-kicker {
  margin: 0 0 0.32rem;
  color: var(--pdj-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-body .studio-status-pill,
.admin-body .studio-editor-meta span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  background: rgba(184, 138, 74, 0.10);
  color: #735226;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.admin-body .studio-editor-panel .studio-panel-header {
  margin: 0;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(23, 33, 29, 0.10);
  background: linear-gradient(180deg, #fffefa 0%, #f7f4ee 100%);
}

.admin-body .studio-editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-body .editor-status.is-ready,
.admin-body .editor-status.is-loaded {
  border-color: rgba(40, 119, 88, 0.22);
  background: rgba(40, 119, 88, 0.09);
  color: #286b50;
}

.admin-body .editor-status.is-dirty {
  border-color: rgba(184, 138, 74, 0.32);
  background: rgba(184, 138, 74, 0.12);
  color: #79562b;
}

.admin-body .editor-status.is-saving {
  border-color: rgba(31, 53, 45, 0.22);
  background: rgba(31, 53, 45, 0.08);
  color: var(--pdj-forest);
}

.admin-body .editor-status.is-error {
  border-color: rgba(173, 48, 48, 0.22);
  background: rgba(173, 48, 48, 0.08);
  color: #963232;
}

.admin-body .tinymce-shell {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-top: 0;
  background: #f1ede5;
}

.admin-body .tinymce-shell::before {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(31, 53, 45, 0.12);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--pdj-muted);
  content: "Chargement du studio...";
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
}

.admin-body .tinymce-shell.is-ready::before,
.admin-body .tinymce-shell.is-fallback::before {
  display: none;
}

.admin-body .studio-native-editor {
  display: block;
  width: 100%;
  min-height: 680px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 0;
  border-radius: 0;
  background: #fffefa;
  color: var(--pdj-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.78;
  outline: 0;
  resize: vertical;
}

.admin-body .studio-native-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(184, 138, 74, 0.32);
}

.admin-body .tinymce-shell .tox.tox-tinymce {
  min-height: 680px;
  border: 0;
  border-radius: 0;
  background: #f1ede5;
}

.admin-body .tinymce-shell .tox .tox-editor-header {
  border-bottom: 1px solid rgba(23, 33, 29, 0.10);
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.06);
}

.admin-body .tinymce-shell .tox .tox-toolbar-overlord,
.admin-body .tinymce-shell .tox .tox-toolbar,
.admin-body .tinymce-shell .tox .tox-toolbar__primary {
  background: transparent;
}

.admin-body .tinymce-shell .tox .tox-edit-area::before {
  border: 0;
}

.admin-body .tinymce-fallback-alert {
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(173, 48, 48, 0.18);
  background: #fff6f1;
  color: #7d3327;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-body .studio-side {
  position: sticky;
  top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.admin-body .studio-side-card {
  padding: 1rem;
}

.admin-body .studio-actions-card .btn {
  min-height: 46px;
}

.admin-body .google-preview {
  border-radius: 10px;
  background: #fffefa;
}

@media (max-width: 1199.98px) {
  .admin-body .page-studio-grid {
    grid-template-columns: 1fr;
  }

  .admin-body .studio-side {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .admin-body .tinymce-shell,
  .admin-body .studio-native-editor,
  .admin-body .tinymce-shell .tox.tox-tinymce {
    min-height: 540px;
  }

  .admin-body .studio-panel-header,
  .admin-body .studio-panel-header-editor {
    flex-direction: column;
  }

  .admin-body .studio-editor-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 1400px) {
  .admin-dashboard-body .admin-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .dashboard-main-grid,
  .dashboard-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-top-photo-card,
  .dashboard-comments-card {
    grid-column: 1 / -1;
  }

  .dashboard-quick-actions div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-quick-actions a:nth-child(3n) {
    border-right: 0;
  }

  .admin-tool-grid,
  .admin-extension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .admin-dashboard-body .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-body .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar-inner {
    min-height: auto;
  }

  .admin-sidebar-footer {
    margin-top: 1rem;
  }

  .admin-module-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard-topbar,
  .admin-dashboard-controls {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
  }

  .admin-dashboard-topbar {
    gap: 0.8rem;
    padding-block: 0.9rem;
  }

  .dashboard-kpi-row,
  .dashboard-main-grid,
  .dashboard-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-visits-card,
  .dashboard-top-photo-card,
  .dashboard-messages-card,
  .dashboard-comments-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .dashboard-kpi-row,
  .dashboard-main-grid,
  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
    margin-inline: 0.85rem;
  }

  .dashboard-quick-actions {
    margin-inline: 0.85rem;
  }

  .dashboard-kpi-card {
    grid-template-columns: 56px 1fr;
    min-height: 104px;
    padding: 0.95rem;
  }

  .dashboard-kpi-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .dashboard-card,
  .dashboard-secondary-grid .dashboard-card {
    min-height: auto;
  }

  .dashboard-quick-actions div {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-actions a {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #e7e2d7;
  }

  .dashboard-quick-actions a:last-child {
    border-bottom: 0;
  }

  .admin-tool-grid,
  .admin-extension-grid {
    grid-template-columns: 1fr;
  }

  .admin-module-hero-stats {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
