/* DirectorPM shared site chrome.
   Loaded by every page AFTER its inline <style>, so these rules win on conflict.
   Owns: skip link, mobile nav (hamburger), capture strip, footer nav, focus states.
   Keep page-specific layout in each page's inline style block. */

/* ---- Skip link (a11y: first focusable element on every page) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #2563eb;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ---- Visible focus for keyboard users (never remove the indicator) ----
   !important is deliberate: several pages set `outline: none` on inputs from a
   higher-specificity selector (e.g. `.email-form input[type="email"]`), which would
   otherwise suppress the focus ring. This is the a11y baseline and should always win.
   :focus-visible keeps the ring off for mouse clicks. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
label:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px;
}

/* ---- Mobile nav ----
   Checkbox-hack disclosure: no JS, works on every page regardless of that page's
   own script block. The checkbox is visually hidden but stays focusable. */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  cursor: pointer;
  padding: 6px 4px;
  line-height: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible + .nav-burger {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .nav-burger {
    display: block;
  }
  /* Burger morphs into an X when open, so the control reads as a toggle. */
  .nav-toggle:checked + .nav-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Panel drops below the sticky bar. Overrides each page's inline
     `.nav-links a:not(.nav-cta) { display: none }`, which hid the whole menu. */
  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }
  nav .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
  nav .nav-links a,
  nav .nav-links a:not(.nav-cta) {
    display: block;
    padding: 13px 24px;
    font-size: 0.95rem;
  }
  nav .nav-links .nav-cta {
    margin: 10px 24px 0;
    text-align: center;
    padding: 13px 18px;
  }
}

/* ---- Email capture strip (non-buyer fallback on product pages) ---- */
.capture-strip {
  background: #eff6ff;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  padding: 40px 24px;
}
.capture-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.capture-copy {
  max-width: 640px;
}
.capture-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 8px;
}
.capture-strip h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.capture-strip p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
}
.capture-btn {
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.capture-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .capture-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .capture-btn {
    width: 100%;
    text-align: center;
  }
}

/* ---- Anchor offer (homepage: the $99 bundle, surfaced near the top) ----
   The catalog below it runs ~7000px, so the anchor offer used to sit ~8900px down the
   page. This is the compact version; #bundle still carries the full tool list. */
.anchor-offer {
  background: #1a1a1a;
  padding: 40px 24px;
}
.anchor-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.anchor-copy {
  max-width: 620px;
}
.anchor-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #2563eb;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.anchor-offer h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.anchor-offer > .anchor-inner .anchor-copy > p {
  font-size: 0.98rem;
  color: #bbb;
  line-height: 1.65;
  margin: 0 0 18px;
}
.anchor-copy strong {
  color: #fff;
}
.anchor-proof {
  border-left: 3px solid #2563eb;
  padding-left: 16px;
}
.anchor-stars {
  color: #f5b301;
  letter-spacing: 2px;
  font-size: 0.9rem;
}
.anchor-proof p {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.6;
  font-style: italic;
  margin: 4px 0 6px;
}
.anchor-proof cite {
  font-size: 0.78rem;
  color: #888;
  font-style: normal;
}
.anchor-action {
  flex-shrink: 0;
  text-align: center;
}
.anchor-btn {
  display: block;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 32px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.anchor-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.anchor-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #7fa9f7;
  text-decoration: none;
  font-weight: 600;
}
.anchor-link:hover {
  color: #fff;
}
.anchor-sub {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #888;
}

@media (max-width: 860px) {
  .anchor-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .anchor-action {
    width: 100%;
  }
  .anchor-btn {
    width: 100%;
  }
}

/* ---- Risk reversal under the homepage buy buttons ----
   Product pages already carry this under their buy button; the homepage did not,
   and the guarantee was buried in the FAQ. */
.buy-reassure {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #999;
  text-align: center;
}

/* ---- <picture> wrappers must not disturb existing image layout ----
   Product images are wrapped in <picture> to serve WebP with a PNG fallback. <picture>
   is inline by default, so it would become the flex/grid child and break rules written
   against the <img> (e.g. .product-img img { height: 100% }). Make the wrapper
   transparent to layout by matching the box it replaced. */
.product-img picture,
.product-gallery picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-thumbs picture {
  display: block;
  line-height: 0;
}

/* ---- Author identity link (homepage About) ----
   The credibility claim is "built by a working Director of Program Management", so the
   LinkedIn link is what makes that claim checkable. It also lets the profile carry the
   employer proof without the site naming employers itself. */
.author-link {
  display: inline-block;
  margin: 4px 0 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.author-link:hover {
  text-decoration: underline;
}

/* ---- Footer nav ---- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
}
