/* K Brand redesign. Layout idea: an editorial front page whose hero carries a printed receipt of study figures. */
:root {
  --kb-paper: #f4f7f2;      /* cool, slightly green paper */
  --kb-tint: #e9efe7;
  --kb-ink: #16213a;        /* brand navy, deepened */
  --kb-ink-2: #465468;
  --kb-line: #d5ddd3;
  --kb-sage: #addfad;       /* brand highlighter */
  --kb-sage-deep: #24663a;
  --kb-receipt: #fffffb;
  --kb-petal: #f7e6ec;
  --kb-lilac: #eae7f6;
  --kb-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --kb-body: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --kb-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ── Site-wide chrome ─────────────────────────────────────────────── */
body { background: var(--kb-paper) !important; }
#masthead, #masthead .site-main-header-wrap .site-header-row-container-inner { background: var(--kb-paper) !important; }
#masthead { border-bottom: 1px solid var(--kb-line); }
.site-branding .site-title { font-family: var(--kb-display) !important; font-weight: 600 !important; font-size: 24px !important; letter-spacing: -0.01em; color: var(--kb-ink) !important; }
.site-branding .site-title::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.18em; border-radius: 50%; background: var(--kb-sage); }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-family: var(--kb-body); font-size: 15px; font-weight: 500 !important; color: var(--kb-ink-2) !important; padding: 0.5em 0.9em !important; }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover { color: var(--kb-ink) !important; }
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a { color: var(--kb-ink) !important; box-shadow: inset 0 -0.5em 0 var(--kb-sage); }
.comments-area, .error404 .search-form { display: none !important; }

