/* The public EverGem Lighting site (public_home.html) and the Home
   Designer (design.html). Brand colors come from the logo: navy #0c2646,
   gold #f8c257, white; the light cream panel follows the flyer. Loaded
   after style.css, so these win on the public pages. */
:root {
  --eg-navy: #0c2646;
  --eg-navy-deep: #071a33;
  --eg-navy-soft: #163764;
  --eg-gold: #f8c257;
  --eg-gold-deep: #e9a93a;
  --eg-cream: #f8f5ee;
  --eg-ink: #13233d;
  --eg-ink-muted: #51617a;
  --eg-line: #e4dfd3;
}

body.pub-page {
  min-height: 100vh;
  background: var(--eg-cream);
  background-attachment: initial;
  color: var(--eg-ink);
  /* The staff site is dark (color-scheme: dark in style.css); the public
     site is light, so the browser draws its checkboxes, dropdowns and
     scrollbars light too. */
  color-scheme: light;
}

/* --- Header ---------------------------------------------------------- */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 600;
  background: var(--eg-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}

.pub-brand .brand-mark {
  width: 2.6rem;
  height: 2.6rem;
}

.pub-brand-name {
  display: block;
  width: auto;
  height: 1.5rem;
}

.pub-brand-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.pub-nav a:not(.pub-btn) {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pub-nav .pub-btn {
  white-space: nowrap;
}

.pub-nav a:not(.pub-btn):hover {
  color: var(--eg-gold);
}

/* The staff tab: quieter than the page links, and kept on small screens. */
.pub-nav a.pub-staff-link {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
}

.pub-nav a.pub-staff-link:hover {
  border-color: var(--eg-gold);
}

/* The count of new staff notifications on the Staff link (_public_header.html),
   and the dot on the Menu button when that link is folded into the menu. */
.pub-notify-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--eg-gold);
  color: #14161a;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: 0.05em;
}

.pub-menu-btn {
  position: relative;
}

.pub-menu-dot {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--eg-gold);
  box-shadow: 0 0 0 2px var(--eg-navy);
}

/* The page links, Get a Quote, and (on screens under 1240px) the Menu button
   that folds the links into a panel under the header (public-nav.js). */
.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.pub-nav a[aria-current="page"] {
  color: var(--eg-gold);
}

.pub-nav-menu-only,
.pub-menu-btn {
  display: none;
}

.pub-quote-btn {
  white-space: nowrap;
}

.pub-menu-btn {
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: none;
  color: #fff;
  font: 700 0.85rem var(--font);
  cursor: pointer;
}

.pub-menu-icon,
.pub-menu-icon::before,
.pub-menu-icon::after {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.pub-menu-icon {
  position: relative;
}

.pub-menu-icon::before,
.pub-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.pub-menu-icon::before {
  top: -5px;
}

.pub-menu-icon::after {
  top: 5px;
}

@media (max-width: 1240px) {
  .pub-menu-btn {
    display: inline-flex;
  }

  .pub-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--eg-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px rgba(7, 26, 51, 0.35);
  }

  .pub-nav-links.is-open {
    display: flex;
  }

  .pub-nav-links a {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
  }

  .pub-nav-links a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .pub-nav .pub-quote-btn {
    display: none;
  }

  .pub-nav-menu-only {
    display: block;
  }
}

/* Staff moves into the menu on a phone: the header keeps the logo, Design
   and Menu. */
.pub-nav-links .pub-nav-staff {
  display: none;
}

@media (max-width: 560px) {
  .pub-nav a.pub-staff-link {
    display: none;
  }

  .pub-nav-links .pub-nav-staff {
    display: block;
  }
}

@media (max-width: 420px) {
  .pub-menu-label {
    display: none;
  }
}

/* --- Buttons --------------------------------------------------------- */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.pub-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.pub-btn-gold {
  background: var(--eg-gold);
  border-color: var(--eg-gold);
  color: var(--eg-navy);
}

.pub-btn-gold:hover {
  background: #ffd47a;
  border-color: #ffd47a;
}

.pub-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.pub-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pub-btn-navy {
  background: var(--eg-navy);
  border-color: var(--eg-navy);
  color: #fff;
}

.pub-btn-outline {
  background: #fff;
  border-color: var(--eg-line);
  color: var(--eg-ink);
}

.pub-btn-outline:hover {
  border-color: var(--eg-navy);
}

