/* App feed companion: intentionally scoped to the homepage. */
.homepage {
    --bg: #f6f5f0; --text: #19221d; --muted: #5d665f; --line: #dce1d7;
    --primary: #185c45; --primary-dark: #104632; --surface-alt: #e9eee6; --container: 1320px;
    background: var(--bg); font-family: Arial, Helvetica, sans-serif; color-scheme: only light;
}
.homepage .container { width: min(calc(100% - 80px), var(--container)); }
.homepage .site-header { position: relative; background: var(--bg); backdrop-filter: none; border-bottom: 0; }
.homepage .site-header__inner { padding: 24px 0; border-bottom: 1px solid var(--line); }
.homepage .site-brand strong { font-size: 24px; letter-spacing: -1px; color: var(--text); }
.homepage .site-brand img { filter: sepia(1) saturate(2) hue-rotate(100deg); width: 35px; height: 35px; }
.homepage .site-brand small { font-size: 11px; margin-top: 1px; }
.homepage .site-nav { font-size: 12px; gap: 24px; }
.homepage .site-nav a { padding-block: 10px; }
.editorial-feed { padding: 40px 0 64px; }
.feed-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.feed-eyebrow { margin: 0 0 10px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.feed-intro h1 { font: 700 clamp(38px,4.4vw,64px)/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -2px; margin: 0 0 12px; }
.feed-intro__description { color: var(--muted); font-size: 14px; margin: 0; max-width: 480px; line-height: 1.6; }
.feed-level-guide { background: var(--surface-alt); border-radius: 14px; padding: 18px 22px; min-width: 310px; }
.feed-level-guide strong { display: block; font-size: 13px; }
.feed-level-guide p { margin: 2px 0 12px; color: var(--muted); font-size: 11px; }
.feed-level-guide__links { display: flex; border: 1px solid #8b9b8e; border-radius: 30px; overflow: hidden; }
.feed-level-guide__links a { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 8px 12px; }
.feed-level-guide__links a + a { border-left: 1px solid #8b9b8e; }
.feed-level-guide__links a:hover { background: #cfe7da; }
.feed-categories { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 14px; margin-bottom: 22px; scrollbar-width: thin; scrollbar-color: #b3c1b5 transparent; }
.feed-categories a { flex: 0 0 auto; border: 1px solid #becac0; padding: 10px 18px; border-radius: 10px; color: #46534a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.feed-categories a[aria-current], .feed-categories a:hover { background: #cfe7da; border-color: #cfe7da; color: #124532; }
.feed-section { margin-top: 34px; }
.feed-section--headline { margin-top: 0; }
.feed-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.feed-section__heading .feed-eyebrow { margin-bottom: 5px; }
.feed-section__heading h2 { margin: 0; font: 700 32px/1.15 Georgia, 'Times New Roman', serif; letter-spacing: -.8px; }
.feed-section__note { margin: 0; font-size: 12px; color: var(--muted); }
.homepage .article-card { box-shadow: none; transform: none; overflow: hidden; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; }
.homepage .article-card:hover { transform: none; box-shadow: none; }
.feed-story__image { display: block; overflow: hidden; }
.feed-story__image img { width: 100%; height: 100%; aspect-ratio: 1.9; object-fit: cover; transition: transform .25s ease; }
.feed-story__image:hover img { transform: scale(1.025); }
.feed-story__body { padding: 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.feed-story__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; font-size: 10px; line-height: 1.5; }
.feed-story__meta span { color: var(--primary); text-transform: uppercase; letter-spacing: .8px; font-weight: 800; }
.feed-story__meta time { color: #737a74; }
.feed-story__title { margin: 0; font-size: 19px; line-height: 1.28; letter-spacing: -.5px; overflow-wrap: anywhere; }
.feed-story__title a:hover { color: var(--primary); }
.feed-story__excerpt { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0 18px; }
.feed-story__levels { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: auto; padding-top: 16px; }
.feed-story__levels a { color: var(--primary); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.feed-story__levels a:hover { background: var(--surface-alt); border-color: #8ea596; }
.feed-story__read-label { color: var(--primary); font-size: 12px; font-weight: 700; margin-right: 8px; }
.homepage [data-story-style="headline"] { display: grid; grid-template-columns: 1.35fr 1fr; }
[data-story-style="headline"] .feed-story__image img { min-height: 390px; aspect-ratio: 1.5; }
[data-story-style="headline"] .feed-story__body { padding: 36px; justify-content: center; }
[data-story-style="headline"] .feed-story__title { font: 700 clamp(30px,3vw,44px)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -1px; }
[data-story-style="headline"] .feed-story__excerpt { font-size: 15px; }
[data-story-style="headline"] .feed-story__levels { margin-top: 6px; }
.feed-discover { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.feed-discover .feed-story__body { padding: 18px; }
.feed-discover .feed-story__excerpt { display: none; }
.feed-latest { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 40px; }
.homepage [data-story-style="compact"] { flex-direction: row-reverse; gap: 20px; padding: 23px 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
[data-story-style="compact"] .feed-story__image { width: 116px; flex: 0 0 116px; align-self: flex-start; border-radius: 10px; }
[data-story-style="compact"] .feed-story__image img { aspect-ratio: 1; }
[data-story-style="compact"] .feed-story__body { padding: 0; }
[data-story-style="compact"] .feed-story__title { font-size: 19px; }
[data-story-style="compact"] .feed-story__excerpt { margin: 8px 0 0; font-size: 12px; }
[data-story-style="compact"] .feed-story__levels { padding-top: 10px; }
[data-story-style="compact"] .feed-story__levels a { padding: 4px 8px; }
.homepage .archive-pagination { margin-top: 40px; border-color: var(--line); }
.homepage .archive-pagination__link { box-shadow: none; border-color: var(--line); }
.homepage :is(a,button):focus-visible { outline: 3px solid #185c45; outline-offset: 4px; }
.homepage .site-footer { background: #e9eee6; border-color: var(--line); }
.feed-empty { padding: 50px 0; }
@media (min-width: 1600px) { .homepage { --container: 1440px; } }
@media (max-width: 1050px) {
    .homepage .container { width: calc(100% - 48px); }
    .homepage .site-nav { gap: 14px; }
    .homepage .site-brand strong { font-size: 20px; }
    .feed-discover { grid-template-columns: repeat(2,minmax(0,1fr)); }
    [data-story-style="headline"] .feed-story__body { padding: 24px; }
    .homepage [data-story-style="headline"] { grid-template-columns: 1fr 1fr; }
    .feed-latest { column-gap: 26px; }
}
@media (max-width: 760px) {
    .homepage .container { width: calc(100% - 40px); }
    .homepage .site-header__inner { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px 0 12px; }
    .homepage .site-brand strong { font-size: 23px; }
    .homepage .site-brand small { display: none; }
    .homepage .site-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 22px; font-size: 11px; white-space: nowrap; }
    .homepage .site-nav, .feed-categories, .feed-discover { scrollbar-width: none; }
    .homepage .site-nav::-webkit-scrollbar, .feed-categories::-webkit-scrollbar, .feed-discover::-webkit-scrollbar { display: none; }
    .editorial-feed { padding-top: 24px; }
    .feed-intro { display: block; margin-bottom: 18px; }
    .feed-intro h1 { font-size: 42px; letter-spacing: -1.5px; }
    .feed-intro__description { font-size: 13px; }
    .feed-level-guide { margin-top: 20px; min-width: 0; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .feed-level-guide p { margin: 2px 0 0; }
    .feed-level-guide__links { flex-shrink: 0; }
    .feed-level-guide__links a { padding: 8px 14px; }
    .feed-level-guide__links a span { display: none; }
    .feed-categories { margin-bottom: 18px; }
    .feed-categories a { padding: 9px 15px; }
    .feed-eyebrow { font-size: 9px; letter-spacing: 1.3px; }
    .feed-section__heading h2 { font-size: 29px; }
    .homepage [data-story-style="headline"] { display: flex; }
    [data-story-style="headline"] .feed-story__image img { min-height: 0; aspect-ratio: 1.75; }
    [data-story-style="headline"] .feed-story__body { padding: 20px; }
    [data-story-style="headline"] .feed-story__title { font-size: 30px; }
    [data-story-style="headline"] .feed-story__excerpt { font-size: 13px; }
    .feed-discover { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 14px; padding-bottom: 12px; }
    .feed-discover .article-card { flex: 0 0 78%; scroll-snap-align: start; }
    .feed-discover .feed-story__title { font-size: 18px; }
    .feed-latest { display: block; }
    .feed-section__note { display: none; }
    .homepage [data-story-style="compact"] { gap: 14px; padding: 20px 0; }
    [data-story-style="compact"] .feed-story__image { width: 88px; flex-basis: 88px; }
    [data-story-style="compact"] .feed-story__title { font-size: 17px; }
    [data-story-style="compact"] .feed-story__meta { font-size: 9px; gap: 5px 8px; }
    .feed-story__read-label { flex-basis: 100%; }
    .feed-story__levels a { min-height: 40px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .feed-story__image img { transition: none; } }