.kb-wrap { max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
#colophon.kb-footer { background: var(--kb-ink) !important; color: #c9d2de; font-family: var(--kb-body); font-size: 15px; line-height: 1.6; padding-block: 56px 32px; margin-top: 0; }
.kb-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.kb-footer p { margin: 0; max-width: 34ch; }
.kb-footer nav { display: flex; flex-direction: column; gap: 8px; }
.kb-footer a { color: #fff; text-decoration: none; width: fit-content; }
.kb-footer a:hover { text-decoration: underline; text-decoration-color: var(--kb-sage); text-underline-offset: 4px; }
.kb-f-mark { font-family: var(--kb-display); font-size: 26px; font-weight: 600; color: #fff; margin-bottom: 10px !important; }
.kb-f-h { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kb-sage); margin-bottom: 4px !important; }
.kb-f-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 20px; font-size: 13px; max-width: none !important; }

/* ── Homepage ─────────────────────────────────────────────────────── */
body.home .content-area { margin: 0 !important; }
body.home .content-container.site-container { max-width: none !important; padding: 0 !important; }
body.home .entry-content-wrap { padding: 0 !important; }
body.home .entry.single-entry { background: transparent; }
.kb { font-family: var(--kb-body); color: var(--kb-ink); font-size: 17px; line-height: 1.6; }
.kb *, .kb *::before, .kb *::after { box-sizing: border-box; }
.kb h1, .kb h2, .kb h3, .kb p, .kb ul { margin: 0; padding: 0; }
.kb ul { list-style: none; }
.kb a { color: inherit; text-decoration: none; }
.kb a:focus-visible, .kb-footer a:focus-visible { outline: 3px solid var(--kb-sage-deep); outline-offset: 3px; border-radius: 2px; }
.kb-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--kb-sage-deep); display: flex; align-items: center; gap: 8px; }
.kb-h1 { font-family: var(--kb-display); font-weight: 500; font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; color: var(--kb-ink); }
.kb-h2 { font-family: var(--kb-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; color: var(--kb-ink); }
.kb-hl { font-style: italic; background: linear-gradient(transparent 58%, var(--kb-sage) 58% 92%, transparent 92%); padding-inline: 0.06em; }
.kb-more { font-weight: 600; font-size: 15px; white-space: nowrap; }
.kb-more::after { content: " \2192"; }
a.kb-more:hover, a:hover > .kb-more { text-decoration: underline; text-decoration-color: var(--kb-sage-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.kb-hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.kb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.kb-hero-grid > div { display: flex; flex-direction: column; gap: 22px; }
.kb-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--kb-ink-2); max-width: 46ch; }
.kb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px !important; }
.kb-btn { display: inline-block; background: var(--kb-ink); color: #fff !important; font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--kb-ink); transition: background 0.15s, color 0.15s; }
.kb-btn:hover { background: var(--kb-sage-deep); border-color: var(--kb-sage-deep); }
.kb-btn-ghost { background: transparent; color: var(--kb-ink) !important; }
.kb-btn-ghost:hover { background: var(--kb-ink); color: #fff !important; border-color: var(--kb-ink); }

.kb-receipt { position: relative; justify-self: end; width: min(100%, 340px); background: var(--kb-receipt); color: #23283a; font-family: var(--kb-mono); font-size: 13px; line-height: 1.5; padding: 26px 22px 20px; transform: rotate(1.6deg); filter: drop-shadow(0 18px 26px rgba(22, 33, 58, 0.16)); }
.kb-receipt::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; background: linear-gradient(135deg, var(--kb-receipt) 50%, transparent 50%) 0 0 / 14px 9px, linear-gradient(225deg, var(--kb-receipt) 50%, transparent 50%) 0 0 / 14px 9px; }
.kb-r-head { text-align: center; font-weight: 500; font-size: 17px; letter-spacing: 0.22em; }
.kb-r-head span { display: block; font-size: 11px; letter-spacing: 0.16em; font-weight: 400; margin-top: 2px; }
.kb-r-rule { text-align: center; font-size: 11px; letter-spacing: 0.12em; border-block: 1px dashed #9aa1ad; padding-block: 7px; margin-block: 14px 8px !important; }
.kb-receipt li a { display: flex; align-items: baseline; gap: 6px; padding-block: 4px; }
.kb-receipt li i { flex: 1; min-width: 12px; border-bottom: 1px dotted #9aa1ad; transform: translateY(-3px); }
.kb-receipt li b { font-weight: 500; white-space: nowrap; }
.kb-receipt li a:hover { background: var(--kb-sage); box-shadow: 0 0 0 4px var(--kb-sage); }
.kb-r-total { display: flex; justify-content: space-between; border-top: 1px dashed #9aa1ad; margin-top: 8px !important; padding-top: 9px !important; font-weight: 500; font-size: 15px; }
.kb-r-foot { text-align: center; font-size: 10.5px; letter-spacing: 0.08em; margin-top: 12px !important; color: #5b6272; }

.kb-sec { padding-block: clamp(56px, 8vw, 104px); }
.kb-sec-tint { background: var(--kb-tint); }
.kb-sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.kb-sec-head > p:not(.kb-eyebrow) { color: var(--kb-ink-2); max-width: 56ch; }
.kb-sec-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.kb-sec-head-row > div { display: flex; flex-direction: column; gap: 10px; }

.kb-concerns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--kb-ink); }
.kb-concern { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--kb-line); }
.kb-concern h3 { font-family: var(--kb-display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; color: var(--kb-ink); }
.kb-concern li a { display: inline-block; padding-block: 3px; color: var(--kb-ink-2); border-bottom: 1px solid transparent; }
.kb-concern li a::before { content: "\2192\00a0"; color: var(--kb-sage-deep); }
.kb-concern li a:hover { color: var(--kb-ink); border-bottom-color: var(--kb-sage-deep); }

.kb-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.kb-card { display: flex; flex-direction: column; min-width: 0; }
.kb-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--kb-line); margin-bottom: 14px; transition: filter 0.2s; }
.kb-card:hover img { filter: saturate(1.15) contrast(1.04); }
.kb-card h3 { font-family: var(--kb-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--kb-ink); width: fit-content; }
.kb-card:hover h3 { background: linear-gradient(transparent 60%, var(--kb-sage) 60%); }
.kb-card p { font-size: 15px; line-height: 1.45; color: var(--kb-ink-2); margin-top: 4px; }

.kb-myth { background: var(--kb-ink); color: #dfe5ee; }
.kb-myth .kb-h2 { color: #fff; }
.kb-myth .kb-eyebrow { color: var(--kb-sage); }
.kb-myth .kb-more { color: #fff; }
.kb-myth a.kb-more:hover { text-decoration-color: var(--kb-sage); }
.kb-myths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.kb-myths a { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); height: 100%; }
.kb-myths b { font-family: var(--kb-display); font-style: italic; font-weight: 400; font-size: 2rem; line-height: 1; color: var(--kb-sage); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kb-myths strong { display: block; font-family: var(--kb-body); font-weight: 500; font-size: 1.08rem; line-height: 1.35; color: #fff; }
.kb-myths em { display: block; font-style: normal; font-size: 14px; color: #a9b4c4; margin-top: 2px; }
.kb-myths a:hover strong { text-decoration: underline; text-decoration-color: var(--kb-sage); text-underline-offset: 4px; }

.kb-tools { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.kb-tool { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border-radius: 6px; min-width: 0; }
.kb-tool h3 { font-family: var(--kb-display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; text-wrap: balance; color: var(--kb-ink); }
.kb-tool > p:not(.kb-eyebrow) { color: var(--kb-ink-2); font-size: 16px; }
.kb-tool .kb-more { margin-top: auto; padding-top: 14px; }
.kb-tool .kb-eyebrow { color: var(--kb-ink); }
.kb-tool-a { background: var(--kb-sage); }
.kb-tool-a h3 { font-size: 2.1rem; }
.kb-tool-a > p:not(.kb-eyebrow) { color: #24402c; }
.kb-tool-b { background: var(--kb-petal); }
.kb-tool-c { background: var(--kb-lilac); }

.kb-standard { border-top: 1px solid var(--kb-line); }
.kb-standard .kb-wrap { display: flex; flex-direction: column; gap: 16px; }
.kb-standard .kb-h2 { max-width: 22ch; }
.kb-standard p:last-child { color: var(--kb-ink-2); max-width: 62ch; }

@media (max-width: 960px) {
  .kb-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .kb-receipt { justify-self: start; margin-left: 6px; }
  .kb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-concerns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-tools { grid-template-columns: minmax(0, 1fr); }
  .kb-myths { grid-template-columns: minmax(0, 1fr); }
  .kb-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kb-footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .kb { font-size: 16px; }
  .kb-concerns { grid-template-columns: minmax(0, 1fr); }
  .kb-cards { gap: 28px 16px; }
  .kb-card h3 { font-size: 1.15rem; }
  .kb-card p { font-size: 14px; }
  .kb-myths a { grid-template-columns: 5.4rem minmax(0, 1fr); gap: 12px; }
  .kb-myths b { font-size: 1.5rem; }
  .kb-btn { flex: 1 1 auto; text-align: center; }
}
#mobile-drawer .drawer-inner { background: var(--kb-ink); }
#mobile-drawer .mobile-navigation ul li a { font-family: var(--kb-display); font-size: 1.5rem; padding-block: 0.7em; }

/* ── Listing pages: The K Lab (page 66) and Myth & Matter (page 252) ── */
body.page-id-66 .content-area, body.page-id-252 .content-area { margin: 0 !important; }
body.page-id-66 .content-container.site-container, body.page-id-252 .content-container.site-container { max-width: none !important; padding: 0 !important; }
body.page-id-66 .entry-content-wrap, body.page-id-252 .entry-content-wrap { padding: 0 !important; }
body.page-id-66 .entry.single-entry, body.page-id-252 .entry.single-entry { background: transparent; }
.kb-hub-head { padding-block: clamp(40px, 6vw, 80px) clamp(8px, 2vw, 24px); }
.kb-hub-head .kb-wrap { display: flex; flex-direction: column; gap: 18px; }
.kb-h1-sm { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 16ch; }
.kb-hub .kb-sec { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.kb-hub .kb-card h2 { font-family: var(--kb-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--kb-ink); width: fit-content; margin: 0; }
.kb-hub .kb-card:hover h2 { background: linear-gradient(transparent 60%, var(--kb-sage) 60%); }
.kb-hub .kb-card p { font-size: 16px; }
@media (min-width: 961px) { .kb-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } }
.kb-mlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 2px solid var(--kb-ink); }
.kb-mrow { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--kb-line); }
.kb-mrow img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--kb-line); }
.kb-mrow b { font-family: var(--kb-display); font-style: italic; font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--kb-sage-deep); margin-right: 10px; white-space: nowrap; }
.kb-mrow em { font-style: normal; font-size: 14px; color: var(--kb-ink-2); }
.kb-mrow strong { display: block; font-family: var(--kb-display); font-weight: 500; font-size: 1.3rem; line-height: 1.22; color: var(--kb-ink); margin-top: 8px; text-wrap: balance; }
.kb-mrow:hover strong { text-decoration: underline; text-decoration-color: var(--kb-sage-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.kb-next { background: var(--kb-tint); padding-block: 36px; }
.kb-next .kb-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; }
.kb-next p { font-family: var(--kb-display); font-size: 1.35rem; color: var(--kb-ink); }
@media (max-width: 960px) { .kb-mlist { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .kb-mrow { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; } .kb-mrow b { font-size: 1.5rem; display: block; margin-bottom: 4px; } .kb-mrow strong { font-size: 1.1rem; } .kb-hub .kb-card h2 { font-size: 1.15rem; } .kb-hub .kb-card p { font-size: 14px; } }
