/* ============================================================
   PUBLICATION — advertorial (index.html) + about page
   Editorial, news-review layout system.
   ============================================================ */

body.family-publication {
  background: var(--pub-bg);
  color: var(--pub-ink);
}

/* ---- masthead ---- */
.pub-masthead {
  border-bottom: 1px solid var(--pub-border);
  background: #fff;
  position: relative;
  z-index: 30;
}

.pub-masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-3);
  gap: var(--sp-2);
}

.pub-masthead__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--pub-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pub-masthead__logo span {
  color: var(--pub-accent);
}

.pub-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--pub-border);
  background: #fff;
  cursor: pointer;
}

.pub-nav-toggle span,
.pub-nav-toggle::before,
.pub-nav-toggle::after {
  display: none;
}

.pub-nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pub-ink);
  position: relative;
}

.pub-nav-toggle-icon::before,
.pub-nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--pub-ink);
}

.pub-nav-toggle-icon::before { top: -6px; }
.pub-nav-toggle-icon::after { top: 6px; }

.pub-masthead__nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--pub-border);
  padding: var(--sp-2) 0;
}

.pub-masthead__nav.is-open {
  display: flex;
}

.pub-masthead__nav a {
  padding: 12px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--pub-ink-soft);
  border-bottom: 1px solid var(--pub-border);
}

@media (min-width: 768px) {
  .pub-nav-toggle { display: none; }
  .pub-masthead__nav {
    display: flex;
    flex-direction: row;
    gap: var(--sp-4);
    border-top: none;
    padding: 0;
  }
  .pub-masthead__nav a {
    border-bottom: none;
    padding: 0;
    min-height: auto;
  }
  .pub-masthead__nav a:hover,
  .pub-masthead__nav a:focus-visible {
    color: var(--pub-accent);
  }
}

/* ---- disclosure ribbon ---- */
.pub-ribbon {
  background: var(--pub-bg-alt);
  border-bottom: 1px solid var(--pub-border);
  padding-block: var(--sp-2);
}

.pub-ribbon p {
  font-size: 0.85rem;
  color: var(--pub-ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- breadcrumb ---- */
.pub-breadcrumb {
  padding-top: var(--sp-4);
  font-size: 0.86rem;
  color: var(--pub-ink-soft);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pub-breadcrumb a {
  color: var(--pub-accent);
  font-weight: 600;
}

/* ---- hero / headline block ---- */
.pub-hero {
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-4);
}

.pub-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 5.6vw + 0.4rem, 3.2rem);
  color: var(--pub-ink);
}

.pub-hero__h2 {
  margin-top: var(--sp-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw + 0.4rem, 1.55rem);
  color: var(--pub-accent-dark);
  line-height: 1.35;
}

.pub-byline {
  margin-top: var(--sp-3);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--pub-ink-soft);
  border-top: 1px solid var(--pub-border);
  border-bottom: 1px solid var(--pub-border);
  padding-block: var(--sp-2);
}

.pub-byline strong {
  color: var(--pub-ink);
}

/* ---- "in this article" jump select ---- */
.pub-jump {
  margin-top: var(--sp-4);
  position: relative;
}

.pub-jump select {
  width: 100%;
  min-height: 52px;
  padding: 12px 44px 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid var(--pub-border);
  border-radius: var(--radius-s);
  background: var(--pub-bg-alt);
  color: var(--pub-ink);
  appearance: none;
}

.pub-jump::after {
  content: "\25BE";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pub-ink-soft);
  pointer-events: none;
}

.pub-jump select:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 1px;
}

/* ---- hero figure ---- */
.pub-figure {
  margin-top: var(--sp-5);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.pub-figure img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.pub-figure figcaption {
  margin-top: var(--sp-2);
  font-size: 0.85rem;
  color: var(--pub-ink-soft);
}

/* ---- article body ---- */
.pub-article {
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--sp-6);
}

.pub-article > * + * {
  margin-top: var(--sp-4);
}

.pub-lead {
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.25rem);
  color: var(--pub-ink);
  font-weight: 500;
}

.pub-article h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw + 0.7rem, 2rem);
  line-height: 1.2;
  margin-top: var(--sp-6) !important;
}

.pub-article h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}

.pub-article p {
  color: #2b3532;
  font-size: 1.02rem;
}

.pub-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pub-accent);
}

.pub-article strong {
  color: var(--pub-ink);
}

.pub-numbered-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
  counter-reset: pub-count;
}

.pub-numbered-list li {
  counter-increment: pub-count;
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--pub-bg-alt);
  border-radius: var(--radius-m);
  border: 1px solid var(--pub-border);
}

.pub-numbered-list li::before {
  content: counter(pub-count);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pub-accent);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-numbered-list h3 {
  margin: 0 0 4px;
}

.pub-numbered-list p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---- pull quote (hourly rate callout) ---- */
.pub-pullquote {
  border-left: 5px solid var(--pub-accent);
  background: var(--pub-bg-alt);
  padding: var(--sp-4);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}