.pub-btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

/* --- Hero ------------------------------------------------------------ */
.pub-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(90vh, 860px);
  padding: 4rem 1.25rem;
  background:
    linear-gradient(90deg, rgba(7, 26, 51, 0.92) 0%, rgba(7, 26, 51, 0.7) 38%, rgba(7, 26, 51, 0.1) 75%),
    linear-gradient(0deg, rgba(7, 26, 51, 0.55), transparent 35%),
    var(--hero-image) center / cover no-repeat,
    var(--eg-navy);
  color: #fff;
}

.pub-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pub-hero-wordmark {
  display: block;
  width: min(420px, 80%);
  height: auto;
  margin-bottom: 1.25rem;
}

.pub-hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.pub-lead {
  max-width: 540px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.55;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.pub-actions-center {
  justify-content: center;
}

/* --- Sections -------------------------------------------------------- */
.pub-section-title {
  margin: 0 0 2rem;
  color: var(--eg-navy);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}

.pub-features,
.pub-how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.pub-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(12, 38, 70, 0.08);
}

.pub-feature {
  padding: 2rem 1.4rem;
  text-align: center;
}

.pub-feature + .pub-feature {
  border-left: 1px solid var(--eg-line);
}

.pub-feature-icon {
  width: 72px;
  height: 54px;
  color: var(--eg-navy);
}

.pub-feature-dot,
.pub-feature-sun,
.pub-feature-accent-fill {
  fill: var(--eg-gold);
}

.pub-feature-accent,
.pub-feature-sun-ray {
  stroke: var(--eg-gold);
}

.pub-feature-snow {
  stroke: #2f8fd8;
}

.pub-feature h3 {
  margin: 0.9rem 0 0;
  color: var(--eg-navy);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-feature h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 0.6rem auto 0;
  border-radius: 2px;
  background: var(--eg-gold);
}

.pub-feature p {
  margin: 0.7rem 0 0;
  color: var(--eg-ink-muted);
  line-height: 1.5;
}

.pub-how {
  padding-top: 1rem;
}

/* How we compare (public_home.html): the intro and uses on the left, the
   control system as the main point on the right, with smaller points
   under it. */
.pub-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4.5rem;
}

