/* ==========================================================================
   Subpages: About + Events (built on the shared page template)
   ========================================================================== */

/* ---------- About: vision / mission ---------- */
.pillar-card { padding: clamp(28px, 4vw, 48px); }
.pillar-card .big-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}
.pillar-card p { font-size: 1.08rem; }

@media (min-width: 761px) {
  .sticky-col { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ---------- About: timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--r1), var(--r3), var(--r4), var(--r5), var(--r7));
  opacity: 0.6;
}
.timeline li {
  position: relative;
  padding: 0 0 clamp(36px, 5vw, 56px) 52px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--c, var(--lime));
  box-shadow: 0 0 18px -2px var(--c, var(--lime));
}
.section.dawn .timeline li::before { background: var(--dawn); }
.timeline .when {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.timeline h3 { margin-bottom: 10px; }
.timeline p { margin: 0; max-width: 36em; }

/* ---------- About: profiles ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.profile.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.profile.flip .profile-art { order: 2; }
.profile-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.profile-art .initial {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(7rem, 16vw, 12rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
  mix-blend-mode: overlay;
}
.profile-art::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 30% 30%, rgba(255, 255, 255, 0.35), transparent 70%),
    conic-gradient(from 210deg at 55% 55%, var(--a1), var(--a2), var(--a3), var(--a1));
  filter: blur(30px) saturate(120%);
  animation: swirl 30s linear infinite;
}
@keyframes swirl { to { transform: rotate(360deg); } }
.profile-art .art-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.profile-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.profile-art.gary { --a1: #3b2c7a; --a2: #4fb6e8; --a3: #e693d6; }
.profile-art.hope { --a1: #7a2c4d; --a2: #f4cf86; --a3: #9fd35a; }
.profile .role {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 26px;
}
.profile .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--mist);
  border-left: 1px solid var(--lime);
  padding-left: 22px;
  margin: 28px 0;
}
.section.dawn .profile .pull { color: var(--dawn-ink); border-color: var(--dawn-accent); }
.section.dawn .profile .role { color: var(--dawn-muted); }
.collab {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.collab span {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--soft);
}
.section.dawn .collab span { border-color: var(--dawn-line); color: var(--dawn-soft); }
@media (max-width: 860px) {
  .profile, .profile.flip { grid-template-columns: minmax(0, 1fr); }
  .profile.flip .profile-art { order: 0; }
  .profile-art { max-width: 420px; aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) { .profile-art::before { animation: none; } }
.fx-lite .profile-art::before { animation: none; }

/* ---------- About: offerings ---------- */
.offer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.offer .tag { align-self: flex-start; }
.offer p { flex: 1; }
.offer .text-link { align-self: flex-start; margin-top: 6px; }
.offer .glyph {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c, var(--lime)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--lime)) 45%, transparent);
  color: var(--c, var(--lime));
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

/* ---------- Events: featured ---------- */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
}
.featured-art {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 45% at 50% 105%, rgba(244, 160, 90, 0.75), transparent 70%),
    radial-gradient(90% 60% at 50% 100%, rgba(230, 120, 160, 0.55), transparent 70%),
    linear-gradient(180deg, #1a1440 0%, #4a2a6b 45%, #c46a8a 78%, #f0a878 100%);
}
.featured-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
/* stylised skyline of the Parroquia */
.featured-art svg.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.featured-art .stars {
  position: absolute;
  inset: 0 0 40% 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent 60%),
    radial-gradient(1px 1px at 34% 12%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 28%, #fff, transparent 60%),
    radial-gradient(1px 1px at 72% 9%, #fff, transparent 60%),
    radial-gradient(1px 1px at 86% 30%, #fff, transparent 60%),
    radial-gradient(1px 1px at 22% 40%, #fff, transparent 60%),
    radial-gradient(1px 1px at 46% 46%, #fff, transparent 60%);
  opacity: 0.7;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.8; } }
.featured-art .place {
  position: absolute;
  left: 28px;
  top: 26px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.featured-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.featured-body h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.featured-body .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--soft);
  margin: -8px 0 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}
.facts div { background: var(--night); padding: 16px 18px; }
.facts dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.facts dd { margin: 0; color: var(--mist); font-weight: 500; line-height: 1.35; }
.countdown {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--muted);
}
.countdown strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--mist);
}
.fine { font-size: 0.8rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-art { min-height: 300px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .featured-art .stars { animation: none; } }

/* ---------- Events: agenda ---------- */
.agenda {
  border-top: 1px solid var(--line);
}
.agenda details {
  border-bottom: 1px solid var(--line);
}
.agenda summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 28px;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  color: var(--mist);
}
.agenda summary::-webkit-details-marker { display: none; }
.agenda .day {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.agenda .what { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.agenda .what small { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--soft); margin-top: 4px; }
.agenda .plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
}
.agenda .plus::before,
.agenda .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  margin: 0 0 0 -5px;
  background: var(--mist);
  transition: transform 0.4s var(--ease);
}
.agenda .plus::after { transform: rotate(90deg); }
.agenda details[open] .plus::after { transform: rotate(0); }
.agenda .detail { padding: 0 4px 24px 140px; color: var(--soft); max-width: 760px; }
@media (max-width: 640px) {
  .agenda summary { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 16px; }
  .agenda .day { grid-column: 1 / -1; }
  .agenda .detail { padding-left: 4px; }
}

