:root {
  --leaf: #174d2f;
  --leaf-2: #2f6f48;
  --moss: #76935a;
  --bark: #6f4d2e;
  --clay: #c97845;
  --cream: #f7f3e9;
  --paper: #fffdf7;
  --ink: #24332a;
  --muted: #667369;
  --line: rgba(36, 51, 42, 0.16);
  --shadow: 0 18px 48px rgba(23, 77, 47, 0.16);
  --radius: 8px;
  --card-radius: 8px;
  --button-bg: #174d2f;
  --button-text: #fff;
  --glass-opacity: 0.92;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, var(--glass-opacity));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.brand img {
  width: 96px;
  height: 38px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--leaf);
  font-family: "Snell Roundhand", "Brush Script MT", Georgia, serif;
  font-size: 1.38rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: "Avenir Next", Inter, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #34443a;
}

.main-nav a {
  position: relative;
  padding: 8px 10px;
  border-radius: 0;
  font-family: "Avenir Next", "Trebuchet MS", Inter, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
  background: transparent;
  color: var(--leaf);
}
.main-nav a::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 24px;
  top: 3px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 8px;
  width: 10px;
  height: 10px;
  background:
    radial-gradient(circle at 50% 50%, var(--clay) 0 24%, transparent 26%),
    radial-gradient(circle at 50% 0, #f5d7a0 0 28%, transparent 30%),
    radial-gradient(circle at 100% 50%, #f5d7a0 0 28%, transparent 30%),
    radial-gradient(circle at 50% 100%, #f5d7a0 0 28%, transparent 30%),
    radial-gradient(circle at 0 50%, #f5d7a0 0 28%, transparent 30%);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.main-nav a:hover::before,
.main-nav a.active::before { opacity: 1; transform: scaleX(1); }
.main-nav a:hover::after,
.main-nav a.active::after { opacity: 1; }

.cms-link {
  color: var(--clay) !important;
  border: 1px solid rgba(201, 120, 69, 0.38);
}

body.admin-mode .site-header,
body.admin-mode .site-footer,
body.admin-mode main > section:not(.login-screen):not(.admin-shell) {
  display: none;
}

body.article-route main > section:not(.article-view) {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--leaf);
}

.hero {
  position: relative;
  min-height: 66.666vh;
  padding-top: 76px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

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

.hero-media {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: background-image 0.4s ease, transform 0.8s ease;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 35, 23, 0.82), rgba(11, 35, 23, 0.48) 48%, rgba(11, 35, 23, 0.15)),
    linear-gradient(0deg, rgba(11, 35, 23, 0.72), rgba(11, 35, 23, 0.06) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100% - 36px));
  margin: 0 0 104px clamp(18px, 6vw, 92px);
  padding: 42px 0;
}
.hero-content[data-cta-position="center"] .hero-actions { justify-content: center; }
.hero-content[data-cta-position="right"] .hero-actions { justify-content: flex-end; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow { color: #f0b56f; }

h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--leaf); }
h3 { font-size: 1.22rem; color: var(--leaf); }

.hero h1 {
  min-height: calc(4 * 1.04em);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.text-link,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 0 rgba(23, 77, 47, 0.18), 0 16px 34px rgba(23, 77, 47, 0.12);
  transform: translateY(0);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.hero-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(23, 77, 47, 0.2), 0 22px 42px rgba(23, 77, 47, 0.16);
  filter: saturate(1.04);
}
.primary-button:active,
.ghost-button:active,
.text-link:active,
.hero-actions a:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 rgba(23, 77, 47, 0.24), 0 8px 18px rgba(23, 77, 47, 0.12);
}

.primary-button,
.hero-actions a:first-child {
  background: var(--button-bg);
  color: var(--button-text);
}

.hero-actions a:first-child { background: #f0b56f; color: #183521; }

.ghost-button,
.hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.32);
}

