/* Papaya Insights — editorial system */
.blog-page,
.article-page { background: var(--paper); }
.blog-page .blog-site-header,
.article-page .blog-site-header { background: rgba(9, 24, 39, .96); }
.legal-page .article-heading { max-width: 900px; }
.legal-page .article-heading h1 { max-width: 820px; }
.legal-page .article-layout { display: block; max-width: 1040px; }
.legal-page .article-body { max-width: 790px; margin: 0 auto; }
.legal-page .article-section:last-child { padding-bottom: 0; }
.blog-site-header .site-nav a[aria-current="page"] { color: var(--gold); }
.blog-footer a:hover { color: var(--gold); }

.blog-masthead {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) .65fr;
  align-items: end;
  gap: 3rem;
  overflow: hidden;
  padding: 10.5rem clamp(1.4rem, 6.5vw, 7.5rem) 6.5rem;
  color: var(--white);
  background: var(--navy);
}
.blog-masthead::after {
  content: "";
  position: absolute;
  width: min(50vw, 760px);
  aspect-ratio: 1;
  right: -12%;
  bottom: -45%;
  border: clamp(3rem, 8vw, 8rem) solid rgba(244, 184, 46, .92);
  border-radius: 50%;
  pointer-events: none;
}
.blog-masthead-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}
.blog-masthead-copy { position: relative; z-index: 2; max-width: 1040px; }
.blog-masthead h1 {
  max-width: 980px;
  margin: 1.8rem 0 2rem;
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .82;
}
.blog-masthead h1 em { color: var(--gold); font-weight: 400; }
.blog-masthead-copy > p:last-child { max-width: 660px; color: rgba(255,255,255,.65); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.75; }
.blog-masthead-index { position: relative; z-index: 2; align-self: end; justify-self: end; display: flex; align-items: baseline; gap: .8rem; margin: 0 1rem 3.5rem 0; }
.blog-masthead-index span { color: var(--gold); font-family: var(--serif); font-size: clamp(5rem, 9vw, 9rem); font-style: italic; letter-spacing: -.08em; line-height: .7; }
.blog-masthead-index small { max-width: 70px; color: rgba(255,255,255,.5); font-size: .58rem; font-weight: 850; letter-spacing: .16em; line-height: 1.5; }

