.ks-home {
    color-scheme: light;
    --ink: #1b271f;
    --forest: #183627;
    --green: #2a6947;
    --muted: #56665c;
    --line: #dce5dc;
    --wash: #eff5ef;
    --paper: #fff;
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.5 var(--sans);
}

.ks-home, .ks-home *, .ks-home *::before, .ks-home *::after { box-sizing: border-box; }
body.ks-home-page { margin: 0; background: #fff; }
.ks-home a, .ks-home a:hover { color: inherit; text-decoration: none; }
.ks-home :is(a, button, input):focus-visible { outline: 2px solid #358b5c; outline-offset: 4px; }
.ks-home :is(h1, h2, h3, ul, p) { margin: 0; }

.ks-shell { width: min(100% - 64px, 1264px); margin-inline: auto; }
.ks-visually-hidden, .ks-skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.ks-home .ks-skip:focus { position: absolute; z-index: 10; inset: 12px auto auto 12px; padding: 12px; color: var(--paper); background: var(--forest); }

.ks-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 92px;
    gap: 20px;
}
.ks-today, .ks-meta, .ks-sidebar-list time { color: var(--muted); font-size: 12px; }
.ks-today { letter-spacing: .01em; }
.ks-brand { justify-self: center; display: block; color: var(--forest); }
.ks-brand img { display: block; width: clamp(216px, 25vw, 330px); height: auto; }
.ks-brand span { font: 700 clamp(26px, 3.3vw, 46px)/1 var(--serif); letter-spacing: -.05em; }
.ks-brand strong { color: var(--green); }
.ks-search {
    justify-self: end;
    display: flex;
    width: min(100%, 208px);
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--forest);
}
.ks-search input { width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0 0 0 10px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; }
.ks-search button { display: grid; place-items: center; flex: 0 0 38px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ks-search button:hover { background: var(--wash); }
.ks-magnifier { position: relative; width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; }
.ks-magnifier::after { position: absolute; height: 1.6px; width: 6px; right: -5px; bottom: -3px; border-radius: 1px; background: currentColor; transform: rotate(45deg); content: ""; }
.ks-nav { background: var(--forest); color: var(--paper); border-bottom: 3px solid #5b9669; }
.ks-home .ks-nav-list { display: flex; justify-content: center; margin-inline: auto; padding: 0; list-style: none; }
.ks-nav a { display: grid; min-height: 48px; place-items: center; padding-inline: clamp(18px, 3.4vw, 46px); font-size: 15px; font-weight: 650; }
.ks-nav a:hover, .ks-nav a:focus-visible { background: #2a513c; }
.ks-nav a:focus-visible { outline-offset: -4px; outline-color: #bde8c7; }

.ks-main { padding-block: 34px 72px; }
.ks-news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 25%); gap: clamp(22px, 3vw, 44px); }
.ks-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ks-section-head h1, .ks-section-head h2, .ks-sidebar h2 { color: var(--forest); font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; }
.ks-section-head h1 { font-size: clamp(26px, 2.5vw, 35px); line-height: 1.12; }
.ks-feed-head { align-items: center; }
.ks-feed-head::after { flex: 1; height: 1px; margin-left: 4px; background: var(--line); content: ""; }
.ks-news-row { display: grid; gap: 16px; padding-bottom: 22px; }
.ks-news-row + .ks-news-row { border-top: 1px solid var(--line); padding-top: 22px; }
.ks-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ks-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ks-story { min-width: 0; }
.ks-story-link { display: block; height: 100%; }
.ks-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(125deg, #dce9df, #a5bba9); }
.ks-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 230ms ease; }
.ks-story-link:is(:hover, :focus-visible) .ks-photo img { transform: scale(1.025); }
.ks-story-link:is(:hover, :focus-visible) h3 { color: var(--green); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.ks-story-body { padding-top: 9px; }
.ks-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; line-height: 1.6; margin-bottom: 4px; }
.ks-topic { color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.ks-story h3 { font: 700 clamp(16px, 1.6vw, 21px)/1.18 var(--serif); letter-spacing: -.012em; overflow-wrap: anywhere; }
.ks-row-2 .ks-story h3 { font-size: clamp(20px, 2vw, 27px); }
.ks-feed-head + .ks-news-row .ks-story h3 { font-size: clamp(24px, 2.53vw, 33px); line-height: 1.08; letter-spacing: -.035em; }

.ks-sidebar { min-width: 0; padding-top: 2px; padding-left: 20px; border-left: 1px solid var(--line); }
.ks-sidebar-panel { position: sticky; top: 24px; padding: 19px 18px 6px; border-top: 3px solid var(--green); background: var(--wash); }
.ks-home .ks-sidebar h2 { margin-bottom: 5px; font-size: 24px; line-height: 1.12; }
.ks-sidebar-list { list-style: none; padding: 0; }
.ks-sidebar-list li { padding-block: 13px; }
.ks-sidebar-list li + li { border-top: 1px solid #d5e0d6; }
.ks-sidebar-list time, .ks-sidebar-list a { display: block; }
.ks-sidebar-list a { margin-top: 3px; font-size: 15px; font-weight: 650; line-height: 1.35; }
.ks-sidebar-list a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .16em; }

.ks-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 28px; margin-top: 28px; }
.ks-category { border-top: 3px solid var(--forest); padding-top: 12px; scroll-margin-top: 12px; }
.ks-category .ks-section-head h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; }
.ks-home .ks-all { color: var(--green); font-size: 14px; font-weight: 700; }
.ks-home .ks-all:hover { text-decoration: underline; text-underline-offset: .2em; }
.ks-category-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
.ks-category-stories .ks-story:nth-child(n + 3) { border-top: 1px solid var(--line); padding-top: 12px; }
.ks-empty { color: var(--muted); font-size: 14px; padding-block: 12px; }
.ks-footer { border-top: 1px solid var(--line); background: var(--wash); color: var(--forest); }
.ks-footer .ks-shell { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; padding-block: 20px; font-size: 14px; font-weight: 650; }
.ks-footer ul { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }
.ks-footer-brand { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
.ks-footer-brand span { color: var(--muted); font-size: 12px; font-weight: 450; }
.ks-home .ks-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .ks-shell { width: calc(100% - 40px); }
    .ks-news-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ks-sidebar { padding: 0; border-left: 0; }
    .ks-sidebar-panel { position: static; }
    .ks-category-grid { gap: 28px 20px; }
}

@media (max-width: 600px) {
    .ks-shell { width: calc(100% - 32px); }
    .ks-masthead { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding-block: 17px 12px; }
    .ks-brand { grid-column: 1 / -1; grid-row: 1; }
    .ks-today { grid-column: 1; grid-row: 2; font-size: 11px; }
    .ks-search { grid-column: 2; grid-row: 2; width: min(35vw, 138px); min-height: 34px; }
    .ks-search input { font-size: 12px; }
    .ks-search button { flex-basis: 31px; }
    .ks-nav-list { width: 100%; }
    .ks-nav-list li { flex: 1; }
    .ks-nav a { min-height: 44px; padding-inline: 5px; font-size: 14px; }
    .ks-main { padding-block: 23px 42px; }
    .ks-news-row { gap: 14px; padding-bottom: 16px; }
    .ks-news-row + .ks-news-row { padding-top: 16px; }
    .ks-feed-head + .ks-news-row, .ks-row-3 { grid-template-columns: minmax(0, 1fr); }
    .ks-row-3 .ks-story-link { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); align-items: start; gap: 12px; }
    .ks-row-3 .ks-story-body { padding-top: 0; }
    .ks-row-3 .ks-story + .ks-story { padding-top: 12px; border-top: 1px solid var(--line); }
    .ks-row-2 .ks-story h3 { font-size: 18px; }
    .ks-feed-head + .ks-news-row .ks-story h3 { font-size: clamp(23px, 6vw, 29px); }
    .ks-category-grid { grid-template-columns: minmax(0, 1fr); }
    .ks-sidebar-panel { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .ks-photo img { transition: none; }
    .ks-story-link:is(:hover, :focus-visible) .ks-photo img { transform: none; }
}
