:root {
  --ink: #26302f;
  --muted: #61706c;
  --paper: #fffdf8;
  --soft: #f5efe3;
  --gold: #b58638;
  --green: #37685e;
  --sage: #d7e0d1;
  --rose: #8f4b3f;
  --line: rgba(38, 48, 47, 0.14);
  --shadow: 0 22px 60px rgba(38, 48, 47, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body, Arial, Helvetica, sans-serif);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.top-notice {
  background: var(--green);
  color: white;
  text-align: center;
  font-weight: 700;
  padding: 0.55rem 1rem;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 5vw, 5.5rem);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  min-width: max-content;
}

.brand span {
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--soft);
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: min(780px, calc(100vh - 104px));
  background: var(--soft);
}

.home-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.92) 0%, rgba(255, 253, 248, 0.82) 35%, rgba(255, 253, 248, 0.2) 68%),
    var(--hero-image) center / cover;
  display: flex;
  min-height: min(680px, calc(100vh - 104px));
  padding: clamp(2rem, 8vw, 6rem) clamp(1rem, 9vw, 7rem);
}

.home-hero-copy {
  max-width: 560px;
}

.home-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 400;
}

.home-hero p:not(.eyebrow) {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  max-width: 38rem;
}

.approach-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  min-height: 390px;
  background: var(--paper);
  border-top: 8px solid white;
  border-bottom: 1px solid var(--line);
}

.approach-split > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.approach-split > div {
  align-self: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  position: relative;
}

.approach-split > div::after,
.reviews-section::before,
.bottom-cta::after {
  color: rgba(55, 104, 94, 0.18);
  content: "❧";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 1rem;
}

.approach-split h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

.section-title {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0 auto 1.5rem;
  max-width: 760px;
  text-align: center;
}

.section-title span {
  background: var(--line);
  height: 1px;
  flex: 1;
}

.section-title p {
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.section-title.light p {
  color: white;
}

.section-title.light span {
  background: rgba(255, 255, 255, 0.35);
}

.values-section,
.education-section,
.reviews-section {
  padding: clamp(2rem, 5vw, 4.2rem) clamp(1rem, 8vw, 6rem);
  position: relative;
}

.values-grid,
.education-grid,
.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.value-card {
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.line-icon,
.round-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.line-icon {
  border: 2px solid rgba(55, 104, 94, 0.45);
  border-radius: 8px;
  color: var(--green);
  font-size: 2rem;
  height: 70px;
  margin-bottom: 1rem;
  width: 70px;
}

.value-card h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.value-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.home-dogs-section {
  background: var(--green);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 8vw, 6rem);
}

.home-dogs-layout {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1.95fr);
  margin: 0 auto;
  max-width: 1160px;
}

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

.home-dog-card,
.featured-dog-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  text-align: center;
}

.home-dog-card img,
.featured-dog-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.home-dog-card div,
.featured-dog-card div {
  padding: 1rem;
}

.featured-dog-card {
  text-align: left;
}

.featured-dog-card img {
  aspect-ratio: 1 / 1;
}

.featured-dog-card span {
  color: var(--rose);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.home-dog-card h3,
.featured-dog-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.featured-dog-card h3 {
  font-size: 2rem;
}

.home-dog-card p,
.featured-dog-card p {
  color: var(--muted);
}

.home-dog-card p {
  display: -webkit-box;
  font-size: 0.9rem;
  min-height: 4.4rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mini-button {
  background: var(--green);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
}

.education-card,
.review-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(38, 48, 47, 0.06);
}

.education-card {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 0.2rem 1rem;
  grid-template-columns: 74px 1fr;
  min-height: 150px;
  padding: 1rem;
  text-decoration: none;
}

.round-icon {
  background: var(--sage);
  border-radius: 50%;
  color: var(--green);
  font-size: 2rem;
  grid-row: span 3;
  height: 68px;
  width: 68px;
}

.education-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.15;
}

.education-card small {
  color: var(--muted);
}

