/* ─────────────────────────────────────────────────────────
   Schedularity — WordPress + Elementor glue.

   Everything above this file in the cascade is the design system ported
   verbatim from the static UI kit. This file adds:
     1. the primitives WordPress needs (screen-reader text, alignments,
        comments, captions, galleries)
     2. the classes introduced by the theme's Elementor widgets (schd-*)
     3. the header drawer, breadcrumbs and archive chrome

   Tokens are reused, never redefined — the accent stays a single source of
   truth so the Customizer colour reaches every ported stylesheet.
   ───────────────────────────────────────────────────────── */

/*
 * Brand accent.
 *
 * The ported design carries two independent accents and they are not the same
 * colour: system.css defines --accent as a deep indigo (used by the system
 * layer and home.css, ~65 times), while the editorial layer runs on
 * --he-coral / --sp-coral / --mn-coral at #FF5A36. An earlier build pointed
 * --accent at the coral, which silently repainted every indigo in the design.
 *
 * So: --schd-accent is the single knob the Customizer writes, it defaults to
 * the design's own coral, and it drives only the editorial tokens. --accent is
 * left exactly as system.css defines it.
 */
:root {
  --schd-accent: #FF5A36;
  --he-coral: var(--schd-accent);
  --sp-coral: var(--schd-accent);
  --mn-coral: var(--schd-accent);
  --mp-indigo: var(--schd-accent);
}

/* ─── WordPress primitives ─────────────────────────────── */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--schd-accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.alignleft { float: left; margin: 0 var(--space-5) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-5); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: min(1180px, 92vw); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: var(--space-2);
}

.sticky .schd-post-title::before { content: "★ "; color: var(--schd-accent); }

/* Long-form content ------------------------------------ */

.schd-prose {
  max-width: var(--container-text);
  font-size: 17px;
  line-height: 1.7;
}
.schd-prose > * + * { margin-top: var(--space-5); }
.schd-prose h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin-top: var(--space-8); }
.schd-prose h3 { font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); margin-top: var(--space-7); }
.schd-prose a { color: var(--schd-accent); text-underline-offset: 3px; }
.schd-prose img,
.schd-prose iframe { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.schd-prose blockquote {
  margin-inline: 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--schd-accent);
  font-family: var(--font-display-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--fg);
}
.schd-prose pre {
  overflow-x: auto;
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.schd-prose code { font-family: var(--font-mono); font-size: 0.92em; }
.schd-prose table { width: 100%; border-collapse: collapse; }
.schd-prose th,
.schd-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; }

/* ─── Shared section chrome ────────────────────────────── */

.schd-sec { padding-block: var(--section-y); }
.schd-sec.schd-ruled { border-top: 1px solid var(--rule); }
.schd-sec.schd-elev { background: var(--bg-elev); }
.schd-sec.schd-bare { background: transparent; }
.schd-sec.alt { background: var(--bone-2); }
.schd-sec.dark { background: var(--ink); color: var(--bone); }
.schd-sec.dark .sp-head p,
.schd-sec.dark .sp-lead { color: rgba(255, 255, 255, 0.68); }

.sp-title { font-family: var(--font-display); letter-spacing: -0.028em; }
.sp-lead { max-width: 62ch; }

.schd-section-heading .sp-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--schd-accent);
  margin-bottom: 6px;
}
.schd-section-heading.has-rule { border-bottom: 1px solid var(--rule); padding-bottom: var(--space-5); }
.sp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--schd-accent);
  text-decoration: none;
}
.sp-more:hover { text-decoration: underline; }

.schd-cols-1 { grid-template-columns: minmax(0, 1fr); }
.schd-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schd-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schd-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ─── Hero widget ──────────────────────────────────────── */

.schd-hero .hero-inner {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.schd-hero--split .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.schd-hero--centred .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
.schd-hero--centred .sp-ctas,
.schd-hero--centred .hero-stats { justify-content: center; }
.schd-hero--compact { padding-block: clamp(48px, 7vw, 90px); }

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--schd-accent);
  border: 1px solid color-mix(in srgb, var(--schd-accent) 35%, transparent);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: var(--space-5);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 var(--space-5);
}
.hero-title .hero-em {
  font-family: var(--font-display-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--schd-accent);
}
.hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0 0 var(--space-6);
}
.hero-media img { width: 100%; height: auto; border-radius: var(--r-xl); border: 1px solid var(--rule); }
.hero-stats { margin-top: var(--space-7); }