.ghost-button { color: var(--leaf); border-color: var(--line); background: white; }
.danger { color: #9b2d19; }
.text-link { color: var(--leaf); border-color: var(--line); background: white; }

.hero-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 clamp(14px, 3vw, 42px);
  pointer-events: none;
}

.hero-arrow {
  width: 38px;
  height: 58px;
  width: 46px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: rgba(18, 45, 30, 0.42);
  font-size: 1.8rem;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  pointer-events: auto;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.hero-dots button.active { width: 24px; background: #f0b56f; }

.section-pad { padding: calc(76px + 76px) clamp(18px, 5vw, 72px) 76px; }
.section-head {
  max-width: 840px;
  margin-bottom: 32px;
}
.section-head.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.intro { background: #f0f5ee; }
.intro-grid,
.service-grid,
.article-row,
.article-grid,
.portfolio-grid {
  display: grid;
  gap: 18px;
}
.intro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro-grid article,
.service-card,
.article-card,
.portfolio-card,
.cms-sidebar,
.editor,
.preview,
.zone-copy {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 77, 47, 0.08);
}

.intro-grid article { padding: 24px; }
.intro-grid article {
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.intro-grid article:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(23, 77, 47, 0.28);
  box-shadow: 0 24px 58px rgba(23, 77, 47, 0.22);
}
.intro-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  background: #eaf2df;
  color: var(--leaf);
  border-radius: 50%;
  font-weight: 900;
}

.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.is-disabled {
  opacity: 0.62;
}
.service-card {
  padding: 22px;
  min-height: 218px;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(23, 77, 47, 0.28);
  box-shadow: 0 24px 58px rgba(23, 77, 47, 0.22);
}
.service-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: #eef4e9;
  color: var(--leaf);
  font-weight: 900;
}

.latest { background: var(--paper); }
.article-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-card,
.service-card,
.portfolio-card,
.admin-card,
.metric-card {
  border-radius: var(--card-radius);
}
.article-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.article-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.article-card p { margin: 0; color: #4c5a51; }
.article-card button {
  margin-top: auto;
  align-self: flex-start;
}

.category-bands { background: #f5f0e7; }
.category-band + .category-band { margin-top: 44px; }
.category-band .article-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.books-section {
  background: #173121;
  color: white;
}
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  background: linear-gradient(180deg, #f7faf5, var(--paper));
}
.about-copy p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.08rem;
  color: #3f4f45;
}
.about-covers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 12px 4px 22px;
}
.about-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}
.about-page {
  background: var(--paper);
}
.about-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(90deg, rgba(255,253,247,0.96), rgba(255,253,247,0.72)),
    url("https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?auto=format&fit=crop&w=1800&q=80") center / cover;
}
.about-page-hero h1 {
  max-width: 880px;
  color: var(--leaf);
  font-size: clamp(3rem, 6vw, 5.6rem);
}
.about-page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #38483f;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}
.about-portrait-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-4deg);
}
.about-portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-portrait-card span {
  color: var(--leaf);
  font-weight: 900;
}
.about-story {
  background: #f7faf5;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.story-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: white;
  box-shadow: 0 12px 30px rgba(23, 77, 47, 0.08);
}
.story-grid p {
  color: #435147;
}
.jardimag-section {
  background: var(--paper);
}
.jardimag-section .section-head > p {
  max-width: 460px;
  color: var(--muted);
  font-weight: 700;
}
.jardimag-shell {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}
.jardimag-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.jardimag-carousel::-webkit-scrollbar {
  display: none;
}
.jardimag-carousel figure {
  scroll-snap-align: start;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: white;
  box-shadow: var(--shadow);
}
.jardimag-carousel img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: var(--radius);
}
.jardimag-carousel figcaption {
  margin-top: 10px;
  color: var(--leaf);
  font-weight: 900;
  text-align: center;
}
.jardimag-arrow {
  width: 48px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--leaf);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(23, 77, 47, 0.12);
  font-size: 2.2rem;
  cursor: pointer;
}
.jardimag-arrow:hover {
  background: var(--leaf);
  color: white;
}
.contact-me-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  background: #f0f5ee;
}
.contact-me-section p:not(.eyebrow) {
  color: #435147;
  font-size: 1.08rem;
}
.contact-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: white;
  box-shadow: var(--shadow);
}
.contact-card label {
  display: grid;
  gap: 7px;
  color: var(--leaf);
  font-weight: 900;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}
