:root {
  --bg: #142838;
  --bg2: #1f3447;
  --ink: #eaf0f6;
  --muted: #b9c6d3;
  --accent: #f4a000;
  --stroke: rgba(255,255,255,.14);
  --r: 16px;
  --font: Verdana, Geneva, Tahoma, Arial, sans-serif;
}
html { background: var(--bg); color: var(--ink); }
body { margin: 0; font-family: var(--font); }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px; background: var(--bg); color: var(--ink); }
.skip-link:focus { top: 12px; }
.missing-asset { color: var(--muted); background: #0f1f2c; border: 1px dashed var(--stroke); padding: 12px; }
.form-fallback { padding: 14px 0; }
.form-fallback a { color: var(--accent); font-weight: bold; }
.media-controls { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.media-controls button { font: inherit; font-size: 12px; color: var(--ink); border: 1px solid var(--stroke); background: var(--bg); border-radius: 16px; padding: 7px 12px; cursor: pointer; }
.slideshow-paused .slideshow-slide { animation-play-state: paused !important; }
.media-ready .slideshow-slide { animation: none; opacity: 0; visibility: hidden; transition: opacity .45s; }
.media-ready .slideshow-slide.is-current { opacity: 1; visibility: visible; }
.site-header { background: #000; color: #f1f1f1; font: 16px Arial, sans-serif; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { display: flex; align-items: center; gap: 18px; font-size: 22px; font-weight: bold; text-decoration: none; }
.site-brand img { width: 64px; height: 42px; object-fit: contain; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; }
.guide-menu { position: relative; }
.guide-menu summary { cursor: pointer; }
.guide-menu > a { position: absolute; right: 0; top: 28px; min-width: 240px; padding: 18px; background: #000; z-index: 20; border: 1px solid var(--stroke); }
.menu-toggle { color: inherit; background: transparent; border: 1px solid var(--stroke); border-radius: 6px; padding: 10px; font: inherit; }
@media (max-width: 1000px) {
  .site-header { flex-wrap: wrap; padding: 12px 16px; }
  .site-brand { font-size: 18px; gap: 12px; }
  .site-brand img { width: 48px; height: 32px; }
  .nav-links { width: 100%; gap: 18px; padding: 12px 0; }
  .nav-ready .menu-toggle { display: block; }
  .nav-ready .nav-links { display: none; }
  .nav-ready .nav-links.is-open { display: flex; }
  .guide-menu > a { left: 0; right: auto; }
}
@media (min-width: 1001px) { .menu-toggle { display: none; } }
/* Add edit-mode to body in Pinegrow to expose every static panel and gallery image. */
body.edit-mode .panel { display: block !important; margin-bottom: 20px; }
body.edit-mode .slideshow-container, body.edit-mode .project-image-wrapper { height: auto !important; }
body.edit-mode .slideshow-slide, body.edit-mode .carousel-img { position: relative !important; opacity: 1 !important; visibility: visible !important; animation: none !important; height: auto !important; }
body.edit-mode .slideshow-slide img { height: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
