:root {
  --app-bg: #efe8de;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --line: rgba(34, 28, 24, 0.12);
  --text: #1b1714;
  --muted: #736a62;
  --shadow: 0 20px 50px rgba(28, 18, 10, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 193, 152, 0.28), transparent 18%),
    radial-gradient(circle at bottom right, rgba(32, 77, 139, 0.12), transparent 22%),
    linear-gradient(180deg, #f6f1ea 0%, #ebe4d8 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.file-button {
  cursor: pointer;
}

.app-shell {
  padding: 20px;
  min-height: 100vh;
}

.topbar,
.panel,
.preview-frame {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 32;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(28, 18, 10, 0.08);
}

.topbar h1,
.panel h2,
.preview-top h2,
.section-copy h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}

.topbar h1 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shell-actions,
.preview-drawer-actions,
.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-switch,
.page-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.mode-button {
  padding-inline: 16px;
}

.mode-button.active,
.page-chip.active {
  background: #17151a;
  border-color: #17151a;
  color: #fff;
}

.shell-toggle[aria-expanded="true"],
.shell-toggle-inline[aria-expanded="true"] {
  background: #17151a;
  border-color: #17151a;
  color: #fff;
}

.ghost,
.summary-chip,
.file-button,
.builder-tab,
.category-button,
.snippet-card,
.template-card,
.structure-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.ghost:hover,
.file-button:hover,
.builder-tab:hover,
.category-button:hover,
.snippet-card:hover,
.template-card:hover,
.structure-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
}

.ghost,
.summary-chip,
.file-button {
  border-radius: 999px;
  padding: 10px 14px;
}

.summary-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-chip span {
  color: var(--muted);
}

.file-button input {
  display: none;
}

.danger {
  color: #aa342b;
}

.workspace {
  position: relative;
  min-height: calc(100vh - var(--shell-offset, 132px) - 20px);
}

.panel {
  min-height: 80vh;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.panel-backdrop {
  position: fixed;
  inset: var(--shell-offset, 132px) 20px 20px;
  background: rgba(17, 14, 19, 0.08);
  border-radius: 30px;
  z-index: 18;
  pointer-events: none;
}

.panel-header,
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 6;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    var(--panel-bg);
  backdrop-filter: blur(18px);
}

.preview-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-rename-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.page-rename-form input {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 10px 14px;
}

.page-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 800;
}

.page-chip small {
  opacity: 0.72;
}

.ghost:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.preview-panel {
  min-width: 0;
  transition: padding 220ms ease;
}

.preview-top,
.page-strip,
.preview-frame {
  transition: margin 220ms ease;
}

.app-shell.library-open .preview-panel {
  padding-left: calc(min(380px, calc(100vw - 40px)) + 18px);
}

.app-shell.inspector-open .preview-panel {
  padding-right: calc(min(360px, calc(100vw - 40px)) + 18px);
}

.app-shell.library-open .preview-top,
.app-shell.library-open .page-strip,
.app-shell.library-open .preview-frame {
  margin-left: calc(min(380px, calc(100vw - 40px)) + 18px);
}

.app-shell.inspector-open .preview-top,
.app-shell.inspector-open .page-strip,
.app-shell.inspector-open .preview-frame {
  margin-right: calc(min(360px, calc(100vw - 40px)) + 18px);
}

.status-text,
.section-copy p,
.empty-state,
.helper,
.structure-copy small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-text[data-tone="saving"] {
  color: #9a6b16;
}

.status-text[data-tone="saved"] {
  color: #187a55;
}

.status-text[data-tone="error"] {
  color: #b7342b;
}

.editable-title {
  font-family: var(--font-heading);
}

.editable-body,
.editable-contact-line,
.editable-address,
.editable-coords,
.editable-quote,
.editable-author,
.editable-item {
  font-family: var(--font-body);
}

.preview-frame {
  position: relative;
  min-height: calc(100vh - var(--shell-offset, 132px) - 54px);
  padding: 18px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.26));
  box-shadow: var(--shadow);
}

.library-panel,
.inspector-panel {
  position: fixed;
  top: var(--shell-offset, 132px);
  bottom: 20px;
  z-index: 24;
  overflow: auto;
  overscroll-behavior: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}

.library-panel {
  left: 20px;
  width: min(380px, calc(100vw - 40px));
  transform: translateX(calc(-100% - 28px));
  opacity: 0;
}

.inspector-panel {
  right: 20px;
  width: min(360px, calc(100vw - 40px));
  transform: translateX(calc(100% + 28px));
  opacity: 0;
}

.app-shell.library-open .library-panel,
.app-shell.inspector-open .inspector-panel {
  transform: translateX(0);
  opacity: 1;
}

.app-shell.view-mode .preview-section.selected {
  outline: 0;
}

.app-shell.view-mode .block-toolbar,
.app-shell.view-mode .insert-slot {
  display: none;
}

.app-shell.view-mode .editable-text {
  cursor: inherit;
}

.app-shell.view-mode .editable-text:hover,
.app-shell.view-mode .editable-text:focus {
  background: transparent;
  outline: 0;
}

.builder-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.builder-tab {
  padding: 12px 10px;
  border-radius: 14px;
  font-weight: 800;
}

.builder-tab.active {
  background: #17151a;
  border-color: #17151a;
  color: #fff;
}

.side-panel {
  display: grid;
  gap: 14px;
}

.media-library-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.media-library-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.media-library-card strong {
  display: -webkit-box;
  min-width: 0;
  min-height: 2.8em;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-library-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background-color: rgba(0, 0, 0, 0.04);
}

.media-library-card-actions {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.media-library-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.48);
}

.hidden {
  display: none;
}

.library-search input,
.field input,
.field textarea,
.field select,
.color-input-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.library-search input {
  padding: 12px 14px;
}

.library-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 62vh;
}

.category-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.library-layout .category-list {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.category-button {
  text-align: left;
  padding: 14px 12px;
  border-radius: 14px;
}

.category-button.active {
  background: #6f4d66;
  border-color: #6f4d66;
  color: #fff;
}

.snippet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

.library-layout .snippet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snippet-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  text-align: left;
  min-height: 164px;
}

.snippet-card strong {
  font-size: 1rem;
}

.snippet-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.snippet-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
  min-height: 82px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #505868, #2d3140);
  overflow: hidden;
}

.snippet-preview.layout-centered,
.snippet-preview.layout-panel,
.snippet-preview.layout-immersive,
.snippet-preview.layout-band,
.snippet-preview.layout-overlay,
.snippet-preview-quote.layout-centered,
.snippet-preview-map.layout-card {
  grid-template-columns: 1fr;
}

.snippet-preview.layout-reversed .snippet-mini-art {
  order: 2;
}

.snippet-preview.layout-spotlight .snippet-mini-art {
  min-height: 64px;
}

.snippet-preview.layout-featured .snippet-mini-grid span:first-child,
.snippet-preview-team.layout-spotlight .snippet-mini-grid span:first-child {
  grid-column: span 2;
}

.snippet-preview.layout-mosaic .snippet-mini-grid {
  grid-template-columns: 0.8fr 1.1fr 1.3fr 1fr 0.8fr;
  align-items: end;
}

.snippet-preview.layout-mosaic-centered .snippet-mini-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
}

.snippet-preview.layout-mosaic .snippet-mini-grid span:nth-child(1),
.snippet-preview.layout-mosaic .snippet-mini-grid span:nth-child(5) {
  min-height: 54px;
}

.snippet-preview.layout-mosaic-centered .snippet-mini-grid span {
  width: 82%;
}

.snippet-preview.layout-mosaic .snippet-mini-grid span:nth-child(2) {
  min-height: 26px;
}

.snippet-preview.layout-mosaic .snippet-mini-grid span:nth-child(3),
.snippet-preview.layout-mosaic .snippet-mini-grid span:nth-child(4) {
  min-height: 42px;
}

.snippet-preview.layout-mosaic-centered .snippet-mini-grid span:nth-child(1),
.snippet-preview.layout-mosaic-centered .snippet-mini-grid span:nth-child(5) {
  min-height: 54px;
  width: 56%;
}

.snippet-preview.layout-mosaic-centered .snippet-mini-grid span:nth-child(2) {
  min-height: 26px;
  width: 92%;
}

.snippet-preview.layout-mosaic-centered .snippet-mini-grid span:nth-child(3) {
  min-height: 58px;
  width: 100%;
}

.snippet-preview.layout-mosaic-centered .snippet-mini-grid span:nth-child(4) {
  min-height: 42px;
  width: 86%;
}

.snippet-preview.layout-list .snippet-mini-grid {
  grid-template-columns: 1fr;
}

.snippet-preview.layout-menu .snippet-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snippet-preview.layout-menu .snippet-mini-grid span {
  min-height: 30px;
}

.snippet-mini-copy {
  display: grid;
  align-content: center;
  gap: 7px;
}

.snippet-mini-copy.full {
  grid-column: 1 / -1;
}

.snippet-line {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.snippet-line.xl {
  width: 92%;
}

.snippet-line.lg {
  width: 78%;
}

.snippet-line.md {
  width: 62%;
}

.snippet-line.sm {
  width: 48%;
}

.snippet-line.xs {
  width: 34%;
}

.snippet-mini-art,
.snippet-mini-cta,
.snippet-mini-map,
.snippet-mini-grid span,
.snippet-mini-pills span,
.snippet-mini-panel-card {
  border-radius: 12px;
}

.snippet-preview.layout-panel {
  position: relative;
  align-items: end;
  min-height: 104px;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.18), rgba(12, 12, 14, 0.42)),
    linear-gradient(180deg, rgba(126, 205, 255, 0.88), rgba(55, 90, 146, 0.82));
}

.snippet-mini-panel-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  width: min(140px, 78%);
  min-height: 54px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(7, 10, 18, 0.22);
}

.snippet-mini-art {
  min-height: 58px;
  background: linear-gradient(180deg, rgba(130, 210, 255, 0.95), rgba(255, 255, 255, 0.16));
}