.contact-card textarea {
  min-height: 150px;
  resize: vertical;
}
.devis-page {
  background: var(--paper);
}
.devis-hero {
  min-height: 46vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(11,35,23,0.84), rgba(11,35,23,0.42)),
    url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: white;
}
.devis-hero h1 {
  max-width: 980px;
  color: white;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
}
.devis-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255,255,255,0.82);
  font-size: 1.16rem;
}
.devis-form-section {
  background: #f7faf5;
}
.devis-form {
  display: grid;
  gap: 16px;
  max-width: 1040px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: white;
  box-shadow: var(--shadow);
}
.devis-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.devis-form label {
  display: grid;
  gap: 7px;
  color: var(--leaf);
  font-weight: 900;
}
.devis-form input,
.devis-form select,
.devis-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}
.devis-form textarea {
  min-height: 180px;
  resize: vertical;
}
.social-follow-section {
  background: var(--paper);
}
.follow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.follow-grid a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: white;
  box-shadow: 0 14px 34px rgba(23, 77, 47, 0.1);
}
.follow-grid span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  background: var(--leaf);
  font-weight: 900;
}
.follow-grid strong {
  color: var(--leaf);
  font-size: 1.2rem;
}
.follow-grid small {
  color: var(--muted);
  font-weight: 800;
}
.books-section h2 { color: white; }
.book-layout {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.55fr;
  gap: 28px;
  align-items: center;
}
.owner-portrait {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23,49,33,0.06), rgba(23,49,33,0.8)),
    url("https://images.unsplash.com/photo-1591857177580-dc82b9ac4e1e?auto=format&fit=crop&w=900&q=80") center / cover;
  box-shadow: 0 22px 60px rgba(0,0,0,0.24);
}
.owner-portrait.has-photo { background-size: cover; background-position: center; }
.owner-portrait span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}
.book-copy p { color: rgba(255,255,255,0.78); font-size: 1.08rem; }
.book-cover {
  min-height: 360px;
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
  background: #0f3f20;
  box-shadow: 16px 24px 48px rgba(0,0,0,0.32);
  transform: perspective(900px) rotateY(-8deg);
}
.book-cover img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: center;
  background: #f0f5ee;
}
.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.newsletter-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.newsletter-form small { grid-column: 1 / -1; color: var(--leaf); font-weight: 800; }

