/* Guide layout for /blog/ posts, /faq/ and /for-aging-parents/ (built by scripts/build-blog.mjs).
   Loads after styles.css and place.css and uses only their tokens. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:root { --brass-ink: #765832; } /* brass dark enough for small text on linen and ivory (AA) */
html { scroll-padding-top: 92px; }

/* Title band */
.bp-hero { background: var(--night); color: var(--on-night); padding: clamp(36px, 5vw, 64px) 0 clamp(120px, 14vw, 200px); }
.bp-hero-index { padding-bottom: clamp(48px, 6vw, 80px); }
.bp-hero-in > * { max-width: 980px; }
.bp-hero .pl-crumbs ol { color: var(--on-night-2); margin-bottom: 22px; }
.bp-hero .pl-crumbs a { color: var(--on-night); }
.bp-hero .pl-crumbs li + li::before { color: rgba(243, 238, 228, 0.35); }
.bp-hero h1 { color: var(--on-night); margin: 0 0 22px; max-width: 18em; }
.bp-hero h1 em { color: var(--lamp); }
.bp-dek { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--on-night-2); max-width: 38em; margin: 0 0 28px; }
.bp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.bp-chip { font-size: 13px; letter-spacing: 0.02em; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(243, 238, 228, 0.28); color: var(--on-night); }
.bp-chip-key { background: var(--lamp); border-color: var(--lamp); color: var(--ink); font-weight: 500; }
.bp-chip-key::before { content: "Keyword: "; font-weight: 400; opacity: 0.75; }
.bp-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 28px; font-size: 14px; color: var(--on-night-2); }
.bp-byline span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--lamp); margin-right: 18px; vertical-align: middle; }
.bp-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.bp-link-light { color: var(--on-night); font-size: 15px; text-underline-offset: 4px; text-decoration-color: var(--lamp); }

/* Hero image overlaps the band */
.bp-figure { margin: calc(-1 * clamp(96px, 12vw, 172px)) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(19, 18, 15, 0.45); aspect-ratio: 16 / 9; background: var(--stone); }
.bp-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Two columns: table of contents on the left, the article on the right */
.bp-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(40px, 5vw, 80px); justify-content: center; padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); }
.bp-toc-wrap { min-width: 0; }
.bp-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.bp-toc summary { list-style: none; cursor: default; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--brass-ink); margin-bottom: 14px; }
.bp-toc summary::-webkit-details-marker { display: none; }
.bp-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.bp-toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.bp-toc li a:hover { color: var(--ink); }
.bp-toc li a.is-on { color: var(--ink); border-left-color: var(--brass); }
.bp-toc ol ol { border-left: 0; }
.bp-toc ol ol a { padding-left: 30px; font-size: 13px; color: var(--ink-3); }

.bp-body { min-width: 0; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.bp-body > .pl-answer { margin-top: 0; max-width: none; }
.bp-body a:not(.btn) { color: var(--ink); text-decoration-color: rgba(142, 107, 62, 0.55); text-underline-offset: 3px; }
.bp-body a[href^="http"]:not(.btn)::after { content: "\2197"; font-size: 0.8em; margin-left: 2px; color: var(--brass); }
.bp-sec { margin-top: clamp(44px, 5vw, 64px); }
.bp-sec p { margin: 0 0 18px; }
.bp-sec .pl-h3 { margin-top: 30px; }
.bp-sec .bl-list, .bp-sec .pl-steps { margin: 0 0 18px; }

/* Key takeaways */
.bp-takeaways { margin: 32px 0 0; padding: 26px 28px; background: var(--linen); border-radius: var(--radius); }
.bp-kt-h { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--brass-ink); margin: 0 0 14px; }
.bp-takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink); }
.bp-takeaways li { position: relative; padding-left: 28px; }
.bp-takeaways li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }

/* Chart: a bar table, one series, values in ink, 4px rounded data ends */
.bp-chart { margin: clamp(36px, 4vw, 52px) 0 0; padding: 26px 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #FBF9F5; }
.bp-chart-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--ink); margin: 0 0 18px; }
.bp-bars { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bp-bars th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 7px 16px 7px 0; width: 40%; vertical-align: middle; line-height: 1.35; }
.bp-bars td { padding: 7px 0; display: flex; align-items: center; gap: 10px; }
.bp-bar { display: block; height: 22px; width: calc(var(--v) * (100% - 92px)); min-width: 4px; background: var(--brass); border-radius: 0 4px 4px 0; transition: opacity 0.2s var(--ease); }
.bp-bars tr.is-key .bp-bar { background: #6B4F2C; }
.bp-bars tr:hover .bp-bar { opacity: 0.82; }
.bp-bar-val { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.bp-chart-note { margin: 16px 0 0 !important; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

/* Mid-article call to action */
.bp-cta-mid { margin: clamp(36px, 4vw, 52px) 0 0; padding: 24px 28px; border-radius: var(--radius); background: var(--night); color: var(--on-night); display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; }
.bp-cta-mid p { margin: 0; color: var(--on-night-2); font-size: 15.5px; }
.bp-cta-mid .bp-cta-mid-h { font-family: var(--serif); font-size: 23px; color: var(--on-night); line-height: 1.25; }
.bp-cta-mid .btn { grid-column: 2; grid-row: 1 / span 2; background: var(--lamp); color: var(--ink); }

.bp-ctas { margin-top: clamp(44px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bp-ctas .pl-cta p { font-size: 15.5px; }
.bp-faq summary { font-size: 18px; }
.bp-body .pl-sources { font-size: 15px; }
.bp-body .pl-sources a::after { content: none; }

/* Cards: related guides and the /blog/ index */
.bp-related { background: var(--linen); padding: clamp(48px, 6vw, 88px) 0; }
.bp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.bp-card a, .bp-feature { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; color: var(--ink); background: var(--ivory); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.bp-card a:hover, .bp-feature:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(19, 18, 15, 0.45); }
.bp-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone); }
.bp-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bp-card a:hover .bp-card-img img, .bp-feature:hover .bp-card-img img { transform: scale(1.03); }
.bp-card-tag { margin: 10px 22px 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--brass-ink); }
.bp-card-name { margin: 0 22px; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; }
.bp-card-blurb { margin: 0 22px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bp-card-meta { margin: auto 22px 22px; padding-top: 6px; font-size: 13px; color: var(--ink-3); }
.bp-index { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.bp-index .pl-h2 { margin-top: clamp(48px, 6vw, 80px); }
.bp-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.bp-feature .bp-card-img { aspect-ratio: auto; min-height: 340px; }
.bp-feature-copy { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 44px); justify-content: center; }
.bp-feature-copy > * { margin: 0 !important; }
.bp-feature-name { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.12; }

@media (max-width: 1023px) {
  .bp-grid { grid-template-columns: minmax(0, 720px); gap: 28px; }
  .bp-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: #FBF9F5; }
  .bp-toc summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; }
  .bp-toc summary::after { content: "+"; font-size: 20px; color: var(--ink-2); }
  .bp-toc[open] summary { margin-bottom: 12px; }
  .bp-toc[open] summary::after { content: "\2212"; }
  .bp-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .bp-hero { padding-bottom: 96px; }
  .bp-figure { margin-top: -72px; border-radius: 14px; }
  .bp-body { font-size: 17px; }
  .bp-byline { flex-direction: column; gap: 2px; }
  .bp-byline span + span::before { content: none; }
  .bp-takeaways, .bp-chart { padding: 22px 20px; }
  .bp-bars th { width: 44%; font-size: 13.5px; }
  .bp-bar { width: calc(var(--v) * (100% - 78px)); height: 18px; }
  .bp-cta-mid { grid-template-columns: 1fr; }
  .bp-cta-mid .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
  .bp-ctas, .bp-cards, .bp-feature { grid-template-columns: 1fr; }
  .bp-feature .bp-card-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-card a, .bp-feature, .bp-card-img img { transition: none; }
}
.bp-more { margin: 28px 0 0; font-size: 15px; color: var(--ink-2); }
.bp-more a { color: var(--ink); text-underline-offset: 3px; }
