/* =========================================================================
   What's Next? - coaching-site theme
   Homepage + supporting-page styles, ported from the design reference
   (design_handoff_whatsnext_ghost/Whats Next Redesign.dc.html).
   All colour/type via the var(--wn-*) tokens in colors_and_type.css.
   Namespaced .cs-* so it cannot collide with the inherited Tailwind/wn base.
   Editorial "printed, not spring-loaded": no scale, no shadow lift on hover.
   ========================================================================= */

.cs { font-family: var(--wn-font-body); color: var(--wn-navy); background: var(--wn-cream); }
.cs *, .cs *::before, .cs *::after { box-sizing: border-box; }
.cs img { max-width: 100%; }

.cs-container { max-width: 1100px; margin: 0 auto; padding-inline: 24px; }

/* shared bits ------------------------------------------------------------ */
.cs-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--wn-text-muted); margin-bottom: 12px;
}
.cs-eyebrow--coral { color: var(--wn-coral); }
.cs-h2 { font-family: var(--wn-font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 0; letter-spacing: -.01em; }

/* buttons ---------------------------------------------------------------- */
.cs-btn, .cs-book, .cs-news-btn, .cs-playbooks-btn, .cs-footer-book {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  transition: background var(--wn-dur-fast, 160ms) var(--wn-ease, ease),
              color var(--wn-dur-fast, 160ms) var(--wn-ease, ease);
}
/* pill primary (navy -> coral on hover, cream -> ink text) */
.cs-btn--primary, .cs-book, .cs-news-btn {
  background: var(--wn-navy); color: var(--wn-cream); border: 0;
  border-radius: 9999px;
}
.cs-btn--primary:hover, .cs-book:hover, .cs-news-btn:hover {
  background: var(--wn-coral); color: var(--wn-ink);
}
.cs-btn--primary:active, .cs-book:active, .cs-news-btn:active { filter: brightness(.9); }
/* pill ghost (outline -> filled navy on hover) */
.cs-btn--ghost {
  background: transparent; color: var(--wn-navy);
  border: 2px solid var(--wn-navy); border-radius: 9999px;
}
.cs-btn--ghost:hover { background: var(--wn-navy); color: var(--wn-cream); }

/* =========================================================================
   Header (sticky) - lives in the frame partial cs-header.hbs
   ========================================================================= */
.cs-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--wn-paper-line);
  background: rgba(250, 248, 245, .94); backdrop-filter: blur(6px);
}
.cs-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wn-navy); }
.cs-brand-mark { height: 30px; width: auto; display: block; }
.cs-brand-word { font-family: var(--wn-font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.cs-nav {
  flex: 1; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.cs-nav a { color: var(--wn-navy); text-decoration: none; transition: color var(--wn-dur-fast, 160ms) ease; }
.cs-nav > a:hover { color: var(--wn-coral); }
.cs-book { padding: 10px 20px; font-size: 11px; }

/* --- header dropdown menus (CSS-only: hover + focus-within) --- */
.cs-nav-item { position: relative; display: inline-flex; align-items: center; }
.cs-nav-top { color: var(--wn-navy); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.cs-nav-item:hover .cs-nav-top, .cs-nav-item:focus-within .cs-nav-top { color: var(--wn-coral); }
.cs-caret { font-size: 8px; line-height: 1; transition: transform var(--wn-dur-fast, 160ms) ease; }
.cs-nav-item:hover .cs-caret, .cs-nav-item:focus-within .cs-caret { transform: translateY(1px) rotate(180deg); }
.cs-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 220px; background: var(--wn-cream); border: 1px solid var(--wn-paper-line);
  box-shadow: var(--wn-shadow-sm, 0 2px 8px rgba(18,18,18,.06));
  padding: 8px; display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--wn-dur-fast, 160ms) ease, transform var(--wn-dur-fast, 160ms) ease;
  z-index: 20; text-transform: none; letter-spacing: 0;
}
.cs-menu--wide { min-width: 260px; }
.cs-nav-item:hover .cs-menu, .cs-nav-item:focus-within .cs-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(2px);
}
.cs-menu a {
  display: block; padding: 8px 12px; font-size: 13px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--wn-navy); text-decoration: none; border-radius: 4px;
}
.cs-menu a:hover { background: var(--wn-cream-dark); color: var(--wn-coral); }
.cs-menu-label {
  display: block; padding: 10px 12px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--wn-text-muted);
}
.cs-menu-sep { display: block; height: 1px; background: var(--wn-paper-line); margin: 6px 8px; }

