/* Perch Post, third edition. A generous reading column inside a warmer journal. */
.article-page { --sage: #e4eadb; }
.article-page .breadcrumbs { padding-top: 28px; }
.article-masthead { grid-template-columns: 1.15fr 1fr; gap: 54px; padding: 42px 0 20px; align-items: center; }
.article-heading { min-width: 0; }
.article-heading h1 { font-size: clamp(43px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -.055em; margin-top: 20px; }
.article-heading .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.article-heading .eyebrow::before { content: ''; display: inline-block; width: 23px; height: 2px; background: var(--forest); }
.article-lede { margin-top: 25px; font-size: 18px; line-height: 1.65; }
.article-meta { margin-top: 25px; gap: 10px; }
.article-edition { font-weight: 850; color: var(--forest); text-decoration: none; }
.article-hero { border-radius: 48% 48% 18px 18px; transform: none; background: var(--peach); padding: 28px 22px 0; }
.article-hero img { aspect-ratio: 1.08; object-fit: cover; border-radius: 48% 48% 12px 12px; }
.article-hero figcaption { display: flex; justify-content: space-between; gap: 15px; padding: 18px 5px; font-size: 10px; text-transform: uppercase; font-weight: 850; letter-spacing: .12em; }
.article-wire { position: relative; height: 95px; margin: 12px 0 15px; }
.article-wire svg { position: absolute; inset: 0; width: 100%; height: 80px; overflow: visible; }
.article-wire path { fill: none; stroke: var(--forest); stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
.article-wire img { position: absolute; left: 50%; top: 33px; width: 66px; transform: translate(-42.487%, -97.866%) rotate(-2.045deg); }
.article-layout { border: 0; padding-top: 16px; grid-template-columns: 210px minmax(0, 720px); gap: 64px; justify-content: center; }
.article-aside { top: 30px; }
.contents { padding: 22px 0; border-top: 3px solid var(--forest); }
.contents-label { margin-bottom: 23px; }
.contents ol { counter-reset: contents; }
.contents li { counter-increment: contents; }
.contents li+li { margin-top: 17px; }
.contents a { display: grid; grid-template-columns: 21px 1fr; gap: 8px; padding-left: 0; border: 0; font-size: 12px; }
.contents a::before { content: counter(contents, decimal-leading-zero); font-size: 10px; font-weight: 800; color: var(--forest); opacity: .6; padding-top: 2px; }
.contents a[aria-current] { font-weight: 700; }
.contents a[aria-current]::before { opacity: 1; }
.aside-note { margin-top: 4px; padding-top: 22px; }
.article-body { font-size: 17px; line-height: 1.8; }
.answer-box { background: var(--sage); border: 0; border-radius: 8px 44px 8px 8px; padding: 34px 38px; position: relative; margin-bottom: 34px; }
.answer-box .eyebrow { margin-bottom: 18px; padding-right: 25px; }
.answer-box p:last-child { font-size: 19px; line-height: 1.65; margin-top: 0; }
.answer-spark { position: absolute; right: 28px; top: 25px; color: var(--forest); font-size: 30px; line-height: 1; }
.article-body .takeaways { padding: 4px 0 34px; margin-bottom: 8px; border-bottom: 0; }
.article-body .takeaways h2 { font-size: 25px; margin-bottom: 22px; }
.article-body .takeaways ul { list-style: none; counter-reset: takeaway; margin: 0; padding: 0; }
.article-body .takeaways li { counter-increment: takeaway; display: grid; grid-template-columns: 30px 1fr; gap: 15px; padding: 0; margin: 14px 0 0; font-size: 16px; }
.takeaways li::before { content: counter(takeaway); width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--sage); font-size: 12px; font-weight: 800; margin-top: 1px; }
.article-body > .story-section { padding: 33px 0 25px; border-top: 1px solid var(--line); }
.article-body .story-section h2 { font-size: 32px; line-height: 1.16; margin-bottom: 24px; text-wrap: pretty; }
.section-number { display: block; font-family: var(--round); color: var(--forest); font-size: 12px; letter-spacing: .08em; margin-bottom: 13px; font-weight: 800; }
.article-body .story-section > ol { list-style: none; counter-reset: step; padding: 0; margin: 25px 0; }
.story-section > ol > li { counter-increment: step; position: relative; padding: 11px 15px 11px 47px; background: var(--soft); border-radius: 7px; font-size: 16px; margin: 6px 0; }
.story-section > ol > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 15px; top: 14px; color: var(--forest); font-size: 12px; font-weight: 800; }
.table-scroll { overflow: auto; border: 1px solid #d2d9c9; border-radius: 12px; margin: 27px 0; }
.article-body .table-scroll table { display: table; width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; table-layout: fixed; }
.article-body .table-scroll th { background: var(--forest); color: var(--white); font-weight: 700; padding: 15px 17px; }
.article-body .table-scroll td { padding: 14px 17px; background: #fffaf04d; min-width: 0; overflow-wrap: anywhere; }
.article-body .table-scroll tr:nth-child(even) td { background: #e4eadb65; }
.article-body .table-scroll tr:last-child td { border-bottom: 0; }
.article-body .number-note { display: grid; grid-template-columns: minmax(100px,.65fr) minmax(0,1.35fr); gap: 28px; align-items: center; padding: 28px; background: #f4d49e; border-radius: 9px 35px 9px 9px; margin: 28px 0; }
.number-note-value strong { display: block; font-family: var(--round); font-size: clamp(34px, 4vw, 57px); font-weight: 900; line-height: 1.05; letter-spacing: -.055em; color: var(--ink); }
.number-note-value span { display: block; font-size: 12px; line-height: 1.5; margin-top: 9px; color: var(--ink); }
.article-body .number-note p { font-size: 15px; line-height: 1.7; margin: 0; }
.article-body .product-figure { margin: 18px 0 42px; }
.figure-stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 30px; padding: 34px; align-items: center; border-radius: 45px 12px 12px 12px; background: var(--sage); }
.figure-peach .figure-stage { background: #f3c6a5; }
.figure-copy .eyebrow { font-size: 10px; letter-spacing: .12em; }
.article-body .figure-pull { font-family: var(--round); font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1.24; margin-top: 24px; }
.figure-sample { display: block; margin-top: 26px; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--forest); }
.figure-screen { display: block; border-radius: 13px; padding: 6px; background: var(--white); box-shadow: 0 12px 23px #344c3b1f; }
.article-body .figure-screen img { width: 100%; height: auto; border-radius: 8px; }
.article-body .product-figure figcaption { display: grid; grid-template-columns: 110px 1fr; gap: 15px; margin-top: 16px; font-size: 12px; line-height: 1.65; }
.figure-index { font-weight: 800; color: var(--forest); }
.product-figure figcaption a { white-space: nowrap; }
.article-body .pullquote { background: var(--forest); color: var(--white); border-radius: 8px 45px 8px 8px; padding: 31px 36px; margin: 16px 0 42px; }
.pullquote .quote-mark { color: var(--peach); font-size: 65px; }
.article-body .pullquote > p:not(.share-status) { font-size: 31px; line-height: 1.25; }
.pullquote .quote-label { flex-basis: 100%; color: #f3c6a5; }
.pullquote .text-button { color: var(--white); font-size: 12px; }
.pullquote .text-button:focus-visible { outline-color: var(--peach); }
.pullquote .share-status { color: var(--white)!important; }
.share-status:empty { display: none; }
.article-body .article-faq { margin-top: 8px; border-top: 3px solid var(--forest); padding-top: 31px; }
.article-faq > h2 { font-size: 34px; }
.article-faq .faq-item { padding: 23px 0; }
.article-faq .faq-item h3 { font-size: 22px; }
.article-body .sources { margin-top: 25px; padding: 27px; border: 0; border-radius: 12px; background: var(--soft); }
.article-body .sources h2 { font-size: 23px; }
.article-body .sources ol { margin-bottom: 0; }
.article-body .share-section { padding-bottom: 10px; }
.article-cta { max-width: 1100px; margin: 75px auto 0; padding: 48px 65px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 60px; background: var(--peach); color: var(--ink); border-radius: 50% 50% 24px 24px / 8% 8% 24px 24px; }
.cta-bird { aspect-ratio: 1; background: var(--ochre); border-radius: 50%; display: grid; place-items: center; }
.article-cta .cta-bird img { width: 190px; height: 190px; }
.article-cta .eyebrow { font-size: 10px; color: var(--forest); margin-bottom: 16px; }
.article-cta h2 { font-size: clamp(32px,3.8vw,48px); line-height: 1.05; margin: 0 0 20px; }
.article-cta h2 span { color: var(--forest); }
.article-cta .cta-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.7; max-width: 550px; }
.article-cta .pill { display: inline-flex; color: var(--white); margin-top: 24px; }
.article-page .related { padding-top: 70px; }
.article-page .related > .eyebrow { margin-bottom: 14px; }
.article-page .related h2 { font-size: clamp(33px,4vw,48px); margin-bottom: 35px; }
.article-page .related .article-card { border-top: 1px solid var(--line); padding-top: 22px; }
.article-page .related .card-art { border-radius: 45px 12px 12px 12px; }
@media (max-width:1050px) {
  .article-masthead { gap: 35px; }
  .article-heading h1 { font-size: 47px; }
  .article-layout { grid-template-columns: 170px minmax(0,720px); gap: 38px; }
  .figure-stage { gap: 25px; padding: 28px; }
  .article-body .figure-pull { font-size: 25px; }
  .article-cta { grid-template-columns: 180px 1fr; gap: 40px; padding: 40px; }
  .article-cta .cta-bird img { width: 155px; height: 155px; }
}
@media (max-width:800px) {
  .article-masthead { grid-template-columns: 1fr; gap: 32px; max-width: 720px; margin-inline: auto; }
  .article-heading h1 { font-size: 55px; }
  .article-hero { max-height: none; padding: 20px 20px 0; border-radius: 120px 120px 15px 15px; }
  .article-hero img { aspect-ratio: 1.8; border-radius: 100px 100px 10px 10px; }
  .article-layout { grid-template-columns: 1fr; padding-top: 0; gap: 28px; }
  .article-aside { position: static; }
  .contents { padding: 0 0 25px; border-top: 0; }
  .contents ol { grid-template-columns: 1fr 1fr; gap: 15px; }
  .contents li+li { margin: 0; }
  .contents a { font-size: 12px; }
  .article-cta { grid-template-columns: 140px 1fr; gap: 28px; padding: 35px; }
  .article-cta .cta-bird img { width: 125px; height: 125px; }
}
@media (max-width:600px) {
  .article-page .breadcrumbs { padding-top: 23px; font-size: 10px; }
  .article-masthead { padding: 30px 0 4px; gap: 27px; }
  .article-heading h1 { font-size: clamp(36px,10.9vw,55px); line-height: 1.04; margin-top: 17px; }
  .article-heading .eyebrow { font-size: 9px; letter-spacing: .11em; gap: 8px; }
  .article-heading .eyebrow::before { width: 18px; }
  .article-lede { font-size: 16px; line-height: 1.7; margin-top: 22px; }
  .article-meta { font-size: 10px; gap: 8px; margin-top: 22px; }
  .article-hero { padding: 17px 17px 0; border-radius: 45% 45% 12px 12px; }
  .article-hero img { aspect-ratio: 1.35; border-radius: 45% 45% 8px 8px; }
  .article-hero figcaption { font-size: 8px; padding-block: 13px; }
  .article-wire { height: 76px; margin: 25px 0 8px; }
  .article-wire img { width: 49px; }
  .article-layout { gap: 25px; }
  .contents-label { margin-bottom: 19px; }
  .contents ol { gap: 14px 16px; }
  .contents a { grid-template-columns: 16px 1fr; gap: 5px; font-size: 11px; }
  .contents a::before { font-size: 9px; }
  .answer-box { padding: 26px 24px; border-radius: 8px 35px 8px 8px; margin-bottom: 27px; }
  .answer-box p:last-child { font-size: 17px; line-height: 1.7; }
  .answer-spark { right: 22px; top: 22px; font-size: 25px; }
  .article-body { font-size: 16px; line-height: 1.8; }
  .article-body .takeaways { padding-bottom: 28px; }
  .article-body .takeaways h2 { font-size: 24px; }
  .article-body .takeaways li { font-size: 15px; grid-template-columns: 25px 1fr; gap: 12px; }
  .article-body > .story-section { padding: 28px 0 23px; }
  .article-body .story-section h2 { font-size: 28px; margin-bottom: 20px; }
  .section-number { font-size: 11px; margin-bottom: 12px; }
  .article-body .table-scroll table { font-size: 12px; line-height: 1.65; }
  .article-body .table-scroll th,.article-body .table-scroll td { padding: 12px 10px; min-width: 0; }
  .story-section > ol > li { padding: 12px 12px 12px 40px; font-size: 14px; }
  .story-section > ol > li::before { left: 12px; }
  .article-body .number-note { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .number-note-value strong { font-size: 52px; }
  .figure-stage { grid-template-columns: 1fr; padding: 28px 22px 24px; gap: 25px; border-radius: 35px 8px 8px 8px; }
  .article-body .figure-pull { font-size: 26px; line-height: 1.2; margin-top: 16px; }
  .figure-sample { margin-top: 16px; }
  .figure-screen { width: min(100%,260px); margin-inline: auto; }
  .article-body .product-figure figcaption { grid-template-columns: 1fr; gap: 5px; font-size: 11px; margin-top: 13px; }
  .article-body .pullquote { padding: 26px 24px; border-radius: 8px 35px 8px 8px; margin-block: 8px 33px; }
  .article-body .pullquote > p:not(.share-status) { font-size: 28px; }
  .pullquote .text-button { font-size: 11px; }
  .article-body .sources { padding: 23px; }
  .article-body .sources h2 { font-size: 23px; }
  .article-cta { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 26px; gap: 25px; margin-top: 50px; border-radius: 40px 40px 12px 12px; }
  .cta-bird { width: 105px; }
  .article-cta .cta-bird img { width: 95px; height: 95px; }
  .article-cta .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .article-cta h2 { font-size: 34px; }
  .article-cta .cta-copy > p:not(.eyebrow) { font-size: 14px; }
  .article-page .related { padding-top: 48px; }
  .article-page .related h2 { font-size: 34px; margin-bottom: 25px; }
  .article-page .related .article-card { grid-template-columns: 92px minmax(0,1fr); gap: 15px; padding-top: 17px; }
  .article-page .related .card-art { border-radius: 22px 7px 7px 7px; }
  .article-page .related .article-card h3 { font-size: 22px; }
}
@media (max-width:359px) {
  .article-heading h1 { font-size: 36px; }
  .contents ol { grid-template-columns: 1fr; gap: 12px; }
  .article-body .story-section h2 { font-size: 26px; }
  .figure-stage { padding-inline: 18px; }
  .article-cta h2 { font-size: 30px; }
  .article-page .related .article-card { grid-template-columns: 78px minmax(0,1fr); gap: 13px; }
  .article-page .related .article-card h3 { font-size: 20px; }
}
@media print {
  .article-wire,.article-cta { display: none; }
  .article-body > .story-section { break-inside: auto; }
  .product-figure,.number-note { break-inside: avoid; }
  .article-hero { max-width: 380px; }
  .figure-stage { grid-template-columns: 1fr 220px; }
}

/* Keep article, masthead and shared navigation on the same page grid. */
@media (max-width:1100px) { .article-page .wrap { width: calc(100% - 64px); } }
@media (max-width:800px) { .article-page .wrap { width: calc(100% - 48px); } }
@media (max-width:600px) { .article-page .wrap { width: calc(100% - 40px); } }
@media (max-width:374px) { .article-page .wrap { width: calc(100% - 36px); } }
