/* ── Site-wide calls to action (October 2026) ─────────────────────────────────
   The site has two main calls to action, in this order:
     1. The 60-Second Read: one email field, one button. Rendered by
        newsletter.js into any [data-newsletter] element. Its button is the
        only coral, primary-styled button on a page.
     2. The free 30-minute call: .cta-call, an outline button.
   Everything else (Ask PKJ, /measure, the resets, the Journal, the Guides) is a
   quiet text link. Loaded after styles.css (and funnel.css where present).
   ────────────────────────────────────────────────────────────────────────── */

/* The call button. Outline, so the newsletter button stays the one primary. */
.cta-call {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 24px; border-radius: 10px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: .98rem; font-weight: 600; line-height: 1.25;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background .2s var(--ease);
}
.cta-call:hover { background: rgba(232,180,172,.3); }
.cta-call:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.cta-call.is-dark { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-call.is-dark:hover { background: rgba(255,255,255,.08); }
.cta-sub { font-size: .88rem; line-height: 1.55; color: var(--ink-2); margin: 10px 0 0; }
.is-dark .cta-sub, .cta-sub.is-dark { color: rgba(255,255,255,.62); }

/* The two CTAs together: newsletter field first, then the call button. */
.cta-pair { display: grid; gap: 22px; max-width: 560px; }
.cta-pair .cta-or { font-size: .85rem; color: var(--ink-3); margin: 0; }
.cta-block { margin: 44px 0 0; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.cta-block h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.25; margin: 0 0 14px; }
.cta-block .cta-call-wrap { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Quiet text links: the free tools and the reading. */
.quiet-link, a.quiet-link {
  color: var(--ink); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--coral); text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.quiet-link:hover { color: var(--coral); }
.quiet-links { font-size: .95rem; line-height: 1.9; color: var(--ink-2); margin: 16px 0 0; }
.btn.btn-quiet.quiet-link { padding: 6px 2px; min-height: 44px; }

/* The newsletter form, everywhere: coral is the one primary. Ink text on
   coral, because white on coral fails contrast. */
.pkj-nl-btn { background: var(--coral) !important; color: var(--ink) !important; font-weight: 600 !important; min-height: 48px !important; }
.pkj-nl-btn:hover { background: #D96A4B !important; }
.pkj-nl-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pkj-nl-in { min-height: 48px !important; }
.pkj-nl-in[aria-invalid="true"] { border-color: #B4442A !important; }
.pkj-nl-next { font-size: .92rem; line-height: 1.6; margin: 10px 0 0; color: var(--ink-2); }
.pkj-nl--dark .pkj-nl-next { color: rgba(255,255,255,.7); }
.pkj-nl-next a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.pkj-nl--compact .pkj-nl-h { font-family: var(--sans); font-size: .98rem; font-weight: 600; margin-bottom: 10px; }

/* The nav button is an outline: the newsletter button is the one primary. */
nav .nav-cta.btn { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
nav .nav-cta.btn:hover { background: rgba(232,180,172,.3); transform: none; }

/* ── Honesty block, next to the call button ── */
.honesty { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--blush); background: rgba(239,227,203,.45); border-radius: 0 12px 12px 0; max-width: 560px; }
.honesty p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.honesty p + p { margin-top: 4px; }
.honesty strong { color: var(--ink); }
.is-dark .honesty { background: rgba(255,255,255,.06); border-left-color: var(--coral); }
.is-dark .honesty p { color: rgba(255,255,255,.72); }
.is-dark .honesty strong { color: #fff; }

/* ── Footer ── */
footer .site-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
footer .site-foot-call { margin: 18px 0 0; font-size: .9rem; color: rgba(255,255,255,.7); }
footer .site-foot-call a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
footer .site-foot .footer-links { gap: 10px 22px; }
footer .site-foot .footer-links a { color: rgba(255,255,255,.72); font-size: .88rem; display: inline-flex; min-height: 32px; align-items: center; }
footer .site-foot .footer-links a:hover { color: #fff; }
footer .footer-disclaimer { margin: 0; color: rgba(255,255,255,.62); font-size: .8rem; line-height: 1.6; }
footer .footer-bottom p { color: rgba(255,255,255,.5); }
@media (max-width: 760px) { footer .site-foot { grid-template-columns: 1fr; gap: 28px; } }

/* ── Journal essays and guides ── */
.article-byline a { color: inherit; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.article-topic { color: inherit; text-decoration: underline; text-decoration-color: rgba(224,121,92,.5); text-underline-offset: 3px; }
.article-faq { margin: 44px 0 0; }
.article-faq h2 { margin-bottom: 8px; }
.article-faq details { border-top: 1px solid var(--line); padding: 2px 0; }
.article-faq details:last-child { border-bottom: 1px solid var(--line); }
.article-faq summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; font-weight: 600; position: relative; min-height: 44px; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--coral); }
.article-faq details[open] summary::after { content: '\2013'; }
.article-faq details p { margin: 0 0 14px; }
.article-up { font-size: .92rem; color: var(--ink-2); margin: 18px 0 0; }

/* ── Mobile sticky bar ──
   Fixed, so it never moves the page. styles.css already reserves 78px at the
   bottom of <body> under 860px, so it never covers the last of the content. */
.pkj-bar { display: none; }
@media (max-width: 860px) {
  .pkj-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    background: rgba(248,242,230,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(43,36,51,.08);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    transition: transform .25s var(--ease);
  }
  .pkj-bar.is-quiet:not(.is-open) { transform: translateY(110%); }
  .pkj-bar-row { display: flex; gap: 8px; }
  .pkj-bar-row > * { flex: 1 1 0; min-height: 48px; }
  .pkj-bar-nl {
    border: 0; border-radius: 10px; background: var(--coral); color: var(--ink);
    font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; padding: 0 10px;
  }
  .pkj-bar-nl:focus-visible, .pkj-bar-x:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
  .pkj-bar .cta-call { padding: 0 10px; font-size: .92rem; }
  .pkj-bar-panel { padding: 6px 2px 12px; }
  .pkj-bar-panel[hidden] { display: none; }
  .pkj-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
  .pkj-bar-top p { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
  .pkj-bar-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
  .pkj-bar.is-open .pkj-bar-row { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pkj-bar, .cta-call { transition: none; } }

/* ── 404 search ── */
.nf-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; max-width: 560px; }
.nf-search input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.nf-search input:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.nf-search button { min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.nf-results { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.nf-results a { display: inline-flex; min-height: 40px; align-items: center; }

/* ── Homepage hero: the newsletter field, then the call button ── */
.hero-nl { margin-top: 26px; }
.hero-call { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }

/* Tool controls are ink, not coral: the reset player's start button and the
   footer's newsletter button step back so the in-page newsletter button is the
   one primary in view. */
.rns-cta { background: var(--ink) !important; color: #fff !important; }
.rns-cta:hover { background: #1C1722 !important; }
.pkj-nl--dark .pkj-nl-btn { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.75) !important; }
.pkj-nl--dark .pkj-nl-btn:hover { background: rgba(255,255,255,.1) !important; }
/* newsletter.js hides this link with [hidden]; its own display rule used to win. */
.pkj-nl-alt[hidden] { display: none !important; }

/* Contrast (WCAG AA) for small text on cream. The brand coral stays on large
   display type and fills; small coral and pale grey text is darkened. */
.eyebrow { color: #A9482A; }
.nav-logo-sub { color: var(--ink-2) !important; }
.pkj-nl-small, .fx-note, .cta-sub { color: var(--ink-2) !important; }
.pkj-nl--dark .pkj-nl-small { color: rgba(255,255,255,.7) !important; }
.is-dark .cta-sub, .cta-sub.is-dark, .fx-sec.is-dark .fx-note { color: rgba(255,255,255,.75) !important; }
.breadcrumb [aria-current="page"], .breadcrumb span { color: var(--ink-2); }
.fx-h1 em { color: #B4502F; }
.ab-bio p { margin: 0 0 16px; }
.article-byline { color: var(--ink-2) !important; }
.article-body .pkj-nl-h { font-size: 1.3rem; color: var(--ink); margin-bottom: 4px; }
.article-body .pkj-nl-copy, .article-body .pkj-nl-small { line-height: 1.6; }
footer .footer-logo-sub { color: rgba(255,255,255,.62); }