/* ---------- Events: list + filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filters button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filters button:hover { border-color: rgb(var(--fg-rgb) / 0.4); color: var(--mist); }
.filters button[aria-pressed="true"] { background: var(--mist); color: var(--ink); border-color: var(--mist); }

.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.event-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c, var(--lime));
  transform: scaleY(0);
  transition: transform 0.5s var(--ease);
}
.event-row:hover { background: rgb(var(--fg-rgb) / 0.025); }
.event-row:hover::before { transform: scaleY(1); }
.event-row[hidden] { display: none; }
.event-when { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--mist); }
.event-when small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.event-main h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.event-main p { margin: 0 0 12px; max-width: 40em; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.event-tags .tag { padding: 4px 10px; font-size: 0.66rem; }
@media (max-width: 760px) {
  .event-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 4px; }
  .event-row .btn { justify-self: start; }
}
.empty-note { padding: 28px 8px; color: var(--muted); }

/* ==========================================================================
   Course homepage (envisioned custom course platform)
   ========================================================================== */
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.page-hero .btn-row { margin-top: 32px; }

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.03);
  margin-bottom: 28px;
}
.view-switch .label {
  padding: 0 12px 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.view-switch button {
  border: 0;
  background: transparent;
  color: var(--soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}
.view-switch button[aria-pressed="true"] { background: var(--mist); color: var(--ink); }

[data-view="visitor"] .only-student,
[data-view="student"] .only-visitor { display: none !important; }

.dash {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 120% at 0% 0%, rgb(var(--accent-rgb) / 0.14), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgb(var(--glow-b) / 0.12), transparent 60%),
    linear-gradient(180deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
}
.ring { position: relative; width: 128px; height: 128px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: rgb(var(--fg-rgb) / 0.08); }
.ring .fill { stroke: url(#ring-grad); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring .pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--mist);
  line-height: 1;
}
.ring .pct small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.dash h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.dash .next {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.92rem;
  color: var(--soft);
}
.dash .next strong { color: var(--mist); font-weight: 600; }
.dash-stats { display: flex; gap: 22px; margin-top: 18px; }
.dash-stats div { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.dash-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--mist); letter-spacing: 0; }
@media (max-width: 860px) {
  .dash { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

/* curriculum */
.weeks { border-top: 1px solid var(--line); }
.week { border-bottom: 1px solid var(--line); }
.week summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 28px;
  gap: 20px;
  align-items: center;
  padding: 26px 4px;
}
.week summary::-webkit-details-marker { display: none; }
.week .wk {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--mist);
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.week h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.week .wk-sub { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-family: var(--sans); }
.week .state { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.week .state.done { color: var(--lime); }
.week .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.week .plus::before, .week .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin-left: -5px; background: var(--mist);
  transition: transform 0.4s var(--ease);
}
.week .plus::after { transform: rotate(90deg); }
.week[open] .plus::after { transform: rotate(0); }
.week-body { padding: 0 4px 28px 88px; }
.week-body > p { margin: 0 0 18px; max-width: 46em; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 720px; }
.lesson {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--fg-rgb) / 0.025);
  font-size: 0.95rem;
  color: var(--mist);
}
.lesson .ic {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-size: 0.75rem; color: var(--soft);
}
.lesson.done .ic { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.lesson.next { border-color: rgb(var(--accent-rgb) / 0.5); background: rgb(var(--accent-rgb) / 0.06); }
.lesson .dur { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson.locked { color: var(--muted); }
@media (max-width: 640px) {
  .week summary { grid-template-columns: 52px minmax(0, 1fr) 28px; }
  .week .state { display: none; }
  .week-body { padding-left: 4px; }
}

/* soundscape player */
.player {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(var(--glow-a) / 0.3), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--night));
}
.player-top { display: flex; align-items: center; gap: 18px; }
.play-btn {
  flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  border: 0;
  background: var(--mist);
  color: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease);
}
.play-btn:hover { transform: scale(1.06); }
.play-btn .pause { display: none; }
.player.playing .play-btn .pause { display: block; }
.player.playing .play-btn .play { display: none; }
.player h3 { font-size: 1.5rem; }
.player .by { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin: 26px 0 14px; }
.bars i {
  flex: 1;
  height: var(--h, 20%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--aqua), var(--r6));
  opacity: 0.35;
  transform-origin: bottom;
}
.player.playing .bars i { opacity: 0.85; animation: bar 1.8s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.player .note { font-size: 0.8rem; color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: reduce) { .player.playing .bars i { animation: none; } }

/* includes */
.include .ic-big {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.include .ic-big svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.include h3 { font-size: 1.45rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--mist);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 22px; max-width: 46em; }
.section.dawn .faq details { border-color: var(--dawn-line); }
.section.dawn .faq summary { color: var(--dawn-ink); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form-card { padding: clamp(24px, 4vw, 48px); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.035);
  color: var(--mist);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field select option { background: var(--night); color: var(--mist); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgb(var(--fg-rgb) / 0.06); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips label {
  margin: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--soft);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.topic-chips input { position: absolute; opacity: 0; pointer-events: none; }
.topic-chips input:checked + label { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.topic-chips input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot .fine { max-width: 26em; }
.sent-msg { display: none; text-align: center; padding: clamp(32px, 6vw, 64px) 12px; }
.sent-msg svg { width: 120px; margin: 0 auto 22px; overflow: visible; }
.sent-msg svg path { fill: none; stroke: url(#ya-spectrum); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-card.is-sent form { display: none; }
.form-card.is-sent .sent-msg { display: block; }

.ways { display: grid; gap: 14px; }
.way {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
}
.way .ic-big {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.way .ic-big svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.way h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--mist); margin-bottom: 4px; letter-spacing: 0; }
.way p { margin: 0; font-size: 0.92rem; }
.way a { color: var(--mist); border-bottom: 1px solid var(--line-strong); }
.way a:hover { border-color: var(--lime); }

/* ---------- CMS building blocks (text, pictures) ---------- */
.prose { margin-top: 22px; font-size: 1.06rem; }
.section-head + .prose, .h2 + .prose { margin-top: 26px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--lime); }
.prose a { color: var(--mist); border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s; }
.prose a:hover { border-color: var(--lime); }
.prose > :last-child { margin-bottom: 0; }
.split-figure, .wide-figure { margin: 0; }
.split-figure img, .wide-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -40px var(--shadow);
}
.wide-figure figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ---------- Picture + placard: a large picture with a card of text laid over its edge ----------
   The background is split light / dark. Light and dark keep their meaning in every color scheme:
   on the dark schemes the light half is the "dawn" band color; on the light schemes it's the page. */
.section[data-split] { --pl-light: var(--dawn); --pl-dark: var(--page-bg); --pl-at: 56%; }
[data-tone="light"] .section[data-split] { --pl-light: var(--page-bg); --pl-dark: var(--dawn); }
.section[data-split="light-dark"] { background: linear-gradient(to bottom, var(--pl-light) 0 var(--pl-at), var(--pl-dark) var(--pl-at) 100%); }
.section[data-split="dark-light"] { background: linear-gradient(to bottom, var(--pl-dark) 0 var(--pl-at), var(--pl-light) var(--pl-at) 100%); }

.placard-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.placard-figure, .placard { grid-row: 1; }
.placard-figure { grid-column: 1 / 10; margin: 0; }
.placard-figure img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius) * 0.5);
  box-shadow: 0 30px 80px -40px var(--shadow);
  max-height: min(78vh, 720px); object-fit: cover;   /* a tall (portrait) picture doesn't make a towering section */
}
.placard { grid-column: 8 / 13; position: relative; z-index: 1; align-self: center; }
.at-left .placard-figure { grid-column: 4 / 13; }
.at-left .placard { grid-column: 1 / 6; }
.at-top .placard { align-self: start; margin-top: clamp(28px, 6vw, 96px); }
.at-bottom .placard { align-self: end; margin-bottom: clamp(28px, 6vw, 96px); }