/* --- clickable service bars in the homepage panels --- */
.cs-panel-list--links li { padding: 0; }
.cs-panel-list--links li a {
  display: block; padding: 8px 0; color: var(--wn-navy); text-decoration: none;
  transition: color var(--wn-dur-fast, 160ms) ease;
}
.cs-panel-list--links li a:hover { color: var(--wn-coral); }
.cs-panel-list--links li a::after { content: " \2192"; color: var(--wn-coral); opacity: 0; transition: opacity var(--wn-dur-fast, 160ms) ease; }
.cs-panel-list--links li a:hover::after { opacity: 1; }

/* =========================================================================
   Hero
   ========================================================================= */
.cs-hero { border-bottom: 4px solid var(--wn-ink); }
.cs-hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 64px 24px 56px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
.cs-h1 {
  font-family: var(--wn-font-display); font-weight: 600;
  font-size: clamp(2.6rem, 3.4vw + 1rem, 3.9rem); line-height: 1.02;
  letter-spacing: -.015em; margin: 0 0 20px; text-wrap: balance;
}
.cs-lede { font-size: 1.15rem; color: var(--wn-text-muted); line-height: 1.55; max-width: 520px; margin: 0 0 28px; }
.cs-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-cta-row .cs-btn { font-size: 12px; }
.cs-cta-row .cs-btn--primary { padding: 14px 28px; }
.cs-cta-row .cs-btn--ghost { padding: 12px 26px; }
.cs-hero-figure { border: 4px solid var(--wn-ink); background: var(--wn-cream-dark); position: relative; }
/* The portrait is a SQUARE source (1024x1024) cropped into a 380px landscape
   band, so the crop discards top and bottom. Will's face sits high in the frame -
   a default `center` (50%) crop clips the top of his head. Biased to 35% to keep
   the whole head inside the frame. Re-check this if the portrait is ever
   replaced with a differently-composed one. */
.cs-hero-figure img { display: block; width: 100%; height: 380px; object-fit: cover; object-position: center 35%; }
.cs-hero-caption {
  position: absolute; bottom: 0; left: 0; background: var(--wn-ink); color: var(--wn-cream);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px;
}

/* =========================================================================
   Client logos strip
   ========================================================================= */
.cs-logos { border-bottom: 4px solid var(--wn-ink); }
.cs-logos-inner {
  max-width: 1100px; margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cs-logos-label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--wn-text-muted); white-space: nowrap;
}
/* The composite client-logo panel (one image, per the 12 Jul direction). Takes a
   full row of its own under the label; left-aligned to the container, never
   centred (content-production rule 7). The source JPEG is mono marks on a WHITE
   ground, so `multiply` drops that ground out against the cream paper instead of
   parking a white rectangle on it - no re-cut of the asset needed. */
.cs-logos-wall {
  flex: 1 1 100%; max-width: 720px; height: auto;
  mix-blend-mode: multiply;
}

/* =========================================================================
   Services split - "How I work with you"
   ========================================================================= */
