/* Compact sunset opening and a floating digging sign. The approved logo and soil animations stay unchanged. */
html[data-style="cartoon"] { --bar-h: 0px; }
html[data-style="cartoon"] .hero {
  height: clamp(260px, calc(140px + calc(25 * min(1vw, 19.2px))), 570px); min-height: 0; padding-bottom: 0;
  background: #FFF0D4; isolation: isolate;
}
html[data-style="cartoon"] .hero::after { content: none; }
html[data-style="cartoon"] .hero-copy { height: 0; padding: 0; }
.sunset-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sunset-landscape { display: block; width: 100%; height: 100%; }
/* A quiet warm horizon stays behind the brand; scenery moves only in the upper-right sky. */
.sunset-sun { position: absolute; right: 20%; top: 8%; width: clamp(78px, calc(10.3 * min(1vw, 19.2px)), 148px); height: auto; }
.sunset-cloud { position: absolute; height: auto; will-change: translate; }
.sunset-cloud--far { left: 42%; top: 12%; width: clamp(80px, calc(13 * min(1vw, 19.2px)), 190px); }
.sunset-cloud--wide { left: 59%; top: 1%; width: clamp(94px, calc(17 * min(1vw, 19.2px)), 240px); }
.sunset-cloud--near { right: 2%; top: 23%; width: clamp(80px, calc(12.5 * min(1vw, 19.2px)), 180px); }
/* Outline the existing silhouettes without changing any logo shape, fill, or entrance movement. */
.monument .logo-letter { filter: drop-shadow(2px 0 0 #FFF9E9) drop-shadow(-2px 0 0 #FFF9E9) drop-shadow(0 2px 0 #FFF9E9) drop-shadow(0 -2px 0 #FFF9E9) drop-shadow(0 2px 1px #A36C46); }
@media (prefers-reduced-motion: no-preference) {
  .sunset-cloud--far { animation: sunset-drift 41s ease-in-out infinite alternate; }
  .sunset-cloud--wide { animation: sunset-drift 55s ease-in-out -18s infinite alternate-reverse; }
  .sunset-cloud--near { animation: sunset-drift 32s ease-in-out -9s infinite alternate; }
  @keyframes sunset-drift { from { translate: -10px -2px; } to { translate: 10px 3px; } }
}
.dig-menu-launcher { position: fixed; z-index: 47; top: calc(env(safe-area-inset-top) + var(--ribbon-h, 34px) + 12px); right: clamp(14px, calc(3 * min(1vw, 19.2px)), 40px); }
.bar-menu.dig-menu-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 4px 24px 4px 12px;
  background: repeating-linear-gradient(3deg, transparent 0 10px, rgb(117 64 30 / .12) 11px 12px, transparent 13px 19px), #F5D097;
  color: #392E2B; border: 3px solid #493831; border-radius: 9px 16px 11px 14px;
  box-shadow: 0 4px 0 #8D6140, 0 8px 15px rgb(58 39 54 / .18), inset 0 3px 0 #FFE4B5;
  font: 800 1.125rem var(--display); cursor: pointer; touch-action: manipulation;
}
/* Steps up out of the way while a Dig It logo passes under the sign (site.js), so it never covers the letters */
.dig-menu-launcher.menu-dodge { translate: 0 calc(-100% - 80px); visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .dig-menu-launcher { transition: translate .24s ease-out, visibility 0s; }
  .dig-menu-launcher.menu-dodge { transition: translate .2s ease-in, visibility 0s .2s; }
}
.menu-shovel { width: 29px; height: 44px; margin-top: -8px; transform: rotate(-13deg); transform-origin: 50% 80%; }
.menu-nail { position: absolute; right: 10px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: #795C48; box-shadow: 0 26px #795C48; }
.bar-menu.dig-menu-button:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
body.menu-open .dig-menu-button { background-color: #F9DFAE; }
body.menu-open .menu-shovel { transform: rotate(22deg); }
@media (prefers-reduced-motion: no-preference) {
  .menu-shovel { transition: transform .25s ease; }
  .menu:not([hidden]) { animation: unearth-menu .24s ease-out; }
  @keyframes unearth-menu { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media (hover: hover) { .dig-menu-button:hover .menu-shovel { transform: rotate(8deg); } }
.menu {
  inset: 110px 18px 18px auto; width: min(440px, calc(calc(100 * min(1vw, 19.2px)) - 36px)); z-index: 46;
  padding: 18px 24px calc(24px + env(safe-area-inset-bottom)); color: #FFF3DF;
  background: radial-gradient(ellipse at top right, #6B5140, transparent 65%), #352D2A;
  border: 3px solid #BC9065; border-radius: 22px 14px 25px 16px;
  box-shadow: 0 16px 50px rgb(26 22 32 / .4); scrollbar-color: #BC9065 #352D2A;
}
.menu::before { content: ''; display: block; flex: none; height: 58px; background: url('/assets/img/logo-dig-it-dark.svg') left center / auto 48px no-repeat; padding: 2px 0 12px; margin-bottom: 8px; border-bottom: 2px dashed #9B7B5E; }
.menu a { color: #FFF3DF; font-size: 1.4rem; }
.menu a:hover { color: #A2DBE7; }
.menu .menu-call { margin-top: 20px; background: #58BCE2; color: #222; box-shadow: 0 -12px 0 6px #352D2A; }
/* Retain the always-available call action after removing the duplicate header number. */
.dock { display: flex; }
@media (min-width: 761px) { .dock { right: 24px; } body.menu-open .dock { display: none; } }
@media (max-width: 760px) {
  html[data-style="cartoon"] .hero { height: clamp(260px, calc(150px + calc(29 * min(1vw, 19.2px))), 360px); }
  .sunset-sun { top: 30%; }
  .bar-menu.dig-menu-button { min-height: 50px; font-size: 1rem; padding-right: 22px; gap: 8px; }
  .menu-shovel { width: 26px; height: 39px; }
  .menu { right: 12px; bottom: 12px; width: calc(calc(100 * min(1vw, 19.2px)) - 24px); }
}

/* Every page header wears the same sunset as the home opening (partials/sunset-scene.html, sliced so the hills keep
   their shape). The lawn stays in front of it; the old flat sky, sun and cloud are retired. Sun and clouds sit up
   in the corner away from the words, and the heading keeps the cream outline the home logo uses. */
html[data-style="cartoon"] .pop { background: #FFF0D4; isolation: isolate; }
.pop > .sunset-scene { z-index: 0; }
.pop::before, .pop::after { z-index: 1; }
.pop .pop-sun, .pop .pop-cloud { display: none; }
.pop .sunset-sun { right: calc(var(--m) + 150px); top: 8%; width: clamp(64px, calc(7.5 * min(1vw, 19.2px)), 116px); }
.pop .sunset-cloud--far { left: auto; right: calc(var(--m) + 330px); top: 5%; width: clamp(80px, calc(10 * min(1vw, 19.2px)), 150px); }
.pop .sunset-cloud--wide { left: auto; right: calc(var(--m) + 230px); top: 20%; width: clamp(94px, calc(13 * min(1vw, 19.2px)), 200px); }
.pop .sunset-cloud--near { right: -20px; top: 2%; width: clamp(80px, calc(9 * min(1vw, 19.2px)), 140px); }
.pop h1, .pop .lede { text-shadow: 0 0 6px #FFF4E0, 0 0 2px #FFF4E0; }
/* Our work: the text column is on the right, so the sky dressing moves over the excavator's boom */
.pop--dig .sunset-sun { right: auto; left: calc(var(--m) + var(--ew) * 0.62); top: 7%; }
.pop--dig .sunset-cloud--far { right: auto; left: calc(var(--m) + var(--ew) * 0.04); top: 5%; }
.pop--dig .sunset-cloud--wide { right: auto; left: calc(var(--m) + var(--ew) * 0.40); top: 2%; }
.pop--dig .sunset-cloud--near { right: auto; left: calc(var(--m) + var(--ew) * 0.80); top: 22%; }
@media (max-width: 760px) {
  .pop .sunset-birds, .pop .sunset-cloud--far, .pop .sunset-cloud--wide { display: none; }
  .pop .sunset-sun { right: -30px; top: -48px; width: 82px; }
  .pop .sunset-cloud--near { right: 36%; top: 2px; width: 70px; }
  .pop--dig .sunset-sun { right: 5%; top: auto; bottom: calc(var(--lawn) + var(--ew) * 0.36); width: 58px; }
  .pop--dig .sunset-cloud--wide { display: block; left: auto; right: 4px; top: auto; bottom: calc(var(--lawn) + var(--ew) * 0.44); width: 96px; }
  .pop--dig .sunset-cloud--near { display: none; }
}
/* Small phones: the Call and Quote dock stays inside the screen (Quote ran past the right edge at 360 wide) */
.dock-call { min-width: 0; white-space: nowrap; }
@media (max-width: 400px) {
  .dock { left: 10px; right: 10px; gap: 6px; }
  .dock-call { padding-inline: 14px; gap: 8px; font-size: .97rem; }
  .dock-quote { min-width: 76px; padding: 0 14px; }
}
/* Big monitors: page titles grow with the wider header so they are not lost in the sky */
@media (min-width: 1700px) {
  .pop h1 { font-size: clamp(4rem, 1rem + calc(2.9 * min(1vw, 19.2px)), 5.75rem); }
  .pop .lede { font-size: clamp(1.375rem, 0.6rem + calc(0.75 * min(1vw, 19.2px)), 1.75rem); }
}
/* Phones: the floating Menu sign sits over the top line of a page title, so that line makes room for it
   (at 412 wide "Sewer repair guides" and "Call us, or send it over" ran under the sign); later lines use the full width */
@media (max-width: 760px) {
  html[data-style="cartoon"] .pop h1, html[data-style="cartoon"] .pop h1.pop-h1--s { max-width: none; }
  .pop h1::before { content: ''; float: right; width: 112px; height: max(1.05em, 46px); }
}

/* A separate foreground lawn lets the painted chase play without obscuring the name. */
html[data-style="cartoon"] .hero { --critter-lane:150px;height:calc(clamp(260px, calc(140px + calc(25 * min(1vw, 19.2px))), 570px) + var(--critter-lane) + 64px);padding-bottom:calc(var(--critter-lane) + 64px); }
html[data-style="cartoon"] .hero::after {content:'';position:absolute;left:0;right:0;bottom:0;height:calc(var(--critter-lane) + 66px);background:#6CBF57;z-index:1;pointer-events:none;}
@media(max-width:760px){html[data-style="cartoon"] .hero{height:calc(clamp(260px, calc(150px + calc(29 * min(1vw, 19.2px))), 360px) + var(--critter-lane) + 64px);}}

/* Douglas's grass-free mountain opening, November 29. Retain the invisible turf geometry used by character positioning. */
html[data-style="cartoon"] .hero, html[data-style="cartoon"] .pop {background:#E7F2F7;}
html[data-style="cartoon"] .hero > .sunset-scene {bottom:calc(var(--critter-lane) + 64px);}
html[data-style="cartoon"] .hero::after {background:linear-gradient(#B9C7CC,#D7E0E3);border-top:3px solid #8299A3;}
.hero-turf {visibility:hidden;}
.pop::after {display:none;}
.pop::before {background:linear-gradient(#B9C7CC,#D7E0E3);border-top:2px solid #8299A3;}
.menu {background:#1C303C;border-color:#87A7BA;scrollbar-color:#87A7BA #1C303C;}
.menu a {color:#F5FAFC;}
.menu::before {border-bottom-color:#87A7BA;}
.menu .menu-call {box-shadow:0 -12px 0 6px #1C303C;}
.pop h1,.pop .lede {text-shadow:0 0 6px #F3F8FB,0 0 2px #F3F8FB;}
/* Palette substitutions apply only to scenery, never to logos, pipe materials or character frames. */
.sunset-scene #sunset-sky stop:nth-child(1){stop-color:#7AB5D3;}
.sunset-scene #sunset-sky stop:nth-child(2){stop-color:#AFD4E5;}
.sunset-scene #sunset-sky stop:nth-child(3){stop-color:#DBECF3;}
.sunset-scene #sunset-sky stop:nth-child(4){stop-color:#F0F6F9;}
.sunset-scene #sunset-cloud stop:nth-child(1){stop-color:#FFFFFF;}
.sunset-scene #sunset-cloud stop:nth-child(2){stop-color:#EBF4F8;}
.sunset-scene #sunset-cloud stop:nth-child(3){stop-color:#A7C4D4;}
.sunset-scene #sunset-mountains stop:first-child{stop-color:#7D9CAA;}
.sunset-scene #sunset-mountains stop:last-child{stop-color:#A9BECA;}
.sunset-landscape > path:nth-of-type(4){fill:#A7BCC4;}
.sunset-landscape > path:nth-of-type(5){fill:#90AAB4;}
.sunset-landscape > path:nth-of-type(6){fill:#7998A3;}
.sunset-cloud use{stroke:#93B5C7;}
.sunset-birds{stroke:#527C92;}

html[data-style="cartoon"] .pop[class*="-feature"] .pop-copy {background:rgba(246,250,252,.95);}
html[data-style="cartoon"] .pop[class*="-feature"] .pop-copy :is(h1,.h1-deck,.lede,a) {color:#1C303C!important;}
html[data-style="cartoon"] .pop [class$="-controls"] button {background:#263D4A;color:#F5FAFC;border-color:#263D4A;}
.hero [fill="#6CBF57"], .pop [fill="#6CBF57"] {visibility:hidden;}