.placard {
  --pc-bg: var(--deep); --pc-ink: var(--mist); --pc-soft: var(--soft); --pc-rule: var(--lime); --pc-line: var(--line);
  background: var(--pc-bg);
  color: var(--pc-soft);
  border: 1px solid var(--pc-line);
  border-radius: calc(var(--radius) * 0.35);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 0 34px 80px -34px var(--shadow), 0 2px 10px -4px rgb(0 0 0 / 0.25);
}
/* the light card (a dark one on the light schemes) takes the dawn band's colors */
.placard-light, [data-tone="light"] .placard-dark {
  --pc-ink: var(--dawn-ink); --pc-soft: var(--dawn-soft); --pc-rule: var(--dawn-accent); --pc-line: var(--dawn-line);
}
.placard-light { --pc-bg: color-mix(in srgb, var(--dawn) 40%, #fff); }
[data-tone="light"] .placard-dark { --pc-bg: var(--dawn); }
[data-tone="light"] .placard-light {
  --pc-bg: color-mix(in srgb, var(--page-bg) 40%, #fff); --pc-ink: var(--mist); --pc-soft: var(--soft); --pc-rule: var(--lime); --pc-line: var(--line);
}
.placard .eyebrow { color: var(--pc-soft); margin-bottom: 14px; }
.placard .h2 { color: var(--pc-ink); font-size: calc(clamp(1.9rem, 3.2vw, 2.9rem) * var(--text-scale, 1)); line-height: 1.06; }
.placard-light .accent-italic, [data-tone="light"] .placard-dark .accent-italic {
  background-image: linear-gradient(100deg, var(--dawn-g1), var(--dawn-g2) 55%, var(--dawn-g3));
}
[data-tone="light"] .placard-light .accent-italic { background-image: linear-gradient(100deg, var(--rose), var(--gold) 45%, var(--aqua)); }
.placard-rule { display: block; width: 52px; height: 3px; border-radius: 2px; background: var(--pc-rule); margin: 22px 0; }
.placard-text { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--pc-soft); }
.placard .btn-row { margin-top: 26px; }
.placard .text-link { color: var(--pc-ink); border-color: var(--pc-line); }
.placard .btn.ghost { color: var(--pc-ink); border-color: var(--pc-line); }

@media (max-width: 760px) {
  .section[data-split] { --pl-at: 42%; }
  .placard-wrap { display: block; }
  .placard { margin: -48px 14px 0; }
  .at-top .placard, .at-bottom .placard { margin: -48px 14px 0; }
}

/* ---------- Form sections (Form → Pabbly / Zapier) ---------- */
.ya-form-card .h2 { margin-bottom: 10px; }
.ya-form-intro { margin: 0 0 26px; }
.ya-form-card .eyebrow + .h2 { margin-top: 4px; }
.field label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.ya-check label { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--soft); }
.ya-check input { width: 20px; height: 20px; accent-color: var(--lime); }
.form-card.is-sent .ya-form { display: none; }
.form-card.is-sent .sent-msg { display: block; }

/* ---------- Columns section: 1–4 columns with adjustable widths ---------- */
.cols { display: grid; gap: clamp(24px, 4vw, 56px); }
.cols.gap-s { gap: clamp(12px, 2vw, 24px); }
.cols.gap-l { gap: clamp(36px, 6vw, 96px); }
.cols.gap-none { gap: 0; }
.cols.v-start { align-items: start; }
.cols.v-center { align-items: center; }
.cols.v-end { align-items: end; }
.cols.v-stretch { align-items: stretch; }
.section-head + .cols { margin-top: clamp(24px, 4vw, 48px); }
.col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col > * { margin: 0; }
.col-card { padding: clamp(22px, 3vw, 36px); }
.col .h1, .col .h2, .col .h3 { margin: 0; }
.col .eyebrow + .h1, .col .eyebrow + .h2, .col .eyebrow + .h3 { margin-top: -6px; }
.al-center { text-align: center; }
.al-right { text-align: right; }
.btn-row.al-center { justify-content: center; }
.btn-row.al-right { justify-content: flex-end; }
.eyebrow.al-right { justify-content: flex-end; }
.col-figure { margin: 0; }
.col-figure img { display: block; width: 100%; height: auto; }
.col-figure.round img { border-radius: var(--radius); box-shadow: 0 30px 80px -40px var(--shadow); }
.col-figure.al-center img { margin-inline: auto; width: auto; max-width: 100%; }
.col-figure figcaption, .col-video figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.col-video { margin: 0; }
.col-vframe { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.col-vframe.portrait { aspect-ratio: 9 / 16; max-width: 420px; }
.col-vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.col-quote { margin: 0; }
.col-quote .pull { margin: 0; }
.col-quote cite { display: block; margin-top: 10px; font-style: normal; color: var(--muted); font-size: 0.92rem; }
.col-quote cite::before { content: "— "; }
.col-points { list-style: none; padding: 0; display: grid; gap: 10px; }
.col-points li { position: relative; padding-left: 26px; }
.col-points li::before { content: "✦"; position: absolute; left: 0; color: var(--c, var(--lime)); }
.col-cardel { padding: clamp(20px, 3vw, 30px); }
.col-divider { border: 0; height: 1px; background: var(--c, var(--line-strong)); width: 100%; }
.spacer { flex: none; }
@media (max-width: 760px) {
  .cols:not(.keep) { grid-template-columns: 1fr !important; }
  .cols:not(.keep) .spacer.no-phone { display: none; }
}
.offer .promo-line { flex: 0; margin: -4px 0 10px; font-size: 0.9rem; color: var(--lime); }

/* ---------- Google reviews (lib/greviews.php): approved reviews from Google, stars, the rating ---------- */
.g-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.g-review {
  margin: 0; padding: 26px 26px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgb(var(--fg-rgb) / 0.04); display: flex; flex-direction: column; gap: 16px;
}
.g-review blockquote { margin: 0; flex: 1; }
.g-review blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--soft); }
.g-review figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--mist); }
.g-review figcaption a { color: inherit; border-bottom: 1px solid var(--line-strong); }
.g-initial {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgb(var(--accent-rgb) / 0.16); color: var(--lime); font-weight: 600;
}
.g-when { display: block; font-size: 0.8rem; color: var(--muted); }
.g-reply { margin: 0; padding-left: 14px; border-left: 2px solid var(--line-strong); font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.g-stars { display: inline-flex; gap: 2px; font-size: 1.05rem; line-height: 1; color: var(--line-strong); letter-spacing: 0; }
.g-stars .on { color: var(--gold); }
.g-summary { margin: 0 0 clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--soft); }
.g-summary strong { color: var(--mist); font-size: 1.2rem; }
.g-summary a { color: var(--mist); border-bottom: 1px solid var(--line-strong); }
.g-foot { margin: clamp(28px, 4vw, 44px) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.g-source { font-size: 0.82rem; color: var(--muted); }
.section.dawn .g-review { background: var(--dawn-card); border-color: var(--dawn-line); }
.section.dawn .g-review blockquote p, .section.dawn .g-summary { color: var(--dawn-soft); }
.section.dawn .g-review figcaption, .section.dawn .g-summary strong, .section.dawn .g-summary a { color: var(--dawn-ink); }
.section.dawn .g-stars .on { color: var(--dawn-g2); }
.section.dawn .g-stars, .section.dawn .g-when, .section.dawn .g-source { color: var(--dawn-muted); }

/* ==========================================================================
   Insights (cms/lib/insights.php): the list, topics and a post
   ========================================================================== */
.post-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.post-topics a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); font-size: .88rem; }
.post-topics a:hover { color: var(--mist); background: rgb(var(--fg-rgb) / .06); }
.post-topics a[aria-current="page"] { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 0 0 22px; overflow: hidden; }
.post-card > :not(.post-cover) { margin-left: 22px; margin-right: 22px; }
.post-card > :first-child:not(.post-cover) { margin-top: 22px; }
.post-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-card h3 a { color: inherit; }
.post-card p { margin: 0; color: var(--soft); }
.post-card .text-link { margin-top: auto; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: .82rem; color: var(--muted); }
.post-meta .tag { font-size: .72rem; }
.post-meta > span + span::before, .post-meta > span + time::before, .post-meta > time + span::before { content: "·"; margin-right: 14px; }
.post-feed { margin-top: 28px; }
.container.narrow { max-width: 760px; }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.post-hero .post-meta { margin-top: 18px; }
.post-cover-big { margin: 0 auto; }
.post-cover-big img { width: 100%; height: auto; border-radius: var(--radius); }
.post-body { font-size: 1.1rem; line-height: 1.75; color: var(--soft); }
.post-body > * + * { margin-top: 1.1em; }
.post-body :is(h2, h3, h4) { font-family: var(--serif); color: var(--mist); line-height: 1.2; margin-top: 1.8em; font-weight: 500; }
.post-body h2 { font-size: 1.9rem; } .post-body h3 { font-size: 1.45rem; } .post-body h4 { font-size: 1.2rem; }
.post-body a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--lime); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--mist); }
.post-body :is(ul, ol) { padding-left: 1.3em; }
.post-body li + li { margin-top: .4em; }
.post-figure { margin: 1.8em 0; }
.post-figure img { width: 100%; height: auto; border-radius: 16px; }
.post-figure figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