.pub-compare-intro h2 {
  margin: 0 0 1rem;
  color: var(--eg-navy);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.pub-compare-intro p {
  margin: 0 0 0.9rem;
  color: var(--eg-ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pub-compare-intro h3 {
  margin: 1.6rem 0 0.7rem;
  color: var(--eg-navy);
  font-size: 1rem;
}

.pub-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-uses li {
  padding: 0.4rem 0.85rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 999px;
  color: var(--eg-ink);
  font-size: 0.92rem;
}

.pub-compare-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-compare-main {
  padding: 1.9rem;
  background: var(--eg-navy);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(12, 38, 70, 0.18);
}

.pub-compare-tag {
  color: var(--eg-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pub-compare-main h3 {
  margin: 0.4rem 0 0.8rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
}

.pub-compare-main p {
  margin: 0 0 0.8rem;
  line-height: 1.65;
}

.pub-compare-main p:last-child {
  margin-bottom: 0;
}

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

.pub-compare-subs article {
  padding: 1.3rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
}

.pub-compare-subs h4 {
  margin: 0 0 0.45rem;
  color: var(--eg-navy);
  font-size: 1.05rem;
}

.pub-compare-subs p {
  margin: 0;
  color: var(--eg-ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pub-compare-subs a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--eg-navy);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pub-compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 560px) {
  .pub-compare-subs {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-compare-main {
    padding: 1.4rem;
  }
}

.pub-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-steps li {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
}

.pub-step-num {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--eg-navy);
  color: var(--eg-gold);
  font-weight: 800;
}

.pub-steps h3 {
  margin: 0.9rem 0 0.4rem;
  color: var(--eg-navy);
  font-size: 1.15rem;
}

.pub-steps p {
  margin: 0;
  color: var(--eg-ink-muted);
  line-height: 1.55;
}

/* Choose a Photo, with Take a Photo beside it only where there's a camera
   to open: phones and tablets (a touch screen as the main pointer). */
.design-photo-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.design-photo-btns .pub-btn {
  flex: 1 1 10rem;
}

.design-camera-btn {
  display: none;
}

@media (pointer: coarse) {
  .design-camera-btn {
    display: inline-flex;
  }

  /* 16px or more, or iPhones zoom the whole page in on a tapped field. */
  body.pub-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  body.pub-page select,
  body.pub-page textarea {
    font-size: max(16px, 1em);
  }
}

/* How it works (how_it_works.html): the whole process as a numbered
   timeline, a line running down through the step numbers. */
.how-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
}

.how-kicker {
  margin: 0 0 0.5rem;
  color: var(--eg-gold-deep);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-intro h1 {
  margin: 0;
  color: var(--eg-navy);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.how-lead {
  margin: 1rem 0 0;
  color: var(--eg-ink-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.how-steps {
  position: relative;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.how-steps::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: calc(1.2rem - 1px);
  width: 2px;
  background: var(--eg-line);
}

.how-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1.1rem;
}

.how-step + .how-step {
  margin-top: 1.25rem;
}

.how-step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--eg-navy);
  color: var(--eg-gold);
  font-weight: 800;
  box-shadow: 0 0 0 5px var(--eg-cream);
}

.how-step > div {
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
}

.how-step h2 {
  margin: 0 0 0.55rem;
  color: var(--eg-navy);
  font-size: 1.2rem;
}

.how-step p {
  margin: 0;
  color: var(--eg-ink);
  line-height: 1.65;
}

.how-step p + p {
  margin-top: 0.7rem;
}

.how-step a,
.how-more a {
  color: var(--eg-navy);
  font-weight: 700;
}

.how-more {
  margin-top: 2rem;
  text-align: center;
  color: var(--eg-ink-muted);
}

@media (max-width: 560px) {
  .how-page {
    padding-top: 2rem;
  }

  .how-step {
    gap: 0.75rem;
  }

  .how-step > div {
    padding: 1rem 1.1rem;
  }
}

/* FAQ (public_home.html): each question opens on its own. */
.pub-faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4.5rem;
}

.pub-faq-list {
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 18px;
  overflow: hidden;
}

.pub-faq details + details {
  border-top: 1px solid var(--eg-line);
}

.pub-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  color: var(--eg-navy);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.pub-faq summary::-webkit-details-marker {
  display: none;
}

.pub-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--eg-cream);
  color: var(--eg-navy);
  font-size: 1.2rem;
  line-height: 1;
}

.pub-faq details[open] summary::after {
  content: "\2212";
  background: var(--eg-gold);
}

.pub-faq summary:hover {
  background: var(--eg-cream);
}

.pub-faq summary:focus-visible {
  outline: 3px solid var(--eg-gold);
  outline-offset: -3px;
}

.pub-faq details p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: var(--eg-ink-muted);
  line-height: 1.65;
}

.pub-faq details a {
  color: var(--eg-navy);
  font-weight: 700;
}

.pub-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 3.5rem 1.25rem;
  background: var(--eg-navy);
  color: #fff;
  text-align: center;
}

.pub-band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
}

/* --- Footer ---------------------------------------------------------- */
.pub-footer {
  background: var(--eg-navy-deep);
  color: rgba(255, 255, 255, 0.8);
}

.pub-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

.pub-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pub-footer-brand strong {
  display: block;
  color: #fff;
}

.pub-footer-brand span {
  font-size: 0.9rem;
}

.pub-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.pub-footer-links a:hover {
  color: var(--eg-gold);
}

.pub-footer-inner {
  align-items: flex-start;
}

.pub-footer-contact {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.pub-footer-contact a {
  color: #fff;
}

.pub-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(8rem, auto));
  gap: 1.5rem 2.5rem;
}