.cs-services-inner { max-width: 1100px; margin: 0 auto; padding: 60px 24px 56px; }
.cs-services-head { max-width: 640px; margin-bottom: 32px; }
.cs-services-head .cs-h2 { font-size: 2rem; }
.cs-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 4px solid var(--wn-ink); background: var(--wn-ink); }
.cs-panel {
  background: var(--wn-cream); padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.cs-panel--left { border-right: 4px solid var(--wn-ink); }
.cs-panel-chip { width: 46px; height: 46px; }
.cs-panel-chip--blue { background: var(--wn-blue); }
.cs-panel-chip--red  { background: var(--wn-red); }
.cs-h3 { font-family: var(--wn-font-display); font-weight: 600; font-size: 1.6rem; margin: 0; }
.cs-panel p { margin: 0; color: var(--wn-navy); line-height: 1.6; }
.cs-panel-list { list-style: none; padding: 0; margin: 6px 0 0; font-size: .95rem; }
.cs-panel-list li { padding: 8px 0; border-top: 1px solid var(--wn-paper-line); }
.cs-panel-link { margin-top: auto; font-weight: 600; color: var(--wn-coral); text-decoration: none; font-size: .95rem; padding-top: 12px; }
.cs-panel-link:hover { color: var(--wn-navy); }

/* =========================================================================
   Newsletter - Your Next Move
   ========================================================================= */
.cs-news { background: var(--wn-cream-dark); border-top: 4px solid var(--wn-ink); border-bottom: 4px solid var(--wn-ink); }
.cs-news-inner { max-width: 1100px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.cs-news-copy .cs-h2 { font-size: 2.1rem; line-height: 1.08; margin: 0 0 14px; }
.cs-news-copy p { color: var(--wn-navy); line-height: 1.6; margin: 0 0 20px; max-width: 420px; }
.cs-news-form { display: flex; gap: 8px; max-width: 420px; flex-wrap: wrap; }
.cs-news-input {
  flex: 1; min-width: 200px; padding: 13px 18px; border-radius: 9999px;
  border: 1.5px solid var(--wn-navy); background: var(--wn-cream); color: var(--wn-navy);
  font-family: var(--wn-font-body); font-size: .95rem;
}
.cs-news-btn { padding: 13px 24px; font-size: 11px; letter-spacing: .06em; }
.cs-news-message { font-size: .9rem; margin: 10px 0 0; display: none; }
/* Ghost injects text into [data-members-error] on failure -> reveal when non-empty */
.cs-news-message[data-members-error]:not(:empty) { display: block; color: var(--wn-red); }
/* Ghost adds .success to the form on a successful subscribe -> reveal the confirmation */
.cs-news-form.success ~ .cs-news-message[data-members-success] { display: block; color: var(--wn-navy); }
.cs-editions-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wn-text-muted); margin-bottom: 12px; }
.cs-editions { display: flex; flex-direction: column; gap: 8px; }
.cs-edition {
  display: block; background: var(--wn-cream); border: 1px solid var(--wn-paper-line);
  padding: 16px 18px; text-decoration: none; color: var(--wn-navy);
  transition: border-color var(--wn-dur-fast, 160ms) ease;
}
.cs-edition:hover { border-color: var(--wn-navy); }
.cs-edition-date { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--wn-text-muted); margin-bottom: 4px; }
.cs-edition-title { font-family: var(--wn-font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.cs-edition-blurb { font-size: .92rem; color: var(--wn-text-muted); font-style: italic; margin-top: 4px; }
.cs-archive-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--wn-coral); text-decoration: none; font-size: .95rem; }
.cs-archive-link:hover { color: var(--wn-navy); }

/* =========================================================================
   Playbooks band (poster red)
   ========================================================================= */
.cs-playbooks { background: var(--wn-red); color: #fff; border-bottom: 4px solid var(--wn-ink); }
.cs-playbooks-inner { max-width: 1100px; margin: 0 auto; padding: 44px 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cs-playbooks-copy { max-width: 640px; }
.cs-playbooks-copy .cs-eyebrow { opacity: .85; color: #fff; margin-bottom: 8px; }
.cs-playbooks-copy .cs-h2 { color: #fff; font-size: 1.9rem; margin: 0 0 8px; }
.cs-playbooks-copy p { margin: 0; opacity: .92; line-height: 1.55; }
.cs-playbooks-btn { background: var(--wn-cream); color: var(--wn-ink); padding: 15px 30px; font-size: 12px; white-space: nowrap; border: 2px solid var(--wn-ink); }
.cs-playbooks-btn:hover { background: var(--wn-ink); color: var(--wn-cream); }

/* =========================================================================
   About
   ========================================================================= */
/* Single column since the About portrait was removed (21 July 2026 - the headshot
   lives in the hero only). Left as a grid, not reverted to a block, so restoring
   the figure is a markup-only change: put .cs-about-figure back and set
   grid-template-columns to `.8fr 1.2fr`. The body is width-limited for line
   length and stays LEFT-aligned to the container - no auto margins, per
   content-production rule 7. */
.cs-about-inner { max-width: 1100px; margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.cs-about-body { max-width: 62ch; }
.cs-about-figure { border: 4px solid var(--wn-ink); }
/* Same square-source crop bias as the hero portrait - see .cs-hero-figure img. */
.cs-about-figure img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: center 35%; }
.cs-about-body .cs-h2 { margin: 0 0 16px; }
.cs-about-body p { color: var(--wn-navy); line-height: 1.65; margin: 0 0 14px; font-size: 1.08rem; }
.cs-about-body p.cs-muted { color: var(--wn-text-muted); margin: 0; }

/* =========================================================================
   Footer (navy) - lives in cs-footer.hbs
   ========================================================================= */
.cs-footer { background: var(--wn-navy); color: var(--wn-cream); }
.cs-footer-inner { max-width: 1100px; margin: 0 auto; padding: 48px 24px 24px; }
.cs-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.cs-footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.cs-footer-brand img { width: 44px; height: auto; }
.cs-footer-brand-word { font-family: var(--wn-font-display); font-weight: 700; font-size: 1.3rem; }
.cs-footer-tagline { font-size: .9rem; color: var(--wn-coral-light); margin-top: 4px; }
.cs-footer-heading { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wn-coral-light); margin-bottom: 14px; }
.cs-footer-links { list-style: none; padding: 0; margin: 0; font-size: .92rem; line-height: 2; }
.cs-footer-links a { color: var(--wn-cream); text-decoration: none; opacity: .88; }
.cs-footer-links a:hover { opacity: 1; color: var(--wn-coral-light); }
.cs-footer-note { font-size: .9rem; color: var(--wn-coral-light); line-height: 1.5; margin: 0 0 14px; }
.cs-footer-book { background: var(--wn-coral); color: var(--wn-ink); padding: 12px 22px; border-radius: 9999px; font-size: 11px; letter-spacing: .06em; }
.cs-footer-book:hover { background: var(--wn-cream); color: var(--wn-ink); }
.cs-footer-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--wn-coral-light); margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(250, 248, 245, .12); gap: 16px; flex-wrap: wrap; }

/* =========================================================================
   Long-form reading column (single newsletter edition / generic page)
   ========================================================================= */
.cs-read { max-width: 680px; margin: 0 auto; padding: 56px 24px 72px; }
.cs-read-head { margin-bottom: 32px; }
.cs-read-date { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wn-text-muted); margin-bottom: 12px; }
.cs-read-title { font-family: var(--wn-font-display); font-weight: 600; font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem); line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.cs-read-body { font-size: 1.0625rem; line-height: 1.7; }
.cs-read-body h2 { font-family: var(--wn-font-display); font-size: 1.5rem; margin: 2em 0 .6em; }
.cs-read-body h3 { font-family: var(--wn-font-display); font-size: 1.2rem; margin: 1.6em 0 .5em; }
.cs-read-body p { margin: 0 0 1.2em; }
.cs-read-body img { border: 4px solid var(--wn-ink); }
.cs-read-back { display: inline-block; margin-top: 40px; font-weight: 600; color: var(--wn-coral); text-decoration: none; font-size: .95rem; }
.cs-read-back:hover { color: var(--wn-navy); }