/* ---------- Docs (lib/docs.php) ---------- */
.docs-hero .lede { max-width: 40em; }
.docs-hero-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.docs-hero-row .btn-row { margin: 0; }
.docs-icon { border-radius: 22%; box-shadow: 0 12px 30px rgb(0 0 0 / 0.3); flex: none; }
.btn.is-soon { opacity: 0.75; cursor: default; }
.docs-search { position: relative; max-width: 560px; margin-top: 26px; }
.docs-search input { width: 100%; padding: 14px 48px 14px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgb(var(--fg-rgb) / 0.06); color: var(--mist); font: inherit; }
.docs-search input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.25); }
.docs-search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 600 0.78rem/1 var(--sans); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.docs-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: min(60vh, 520px); overflow: auto; padding: 6px; border-radius: var(--radius); background: var(--night); border: 1px solid var(--line-strong); box-shadow: var(--shadow, 0 20px 50px rgb(0 0 0 / 0.4)); }
.docs-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--soft); text-decoration: none; }
.docs-results a:hover, .docs-results a.is-active { background: rgb(var(--fg-rgb) / 0.07); }
.docs-results strong { color: var(--mist); font-weight: 600; }
.docs-hit-where { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.docs-hit-text { font-size: 0.88rem; color: var(--muted); }
.docs-results mark { background: rgb(var(--accent-rgb) / 0.3); color: inherit; border-radius: 3px; padding: 0 2px; }
.docs-none { margin: 0; padding: 12px; color: var(--muted); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.docs-card { display: grid; gap: 10px; align-content: start; padding: 26px; border-top: 3px solid var(--docs-accent, var(--lime)); }
.docs-card h2 a { color: var(--mist); text-decoration: none; }
.docs-meta { font-size: 0.82rem; color: var(--muted); margin: 0; }
.docs-pagehead { padding: calc(var(--header-h, 76px) + 36px) 0 18px; border-bottom: 1px solid var(--line); background: radial-gradient(800px 260px at 85% 0%, rgb(var(--glow-a) / 0.16), transparent 70%); }
.docs-pagehead-row { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.docs-pagehead-row h1 { margin: 6px 0 0; }
.docs-pagehead .docs-search { margin: 0; flex: 0 1 380px; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-layout.has-aside { grid-template-columns: 250px minmax(0, 1fr) 200px; }
.docs-nav-toggle { position: sticky; top: calc(var(--header-h, 76px) + 20px); }
.docs-nav-toggle > summary { display: none; }
.docs-nav { display: grid; gap: 2px; font-size: 0.94rem; }
.docs-nav ul { list-style: none; margin: 0 0 8px; padding: 0; }
.docs-nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--soft); text-decoration: none; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--mist); background: rgb(var(--fg-rgb) / 0.05); }
.docs-nav a.is-here { color: var(--mist); background: rgb(var(--fg-rgb) / 0.07); border-left-color: var(--docs-accent, var(--lime)); }
.docs-nav-sec { margin: 16px 0 6px; padding-left: 12px; font: 700 0.7rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.docs-nav-home { font-weight: 600; }
.docs-body { min-width: 0; font-size: 1.04rem; }
.docs-body > :first-child { margin-top: 0; }
.docs-body code { font: 500 0.88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: rgb(var(--fg-rgb) / 0.08); color: var(--mist); }
.docs-body blockquote { font: inherit; font-size: 1rem; color: var(--soft); margin-left: 0; padding: 14px 18px; border-left: 3px solid var(--docs-accent, var(--lime)); border-radius: 0 12px 12px 0; background: rgb(var(--fg-rgb) / 0.05); font-style: normal; }
.docs-body ol li + li, .docs-body ul li + li { margin-top: 0.35em; }
.doc-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc-table th { font-weight: 600; color: var(--mist); background: rgb(var(--fg-rgb) / 0.05); }
.doc-table tr:last-child td { border-bottom: 0; }
.docs-toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; }
.docs-toc-grid ul { list-style: none; padding: 0; margin: 0; }
.docs-toc-grid .docs-nav-sec { padding-left: 0; }
.docs-next { margin-top: 2em; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3em; }
.docs-pager a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none !important; color: var(--mist) !important; }
.docs-pager a:hover { border-color: var(--line-strong); background: rgb(var(--fg-rgb) / 0.04); }
.docs-pager a.next { text-align: right; grid-column: 2; }
.docs-onpage { position: sticky; top: calc(var(--header-h, 76px) + 20px); font-size: 0.88rem; }
.docs-onpage ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.docs-onpage a { color: var(--muted); text-decoration: none; }
.docs-onpage a:hover { color: var(--mist); }
.docs-onpage .docs-nav-sec { padding-left: 0; }
.docs-bev { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.docs-bev a { color: var(--lime) !important; }
.docs-foot { margin-top: 3.5em; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.docs-foot p { margin: 0 0 6px; }
.docs-notice { font-size: 0.8rem; opacity: 0.85; }
@media (max-width: 1100px) { .docs-layout.has-aside { grid-template-columns: 230px minmax(0, 1fr); } .docs-onpage { display: none; } }
@media (max-width: 860px) {
  .docs-layout, .docs-layout.has-aside { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav-toggle { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px 8px; }
  .docs-nav-toggle > summary { display: block; cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--mist); }
  .docs-pagehead .docs-search { flex-basis: 100%; }
}

/* ---------- Work showcase (cms/lib/showcase.php, assets/js/showcase.js) ---------- */
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sc-grid.flip .sc-media { order: 2; }
.sc-text .h2 { margin-top: 6px; }
.sc-text .lede { margin-top: 18px; }
.sc-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.sc-points .h3 { font-size: 1.05rem; }
.sc-points p { margin: 4px 0 0; color: var(--soft); }
.sc-actions { margin-top: 30px; align-items: center; }
.sc-newtab { font-size: .92rem; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.sc-newtab:hover { color: var(--mist); }

/* the browser window around the screens */
.sc-window { position: relative; border-radius: 16px; overflow: hidden; background: rgb(var(--bg-rgb, 16 20 18) / 0.9);
  border: 1px solid var(--line-strong, rgba(255,255,255,.18)); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(var(--accent-rgb) / 0.06); }
.sc-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgb(var(--accent-rgb) / 0.05); }
.sc-dots3 { display: inline-flex; gap: 6px; }
.sc-dots3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong, rgba(255,255,255,.25)); }
.sc-dots3 i:first-child { background: rgb(var(--accent-rgb) / 0.75); }
.sc-address { flex: 1; max-width: 340px; margin: 0 auto; height: 20px; border-radius: 10px; background: rgb(var(--fg-rgb, 247 242 232) / 0.07);
  font-size: .72rem; letter-spacing: .02em; color: var(--muted); display: grid; place-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.sc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -3px; }