/* ─── Feature index ────────────────────────────────────── */

.schd-fi { display: grid; gap: 0; }
.schd-fi.schd-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.schd-fi.schd-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }

.schd-fi-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
a.schd-fi-row:hover { background: color-mix(in srgb, var(--schd-accent) 5%, transparent); }
.schd-fi-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); padding-top: 4px; }
.schd-fi-ico { color: var(--schd-accent); display: flex; }
.schd-fi-body { display: flex; flex-direction: column; gap: 3px; }
.schd-fi-label { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.schd-fi-desc { font-size: 13.5px; color: var(--fg-muted); }
.schd-fi-arrow { color: var(--muted-2); opacity: 0; transition: opacity 0.2s var(--ease); }
a.schd-fi-row:hover .schd-fi-arrow { opacity: 1; }

/* ─── Feature cards ────────────────────────────────────── */

.schd-cards { display: grid; gap: var(--space-4); }
.schd-cards.is-bare .sp-card { background: transparent; border-color: transparent; padding-inline: 0; }
.schd-cards.is-solid .sp-card { background: var(--bg-elev); }
.sp-card-ico { color: var(--schd-accent); }
.sp-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin: 0; }
.sp-card-text { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; }
.sp-card-points { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; }
.sp-card-points li { display: flex; gap: 8px; align-items: start; font-size: 13px; color: var(--fg-muted); }
.sp-card-points svg { color: var(--success); flex: none; margin-top: 2px; }
.sp-card-link { margin-top: auto; padding-top: var(--space-3); font-size: 13px; color: var(--schd-accent); text-decoration: none; }

/* ─── Pillars ──────────────────────────────────────────── */

.schd-pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.schd-pillar { border-top: 2px solid var(--pillar-accent, var(--schd-accent)); padding-top: var(--space-5); }
.schd-pillar-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--pillar-accent, var(--schd-accent)); }
.schd-pillar-title { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; font-weight: 500; margin: var(--space-3) 0 var(--space-3); }
.schd-pillar-text { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.schd-pillar-proof { margin-top: var(--space-4); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* ─── Stats ────────────────────────────────────────────── */

.sp-stats { display: grid; gap: var(--space-4); }
.sp-stats.has-rules .sp-stat { border-left: 1px solid var(--rule); padding-left: var(--space-4); }
.sp-stats.has-rules .sp-stat:first-child { border-left: 0; padding-left: 0; }
.sp-stat .v { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.sp-stat .l { font-size: 12.5px; color: var(--fg-muted); margin-top: 6px; }
.sp-stat .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); margin-top: 4px; }

/* ─── Steps ────────────────────────────────────────────── */

.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.sp-steps.is-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sp-steps.is-column { grid-template-columns: minmax(0, 1fr); max-width: var(--container-narrow); }
.sp-steps.is-column .sp-step { border-left: 1px solid var(--rule); padding-left: var(--space-5); }
.sp-step-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--schd-accent); }
.sp-step-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 500; margin: var(--space-2) 0 6px; }
.sp-step-text { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; }
.sp-step-time { display: inline-block; margin-top: var(--space-3); font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }

/* ─── Checklist ────────────────────────────────────────── */

.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.sp-li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.sp-li-mark { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; flex: none; }
.sp-list.is-check .sp-li-mark { color: var(--success); background: var(--accent-3-soft); }
.sp-list.is-cross .sp-li-mark { color: var(--error); background: var(--accent-4-soft); }
.sp-list.is-number .sp-li-mark { font-family: var(--font-mono); font-size: 10.5px; color: var(--schd-accent); background: var(--accent-soft); }
.sp-list.is-bullet .sp-li-mark .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--muted-2); }
.sp-li-body { display: flex; flex-direction: column; gap: 3px; }
.sp-li-title { font-size: 15px; }
.sp-li-text { font-size: 13px; color: var(--fg-muted); }

