/* Shared native page and editorial presentation. */
/* One contact closing section across home, team, profiles and practice areas. */
.kg-page .kg-contact-band {display:block;background:var(--kg-ink);color:#faf8f4;text-align:center;padding:40px;margin:16px 0 56px;}
.entry-content .kg-page .kg-contact-band h2 {color:#faf8f4;font-size:clamp(26px,3vw,36px);max-width:none;margin:0 0 16px;text-align:center;text-wrap:balance;}
.entry-content .kg-page .kg-contact-band p {color:#e2ded7;text-align:center!important;max-width:60ch;margin:0 auto;}
.kg-page .kg-contact-band .kg-actions {display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin:24px 0 0;}
.entry-content .kg-page .kg-contact-band .kg-button {background:#d5b589;border-color:#d5b589;color:var(--kg-ink);min-width:220px;max-width:100%;}
.entry-content .kg-page .kg-contact-band .kg-button-secondary {background:transparent;color:#faf8f4;}
.entry-content .kg-page .kg-button {transition:background-color .18s ease,border-color .18s ease,color .18s ease;transform:none;}
.entry-content .kg-page .kg-button:is(:hover,:focus-visible) {background:#6e5234;border-color:#6e5234;color:#fff;}
.entry-content .kg-page .kg-contact-band .kg-button:is(:hover,:focus-visible) {background:#eee0cb;border-color:#eee0cb;color:var(--kg-ink);}
@media(max-width:720px) {.kg-page .kg-contact-band {padding:28px 24px;margin-bottom:36px;}}
@media(max-width:400px) {.kg-page .kg-contact-band .kg-button {width:100%;min-width:0;}}
@media(prefers-reduced-motion:reduce) {.entry-content .kg-page .kg-button {transition:none;}}
/* Article and policy templates: a readable measure, common type, native anchors. */
.kg-reading-layout .site-content > .ast-container {max-width:930px;padding:0 32px;}
.kg-reading-layout #primary {width:100%;margin:48px 0;}
.kg-reading-layout .ast-article-single {background:transparent!important;padding:0!important;}
.kg-reading-layout :is(.entry-content,.entry-meta) {font-family:Arial,Helvetica,sans-serif!important;color:var(--kg-ink);}
.kg-reading-layout :is(.entry-title,.entry-content h1,.entry-content h2,.entry-content h3) {font-family:Arial,Helvetica,sans-serif!important;font-weight:400!important;line-height:1.2!important;letter-spacing:-.025em;color:var(--kg-ink)!important;text-wrap:balance;overflow-wrap:anywhere;}
.kg-reading-layout :is(.entry-title,.entry-content h1) {font-size:clamp(32px,4vw,52px)!important;margin:0 0 28px;}
.kg-reading-layout .entry-content h2 {font-size:clamp(27px,3vw,36px)!important;margin:40px 0 20px;}
.kg-reading-layout .entry-content h3 {font-size:25px!important;margin:32px 0 16px;}
.kg-reading-layout .entry-content :is(p,li,blockquote) {font:17px/1.8 Arial,Helvetica,sans-serif!important;color:var(--kg-ink);}
.kg-reading-layout .entry-content p {margin-bottom:20px;}
.kg-reading-layout .entry-content a {color:var(--kg-gold);text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere;}
.kg-reading-layout .entry-meta {font-size:13px;color:var(--kg-muted);margin-bottom:24px;}
.kg-reading-layout .entry-content :is(.alignfull,.alignwide) {width:100%;max-width:100%;margin-left:0;margin-right:0;}
.kg-reading-layout .entry-content img {max-width:100%;height:auto;}
.kg-reading-layout .ast-single-post-featured-section img {width:100%;max-height:420px;object-fit:cover;}
.kg-reading-layout #toc_container {width:100%!important;max-width:100%;background:transparent;border:1px solid var(--kg-line);padding:20px;margin:28px 0;font:15px/1.7 Arial,sans-serif;}
.kg-reading-layout #toc_container .toc_title {font-size:16px!important;}
.kg-reading-layout .entry-content .wp-block-table {overflow-x:auto;max-width:100%;}
.kg-reading-layout .entry-content table {font-size:15px;}
.kg-reading-layout .entry-content :is(h2,h3,[id]) {scroll-margin-top:64px;}
.kg-reading-layout.page .entry-content .wp-block-quote {border:0;padding:0;margin:0;}
/* Blog is an editorial list, using the theme's real posts archive. */
.kg-blog-intro {max-width:1160px;padding:48px 32px 24px;margin:auto;}
.kg-blog-intro h1 {font:400 clamp(34px,4.1vw,56px)/1.15 Arial,Helvetica,sans-serif;color:var(--kg-ink);margin:0;}
.kg-blog-layout .site-content > .ast-container {max-width:930px;padding:0 32px;}
.kg-blog-layout #primary {width:100%;margin:0 0 48px;}
.kg-blog-layout article.ast-article-post {width:100%;padding:28px 0!important;margin:0!important;border-bottom:1px solid var(--kg-line);background:transparent!important;}
.kg-blog-layout .ast-article-inner {background:transparent!important;padding:0!important;box-shadow:none!important;}
.kg-blog-layout .entry-title {font:400 30px/1.25 Arial,Helvetica,sans-serif;color:var(--kg-ink);margin-bottom:16px;text-wrap:balance;}
.kg-blog-layout .entry-title a {color:var(--kg-ink);}
.kg-blog-layout :is(.entry-content,.entry-meta) {font-family:Arial,Helvetica,sans-serif;color:var(--kg-muted);}
.kg-blog-layout .entry-content {font-size:17px;line-height:1.75;}
.kg-blog-layout .post-thumb-img-content img {width:100%;height:auto;max-height:280px;object-fit:cover;}
.kg-blog-layout .ast-read-more-container a {color:var(--kg-gold);font-weight:600;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center;}
:is(.kg-reading-layout,.kg-practice-layout,.kg-blog-layout) .site-content a:focus-visible,
:is(.kg-reading-layout,.kg-practice-layout) .site-content button:focus-visible {outline:3px solid var(--kg-gold);outline-offset:4px;}
@media(max-width:720px) {
 .kg-reading-layout .site-content > .ast-container,
 .kg-blog-layout .site-content > .ast-container {padding:0 24px;}
 .kg-reading-layout #primary {margin:32px 0;}
 .kg-blog-intro {padding:32px 24px 20px;}
}
/* Astra places its content-top hook inside the already padded container. */
.kg-blog-intro {width:100%;max-width:none;padding-left:0;padding-right:0;}
.kg-blog-layout .ast-excerpt-container,
.kg-blog-layout .ast-excerpt-container p {font:17px/1.75 Arial,Helvetica,sans-serif!important;text-align:left!important;color:var(--kg-muted);}
@media(prefers-reduced-motion:reduce) {
 :is(.kg-practice-layout,.kg-reading-layout,.kg-blog-layout) .site-content * {animation:none!important;transition:none!important;}
}
.entry-content .kg-page .kg-contact-band a:not(.kg-button) {color:#e0c295;display:inline-flex;align-items:center;min-height:44px;}
.kg-page .kg-contact-band a:focus-visible {outline-color:#f0ce98;}
/* Adjacent articles are editorial navigation, with visible destination titles. */
.single-post.kg-reading-layout .post-navigation {margin:48px 0 0;padding:28px 0 0;border-top:1px solid var(--kg-line);}
.single-post.kg-reading-layout .post-navigation .nav-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;}
.single-post.kg-reading-layout .post-navigation .nav-links :is(.nav-previous,.nav-next) {width:100%;max-width:100%;float:none;min-width:0;margin:0;}
.single-post.kg-reading-layout .post-navigation .nav-next {grid-column:2;text-align:right;}
.single-post.kg-reading-layout .post-navigation :is(.nav-previous,.nav-next):only-child {grid-column:1 / -1;text-align:left;}
.single-post.kg-reading-layout .post-navigation a {display:flex;flex-direction:column;gap:10px;padding:4px 0;margin:0;height:auto;min-height:44px;color:var(--kg-ink);text-decoration:none;overflow-wrap:anywhere;}
.single-post.kg-reading-layout .post-navigation .kg-post-nav-label {font:600 14px/1.5 Arial,Helvetica,sans-serif;color:var(--kg-gold);}
.single-post.kg-reading-layout .post-navigation .kg-post-nav-title {font:400 clamp(21px,2vw,25px)/1.35 Arial,Helvetica,sans-serif;}
.single-post.kg-reading-layout .post-navigation a:hover .kg-post-nav-title {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;}
@media(max-width:540px) {
 .single-post.kg-reading-layout .post-navigation {margin-top:32px;padding-top:24px;}
 .single-post.kg-reading-layout .post-navigation .nav-links {grid-template-columns:minmax(0,1fr);gap:24px;}
 .single-post.kg-reading-layout .post-navigation .nav-next {grid-column:auto;text-align:left;}
}
/* Article lists follow the paragraph rhythm; the TOC uses its own adapter. */
.single-post.kg-reading-layout .entry-content .wp-block-list {
  margin:0 0 24px;
  padding-inline-start:28px;
  list-style-position:outside;
}
.single-post.kg-reading-layout .entry-content .wp-block-list > li {margin-block:0 8px;}
.single-post.kg-reading-layout .entry-content .wp-block-list > li:last-child {margin-bottom:0;}
.single-post.kg-reading-layout .entry-content p:has(+ .wp-block-list) {margin-bottom:10px!important;}
.single-post.kg-reading-layout .entry-content .wp-block-list :is(ul,ol) {margin:8px 0 0;padding-inline-start:24px;}

/* Keep long-form articles comfortable to read on wide screens. */
.single-post.kg-reading-layout .site-content > .ast-container {max-width:784px;}
.single-post.kg-reading-layout .entry-content :is(p,li) {text-align:left!important;}

/* All four practice areas share this native, editable page structure. */
.kg-practice-layout .site-content > .ast-container {max-width:1224px;padding:0;}
.kg-practice-layout #primary {width:100%;margin:0;}
.kg-practice-layout .ast-article-single {background:transparent;padding:0;}
.kg-practice-page .kg-subhero {max-width:850px;}
.kg-practice-page .kg-practice-scope > ul {max-width:80ch;}
.kg-practice-page .kg-practice-scope ul {padding-inline-start:28px;margin:0 0 24px;}
.kg-practice-page .kg-practice-scope li {margin-bottom:10px;}
.kg-practice-page .kg-practice-faq {max-width:850px;}
.kg-practice-page .kg-practice-faq summary {min-height:44px;line-height:1.5;padding:6px 0;}
.kg-practice-page .kg-practice-faq details {padding:16px 0;}
.kg-practice-page .kg-practice-faq summary:focus-visible {outline:3px solid var(--kg-gold);outline-offset:4px;}
.kg-practice-page .kg-practice-faq details p {margin:16px 0 0;}
.kg-practice-page .kg-practice-contact {text-align:center;}
.entry-content .kg-practice-page .kg-practice-contact p {text-align:center!important;max-width:60ch;margin-inline:auto;}
.kg-practice-page .kg-practice-contact .kg-actions {justify-content:center;}
@media(max-width:720px) {.kg-practice-page .kg-actions {gap:12px;} .kg-practice-page .kg-audience + .kg-audience {border-top:1px solid var(--kg-line);padding-top:24px;}}

/* Share title, introduction, list and preparation rows across audience columns. */
@media(min-width:721px) {
 .kg-practice-scope .kg-split:has(> .kg-audience) {grid-template-rows:repeat(4,auto);row-gap:0;}
 .kg-practice-scope .kg-split > .kg-audience {display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;}
}

/* Category introductions and the main loop are successive full-width rows. */
.kg-blog-layout .site-content > .ast-container {display:block;}
.category.kg-blog-layout .kg-category-description {max-width:68ch;margin-top:18px;}
.category.kg-blog-layout .kg-category-description p {text-align:left!important;font:17px/1.75 Arial,Helvetica,sans-serif;color:var(--kg-muted);margin:0;}
.kg-blog-layout .kg-archive-date {display:block;font:14px/1.6 Arial,Helvetica,sans-serif;color:var(--kg-muted);margin:0 0 12px;}
.kg-blog-layout .entry-title {font-size:clamp(25px,3vw,32px);}
.kg-blog-layout .ast-excerpt-container p {max-width:75ch;}

/* All practice sections use the common content edges, with readable columns. */
.kg-practice-page .kg-subhero {max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:56px;align-items:start;}
.kg-practice-heading,.kg-practice-intro,.kg-section-heading,.kg-faq-list {min-width:0;}
.kg-practice-page .kg-practice-intro .kg-lead {max-width:none;}
.kg-practice-page .kg-practice-intro p {text-align:left!important;}
.kg-practice-page .kg-practice-scope > ul {max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:56px;row-gap:20px;padding-inline-start:24px;}
.kg-practice-page .kg-practice-scope > ul > li {margin:0;padding-inline-start:4px;padding-inline-end:12px;}
.kg-practice-page .kg-practice-faq {max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:56px;align-items:start;}
.kg-practice-page .kg-faq-list details:first-child {padding-top:0;}
.kg-practice-page .kg-faq-list p {text-align:left!important;}
@media(max-width:900px) {
 .kg-practice-page .kg-subhero,.kg-practice-page .kg-practice-faq {grid-template-columns:1fr;gap:12px;}
 .kg-practice-page .kg-practice-intro {max-width:75ch;}
}
@media(max-width:720px) {
 .kg-practice-page .kg-practice-scope > ul {grid-template-columns:1fr;row-gap:14px;}
}

/* Native editor containers retain the existing page layout, rather than
   inheriting Astra group padding or the core flow's automatic 24px gaps. */
.entry-content > .kg-page.wp-block-group {padding:0 32px;}
.kg-page.wp-block-group,
.kg-page.is-layout-flow > :where(.wp-block-group,.kg-related-articles),
.kg-page .is-layout-flow > :where(.wp-block-group,.wp-block-details,a,.wp-block-image) {margin-block-start:0;margin-block-end:0;}
.kg-page p.kg-actions {margin:28px 0 18px;}
.kg-page .kg-contact-band.wp-block-group {margin:16px 0 56px;}
.kg-page > .kg-related-articles {margin-block-start:0;}
.kg-team-page .kg-people-grid.wp-block-group {margin:0 0 64px;}
@media(max-width:720px) {
 .entry-content > .kg-page.wp-block-group {padding:0 24px;}
 .kg-page .kg-contact-band.wp-block-group {margin-bottom:36px;}
 .kg-team-page .kg-people-grid.wp-block-group {margin-bottom:40px;}
}
