/* Guides (pillar pages) and author pages — long reading, calm and roomy */
.page-guide, .page-author { background: var(--paper); }
.g-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.g-wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.g-sec { padding: 80px 0; }
.g-sand { background: var(--cream); }
.g-eyebrow { font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-track); text-transform: uppercase; font-weight: 600; color: var(--text-3); margin-bottom: 14px; }
.g-h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
.g-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.18; color: var(--ink); margin-bottom: 22px; }
.g-h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.g-h3 a { color: inherit; }
.g-p { font-size: 17px; line-height: 1.75; color: var(--text-2); }
.g-count { font-size: .55em; color: var(--muted); font-weight: 500; vertical-align: middle; margin-left: 6px; }

.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.g-crumbs a { color: var(--text-3); }
.g-crumbs a:hover { color: var(--ink); }
.g-crumbs b { font-weight: 500; color: var(--text-2); }

/* hero */
.g-hero { background: var(--cream); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.g-by { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 15px; color: var(--text-2); }
.g-by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.g-by > div { display: flex; flex-direction: column; gap: 2px; }
.g-by a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-warm); text-underline-offset: 3px; }
.g-by-d { font-size: 13px; color: var(--muted); }

/* body + "on this page" */
.g-main { padding: 64px 0 90px; }
.g-layout { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 70px; justify-content: center; }
.g-layout > .g-article:only-child { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; }
.g-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
.g-toc summary { font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-track); text-transform: uppercase; font-weight: 600; color: var(--text-3); cursor: pointer; list-style: none; margin-bottom: 14px; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc ol { display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); padding-left: 16px; }
.g-toc a { font-size: 14px; line-height: 1.45; color: var(--text-3); display: block; }
.g-toc a:hover { color: var(--ink); }

.g-prose { font-size: 17px; line-height: 1.85; color: var(--text-2); }
.g-prose > * + * { margin-top: 1.1em; }
.g-prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(25px, 2.8vw, 34px); line-height: 1.2; color: var(--ink); margin-top: 2.2em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.g-prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.35; color: var(--ink); margin-top: 1.8em; }
.g-prose > :first-child { margin-top: 0; }
.g-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-warm); text-underline-offset: 3px; }
.g-prose a:hover { text-decoration-color: var(--ink); }
.g-prose ul { list-style: disc; padding-left: 1.3em; }
.g-prose ol { list-style: decimal; padding-left: 1.4em; }
.g-prose li + li { margin-top: .45em; }
.g-prose strong { color: var(--ink); font-weight: 600; }
.g-prose blockquote { border-left: 3px solid var(--focus); padding: .3em 0 .3em 1.2em; font-family: var(--font-serif); font-style: italic; font-size: 1.3em; line-height: 1.5; color: var(--ink); }
.g-prose blockquote cite, .g-prose blockquote small { display: block; font-family: var(--font-body); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 6px; }
.g-prose img { max-width: 100%; height: auto; border-radius: 12px; }
/* the short answer at the top of a guide */
.g-prose .g-answer, .g-article > p:first-child { font-size: 19px; line-height: 1.75; color: var(--ink); background: var(--cream); border-radius: 14px; padding: 24px 28px; }
.g-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.g-prose th, .g-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-prose th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--cream); }

/* book box */
.g-book { max-width: 1000px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.g-book-cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow-soft); display: block; }
.g-facts { font-size: 14px; color: var(--text-3); margin-top: 14px; }
.g-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.g-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s, color .2s; }
.g-btn:hover { background: var(--ink); color: #fff; }
.g-btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; }
.g-btn-cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); }

/* author box under a guide */
.g-authorbox { display: flex; gap: 24px; align-items: flex-start; }
.g-authorbox + .g-authorbox { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.g-authorbox img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* cards */
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.g-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.g-card b { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink); }
.g-card span { font-size: 14px; line-height: 1.6; color: var(--text-3); }
.g-card .g-card-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--focus-ink); }

/* author page */
.au-p-hero { background: var(--cream); padding: 72px 0; border-bottom: 1px solid var(--line); }
.au-p-in { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.au-p-in:not(:has(.au-p-photo)) { grid-template-columns: 1fr; }
.au-p-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; display: block; }
.au-p-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.au-p-role { font-size: 16px; color: var(--text-3); margin-top: 12px; }
.au-p-line { font-size: 19px; line-height: 1.7; color: var(--text-2); margin-top: 22px; max-width: 620px; }
.au-p-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.au-p-links a { padding: 9px 18px; border: 1px solid var(--line-warm); border-radius: 999px; font-size: 14px; color: var(--ink); background: #fff; }
.au-p-links a:hover { border-color: var(--ink); }
.g-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.g-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.g-list b { font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--ink); }
.g-list span { font-size: 13px; color: var(--muted); }
.g-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.g-more { margin-top: 26px; font-weight: 600; }
.g-more a { color: var(--ink); }

@media (max-width: 1000px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .g-toc { position: static; max-height: none; background: var(--cream); border-radius: 14px; padding: 18px 20px; }
  .g-toc details:not([open]) summary { margin-bottom: 0; }
  .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-p-in { grid-template-columns: 260px 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .g-sec { padding: 56px 0; }
  .g-hero { padding: 44px 0 36px; }
  .g-main { padding: 36px 0 60px; }
  .g-prose { font-size: 16px; }
  .g-prose .g-answer, .g-article > p:first-child { font-size: 17px; padding: 18px 20px; }
  .g-book { grid-template-columns: 1fr; gap: 28px; }
  .g-book-cover { max-width: 220px; }
  .g-cards, .g-list { grid-template-columns: minmax(0, 1fr); }
  .au-p-hero { padding: 44px 0; }
  .au-p-in { grid-template-columns: 1fr; gap: 28px; }
  .au-p-photo { max-width: 260px; }
  .g-authorbox img { width: 64px; height: 64px; }
}
.g-prose li { list-style: inherit; }