/* ─── Logo bar ─────────────────────────────────────────── */

.schd-logo-caption { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--space-6); }
.schd-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.schd-logos.is-grey .schd-logo { filter: grayscale(1); opacity: 0.6; transition: filter 0.25s var(--ease), opacity 0.25s var(--ease); }
.schd-logos.is-grey .schd-logo:hover { filter: none; opacity: 1; }
.schd-logo { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.schd-logo img { height: 28px; width: auto; object-fit: contain; }
.schd-logo-word { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.schd-logos.is-marquee { flex-wrap: nowrap; overflow: hidden; justify-content: flex-start; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.schd-logos.is-marquee .schd-logo { flex: none; animation: schd-marquee 38s linear infinite; }
@keyframes schd-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .schd-logos.is-marquee .schd-logo { animation: none; }
}

/* ─── Tables (comparison + spec) ───────────────────────── */

.schd-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schd-compare-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.schd-compare-table th,
.schd-compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.schd-compare-table thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.schd-compare-table thead th.is-us { color: var(--schd-accent); }
.schd-compare-table tbody th { font-weight: 400; }
.schd-compare-table td { text-align: center; width: 22%; }
.schd-compare-table td.is-ours { background: color-mix(in srgb, var(--schd-accent) 6%, transparent); }
.schd-compare-table .is-yes svg { color: var(--success); }
.schd-compare-table .is-no svg { color: var(--muted-2); }
.schd-compare-table .is-partial { font-size: 12px; color: var(--accent-5); }
.schd-compare-group th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); background: var(--bone-2); }
.schd-compare-note { margin-top: var(--space-4); }

.schd-spec-table { margin: 0; display: grid; gap: 0; }
.schd-spec-row { display: grid; grid-template-columns: minmax(180px, 0.4fr) 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.schd-spec-table.is-compact .schd-spec-row { padding: 10px 0; }
.schd-spec-row dt { font-size: 13.5px; color: var(--fg-muted); }
.schd-spec-row dd { margin: 0; font-size: 14.5px; }
.schd-spec-row dd.is-mono { font-family: var(--font-mono); font-size: 13px; }

/* ─── Pricing ──────────────────────────────────────────── */

.schd-billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; margin-bottom: var(--space-7); }
.schd-billing button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 13.5px; color: var(--fg-muted); cursor: pointer; }
.schd-billing button.is-active { background: var(--ink); color: var(--bone); }

.schd-tiers { display: grid; gap: var(--space-4); }
.schd-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
}
.schd-tier.is-featured { border-color: var(--tier-accent, var(--schd-accent)); box-shadow: 0 20px 50px -30px color-mix(in srgb, var(--schd-accent) 60%, transparent); }
.schd-tier-badge { position: absolute; top: -11px; left: var(--space-6); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--tier-accent, var(--schd-accent)); color: #fff; padding: 4px 10px; border-radius: 999px; }
.schd-tier-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0; }
.schd-tier-tagline { font-size: 13px; color: var(--fg-muted); margin: 0; }
.schd-tier-price { display: flex; align-items: baseline; gap: 2px; margin: var(--space-3) 0; }
.schd-tier-price .cur { font-size: 18px; color: var(--fg-muted); }
.schd-tier-price .amt { font-family: var(--font-display); font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.schd-tier-price .per { font-size: 13px; color: var(--fg-muted); margin-left: 4px; }
.schd-tier-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.schd-tier-features li { display: flex; gap: 8px; align-items: start; font-size: 13.5px; }
.schd-tier-features li.is-on svg { color: var(--success); flex: none; margin-top: 3px; }
.schd-tier-features li.is-off { color: var(--muted-2); }
.schd-tier-features li.is-off svg { color: var(--muted-2); flex: none; margin-top: 3px; }
.schd-tier-cta { margin-top: auto; text-align: center; }

/* ─── Savings calculator ───────────────────────────────── */

.schd-calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.schd-calc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.schd-calc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.schd-calc-row label { display: flex; flex-direction: column; cursor: pointer; }
.schd-calc-name { font-size: 14.5px; }
.schd-calc-cat { font-size: 12px; color: var(--fg-muted); }
.schd-calc-cost { font-family: var(--font-mono); font-size: 13px; }
.schd-calc-cost .per,
.schd-calc-result .per { font-size: 11px; color: var(--muted-2); }
.schd-calc-result { padding: var(--space-6); border: 1px solid var(--rule); border-radius: var(--r-xl); background: var(--bg-elev); position: sticky; top: 96px; }
.schd-calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.schd-calc-line.is-total { border-bottom: 0; padding-top: var(--space-4); }
.schd-calc-line.is-total strong { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; color: var(--success); }
.schd-calc-year { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); }