.snippet-mini-art.double {
  position: relative;
}

.snippet-mini-art.double::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(111, 224, 198, 0.42));
}

.snippet-preview.layout-carousel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 104px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.54)),
    linear-gradient(135deg, rgba(83, 157, 230, 0.9), rgba(31, 18, 18, 0.94));
}

.snippet-preview.layout-carousel .snippet-mini-copy {
  width: 62%;
  justify-items: center;
}

.snippet-preview.layout-carousel .snippet-line {
  margin-inline: auto;
}

.snippet-carousel-arrow {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 22px;
  border-top: 2px solid rgba(255, 255, 255, 0.84);
  border-left: 2px solid rgba(255, 255, 255, 0.84);
}

.snippet-carousel-arrow.left {
  left: 14px;
  transform: translateY(-50%) rotate(-45deg);
}

.snippet-carousel-arrow.right {
  right: 14px;
  transform: translateY(-50%) rotate(135deg);
}

.snippet-carousel-dots {
  position: absolute;
  bottom: 12px;
  display: flex;
  gap: 5px;
}

.snippet-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.snippet-mini-art.frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.54);
}

.snippet-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

.snippet-mini-grid span {
  min-height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(135, 214, 255, 0.2));
}

.snippet-mini-grid.team span {
  border-radius: 999px;
}

.snippet-mini-cta {
  align-self: center;
  min-height: 32px;
  background: rgba(111, 224, 198, 0.88);
}

.snippet-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.snippet-mini-pills span {
  width: 52px;
  height: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.snippet-mini-quote-mark {
  font-size: 2.3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
}

.snippet-mini-map {
  position: relative;
  min-height: 64px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(135, 214, 255, 0.45), rgba(255, 255, 255, 0.08));
  background-size: 12px 12px, 12px 12px, auto;
}

.snippet-mini-map i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 50% 6px;
  background: #63e0c6;
}