.pub-footer-cols h2 {
  margin: 0 0 0.6rem;
  color: var(--eg-gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pub-footer-cols a {
  display: block;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.pub-footer-cols a:hover {
  color: var(--eg-gold);
}

.pub-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pub-footer-legal {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.pub-footer-social {
  display: flex;
  gap: 1rem;
  margin: 0;
  font-size: 0.85rem;
}

.pub-footer-social a {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 700px) {
  .pub-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Plain pages (public_base.html): legal, warranty, financing and the
   rest, plus the quote and contact forms ------------------------------- */
.pub-doc-page {
  padding: 3rem 1.25rem 3.5rem;
}

.pub-doc {
  max-width: 820px;
  margin: 0 auto;
}

.pub-doc-wide {
  max-width: 1100px;
}

.pub-doc h1 {
  margin: 0;
  color: var(--eg-navy);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.pub-doc h2 {
  margin: 2rem 0 0.6rem;
  color: var(--eg-navy);
  font-size: 1.3rem;
}

.pub-doc p,
.pub-doc li,
.pub-doc dd {
  color: var(--eg-ink);
  line-height: 1.7;
}

.pub-doc a:not(.pub-btn) {
  color: var(--eg-navy);
  font-weight: 700;
}

.pub-doc .how-kicker a,
.pub-form-intro .how-kicker a {
  color: inherit;
  text-decoration: none;
}

.pub-form-intro a:not(.pub-btn) {
  color: var(--eg-navy);
  font-weight: 700;
}

.pub-doc-list {
  padding-left: 1.2rem;
}

.pub-doc-list li + li {
  margin-top: 0.5rem;
}

.pub-doc-terms dt {
  margin-top: 0.8rem;
  color: var(--eg-navy);
  font-weight: 700;
}

.pub-doc-terms dd {
  margin: 0.2rem 0 0;
}

.pub-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.pub-doc-grid > div {
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
}

.pub-doc-grid h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.pub-doc-grid p {
  margin: 0;
}

.pub-doc .pub-actions {
  margin-top: 1.5rem;
}

.pub-legal h2 {
  font-size: 1.15rem;
}

.pub-legal-date {
  margin: 0.6rem 0 1.5rem;
  color: var(--eg-ink-muted);
  font-size: 0.9rem;
}

.pub-warranty-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.pub-warranty-card {
  padding: 1.5rem;
  background: var(--eg-navy);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.pub-warranty-card strong {
  display: block;
  color: var(--eg-gold);
  font-size: 2.4rem;
  line-height: 1;
}

.pub-warranty-card span {
  display: block;
  margin-top: 0.3rem;
  color: #fff;
  font-weight: 700;
}

.pub-warranty-card p {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Forms. */
.pub-form-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.pub-form-intro h1 {
  margin: 0;
  color: var(--eg-navy);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
}

.pub-form-intro .how-lead a {
  color: var(--eg-navy);
  font-weight: 700;
}

.pub-form,
.pub-form-thanks {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 18px;
}

.pub-form-thanks h2 {
  margin: 0 0 0.4rem;
  color: var(--eg-navy);
}

.pub-form-thanks:focus {
  outline: none;
}

.pub-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.8rem;
}

.pub-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  color: var(--eg-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.pub-field-wide {
  grid-column: 1 / -1;
}

body.pub-page .pub-field input,
body.pub-page .pub-field select,
body.pub-page .pub-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--eg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--eg-ink);
  font: inherit;
  font-weight: 400;
}

.pub-form-hint {
  margin: -0.3rem 0 0.9rem;
  color: var(--eg-ink-muted);
  font-size: 0.82rem;
}

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

.pub-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--eg-ink-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.pub-consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--eg-navy);
}

.pub-consent a {
  color: var(--eg-navy);
  font-weight: 700;
}

.pub-form-error {
  margin: 0 0 0.8rem;
  color: #b42335;
  font-weight: 600;
}

.pub-contact-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 1.5rem 0 0;
}

.pub-contact-details dt {
  color: var(--eg-ink-muted);
  font-weight: 700;
}

.pub-contact-details dd {
  margin: 0;
}

.pub-contact-details a {
  color: var(--eg-navy);
  font-weight: 700;
}

@media (max-width: 800px) {
  .pub-form-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .pub-form-grid {
    grid-template-columns: 1fr;
  }

  .pub-form,
  .pub-form-thanks {
    padding: 1.2rem;
  }
}

/* Products, team and reviews (each only drawn once site_content.json has
   entries for it). */
.pub-product-grid,
.pub-team-grid,
.pub-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.pub-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
  color: var(--eg-ink);
  text-decoration: none;
}

.pub-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pub-product-card > div {
  padding: 1.1rem 1.25rem 1.25rem;
}

.pub-product-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.pub-product-card p {
  margin: 0;
  color: var(--eg-ink-muted);
}

.pub-product-more {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--eg-navy);
  font-weight: 700;
}

.pub-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.pub-product-photo {
  width: 100%;
  border-radius: 16px;
}

.pub-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.pub-spec-table th,
.pub-spec-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--eg-line);
  text-align: left;
  vertical-align: top;
}