.portfolio { background: #f7faf5; }
.portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-card { overflow: hidden; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.portfolio-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-card div { padding: 18px; }
.section-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-cloud {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 !important;
  margin-bottom: 12px;
}
.tag-cloud span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5efe2;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
}

.realisation-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 25, 16, 0.72);
}
.realisation-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(900px, 94vh);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  overflow: hidden;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--leaf);
  font-size: 1.8rem;
  cursor: pointer;
}
.modal-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
  background: #13251a;
}
.modal-main img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.modal-caption {
  padding: 12px 16px;
  color: white;
  background: rgba(0, 0, 0, 0.32);
}
.modal-aside {
  padding: 28px;
  overflow: auto;
}
.modal-aside h2,
.modal-aside p {
  overflow: visible;
  display: block;
}
.modal-gallery-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}
.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.modal-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.modal-thumbs button.active { border-color: var(--clay); }
.modal-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.zone {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  background: #edf5ef;
}
.zone-copy { padding: 34px; }
.zone-map {
  position: relative;
  min-height: 390px;
  perspective: 1200px;
  isolation: isolate;
}
.zone-map-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
  will-change: transform;
}
.zone-map:hover .zone-map-inner,
.zone-map:focus-within .zone-map-inner,
.zone-map.is-flipped .zone-map-inner {
  transform: rotateY(180deg);
}
.zone-map-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(23, 77, 47, 0.16);
}
.zone-map-front {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 181, 111, 0.42) 0 9%, transparent 10%),
    radial-gradient(circle at 28% 32%, rgba(118, 147, 90, 0.38) 0 10%, transparent 11%),
    radial-gradient(circle at 72% 72%, rgba(47, 111, 72, 0.3) 0 12%, transparent 13%),
    linear-gradient(135deg, #dcead5, #f8f3e7);
}
.zone-map-back {
  z-index: 3;
  transform: rotateY(180deg);
  background: white;
}
.zone-map.is-flipped .zone-map-front,
.zone-map:hover .zone-map-front,
.zone-map:focus-within .zone-map-front {
  visibility: hidden;
}
.zone-map-back iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.zone-map-front::before,
.zone-map-front::after {
  content: "";
  position: absolute;
  inset: 20% 9%;
  border: 1px dashed rgba(23, 77, 47, 0.28);
  border-radius: 48%;
  transform: rotate(-10deg);
}
.zone-map-front::after { inset: 10% 18%; transform: rotate(18deg); }
.zone-map span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--leaf);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.zone-map i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  padding: 7px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-style: normal;
  font-weight: 800;
  color: var(--leaf);
}

.blog { background: var(--paper); }
.search-ribbon {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--leaf);
  border-radius: var(--radius);
}
.search-ribbon label,
.editor-fields label,
.slides label {
  display: grid;
  gap: 6px;
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
}
.search-ribbon input,
.search-ribbon select,
.editor input,
.editor textarea,
.slides input,
.slides textarea,
.slides select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--ink);
  background: white;
}