.snippet-visual {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 60px;
  border-radius: 14px;
  background: linear-gradient(180deg, #4f5969, #313543);
  overflow: hidden;
}

.snippet-visual span {
  display: block;
  margin-left: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.snippet-visual span:nth-child(1) {
  width: 58%;
}

.snippet-visual span:nth-child(2) {
  width: 42%;
}

.snippet-visual span:nth-child(3) {
  width: 36%;
}

.snippet-columns::after,
.snippet-image::after,
.snippet-social::after,
.snippet-map::after,
.snippet-contact::after,
.snippet-people::after,
.snippet-catalog::after,
.snippet-quote::after {
  content: "";
  position: absolute;
}

.snippet-columns::after {
  inset: 10px 12px 10px auto;
  width: 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(136, 216, 255, 0.8), rgba(255, 255, 255, 0.18));
}

.snippet-image::after {
  right: 16px;
  top: 14px;
  width: 44px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #93cfff, #4aa9e9);
}

.snippet-social::after {
  right: 14px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid rgba(99, 224, 198, 0.8);
}

.snippet-map::after {
  right: 16px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 10px;
  background: #4fd4ff;
}

.snippet-contact::after {
  right: 12px;
  top: 14px;
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background: rgba(99, 224, 198, 0.9);
}

.snippet-people::after {
  right: 14px;
  top: 12px;
  width: 48px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 10px 9px, #63e0c6 0 5px, transparent 6px),
    radial-gradient(circle at 24px 9px, rgba(255, 255, 255, 0.7) 0 5px, transparent 6px),
    radial-gradient(circle at 38px 9px, rgba(255, 255, 255, 0.7) 0 5px, transparent 6px);
}

.snippet-catalog::after {
  right: 14px;
  top: 12px;
  width: 50px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 16px 16px;
}

.snippet-quote::after {
  right: 14px;
  top: 12px;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.85);
  content: "\"";
  font-size: 3rem;
  line-height: 1;
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.template-card {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
}

.template-card.active {
  border-color: rgba(24, 176, 122, 0.42);
  box-shadow: inset 0 0 0 1px rgba(24, 176, 122, 0.14);
}

.template-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.template-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.theme-swatch {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--swatch-primary, #d0d0d0), var(--swatch-surface, #f5f5f5) 62%, var(--swatch-accent, #8d8d8d));
  overflow: hidden;
}

.palette-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.palette-card {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.palette-card.active {
  border-color: rgba(24, 176, 122, 0.42);
  box-shadow: inset 0 0 0 1px rgba(24, 176, 122, 0.14);
}

.palette-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.palette-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.palette-strip i {
  display: block;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.font-pair-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.font-pair-card {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.font-pair-card strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.font-pair-card span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.font-pair-card.active {
  border-color: rgba(24, 176, 122, 0.42);
  box-shadow: inset 0 0 0 1px rgba(24, 176, 122, 0.14);
}

.control-form {
  display: grid;
  gap: 12px;
}

.design-control-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(34, 28, 24, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 0% 0%, rgba(24, 176, 122, 0.08), transparent 34%);
  box-shadow: 0 12px 28px rgba(30, 22, 16, 0.06);
}

.design-control-card-head {
  display: grid;
  gap: 3px;
}

.design-control-card-head strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.design-control-card-head span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.design-control-card-body {
  display: grid;
  gap: 10px;
}

.design-control-card .field,
.design-control-card .choice-field {
  padding-top: 2px;
}

.design-control-card .field input,
.design-control-card .field select,
.design-control-card .color-input-row input {
  padding: 10px 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.88rem;
  font-weight: 800;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-clear-action {
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 0.86rem;
}

.field textarea {
  min-height: 102px;
  padding: 12px 14px;
  resize: vertical;
}

.field input,
.field select,
.color-input-row input {
  padding: 12px 14px;
}

.color-input-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}

.color-input-row input[type="color"] {
  padding: 6px;
}

.inspector-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.inspector-section {
  display: grid;
  gap: 14px;
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.inspector-tab {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 11px 10px;
  font-weight: 800;
}

.inspector-tab.active {
  background: #17151a;
  border-color: #17151a;
  color: #fff;
}

.inspector-note,
.inspector-surface,
.action-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.inspector-note strong,
.action-card h4 {
  margin: 0;
  font-size: 0.94rem;
}

.inspector-note span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.section-copy-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ghost.subtle {
  background: rgba(255, 255, 255, 0.62);
}

.structure-panel {
  display: grid;
  gap: 12px;
}

.form-section-title {
  padding-top: 4px;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.items-editor,
.advanced-options {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.items-editor-head {
  display: grid;
  gap: 4px;
}

.items-editor-head strong {
  font-size: 0.92rem;
}

.items-editor-head span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.item-rows {
  display: grid;
  gap: 10px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.stacked-item-row {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.nav-item-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.nav-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.nav-link-controls {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.item-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 12px 14px;
}

.social-item-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.mini-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #aa342b;
  padding: 10px 12px;
  font-weight: 700;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.mini-action:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.advanced-options summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.advanced-options-body {
  display: grid;
  gap: 12px;
}

.choice-field {
  display: grid;
  gap: 7px;
}

.choice-field span {
  font-size: 0.84rem;
  font-weight: 800;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 700;
}

.choice-chip.active {
  border-color: rgba(24, 176, 122, 0.46);
  box-shadow: inset 0 0 0 1px rgba(24, 176, 122, 0.18);
  background: rgba(225, 255, 243, 0.9);
}

.block-reset-button {
  justify-self: stretch;
  margin-top: 2px;
}

.image-palette-tool {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--text));
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
    radial-gradient(circle at 12% 0%, rgba(24, 176, 122, 0.16), transparent 34%);
}

.image-palette-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-palette-preview {
  min-height: 118px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.image-palette-swatches {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.image-palette-swatches span {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 16px rgba(20, 16, 12, 0.08);
}

.image-palette-apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.image-palette-option {
  min-height: auto;
  padding: 12px;
}

.image-upload-field {
  display: grid;
  gap: 8px;
}

.image-upload-field > span {
  font-size: 0.88rem;
  font-weight: 800;
}

.image-upload-panel {
  display: grid;
  gap: 10px;
}

.image-upload-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: center;
  background-size: cover;
  background-position: center;
}

.image-upload-preview.has-image {
  border-style: solid;
  color: transparent;
}

.image-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-picker-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.media-picker-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.04);
}

.media-picker-thumb.active {
  border-color: rgba(24, 176, 122, 0.46);
  box-shadow: inset 0 0 0 1px rgba(24, 176, 122, 0.18);
}

.visual-item-rows {
  display: grid;
  gap: 12px;
}

.visual-item-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-card-head strong {
  font-size: 0.88rem;
}

.visual-item-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 12px 14px;
}

.preview-canvas {
  position: relative;
  overflow: hidden;
  min-height: calc(80vh - 36px);
  border-radius: 28px;
  background: var(--brand-surface, #f8f3ec);
  color: var(--brand-ink, #181512);
  font-family: var(--font-body);
}

.preview-frame.page-transition-shell {
  animation: page-frame-soft-shift 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-transition-clone {
  position: absolute;
  inset: 18px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 24px 46px rgba(22, 16, 10, 0.08);
}

.preview-transition-clone.is-exiting {
  opacity: 0;
  transform: translateY(-12px) scale(1.008);
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-canvas.page-transition-incoming {
  opacity: 0;
  transform: translateY(22px) scale(0.992);
}

.preview-canvas.page-transition-incoming.is-live {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 340ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes page-frame-soft-shift {
  0% {
    transform: translateY(6px);
    box-shadow: 0 26px 56px rgba(28, 18, 10, 0.09);
  }
  100% {
    transform: translateY(0);
    box-shadow: var(--shadow);
  }
}

.preview-canvas::before,
.preview-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-mesh .preview-canvas::before {
  background:
    radial-gradient(circle at 8% 14%, color-mix(in srgb, var(--brand-primary) 18%, white), transparent 24%),
    radial-gradient(circle at 84% 10%, color-mix(in srgb, var(--brand-accent) 20%, white), transparent 22%);
}

.bg-stage .preview-canvas::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand-accent) 24%, white), transparent 28%);
}

.bg-stage .preview-canvas::after {
  inset: auto 0 0 0;
  height: 40%;
  background:
    radial-gradient(circle at 20% 40%, rgba(0, 0, 0, 0.42), transparent 28%),
    radial-gradient(circle at 54% 54%, rgba(0, 0, 0, 0.48), transparent 32%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.bg-grid .preview-canvas::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-glow .preview-canvas::before {
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--brand-primary) 24%, white), transparent 22%),
    radial-gradient(circle at 76% 16%, color-mix(in srgb, var(--brand-accent) 24%, white), transparent 24%),
    radial-gradient(circle at 52% 78%, rgba(255, 255, 255, 0.16), transparent 26%);
}

.bg-paper .preview-canvas::before {
  background:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

.site-chrome,
.preview-section {
  position: relative;
  z-index: 1;
}

.site-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px 999px 999px 5px;
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-accent) 40%, white));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.site-brand span {
  display: block;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--brand-ink) 62%, white);
  font-family: var(--font-body);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a,
.site-primary,
.site-search {
  color: inherit;
  text-decoration: none;
}

.site-nav a {
  font-weight: 800;
  font-family: var(--font-body);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-search {
  min-width: 170px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: color-mix(in srgb, var(--brand-ink) 60%, white);
}

.preview-section {
  padding: 52px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.preview-section.selected {
  outline: 2px solid color-mix(in srgb, var(--brand-accent) 72%, white);
  outline-offset: -2px;
}

.preview-section[data-variant="accent"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 82%, black 18%), color-mix(in srgb, var(--brand-primary) 48%, white));
  color: #fff;
}

.preview-section[data-variant="muted"] {
  background: rgba(255, 255, 255, 0.06);
}

.preview-section[data-block-spacing="compact"] {
  padding-block: 30px;
}

.preview-section[data-block-spacing="normal"] {
  padding-block: 56px;
}

.preview-section[data-block-spacing="spacious"] {
  padding-block: clamp(84px, 10vw, 150px);
}

.preview-section[data-block-width] > :not(.block-toolbar) {
  width: 100%;
}

.preview-section[data-block-width="narrow"] > :not(.block-toolbar) {
  max-width: 760px;
}

.preview-section[data-block-width="medium"] > :not(.block-toolbar) {
  max-width: 1040px;
}

.preview-section[data-block-width="wide"] > :not(.block-toolbar) {
  max-width: 1320px;
}

.preview-section[data-block-width="full"] > :not(.block-toolbar) {
  max-width: none;
}

.preview-section[data-block-align="left"] {
  text-align: left;
}

.preview-section[data-block-align="center"] {
  text-align: center;
}

.preview-section[data-block-align="right"] {
  text-align: right;
}

.preview-section[data-block-align="left"] > :not(.block-toolbar) {
  margin-left: 0;
  margin-right: auto;
}

.preview-section[data-block-align="center"] > :not(.block-toolbar) {
  margin-left: auto;
  margin-right: auto;
}

.preview-section[data-block-align="right"] > :not(.block-toolbar) {
  margin-left: auto;
  margin-right: 0;
}

.preview-section[data-block-align="center"] .button-row {
  justify-content: center;
}

.preview-section[data-block-align="right"] .button-row {
  justify-content: flex-end;
}

.preview-section[data-block-vertical] {
  display: grid;
}

.preview-section[data-block-vertical="top"] {
  align-content: start;
}

.preview-section[data-block-vertical="center"] {
  align-content: center;
}

.preview-section[data-block-vertical="bottom"] {
  align-content: end;
}

.preview-editorialStory .editorial-story-image,
.preview-editorialStory .editorial-story-row.is-featured .editorial-story-image {
  height: var(--editorial-image-height, clamp(270px, 26vw, 420px));
}

@media (max-width: 760px) {
  .preview-editorialStory .editorial-story-image,
  .preview-editorialStory .editorial-story-row.is-featured .editorial-story-image {
    height: var(--editorial-image-height, 280px);
  }
}

.preview-editorialStory {
  padding: clamp(26px, 5vw, 82px) clamp(20px, 5vw, 76px);
  background: var(--brand-surface, #32121f);
}

.editorial-story {
  display: grid;
  gap: clamp(28px, 5vw, 76px);
}

.editorial-story-intro {
  max-width: 680px;
}

.editable-story-title {
  margin: 12px 0 14px;
  max-width: 760px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.editable-story-body {
  max-width: 580px;
  margin: 0;
  color: color-mix(in srgb, var(--brand-ink) 76%, transparent);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.editorial-story-items {
  display: grid;
  gap: clamp(22px, 5vw, 74px);
}

.editorial-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  padding-top: clamp(22px, 4vw, 58px);
  border-top: 1px solid color-mix(in srgb, var(--brand-ink) 18%, transparent);
}

.editorial-story-row.is-reversed .editorial-story-image {
  order: 2;
}

.editorial-story-row.is-reversed .editorial-story-copy {
  order: 1;
}

.editorial-story-row.is-featured {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.editorial-story-image {
  min-height: clamp(220px, 32vw, 520px);
  border-radius: var(--image-corner-radius, 6px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand-accent) 40%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 28%, white), color-mix(in srgb, var(--brand-primary) 18%, black));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.editorial-story-row.is-featured .editorial-story-image {
  min-height: clamp(360px, 56vw, 760px);
}

.editorial-story-copy {
  max-width: 520px;
}

.story-index {
  display: inline-block;
  margin-bottom: 16px;
  color: color-mix(in srgb, var(--brand-accent) 84%, white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.editable-story-item-title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.editable-story-item-body {
  margin: 0;
  color: color-mix(in srgb, var(--brand-ink) 78%, transparent);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.snippet-preview-editorial-story {
  display: grid;
  grid-template-columns: 0.72fr 1fr 0.72fr;
  align-items: center;
  gap: 7px;
  min-height: 78px;
  padding: 9px;
  background: #32121f;
}

.snippet-story-poster {
  height: 60px;
  background: linear-gradient(160deg, #f1d2a3, #c63b45);
}

.snippet-story-poster.small {
  height: 42px;
  align-self: end;
}

.snippet-story-lines {
  display: grid;
  gap: 7px;
}

.snippet-story-lines span {
  height: 7px;
  border-radius: 5px;
  background: rgba(255, 247, 237, 0.72);
}

@media (max-width: 760px) {
  .editorial-story-row,
  .editorial-story-row.is-featured {
    grid-template-columns: 1fr;
  }

  .editorial-story-row.is-reversed .editorial-story-image,
  .editorial-story-row.is-reversed .editorial-story-copy {
    order: initial;
  }

  .editorial-story-image,
  .editorial-story-row.is-featured .editorial-story-image {
    min-height: 300px;
  }
}

/* Editorial story: compact composition for the visual block. */
.preview-editorialStory {
  padding: clamp(24px, 4vw, 58px) clamp(18px, 3.5vw, 54px);
}

.preview-editorialStory > .editorial-story {
  width: min(100%, 1560px);
  margin-inline: auto;
  gap: clamp(22px, 3vw, 44px);
}

.preview-editorialStory .editorial-story-intro {
  max-width: 560px;
}

.preview-editorialStory .editable-story-title {
  font-size: clamp(1.7rem, 3vw, 3.2rem);
}

.preview-editorialStory .editable-story-body,
.preview-editorialStory .editable-story-item-body {
  font-size: clamp(0.88rem, 1.05vw, 1.04rem);
  line-height: 1.5;
}

.preview-editorialStory .editorial-story-items {
  gap: clamp(16px, 2.8vw, 38px);
}

.preview-editorialStory .editorial-story-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.8vw, 38px);
  padding-top: clamp(16px, 2.6vw, 34px);
}

.preview-editorialStory .editorial-story-image {
  height: clamp(270px, 26vw, 420px);
  min-height: 0;
}

.preview-editorialStory .editorial-story-row.is-featured {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.preview-editorialStory .editorial-story-row.is-featured .editorial-story-image {
  height: clamp(270px, 26vw, 420px);
  min-height: 0;
}

.preview-editorialStory .editable-story-item-title {
  font-size: clamp(1.35rem, 2.15vw, 2.35rem);
  line-height: 1.04;
}

@media (max-width: 760px) {
  .preview-editorialStory > .editorial-story {
    width: 100%;
  }

  .preview-editorialStory .editorial-story-row.is-featured {
    grid-template-columns: 1fr;
  }

  .preview-editorialStory .editorial-story-image,
  .preview-editorialStory .editorial-story-row.is-featured .editorial-story-image {
    height: 280px;
    min-height: 0;
  }
}

.preview-media.layout-editorial-split .media-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
}

.preview-media.layout-editorial-split .media-art {
  min-height: clamp(300px, 36vw, 560px);
  border-radius: var(--image-corner-radius, 6px);
}

.preview-media.layout-editorial-split .media-copy {
  max-width: 560px;
}

.text-format-toolbar {
  position: fixed;
  z-index: 1000;
  display: flex;
  padding: 4px;
  border: 1px solid rgba(27, 23, 20, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 28px rgba(27, 23, 20, 0.16);
}

.text-format-toolbar.hidden {
  display: none;
}

.text-format-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.text-format-button:hover,
.text-format-button:focus-visible {
  background: rgba(27, 23, 20, 0.08);
}

/* The editorial gallery can stand alone without its intro or row counters. */
.preview-editorialStory .editorial-story-intro,
.preview-editorialStory .story-index {
  display: none;
}

@media (max-width: 760px) {
  .preview-media.layout-editorial-split .media-layout {
    grid-template-columns: 1fr;
  }

  .preview-media.layout-editorial-split .media-art {
    min-height: 260px;
  }
}

/* The split story accepts tall portrait posters without cropping them. */
.preview-media.layout-editorial-split .media-art,
.preview-media.layout-editorial-split .media-art.media-frame {
  aspect-ratio: 9 / 16;
  height: auto;
  min-height: 0;
  width: min(100%, 560px);
  justify-self: center;
}

@media (max-width: 760px) {
  .preview-media.layout-editorial-split .media-art,
  .preview-media.layout-editorial-split .media-art.media-frame {
    aspect-ratio: 9 / 16;
    height: auto;
    min-height: 0;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .preview-editorialStory .editorial-story-items {
    gap: 34px;
  }

  .preview-editorialStory .editorial-story-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .preview-editorialStory .editorial-story-row .editorial-story-image,
  .preview-editorialStory .editorial-story-row.is-reversed .editorial-story-image {
    order: 1;
    width: 100%;
  }

  .preview-editorialStory .editorial-story-row .editorial-story-copy,
  .preview-editorialStory .editorial-story-row.is-reversed .editorial-story-copy {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .preview-media.layout-editorial-split .media-layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .preview-media.layout-editorial-split .media-art {
    order: 1;
    width: 100%;
  }

  .preview-media.layout-editorial-split .media-copy {
    order: 2;
    width: 100%;
    max-width: none;
  }
}

.hero-layout,
.media-layout,
.contact-layout,
.map-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-layout,
.media-layout,
.map-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.preview-hero.layout-centered .hero-layout,
.preview-media.layout-spotlight .media-layout,
.preview-contact.layout-centered .contact-layout,
.preview-map.layout-card .map-layout {
  grid-template-columns: 1fr;
}

.preview-hero.layout-centered .hero-copy,
.preview-contact.layout-centered .contact-copy,
.preview-contact.layout-centered .contact-side,
.preview-map.layout-card .map-copy,
.preview-quote.layout-centered .quote-layout {
  justify-items: center;
  text-align: center;
}

.preview-hero.layout-centered .hero-art {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.preview-hero.layout-editorial .hero-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: end;
}

.preview-hero.layout-panel {
  padding: 18px;
}

.hero-panel-stage {
  position: relative;
  min-height: clamp(420px, 66vh, 760px);
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(12, 12, 16, 0.2), rgba(12, 12, 16, 0.52)),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 48%, white), color-mix(in srgb, var(--brand-accent) 26%, white));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-panel-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 16, 0.38), rgba(12, 12, 16, 0.06) 54%),
    linear-gradient(180deg, rgba(12, 12, 16, 0.08), rgba(12, 12, 16, 0.34));
}

.hero-panel-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: end;
  gap: 18px;
  min-height: inherit;
}

.hero-panel-card {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  padding: clamp(24px, 3vw, 34px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1714;
  box-shadow: 0 26px 60px rgba(9, 10, 16, 0.22);
}

.hero-panel-card p {
  max-width: 42ch;
}

.hero-panel-card .hero-badge {
  border-color: rgba(24, 22, 20, 0.08);
  background: rgba(24, 22, 20, 0.06);
}

.hero-panel-accent {
  align-self: end;
  min-height: 220px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 34%, white), color-mix(in srgb, var(--brand-primary) 18%, white));
  box-shadow: 0 20px 42px rgba(8, 10, 16, 0.18);
}

.preview-hero.layout-immersive {
  padding: 18px;
}

.preview-hero.layout-immersive .hero-layout {
  grid-template-columns: 1fr;
  min-height: clamp(500px, 76vh, 860px);
}

.hero-immersive-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.66), rgba(10, 10, 12, 0.54)),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 46%, black), color-mix(in srgb, var(--brand-accent) 14%, black));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-immersive-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.36), rgba(14, 14, 16, 0.56));
}