.sc-track::-webkit-scrollbar { display: none; }
.sc-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 10; background: #0b0d0c; }
.sc-slide img, .sc-slide video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sc-slide figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; font-size: .8rem; line-height: 1.3;
  color: #fff; background: rgb(10 12 11 / 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sc-nav { position: absolute; top: calc(50% + 17px); transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(10 12 11 / 0.55); color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .2s, background .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sc-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-nav:hover { background: rgb(var(--accent-rgb) / 0.85); }
.sc-prev { left: 12px; } .sc-next { right: 12px; }
.sc-window.at-start .sc-prev, .sc-window.at-end .sc-next { opacity: 0; pointer-events: none; }
.sc-pips { position: absolute; right: 14px; bottom: 16px; display: flex; gap: 6px; }
.sc-pips button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgb(255 255 255 / 0.45); cursor: pointer; transition: width .25s, background .25s; }
.sc-pips button[aria-current="true"] { width: 22px; background: #fff; }
@media (hover: hover) { .sc-window .sc-nav { opacity: 0; } .sc-window:hover .sc-nav, .sc-window:focus-within .sc-nav { opacity: 1; } .sc-window.at-start .sc-prev, .sc-window.at-end .sc-next { opacity: 0; } }
@media (max-width: 960px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-grid.flip .sc-media { order: 0; }
}
@media (max-width: 520px) {
  .sc-window { border-radius: 12px; }
  .sc-bar { height: 28px; }
  .sc-address { display: none; }
  .sc-nav { width: 36px; height: 36px; }
  .sc-slide figcaption { font-size: .72rem; bottom: 34px; }
  .sc-pips { left: 0; right: 0; justify-content: center; bottom: 12px; }
}

/* the viewer: the site in a frame under our own menu */
html.site-viewing, html.site-viewing body { overflow: hidden; }
.site-viewer { position: fixed; left: 0; right: 0; bottom: 0; top: var(--sv-top, 76px); z-index: 45; display: flex; flex-direction: column;
  background: var(--night, #0e1210); opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease; }
.site-viewer.open { opacity: 1; transform: none; }
.sv-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px clamp(10px, 3vw, 24px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / 0.12), transparent 60%), rgb(var(--bg-rgb, 16 20 18) / 0.96); }
.sv-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid rgb(var(--accent-rgb) / 0.5);
  background: rgb(var(--accent-rgb) / 0.14); color: var(--mist); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.sv-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sv-back:hover { background: rgb(var(--accent-rgb) / 0.28); }
.sv-title { flex: 1; min-width: 0; text-align: center; font-size: .85rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-lock { color: var(--sage, #8fb39a); font-size: .6rem; vertical-align: 2px; }
.sv-open { font-size: .85rem; color: var(--soft); text-decoration: none; white-space: nowrap; }
.sv-open:hover { color: var(--mist); }
.sv-stage { position: relative; flex: 1; min-height: 0; }
.sv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .3s; }
.site-viewer.loaded iframe { opacity: 1; }
.sv-loading { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 10px; align-items: center; color: var(--soft); font-size: .95rem; }
.site-viewer.loaded .sv-loading { display: none; }
.sv-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(var(--accent-rgb) / 0.3); border-top-color: rgb(var(--accent-rgb)); animation: sv-spin .8s linear infinite; }
@keyframes sv-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .sv-back span { display: none; }
  .sv-back { padding: 8px 10px; }
  .sv-open span { display: none; }
  .sv-open { font-size: 1.1rem; padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-viewer, .sv-stage iframe, .sc-pips button { transition: none; }
  .sv-spin { animation: none; }
}