.article-page {
  min-height: 100vh;
  padding-bottom: 110px;
  background: var(--paper);
}
.article-public-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.article-view article {
  max-width: 920px;
  margin: 20px auto 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.article-body { padding: clamp(22px, 4vw, 46px); }
.article-body h1 { color: var(--leaf); font-size: clamp(2.2rem, 5vw, 4rem); }
.article-excerpt {
  color: var(--clay) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem) !important;
  line-height: 1.35;
  font-style: italic;
  border-left: 4px solid var(--clay);
  padding-left: 18px;
}
.article-body p,
.article-body li { font-size: 1.04rem; color: #38463d; }
.article-book-promo {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 24px clamp(22px, 4vw, 46px);
  background: #173121;
  color: white;
}
.article-book-promo h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.article-book-promo p { color: rgba(255,255,255,0.78); }
.article-engagement {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.article-comments {
  display: grid;
  gap: 12px;
}
.article-comments article {
  margin: 0;
  padding: 14px;
  box-shadow: none;
}
.article-comments form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.article-comments input,
.article-comments textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.article-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px clamp(22px, 4vw, 46px);
  background: #f0f5ee;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(15, 50, 31, 0.68), rgba(15, 50, 31, 0.68)),
    url("https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 30px;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 150px;
  height: 56px;
  object-fit: contain;
}

.login-card h2 { margin-bottom: 2px; }
.login-card p { margin: 0; color: var(--muted); }
.login-card label,
.settings-grid label,
.inline-form,
.admin-card form,
.admin-card label {
  display: grid;
  gap: 7px;
  color: var(--leaf);
  font-size: 0.84rem;
  font-weight: 800;
}
.login-error {
  min-height: 22px;
  color: #9b2d19 !important;
  font-weight: 800;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #eef4ec;
}

.admin-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  background: #173121;
  color: white;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.admin-brand img {
  width: 76px;
  height: 34px;
  object-fit: contain;
  padding: 3px;
  background: white;
  border-radius: var(--radius);
}

.admin-nav nav {
  display: grid;
  gap: 8px;
}

.admin-nav nav button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.admin-nav nav button:hover,
.admin-nav nav button.active {
  background: #f0b56f;
  color: #173121;
}

.admin-nav .ghost-button {
  margin-top: auto;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.admin-workspace {
  min-width: 0;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(23, 77, 47, 0.12);
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(232,241,228,0.92));
  box-shadow: 0 12px 32px rgba(23, 77, 47, 0.08);
}

.admin-topbar h1 {
  color: var(--leaf);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-grid,
.cms-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.admin-grid {
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
}

.admin-grid.compact {
  grid-template-columns: 360px minmax(0, 1fr);
}
.taxonomy-stack {
  display: grid;
  gap: 18px;
}
.taxonomy-group {
  display: grid;
  gap: 14px;
}
.taxonomy-create {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.taxonomy-group [data-categories-list] + .taxonomy-create {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.admin-card,
.cms-sidebar,
.editor { padding: 16px; }

.admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 77, 47, 0.08);
}

.cms-sidebar h3,
.preview h3,
.admin-card h3 { margin: 0 0 14px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head select {
  max-width: 160px;
}

.article-filterbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.pagination span {
  color: var(--muted);
  font-weight: 900;
}

.cms-item,
.slide-item {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-align: left;
  cursor: pointer;
}
.cms-item.active { border-color: var(--leaf); background: #edf5e9; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7eee4;
  color: var(--leaf);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.status-pill.draft,
.status-pill.pending { background: #fff0da; color: #925315; }
.status-pill.rejected { background: #fee5df; color: #9b2d19; }
.status-pill.approved,
.status-pill.published { background: #e1f2e6; color: #1d623a; }

.editor-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.editor-fields label,
.slides label { color: var(--leaf); }
.editor-fields label:nth-child(4),
.switches { grid-column: 1 / -1; }
.editor textarea,
.slides textarea { min-height: 72px; resize: vertical; }
.switches {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--leaf);
}

.toggle {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  cursor: pointer;
}
.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle span {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d8e1d6;
  transition: background 0.18s ease;
}
.toggle span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
  transition: transform 0.18s ease;
}
.toggle input:checked + span { background: var(--leaf); }
.toggle input:checked + span::after { transform: translateX(22px); }
.wysiwyg {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #eef5ea;
}
.toolbar button,
.toolbar select,
.color-tool {
  min-width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-weight: 900;
}
.toolbar select {
  width: auto;
  min-height: 32px;
  padding: 0 8px;
  color: var(--ink);
}
.toolbar [data-format-block] {
  flex: 0 0 96px;
  width: 96px;
}
.toolbar [data-font-family] {
  flex: 0 0 132px;
  width: 132px;
}
.color-tool {
  display: inline-flex !important;
  align-items: center;
  gap: 6px !important;
  padding: 0 8px;
  color: var(--leaf) !important;
  font-size: 0.76rem !important;
}
.color-tool input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
}
.editable {
  min-height: 230px;
  padding: 14px;
  outline: none;
}
.tag-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.tag-picker summary {
  min-height: 36px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 800;
  color: var(--leaf);
}
.tag-picker > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.check-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px !important;
  width: auto !important;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf5;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}
.check-chip input { width: auto !important; min-height: 0 !important; }
.preview-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(560px, 94vw);
  height: 100vh;
  padding: 20px;
  overflow: auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(23, 77, 47, 0.2);
}
.preview-drawer article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: white;
}
.slide-preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: white;
  box-shadow: var(--shadow);
}
.slide-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.slide-preview-card > div {
  display: grid;
  gap: 12px;
  padding: 22px;
}
.slide-preview-card h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.slide-preview-card.left,
.slide-preview-card.right {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}
.slide-preview-card.right img {
  order: 2;
}
.editor-actions { margin: 16px 0; }
.preview {
  padding: 18px;
  box-shadow: none;
}
.preview article {
  padding: 14px;
  background: #fbfcf8;
  border-radius: var(--radius);
}
.slides form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 128px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(23, 77, 47, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: perspective(900px) rotateX(1deg);
}
.metric-card { cursor: grab; }
.metric-card.dragging {
  opacity: 0.55;
  transform: perspective(900px) rotateX(0deg) scale(0.98);
  outline: 2px dashed rgba(240, 181, 111, 0.9);
}

.metric-card strong {
  display: block;
  color: var(--leaf);
  font-size: clamp(1rem, 1.35vw, 1.65rem);
  line-height: 1.08;
  font-family: Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}
.metric-card small {
  display: block;
  margin-top: 8px;
  color: var(--clay);
  font-weight: 900;
}
.metric-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-top: 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
}
.metric-period select {
  min-height: 30px;
  width: auto;
  padding: 4px 28px 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background-color: #fffaf0;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: #e8f1e4;
  color: var(--leaf);
  font-weight: 900;
}
.metric-featured img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.metric-card span,
.activity-item span {
  color: var(--muted);
  font-weight: 800;
}