.preview-hero.layout-immersive .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 4vw, 46px);
  justify-items: center;
  text-align: center;
  color: #fff;
}

.preview-hero.layout-immersive .hero-copy p {
  max-width: 52ch;
}

.preview-hero.layout-immersive .button-row {
  justify-content: center;
}

.preview-hero.layout-carousel {
  padding: 0;
  background: #130101;
  color: #fff;
}

.hero-carousel {
  position: relative;
  min-height: clamp(520px, 76vh, 840px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 36%, black), #170101);
}

.hero-carousel-track,
.hero-carousel-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel-slide {
  opacity: 0;
  transform: scale(1.02);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 48%, white), color-mix(in srgb, var(--brand-accent) 28%, black));
  transition:
    opacity 720ms ease,
    transform 6200ms ease;
}

.hero-carousel-slide.active {
  opacity: 1;
  transform: scale(1.06);
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 7, 7, 0.28), rgba(8, 7, 7, 0.58)),
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38));
}

.hero-carousel-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: inherit;
  padding: clamp(68px, 9vw, 132px) clamp(28px, 6vw, 96px);
  text-align: center;
}

.hero-carousel-content .hero-badge {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-carousel-content h1 {
  max-width: min(980px, 92vw);
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.44);
}

.hero-carousel-content p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-carousel-content .button-row {
  justify-content: center;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.18);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-carousel-arrow.prev {
  left: clamp(16px, 2.5vw, 34px);
}

.hero-carousel-arrow.next {
  right: clamp(16px, 2.5vw, 34px);
}

.hero-carousel-dots {
  position: absolute;
  bottom: clamp(22px, 3vw, 42px);
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hero-carousel-dot.active {
  background: #fff;
  transform: scale(1.18);
}

.preview-media.layout-reversed .media-layout > :first-child {
  order: 2;
}

.preview-media.layout-spotlight .media-art {
  min-height: 360px;
}

.preview-media.layout-overlay .media-layout {
  grid-template-columns: 1fr;
}

.media-layout-overlay {
  min-height: clamp(340px, 62vh, 700px);
}

.media-showcase {
  position: relative;
  display: grid;
  align-items: end;
  min-height: inherit;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.06), rgba(10, 10, 12, 0.42)),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 32%, white), color-mix(in srgb, var(--brand-accent) 18%, white));
}

.media-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.06), rgba(12, 12, 14, 0.38));
}

.media-showcase-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: #1b1714;
  box-shadow: 0 24px 60px rgba(15, 12, 10, 0.18);
}

.media-showcase-card p {
  max-width: 36ch;
}

.preview-text.layout-narrow .text-layout,
.preview-quote.layout-centered .quote-layout {
  max-width: 760px;
  margin: 0 auto;
}

.preview-text.layout-band .text-layout,
.preview-contact.layout-banner .contact-layout {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
}

.preview-team.layout-spotlight .team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-team.layout-spotlight .mini-card:first-child {
  grid-column: span 2;
}

.preview-team.layout-spotlight .mini-card:first-child .mini-card-art {
  width: 92%;
  aspect-ratio: 16 / 7;
  justify-self: start;
}

.featured-gallery-layout {
  gap: 18px;
}

.featured-gallery {
  display: grid;
  gap: 12px;
}

.featured-gallery-main,
.featured-gallery-thumb {
  display: grid;
}

.featured-gallery-art {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}

.featured-gallery-main .featured-gallery-art {
  aspect-ratio: 16 / 7.1;
  max-height: clamp(385px, 56vh, 690px);
  border-radius: 24px;
}

.featured-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.featured-gallery-thumb .featured-gallery-art {
  aspect-ratio: 16 / 9;
  max-height: clamp(170px, 25vh, 270px);
  border-radius: 16px;
}

.preview-cards.layout-list .cards-grid {
  grid-template-columns: 1fr;
}

.preview-cards.layout-list .mini-card {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
}

.preview-cards.layout-list .mini-card-art {
  aspect-ratio: 16 / 10;
}

.preview-cards.layout-menu .cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-cards.layout-menu .mini-card {
  grid-template-columns: clamp(96px, 14vw, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
}

.preview-cards.layout-menu .mini-card-art {
  aspect-ratio: 1;
  border-radius: 20px;
}

.preview-cards.layout-menu .mini-card strong {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  letter-spacing: -0.03em;
}

.mosaic-gallery-layout {
  width: 100%;
}

.mosaic-band {
  display: grid;
  gap: 34px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 0;
  background: linear-gradient(180deg, #270406 0%, #180103 100%);
  color: #fff;
  box-shadow: 0 26px 60px rgba(22, 7, 7, 0.18);
}

.mosaic-strip {
  display: grid;
  grid-template-columns: 0.62fr 1.18fr 1.28fr 1.18fr 0.62fr;
  gap: 20px;
  align-items: end;
}

.mosaic-card {
  display: grid;
  gap: 10px;
  align-self: end;
}

.mosaic-tile {
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.mosaic-card-1 {
  transform: translateY(18px);
}

.mosaic-card-1 .mosaic-tile {
  min-height: clamp(420px, 34vw, 540px);
  aspect-ratio: auto;
}

.mosaic-card-2 .mosaic-tile {
  min-height: clamp(230px, 18vw, 310px);
  aspect-ratio: auto;
}

.mosaic-card-3 .mosaic-tile {
  min-height: clamp(500px, 40vw, 650px);
  aspect-ratio: auto;
}

.mosaic-card-4 .mosaic-tile {
  min-height: clamp(420px, 33vw, 560px);
  aspect-ratio: auto;
}

.mosaic-card-5 {
  transform: translateY(12px);
}

.mosaic-card-5 .mosaic-tile {
  min-height: clamp(360px, 29vw, 500px);
  aspect-ratio: auto;
}

.preview-cards.layout-mosaic-centered .mosaic-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
}

.preview-cards.layout-mosaic-centered .mosaic-card {
  width: 100%;
  justify-items: center;
}

.preview-cards.layout-mosaic-centered .mosaic-card-1 {
  --mosaic-card-width: clamp(150px, 12vw, 285px);
}

.preview-cards.layout-mosaic-centered .mosaic-card-2 {
  --mosaic-card-width: clamp(360px, 24vw, 540px);
}

.preview-cards.layout-mosaic-centered .mosaic-card-3 {
  --mosaic-card-width: clamp(420px, 28vw, 590px);
}

.preview-cards.layout-mosaic-centered .mosaic-card-4 {
  --mosaic-card-width: clamp(360px, 24vw, 520px);
}

.preview-cards.layout-mosaic-centered .mosaic-card-5 {
  --mosaic-card-width: clamp(150px, 12vw, 250px);
}

.preview-cards.layout-mosaic-centered .mosaic-tile,
.preview-cards.layout-mosaic-centered .mosaic-label {
  width: min(100%, var(--mosaic-card-width, 100%));
}

.mosaic-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding-inline: 6px;
}

.mosaic-copy {
  display: grid;
  gap: 14px;
  max-width: 960px;
  padding-inline: clamp(8px, 2vw, 14px);
}

.mosaic-copy h2 {
  margin: 0;
  color: #fff;
}

.mosaic-copy p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
}