.pub-spec-table th {
  width: 40%;
  color: var(--eg-ink-muted);
  font-weight: 600;
}

@media (max-width: 800px) {
  .pub-product-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pub-team-card {
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
  text-align: center;
}

.pub-team-card img {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  object-fit: cover;
}

.pub-team-card strong,
.pub-team-card span {
  display: block;
}

.pub-team-card span {
  color: var(--eg-ink-muted);
}

.pub-reviews {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4.5rem;
}

.pub-review {
  margin: 0;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
}

.pub-review-stars {
  margin: 0 0 0.5rem;
  color: var(--eg-gold-deep);
  letter-spacing: 0.1em;
}

.pub-review blockquote {
  margin: 0;
  color: var(--eg-ink);
  line-height: 1.6;
}

.pub-review figcaption {
  margin-top: 0.8rem;
  color: var(--eg-ink-muted);
  font-weight: 700;
}

/* --- Our work: install photos on the home page (public_home.html) ---- */
.pub-work {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4.5rem;
}

.pub-work-lead {
  max-width: 640px;
  margin: -1.2rem auto 2rem;
  color: var(--eg-ink-muted);
  text-align: center;
  line-height: 1.55;
}

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

.pub-work-item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--eg-navy-deep);
  aspect-ratio: 16 / 9;
}

.pub-work-item.is-lead {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;  /* as tall as the two rows beside it */
}

.pub-work-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pub-work-item:hover img,
.pub-work-item:focus-visible img {
  transform: scale(1.04);
}

.pub-work-item:focus-visible {
  outline: 3px solid var(--eg-gold);
  outline-offset: 3px;
}

.pub-work .pub-actions {
  margin-top: 1.75rem;
}

.pub-viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #040c18;
}

.pub-viewer::backdrop {
  background: #040c18;
}

.pub-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-viewer-img {
  max-width: calc(100vw - 8rem);
  max-height: calc(100vh - 6rem);
  object-fit: contain;
  border-radius: 8px;
}

.pub-viewer-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.pub-viewer-btn:hover,
.pub-viewer-btn:focus-visible {
  background: var(--eg-gold);
  color: var(--eg-navy);
}

.pub-viewer-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pub-viewer-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.pub-viewer-close { right: 1rem; top: 1rem; font-size: 1.8rem; }

.pub-viewer-count {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  pointer-events: none;
}