.pub-pullquote p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.2vw + 0.6rem, 1.6rem);
  font-weight: 700;
  color: var(--pub-accent-dark);
  line-height: 1.3;
}

.pub-pullquote span {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pub-ink-soft);
}

/* ---- full-width AI-leverage callout band ---- */
.pub-callout-band {
  margin-top: var(--sp-6);
  background: var(--pub-accent-dark);
  color: #fff;
  padding-block: var(--sp-6);
}

.pub-callout-band .pub-kicker {
  color: #9fe0c4;
}

.pub-callout-band h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw + 0.7rem, 2.1rem);
  margin-top: var(--sp-2);
  color: #fff;
}

.pub-callout-band p {
  margin-top: var(--sp-3);
  font-size: 1.05rem;
  color: #dff2ea;
  max-width: 640px;
}

.pub-callout-band__tag {
  display: inline-block;
  margin-top: var(--sp-4);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---- checklist ---- */
.pub-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pub-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 1rem;
  color: #2b3532;
}

.pub-checklist li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d9f0e6;
  color: var(--pub-accent-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ---- steps ---- */
.pub-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pub-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-3);
  align-items: baseline;
}

.pub-steps li span.pub-step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--pub-accent);
}

.pub-steps h3 {
  margin-bottom: 4px;
}

.pub-steps p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---- verdict badge ---- */
.pub-verdict {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  background: #fff8e6;
  border: 1.5px solid #f0d789;
  border-radius: var(--radius-m);
  padding: var(--sp-4);
}

.pub-verdict__score {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: #8a6a10;
  flex-shrink: 0;
}

.pub-verdict p {
  margin: 0;
  font-size: 0.98rem;
  color: #5a460c;
}

/* ---- media (video block) ---- */
.pub-media {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #000;
}

.pub-media .media-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.pub-media .media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-media figcaption {
  padding: var(--sp-2) 0 0;
  font-size: 0.85rem;
  color: var(--pub-ink-soft);
}

/* ---- CTA blocks ---- */
.pub-cta-block {
  text-align: center;
  background: var(--pub-bg-alt);
  border-radius: var(--radius-m);
  padding: var(--sp-6) var(--sp-4);
  border: 1px solid var(--pub-border);
}

.pub-cta-block h2 {
  margin-top: 0 !important;
}

.pub-cta-block p {
  max-width: 520px;
  margin-inline: auto;
}

.btn-pub-primary {
  background: var(--pub-accent);
  color: #fff;
  margin-top: var(--sp-4);
}

.btn-pub-primary:hover {
  background: var(--pub-accent-dark);
  box-shadow: var(--shadow-soft);
}

.btn-pub-ghost {
  background: transparent;
  border-color: var(--pub-accent);
  color: var(--pub-accent-dark);
}

.btn-pub-ghost:hover {
  background: var(--pub-bg-alt);
}

/* ---- FAQ accordion (accent borrow: dark card + blue) ---- */
.pub-faq {
  background: var(--pub-callout-bg);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
}

.pub-faq h2 {
  color: #fff;
  margin-top: 0 !important;
}

.pub-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pub-faq-item:last-child {
  border-bottom: none;
}

.pub-faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  padding: var(--sp-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  min-height: 44px;
}

.pub-faq-question:focus-visible {
  outline: 2px solid var(--pub-callout-accent);
  outline-offset: 3px;
}

.pub-faq-question .pub-faq-icon {
  color: var(--pub-callout-accent);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.pub-faq-item.is-open .pub-faq-icon {
  transform: rotate(45deg);
}

.pub-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.pub-faq-answer p {
  color: #c7cee0;
  font-size: 0.96rem;
  padding-bottom: var(--sp-3);
  margin: 0;
}

/* ---- sticky bottom CTA bar (accent borrow) ---- */
.pub-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--pub-callout-bg);
  color: #fff;
  padding: 10px max(16px, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  transform: translateY(120%);
  transition: transform var(--transition);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}

.pub-sticky-cta.is-visible {
  transform: translateY(0);
}

.pub-sticky-cta p {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  max-width: 60%;
}

.btn-pub-sticky {
  background: var(--pub-callout-accent);
  color: #fff;
  white-space: nowrap;
  padding: 10px 18px;
  min-height: 44px;
}

.btn-pub-sticky:hover {
  background: #345bd6;
}

body.has-sticky-cta {
  padding-bottom: 72px;
}

/* ---- generic section wrapper for hero-adjacent uses on about page ---- */
.pub-section {
  padding-block: var(--sp-6);
}

.pub-section--alt {
  background: var(--pub-bg-alt);
}

.pub-grid-2 {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .pub-grid-2 {
    flex-direction: row;
  }
  .pub-grid-2 > * {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .pub-hero__h2 { max-width: 640px; }
}