.featured-insight,
.insights-library,
.related-insights { padding: clamp(5rem, 9vw, 9rem) clamp(1.4rem, 6.5vw, 7.5rem); }
.featured-insight { background: var(--cream); }
.section-kicker { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-kicker i { flex: 1; height: 1px; background: var(--line); }
.insight-card { min-width: 0; }
.insight-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-soft); }
.insight-card-image picture,
.insight-card-image img { width: 100%; height: 100%; }
.insight-card-image img { object-fit: cover; filter: saturate(.78) contrast(1.04); transition: transform .75s cubic-bezier(.2,.75,.2,1), filter .45s ease; }
.insight-card:hover .insight-card-image img { transform: scale(1.035); filter: saturate(.96) contrast(1.02); }
.insight-card-number { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 48px; height: 48px; color: var(--navy); background: var(--gold); border-radius: 50%; font-size: .62rem; font-weight: 850; }
.insight-card-copy { padding-top: 1.4rem; }
.insight-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.2rem; color: var(--muted); font-size: .57rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.insight-meta span:first-child { color: var(--navy); }
.insight-meta span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; background: var(--gold); border: 1px solid var(--navy); border-radius: 50%; }
.insight-card h2 { margin: 1rem 0 .8rem; font-family: var(--serif); font-size: clamp(2rem, 2.8vw, 3rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.04; }
.insight-card p { max-width: 610px; margin: 0 0 1.2rem; color: var(--muted); font-size: .85rem; line-height: 1.72; }
.article-link { min-height: 44px; display: inline-flex; align-items: center; gap: .6rem; padding-block: .65rem; border-bottom: 1px solid var(--navy); font-size: .68rem; font-weight: 800; }
.article-link span { color: #a27400; transition: transform .25s ease; }
.article-link:hover span { transform: translate(3px, -3px); }
.insight-card-featured { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.insight-card-featured .insight-card-image { aspect-ratio: 16 / 10; }
.insight-card-featured .insight-card-copy { padding: 1rem 0; }
.insight-card-featured h2 { font-size: clamp(3.2rem, 5vw, 6rem); }
.insight-card-featured p { font-size: .95rem; }

.insights-library { background: var(--paper); }
.library-heading { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 4rem; margin-bottom: 4rem; }
.library-heading h2,
.related-heading h2 { margin: 1.5rem 0 0; font-family: var(--serif); font-size: clamp(4rem, 7vw, 8rem); font-weight: 400; letter-spacing: -.07em; line-height: .9; }
.library-heading h2 em,
.related-heading h2 em { color: #a27400; font-weight: 400; }
.library-heading > p { max-width: 380px; margin: 0 0 .4rem; color: var(--muted); line-height: 1.75; }
.library-controls { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem 0; border-block: 1px solid var(--ink); }
.insight-search { flex: 0 1 360px; display: flex; align-items: center; gap: .7rem; }
.insight-search svg { flex: 0 0 auto; width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.insight-search input { width: 100%; padding: .5rem 0; border: 0; outline: none; background: transparent; font-family: var(--serif); font-size: 1.05rem; }
.insight-search input::placeholder { color: #7c848d; }
.filter-list { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; }
.filter-list button { min-height: 44px; padding: .58rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .6rem; font-weight: 800; }
.filter-list button:hover,
.filter-list button.active { color: var(--paper); background: var(--navy); border-color: var(--navy); }
.library-status { display: flex; justify-content: space-between; gap: 2rem; padding: 1rem 0 2.2rem; color: var(--muted); font-size: .57rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4.5rem 1.4rem; }
.insight-grid .insight-card[hidden] { display: none; }
.no-results { padding: 5rem 0; color: var(--muted); font-family: var(--serif); font-size: 2rem; text-align: center; }
.insights-cta { display: grid; grid-template-columns: .42fr 1.3fr auto; align-items: end; gap: 3rem; padding: clamp(5rem, 8vw, 8rem) clamp(1.4rem, 6.5vw, 7.5rem); color: var(--white); background: var(--navy); }
.insights-cta h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.5rem); font-weight: 400; letter-spacing: -.06em; line-height: .95; }
.insights-cta h2 em { color: var(--gold); font-weight: 400; }
.insights-cta .button { white-space: nowrap; }

/* Article */
.reading-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 0; height: 3px; background: var(--gold); }
.article-hero { padding: 11.5rem clamp(1.4rem, 6.5vw, 7.5rem) 5.5rem; color: var(--white); background: var(--navy); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 4.5rem; color: rgba(255,255,255,.48); font-size: .58rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span:last-child { color: rgba(255,255,255,.75); }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
.article-heading { max-width: 1160px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; color: rgba(255,255,255,.48); font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.article-meta a { color: var(--gold); }
.article-meta a::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border: 1px solid var(--navy); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.article-heading h1 { max-width: 1080px; margin: 1.5rem 0 2rem; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(4rem, 7vw, 8rem); font-weight: 400; letter-spacing: -.07em; line-height: .9; text-wrap: balance; }
.article-heading > p { max-width: 780px; margin: 0; color: rgba(255,255,255,.66); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.5; }
.article-byline { display: flex; align-items: center; gap: .8rem; margin-top: 3rem; }
.byline-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--gold); border-radius: 13px; font-family: var(--serif); font-size: 1.7rem; font-style: italic; }
.article-byline div { display: flex; flex-direction: column; gap: .25rem; }
.article-byline strong { font-family: var(--serif); font-size: .95rem; font-weight: 400; }
.article-byline small { color: rgba(255,255,255,.45); font-size: .56rem; }
.article-issue { align-self: end; min-width: 120px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem .5rem; padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.2); }
.article-issue small { grid-column: 1 / -1; color: rgba(255,255,255,.38); font-size: .55rem; font-weight: 850; letter-spacing: .15em; }
.article-issue strong { color: var(--gold); font-family: var(--serif); font-size: 5rem; font-weight: 400; font-style: italic; line-height: .85; }
.article-issue span { color: rgba(255,255,255,.35); font-size: .7rem; }
.article-figure { margin: 0; padding: 0 clamp(1.4rem, 6.5vw, 7.5rem); background: linear-gradient(var(--navy) 0 21%, var(--paper) 21% 100%); }
.article-picture { display: block; overflow: hidden; aspect-ratio: 16 / 8.8; background: var(--navy-soft); }
.article-picture img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); }
.article-figure figcaption { padding-top: .65rem; color: var(--muted); font-size: .55rem; line-height: 1.5; }
.article-layout { display: grid; grid-template-columns: minmax(190px, .32fr) minmax(0, 1fr); gap: clamp(3rem, 9vw, 9rem); max-width: 1360px; margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.4rem, 6.5vw, 7.5rem); }
.article-sidebar { align-self: start; position: sticky; top: 130px; }
.article-toc > span { display: block; padding-bottom: .85rem; border-bottom: 1px solid var(--ink); font-size: .58rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.article-toc ol { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc a { display: grid; grid-template-columns: 1.8rem 1fr; gap: .35rem; padding: .7rem 0; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.article-toc a::before { content: "0" counter(toc); color: #a27400; font-size: .52rem; font-weight: 850; }
.article-toc a:hover { color: var(--ink); }
.share-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: .85rem 0; border: 0; border-block: 1px solid var(--line); background: transparent; font-size: .64rem; font-weight: 800; }
.share-button i { color: #a27400; font-style: normal; }
.article-body { max-width: 790px; min-width: 0; }
.article-section { position: relative; padding: 0 0 clamp(3.5rem, 6vw, 5.5rem); }
.article-section + .article-section { padding-top: clamp(3.5rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.article-section-index { display: block; margin-bottom: 1rem; color: #946c00; font-size: .6rem; font-weight: 850; }
.article-section h2 { margin: 0 0 1.8rem; font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 4.5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1; text-wrap: balance; }
.article-section p { margin: 0 0 1.4rem; color: #38485b; font-family: var(--serif); font-size: clamp(1.08rem, 1.55vw, 1.28rem); line-height: 1.72; }
.article-section ul { margin: 2rem 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.article-section li { position: relative; padding: 1rem 1rem 1rem 2.2rem; border-bottom: 1px solid var(--line); color: #38485b; font-size: .84rem; line-height: 1.55; }
.article-section li::before { content: "↗"; position: absolute; left: .2rem; color: #946c00; }
.key-takeaway { margin: 1rem 0 4rem; padding: clamp(1.5rem, 4vw, 3rem); color: var(--white); background: var(--navy); border-left: 8px solid var(--gold); }
.key-takeaway span { color: var(--gold); font-size: .58rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.key-takeaway p { margin: 1.2rem 0 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.6rem); letter-spacing: -.035em; line-height: 1.25; }
.article-sources { margin: 4rem 0 2rem; padding-top: 2rem; border-top: 1px solid var(--ink); }
.article-sources h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.article-sources ul { margin: 0; padding: 0; list-style: none; }
.article-sources li { border-bottom: 1px solid var(--line); }
.article-sources a { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .9rem 0; overflow-wrap: anywhere; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.article-sources a:hover { color: var(--ink); }
.article-sources a span { color: #946c00; }
.article-disclaimer { margin: 2rem 0 0; color: #727b85; font-size: .62rem; line-height: 1.65; }
.article-conversion { display: grid; grid-template-columns: 1.1fr .65fr auto; align-items: end; gap: 3rem; padding: clamp(5rem, 8vw, 8rem) clamp(1.4rem, 6.5vw, 7.5rem); color: var(--white); background: var(--navy); }
.article-conversion h2 { max-width: 800px; margin: 1.2rem 0 0; font-family: var(--serif); font-size: clamp(3.2rem, 5.7vw, 6.2rem); font-weight: 400; letter-spacing: -.065em; line-height: .92; }
.article-conversion > p { max-width: 420px; margin: 0; color: rgba(255,255,255,.58); line-height: 1.75; }
.article-conversion .button { white-space: nowrap; }
.related-insights { background: var(--cream); }
.related-heading { margin-bottom: 4rem; }
.related-insights .insight-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 1120px) {
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-cta,
  .article-conversion { grid-template-columns: 1fr 1fr; }
  .insights-cta .eyebrow,
  .article-conversion > div { grid-column: 1 / -1; }
  .article-conversion .button { justify-self: end; }
}

@media (max-width: 860px) {
  .blog-site-header .site-nav > a:not(.nav-cta) { display: none; }
  .blog-site-header .site-nav.open > a:not(.nav-cta) { display: block; }
  .blog-masthead { grid-template-columns: 1fr; min-height: 620px; }
  .blog-masthead-index { position: absolute; right: 1rem; bottom: 2rem; margin: 0; }
  .insight-card-featured { grid-template-columns: 1fr; }
  .library-heading { grid-template-columns: 1fr; gap: 2rem; }
  .library-controls { align-items: stretch; flex-direction: column; }
  .insight-search { flex-basis: auto; }
  .filter-list { justify-content: flex-start; }
  .article-hero-grid { grid-template-columns: 1fr; }
  .article-issue { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-toc { display: none; }
  .share-button { width: auto; min-width: 190px; }
  .related-insights .insight-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .blog-site-header .site-nav.open > a:not(.nav-cta) { display: block; }
  .blog-masthead { min-height: 560px; padding: calc(8.5rem + env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) 4.5rem max(1.2rem, env(safe-area-inset-left)); }
  .blog-masthead::after { right: -36%; bottom: -13%; width: 82vw; border-width: 3.2rem; opacity: .55; }
  .blog-masthead h1 { margin-top: 1.3rem; font-size: clamp(4.6rem, 22vw, 6.4rem); }
  .blog-masthead-copy > p:last-child { max-width: 88%; font-size: .92rem; }
  .blog-masthead-index { display: none; }
  .featured-insight,
  .insights-library,
  .related-insights { padding: 5rem 1.2rem; }
  .insight-card-featured h2 { font-size: 3.2rem; }
  .library-heading { display: block; margin-bottom: 2.5rem; }
  .library-heading > p { margin-top: 1.5rem; }
  .library-heading h2,
  .related-heading h2 { font-size: 4rem; }
  .filter-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
  .filter-list::-webkit-scrollbar { display: none; }
  .filter-list button { flex: 0 0 auto; }
  .library-status span:last-child { display: none; }
  .insight-grid,
  .related-insights .insight-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .insight-card h2 { font-size: 2.45rem; }
  .insights-cta,
  .article-conversion { grid-template-columns: 1fr; gap: 2rem; }
  .insights-cta .eyebrow,
  .article-conversion > div { grid-column: auto; }
  .insights-cta h2 { font-size: 3.4rem; }
  .insights-cta .button,
  .article-conversion .button { width: 100%; justify-self: stretch; }
  .article-hero { padding: calc(8.5rem + env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) 3.5rem max(1.2rem, env(safe-area-inset-left)); }
  .breadcrumbs { margin-bottom: 2.5rem; }
  .article-heading h1 { font-size: clamp(3.8rem, 17.5vw, 5.25rem); }
  .article-heading > p { font-size: 1.18rem; }
  .article-figure { padding: 0 1.2rem; background: linear-gradient(var(--navy) 0 11%, var(--paper) 11% 100%); }
  .article-picture { aspect-ratio: 4 / 3; }
  .article-layout { padding: 4rem 1.2rem; }
  .article-section h2 { font-size: 3rem; }
  .article-section p { font-size: 1.08rem; }
  .article-conversion { padding: 5rem 1.2rem; }
  .article-conversion h2 { font-size: 3.6rem; }
}

@media (max-width: 380px) {
  .blog-masthead { padding-inline: 1.05rem; }
  .blog-masthead h1 { font-size: 3.85rem; }
  .featured-insight,
  .insights-library,
  .related-insights { padding-inline: 1.05rem; }
  .insight-card-featured h2 { font-size: 2.65rem; }
  .library-heading h2,
  .related-heading h2 { font-size: 3.25rem; }
  .insight-card h2 { font-size: 2.1rem; }
  .insights-cta { padding-inline: 1.05rem; }
  .insights-cta h2 { font-size: 2.85rem; }
  .article-hero { padding-inline: 1.05rem; }
  .article-heading h1 { font-size: 3.25rem; }
  .article-heading > p { font-size: 1.08rem; }
  .article-figure { padding-inline: 1.05rem; }
  .article-layout { padding-inline: 1.05rem; }
  .article-section h2 { font-size: 2.5rem; }
  .key-takeaway { border-left-width: 5px; }
  .article-conversion { padding-inline: 1.05rem; }
  .article-conversion h2 { font-size: 3rem; }
}