/* ─── Industries directory ─────────────────────────────── */

.schd-ind-controls { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); }
.schd-ind-search { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-elev); color: var(--muted-2); flex: 1 1 260px; }
.schd-ind-search input { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--fg); width: 100%; }
.schd-ind-search input:focus { outline: none; }
.schd-ind-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.schd-ind-chips button,
.schd-ind-chips a { border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 12.5px; color: var(--fg-muted); cursor: pointer; text-decoration: none; }
.schd-ind-chips button.is-active,
.schd-ind-chips a.is-active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.schd-ind-grid { display: grid; gap: var(--space-3); }
.schd-ind-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.schd-ind-card:hover { border-color: var(--schd-accent); transform: translateY(-2px); }
.schd-ind-card[hidden] { display: none; }
.schd-ind-grid.is-cards .schd-ind-card { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 0; overflow: hidden; }
.schd-ind-grid.is-cards .schd-ind-body { padding: var(--space-4); }
.schd-ind-grid.is-cards .schd-ind-arrow { display: none; }
.schd-ind-thumb img { width: 100%; height: auto; display: block; }
.schd-ind-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.schd-ind-sector { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--schd-accent); }
.schd-ind-title { font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.schd-ind-excerpt { font-size: 12.5px; color: var(--fg-muted); }
.schd-ind-arrow { color: var(--muted-2); }
.schd-ind-empty { text-align: center; color: var(--fg-muted); padding: var(--space-7) 0; }

/* ─── Integrations ─────────────────────────────────────── */

.schd-int-group { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin: var(--space-7) 0 var(--space-4); }
.schd-int-grid { display: grid; gap: var(--space-3); }
.schd-int-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.schd-int-tile:hover { border-color: var(--schd-accent); }
.schd-int-logo img { height: 32px; width: auto; object-fit: contain; }
.schd-int-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--schd-accent); font-family: var(--font-mono); font-size: 13px; }
.schd-int-name { font-size: 14px; font-weight: 500; }
.schd-int-summary { font-size: 12px; color: var(--fg-muted); }

/* ─── FAQ ──────────────────────────────────────────────── */

.schd-faq { display: grid; gap: 0; column-gap: clamp(24px, 4vw, 56px); }
.schd-faq .faq-item { border-bottom: 1px solid var(--rule); }
.schd-faq .faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 16px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.schd-faq .faq-mark { position: relative; width: 14px; height: 14px; flex: none; }
.schd-faq .faq-mark::before,
.schd-faq .faq-mark::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transition: transform 0.2s var(--ease); }
.schd-faq .faq-mark::after { transform: rotate(90deg); }
.schd-faq .faq-item.open .faq-mark::after { transform: rotate(0deg); }
.schd-faq .faq-a { display: none; padding-bottom: var(--space-5); font-size: 14.5px; line-height: 1.65; color: var(--fg-muted); max-width: 68ch; }
.schd-faq .faq-item.open .faq-a { display: block; }

/* ─── CTA band ─────────────────────────────────────────── */

.schd-cta-band {
  display: grid;
  gap: var(--space-6);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--bone);
}
.schd-cta-band.is-centred { text-align: center; justify-items: center; }
.schd-cta-band.is-split { grid-template-columns: minmax(0, 1fr) auto; align-items: center; text-align: left; }
.schd-cta-title { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -0.03em; font-weight: 500; margin: 0 0 var(--space-3); }
.schd-cta-lead { font-size: 15.5px; line-height: 1.6; opacity: 0.75; margin: 0; max-width: 56ch; }
.schd-cta-band .sp-note { opacity: 0.6; }

