body.single-post .site-shell { overflow: clip; }
.post-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 25px 0 40px; }
.post-breadcrumb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--slate); font-size: .875rem; margin-bottom: 31px; }
.post-breadcrumb a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.post-topic { color: var(--green); font-size: .875rem; font-weight: 700; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; margin: 0 0 15px; }
.post-hero h1 { color: var(--navy); font-size: clamp(2.5rem, 4.1vw, 3.55rem); line-height: 1.09; max-width: 1040px; margin: 0 0 20px; text-wrap: balance; }
.post-deck { color: var(--slate); font-size: 1.0625rem; line-height: 1.8; max-width: 790px; margin: 0 0 22px; }
.post-meta { color: var(--slate); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; font-size: .875rem; line-height: 1.6; }
.post-meta > * + * { border-left: 1px solid #b8c8c5; margin-left: 17px; padding-left: 17px; }
.post-meta a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: #adc0bd; text-underline-offset: 4px; }
.post-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; align-items: start; gap: clamp(40px, 6vw, 84px); padding-top: 46px; padding-bottom: 68px; }
.post-main-column { min-width: 0; }
.post-featured-image { margin: 0 0 35px; }
.post-featured-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-featured-image figcaption { color: var(--slate); font-size: .875rem; margin-top: 12px; line-height: 1.65; }
.post-editor-content { color: var(--ink); font-size: 1.0625rem; line-height: 1.85; overflow-wrap: break-word; }
.post-editor-content p { margin: 0 0 21px; }
.post-editor-content > p:first-child { color: var(--navy); font-size: 1.1875rem; line-height: 1.8; }
.post-editor-content h2 { color: var(--navy); font-size: clamp(1.8rem, 2.3vw, 2.1rem); line-height: 1.2; margin: 40px 0 18px; scroll-margin-top: 30px; text-wrap: pretty; }
.post-editor-content h3 { color: var(--navy); font-size: 1.125rem; font-weight: 700; line-height: 1.5; margin: 27px 0 12px; }
.post-editor-content a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-editor-content a:hover { color: var(--navy); }
.post-editor-content strong { color: var(--navy); font-weight: 700; }
.post-editor-content ul, .post-editor-content ol { padding-left: 24px; margin: 0 0 26px; }
.post-editor-content ul { list-style: disc; }
.post-editor-content ol { list-style: decimal; }
.post-editor-content li { padding-left: 5px; margin: 0 0 13px; }
.post-editor-content li::marker { color: var(--green); }
.post-editor-content blockquote { border-left: 3px solid var(--green); padding: 6px 0 6px 24px; margin: 30px 0; color: var(--navy); }
.post-editor-content img { max-width: 100%; height: auto; }
.post-editor-content > p:last-child:has(> em:only-child) { color: var(--slate); font-size: .875rem; line-height: 1.75; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.post-table-block { margin: 27px 0 30px; }
.post-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #638d80 var(--mist); scrollbar-width: thin; }
.post-editor-content table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .9375rem; line-height: 1.65; border: 1px solid #cbd8d5; }
.post-editor-content .post-table-caption { color: var(--slate); font-size: .875rem; line-height: 1.6; text-align: left; margin: 0 0 12px; }
.post-editor-content th { background: var(--navy); color: white; font-weight: 600; text-align: left; padding: 17px 20px; border: 1px solid #486778; vertical-align: top; }
.post-editor-content td { padding: 17px 20px; border: 1px solid #cbd8d5; vertical-align: top; background: white; }
.post-editor-content tbody tr:nth-child(even) td { background: var(--mist); }
.post-editor-content td:first-child { color: var(--navy); width: 38%; font-weight: 600; }
.post-editor-content td > :last-child, .post-editor-content th > :last-child { margin-bottom: 0; }
.post-table-hint { display: none; }
.post-sidebar { position: sticky; top: 28px; max-height: calc(100svh - 56px); overflow-y: auto; padding: 19px 2px 2px; border-top: 2px solid var(--green); }
.post-sidebar-label { font-family: var(--sans); font-size: .875rem; color: var(--navy); letter-spacing: .08em; font-weight: 700; text-transform: uppercase; line-height: 1.5; margin: 0 0 18px; }
.post-toc-links { margin: 0; padding: 0; list-style: none; }
.post-toc-links a { color: var(--slate); display: block; font-size: .875rem; line-height: 1.6; border-left: 2px solid var(--line); padding: 8px 0 8px 15px; }
.post-toc-links a:hover, .post-toc-links a[aria-current="location"] { color: var(--green); border-left-color: var(--green); }
.post-toc-links a[aria-current="location"] { font-weight: 700; }
.post-sidebar-contact { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
.post-sidebar-contact p { color: var(--slate); font-size: .9375rem; line-height: 1.65; margin: 0 0 10px; }
.post-sidebar-phone { display: block; color: var(--navy); font-family: var(--display); font-size: 1.65rem; line-height: 1.3; margin-bottom: 15px; }
.post-inline-link { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: .9375rem; font-weight: 600; line-height: 1.6; }
.post-inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-inline-link svg { flex-shrink: 0; }
.post-service-link { display: flex; gap: 14px; align-items: center; justify-content: space-between; color: var(--navy); border-top: 1px solid var(--line); margin-top: 23px; padding-top: 20px; font-size: .875rem; line-height: 1.7; }
.post-service-link svg { color: var(--green); flex-shrink: 0; }
.post-service-link:hover { color: var(--green); }
.post-mobile-toc { display: none; }
.post-firm-note { display: flex; gap: 23px; padding: 27px 0 0; border-top: 1px solid var(--line); margin-top: 32px; align-items: flex-start; }
.post-firm-note img { flex-shrink: 0; object-fit: cover; object-position: center 20%; background: var(--mist); width: 80px; height: 94px; }
.post-firm-note .post-note-label { color: var(--green); font-size: .8125rem; line-height: 1.6; margin: 0 0 8px; }
.post-firm-note h2 { color: var(--navy); font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; }
.post-firm-note p { color: var(--slate); font-size: .9375rem; line-height: 1.75; margin-bottom: 14px; }
.post-next-step { background: var(--navy); color: white; padding: 50px 0; border-top: 3px solid #82bba6; }
.post-next-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 55px; align-items: center; }
.post-next-step .eyebrow { font-size: .875rem; margin-bottom: 17px; }
.post-next-step h2 { font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.14; max-width: 590px; margin: 0 0 18px; text-wrap: balance; }
.post-next-step p:not(.eyebrow) { color: #d5e1e6; max-width: 610px; font-size: 1rem; line-height: 1.8; margin: 0; }
.post-next-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.post-next-actions .button { font-size: .875rem; padding: 15px 21px; }
.post-next-phone { color: white; font-size: 1.125rem; text-underline-offset: 5px; }
.post-next-phone:hover { text-decoration: underline; }
.post-related { padding: 61px 0 69px; background: var(--mist); }
.post-related-heading { display: flex; gap: 30px; justify-content: space-between; align-items: end; margin-bottom: 29px; }
.post-related-heading .eyebrow { font-size: .875rem; margin-bottom: 13px; }
.post-related-heading h2 { color: var(--navy); font-size: clamp(1.875rem, 2.5vw, 2.35rem); line-height: 1.15; margin: 0; }
.post-related-heading > a { flex-shrink: 0; }
.post-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.post-related-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); border-top: 1px solid #bccfca; padding-top: 22px; gap: 23px; }
.post-related-image { overflow: hidden; }
.post-related-image img { width: 100%; height: 100%; min-height: 160px; max-height: 240px; object-fit: cover; transition: transform 200ms ease; }
.post-related-card:hover img { transform: scale(1.035); }
.post-related-copy { align-self: center; }
.post-related-copy .post-topic { font-size: .8125rem; letter-spacing: .03em; margin-bottom: 10px; }
.post-related-copy h3 { color: var(--navy); font-family: var(--display); font-size: 1.6rem; font-weight: 400; line-height: 1.22; margin: 0 0 17px; }
.post-related-copy > span { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: .875rem; font-weight: 600; }
.post-related-card:hover h3 { color: var(--green); }
.post-page a:focus-visible, .post-page summary:focus-visible, .post-table-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.post-next-step a:focus-visible { outline-color: white; }
@media (max-width: 1000px) {
  .post-reading-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 35px; }
  .post-related-card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .post-related-image img { aspect-ratio: 2; max-height: none; min-height: 0; }
}
@media (max-width: 800px) {
  .post-hero { padding-bottom: 30px; }
  .post-hero h1 { font-size: clamp(2.25rem, 6.1vw, 3rem); }
  .post-reading-layout { grid-template-columns: minmax(0, 1fr); padding-top: 30px; padding-bottom: 44px; }
  .post-sidebar { display: none; }
  .post-featured-image { margin-bottom: 24px; }
  .post-mobile-toc { display: block; margin: 0 0 28px; border-top: 1px solid #b9cec6; border-bottom: 1px solid #b9cec6; }
  .post-mobile-toc summary { display: flex; gap: 20px; align-items: center; justify-content: space-between; list-style: none; padding: 14px 0; font-size: .9375rem; font-weight: 700; color: var(--navy); }
  .post-mobile-toc summary::-webkit-details-marker { display: none; }
  .post-mobile-toc summary span { font-size: 1.5rem; font-weight: 400; color: var(--green); line-height: 1; }
  .post-mobile-toc[open] summary span { transform: rotate(45deg); }
  .post-mobile-toc nav { padding-bottom: 18px; }
  .post-toc-links a { padding-top: 11px; padding-bottom: 11px; }
  .post-next-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .post-next-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .post-related-heading { align-items: start; flex-direction: column; gap: 18px; }
}
@media (max-width: 640px) {
  .post-breadcrumb { margin-bottom: 24px; }
  .post-deck { font-size: 1rem; }
  .post-meta { column-gap: 13px; row-gap: 6px; font-size: .8125rem; }
  .post-meta > * + * { margin-left: 0; padding-left: 0; border: 0; }
  .post-meta > :first-child { flex-basis: 100%; }
  .post-editor-content { font-size: 1rem; line-height: 1.85; }
  .post-editor-content > p:first-child { font-size: 1.125rem; }
  .post-editor-content h2 { margin-top: 33px; font-size: 1.875rem; }
  .post-editor-content table { min-width: 540px; }
  .post-editor-content .post-table-hint { display: block; color: var(--slate); font-size: .8125rem; margin: 0 0 10px; line-height: 1.6; }
  .post-firm-note { gap: 17px; }
  .post-firm-note img { width: 60px; height: 74px; }
  .post-firm-note h2 { font-size: 1.5rem; }
  .post-related { padding: 41px 0 48px; }
  .post-related-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .post-related-copy h3 { font-size: 1.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.post-page) { scroll-behavior: auto; }
  .post-related-image img { transition: none; }
}

/* WordPress integration. The outer .wrap shares the header/footer width. */
.post-related-card-no-image { grid-template-columns: minmax(0, 1fr); }
.post-sidebar-contact:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.post-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.post-pagination a { color: var(--green); text-decoration: underline; }
.post-editor-content iframe, .post-editor-content video { max-width: 100%; }
.post-editor-content figure, .post-editor-content .wp-caption { max-width: 100%; margin-left: 0; margin-right: 0; }
.post-editor-content pre { overflow-x: auto; max-width: 100%; }
.post-editor-content th a, .post-editor-content th strong { color: white; }
.post-editor-content table caption { text-align: left; color: var(--slate); font-size: .875rem; padding-bottom: 12px; }
/* Without JavaScript, the semantic table itself remains horizontally scrollable. */
.post-editor-content table:not(.post-table-enhanced) { display: block; max-width: 100%; min-width: 0; overflow-x: auto; }
.post-editor-content table:not(.post-table-enhanced) th, .post-editor-content table:not(.post-table-enhanced) td { min-width: 150px; }
.post-table-scroll > table.post-table-enhanced { display: table; width: 100% !important; height: auto !important; }
.post-table-scroll > table.post-table-enhanced th, .post-table-scroll > table.post-table-enhanced td { height: auto !important; }
.post-table-scroll:focus-visible { outline-offset: 2px; }
.post-password-form input { color: var(--navy); background: white; border: 1px solid var(--line); padding: 12px; max-width: 100%; }
body.admin-bar .post-sidebar { top: 60px; max-height: calc(100svh - 88px); }
body.admin-bar .post-editor-content h2 { scroll-margin-top: 65px; }
@media (max-width: 782px) { body.admin-bar .post-editor-content h2 { scroll-margin-top: 80px; } }
