/* Shared site chrome: mobile nav + footer wrap. Additive, does not replace page CSS. */

/* Desktop nav: keep every label and the CTA on one line above the hamburger breakpoint */
@media (min-width: 901px) {
  .nav-inner { gap: 12px; }
  .nav-logo, .nav-cta { flex-shrink: 0; white-space: nowrap; }
  .nav-links { gap: 0; }
  .nav-links a { white-space: nowrap; padding: 8px 9px; font-size: 0.86rem; }
  .nav-cta { padding: 10px 18px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .nav-inner { padding: 0 20px; gap: 8px; }
  .nav-logo { font-size: 1.05rem; }
  .nav-links a { padding: 8px 5px; font-size: 0.78rem; }
  .nav-cta { padding: 8px 12px; font-size: 0.8rem; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .nav-cta { flex-shrink: 0; white-space: nowrap; }
  .nav-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 64px;
    min-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-logo {
    margin-right: auto;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
  }
  .nav-inner:has(.nav-links.is-open) {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-links:not(.is-open) { display: none !important; }
  .nav-links.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    width: 100%;
    order: 5;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--gray-200);
  }
  .nav-links.is-open a {
    padding: 12px 8px;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    flex-wrap: nowrap;
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
    padding-top: 0;
    padding-bottom: 0;
    gap: 6px;
  }
  .nav-inner:has(.nav-links.is-open) {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-logo { font-size: 0.98rem; }
  .nav-cta { padding: 7px 12px; font-size: 0.8rem; }
}

.footer-left {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}


@media (max-width: 480px) {
  .nav-inner { gap: 4px; padding: 0 12px; }
  .nav-logo { font-size: 0.92rem; }
  .nav-logo .mark { width: 28px; height: 28px; font-size: 0.75rem; }
  .nav-cta { padding: 6px 10px; font-size: 0.75rem; }
  .nav-toggle { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
    max-width: 100%;
  }
  .footer-links a {
    white-space: normal;
  }
}

.post-content a { color: var(--accent); text-decoration: none; font-weight: 500; }
.post-content a:hover { text-decoration: underline; }
.hero p a,
.hero #definition a,
.hero .page-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.hero p a:hover,
.hero #definition a:hover {
  text-decoration: underline;
}
.hero a.btn-primary,
.hero a.btn-primary:hover {
  color: #fff !important;
  text-decoration: none;
}
.hero .key-takeaway {
  max-width: 36rem;
  margin-top: 8px;
  margin-bottom: 20px;
}
.proof-honesty {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 24px;
}
.hero a.btn-secondary {
  color: var(--navy);
  text-decoration: none;
}
.hero a.btn-secondary:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Navy hero-visual + serp-preview: light text so honesty panels stay readable.
   Scoped so light-background .serp-preview (outside .hero-visual) is unchanged. */
.hero-visual .serp-preview {
  position: relative;
  z-index: 1;
  color: #fff;
}
.hero-visual .serp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.hero-visual .serp-title {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
}
.hero-visual .serp-tag {
  font-size: 0.7rem;
  color: var(--accent-light);
  font-weight: 600;
  background: rgba(249,115,22,0.22);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(251,146,60,0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hero-visual .serp-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.hero-visual .serp-item:last-child { margin-bottom: 0; }
.hero-visual .serp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-visual .serp-kw {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-visual .serp-meta { display: flex; gap: 14px; margin-top: 5px; }
.hero-visual .serp-meta span {
  font-size: 0.72rem;
  color: #C5CDD8;
}

.howto-steps { list-style: none; margin: 0 0 20px; padding: 0; }
.howto-steps > li { margin-bottom: 8px; }
.howto-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}

.breadcrumb .sep { margin: 0 8px; color: var(--gray-400); }

.key-takeaway {
  background: var(--accent-pale);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
}
.key-takeaway .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.post-faq { margin: 44px 0 8px; }
.post-faq-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.post-faq-item {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px 20px;
}
.post-faq-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}
.post-faq-item p { margin-bottom: 0; }

.related-guides {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 0 32px;
}
.related-guides-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
}
.related-guides-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--navy);
}
.related-guides-box ul { margin: 0; padding-left: 20px; color: var(--slate); line-height: 1.7; }
.related-guides-box li { margin-bottom: 6px; font-size: 0.95rem; }
.related-guides-box p { color: var(--slate); font-size: 0.95rem; line-height: 1.75; margin: 0; }
.related-guides-box a { color: var(--accent); text-decoration: none; font-weight: 500; }
.related-guides-box a:hover { text-decoration: underline; }

