/* Design Pattern 8: KD Insights — readable, unminified development CSS.
   Complements Pattern 7 without altering core site colours or navigation. */
:root {
    --kd8-ink: #112c32;
    --kd8-deep: #102c35;
    --kd8-teal: #277267;
    --kd8-gold: #b89466;
    --kd8-paper: #f5f4ee;
    --kd8-cream: #f9f7f1;
    --kd8-line: #d9ded9;
    --kd8-muted: #53696c;
}

.kd-article-page,
.kd-insights-hub {
    background: #fffdf9;
}
.kd-article-page h1,
.kd-article-page h2,
.kd-insights-hub h1,
.kd-insights-hub h2,
.kd-home-insights h2 {
    text-wrap: balance;
}
.kd-article-page p,
.kd-insights-hub p,
.kd-home-insights p {
    text-wrap: pretty;
}

/* Article headline: premium typography, editorial details, restrained photography */
.kd-a-hero {
    position: relative;
    padding: clamp(70px, 7vw, 112px) 0 clamp(55px, 6vw, 95px);
    overflow: hidden;
    background: radial-gradient(ellipse at 85% 12%, #e1e9e4 0%, transparent 34%),
                linear-gradient(130deg, #f6f5ef, #fbfaf6 62%, #ebeee8);
    color: var(--kd8-ink);
}
.kd-a-hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 17%;
    width: 1px;
    background: #dce3dc;
    opacity: .35;
}
.kd-a-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .6fr);
    align-items: center;
    gap: clamp(42px, 7vw, 112px);
}
.kd-a-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #58716e;
    font-size: 13px;
    margin-bottom: 43px;
}
.kd-a-breadcrumb a { color: inherit; text-decoration: none; }
.kd-a-breadcrumb a:hover { text-decoration: underline; }
.kd-a-overline,
.kd-a-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #467b71;
}
.kd-a-hero h1 {
    max-width: 900px;
    font: 650 clamp(34px, 3.85vw, 67px)/1.11 "Manrope", "DM Sans", sans-serif;
    letter-spacing: -.055em;
    color: #12343b;
    margin: 19px 0 24px;
}
.kd-a-deck {
    max-width: 750px;
    font-size: clamp(17px, 1.55vw, 21px);
    line-height: 1.72;
    color: #536769;
    margin-bottom: 30px;
}
.kd-a-byline { display: flex; gap: 14px; align-items: center; }
.kd-a-avatar {
    display: grid;
    place-items: center;
    height: 45px;
    width: 45px;
    flex: 0 0 45px;
    border-radius: 50%;
    background: #174c52;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.kd-a-byline strong { display:block; color:#2d4449; font-size: 13px; }
.kd-a-byline small { display:block; margin-top:4px; color:#667576; font-size: 12px; line-height: 1.5; }
.kd-a-hero-aside {
    background: white;
    border: 1px solid #e2e6e0;
    border-radius: 16px;
    padding: 20px 20px 22px;
    box-shadow: 0 22px 60px rgba(13, 39, 40, .075);
}
.kd-a-aside-label {
    display: block;
    padding: 0 4px 12px;
    color: #61736a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}
.kd-a-hero-aside img {
    display:block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    object-position: center 16%;
    border-radius: 9px;
    background: #f3f4ef;
}
.kd-a-hero-aside p { margin: 18px 4px; font-size: 14px; line-height: 1.65; color: #53666c; }
.kd-a-hero-aside strong { color: var(--kd8-ink); }
.kd-a-hero-aside a { margin: 0 4px; font-size:13px; font-weight:800; color:#236b63; }

/* Article reading layout */
.kd-a-content-section { padding: 75px 0 90px; }
.kd-a-content-grid {
    display: grid;
    grid-template-columns: minmax(195px,.52fr) minmax(0,1.5fr);
    gap: clamp(36px, 7vw, 120px);
    align-items: start;
    max-width: 1190px;
}
.kd-a-toc { position: sticky; top: 120px; padding: 5px 0; border-left: 2px solid #e3e7e1; }
.kd-a-toc-label { display:block; margin: 0 0 18px 20px; font-size: 10px; letter-spacing: .18em; font-weight: 800; color: #8e9a94; }
.kd-a-toc a {
    display: block;
    padding: 10px 10px 10px 19px;
    text-decoration: none;
    line-height: 1.5;
    font-size: 13px;
    font-weight: 600;
    color: #536967;
    border-left: 2px solid transparent;
    margin-left: -2px;
}
.kd-a-toc a span { display:block; color:#a78d68; font-size:10px; letter-spacing:.1em; }
.kd-a-toc a:hover, .kd-a-toc a:focus-visible { background:#f3f5f0; border-left-color: #337f73; color:#173e42; }
.kd-a-toc-note { margin: 22px 10px 0 20px; padding-top: 17px; border-top:1px solid #e3e7e1; color:#84918c; font-size: 12px; line-height:1.6; }
.kd-a-prose { min-width: 0; max-width: 790px; color: #384d4e; }
.kd-a-prose .kd-a-opening { font-size: clamp(20px, 2vw, 25px); font-weight: 650; line-height: 1.58; letter-spacing: -.025em; color: #183e44; margin-bottom: 45px; }
.kd-a-prose section { scroll-margin-top: 110px; margin-bottom: 44px; }
.kd-a-prose h2 { font: 750 clamp(23px, 2.4vw, 31px)/1.3 "Manrope", sans-serif; letter-spacing:-.035em; color:#193a40; margin: 0 0 16px; }
.kd-a-prose h3 { font: 750 clamp(16px, 1.7vw, 19px)/1.4 "Manrope",sans-serif; letter-spacing: -.015em; margin: 23px 0 8px; color:#21484a; }
.kd-a-prose p { font-size: clamp(15px, 1.28vw, 17px); line-height: 1.88; margin: 0 0 19px; }
.kd-a-prose a { color:#1a7169; font-weight:700; text-decoration: underline; text-underline-offset:3px; }
.kd-a-takeaway {
    position:relative;
    margin: 45px 0;
    padding: clamp(26px,4vw,43px);
    border-left: 5px solid #af9264;
    background: #f2f4ed;
    border-radius: 0 10px 10px 0;
}
.kd-a-takeaway span { color:#667f76; font-weight:850; font-size:10px; letter-spacing:.17em; }
.kd-a-takeaway p { color:#20454a; font-size:clamp(17px,1.6vw,21px); font-weight:650; line-height:1.55; margin:11px 0 0; }
.kd-a-action-list { list-style:none; padding:0; margin: 18px 0; counter-reset:steps; }
.kd-a-action-list li { position:relative; counter-increment:steps; padding: 14px 0 14px 52px; border-bottom: 1px solid #e2e7e1; font-size: 16px; line-height:1.65; }
.kd-a-action-list li::before { content:counter(steps,decimal-leading-zero); position:absolute; left:0; top:16px; color:#2d7b70; font-size:14px; font-weight:800; }
.kd-a-questions { padding-top: 12px; }
.kd-a-source { padding: 16px 0; border-top:1px solid #d9e0d9; color:#697977; font-size: 12px; line-height: 1.8; }
.kd-a-source strong { color:#335858; }

/* Related-reading cards */
.kd-a-related-section { padding: 65px 0 90px; background: #eff3ed; }
.kd-a-section-head { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:15px; margin-bottom:26px; }
.kd-a-section-head h2 { font: 750 clamp(26px,3vw,39px)/1.2 "Manrope",sans-serif; color:#18393d; letter-spacing:-.045em; margin:10px 0 0; }
.kd-a-section-head > a { font-weight:800; color:#1b716a; font-size:13px; }
.kd-a-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.kd-a-related-grid a { min-height:155px; padding:24px; border:1px solid #d7e0d8; background:#fffdf9; border-radius:12px; display:flex; flex-direction:column; gap:12px; text-decoration:none; color:#24464a; }
.kd-a-related-grid a span:first-child { font-size:10px; font-weight:850; letter-spacing:.15em; color:#8d987d; }
.kd-a-related-grid a strong { font-size:17px; line-height:1.5; }
.kd-a-related-grid a span:last-child { margin-top:auto; align-self:flex-end; color:#2b7771; }
.kd-a-related-grid a:hover { border-color:#88b1a5; transform:translateY(-2px); }

/* Editorial hub */
.kd-hub-hero { position:relative; padding:clamp(70px,9vw,130px) 0 85px; background:#122e39; color:white; overflow:hidden; }
.kd-hub-hero-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(180px,.5fr); align-items:center; gap:35px; }
.kd-hub-hero .kd-a-overline { color:#a7c8bc; }
.kd-hub-hero h1 { color:#fffdf5; font:700 clamp(45px,6.2vw,91px)/1.06 "Manrope",sans-serif; letter-spacing:-.067em; margin: 22px 0; }
.kd-hub-hero h1 em { font-style:normal; color:#b6d4c9; }
.kd-hub-hero p:not(.kd-a-overline) { max-width:720px; font-size:clamp(16px,1.6vw,21px); color:#cedddb; line-height:1.76; }
.kd-hub-jumps { display:flex; flex-wrap:wrap; gap:18px; margin-top:36px; }
.kd-hub-jumps a { color:#fff; border-bottom:1px solid #789c90; text-decoration:none; font-size:13px; font-weight:700; padding-bottom:6px; }
.kd-hub-monogram { display:flex; flex-direction:column; align-items:center; justify-content:center; color:#b2cbbf; aspect-ratio:1; border:1px solid #36575e; border-radius:50%; }
.kd-hub-monogram span { font:600 clamp(80px,11vw,158px)/1 Georgia,serif; letter-spacing:-.1em; }
.kd-hub-monogram small { font-size:9px; font-weight:800; letter-spacing:.14em; text-align:center; }
.kd-hub-intro { background:#e7ece5; padding:35px 0; }
.kd-hub-intro-grid { display:grid; grid-template-columns:1fr 2fr; gap:36px; align-items:center; }
.kd-hub-intro strong { color:#285d5b; font:700 22px/1.4 "Manrope",sans-serif; }
.kd-hub-intro p { max-width:890px; margin:0; color:#47615f; line-height:1.7; font-size:14px; }
.kd-hub-section { padding: clamp(60px,8vw,110px) 0; }
.kd-hub-section:nth-of-type(4) { background:#f2f3ed; }
.kd-hub-category-title { max-width:890px; margin-bottom:37px; }
.kd-hub-category-title span { display:block; font-size:11px; font-weight:800; letter-spacing:.15em; color:#517d76; }
.kd-hub-category-title h2 { font:750 clamp(33px,4.1vw,56px)/1.17 "Manrope",sans-serif; letter-spacing:-.055em; color:#17383f; margin:10px 0 10px; }
.kd-hub-category-title p { color:#577074; line-height:1.6; font-size:17px; }
.kd-hub-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.kd-hub-card { min-width:0; display:flex; flex-direction:column; min-height:318px; padding:clamp(23px,2.3vw,32px); background:white; border:1px solid #e0e4dc; border-radius:13px; box-shadow:0 8px 29px rgba(10,47,49,.025); }
.kd-hub-card:nth-child(1) { grid-column:span 2; background:#173842; border-color:#173842; color:#fff; }
.kd-hub-card-top { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; font-size:10px; letter-spacing:.09em; font-weight:800; color:#5b8d82; }
.kd-hub-card:nth-child(1) .kd-hub-card-top { color:#a5c9bc; }
.kd-hub-card h3 { font:750 clamp(20px,2vw,27px)/1.36 "Manrope",sans-serif; letter-spacing:-.04em; margin:26px 0 13px; }
.kd-hub-card:nth-child(1) h3 { font-size:clamp(24px,3vw,40px); }
.kd-hub-card h3 a { color:#183c44; text-decoration:none; }
.kd-hub-card:nth-child(1) h3 a { color:#fff; }
.kd-hub-card p { color:#5e7373; font-size:14px; line-height:1.7; margin-bottom:22px; }
.kd-hub-card:nth-child(1) p { color:#c8d8d4; }
.kd-hub-card-link { margin-top:auto; font-size:13px; font-weight:800; color:#267367; text-decoration:none; }
.kd-hub-card:nth-child(1) .kd-hub-card-link { color:#d8eadd; }
.kd-hub-card:hover { box-shadow:0 20px 45px rgba(10,47,49,.09); transform:translateY(-3px); }
.kd-hub-bottom { background:#173842; color:#fff; padding:70px 0; }
.kd-hub-bottom-grid { display:grid; grid-template-columns:1.6fr .8fr; gap:60px; align-items:center; }
.kd-hub-bottom span { font-size:10px; font-weight:800; letter-spacing:.15em; color:#8ab7ab; }
.kd-hub-bottom h2 { max-width:750px; font:750 clamp(28px,3.5vw,48px)/1.25 "Manrope",sans-serif; letter-spacing:-.05em; margin:12px 0; }
.kd-hub-bottom p { max-width:720px; color:#c4d5d0; line-height:1.8; }
.kd-hub-bottom-grid > div:last-child { display:flex; flex-direction:column; gap:16px; }
.kd-hub-bottom a { text-decoration:none; color:#fff; font-size:15px; font-weight:750; border-bottom:1px solid #456b65; padding-bottom:12px; }

/* Homepage editorial teaser retains KD as primary visual. */
.kd-home-insights { padding:clamp(70px,8vw,125px) 0; background:#eaf0e9; }
.kd-home-insights-head { display:grid; grid-template-columns:1.5fr 1fr; gap:50px; align-items:end; margin-bottom:35px; }
.kd-home-insights h2 { font:750 clamp(32px,4.2vw,62px)/1.12 "Manrope",sans-serif; letter-spacing:-.056em; color:#173b40; margin:12px 0 0; }
.kd-home-insights h2 em { font-style:normal; color:#4c8277; }
.kd-home-insights-head p:not(.dp7-kicker) { line-height:1.75; color:#526b69; font-size:15px; }
.kd-home-insights-head a { color:#1a6f66; font-weight:800; text-decoration:none; }
.kd-home-insights-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.kd-home-insights-grid article { display:flex; flex-direction:column; gap:18px; min-height:280px; border:1px solid #d2ded2; border-radius:10px; background:#fffdf9; padding:26px; }
.kd-home-insights-grid article > span { color:#5c897d; font-size:10px; font-weight:800; letter-spacing:.13em; }
.kd-home-insights-grid h3 { font:750 clamp(19px,2vw,26px)/1.4 "Manrope",sans-serif; letter-spacing:-.035em; margin:0; }
.kd-home-insights-grid h3 a { text-decoration:none; color:#1e4245; }
.kd-home-insights-grid article > a { margin-top:auto; color:#277669; font-size:13px; font-weight:800; text-decoration:none; }

/* Accessible interaction states and scaled layouts */
.kd-article-page a:focus-visible,
.kd-insights-hub a:focus-visible,
.kd-home-insights a:focus-visible { outline:3px solid #ae9367; outline-offset:4px; }
@media (prefers-reduced-motion: reduce) {
    .kd-a-related-grid a, .kd-hub-card { transition:none; transform:none !important; }
}
@media (max-width:1000px) {
    .kd-a-hero-grid { grid-template-columns:minmax(0,1.8fr) minmax(180px,.72fr); gap:32px; }
    .kd-a-content-grid { gap:45px; }
    .kd-hub-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .kd-hub-card:nth-child(1) { grid-column:span 2; }
}
@media (max-width:760px) {
    .kd-a-hero { padding:58px 0 48px; }
    .kd-a-hero-grid { grid-template-columns:1fr; gap:28px; }
    .kd-a-breadcrumb { margin-bottom:24px; }
    .kd-a-hero h1 { font-size:clamp(31px,7vw,49px); letter-spacing:-.048em; }
    .kd-a-hero-aside { display:grid; grid-template-columns:105px 1fr; align-items:center; gap:12px 17px; padding:14px; }
    .kd-a-hero-aside .kd-a-aside-label { grid-column:1/-1; padding:0; }
    .kd-a-hero-aside img { width:105px; height:125px; grid-row:2 / 4; }
    .kd-a-hero-aside p { margin:0; }
    .kd-a-hero-aside a { margin:0; }
    .kd-a-content-section { padding:45px 0 65px; }
    .kd-a-content-grid { display:block; }
    .kd-a-toc { position:static; margin-bottom:38px; background:#f4f5ef; border:1px solid #e0e6dc; border-radius:10px; padding:17px; }
    .kd-a-toc-label { margin:0 0 8px; }
    .kd-a-toc a { display:inline-block; padding:8px 12px; margin:4px; background:#fff; border:1px solid #e1e9e1; border-radius:7px; font-size:12px; }
    .kd-a-toc a span { display:none; }
    .kd-a-toc-note { margin:16px 0 0; }
    .kd-a-related-grid { grid-template-columns:1fr; }
    .kd-a-related-grid a { min-height:115px; }
    .kd-hub-hero { padding:70px 0 60px; }
    .kd-hub-hero-grid { grid-template-columns:1fr; }
    .kd-hub-monogram { display:none; }
    .kd-hub-intro-grid { grid-template-columns:1fr; gap:10px; }
    .kd-hub-card-grid { grid-template-columns:1fr; }
    .kd-hub-card:nth-child(1) { grid-column:auto; }
    .kd-hub-card { min-height:245px; }
    .kd-hub-bottom-grid { grid-template-columns:1fr; gap:25px; }
    .kd-home-insights-head { grid-template-columns:1fr; gap:16px; }
    .kd-home-insights-grid { grid-template-columns:1fr; }
    .kd-home-insights-grid article { min-height:195px; }
}
@media (max-width:420px) {
    .kd-a-hero h1 { font-size:32px; }
    .kd-a-hero-aside { grid-template-columns:90px 1fr; }
    .kd-a-hero-aside img { width:90px; height:120px; }
    .kd-a-prose p { font-size:15px; }
    .kd-hub-hero h1 { font-size:41px; }
    .kd-a-toc a { display:block; margin:5px 0; }
    .kd-a-byline small { font-size:11px; }
}