/* Ghost button cards inside page/post bodies -> coaching pill (navy -> coral),
   so in-content CTAs (e.g. the coaching offer pages' 'Book a call') match the
   site's buttons instead of the default Ghost accent colour. */
.cs-read-body .kg-btn {
  background: var(--wn-navy) !important; color: var(--wn-cream) !important;
  border-radius: 9999px !important; font-family: var(--wn-font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; font-size: 12px;
  padding: 14px 28px; border: 0; text-decoration: none;
  transition: background var(--wn-dur-fast, 160ms) ease, color var(--wn-dur-fast, 160ms) ease;
}
.cs-read-body .kg-btn:hover { background: var(--wn-coral) !important; color: var(--wn-ink) !important; }

/* archive list ----------------------------------------------------------- */
.cs-archive { max-width: 1100px; margin: 0 auto; padding: 56px 24px 72px; }
.cs-archive-head { max-width: 640px; margin-bottom: 32px; }
.cs-archive-head .cs-h2 { font-size: 2.1rem; }
.cs-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* =========================================================================
   Signature entrance - first paint only, respects reduced-motion
   ========================================================================= */
@keyframes cs-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.cs-slide-up { animation: cs-slide-up 420ms var(--wn-ease, cubic-bezier(.2,.6,.2,1)) both; }
@media (prefers-reduced-motion: reduce) {
  .cs-slide-up { animation: none; }
  .cs * { transition: none !important; }
}

/* =========================================================================
   Responsive - collapse two-column grids below ~860px
   ========================================================================= */
@media (max-width: 860px) {
  .cs-hero-inner,
  .cs-news-inner,
  .cs-about-inner { grid-template-columns: 1fr; gap: 32px; }
  .cs-panels { grid-template-columns: 1fr; }
  .cs-panel--left { border-right: 0; border-bottom: 4px solid var(--wn-ink); }
  .cs-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cs-nav { flex-basis: 100%; order: 3; justify-content: flex-start; gap: 18px 18px; flex-wrap: wrap; }
  .cs-menu { left: 0; transform: translateX(0) translateY(6px); }
  .cs-nav-item:hover .cs-menu, .cs-nav-item:focus-within .cs-menu { transform: translateX(0) translateY(2px); }
  .cs-header-inner { gap: 16px; }
  .cs-hero-inner { padding: 44px 24px 40px; }
  .cs-playbooks-inner { flex-direction: column; align-items: flex-start; }
}