/* ─── Testimonials ─────────────────────────────────────── */

.schd-quotes { display: grid; gap: var(--space-4); }
.schd-quote { margin: 0; padding: var(--space-6); border: 1px solid var(--rule); border-radius: var(--r-xl); background: var(--bg-elev); display: flex; flex-direction: column; gap: var(--space-4); }
.schd-quote-metric { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--schd-accent); }
.schd-quote blockquote { margin: 0; font-family: var(--font-display-serif); font-size: 19px; line-height: 1.45; }
.schd-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.schd-quote-avatar { border-radius: 999px; }
.schd-quote-author { display: block; font-size: 14px; font-weight: 500; }
.schd-quote-role { display: block; font-size: 12px; color: var(--fg-muted); }

/* ─── Post grids & archives ────────────────────────────── */

.schd-archive { padding-block: clamp(48px, 7vw, 96px); }
.schd-archive-head { max-width: var(--container-narrow); margin-bottom: var(--space-7); }
.schd-archive-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 500; margin: var(--space-3) 0; }
.schd-result-count { margin-bottom: var(--space-5); }

.schd-posts { display: grid; gap: var(--space-5); }
.schd-post-card { display: flex; flex-direction: column; gap: var(--space-3); }
.schd-post-thumb { display: block; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--rule); }
.schd-post-thumb img { width: 100%; height: auto; display: block; transition: transform 0.4s var(--ease); }
.schd-post-card:hover .schd-post-thumb img { transform: scale(1.03); }
.schd-post-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.schd-post-title a { color: inherit; text-decoration: none; }
.schd-post-title a:hover { color: var(--schd-accent); }
.schd-post-excerpt { font-size: 14px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.entry-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted-2); }

.schd-release { padding: var(--space-6) 0; border-bottom: 1px solid var(--rule); }
.schd-release-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.schd-release-version { color: var(--fg); font-size: 13px; }
.schd-release-channel { text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px; background: var(--bone-2); }
.schd-release-channel.is-security { background: var(--accent-4-soft); color: var(--accent-4); }
.schd-release-channel.is-beta { background: var(--accent-5-soft); color: var(--accent-5); }
.schd-release-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: var(--space-3) 0; }
.schd-release-title a { color: inherit; text-decoration: none; }

.schd-empty { text-align: center; padding: clamp(48px, 8vw, 120px) 0; }
.schd-empty h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; }

/* ─── Single post / page ───────────────────────────────── */

.schd-page-head,
.schd-single-head { max-width: var(--container-narrow); padding-top: clamp(32px, 5vw, 64px); }
.schd-page-title,
.schd-single-title { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.033em; font-weight: 500; margin: var(--space-4) 0; }
.schd-single-meta { display: flex; align-items: center; gap: 10px; margin-top: var(--space-5); }
.schd-avatar { border-radius: 999px; }
.schd-author { font-size: 14px; font-weight: 500; }
.schd-single-media { margin: var(--space-7) auto; }
.schd-single-media img { width: 100%; height: auto; border-radius: var(--r-xl); }
.schd-single-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: var(--space-9); }
body:not(.no-sidebar) .schd-single-body { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
.schd-tags { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: 6px; }
.schd-tags a { font-size: 12px; padding: 5px 11px; border: 1px solid var(--rule); border-radius: 999px; color: var(--fg-muted); text-decoration: none; }
.schd-post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); padding: var(--space-7) 0; border-top: 1px solid var(--rule); }
.schd-post-nav a { color: inherit; text-decoration: none; font-family: var(--font-display); font-size: 16px; }
.schd-post-nav span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.schd-post-nav .next { text-align: right; }

.schd-sidebar { display: grid; gap: var(--space-6); align-content: start; }
.schd-sidebar .widget-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 var(--space-3); }
.schd-sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.schd-sidebar a { color: inherit; text-decoration: none; }
.schd-sidebar a:hover { color: var(--schd-accent); }

/* ─── Docs template ────────────────────────────────────── */