.icon-wrap svg,
.filter-icon svg,
.pillar-icon svg,
.deliverable-card .icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-wrap,
.filter-icon,
.pillar-icon,
.deliverable-card .icon {
  color: var(--accent);
}
@media (max-width: 600px) { .related-guides { padding: 0 20px; } }

.useful-links { max-width: 720px; margin: 0 auto 80px; padding: 0 32px; }
.useful-links h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.useful-links ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; padding: 0; }
.useful-links a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.useful-links a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .useful-links { padding: 0 20px 60px; }
  .useful-links ul { grid-template-columns: 1fr; }
}

.post-toc {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.post-toc p {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.post-toc ol {
  margin: 0 0 0 20px;
  color: var(--slate);
  line-height: 1.7;
}
.post-toc li { margin-bottom: 4px; font-size: 0.95rem; }
.post-toc a { color: var(--accent); text-decoration: none; font-weight: 500; }
.post-toc a:hover { text-decoration: underline; }
.post-content .cite { font-size: 0.92rem; }
.post-sources { font-size: 0.92rem; }
.post-sources li { font-size: 0.92rem; }

/* Additive lander education prose ,  does not change hero CTA or nav */
.page-education {
  max-width: 800px;
}
.page-education p {
  font-size: 1.02rem;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 16px;
}
.page-education h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--navy);
}
.page-education a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.page-education a:hover { text-decoration: underline; }
.page-education ul {
  margin: 0 0 16px 22px;
  color: var(--slate);
  line-height: 1.7;
}
.page-education li { margin-bottom: 6px; font-size: 1rem; }

/* Mobile-safe CTA banner: keep #contact / .cta-form / reCAPTCHA inside the
   viewport on ~390px. Additive ,  does not change desktop two-column layout. */
.cta-banner {
  width: 100%;
  box-sizing: border-box;
}
.cta-inner,
.cta-form,
.cta-inner > * {
  min-width: 0;
  max-width: 100%;
}
.cta-form input,
.cta-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.cta-inner h2,
.cta-inner p {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.cta-form [data-netlify-recaptcha="true"],
.cta-form .g-recaptcha {
  max-width: 100%;
  transform-origin: 0 0;
}

@media (max-width: 1024px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cta-banner {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 60px;
    overflow-x: clip;
  }
  .cta-inner {
    padding: 28px 16px;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cta-inner h2 {
    font-size: 1.5rem;
  }
  .cta-form {
    width: 100%;
  }
}

/* reCAPTCHA v2 checkbox is 304×78. At 390px, 16px banner + 16px inner
   padding leaves 326px. Unscaled widget fits. Scale only below that. */
@media (max-width: 368px) {
  .cta-form [data-netlify-recaptcha="true"],
  .cta-form .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}
@media (max-width: 340px) {
  .cta-form [data-netlify-recaptcha="true"],
  .cta-form .g-recaptcha {
    transform: scale(0.77);
  }
}


/* Mobile-safe stacked tables: desktop stays a real table; mobile becomes cards (no overflow-x). */
.stack-table-wrap {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: white;
}
@media (max-width: 640px) {
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .stack-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    background: white;
  }
  .stack-table td {
    border: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 12px 14px !important;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .stack-table td:last-child {
    border-bottom: none !important;
  }
  .stack-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 4px;
  }
}

/* Compare / article pages: keep tables and long URLs inside ~390px viewports. */
.post-content {
  overflow-x: clip;
}
.post-header h1,
.post-content p,
.post-content li,
.post-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-content table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-content th,
.post-content td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.stack-table-wrap {
  max-width: 100%;
  overflow-x: clip;
}

/* First-party cookie notice. Does not cover forms or change reCAPTCHA. */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 12px 20px;
  background: var(--navy);
  color: #E2E7EF;
  box-shadow: 0 -4px 24px rgba(11, 29, 58, 0.16);
}
.cookie-consent p {
  margin: 0;
  max-width: 44rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #E2E7EF;
}
.cookie-consent a {
  color: #FB923C;
  font-weight: 600;
  text-decoration: underline;
}
.cookie-consent a:hover {
  color: #FDBA74;
}
.cookie-consent-accept {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-consent-accept:hover {
  background: var(--accent-light);
}
.cookie-consent-accept:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
body.has-cookie-consent {
  padding-bottom: 88px;
}
@media (max-width: 600px) {
  .cookie-consent {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    text-align: left;
  }
  .cookie-consent p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .cookie-consent-accept {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}