:root {
  --bg: #faf5ef;
  --fg: #2a2a2a;
  --muted: #7a7a7a;
  --accent: #b7826b;
  --accent-dark: #8a5c48;
  --border: #e3ddd2;
  --error: #b23a48;
  --radius: 8px;
  --max-width: 880px;
  --invitation-ink: #5b4a3f;
  --invitation-pink: #efbfba;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

body { font-size: 1.05rem; }           /* Cormorant reads cleaner a touch larger */

h1, h2, h3, h4 { font-weight: 500; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: clamp(1rem, 2vw, 1.2rem); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("../img/background.fb0220e51a74.png");
  background-size: min(100%, 1400px) auto;
  background-position: center bottom;       /* anchored to the bottom of the document */
  background-repeat: no-repeat;
  color: var(--fg);
  line-height: 1.55;
}

@media (max-width: 760px) {
  body { background-image: none; }
}

/* Invitation-style hero: cream background with Hungarian pattern behind
   the names, couple's names in script + date in serif. */
.invitation-hero {
  position: relative;
  width: 100%;
  color: var(--invitation-ink);
  text-align: center;
  padding: 4rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* No local bg — body carries the fixed bottom image. */
}

/* Pattern sits behind the whole invitation content, centered. */
.invitation-pattern-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  max-width: 760px;
  height: auto;
  opacity: 0.15;
  filter: drop-shadow(0 3px 6px rgba(91, 74, 63, 0.35))
          drop-shadow(0 1px 2px rgba(91, 74, 63, 0.25));
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.invitation-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
}

.invitation-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.1rem;
  font-family: "Dancing Script", "Great Vibes", cursive, serif;
  font-weight: 500;
  line-height: 1;
  color: var(--invitation-ink);
  position: relative;
  z-index: 1;
}
.invitation-name {
  font-size: clamp(3rem, 9vw, 5.8rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.invitation-heart {
  width: clamp(2.2rem, 5vw, 3.2rem);
  height: clamp(2.2rem, 5vw, 3.2rem);
  flex: 0 0 auto;
}

.invitation-details {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--invitation-ink);
  margin: 0 0 1rem;
}
.invitation-location,
.invitation-venue,
.invitation-date {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
}
.invitation-venue a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 74, 63, 0.4);
}
.invitation-venue a:hover { color: var(--accent-dark); }

.invitation-times {
  margin-top: 0.5rem;
}
.invitation-time-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.1rem 0;
}
.invitation-time {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.invitation-time-row--small .invitation-time {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}
.invitation-time-label {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  opacity: 0.85;
}

.invitation-message {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--invitation-ink);
  margin: 0 auto;
  max-width: 32em;
}

@media (max-width: 760px) {
  .invitation-hero { padding: 2.5rem 1rem 1rem; }
  .invitation-pattern-bg { width: 90%; max-width: 480px; opacity: 0.12; }
  .invitation-names { gap: 0.6rem; margin-bottom: 0.8rem; }
}

/* Full-width banner at the very top of the home page.
   Holds a stack of images that crossfade on a timer. */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 60vh;
  height: 60vh;
  max-height: 720px;
  background: #111;
  display: flex;
  align-items: flex-end;     /* title anchored near the bottom */
  justify-content: center;
  overflow: hidden;
}
.hero-banner-stack {
  position: absolute;
  inset: 0;
}
.hero-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  user-select: none;
}
.hero-banner-slide.active {
  opacity: 1;
}
/* Bottom-weighted gradient: darker band where the title sits, top of
   the photo stays untouched. */
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.3) 22%,
    rgba(0, 0, 0, 0.0) 55%,
    rgba(0, 0, 0, 0.0) 100%);
  pointer-events: none;
}
.hero-banner-title {
  position: relative;
  z-index: 1;
  margin: 0 0 2rem;
  padding: 0 1rem;
  text-align: center;
  font-family: "Great Vibes", "Cormorant Garamond", "Playfair Display", Georgia, cursive, serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

@media (max-width: 760px) {
  .hero-banner {
    min-height: 44vh;
    height: 44vh;
  }
  .hero-banner-title {
    margin-bottom: 1.25rem;
  }
}

/* Offset anchor jumps so they don't land under the sticky header. */
.home-hero,
.info-section { scroll-margin-top: 5rem; }

@media (max-width: 760px) {
  /* On mobile the nav wraps onto two rows, so the sticky header is taller. */
  .home-hero,
  .info-section { scroll-margin-top: 7.5rem; }
}

.home-hero {
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.home-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-carousel {
  position: relative;
  display: block;
  width: 100%;
  margin: 1.5rem auto;                          /* centred horizontally */
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
  max-height: 520px;
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
  width: 100%;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--fg);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.hero-prev { left: 0.75rem; }
.hero-next { right: 0.75rem; }
.hero-nav:hover { background: white; }

.hero-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hero-dot.active {
  background: white;
  transform: scale(1.25);
}

@media (max-width: 760px) {
  .hero-nav { display: none; }
  .hero-carousel { aspect-ratio: 4 / 3; }
}

.venue-map {
  display: block;
  width: 100%;
  margin: 1.5rem auto;                          /* same alignment/spacing as carousel */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.venue-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.venue-map-link {
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.info-section {
  padding: 1.5rem 0;
}
.info-section + .info-section {
  border-top: 1px solid var(--border);
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;                    /* flush with surrounding spacing */
  width: 100%;                  /* full width of content column */
}
.info-section .section-title {
  margin-top: 0;                                 /* first heading hugs the top */
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);       /* section title — largest */
  margin-bottom: 0.9rem;
}
.info-section .content-body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);      /* body ## — smaller than section title */
  margin-top: 1.8rem;
}
.info-section .content-body h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);      /* body ### — smallest */
  margin-top: 1.4rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.site-nav {
  padding: 0.9rem 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 0.95rem;
  line-height: 1;
}

