/* Shared inner-page layouts. Palette and navigation follow the homepage; article
   typography and reading structure borrow from the localhost article reference. */
.article-shell { width: min(1200px, 89%); margin: 0 auto; }
.breadcrumbs { padding-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .72rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: .15em; }
.article-hero { max-width: 52rem; padding: 1.2rem 0 1.2rem; }
.article-hero .eyebrow { margin-bottom: .8rem; }
.article-hero h1 { max-width: 51rem; margin: 0 0 .8rem; font: 500 clamp(2.7rem, 6.4vw, 5.6rem)/1.02 var(--serif); letter-spacing: -.055em; }
.article-hero .dek { max-width: 42rem; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.62; }
.article-meta { margin-top: 1rem; color: var(--muted); font-size: .72rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(13rem, 18rem); gap: clamp(2.5rem, 8vw, 7.5rem); align-items: start; padding: 1rem 0 4rem; }
.article-body { min-width: 0; }
.article-body > section { margin: 2.5rem 0; scroll-margin-top: 6rem; }
.article-body h2 { margin: 0 0 .75rem; font: 600 clamp(1.45rem, 2.8vw, 2rem)/1.23 'Manrope', sans-serif; letter-spacing: -.035em; }
.article-body h3 { margin: 1.6rem 0 .45rem; font: 700 1.08rem 'Manrope', sans-serif; }
.article-body p, .article-body li { color: var(--body-copy); font-size: .95rem; line-height: 1.75; }
.article-body p { margin-bottom: .9rem; }
.article-body a:not(.button) { color: var(--forest, var(--green-2)); text-decoration: underline; text-underline-offset: .15em; }
.answer-box, .evidence-note, .prototype-note { padding: 1.35rem 1.5rem; border-radius: .45rem; background: var(--mint); }
.answer-box .eyebrow, .evidence-note .eyebrow { margin-bottom: .45rem; }
.answer-box p:last-child, .evidence-note p:last-child, .prototype-note p:last-child { margin: 0; }
.prototype-note { margin: 1rem 0 1.5rem; border: 1px solid var(--callout-border); color: var(--callout-text); background: var(--callout-bg); }
.prototype-note p { color: inherit; font-size: .75rem; line-height: 1.55; }
.toc { padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.toc .eyebrow { margin-bottom: .55rem; }
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { padding: .18rem 0; color: var(--body-copy); font-size: .79rem; }
.toc a { color: inherit !important; text-decoration: none !important; }
.toc a:hover { text-decoration: underline !important; }
.article-aside { position: sticky; top: 2rem; padding-top: .2rem; }
.aside-card { margin-bottom: 1.4rem; padding: 1rem 0 1.2rem; border-top: 2px solid var(--line-strong); }
.aside-card .eyebrow { margin-bottom: .4rem; }
.aside-card h2 { margin: 0 0 .35rem; font: 600 1.3rem/1.3 var(--serif); }
.aside-card p { margin: 0 0 .5rem; color: var(--muted); font-size: .75rem; }
.aside-card a { color: var(--forest, var(--green-2)); font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.aside-card .aside-detail { margin-top: .7rem; font-size: .7rem; font-weight: 400; text-decoration: none; }
.criteria-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.criteria-list span { padding: .38rem .58rem; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--surface); color: var(--muted); font-size: .65rem; font-weight: 700; }
.recommendation-list { display: grid; gap: .75rem; }
.recommendation { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.recommendation .eyebrow { margin-bottom: .35rem; font-size: .54rem; }
.recommendation h3 { margin: 0 0 .35rem; font: 700 1.15rem 'Manrope', sans-serif; }
.recommendation p { margin: 0; font-size: .82rem; }
.recommendation a { display: inline-block; margin-top: .45rem; font-size: .72rem; font-weight: 700; }
.spec-card { margin: 1.5rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.spec-card h2 { margin-bottom: .8rem; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.4rem; }
.spec-grid div { padding-top: .55rem; border-top: 1px solid var(--line); }
.spec-grid dt { color: var(--muted); font-size: .57rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.spec-grid dd { margin: .2rem 0 0; font-size: .83rem; font-weight: 600; }
.claim-list { margin: 0; padding: 0; list-style: none; }
.claim-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .83rem; line-height: 1.6; }
.claim-list li:first-child { border-top: 1px solid var(--line); }
.claim-list small { margin-top: .25rem; display: block; color: var(--muted); font-size: .68rem; }
.app-cta { margin: 1.3rem 0; padding: 1.2rem; border-radius: .4rem; background: var(--mint); }
.app-cta .button { width: 100%; }
.app-cta p { margin: .6rem 0 0; color: var(--muted); font-size: .68rem; }
.article-ad { min-height: 5rem; margin: 2rem 0; display: grid; place-content: center; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.article-ad strong { font-size: .56rem; letter-spacing: .15em; text-transform: uppercase; }
.article-ad span { font-size: .64rem; }
.related-links { margin: 1rem 0 2.5rem; padding: 1rem 1.2rem; background: var(--mint); }
.related-links a { display: block; padding: .42rem 0; font-size: .8rem; }
.details-disclosure { margin: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.details-disclosure summary { padding: .8rem 0; cursor: pointer; color: var(--forest, var(--green-2)); font-weight: 700; }
.details-disclosure p { font-size: .78rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Desktop guide article design. */
.guide-design-page { font-family: 'Instrument Sans', 'DM Sans', sans-serif; }
.guide-design-page .site-header { height: 5.25rem; }
.guide-design-page .brand { font-family: 'Newsreader', Georgia, serif; font-size: 1.35rem; }
.guide-design-page .brand-mark { border-radius: .48rem; font-family: 'Newsreader', Georgia, serif; }
.guide-design-page .desktop-nav { gap: clamp(1.5rem, 2.5vw, 2.4rem); font-size: .92rem; }
.guide-page { padding-bottom: 1.5rem; }
.guide-crumb { padding-top: 1.85rem; color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.guide-heading { padding: 1.75rem 0 1.65rem; border-bottom: 1px solid var(--line); }
.guide-heading .eyebrow { margin-bottom: .45rem; }
.guide-heading h1 { max-width: 58rem; margin: 0; font: 500 clamp(2.45rem, 3.4vw, 3.2rem)/1.22 'Newsreader', Georgia, serif; letter-spacing: -.035em; }
.guide-heading .article-meta { margin: .8rem 0 0; font-size: .82rem; }
.guide-rule { display: none; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 1fr); gap: clamp(2rem, 3.9vw, 3.5rem); align-items: start; padding: 2rem 0 1rem; }
.guide-answer { grid-column: 1; grid-row: 1; min-height: 12.25rem; padding: 2rem; border-radius: .45rem; background: var(--mint); }
.guide-answer .eyebrow { margin-bottom: 1rem; color: var(--forest, var(--green-2)); }
.guide-answer p:last-child { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.guide-sidebar { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 1.5rem; }
.guide-sidebar .toc { padding: 1.65rem 1.85rem; }
.guide-sidebar .toc .eyebrow { color: var(--muted); }
.guide-sidebar .toc li { padding: .25rem 0; font-size: .92rem; line-height: 1.75; }
.guide-sidebar .earn-card { margin: 1.5rem 0 2rem; padding: 1.55rem 1.85rem; }
.guide-sidebar .earn-card .eyebrow { margin-bottom: .65rem; }
.guide-sidebar .earn-card p { font-size: .88rem; line-height: 1.6; }
.guide-sidebar .guide-ad { min-height: 15rem; margin: 0; }
.guide-sidebar .guide-ad strong { font-size: .66rem; letter-spacing: .18em; }
.guide-sidebar .guide-ad span { margin-top: .5rem; font-size: .76rem; }
.guide-body { grid-column: 1; grid-row: 2; min-width: 0; }
.guide-body .guide-notice { margin: 1.75rem 0 2rem; padding: .9rem 1.15rem; }
.guide-body .guide-notice p { margin: 0; font-size: .77rem; line-height: 1.55; }
.guide-body > section { margin: 2.3rem 0; }
.guide-body h2 { font: 600 1.75rem/1.25 'Newsreader', Georgia, serif; letter-spacing: -.015em; }
.guide-body h3 { font-family: 'Newsreader', Georgia, serif; font-size: 1.35rem; }
.guide-body p, .guide-body li { font-size: 1rem; line-height: 1.65; }
.guide-facts { margin: 1.4rem 0; padding: 1.55rem 1.85rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.guide-facts .eyebrow { margin-bottom: .8rem; color: var(--muted); }
.guide-facts p:not(.eyebrow) { margin: 0 0 .55rem; font-size: .95rem; line-height: 1.6; }
.guide-facts a { display: inline-block; font-size: .88rem; font-weight: 600; }
.guide-facts small { display: block; margin-top: .8rem; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.guide-tradeoffs { margin: 0; padding-left: 1.25rem; }
.guide-tradeoffs li { padding: .35rem 0 .35rem .25rem; }
.guide-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.35rem; }
.guide-profile-card { min-height: 8.25rem; padding: 1.2rem 1.25rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); }
.guide-profile-card strong { font: 500 1.35rem 'Newsreader', Georgia, serif; }
.guide-profile-card span { margin: .45rem 0 .65rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.guide-profile-card b { margin-top: auto; color: var(--forest, var(--green-2)); font-size: .83rem; }
.guide-corrections { padding-top: .25rem; color: var(--muted) !important; font-size: .82rem !important; }
.guide-explore { margin: 1.2rem 0 2.6rem; }
.guide-explore h2 { margin-bottom: 1.1rem; font: 600 2rem/1.25 'Newsreader', Georgia, serif; }
.guide-explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.guide-explore-grid .keep-card { min-height: 8.75rem; padding: 1.3rem 1.5rem; display: flex; flex-direction: column; }
.guide-explore-grid .keep-card .eyebrow { margin-bottom: .55rem; }
.guide-explore-grid .keep-card strong { font: 500 1.35rem/1.25 'Newsreader', Georgia, serif; }
.guide-explore-grid .keep-card > span:last-child { margin-top: .65rem; color: var(--muted); font-size: .8rem; }
.guide-rules { width: 100vw; margin: 0 0 2.8rem calc(50% - 50vw); padding: 2rem max(5.5vw, calc((100vw - 1200px) / 2)); border-radius: 0; background: var(--mint); }
.guide-rules-inner { width: 100%; max-width: 1200px; margin: auto; }
.guide-rules .eyebrow { margin-bottom: .95rem; }
.guide-newsletter { margin-bottom: 2.5rem; }
.guide-newsletter h2 { font-family: 'Newsreader', Georgia, serif; }

@media (max-width: 760px) {
  .guide-design-page .site-header { height: 3.8rem; }
  .guide-design-page .brand { font-size: 1.05rem; }
  .guide-crumb { padding-top: 1.3rem; font-size: .55rem; }
  .guide-heading { padding: 1.1rem 0 1.25rem; }
  .guide-heading h1 { font-size: clamp(2.25rem, 9vw, 3rem); line-height: 1.08; }
  .guide-heading .article-meta { font-size: .72rem; line-height: 1.5; }
  .guide-layout { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
  .guide-answer { grid-column: 1; grid-row: 1; min-height: 0; padding: 1.25rem; }
  .guide-answer p:last-child { font-size: .92rem; }
  .guide-sidebar { grid-column: 1; grid-row: 2; position: static; display: flex; flex-direction: column; gap: .8rem; }
  .guide-sidebar .toc { padding: 1.1rem 1.25rem; }
  .guide-sidebar .toc li { font-size: .82rem; }
  .guide-sidebar .earn-card { margin: 0; padding: 1.1rem 1.25rem; }
  .guide-sidebar .guide-ad { min-height: 5rem; }
  .guide-body { grid-column: 1; grid-row: 3; }
  .guide-body .guide-notice { margin: .8rem 0 1.5rem; }
  .guide-body > section { margin: 1.8rem 0; }
  .guide-body h2 { font-size: 1.55rem; }
  .guide-body p, .guide-body li { font-size: .92rem; }
  .guide-facts { padding: 1rem 1.1rem; }
  .guide-profile-grid, .guide-explore-grid { grid-template-columns: 1fr; gap: .65rem; }
  .guide-profile-card { min-height: 6.5rem; }
  .guide-explore { margin: .3rem 0 1.8rem; }
  .guide-explore h2 { font-size: 1.7rem; }
  .guide-explore-grid .keep-card { min-height: 7rem; }
  .guide-rules { width: 100vw; margin-bottom: 1.8rem; padding: 1.35rem 5.1%; }
  .guide-rules .rules-pills { gap: .4rem; }
  .guide-rules .rules-pills span { font-size: .55rem; }
  .guide-newsletter { margin-bottom: 1.5rem; }
}

@media (max-width: 760px) {
  .article-shell { width: 89.8%; }
  .breadcrumbs { padding-top: 1.3rem; font-size: .65rem; }
  .article-hero { padding: .9rem 0 .9rem; }
  .article-hero h1 { max-width: 34rem; font-size: clamp(2.5rem, 11vw, 4rem); }
  .article-hero .dek { font-size: .94rem; }
  .article-meta { margin-top: .7rem; font-size: .67rem; }
  .article-layout { grid-template-columns: 1fr; gap: 1rem; padding: 0 0 2.2rem; }
  .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; order: 2; }
  .aside-card { margin: 0; padding: .8rem 0; }
  .article-body > section { margin: 1.8rem 0; }
  .article-body p, .article-body li { font-size: .91rem; }
  .answer-box, .evidence-note, .prototype-note { padding: 1rem 1.05rem; }
  .recommendation-list { gap: .55rem; }
  .mobile-cards { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .mobile-cards table, .mobile-cards tbody { display: block; }
.mobile-cards tbody tr { margin-bottom: .65rem; padding: .8rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
  .mobile-cards tbody th { grid-column: 1 / -1; padding: 0 0 .45rem; border-bottom: 1px solid var(--line); }
  .mobile-cards tbody td { padding: 0; display: flex; flex-direction: column; color: var(--body-copy); font-size: .72rem; }
  .mobile-cards tbody td::before { content: attr(data-label); margin-bottom: .08rem; color: var(--muted); font-size: .52rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
}

@media (max-width: 420px) {
  .article-aside { grid-template-columns: 1fr; }
  .spec-grid { gap: .65rem; }
  .spec-grid dd { font-size: .76rem; }
}
.earn-card { margin-bottom: 1.4rem; padding: 1rem 1.1rem; border-radius: .4rem; background: var(--callout-bg); border: 1px solid var(--callout-border); }
.earn-card .eyebrow { margin-bottom: .4rem; color: var(--gold); }
.earn-card p { margin: 0; color: var(--callout-text); font-size: .75rem; line-height: 1.55; }
.app-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: .75rem; }
.keep-exploring { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; }
.keep-card { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.keep-card .eyebrow { margin-bottom: .35rem; font-size: .54rem; }
.keep-card h3 { margin: 0 0 .35rem; font: 600 1.05rem/1.25 'Manrope', sans-serif; }
.keep-card p { margin: 0 0 .55rem; color: var(--muted); font-size: .74rem; }
.keep-card a { color: var(--forest, var(--green-2)); font-size: .72rem; font-weight: 700; text-decoration: none !important; }
@media (max-width: 760px) { .keep-exploring { grid-template-columns: 1fr; } }