.preview-social.layout-grid .social-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-social.layout-grid .social-pill {
  justify-content: center;
}

.hero-copy,
.media-copy,
.text-layout,
.cards-layout,
.quote-layout,
.contact-side,
.map-copy {
  display: grid;
  gap: 16px;
}

.hero-copy h1,
.media-copy h2,
.text-layout h2,
.cards-layout h2,
.contact-layout h2,
.map-layout h2 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.scale-heading-md .hero-copy h1,
.scale-heading-md .media-copy h2,
.scale-heading-md .text-layout h2,
.scale-heading-md .cards-layout h2,
.scale-heading-md .contact-layout h2,
.scale-heading-md .map-layout h2 {
  font-size: var(--block-heading-size, clamp(2rem, 4vw, 3.2rem));
}

.scale-heading-lg .hero-copy h1,
.scale-heading-lg .media-copy h2,
.scale-heading-lg .text-layout h2,
.scale-heading-lg .cards-layout h2,
.scale-heading-lg .contact-layout h2,
.scale-heading-lg .map-layout h2 {
  font-size: var(--block-heading-size, clamp(2.4rem, 5vw, 4.4rem));
}

.scale-heading-xl .hero-copy h1,
.scale-heading-xl .media-copy h2,
.scale-heading-xl .text-layout h2,
.scale-heading-xl .cards-layout h2,
.scale-heading-xl .contact-layout h2,
.scale-heading-xl .map-layout h2 {
  font-size: var(--block-heading-size, clamp(2.8rem, 6vw, 5.2rem));
}

.scale-body-sm p,
.scale-body-sm blockquote {
  font-size: var(--block-body-size, 0.95rem);
}

.scale-body-md p,
.scale-body-md blockquote {
  font-size: var(--block-body-size, 1.02rem);
}

.scale-body-lg p,
.scale-body-lg blockquote {
  font-size: var(--block-body-size, 1.12rem);
}

.hero-copy p,
.media-copy p,
.text-layout p,
.cards-layout p,
.contact-layout p,
.map-layout p,
.quote-layout blockquote {
  margin: 0;
  line-height: 1.7;
  max-width: 64ch;
}

.hero-badge,
.eyebrow-chip {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-chip,
.site-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
  font-weight: 800;
}

.radius-pill .button-chip,
.radius-pill .site-primary {
  border-radius: 999px;
}

.radius-round .button-chip,
.radius-round .site-primary {
  border-radius: 18px;
}

.radius-sharp .button-chip,
.radius-sharp .site-primary {
  border-radius: 8px;
}

.button-chip,
.site-primary {
  padding: 13px 18px;
}

.button-solid {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #fff;
}

.button-outline {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
}

.hero-art,
.media-art,
.map-card {
  position: relative;
  min-height: 280px;
}

.hero-art-card,
.media-art,
.map-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 38%, white), color-mix(in srgb, var(--brand-accent) 18%, white));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-art-card.has-image,
.hero-panel-stage.has-image,
.hero-panel-accent.has-image,
.hero-immersive-panel.has-image,
.hero-carousel-slide.has-image,
.media-art.has-image,
.media-showcase.has-image,
.mini-card-art.has-image,
.avatar-circle.has-image,
.map-card.has-image,
.featured-gallery-art.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-draggable {
  cursor: grab;
  touch-action: none;
}

.image-draggable.dragging,
.image-dragging .image-draggable {
  cursor: grabbing;
}

.hero-art-card {
  position: absolute;
  inset: 0 40px 0 0;
}

.hero-art-card.small {
  inset: auto 0 24px auto;
  width: 180px;
  height: 180px;
}

.shape-soft .hero-art-card,
.shape-soft .media-art,
.shape-soft .map-card {
  border-radius: 32px;
}

.shape-frame .hero-art-card,
.shape-frame .media-art,
.shape-frame .map-card {
  border-radius: 20px;
}

.shape-cut .hero-art-card,
.shape-cut .media-art,
.shape-cut .map-card {
  border-radius: 26px 26px 80px 26px;
}

.shape-orb .hero-art-card,
.shape-orb .media-art,
.shape-orb .map-card {
  border-radius: 999px 999px 28px 999px;
}

.shape-wave .hero-art-card,
.shape-wave .media-art,
.shape-wave .map-card {
  border-radius: 28px 90px 28px 90px;
}

.preview-frame.image-corners-straight {
  --image-corner-radius: 6px;
}

.preview-frame.image-corners-soft {
  --image-corner-radius: 22px;
}

.preview-frame.image-corners-round {
  --image-corner-radius: 38px;
}

.preview-frame.image-corners-capsule {
  --image-corner-radius: 999px;
}

.preview-frame.image-corners-cut {
  --image-corner-radius: 22px 22px 72px 22px;
}

.preview-frame.image-corners-arc {
  --image-corner-radius: 48px 48px 18px 18px;
}

.preview-frame :is(
  .hero-panel-stage,
  .hero-panel-accent,
  .hero-immersive-panel,
  .hero-carousel-slide,
  .hero-art-card,
  .media-showcase,
  .media-art,
  .mini-card-art,
  .featured-gallery-art,
  .mosaic-tile,
  .map-card.has-image,
  .avatar-circle
) {
  border-radius: var(--image-corner-radius, 22px);
}

.media-art.media-oval {
  border-radius: 999px;
}

.media-art.media-stack {
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.26), transparent 20%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 42%, white), color-mix(in srgb, var(--brand-accent) 30%, white));
}

.media-art.media-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: inherit;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.mini-card-art {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
}