.activity-item,
.comment-item,
.tag-row,
.social-row {
  display: grid;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.visit-source-card {
  grid-column: 1 / -1;
}
.visit-source-table {
  overflow-x: auto;
}
.visit-source-row {
  display: grid;
  grid-template-columns: 130px 90px minmax(150px, 1fr) 120px 160px minmax(120px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-width: 820px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}
.visit-source-head {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.articles-admin {
  display: grid;
  gap: 18px;
}
.article-table-head,
.article-row-table {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 150px 120px 160px 92px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}
.article-table-head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.article-row-table {
  border-bottom: 1px solid var(--line);
}
.article-row-table:hover { background: #f8fbf5; }
.article-filterbar {
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(130px, auto));
}
.article-editor-panel:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: auto;
  border-radius: 0;
  padding: 28px;
}
.article-editor-panel {
  box-shadow: var(--shadow);
  min-height: calc(100vh - 180px);
}

.comment-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.comment-item p { margin: 8px 0; }

.tag-row,
.social-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.social-row {
  grid-template-columns: 150px minmax(0, 1fr) 160px auto;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.row-actions .ghost-button {
  min-height: 34px;
  padding: 7px 10px;
}

.slide-sort-list {
  display: grid;
  gap: 10px;
}

.slide-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
}

.slide-item p {
  margin: 6px 0;
  color: var(--muted);
}

.slide-item small {
  display: block;
  color: #526159;
}

.slide-item.dragging {
  opacity: 0.55;
  outline: 2px dashed var(--clay);
}

.drag-handle {
  color: var(--muted);
  cursor: grab;
  font-weight: 900;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.settings-stack {
  display: grid;
  gap: 18px;
  max-width: 980px;
}
.settings-group {
  width: 100%;
}
.settings-subgroup {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.settings-grid label {
  color: var(--leaf);
}

.settings-grid input,
.inline-form input,
.admin-card input,
.admin-card textarea,
.admin-card select,
.login-card input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--ink);
  background: white;
}

.file-link {
  color: var(--clay);
  font-weight: 800;
}

.theme-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-presets button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.theme-presets span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(var(--swatch-main) 0 33%, var(--swatch-bg) 33% 66%, var(--swatch-accent) 66%);
  border: 1px solid var(--line);
}

.theme-preview {
  margin-top: 16px;
  padding: 22px;
  border: 2px solid;
  border-radius: var(--radius);
}

.theme-preview span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-preview strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.inline-form {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.attachments-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}
.attachment-list,
.realisation-photo-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.attachment-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.attachment-item img {
  width: 72px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius);
}
.attachment-item input {
  margin-top: 6px;
}
.file-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 58px;
  border-radius: var(--radius);
  background: #edf4e9;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
}

