/* Learn articles (/learn, /learn/<slug>) — long-form reading layout on top of site.css tokens. */
.art-hero { padding: 54px 0 34px; background: linear-gradient(180deg, var(--orange-50), var(--cream) 85%); }
.art-hero .wrap { max-width: 860px; }
.art-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; margin: 6px 0 14px; }
.art-hero .lead { max-width: 720px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-current] { color: var(--ink); }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.byline b { display: block; font-family: var(--f-display); color: var(--ink); font-size: .98rem; }
.byline span { font-size: .88rem; color: var(--muted); }
.byline__meta { margin-left: auto; }

.art-body { padding-top: 34px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; max-width: 1080px; }
.prose { max-width: 720px; font-size: 1.07rem; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.6rem; line-height: 1.25; margin-top: 2.2em; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--orange-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose b, .prose strong { color: var(--ink); }
.prose .fine { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2.4em; }

.takeaways { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--r); box-shadow: var(--sh-1); padding: 22px 26px; }
.takeaways h2 { font-size: 1.1rem; margin: 0 0 8px; }
.example { background: var(--orange-50); border-radius: var(--r); padding: 20px 24px; }
.example > * + * { margin-top: .7em; }
.example__label { font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-600); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-top: .3em; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-size: .75rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.procon > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.procon h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--f-display); color: var(--ink); background: var(--cream-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose .faq { margin-top: 1.2em; }

.author { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-top: 2.6em; box-shadow: var(--sh-1); }
.author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.author p { margin: 0; font-size: .98rem; line-height: 1.65; }
.author p + p { margin-top: .5em; }
.author__name { font-family: var(--f-display); font-weight: 700; color: var(--ink); }

.toc { position: sticky; top: 24px; font-size: .92rem; }
.toc__title { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.toc li a:hover { color: var(--ink); border-left-color: var(--orange); }
.toc__cta { margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh-1); }
.toc__cta p { margin: 0 0 12px; color: var(--ink); font-weight: 600; line-height: 1.4; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.related a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); color: var(--body); transition: box-shadow .2s, transform .2s; }
.related a:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.related .eyebrow { margin-bottom: 6px; }
.related h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--ink); }
.related p { margin: 0; font-size: .95rem; }

@media (max-width: 960px) {
  .art-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .art-hero { padding: 34px 0 22px; }
  .byline__meta { margin-left: 0; width: 100%; }
  .procon { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
  .author { flex-direction: column; }
}