.schd-docs { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); }
.schd-docs-nav { align-content: start; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.schd-docs-group + .schd-docs-group { margin-top: var(--space-6); }
.schd-docs-group h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 var(--space-3); }
.schd-docs-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.schd-docs-group a { font-size: 13.5px; color: var(--fg-muted); text-decoration: none; }
.schd-docs-group li.is-current a { color: var(--schd-accent); }

/* ─── Breadcrumbs ──────────────────────────────────────── */

.schd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.schd-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.schd-crumbs a { color: inherit; text-decoration: none; }
.schd-crumbs a:hover { color: var(--schd-accent); }

/* ─── Header extras ────────────────────────────────────── */

.schd-announce { background: var(--ink); color: var(--bone); font-size: 13px; text-align: center; padding: 9px 0; }
.schd-announce a { color: inherit; text-decoration: none; }
.schd-announce a:hover { text-decoration: underline; }

/*
 * The nav itself is the design's. system.css owns .nav (sticky, blur, border),
 * .nav-inner (64px, space-between, container width), .nav-links (28px gap) and
 * .nav-actions; mega-nav.css owns the panels. Redefining any of those here
 * would quietly beat the design, so this file only adds what WordPress needs
 * and the one opt-out the Customizer offers.
 */
/*
 * Sticky header.
 *
 * The design is not sticky: mega-nav.css sets .nav to position:relative so the
 * panels have a positioning context. Sticky is also a positioned element, so
 * it serves that purpose equally well while keeping the bar on screen — which
 * is the behaviour asked for here. z-index stays at the design's 200 so the
 * panels continue to sit above the page.
 */
.nav.schd-nav {
  position: sticky;
  top: 0;
  z-index: 200;
}

.schd-nav.is-static { position: relative; }

/*
 * Logged-in admins get WordPress's fixed toolbar at the top of the viewport.
 * A sticky bar pinned to top:0 slides underneath it, so offset by the
 * toolbar's height — 32px on desktop, 46px on the mobile breakpoint where
 * core switches it.
 */
body.admin-bar .nav.schd-nav { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .nav.schd-nav { top: 46px; }
}

/* The nav is translucent with a blur; give it an opaque fallback where
   backdrop-filter is unsupported so text never sits on moving content. */
@supports not (backdrop-filter: blur(1px)) {
  .nav.schd-nav { background: var(--bg); }
}

/*
 * mega-nav.css sizes .mn-panel-features / -industries / -resources explicitly.
 * Any other panel the site adds gets a sensible default here — scoped so the
 * design's three keep their own widths and column ratios.
 */
.mn-panel:not(.mn-panel-features):not(.mn-panel-industries):not(.mn-panel-resources) {
  width: min(820px, calc(100vw - 32px));
}
.mn-panel:not(.mn-panel-features):not(.mn-panel-industries):not(.mn-panel-resources) .mn-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nav-link.is-current { color: var(--fg); }

.schd-burger { display: none; border: 0; background: transparent; color: inherit; padding: 6px; cursor: pointer; }

/* ─── Mobile drawer ────────────────────────────────────── */

.schd-drawer { position: fixed; inset: 0; z-index: 200; }
.schd-drawer[hidden] { display: none; }
.schd-drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.schd-drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(400px, 88vw);
  background: var(--bg);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  gap: var(--space-5);
  overflow-y: auto;
  animation: schd-slide-in 0.24s var(--ease);
}
@keyframes schd-slide-in { from { transform: translateX(12px); opacity: 0; } }
.schd-drawer-top { display: flex; align-items: center; justify-content: space-between; }
.schd-drawer-close { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 6px; }
.schd-drawer-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.schd-drawer-body a { display: block; padding: 11px 0; font-size: 16px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.schd-drawer-body .sub-menu { padding-left: var(--space-4); }
.schd-drawer-body .sub-menu a { font-size: 14px; color: var(--fg-muted); }
.schd-drawer-foot { margin-top: auto; display: grid; gap: 8px; }
body.schd-drawer-open { overflow: hidden; }

/* ─── Footer ───────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(48px, 6vw, 80px) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(24px, 4vw, 56px); }
.footer-brand p { max-width: 300px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-col a { color: var(--fg-muted); text-decoration: none; }
.footer-col a:hover { color: var(--schd-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: clamp(40px, 5vw, 72px); padding-top: var(--space-5); border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-4); }
.footer-legal a { color: inherit; text-decoration: none; }
.schd-subscribe { display: flex; gap: 8px; margin-top: var(--space-5); }
.schd-subscribe input { flex: 1; min-width: 0; padding: 9px 13px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-elev); font: inherit; font-size: 14px; color: var(--fg); }

/* ─── Sticky CTA ───────────────────────────────────────── */

.sticky-cta-inner { display: flex; align-items: center; gap: var(--space-4); }
.sticky-cta-text { font-size: 13.5px; }

/* ─── Search form ──────────────────────────────────────── */

.schd-searchform { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-elev); max-width: 560px; color: var(--muted-2); }
.schd-searchform input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--fg); }
.schd-searchform input:focus { outline: none; }