@media (max-width: 700px) {
  .pub-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .pub-work-item.is-lead {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .pub-viewer-img {
    max-width: 100vw;
    max-height: calc(100vh - 9rem);
    border-radius: 0;
  }

  .pub-viewer-prev,
  .pub-viewer-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .pub-viewer-count {
    bottom: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-work-item img {
    transition: none;
  }
}

/* --- Home Designer (design.html / design.js) -------------------------- */
.design-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.design-intro h1 {
  margin: 0;
  color: var(--eg-navy);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
}

.design-intro p {
  margin: 0.4rem 0 1.4rem;
  color: var(--eg-ink-muted);
}

.design-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.design-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.design-step {
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 14px;
}

.design-step.is-locked {
  opacity: 0.5;
  pointer-events: none;
}

/* "Try an example home" (design.js), a quieter choice under Choose a Photo. */
.design-example-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.35rem;
  border: none;
  background: none;
  color: var(--eg-navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.design-example-btn:hover {
  color: #b8862a;
}

.design-example-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.design-step h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  color: var(--eg-navy);
  font-size: 1.02rem;
}

.design-step h2 .pub-step-num {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.85rem;
}

.design-step p {
  margin: 0 0 0.75rem;
  color: var(--eg-ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.design-step .pub-btn {
  width: 100%;
}

.design-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.design-row .pub-btn {
  flex: 1;
}

.design-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
  color: var(--eg-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.design-field input,
.design-field textarea {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--eg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--eg-ink);
  font: 500 0.95rem var(--font);
}

.design-field input:focus,
.design-field textarea:focus {
  outline: 2px solid var(--eg-gold);
  outline-offset: 1px;
  border-color: var(--eg-gold);
}

.design-width {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.design-width input {
  width: 6rem;
}

.design-status {
  margin: 0.5rem 0 0;
  color: var(--eg-ink-muted);
  font-size: 0.85rem;
}

.design-status.is-done {
  color: #1d7a45;
  font-weight: 600;
}

.design-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.design-choice {
  padding: 0.6rem;
  border: 2px solid var(--eg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--eg-ink);
  font: 700 0.88rem var(--font);
  cursor: pointer;
}

.design-choice[aria-pressed="true"] {
  border-color: var(--eg-gold);
  background: #fff6e0;
}

body.pub-page .design-field select {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--eg-line);
  border-radius: 10px;
  background-color: #fff;
  color: var(--eg-ink);
  font: 600 0.95rem var(--font);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  cursor: pointer;
}

body.pub-page .design-field select:focus {
  border-color: var(--eg-gold) !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(248, 194, 87, 0.35) !important;
}

/* Custom Color: a small hue wheel, white at the middle (see pickFromWheel
   in design.js, which reads it the same way). */
.design-custom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.7rem;
}

/* One dropdown per line: the panel is too narrow to show both labels
   ("3000K · Soft White") side by side. */
.design-look-row {
  display: grid;
  grid-template-columns: 1fr;
}

.design-look-row .design-field select {
  width: 100%;
  min-width: 0;
}

/* The small grey button the wheel folds behind. Its dot shows the wheel's
   rainbow until a color is picked, then that color. */
.design-wheel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #eef0f3;
  color: var(--eg-ink);
  font: 600 0.85rem var(--font);
  cursor: pointer;
}

.design-wheel-toggle:hover {
  background: #e4e7ec;
}

.design-wheel-toggle.is-active {
  border-color: var(--eg-gold);
}

.design-wheel-toggle-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(#ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.design-wheel-toggle-caret {
  color: var(--eg-ink-muted);
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.design-wheel-toggle[aria-expanded="true"] .design-wheel-toggle-caret {
  transform: rotate(180deg);
}

.design-custom[hidden] {
  display: none;
}

/* The wheel lights up when it's the look in use. */
.design-custom {
  padding: 0.55rem;
  border: 2px solid transparent;
  border-radius: 14px;
}

.design-custom.is-active {
  border-color: var(--eg-gold);
  background: #fff6e0;
}

.design-wheel {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%),
    conic-gradient(#ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  box-shadow: 0 0 0 1px var(--eg-line), 0 6px 16px rgba(12, 38, 70, 0.15);
  cursor: crosshair;
  touch-action: none;
}

.design-wheel-marker {
  position: absolute;
  left: 72%;
  top: 28%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3fa9ff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.design-custom-side {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.design-swatch {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #3fa9ff;
  box-shadow: 0 0 0 1px var(--eg-line);
}

.design-custom-hint {
  color: var(--eg-ink-muted);
  font-size: 0.85rem;
}

.design-time {
  margin-top: 0.3rem;
}

.design-time-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.design-time-head strong {
  color: var(--eg-navy);
}

/* The day's own colors along the track: noon to sunset to night. */
body.pub-page .design-time input[type="range"] {
  width: 100%;
  height: 10px;
  margin: 0.4rem 0 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #8fd0ff 0%, #ffe2b8 22%, #ffb46a 38%, #ff8a5c 52%, #a878b8 68%, #4f6fd0 84%, #0b1530 100%);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.design-time + .design-time {
  margin-top: 0.75rem;
}

/* Brightness: an unlit bulb up to a bright gold one. */
body.pub-page .design-time input#design-brightness-input {
  background: linear-gradient(90deg, #4a3d2a 0%, #b8843a 35%, #f8c257 65%, #fff3c8 100%);
}

.design-time input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--eg-navy);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.design-time input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--eg-navy);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.design-time-scale {
  display: flex;
  justify-content: space-between;
  color: var(--eg-ink-muted);
  font-size: 0.75rem;
}

/* The photo with the estimate under it: stays in view while the steps
   beside it scroll (where it sticks is fitted to its height, see
   fitStageColumn in design.js). */
.design-main {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

/* A screen too short for both: the column runs the full height of the
   steps, the photo alone stays in view, and the estimate sits at the
   bottom, pushing the photo up when it's reached. */
.design-main.is-tall {
  position: relative;
  top: auto;
  align-self: stretch;
}

/* Beside the steps, a photo is never taller than the window has room for
   (below the header, inside the frame's padding): a tall one narrows to
   fit instead, so it can stay fully in view while the steps scroll. */
@media (min-width: 901px) {
  .design-main .design-stage-wrap .photo-stage {
    width: min(100%, (100vh - 120px) * var(--photo-aspect, 10));
  }
}

.design-main.is-tall .design-photo-track {
  flex: 1 0 auto;
}

.design-main.is-tall .design-stage-wrap {
  position: sticky;
  top: 84px;
}

.design-stage-wrap {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 0.6rem;
  background: var(--eg-navy);
  border-radius: 18px;
  overflow: hidden;
}

.design-empty {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.design-empty strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: 1.15rem;
}

/* The photo stage reuses the builder's .photo-stage / .photo-content so the
   rope drawing (placement.js) works unchanged; this just sizes it. */
.design-stage-wrap .photo-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  cursor: crosshair;
}

.design-stage-wrap .photo-content {
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

/* Clean edges: the box already has the photo's own shape, so the photo
   and its glow copy fill it exactly (no rounding gap at a side), and the
   time-of-day layers reach a pixel past it, clipped by the box, so no
   unshaded sliver of photo shows at an edge. */
.design-stage-wrap .photo-img,
.design-stage-wrap .rope-lit-photo {
  object-fit: fill;
}

.design-stage-wrap .photo-content > .photo-time-tint,
.design-stage-wrap .photo-content > .photo-night-shade {
  inset: -1px;
}

/* The estimate under the photo (updateEstimate in design.js). */
.design-estimate {
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 14px;
}

.design-estimate-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 1.5rem;
}

.design-estimate-label,
.design-estimate-length > span:first-child {
  display: block;
  color: var(--eg-ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.design-estimate-price {
  display: block;
  margin: 0.2rem 0 0.15rem;
  color: var(--eg-navy);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.design-estimate-basis,
.design-estimate-hint {
  display: block;
  color: var(--eg-ink-muted);
  font-size: 0.85rem;
}

.design-estimate-length {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.design-estimate-length input {
  width: 7.5rem;
}

.design-estimate-note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--eg-line);
  color: var(--eg-ink-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Remove Lights mode (setRemoving in design.js): each run of lights shows
   a red band when pointed at, so it's clear which one a tap removes. */
.design-removing .design-stage-wrap .photo-stage {
  cursor: default;
}

/* The staff builder keeps runs inert outside fullscreen (style.css); here
   they take taps while removing, and only then. */
.design-removing .design-stage-wrap .photo-stage .rope-item .rope-hit {
  stroke-width: 18;
  pointer-events: stroke;
  cursor: pointer;
}

.design-removing .design-stage-wrap .photo-stage .rope-item:hover .rope-hit {
  stroke: rgba(255, 70, 70, 0.45);
}

#design-remove-btn[aria-pressed="true"] {
  border-color: #d94a4a;
  background: #fff0f0;
  color: #b42335;
}

.design-measure-dot {
  position: absolute;
  z-index: 70;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--eg-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Smaller on a phone or tablet, where the fingertip already covers it. */
@media (pointer: coarse) {
  .design-measure-dot {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-width: 2px;
  }
}

.design-measure-dot.is-set {
  background: #2fbf71;
  transition: background 0.2s ease;
}

.design-measure-dot.is-fading {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.design-step .design-hint {
  margin: -0.2rem 0 0.4rem;
  color: var(--eg-ink-muted);
  font-size: 0.82rem;
}

.design-step .design-save-btn {
  margin-top: 0.55rem;
}

.design-banner {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  z-index: 80;
  transform: translateX(-50%);
  max-width: calc(100% - 3rem);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.88);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

/* The rope tool's floating controls (see startRopePlacement in
   placement.js) restyled for the public page, and moved from the screen's
   right edge (where they'd cover the end of a roofline) to a bar along
   the bottom. */
.pub-page .rope-hud {
  top: auto;
  right: auto;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: calc(100vw - 2rem);
  background: #fff;
  border: 1px solid var(--eg-line);
  color: var(--eg-ink);
  box-shadow: 0 18px 40px rgba(12, 38, 70, 0.2);
}

/* Moved onto the photo by design.js: just the buttons, in a row along the
   photo's bottom edge, with no panel behind them. */
.pub-page .design-stage-wrap .rope-hud {
  position: absolute;
  top: auto;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  transform: none;
  width: auto;
  max-width: none;
  gap: 0.45rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
  z-index: 30;
}

.pub-page .design-stage-wrap .rope-hud-hint {
  display: none;
}

.pub-page .design-stage-wrap .rope-hud .btn {
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 26, 51, 0.35);
}

@media (max-width: 560px) {
  .pub-page .design-stage-wrap .rope-hud {
    bottom: 0.4rem;
    left: 0.4rem;
    right: 0.4rem;
    gap: 0.3rem;
  }

  .pub-page .design-stage-wrap .rope-hud .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }
}

.pub-page .rope-hud .btn {
  flex: 0 0 auto;
  width: auto;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border-color: var(--eg-line);
  color: var(--eg-ink);
}

.pub-page .rope-hud .btn-primary {
  background: var(--eg-gold);
  border-color: var(--eg-gold);
  color: var(--eg-navy);
}

/* Request form (a dialog over the designer). */
.design-dialog {
  width: min(520px, calc(100vw - 2rem));
  padding: 1.6rem;
  border: none;
  border-radius: 18px;
  background: #fff;
  color: var(--eg-ink);
  box-shadow: 0 30px 80px rgba(7, 26, 51, 0.45);
}

.design-dialog::backdrop {
  background: rgba(7, 26, 51, 0.6);
}

.design-dialog h2 {
  margin: 0 0 0.3rem;
  color: var(--eg-navy);
}

.design-dialog > p {
  margin: 0 0 1rem;
  color: var(--eg-ink-muted);
}

.design-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.8rem;
}

.design-form-grid .design-field-wide {
  grid-column: 1 / -1;
}

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

.design-error {
  margin: 0.2rem 0 0.6rem;
  color: #b42335;
  font-weight: 600;
}

.design-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.design-thanks {
  text-align: center;
}

.design-thanks .brand-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 12px;
}

.pub-page .rope-hud-hint {
  flex-basis: 100%;
  color: var(--eg-ink);
  font-weight: 600;
  text-align: center;
}

/* Form fields: the staff builder's dark glass inputs (style.css) don't
   belong on the light public pages. Its focus style is !important, so the
   override has to be too. */
body.pub-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
body.pub-page textarea {
  border: 1px solid var(--eg-line);
  background-color: #fff;
  color: var(--eg-ink);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.pub-page input:focus,
body.pub-page textarea:focus {
  border-color: var(--eg-gold) !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(248, 194, 87, 0.35) !important;
}

body.pub-page input::placeholder,
body.pub-page textarea::placeholder {
  color: #8a96aa;
}

body.pub-page input[type="range"] {
  border: none;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* --- Small screens --------------------------------------------------- */
@media (max-width: 900px) {
  .pub-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-feature:nth-child(3) {
    border-left: none;
  }

  .pub-feature:nth-child(n + 3) {
    border-top: 1px solid var(--eg-line);
  }

  .pub-steps,
  .design-layout {
    grid-template-columns: 1fr;
  }

  .design-main {
    position: relative;
    top: auto;
    order: -1;
  }

  /* Stacked, the frame only needs to fit the photo. */
  .design-stage-wrap {
    min-height: 240px;
  }

  .design-estimate-top {
    flex-direction: column;
  }

  .pub-nav {
    gap: 0.7rem;
  }
}

@media (max-width: 560px) {
  .pub-brand-sub {
    display: none;
  }

  .pub-nav .pub-btn,
  .pub-nav a.pub-staff-link {
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .pub-nav-long {
    display: none;
  }

  .pub-feature-grid,
  .design-form-grid {
    grid-template-columns: 1fr;
  }

  .pub-feature + .pub-feature {
    border-left: none;
    border-top: 1px solid var(--eg-line);
  }
}

/* The smallest phones: a smaller wordmark leaves room for both header buttons. */
@media (max-width: 380px) {
  .pub-brand-name {
    height: 1.15rem;
  }

  .pub-header-inner {
    gap: 0.5rem;
    padding-inline: 1rem;
  }

  .pub-brand {
    gap: 0.4rem;
  }
}

/* Holiday Lights page: an animated house per show (holiday-shows.js). */
.pub-holiday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.pub-holiday-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: 16px;
}

.pub-holiday-card canvas {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--eg-navy-deep);
}

.pub-holiday-card figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem 1.1rem;
  color: var(--eg-ink-muted);
  font-size: 0.95rem;
}

.pub-holiday-card figcaption strong {
  color: var(--eg-ink);
  font-size: 1.05rem;
}

.pub-holiday-note {
  color: var(--eg-ink-muted);
  font-size: 0.9rem;
}