.site-nav > * {
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
}

/* Hamburger — desktop: hidden; mobile: shown. */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  position: relative;
  content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after  { position: absolute; top:  6px; left: 0; }

.brand {
  font-weight: 600;
  color: var(--fg);
  margin-right: 0.25rem;
}

/* Hide the welcome wording on narrow phones — saves space for the nav controls. */
@media (max-width: 480px) {
  .brand { display: none; }
}

.nav-links {
  display: inline-flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  align-items: center;
}

.nav-links a {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
  padding: 0 0.1rem;
  gap: 0.4rem;
}
.nav-links a i.bx {
  font-size: 1.15em;
  opacity: 0.8;
  line-height: 1;
}
.nav-links .rsvp-btn i.bx { opacity: 1; }
.nav-links .rsvp-btn {
  background: var(--accent);
  color: white;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links .rsvp-btn:hover { background: var(--accent-dark); color: white; text-decoration: none; }

.lang-toggle,
.logout-form {
  margin: 0;
}
.lang-toggle { margin-left: auto; }

.lang-toggle button,
.logout-form .link-button {
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.lang-toggle button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Text-size accessibility toggle. Default ("small") is 18px; medium
   and large step up in equal +2px increments via classes on <html>. */
html             { font-size: 112.5%; } /* small  — ~18px */
html.text-medium { font-size: 125%; }   /* medium — ~20px */
html.text-large  { font-size: 137.5%; } /* large  — ~22px */

.text-size-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  height: 2.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1px;
  background: transparent;
}
.text-size-btn {
  background: transparent;
  border: 0;
  padding: 0 0.45rem;
  height: 100%;
  border-radius: 6px;
  cursor: pointer;
  color: var(--fg);
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.text-size-btn--s { font-size: 0.85rem; }
.text-size-btn--m { font-size: 1rem; }
.text-size-btn--l { font-size: 1.2rem; }
.text-size-btn:hover { background: var(--bg); }
.text-size-btn.active {
  background: var(--accent);
  color: #fff;
}
.text-size-btn.active:hover { background: var(--accent-dark); }
.lang-toggle .flag-emoji {
  /* Use the system emoji font so the flag colours render even if the
     inherited serif font doesn't support the regional indicators. */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
               "Twemoji Mozilla", sans-serif;
  font-size: 1.05em;
  line-height: 1;
}
.lang-toggle button:hover { background: var(--bg); }

.link-button {
  background: none;
  border: none;
  padding: 0 0.25rem;
  color: var(--muted);
}
.link-button:hover { color: var(--fg); }

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem 4rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

[x-cloak] { display: none !important; }

.to-top {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 40;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.to-top:hover { background: var(--accent-dark); }

h1 { margin-top: 0; }
.muted { color: var(--muted); }

.messages {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 0 1rem;
  list-style: none;
}
.messages li {
  padding: 0.6rem 0.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.login {
  max-width: 420px;
  margin: 3rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.login label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.login input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #fff;
}
.login button, .rsvp-quiz button[type="submit"], .login form button {
  margin-top: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.login button:hover, .rsvp-quiz button[type="submit"]:hover { background: var(--accent-dark); }
.error { color: var(--error); margin-top: 0.75rem; }

.content-body h2 { margin-top: 1.5rem; }
.content-body p { margin: 0.75rem 0; }
.content-body ul { padding-left: 1.25rem; }

.content-body table {
  margin: 1.25rem auto;
  width: auto;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
}
.content-body th,
.content-body td {
  padding: 0.85rem clamp(0.6rem, 2.5vw, 1.5rem);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.content-body thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.content-body tbody tr:nth-child(even) td {
  background: rgba(183, 130, 107, 0.07);
}
.content-body tbody tr:last-child td {
  border-bottom: 0;
}
.content-body td:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--invitation-ink);
  font-weight: 500;
}

.rsvp-quiz {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.rsvp-quiz fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.rsvp-quiz legend { padding: 0 0.5rem; font-weight: 600; }
.rsvp-quiz fieldset > legend + * { margin-top: 0; }
.rsvp-quiz fieldset .guest-row:first-of-type { padding-top: 0; margin-top: 0; }
.rsvp-quiz label { display: block; margin-bottom: 0.35rem; }
.rsvp-quiz input[type="text"],
.rsvp-quiz input[type="email"],
.rsvp-quiz textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.rsvp-quiz .guest-row {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
.rsvp-quiz .optional-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 400;
}
.rsvp-quiz .plus-one-row.is-disabled {
  opacity: 0.5;
}
.rsvp-quiz .plus-one-row.is-disabled label {
  cursor: not-allowed;
}
.rsvp-quiz .form-section-link {
  margin: 0.55rem 0 0;
  font-size: 0.9em;
}
.rsvp-quiz .form-section-link a {
  color: var(--accent-dark);
  font-weight: 500;
}
.rsvp-quiz .form-section-link a:hover {
  color: var(--accent);
}
.banner-success {
  background: #eef6ee;
  border: 1px solid #9ac29a;
  color: #2f6b2f;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.banner-error {
  background: #fdecee;
  border: 1px solid #e0a4ab;
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

/* Mobile/desktop nav variants — by default (desktop) hide the mobile copies. */
.rsvp-btn--mobile,
.logout-form--mobile { display: none; }

/* Compact nav (mobile-style hamburger). JS adds .is-compact to .site-nav
   when the viewport is narrower than the available room — threshold scales
   with the current root font-size so larger text sizes collapse sooner. */
.site-nav.is-compact {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-nav.is-compact .nav-toggle { display: inline-flex; order: -1; }
.site-nav.is-compact .nav-links {
  display: none;
  order: 10;
  flex: 1 1 100%;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  padding: 0.35rem 0 0.25rem;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
}
.site-nav.is-compact .nav-links.is-open { display: flex; }
.site-nav.is-compact .nav-links a {
  width: 100%;
  height: auto;
  padding: 0.65rem 0.25rem;
  border-radius: 0;
}
.site-nav.is-compact .nav-links .rsvp-btn {
  margin-top: 0.4rem;
  padding: 0.55rem 0.8rem;
  text-align: center;
}
.site-nav.is-compact .lang-toggle { margin-left: auto; }

/* Swap nav variants for compact layout */
.site-nav.is-compact .rsvp-btn--desktop,
.site-nav.is-compact .logout-form--desktop { display: none; }
.site-nav.is-compact .rsvp-btn--mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  height: 2.1rem;
}
.site-nav.is-compact .rsvp-btn--mobile:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.site-nav.is-compact .logout-form--mobile {
  display: block;
  margin-top: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 0.4rem;
}
.site-nav.is-compact .logout-form--mobile .link-button {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.25rem;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
}
.site-nav.is-compact .logout-form--mobile .link-button i.bx {
  font-size: 1.15em;
  opacity: 0.8;
}

/* --- Inline section editor (staff only) --- */
[x-cloak] { display: none !important; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-heading h2 { margin: 0; }

.section-image {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin: 1.5rem auto 0;
}

.section-image + .content-body > :first-child,
.info-section picture:has(> .section-image) + .content-body > :first-child {
  margin-top: -110px;
}

.edit-btn {
  background: transparent;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
  color: inherit;
  opacity: 0.55;
  transition: opacity 120ms ease, background 120ms ease;
}
.edit-btn:hover { opacity: 1; background: rgba(0,0,0,0.04); }

.section-editor {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  border: 1px dashed var(--border, #ccc);
  border-radius: 8px;
  background: rgba(0,0,0,0.02);
}
.section-editor-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #555;
}
.section-editor-title,
.section-editor-body {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.section-editor-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  min-height: 320px;
  resize: vertical;
  white-space: pre;
  overflow-wrap: normal;
  overflow: auto;
}
.section-editor-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.section-editor-actions .btn-primary {
  background: #2c5f4a;
  color: #fff;
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.section-editor-actions .btn-primary:disabled { opacity: 0.6; cursor: default; }
.section-editor-actions .btn-secondary {
  background: transparent;
  border: 1px solid var(--border, #ccc);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.section-editor-error {
  color: #b00020;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