/* ─── 404 ──────────────────────────────────────────────── */

.schd-404 { padding-block: clamp(64px, 10vw, 140px); max-width: var(--container-narrow); }
.schd-404-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-6); }

/* ─── Comments ─────────────────────────────────────────── */

.schd-comments { max-width: var(--container-text); padding-block: var(--space-8); }
.schd-comments-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.comment-list .children { list-style: none; padding-left: var(--space-5); margin-top: var(--space-5); display: grid; gap: var(--space-5); }
.comment-body { font-size: 15px; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.comment-form { display: grid; gap: var(--space-3); margin-top: var(--space-7); }
.comment-form input:not([type="submit"]),
.comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-elev); font: inherit; color: var(--fg); }

/* ─── Booking widget embed ─────────────────────────────── */

.schd-embed { border: 1px solid var(--rule); border-radius: var(--r-xl); overflow: hidden; background: var(--bg-elev); }
.schd-embed.is-frame-none { border: 0; background: transparent; }
.schd-embed-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--bone-2); }
.schd-embed-chrome .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--hairline-2); }
.schd-embed-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.schd-embed-body { display: grid; }
.schd-embed.is-frame-phone { max-width: 380px; margin-inline: auto; border-radius: 32px; padding: 12px; }
.schd-embed-placeholder { display: grid; place-items: center; align-content: center; gap: 10px; padding: var(--space-8); text-align: center; color: var(--fg-muted); }
.schd-embed-placeholder code { font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; border-radius: var(--r-sm); background: var(--bone-2); }
.schd-embed-caption { text-align: center; font-size: 12.5px; color: var(--fg-muted); padding: var(--space-3); margin: 0; }

/* ─── Elementor editor niceties ────────────────────────── */

.elementor-widget-container > section.schd-sec:first-child { padding-block: var(--section-y); }
.elementor-editor-active .schd-sec { min-height: 40px; }

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 1080px) {
  .schd-calc { grid-template-columns: minmax(0, 1fr); }
  .schd-calc-result { position: static; }
  .schd-docs { grid-template-columns: minmax(0, 1fr); }
  .schd-docs-nav { position: static; max-height: none; }
  body:not(.no-sidebar) .schd-single-body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .schd-hero--split .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .schd-fi.schd-cols-2,
  .schd-fi.schd-cols-3 { grid-template-columns: minmax(0, 1fr); }
  .schd-cta-band.is-split { grid-template-columns: minmax(0, 1fr); }
  .schd-tiers,
  .schd-cards,
  .schd-posts,
  .schd-quotes,
  .schd-ind-grid,
  .schd-int-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; }
  .schd-spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* system.css hides .nav-links at 820px and the design offers nothing in its
   place, so the drawer takes over exactly there. */
@media (max-width: 820px) {
  .schd-burger { display: inline-flex; }
}

@media (max-width: 560px) {
  .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sp-stats.has-rules .sp-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .schd-tiers,
  .schd-cards,
  .schd-posts,
  .schd-quotes,
  .schd-ind-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media print {
  .schd-nav, .schd-drawer, .sticky-cta, .site-footer, .schd-announce { display: none !important; }
}
