/* A question-led index connects the home features to chapters within each service. */
.notes-feature, .planning-library, .chapter-section { --notes-ink: #132d39; --notes-green: #106457; --notes-line: #c8d8d1; }
.notes-feature { padding-block: clamp(52px,6.4vw,100px); background: #fff; }
.notes-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: clamp(22px,3vw,44px); }
.notes-heading .kicker, .library-intro .kicker, .chapter-side .kicker { margin: 0 0 13px; font-size: .84rem; }
.notes-heading h2, .library-intro h2, .chapter-side h2 { font: 590 clamp(2.55rem,4.8vw,4.8rem)/1.01 "DM Sans",sans-serif; letter-spacing: -.06em; color: var(--notes-ink); }
.notes-heading h2 em, .library-intro h2 em, .chapter-side h2 em { font: italic 400 1.04em/.98 Georgia,serif; letter-spacing: -.055em; color: var(--notes-green); }
.notes-heading > a, .library-return { color: #15594e; font-size: .98rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.notes-mosaic { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(14px,1.7vw,28px); }
.notes-mosaic article { position: relative; padding: clamp(22px,2.6vw,42px); }
.notes-mosaic h3 { font-size: clamp(1.5rem,2.4vw,2.7rem); line-height: 1.06; letter-spacing: -.046em; font-weight: 620; margin: 9px 0 14px; }
.notes-mosaic h3 a, .library-list a { text-decoration: none; }
.notes-mosaic h3 a::after { content: ""; position: absolute; inset: 0; }
.notes-mosaic h3 a:focus-visible::after { outline: 3px solid currentColor; outline-offset: -4px; }
.notes-mosaic h3 a:hover, .library-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .13em; }
.notes-mosaic article > p:last-child { line-height: 1.6; max-width: 61ch; }
.lead-note { display: flex; flex-direction: column; overflow: hidden; background: #132f3e; color: #f6fcfa; border-radius: 20px 4px 4px 4px; }
.lead-note img { width: 100%; height: clamp(140px,16vw,235px); object-fit: cover; object-position: center 48%; }
.lead-note h3 { font-size: clamp(1.85rem,3vw,3.2rem); }
.lead-note article { flex: 1; }
.lead-note article > p:last-child { color: #d5e9e5; }
.note-category { font-size: .84rem; letter-spacing: .025em; font-weight: 690; }
.lead-note .note-category { color: #a2efd7; }
.other-notes { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(14px,1.7vw,28px); }
.other-notes article { display: flex; flex-direction: column; justify-content: center; color: #2e322e; border-top: 3px solid #c77754; border-radius: 4px; background: #fae8df; }
.other-notes article:nth-child(2) { border-color: #54987e; background: #e3f1e9; color: #183b36; }
.other-notes .note-category { color: #654131; }
.other-notes article:nth-child(2) .note-category { color: #305e52; }
.planning-library { color: var(--notes-ink); background: #f0f4f0; border-block: 1px solid var(--notes-line); padding-block: clamp(54px,7vw,112px); }
.library-layout, .chapter-layout { display: grid; align-items: start; grid-template-columns: minmax(0,.76fr) minmax(0,1.7fr); gap: clamp(28px,6vw,96px); }
.library-intro, .chapter-side { position: sticky; top: 102px; }
.inside .library-intro h2, .inside .chapter-side h2 { font-size: clamp(2.4rem,3.85vw,4.25rem); font-weight: 580; }
.library-intro > p:not(.kicker) { margin-top: 18px; color: #48615d; line-height: 1.65; max-width: 36ch; }
.library-controls { margin-top: 25px; }
.library-controls > span:first-child { font-weight: 700; font-size: .94rem; }
.library-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.library-filters button { cursor: pointer; padding: .62rem .87rem; min-height: 44px; border-radius: 100px; border: 1px solid #aabeb2; background: #f8fbf8; color: #244741; font-weight: 620; font-size: .92rem; line-height: 1.25; }
.library-filters button[aria-pressed="true"] { color: #fff; background: #153e3c; border-color: #153e3c; }
.library-filters button:hover { border-color: #19665d; }
.library-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; list-style: none; margin: 0; padding: 0; }
.library-list li { --note-accent: #43866a; background: white; border-radius: 4px; border: 1px solid #d3ded5; border-block-start: 4px solid var(--note-accent); }
.library-list [data-note-service="financial-brokerage"] { --note-accent: #558798; }
.library-list [data-note-service="commercial-brokerage"] { --note-accent: #c37652; }
.library-list a { display: block; height: 100%; padding: clamp(18px,2vw,30px); }
.library-list .note-category { color: #415d55; }
.inside .library-list h3 { margin: 13px 0 10px; font-size: clamp(1.3rem,1.75vw,1.85rem); line-height: 1.11; }
.library-list p { line-height: 1.58; color: #47605a; }
.library-list a:focus-visible { outline-offset: -4px; }
.chapter-section { padding-block: clamp(50px,7vw,105px); background: #fcfdfb; }
.chapter-side nav { display: grid; margin-block: 22px; border-top: 1px solid var(--notes-line); }
.chapter-side nav a { padding: .85rem 0; color: #254941; border-bottom: 1px solid var(--notes-line); text-decoration: none; font-weight: 620; line-height: 1.4; }
.chapter-side nav a:hover { text-decoration: underline; }
.chapter-body { max-width: 76ch; }
.chapter + .chapter { margin-top: clamp(32px,4.5vw,68px); }
.chapter { scroll-margin-block-start: 16px; border-top: 3px solid #61ab97; padding-top: 19px; }
.chapter:nth-child(2) { border-color: #d69373; }
.chapter:target h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: #89bbaa; text-underline-offset: .15em; }
.inside .chapter h3 { font-size: clamp(1.65rem,2.65vw,2.8rem); line-height: 1.1; }
.chapter h4 { font-weight: 650; font-size: 1.12rem; color: #163d36; margin: 24px 0 6px; }
.chapter p { color: #405c58; line-height: 1.67; }
.ip-combined p + p { margin-top: 14px; }
.ip-section-links .wrap { grid-template-columns: repeat(6,minmax(0,1fr)); }
.provider-brief { background: #f0f5f1; padding-block: clamp(42px,5.5vw,82px); border-block: 1px solid #cfddd3; }
.provider-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.24fr); gap: clamp(28px,6vw,96px); }
.provider-layout header .kicker { margin: 0 0 14px; }
.provider-layout header h2 { color: #143638; max-width: 19ch; }
.provider-layout header > p:last-child { margin-top: 18px; line-height: 1.65; max-width: 49ch; color: #3f5753; }
.provider-points dl { margin: 0; padding: 0; }
.provider-points dl > div { padding: 15px 0; border-top: 1px solid #bfcfc6; }
.provider-points dl > div:first-child { border-top: 3px solid #328575; }
.provider-points dt { font-size: 1.13rem; font-weight: 690; line-height: 1.35; color: #153b36; }
.provider-points dd { margin: 5px 0 0; line-height: 1.6; color: #405953; }
.provider-points .provider-takeaway { margin-top: 6px; padding: 15px 18px; border-left: 3px solid #cd835d; background: #fff; color: #23453e; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .library-list li:not([hidden]) { animation: note-appear .24s ease-out; }
  .library-filters button { transition: border-color .18s, background-color .18s, color .18s; }
  @keyframes note-appear { from { opacity: .68; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px), (max-height: 640px) {
  .library-intro, .chapter-side { position: static; }
}
@media (max-width: 760px) {
  .provider-layout { grid-template-columns: 1fr; gap: 21px; }
  .library-layout, .chapter-layout { grid-template-columns: 1fr; gap: 26px; }
  .library-intro > p:not(.kicker) { max-width: 55ch; }
  .chapter-side nav { margin-block: 14px; }
  .notes-mosaic { grid-template-columns: 1fr; }
  .other-notes { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
  .lead-note img { height: 185px; }
}
@media (max-width: 680px) {
  .ip-section-links .wrap { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ip-section-links a:nth-child(even) { border-right: 1px solid #c8dad2; }
}
@media (max-width: 510px) {
  .library-list, .other-notes { grid-template-columns: 1fr; }
  .notes-heading { align-items: start; flex-direction: column; }
  .notes-mosaic article { padding: 21px; }
  .library-filters button { font-size: .875rem; }
}
