/* Editorial post layout. Scoped to posts; native theme colors and type. */
.kc-story-page { background: #fffdf9; }
.kc-story-page [hidden] { display: none !important; }
.kc-story { padding: 34px 0 80px; }
.kc-story-breadcrumb { display: flex; gap: 12px; align-items: center; color: var(--kc-ink-soft); font-size: .74rem; }
.kc-story-breadcrumb a { color: inherit; text-decoration: none; }
.kc-story-breadcrumb a:hover { text-decoration: underline; }
.kc-story-header { max-width: 900px; padding: 42px 0 34px; }
.kc-story-kicker, .kc-story-eyebrow { font-family: var(--kc-sans); font-size: .65rem; font-weight: 700; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.kc-story-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--kc-coral); }
.kc-story-kicker > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kc-story-kicker a { color: inherit; text-decoration: none; }
.kc-story-header h1 { margin: 0 0 26px; font-size: clamp(2.5rem, 4.6vw, 3.8rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.kc-story-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: .74rem; }
.kc-story-author { display: block; font-weight: 600; }
.kc-story-date { display: block; color: var(--kc-ink-soft); font-size: .7rem; }
.kc-story-reading { padding-left: 24px; border-left: 1px solid var(--kc-line); color: var(--kc-ink-soft); }
.kc-story-share { padding: 9px 13px; margin-left: auto; border: 1px solid var(--kc-line); border-radius: 4px; color: var(--kc-evergreen); background: transparent; cursor: pointer; font-size: .73rem; }
.kc-story-share:hover { background: var(--kc-cream); }
.kc-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 64px; }
.kc-story-main { min-width: 0; }
.kc-story-image { margin: 0 0 32px; }
.kc-story-image > img { width: 100%; height: auto; border-radius: 5px; }
.kc-story-image figcaption { margin: 12px 0 0; color: var(--kc-ink-soft); font-size: .72rem; line-height: 1.5; }
.kc-story-toc { margin: 0 auto 36px; max-width: 68ch; padding: 18px 22px; border-block: 1px solid var(--kc-line); background: var(--kc-cream); }
.kc-story-toc summary { cursor: pointer; font-size: .8rem; font-weight: 700; }
.kc-story-toc ol { display: grid; gap: 8px; list-style: none; counter-reset: story-section; margin: 16px 0 0; padding: 0; }
.kc-story-toc li { display: flex; align-items: baseline; gap: 12px; font-size: .77rem; line-height: 1.5; counter-increment: story-section; }
.kc-story-toc li::before { content: counter(story-section, decimal-leading-zero); color: var(--kc-coral); font-size: .65rem; font-variant-numeric: tabular-nums; }
.kc-story-toc a { text-decoration: none; }
.kc-story-toc a:hover { text-decoration: underline; }
.kc-story-content { max-width: 68ch; margin-inline: auto; font-size: 1.0625rem; line-height: 1.85; overflow-wrap: anywhere; }
.kc-story-content > p:first-child, .kc-story-content > .kc-prose-lead:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--kc-evergreen); }
.kc-story-content h2 { font-size: clamp(1.85rem, 3vw, 2.35rem); line-height: 1.15; margin-top: 1.5em; }
.kc-story-content h3 { font-size: 1.65rem; line-height: 1.2; }
.kc-story-content :is(h2, h3, h4) { scroll-margin-top: 112px; }
.admin-bar .kc-story-content :is(h2, h3, h4) { scroll-margin-top: 146px; }
.kc-story-content a { text-decoration-thickness: 1px; }
.kc-story-content li { margin-bottom: .55em; }
.kc-story-content blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--kc-coral); font-family: var(--kc-serif); font-size: 1.6rem; line-height: 1.4; }
.kc-story-content :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-left: 0; transform: none; }
.kc-story-content :is(figure, iframe, video, pre) { max-width: 100%; }
.kc-story-content :is(pre, .wp-block-table) { overflow-x: auto; }
.kc-story-content table { display: block; max-width: 100%; overflow-x: auto; font-size: .9rem; }
.kc-story-content th, .kc-story-content td { padding: 12px; border-bottom: 1px solid var(--kc-line); }
.kc-story-content .wp-block-table table { display: table; width: 100%; }
.kc-story-sidebar { display: grid; gap: 34px; min-width: 0; }
.kc-story-ad-label { margin: 0 0 9px; text-align: center; font-size: .58rem; text-transform: uppercase; letter-spacing: .18em; color: var(--kc-ink-soft); }
.kc-story-ad-slot { width: 300px; max-width: 100%; min-height: 250px; margin-inline: auto; background: var(--kc-cream); }
.kc-story-ad-widget { max-width: 100%; overflow: hidden; }
.kc-story-house-ad { display: flex; min-height: 250px; padding: 25px; flex-direction: column; justify-content: center; gap: 13px; border: 1px solid var(--kc-line); text-decoration: none; background: var(--kc-cream); color: var(--kc-evergreen); }
.kc-story-house-ad:hover { color: var(--kc-evergreen); border-color: var(--kc-coral); }
.kc-story-house-ad .kc-story-eyebrow { font-size: .56rem; color: var(--kc-coral); }
.kc-story-house-ad strong { max-width: 230px; font-family: var(--kc-serif); font-weight: 500; font-size: 2.2rem; line-height: 1.02; letter-spacing: -.03em; }
.kc-story-house-ad > span:not(.kc-story-eyebrow):not(.kc-story-ad-cta) { max-width: 230px; font-size: .75rem; line-height: 1.6; color: var(--kc-ink-soft); }
.kc-story-house-ad .kc-story-ad-cta { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--kc-line); font-size: .72rem; font-weight: 600; }
.kc-story-directory { padding: 28px; background: var(--kc-evergreen); color: #fffdf9; border-radius: 5px; }
.kc-story-directory img { margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .8; }
.kc-story-directory .kc-story-eyebrow { display: block; margin-bottom: 13px; font-size: .54rem; color: #ecd5ab; }
.kc-story-directory h2 { margin-bottom: 14px; font-size: 2.05rem; line-height: 1.08; font-weight: 500; color: inherit; }
.kc-story-directory p { font-size: .77rem; line-height: 1.7; color: #dce1e3; }
.kc-story-directory a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: #fffdf9; border-top: 1px solid #566974; padding-top: 10px; font-size: .72rem; font-weight: 600; text-decoration: none; }
.kc-story-directory a:hover { text-decoration: underline; }
.kc-story-rail-stories .kc-story-eyebrow { color: var(--kc-coral); font-size: .58rem; }
.kc-story-rail-stories h2, .kc-story-topics h2, .kc-story-extra-widget h2 { margin: 9px 0 18px; font-size: 1.65rem; }
.kc-story-rail-stories ol { list-style: none; padding: 0; margin: 0; }
.kc-story-rail-stories li { display: flex; align-items: start; gap: 14px; border-top: 1px solid var(--kc-line); padding: 18px 0; }
.kc-story-rail-number { color: var(--kc-coral); font-family: var(--kc-serif); font-size: 1.35rem; line-height: 1.2; }
.kc-story-rail-stories h3 { margin: 0 0 7px; font-family: var(--kc-sans); font-size: .82rem; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.kc-story-rail-stories h3 a { text-decoration: none; }
.kc-story-rail-stories h3 a:hover { text-decoration: underline; }
.kc-story-rail-stories time { color: var(--kc-ink-soft); font-size: .65rem; }
.kc-story-topics { border-top: 1px solid var(--kc-line); padding-top: 18px; }
.kc-story-topics ul { list-style: none; padding: 0; margin: 0; }
.kc-story-topics a { display: block; padding: 8px 0; font-size: .79rem; text-decoration: none; }
.kc-story-topics a:hover { text-decoration: underline; }
.kc-story-extra { display: grid; gap: 24px; }
.kc-story-extra-widget { min-width: 0; overflow-wrap: anywhere; }
.kc-story-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--kc-line); }
.kc-story-tags > span { margin-right: 6px; color: var(--kc-ink-soft); font-size: .7rem; }
.kc-story-tags a { padding: 6px 10px; border: 1px solid var(--kc-line); border-radius: 3px; font-size: .67rem; text-decoration: none; }
.kc-story-editorial { display: flex; align-items: start; gap: 20px; padding: 28px; margin-top: 36px; background: var(--kc-cream); }
.kc-story-editorial img { flex: 0 0 48px; }
.kc-story-editorial h2 { margin-bottom: 8px; font-size: 1.55rem; line-height: 1.2; }
.kc-story-editorial p { margin: 0; font-size: .8rem; line-height: 1.75; color: var(--kc-ink-soft); }
.kc-story-more { margin-top: 64px; padding-top: 38px; border-top: 1px solid var(--kc-line); }
.kc-story-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.kc-story-section-heading .kc-story-eyebrow { color: var(--kc-coral); }
.kc-story-section-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 3vw, 2.7rem); }
.kc-story-section-heading > a { flex-shrink: 0; font-size: .8rem; }
.kc-story-more .kc-post-card { border-radius: 5px; box-shadow: none; }
.kc-story-more .kc-post-card h3 { font-size: 1.55rem; }
.kc-story-more .kc-post-card p { font-size: .82rem; }
@media (max-width: 1100px) {
  .kc-story-grid { gap: 36px; }
}
@media (max-width: 959px) {
  .kc-story-header { max-width: 800px; }
  .kc-story-grid { grid-template-columns: minmax(0, 1fr); }
  .kc-story-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 32px; border-top: 1px solid var(--kc-line); }
  .kc-story-content { max-width: 68ch; }
  .kc-story-ad { align-self: start; }
}
@media (max-width: 600px) {
  .kc-story { padding: 24px 0 48px; }
  .kc-story-header { padding: 28px 0; }
  .kc-story-header h1 { font-size: 2.5rem; line-height: 1.06; }
  .kc-story-byline { gap: 14px; }
  .kc-story-reading { padding-left: 14px; }
  .kc-story-share { margin-left: 0; min-height: 44px; }
  .kc-story-date { font-size: .68rem; }
  .kc-story-image { margin-bottom: 24px; }
  .kc-story-toc { margin-bottom: 28px; padding: 16px; }
  .kc-story-toc summary { min-height: 28px; }
  .kc-story-toc li { font-size: .8rem; }
  .kc-story-toc a { display: block; padding-block: 5px; }
  .kc-story-content { font-size: 1rem; line-height: 1.8; }
  .kc-story-content > p:first-child { font-size: 1.13rem; }
  .kc-story-sidebar { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kc-story-directory { padding: 28px; }
  .kc-story-editorial { padding: 22px 18px; gap: 14px; }
  .kc-story-editorial img { flex-basis: 36px; width: 36px; }
  .kc-story-section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .kc-story-more .kc-post-grid { grid-template-columns: minmax(0, 1fr); }
  .kc-story-more { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