.art-1 {
  background: linear-gradient(180deg, #f0bf7b, #7c5732);
}

.art-2 {
  background: linear-gradient(180deg, #7acbff, #22548f);
}

.art-3 {
  background: linear-gradient(180deg, #8ce0c4, #216551);
}

.art-4 {
  background: linear-gradient(180deg, #ef8f8f, #7a2525);
}

.person-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.quote-layout blockquote {
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--brand-accent);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.preview-quote.layout-centered .quote-layout blockquote {
  border-left: 0;
  padding-left: 0;
  max-width: 24ch;
}

.map-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
}

.map-pin {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 50% 10px;
  background: var(--brand-primary);
}

.preview-map.layout-card .map-card {
  min-height: 360px;
}

.editable-text {
  cursor: text;
  border-radius: 10px;
  transition: background 140ms ease, outline-color 140ms ease;
}

.editable-text:hover {
  background: rgba(255, 255, 255, 0.08);
}

.editable-text:focus {
  outline: 2px solid color-mix(in srgb, var(--brand-accent) 70%, white);
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.insert-slot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 10px 0;
}

.insert-slot-button {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.insert-slot-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.block-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 3;
}

.toolbar-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.toolbar-button.danger {
  color: #ffd7d4;
}

.structure-list {
  display: grid;
  gap: 10px;
}

.structure-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
}

.structure-item.active {
  border-color: rgba(24, 176, 122, 0.46);
  box-shadow: inset 0 0 0 1px rgba(24, 176, 122, 0.14);
}

.structure-item.drop-target {
  border-color: var(--brand-primary);
}

.structure-handle {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.structure-copy {
  display: grid;
}

.theme-linen {
  --preview-base-bg: #f8f3ec;
}

.theme-charcoal {
  --preview-base-bg: #18090b;
}

.theme-midnight {
  --preview-base-bg: #121826;
}

.theme-linen .preview-canvas {
  background: var(--brand-surface);
  color: var(--brand-ink);
}

.theme-charcoal .preview-canvas,
.theme-midnight .preview-canvas {
  background: var(--brand-surface);
  color: var(--brand-ink);
}

.bg-mesh.theme-swatch {
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.2);
}

.bg-stage.theme-swatch {
  box-shadow: inset 0 -18px 24px rgba(0, 0, 0, 0.42);
}

.bg-grid.theme-swatch {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, var(--swatch-primary, #4f9dff), var(--swatch-surface, #121826) 62%, var(--swatch-accent, #1f3b61));
  background-size: 8px 8px, 8px 8px, auto;
}

.bg-glow.theme-swatch {
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.bg-paper.theme-swatch {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, var(--swatch-primary, #d0d0d0), var(--swatch-surface, #f5f5f5) 62%, var(--swatch-accent, #8d8d8d));
  background-size: 7px 7px, 7px 7px, auto;
}

.snippet-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.snippet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 10, 0.48);
}

.snippet-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(1280px, calc(100vw - 40px));
  height: min(86vh, 920px);
  margin: 32px auto;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #f5f5f7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.snippet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.snippet-modal-header h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.snippet-modal-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.snippet-modal-search input {
  width: min(320px, 100%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.snippet-modal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
}

.modal-grid {
  overflow: auto;
  padding-right: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

@media (max-width: 1320px) {
  .preview-frame {
    min-height: calc(100vh - var(--shell-offset, 132px) - 42px);
  }
}

@media (max-width: 980px) {
  .app-shell.library-open .preview-panel,
  .app-shell.inspector-open .preview-panel {
    padding-left: 0;
    padding-right: 0;
  }

  .app-shell.library-open .preview-top,
  .app-shell.library-open .page-strip,
  .app-shell.library-open .preview-frame,
  .app-shell.inspector-open .preview-top,
  .app-shell.inspector-open .page-strip,
  .app-shell.inspector-open .preview-frame {
    margin-left: 0;
    margin-right: 0;
  }

  .app-shell {
    padding: 16px;
  }

  .panel,
  .preview-frame {
    min-height: auto;
  }

  .panel-backdrop {
    inset: var(--shell-offset, 120px) 16px 16px;
    border-radius: 24px;
    pointer-events: auto;
  }

  .library-panel,
  .inspector-panel {
    top: var(--shell-offset, 120px);
    bottom: 16px;
    width: min(420px, calc(100vw - 32px));
  }

  .library-panel {
    left: 16px;
  }

  .inspector-panel {
    right: 16px;
  }

  .library-layout,
  .hero-layout,
  .hero-panel-shell,
  .media-layout,
  .map-layout,
  .contact-layout,
  .site-chrome {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .site-actions {
    justify-content: flex-start;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel-stage {
    min-height: 380px;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .hero-panel-accent {
    min-height: 160px;
    max-width: 240px;
  }

  .mosaic-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .mosaic-card {
    transform: none;
    align-self: stretch;
  }

  .mosaic-card-1,
  .mosaic-card-3 {
    grid-column: span 2;
  }

  .mosaic-card .mosaic-tile {
    aspect-ratio: auto;
    min-height: 260px;
  }

  .preview-cards.layout-mosaic-centered .mosaic-tile,
  .preview-cards.layout-mosaic-centered .mosaic-label {
    width: 100%;
  }

  .featured-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snippet-modal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .panel,
  .preview-frame {
    border-radius: 22px;
  }

  .topbar,
  .panel-header,
  .preview-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions,
  .preview-top-actions,
  .panel-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-backdrop {
    inset: var(--shell-offset, 118px) 14px 14px;
    border-radius: 22px;
  }

  .library-panel,
  .inspector-panel {
    top: var(--shell-offset, 118px);
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }

  .library-panel {
    transform: translateY(calc(-100% - 18px));
  }

  .inspector-panel {
    transform: translateY(calc(100% + 18px));
  }

  .app-shell.library-open .library-panel,
  .app-shell.inspector-open .inspector-panel {
    transform: translateY(0);
  }

  .builder-tabs,
  .snippet-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .preview-cards.layout-menu .mini-card {
    grid-template-columns: 1fr;
  }

  .mosaic-band {
    gap: 24px;
    padding: 20px;
  }

  .mosaic-strip {
    grid-template-columns: 1fr;
  }

  .mosaic-card-1,
  .mosaic-card-3 {
    grid-column: auto;
  }

  .mosaic-card .mosaic-tile {
    min-height: 240px;
    aspect-ratio: auto;
  }

  .featured-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snippet-modal-dialog {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .preview-section {
    padding: 36px 20px;
  }

  .preview-hero.layout-carousel {
    padding: 0;
  }

  .hero-carousel {
    min-height: 460px;
  }

  .hero-carousel-content {
    padding: 74px 24px 88px;
  }

  .hero-carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}

/* Guided block controls live at the end so template-specific rules cannot override them. */
.preview-section[data-block-width],
.preview-section[data-block-align],
.preview-section[data-block-vertical] {
  display: grid;
}

.preview-section[data-block-width] {
  width: var(--guided-section-width, 100%);
}

.preview-section[data-block-width="narrow"] {
  --guided-section-width: min(100%, 760px);
}

.preview-section[data-block-width="medium"] {
  --guided-section-width: min(100%, 1040px);
}

.preview-section[data-block-width="wide"] {
  --guided-section-width: min(100%, 1320px);
}

.preview-section[data-block-width="full"] {
  --guided-section-width: 100%;
}

.preview-section[data-block-width] > :not(.block-toolbar) {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.preview-section[data-block-width="narrow"] > :not(.block-toolbar) {
  max-width: 720px !important;
}

.preview-section[data-block-width="medium"] > :not(.block-toolbar) {
  max-width: 980px !important;
}

.preview-section[data-block-width="wide"] > :not(.block-toolbar) {
  max-width: 1280px !important;
}

.preview-section[data-block-width="full"] > :not(.block-toolbar) {
  max-width: none !important;
}

.preview-section[data-block-align="left"] {
  margin-left: 0;
  margin-right: auto;
  justify-items: start;
  text-align: left;
}

.preview-section[data-block-align="center"] {
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  text-align: center;
}

.preview-section[data-block-align="right"] {
  margin-left: auto;
  margin-right: 0;
  justify-items: end;
  text-align: right;
}

.preview-section[data-block-align="left"] > :not(.block-toolbar) {
  margin-left: 0;
  margin-right: auto;
}

.preview-section[data-block-align="center"] > :not(.block-toolbar) {
  margin-left: auto;
  margin-right: auto;
}

.preview-section[data-block-align="right"] > :not(.block-toolbar) {
  margin-left: auto;
  margin-right: 0;
}

.preview-section[data-block-align="center"] .button-row {
  justify-content: center;
}

.preview-section[data-block-align="right"] .button-row {
  justify-content: flex-end;
}

.preview-section[data-block-vertical] {
  min-height: clamp(520px, 68vh, 820px);
}

.preview-section[data-block-vertical="top"] {
  align-content: start;
}

.preview-section[data-block-vertical="center"] {
  align-content: center;
}

.preview-section[data-block-vertical="bottom"] {
  align-content: end;
}
/* Contacto combinado: redes a la izquierda y datos de contacto a la derecha. */
.preview-contact.layout-social-contact .contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 96px);
}

.preview-contact.layout-social-contact .contact-social-side,
.preview-contact.layout-social-contact .contact-side {
  align-content: center;
  min-width: 0;
}

.preview-contact.layout-social-contact .contact-social-side {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  justify-items: start;
}

.preview-contact.layout-social-contact .editable-social-title,
.preview-contact.layout-social-contact .contact-side h2 {
  margin: 0;
}

.preview-contact.layout-social-contact .contact-email-link {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

/* Redes sociales: botones circulares y espaciados, como iconos de acceso rapido. */
.preview-contact.layout-social-contact .social-row {
  gap: 14px;
  align-items: center;
}

.preview-contact.layout-social-contact .social-pill {
  width: clamp(56px, 4.5vw, 68px);
  height: clamp(56px, 4.5vw, 68px);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--social-button-color, color-mix(in srgb, var(--brand-primary) 78%, var(--brand-accent)));
  border-color: color-mix(in srgb, var(--brand-accent) 38%, transparent);
  font-size: 0.78rem;
  line-height: 1.1;
}

.preview-contact.layout-social-contact .social-icon {
  width: 20px;
  height: 20px;
}

.preview-contact.layout-social-contact .social-icon-letter {
  font-size: 1.12rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
}

.social-icon-letter {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
}

.social-label,
.nav-home-item .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-home-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-home-item .social-icon {
  width: 19px;
  height: 19px;
}

@media (max-width: 760px) {
  .preview-contact.layout-social-contact .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .preview-contact.layout-social-contact .contact-social-side,
  .preview-contact.layout-social-contact .contact-side {
    justify-items: start;
  }

  .preview-contact.layout-social-contact .social-pill {
    width: 58px;
    height: 58px;
  }
}
/* Centra verticalmente el texto de la primera historia con su imagen destacada. */
.preview-editorialStory .editorial-story-row.is-featured {
  align-items: center;
}

@media (max-width: 760px) {
  .preview-editorialStory .editorial-story-row.is-featured {
    align-items: start;
  }
}

/* Published navigation */
.site-chrome.site-chrome-nav-only {
  grid-template-columns: 1fr;
}
.site-chrome-nav-only .site-nav {
  justify-content: center;
  align-items: center;
  width: 100%;
}

.site-chrome-nav-only .nav-festivals-item,
.site-chrome-nav-only .nav-contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.whatsapp-button {
  gap: 8px;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Base CTA sizing; final icon placement is defined below. */
.hero-carousel-content .whatsapp-button .whatsapp-icon {
  display: none;
}

.contact-side .whatsapp-button {
  width: 52px;
  height: 52px;
  padding: 12px;
}

.contact-side .whatsapp-button > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Final placement: the hero CTA shows WhatsApp, while the top link stays text-only. */
.site-chrome-nav-only .nav-contact-item .whatsapp-icon {
  display: none;
}

.hero-carousel-content .whatsapp-button .whatsapp-icon {
  display: inline-block;
}

/* Match the hero title to the other section headings. */
.hero-carousel-content h1.editable-title {
  font-size: clamp(36px, 4vw, 44px);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: none;
}

/* Keep the poster and copy centered with balanced outer margins. */
.preview-media.layout-editorial-split .media-layout {
  width: min(100%, 1600px);
  margin-inline: auto;
}

.preview-media.layout-editorial-split .media-copy {
  width: min(100%, 560px);
  justify-self: center;
}

.preview-media.layout-editorial-split .media-art,
.preview-media.layout-editorial-split .media-art.media-frame {
  aspect-ratio: 4 / 5;
  max-height: 720px;
}

@media (max-width: 760px) {
  .preview-media.layout-editorial-split .media-art,
  .preview-media.layout-editorial-split .media-art.media-frame {
    aspect-ratio: 4 / 5;
    max-height: none;
    width: min(100%, 420px);
    justify-self: center;
  }

  .preview-media.layout-editorial-split .media-copy {
    width: 100%;
    justify-self: stretch;
  }

  .preview-media.layout-editorial-split .media-copy h2 {
    font-size: clamp(1.7rem, 5.5vw, 2.2rem) !important;
  }

  .preview-editorialStory .editable-story-title {
    font-size: clamp(1.7rem, 5.5vw, 2.2rem) !important;
  }

  .preview-editorialStory .editable-story-body,
  .preview-editorialStory .editable-story-item-body {
    font-size: 1rem !important;
  }

  .preview-editorialStory .editable-story-item-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }
}

@media (min-width: 761px) {
  .preview-editorialStory .editable-story-title {
    font-size: 36px !important;
  }

  .preview-editorialStory .editable-story-item-title {
    font-size: 34px !important;
  }

  .preview-editorialStory .editable-story-body,
  .preview-editorialStory .editable-story-item-body {
    font-size: 22px !important;
  }
}

/* Laptop-sized screens need a slightly denser type scale while preserving image sizes. */
@media (min-width: 761px) and (max-width: 1400px) {
  .preview-media.layout-editorial-split .media-copy h2 {
    font-size: 48px !important;
  }

  .preview-media.layout-editorial-split .media-copy p {
    font-size: 18px !important;
  }

  .preview-editorialStory .editable-story-title {
    font-size: 32px !important;
  }

  .preview-editorialStory .editable-story-item-title {
    font-size: 28px !important;
  }

  .preview-editorialStory .editable-story-body,
  .preview-editorialStory .editable-story-item-body {
    font-size: 18px !important;
  }
}

/* Keep the lower contact headings proportional to the rest of the page. */
.preview-contact.layout-social-contact .editable-social-title,
.preview-contact.layout-social-contact .contact-side .editable-title {
  font-size: 40px !important;
}

@media (max-width: 760px) {
  .preview-contact.layout-social-contact .editable-social-title,
  .preview-contact.layout-social-contact .contact-side .editable-title {
    font-size: 32px !important;
  }
}

@media (min-width: 761px) {
  .preview-media.layout-editorial-split .media-copy h2 {
    font-size: clamp(2rem, 3vw, 2.6rem) !important;
  }
}

.preview-media.layout-editorial-split .media-copy {
  row-gap: 24px;
}

/* Guest kitchens and vineyards logo block between the poster and mosaic. */
.preview-guest-logos {
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-ink, #fbf3e7);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 6vw, 96px);
}

.guest-logos-inner {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.guest-logos-title {
  margin: 0 0 clamp(24px, 3vw, 36px);
  color: var(--brand-ink, #fbf3e7);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  text-align: center;
}

.guest-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}

.guest-logo-slot {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.guest-logo-slot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 96px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .guest-logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .guest-logo-slot {
    min-height: 76px;
    padding: 10px;
  }

  .guest-logo-slot img {
    max-height: 90px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .guest-logos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Give the initial hero block a fluid scale on wide monitors. */
@media (min-width: 1401px) {
  .preview-hero .hero-carousel-content h1.editable-title {
    font-size: clamp(44px, 2.8vw, 56px) !important;
  }

  .preview-hero .hero-carousel-content p.hero-access-copy {
    font-size: clamp(18px, 1.05vw, 21px) !important;
  }
}


/* Keep the limited-capacity notice below the hero button and visually secondary. */
.preview-hero .hero-carousel-content p.hero-capacity-note {
  margin: 12px 0 0;
  font-size: 15px !important;
  line-height: 1.4;
  opacity: 0.9;
}

.preview-hero .hero-carousel-content h1.editable-title {
  margin-bottom: 0;
}

.preview-hero .hero-carousel-content p.hero-access-copy {
  margin-top: 0;
}

@media (max-width: 760px) {
  .preview-hero .hero-carousel-content p.hero-capacity-note {
    font-size: 13px !important;
  }
}


/* Guest logos: guinda section with a light card for the logos. */
.preview-guest-logos {
  background: var(--brand-surface, #2f1210);
}

.preview-guest-logos .guest-logos-inner {
  box-sizing: border-box;
  background: var(--brand-surface, #2f1210);
  color: var(--brand-ink, #fbf3e7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(18px, 2vw, 28px);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 16px 34px rgba(18, 7, 6, 0.16);
}

.preview-guest-logos .guest-logos-title {
  color: var(--brand-ink, #fbf3e7);
}


/* Individual logo tiles use a warm poster-inspired parchment tone. */
.preview-guest-logos .guest-logo-slot {
  min-height: 116px;
  background: rgba(247, 219, 170, 0.84);
  border: 1px solid rgba(119, 67, 28, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(119, 67, 28, 0.12);
}

@media (max-width: 760px) {
  .preview-guest-logos .guest-logo-slot {
    min-height: 96px;
    border-radius: 14px;
  }
}



.preview-guest-logos {
  border-bottom: 0;
}


/* Keep the title and every logo centered on the vertical axis. */
.preview-guest-logos .guest-logos-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-guest-logos .guest-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-guest-logos .guest-logo-slot img {
  margin: auto;
}

/* Clean outer section and uniform logo card dimensions. */
.preview-guest-logos .guest-logos-inner {
  border: 0;
  box-shadow: none;
}

.preview-guest-logos .guest-logo-slot {
  width: 100%;
  height: 116px;
  min-height: 116px;
}

@media (max-width: 760px) {
  .preview-guest-logos .guest-logo-slot {
    height: 96px;
    min-height: 96px;
  }
}

/* Slightly reduce the lower padding so the content sits optically centered. */
.preview-guest-logos .guest-logos-inner {
  padding-bottom: clamp(18px, 2.8vw, 30px);
}

/* Nudge only the El Minero logo upward inside its card. */
.preview-guest-logos .guest-logo-slot:nth-child(2) img {
  transform: translateY(-6px);
}


/* Restore the vivid colors of the El Minero logo at small display sizes. */
.preview-guest-logos .guest-logo-slot:nth-child(2) img {
  filter: saturate(1.55) contrast(1.15) brightness(0.94);
}


/* Warm the red hues of the El Minero logo. */
.preview-guest-logos .guest-logo-slot:nth-child(2) img {
  filter: saturate(1.65) contrast(1.15) brightness(0.94);
}



/* Use the source colors of the El Minero logo without color filters. */
.preview-guest-logos .guest-logo-slot:nth-child(2) img {
  filter: none;
}


/* Let mobile users scroll the page when a swipe starts over an image. */
@media (max-width: 760px) {
  .preview-frame .image-draggable {
    touch-action: pan-y;
  }
}


/* Semantic images with descriptive alt text; preserve the existing background crop. */
.preview-frame .seo-content-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.preview-media .media-art,
.preview-editorialStory .editorial-story-image {
  position: relative;
  overflow: hidden;
}


/* Poster-inspired festival cover: burgundy palette, gold details and a three-image collage. */
.preview-hero.hero-poster-section {
  padding: 0;
  color: #fbf3e7;
  background: #2f1210;
}
.hero-carousel.hero-poster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  min-height: clamp(590px, 74vh, 790px);
  padding: clamp(38px, 5vw, 76px) clamp(24px, 6vw, 96px);
  overflow: hidden;
  color: #fbf3e7;
  background-color: #2f1210;
  background-image:
    radial-gradient(circle, rgba(233, 196, 133, 0.12) 1px, transparent 1.8px),
    radial-gradient(ellipse at 16% 20%, rgba(190, 60, 65, 0.28), transparent 42%),
    linear-gradient(135deg, #351311 0%, #2f1210 58%, #481a19 100%);
  background-size: 28px 28px, auto, auto;
}
.hero-carousel.hero-poster-layout::after,
.hero-poster-layout .hero-carousel-track {
  display: none;
}
.hero-poster-art {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(130px, 0.78fr);
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  min-height: clamp(430px, 48vw, 600px);
  isolation: isolate;
}
.hero-poster-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(233, 196, 133, 0.76);
  border-radius: 4px;
  background: #6e292b;
  box-shadow: 0 16px 42px rgba(13, 4, 4, 0.34);
}
.hero-poster-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(47, 18, 16, 0.02), rgba(47, 18, 16, 0.28));
}
.hero-poster-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster-photo-main {
  grid-row: 1 / span 2;
  min-height: 100%;
}
.hero-poster-photo-main img { object-position: 56% center; }
.hero-poster-photo-paella img { object-position: 50% 56%; }
.hero-poster-photo-wine img { object-position: 50% 50%; }
.hero-poster-date {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: -15px;
  display: grid;
  width: clamp(86px, 9vw, 118px);
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  border: 3px solid #f3b749;
  border-radius: 50%;
  color: #52201c;
  background: #f3b749;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transform: rotate(-8deg);
}
.hero-poster-date span { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 0.9; }
.hero-poster-date small { margin-top: 5px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; }
.hero-poster-stamp {
  position: absolute;
  z-index: 2;
  right: -15px;
  bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #f3b749;
  color: #f8d58d;
  background: #812f34;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.hero-poster-layout .hero-carousel-content {
  min-height: 0;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 0;
  text-align: left;
}
.hero-poster-kicker {
  margin: 0;
  color: #f3b749 !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-poster-kicker span { padding: 0 5px; color: #d07a63; }
.hero-poster-layout .hero-carousel-content h1.editable-title {
  max-width: 15ch;
  margin: 0;
  color: #fff4df;
  font-size: clamp(40px, 4.25vw, 62px) !important;
  line-height: 0.99;
  text-align: left;
  text-shadow: none;
  text-transform: none;
}
.hero-poster-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.hero-poster-detail {
  display: grid;
  gap: 5px;
  min-width: 155px;
  padding: 12px 15px;
  border-left: 2px solid #f3b749;
  background: rgba(244, 198, 127, 0.1);
}
.hero-poster-detail span { color: rgba(251, 243, 231, 0.76); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-poster-detail strong { color: #fff4df; font-size: 16px; }
.hero-poster-layout .hero-carousel-content p.hero-poster-price-note {
  max-width: 50ch;
  margin: -8px 0 0;
  color: rgba(251, 243, 231, 0.8);
  font-size: 14px;
  line-height: 1.5;
}
.hero-poster-layout .button-row { justify-content: flex-start; margin-top: 2px; }
.hero-poster-layout .hero-capacity-note { margin-top: -8px !important; }
@media (max-width: 760px) {
  .hero-carousel.hero-poster-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 32px 20px 42px;
    background-size: 24px 24px, auto, auto;
  }
  .hero-poster-layout .hero-carousel-content { order: 1; gap: 15px; }
  .hero-poster-art {
    order: 2;
    grid-template-columns: minmax(0, 1.25fr) minmax(100px, 0.75fr);
    grid-template-rows: repeat(2, minmax(125px, 1fr));
    gap: 9px;
    min-height: clamp(300px, 86vw, 390px);
    margin: 0 8px 0 14px;
  }
  .hero-poster-date { top: -12px; left: -12px; width: 82px; border-width: 2px; }
  .hero-poster-date span { font-size: 34px; }
  .hero-poster-date small { font-size: 10px; }
  .hero-poster-stamp { right: -10px; bottom: 12px; padding: 9px 11px; font-size: 11px; }
  .hero-poster-layout .hero-carousel-content h1.editable-title {
    max-width: 18ch;
    font-size: clamp(35px, 9vw, 46px) !important;
    line-height: 1.02;
  }
  .hero-poster-details { gap: 8px; }
  .hero-poster-detail { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 10px 11px; }
  .hero-poster-detail strong { font-size: 14px; }
  .hero-poster-layout .hero-carousel-content p.hero-poster-price-note { margin-top: -4px; font-size: 13px; }
  .hero-poster-layout .button-row { justify-content: flex-start; }
}


/* Use the supplied festival poster as the single hero visual. */
.hero-poster-art {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
}
.hero-poster-single {
  width: min(100%, 500px);
  max-height: min(74vh, 700px);
  aspect-ratio: 1170 / 1550;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(243, 183, 73, 0.86);
  border-radius: 5px;
  background: #812f34;
  box-shadow: 0 20px 54px rgba(13, 4, 4, 0.38);
}
.hero-poster-single img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 760px) {
  .hero-poster-single {
    width: min(100%, 350px);
    max-height: none;
  }
}


/* Cleaner poster cover background without the dotted texture. */
.hero-carousel.hero-poster-layout {
  background-image:
    radial-gradient(ellipse at 16% 20%, rgba(190, 60, 65, 0.22), transparent 42%),
    linear-gradient(135deg, #351311 0%, #2f1210 58%, #481a19 100%);
  background-size: auto;
}
@media (max-width: 760px) {
  .hero-carousel.hero-poster-layout { background-size: auto; }
}


/* Restore the original cover heading typeface. */
.hero-poster-layout .hero-carousel-content h1.editable-title {
  font-family: "Space Grotesk", sans-serif;
}


/* Bring the cover back into the site's shared color and image language. */
.preview-hero.hero-poster-section {
  background: var(--brand-surface, #2f1210);
}
.hero-carousel.hero-poster-layout {
  background: var(--brand-surface, #2f1210);
  background-image: none;
}
.hero-poster-single {
  border: 1px solid color-mix(in srgb, var(--brand-primary, #e9c485) 38%, transparent);
  border-radius: var(--image-corner-radius, 0);
  box-shadow: 0 10px 28px rgba(13, 4, 4, 0.22);
}
.hero-poster-kicker { color: var(--brand-primary, #e9c485) !important; }
.hero-poster-kicker span { color: var(--brand-accent, #da8e88); }
.hero-poster-layout .hero-carousel-content h1.editable-title {
  color: var(--brand-ink, #fbf3e7);
}
.hero-poster-detail {
  border-left-color: var(--brand-primary, #e9c485);
  background: rgba(251, 243, 231, 0.045);
}
.hero-poster-detail span { color: color-mix(in srgb, var(--brand-ink, #fbf3e7) 72%, transparent); }
.hero-poster-detail strong { color: var(--brand-ink, #fbf3e7); }
.hero-poster-layout .hero-carousel-content p.hero-poster-price-note {
  color: color-mix(in srgb, var(--brand-ink, #fbf3e7) 82%, transparent);
}


/* On desktop, lead with the event details and place the poster on the right. */
@media (min-width: 761px) {
  .hero-poster-layout .hero-carousel-content { order: 1; }
  .hero-poster-layout .hero-poster-art { order: 2; }
}


/* Make the hero contact action the clearest next step. */
.hero-poster-layout .button-row .whatsapp-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 25px;
  border: 1px solid #f3b749 !important;
  border-radius: 999px;
  color: #52201c !important;
  background: #f3b749 !important;
  box-shadow: 0 3px 10px rgba(243, 183, 73, 0.10);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.hero-poster-layout .button-row .whatsapp-button:hover {
  transform: translateY(-2px);
  filter: none;
  box-shadow: 0 5px 14px rgba(243, 183, 73, 0.14);
}
.hero-poster-layout .button-row .whatsapp-button:focus-visible {
  outline: 3px solid var(--brand-ink, #fbf3e7);
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .hero-poster-layout .button-row .whatsapp-button {
    width: min(100%, 320px);
  }
}


/* Align the cover copy and poster to the same outer margins. */
@media (min-width: 761px) {
  .hero-poster-layout .hero-poster-art { justify-content: flex-end; }
  .hero-poster-layout .hero-poster-single { margin: 0; }
}
@media (max-width: 760px) {
  .hero-poster-layout .hero-poster-art { margin: 0; justify-content: center; }
  .hero-poster-layout .hero-poster-single { margin: 0 auto; }
}


/* Keep the two-column cover visually centered on wide screens. */
@media (min-width: 761px) {
  .hero-carousel.hero-poster-layout {
    width: min(100%, 1460px);
    margin-inline: auto;
    padding-inline: clamp(48px, 7vw, 112px);
  }
}
@media (max-width: 760px) {
  .hero-carousel.hero-poster-layout {
    width: 100%;
    margin-inline: 0;
    padding-inline: 20px;
  }
}


/* Chef posters: one desktop row, swipeable snap track on small screens. */
.preview-chefs {
  padding: clamp(32px, 4vw, 54px) clamp(22px, 4vw, 64px);
  color: var(--brand-ink, #fbf3e7);
  background: var(--brand-surface, #2f1210);
}
.chefs-inner {
  width: min(100%, 1480px);
  margin-inline: auto;
}
.chefs-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.chefs-heading h2 {
  margin: 0;
  color: var(--brand-ink, #fbf3e7);
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}
.chefs-scroll-hint {
  display: none;
  margin: 0;
  color: color-mix(in srgb, var(--brand-ink, #fbf3e7) 74%, transparent);
  font-size: 13px;
}
.chefs-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}
.chef-card { min-width: 0; }
.chef-card-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 133, 0.24);
  border-radius: var(--image-corner-radius, 0);
  background: rgba(251, 243, 231, 0.04);
}
.chef-card-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chef-card-name {
  margin: 10px 0 0;
  color: var(--brand-ink, #fbf3e7);
  font-family: var(--font-body, Outfit, sans-serif);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
@media (max-width: 900px) {
  .chefs-heading { align-items: center; }
  .chefs-scroll-hint { display: block; }
  .chefs-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 196, 133, 0.55) transparent;
    padding: 2px 3px 14px;
  }
  .chef-card { flex: 0 0 min(72vw, 290px); scroll-snap-align: center; }
  .chef-card-name { font-size: 14px; }
}
@media (max-width: 520px) {
  .preview-chefs { padding: 30px 20px; }
  .chefs-heading { display: block; margin-bottom: 16px; }
  .chefs-heading h2 { font-size: 28px; }
  .chefs-scroll-hint { margin-top: 6px; font-size: 12px; }
  .chef-card { flex-basis: 78vw; max-width: 300px; }
}




/* Slight extra zoom so chef posters fill their frames more completely. */
.chef-card-poster img {
  transform: scale(1.08);
}

/* Crop the hero poster to focus on its title and paella illustration. */
.hero-poster-single {
  aspect-ratio: 1 / 1;
}
.hero-poster-single img {
  object-fit: cover;
  object-position: center 58%;
}

/* Small date seal above the hero copy. */
.hero-date-badge {
  display: grid;
  width: 108px;
  height: 70px;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  color: #52201c;
  background: #f3b749;
  transform: rotate(-5deg);
  line-height: 1;
}
.hero-date-badge span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hero-date-badge strong {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .hero-date-badge {
    width: 94px;
    height: 62px;
  }
  .hero-date-badge span { font-size: 10px; }
  .hero-date-badge strong { font-size: 25px; }
}

/* Monochrome, transparent sponsor marks above the chef posters. */
.preview-sponsors {
  padding: 24px clamp(20px, 4vw, 64px) 12px;
  background: var(--brand-surface, #2f1210);
}
.sponsor-logo-row {
  display: flex;
  width: min(100%, 720px);
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 5vw, 64px);
  margin: 0 auto;
}
.sponsor-logo {
  display: block;
  width: 100%;
  height: 64px;
  flex: 1 1 0;
  min-width: 0;
  object-fit: contain;
}
.sponsor-logo-desert-wine { height: 76px; }
@media (max-width: 520px) {
  .preview-sponsors { padding: 16px 24px 6px; }
  .sponsor-logo-row { min-height: 74px; gap: 18px; }
  .sponsor-logo { height: 52px; }
  .sponsor-logo-desert-wine { height: 64px; }
}

/* Show a centered title in the intro space above the restaurant stories. */
.preview-editorialStory .editorial-story-intro {
  display: block;
  width: min(100%, 900px);
  max-width: none;
  margin: 0 auto;
  text-align: center;
}
.preview-editorialStory .editorial-story-intro .editable-story-title {
  margin: 0;
  color: var(--brand-ink, #fbf3e7);
}

/* Match the small gold location kicker used on the festival cover. */
.preview-editorialStory .editorial-story-intro .editable-story-title.editorial-kicker {
  margin: 0;
  color: #f3b749;
  font-family: var(--font-body, "Outfit"), sans-serif;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.preview-editorialStory .editorial-story-intro .editorial-kicker-dot {
  padding: 0 5px;
  color: var(--brand-accent, #da8e88);
}

/* Give the three editorial mosaic photos the same fine gold edge as the poster. */
.preview-editorialStory .editorial-story-image {
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #e9c485) 38%, transparent);
}



/* Center the main reservation action on mobile. */
@media (max-width: 760px) {
  .hero-poster-layout .hero-carousel-content .button-row {
    justify-content: center;
  }
  .hero-poster-layout .hero-carousel-content .button-row .whatsapp-button {
    margin-inline: auto;
  }
}@media (max-width: 760px) {
  .hero-poster-layout .hero-carousel-content .button-row {
    width: 100%;
    justify-self: stretch;
  }
}