.public-attachments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.public-attachments a {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.public-attachments img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.public-attachments small {
  color: var(--muted);
}

.site-footer {
  padding: 92px clamp(18px, 5vw, 72px) 28px;
  background: #173121;
  color: white;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.75fr 1fr;
  gap: 54px;
  align-items: start;
}
.site-footer strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.site-footer p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.72); }
.footer-logo {
  width: 142px;
  max-height: 58px;
  object-fit: contain;
  margin-top: 18px;
  padding: 7px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
}
.contact-picto {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  color: #173121;
  background: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
}
.site-footer nav,
.footer-legal {
  display: grid;
  gap: 12px;
}
.site-footer nav::before {
  content: "Navigation";
  color: #f0b56f;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.site-footer .footer-quick-links::before {
  content: "Quick links";
}
.site-footer a:hover { color: #f0b56f; }
.footer-made a { text-decoration: underline; }
.footer-newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  margin-top: 16px;
}
.footer-newsletter-form input {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: white;
  background: rgba(255,255,255,0.1);
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.62); }
.footer-newsletter-form button {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius);
  color: #173121;
  background: var(--clay);
  font-weight: 900;
  cursor: pointer;
}
.footer-newsletter-form small {
  grid-column: 1 / -1;
  color: #f0b56f;
  font-weight: 800;
}
.socials {
  display: flex;
  gap: 10px;
  padding-top: 22px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  font-weight: 900;
}
.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.72);
  font-family: "Avenir Next", Inter, sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
}
.footer-bottom a,
.footer-bottom span {
  font-weight: 400;
}

.legal-page {
  background: #f8f8f4;
  color: #202820;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.legal-document {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 22px 72px;
}
.legal-document h1,
.legal-document h2 {
  color: #202820;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
}
.legal-document h1 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}
.legal-document h2 {
  margin-top: 32px;
  font-size: 1rem;
  text-transform: uppercase;
}
.legal-document p {
  margin: 10px 0;
  color: #303a31;
}
.legal-document a {
  color: #174d2f;
  text-decoration: underline;
}
.legal-kicker,
.legal-meta {
  color: #687268 !important;
}
.legal-back {
  margin-top: 42px !important;
}

@media (max-width: 1120px) {
  .service-grid,
  .article-grid,
  .metric-grid,
  .book-layout,
  .footer-grid,
  .dashboard-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-layout,
  .admin-grid,
  .admin-grid.compact { grid-template-columns: 1fr; }
  .realisation-dialog { grid-template-columns: 1fr; overflow: auto; }
  .modal-main { min-height: 360px; }
  .cms-sidebar { order: 2; }
  .editor { order: 1; }
  .slides { order: 3; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav {
    position: static;
    height: auto;
  }
  .admin-nav nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero { min-height: 680px; }
  .hero-content { margin: 0 18px 118px; }
  .section-head.split,
  .site-footer { align-items: flex-start; flex-direction: column; }
  .intro-grid,
  .article-row,
  .category-band .article-row,
  .portfolio-grid,
  .zone,
  .search-ribbon,
  .newsletter-section,
  .article-newsletter,
  .about-section,
  .about-page-hero,
  .story-grid,
  .contact-me-section,
  .jardimag-shell,
  .devis-form-grid,
  .follow-grid,
  .newsletter-form,
  .article-table-head,
  .article-row-table,
  .article-filterbar,
  .editor-fields,
  .settings-grid,
  .social-row,
  .comment-item,
  .attachment-item,
  .article-book-promo,
  .public-attachments,
  .book-layout,
  .footer-grid,
  .dashboard-columns { grid-template-columns: 1fr; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-nav nav { grid-template-columns: 1fr; }
  .admin-workspace { padding: 18px; }
  .modal-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jardimag-shell { gap: 10px; }
  .jardimag-arrow { width: 100%; height: 46px; }
}

@media (max-width: 560px) {
  .brand img { width: 70px; }
  .brand span { display: none; }
  .service-grid,
  .article-grid,
  .metric-grid,
  .theme-presets { grid-template-columns: 1fr; }
  .hero-panel { left: 0; right: 0; }
  .section-pad { padding-top: 112px; padding-bottom: 56px; }
}