.education-card b {
  color: var(--green);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.reviews-section::before {
  bottom: auto;
  left: 1rem;
  right: auto;
  top: 1rem;
}

.review-card {
  padding: 1.35rem;
}

.review-card span {
  color: var(--gold);
  letter-spacing: 0.1em;
}

.review-card p {
  color: var(--ink);
  font-size: 0.95rem;
}

.review-card strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.bottom-cta {
  background: var(--soft);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 330px;
  position: relative;
}

.bottom-cta img {
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  width: 100%;
}

.bottom-cta > div {
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.bottom-cta h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
}

.hero-media {
  background: var(--soft);
  min-height: 440px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  align-self: center;
  padding: clamp(2rem, 7vw, 5rem);
}

.hero.image-right .hero-media {
  grid-column: 2;
  grid-row: 1;
}

.hero.image-right .hero-copy {
  grid-column: 1;
  grid-row: 1;
}

.eyebrow {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 700;
}

h2 {
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

p {
  margin: 0 0 1rem;
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  max-width: 66ch;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button.primary,
button.primary {
  background: var(--green);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}

.button.danger {
  background: #8f3f35;
  color: white;
}

button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.intro-grid,
.dog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.feature-card,
.dog-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(38, 48, 47, 0.08);
  overflow: hidden;
}

.feature-card {
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}

.feature-card p,
.content-text p,
.dog-card p,
.facts-wrap p {
  color: var(--muted);
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.content-band:not(:has(.content-image)) .content-text {
  grid-column: 1 / -1;
}

.content-band:has(.content-grid-lanes) {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  width: 100%;
}

.content-band:has(.content-grid-lanes) .content-text,
.content-band:has(.content-grid-lanes) .content-grid-lanes {
  max-width: none;
  width: 100%;
}

.content-text {
  align-items: start;
  column-gap: 0.75rem;
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: 0.75rem;
  min-height: 180px;
}

.content-band.layout-centered {
  display: block;
  text-align: center;
}

.content-band.layout-centered .content-text,
.content-band.layout-centered .section-inner-items {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}

.content-band.layout-image-left .content-image {
  order: -1;
}

.content-band.layout-image-right .content-image {
  order: 2;
}

.content-band.layout-wide {
  grid-template-columns: 1fr;
  max-width: none;
}

.content-band.layout-wide .content-image img,
.image-only-band.layout-wide .wide-image img {
  aspect-ratio: 16 / 6;
  border-radius: 0;
}

.content-band.layout-card-grid {
  grid-template-columns: 1fr;
}

.section-inner-items {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1.25rem;
}

[data-item-columns="1"] .section-inner-items {
  grid-template-columns: minmax(0, 1fr);
}

[data-item-columns="2"] .section-inner-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-item-columns="3"] .section-inner-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-item-columns="4"] .section-inner-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-item-columns="5"] .section-inner-items {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

[data-item-columns="6"] .section-inner-items {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.inner-item {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}

.content-text > .inner-item {
  align-self: start;
  grid-column: span 4;
  margin-top: 0;
  min-width: 0;
}

.content-text > .inner-item:not(.legacy-heading-block):not(.legacy-text-block) {
  display: block;
  margin-right: 0;
  max-width: none;
  vertical-align: top;
  width: auto;
}

.content-text > .legacy-heading-block,
.content-text > .legacy-text-block {
  grid-column: 1 / -1;
}

.content-text > .inner-image {
  grid-column: span 4;
  width: auto;
}

.content-text > .inner-text,
.content-text > .inner-html {
  grid-column: span 4;
  width: auto;
}

.content-text > .inner-button {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  justify-content: center;
  min-height: 0;
  margin-right: 0;
  padding: 0;
  vertical-align: top;
  width: 100%;
}

.content-text > .inner-button .button {
  justify-content: center;
  margin: 0;
  width: 100%;
}

.content-grid-lanes {
  align-items: start;
  display: grid;
  gap: 0.75rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
}

.content-grid-lanes > .inner-item {
  align-self: start;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.content-grid-lanes > .inner-button {
  align-items: stretch;
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

.content-grid-lanes > .inner-button .button {
  justify-content: center;
  margin: 0;
  width: 100%;
}

.content-lane-left {
  grid-column: 1 / span 4;
}

.content-lane-middle {
  grid-column: 5 / span 4;
}

.content-lane-right {
  grid-column: 9 / span 4;
}

.content-lane {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.content-lane > .inner-item {
  align-self: stretch;
  box-sizing: border-box;
  display: block;
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.content-lane > .inner-item.admin-block-selected {
  max-width: none;
}

.content-lane > .inner-button {
  align-self: stretch;
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

.content-lane > .inner-button .button {
  justify-content: center;
  margin: 0;
  width: 100%;
}

.content-wide-item {
  min-width: 0;
}

.content-wide-item > .inner-item {
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 1180px) {
  .content-grid-lanes {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .content-lane-left {
    grid-column: 1 / span 4;
  }

  .content-lane-middle {
    grid-column: 5 / span 4;
  }

  .content-lane-right {
    grid-column: 1 / span 4;
  }

  .content-grid-lanes > .content-wide-item {
    grid-column: 1 / -1 !important;
  }
}

.inner-wrap-text {
  overflow: hidden;
}

.inner-wrap-text img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  float: left;
  margin: 0 1rem 0.55rem 0;
  object-fit: cover;
  shape-outside: inset(0 round 8px);
  width: min(44%, 180px);
}

.inner-wrap-text h3,
.inner-wrap-text p {
  margin-top: 0;
}

.inner-image img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.inner-image {
  display: flex;
  flex-direction: column;
}

.inner-image img {
  flex: 1 1 auto;
  min-height: 0;
}

.inner-image.resized-block img {
  aspect-ratio: auto;
  height: 100%;
}

.content-band.reverse {
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.9fr);
}

.content-band.reverse .content-text {
  order: 2;
}

.content-image img,
.dog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.dog-card a {
  display: grid;
  gap: 0.8rem;
  height: 100%;
  padding: 0.8rem;
  text-decoration: none;
}

.dog-card span {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dog-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0;
}

.facts-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.fact-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list li,
.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.page-heading {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) 1rem;
  text-align: center;
}

.page-heading p {
  color: var(--muted);
  font-size: 1.12rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem) clamp(2rem, 7vw, 5rem);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  background: var(--ink);
  color: white;
  padding: clamp(2rem, 5vw, 3rem);
}

.site-footer a {
  display: block;
  color: white;
}

.photo-note {
  color: rgba(255, 255, 255, 0.74);
  grid-column: 1 / -1;
  max-width: 90ch;
}

.site-footer p {
  margin: 0;
}

.admin-shell {
  min-height: calc(100vh - 180px);
  padding: 0;
}

.admin-login {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 4rem auto;
  max-width: 520px;
  padding: 2rem;
}

.admin-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-app {
  display: block;
  margin: 0;
  max-width: none;
}

.hidden {
  display: none !important;
}

.admin-editor {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.admin-side {
  align-self: start;
  display: grid;
  gap: 0.5rem;
  position: sticky;
  top: 96px;
}

.admin-side button {
  justify-content: flex-start;
  background: var(--soft);
}

.admin-side button.active {
  background: var(--green);
  color: white;
}

.admin-editor label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.admin-actions {
  bottom: 1rem;
  left: 1rem;
  pointer-events: none;
  position: fixed;
  z-index: 220;
}

.page-manager {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(1rem, 4vw, 2rem);
}

.page-manager-head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-manager-head p {
  color: var(--muted);
  margin: 0;
}

.page-list {
  display: grid;
  gap: 0.7rem;
}

.page-list article {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.page-list article div {
  display: grid;
  gap: 0.2rem;
}

.page-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

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

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.visual-builder h1,
.visual-builder h2 {
  margin-bottom: 0.45rem;
}

.builder-toolbar {
  align-items: center;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
  position: sticky;
  top: 0;
  z-index: 80;
}

.builder-toolbar p {
  color: var(--muted);
  margin: 0;
}

.builder-actions {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  min-width: 320px;
}

.builder-actions .button,
.builder-actions button,
.builder-actions select {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
}

.builder-actions label {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  margin: 0;
  max-width: 220px;
}

.builder-actions label select {
  min-width: 130px;
}

.canvas-editor {
  background: #e9e1d2;
  min-height: calc(100vh - 74px);
}

.canvas-workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.canvas-pane.preview-pane {
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 60px rgba(38, 48, 47, 0.16);
  max-width: 1440px;
  margin: 0 auto;
  overflow: auto;
  padding: 0;
  position: static;
}

.insert-panel {
  align-self: start;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: -8px 0 28px rgba(38, 48, 47, 0.08);
  display: grid;
  gap: 0.5rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 0;
  position: sticky;
  top: 6rem;
}

.side-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: sticky;
  top: 0;
  z-index: 2;
}

.side-tabs button {
  background: white;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #5f6368;
  font-size: 0.78rem;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.35rem;
}

.side-tabs button.active {
  background: white;
  border-bottom-color: var(--green);
  color: var(--green);
}

.side-tab-panel {
  display: none;
  gap: 0.5rem;
  padding: 0.75rem;
}

.side-tab-panel.active {
  display: grid;
}

.insert-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.4rem 0;
  width: 100%;
}

.insert-panel button {
  background: white;
  border: 1px solid var(--line);
  justify-content: flex-start;
}

.insert-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.insert-tool {
  align-items: center;
  border: 0 !important;
  color: #5f6368;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  min-height: 70px;
  padding: 0.45rem;
}

.insert-tool span {
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 800;
}

.insert-group {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  margin: 0.5rem -0.75rem 0;
  padding: 0.75rem;
}

.insert-group-title {
  color: #5f6368;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.layout-thumb {
  border-color: #dadce0 !important;
  border-radius: 0 !important;
  min-height: 72px;
  padding: 0.45rem !important;
}

.thumb {
  display: grid;
  gap: 0.25rem;
  height: 54px;
  width: 100%;
}

.thumb::before,
.thumb::after,
.thumb span {
  background: #e8eaed;
  border: 1px solid #dadce0;
  content: "";
  display: block;
}

.thumb.image-text {
  grid-template-columns: 0.8fr 1.1fr;
}

.thumb.image-text::before,
.thumb.image-left::before {
  background: #f1f3f4;
}

.thumb.image-text::after,
.thumb.image-left::after,
.thumb.two-columns::before,
.thumb.two-columns::after {
  background: repeating-linear-gradient(#bdc1c6 0 2px, transparent 2px 8px);
  border: 0;
}

.thumb.two-images,
.thumb.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.thumb.image-left {
  grid-template-columns: 0.55fr 1.25fr;
}

.thumb.three-cards {
  grid-template-columns: repeat(3, 1fr);
}

.thumb.gallery {
  grid-template-columns: repeat(4, 1fr);
}

.block-list {
  gap: 0.15rem;
}

.block-list-item {
  align-items: center;
  border: 0 !important;
  color: #5f6368;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 28px 1fr;
  min-height: 44px;
  padding: 0.45rem 0.25rem !important;
}

.block-list-item span {
  color: #5f6368;
  font-size: 1.15rem;
  text-align: center;
}

.side-page-row {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr auto auto;
}

.side-page-row button {
  font-size: 0.82rem;
  min-height: 36px;
  padding: 0.45rem 0.55rem;
}

.insert-panel small {
  color: var(--muted);
  line-height: 1.35;
}

.font-preview {
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
}

.floating-actions .font-preview {
  min-width: 190px;
  white-space: nowrap;
}

.canvas-pane.preview-pane iframe {
  border: 0;
  border-radius: 0;
  display: block;
  height: calc(100vh - 170px);
  margin: 0;
  min-height: 720px;
}

.canvas-pane.preview-pane iframe.desktop-preview {
  min-width: 1280px;
  width: 100%;
}

.canvas-pane.preview-pane iframe.mobile-preview {
  border: 10px solid #26302f;
  border-radius: 28px;
  height: 780px;
  margin: 0 auto;
  max-width: 390px;
  width: 390px;
}

.floating-editor {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(118, 135, 119, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(38, 48, 47, 0.16);
  display: flex;
  gap: 0.75rem;
  left: 50%;
  max-width: min(760px, calc(100vw - 2rem));
  padding: 0.65rem 0.75rem;
  position: fixed;
  top: 5.4rem;
  transform: translateX(-50%);
  z-index: 90;
}

.floating-editor > div:first-child {
  display: grid;
  min-width: 180px;
}

.floating-editor span {
  color: var(--muted);
  font-size: 0.82rem;
}

.floating-editor img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  width: 54px;
}

.floating-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.floating-actions select,
.floating-actions input[type="color"],
.floating-actions input[type="number"] {
  height: 42px;
  padding: 0.35rem 0.5rem;
  width: auto;
}

.floating-actions input[type="color"] {
  min-width: 48px;
}

.floating-actions input[data-button-label-input],
.floating-actions input[data-button-href-input] {
  min-width: 160px;
  width: 180px;
}

.compact-color {
  align-items: center;
  display: inline-flex !important;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  margin: 0 !important;
}

.mini-field {
  align-items: center;
  display: inline-flex !important;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  margin: 0 !important;
}

.mini-field input[type="number"] {
  max-width: 86px;
}

.structure-drawer {
  background: rgba(255, 253, 248, 0.98);
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -12px 34px rgba(38, 48, 47, 0.12);
  left: 0;
  max-height: 62vh;
  overflow: auto;
  padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
  position: fixed;
  right: 0;
  z-index: 95;
}

.structure-drawer:not([open]) {
  max-height: none;
  overflow: visible;
  padding-bottom: 0.7rem;
}

.structure-drawer summary {
  cursor: pointer;
  font-weight: 800;
}

.structure-drawer .builder-pane {
  margin-top: 1rem;
}

.block-add-row,
.preview-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.builder-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
}

.builder-pane,
.preview-pane,
.builder-card,
.editor-drawer,
.click-editor {
  min-width: 0;
}

.builder-pane {
  display: grid;
  gap: 1rem;
}

.builder-card,
.editor-drawer,
.click-editor {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(118, 135, 119, 0.22);
  border-radius: 8px;
  padding: 0.9rem;
}

.editor-drawer {
  display: block;
}

.editor-drawer summary {
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  margin: -0.1rem 0 0.7rem;
}

.click-editor {
  background: #f7f3ea;
  border-color: rgba(85, 124, 103, 0.28);
}

.click-editor.active {
  background: white;
  box-shadow: 0 8px 24px rgba(38, 48, 47, 0.06);
}

.click-editor p {
  color: var(--muted);
  margin: 0;
}

.click-editor-head,
.inline-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.inline-actions {
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.section-manager {
  background: transparent;
  border-style: dashed;
}

.builder-card-head,
.section-card-head,
.preview-head,
.asset-picker-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.section-card-head {
  align-items: flex-start;
}

.preview-pane {
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(38, 48, 47, 0.08);
  padding: 0.75rem;
  position: sticky;
  top: 96px;
}

.preview-pane iframe {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 680px;
  margin-top: 0.75rem;
  width: 100%;
}

.preview-pane iframe.mobile-preview {
  display: block;
  height: 740px;
  margin-left: auto;
  margin-right: auto;
  max-width: 390px;
}

.active-choice {
  background: var(--green) !important;
  color: white !important;
}

.section-list {
  display: grid;
  gap: 0.85rem;
}

.section-card {
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(55, 104, 94, 0.22);
  border-radius: 8px;
  padding: 0.85rem;
}

.section-card.dragging {
  opacity: 0.55;
}

.drag-handle {
  background: var(--green);
  border-radius: 6px;
  color: white;
  cursor: grab;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.advanced-tab {
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
  opacity: 0.82;
}

.section-fields {
  margin-top: 0.8rem;
}

.html-band .content-text {
  max-width: 920px;
}

.html-snippet > *:first-child {
  margin-top: 0;
}

.image-only-band {
  grid-template-columns: 1fr;
}

.image-only-band .wide-image img {
  aspect-ratio: 16 / 7;
  max-height: 520px;
}

.insert-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.25rem;
  min-width: 210px;
  padding: 0.45rem;
  position: fixed;
  z-index: 200;
}

.insert-menu strong {
  color: var(--muted);
  font-size: 0.76rem;
  padding: 0.4rem 0.55rem 0.2rem;
  text-transform: uppercase;
}

.insert-menu button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.55rem;
  text-align: left;
}

.insert-menu button:hover {
  background: var(--soft);
}

.image-tools {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 88px 1fr;
  margin-top: 0.5rem;
  padding: 0.55rem;
}

.image-tools img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  width: 88px;
}

.image-tools div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.asset-picker {
  align-items: center;
  background: rgba(38, 48, 47, 0.52);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100;
}

.asset-picker-panel {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 86vh;
  max-width: 980px;
  overflow: auto;
  padding: 1rem;
  width: min(980px, 100%);
}

.asset-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin-top: 1rem;
}

.asset-grid button {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem;
}

.asset-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
    padding: 0.85rem 1rem;
  }

  .hero,
  .approach-split,
  .bottom-cta,
  .content-band,
  .content-band.reverse,
  .facts-wrap,
  .site-footer,
  .admin-app {
    grid-template-columns: 1fr;
  }

  .home-hero {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.84) 48%, rgba(255, 253, 248, 0.24) 100%),
      var(--hero-image) 68% bottom / auto 100% no-repeat;
    background-color: var(--soft);
    min-height: 720px;
    padding: 2rem 1rem;
  }

  .hero {
    min-height: 0;
  }

  .hero.image-right .hero-media,
  .hero.image-right .hero-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-media {
    min-height: 320px;
  }

  .hero-copy {
    padding: 1.4rem 1rem 2rem;
  }

  .content-band.reverse .content-text {
    order: 0;
  }

  .content-text {
    grid-template-columns: 1fr;
  }

  .content-grid-lanes {
    grid-template-columns: 1fr;
  }

  .content-lane-left,
  .content-lane-middle,
  .content-lane-right,
  .content-grid-lanes > .content-wide-item {
    grid-column: 1 / -1 !important;
  }

  .content-text > .inner-item:not(.legacy-heading-block):not(.legacy-text-block),
  .content-text > .inner-image,
  .content-text > .inner-text,
  .content-text > .inner-html {
    grid-column: 1 / -1;
    width: 100%;
  }

  .content-text > .inner-button {
    grid-column: 1 / -1;
    width: fit-content;
  }

  [data-item-columns] .section-inner-items {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .dog-grid,
  .values-grid,
  .education-grid,
  .reviews-grid,
  .home-dogs-layout,
  .home-dogs-grid {
    grid-template-columns: 1fr;
  }

  .home-dogs-grid {
    max-width: 430px;
  }

  .approach-split > img,
  .bottom-cta img {
    min-height: 300px;
  }

  .admin-side {
    position: static;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .builder-toolbar,
  .builder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .builder-actions label {
    grid-column: 1 / -1;
    max-width: none;
  }

  .builder-actions label select {
    width: 100%;
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }

  .canvas-workspace {
    grid-template-columns: 1fr;
  }

  .insert-panel {
    order: -1;
    position: static;
  }

  .preview-pane {
    position: static;
  }

  .preview-pane iframe {
    height: 520px;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.4rem;
  }

  .home-hero h1 {
    font-size: 3.3rem;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-actions {
    display: grid;
  }

  .section-title {
    gap: 0.6rem;
  }

  .education-card {
    grid-template-columns: 60px 1fr;
  }

  .round-icon {
    height: 54px;
    width: 54px;
  }
}
