.ai-news-page {
  --news-forest: #17271f;
  --news-forest-deep: #102018;
  --news-lime: #c9eb94;
  --news-paper: #f3f4ed;
  --news-muted: #66736a;
  --news-line: #d8dfd4;
}

.ai-news-page .site-header { position: sticky; top: 0; z-index: 50; background: rgba(243,244,237,.94); backdrop-filter: blur(12px); }
.ai-news-page .nav-links a[aria-current="page"] { color: var(--news-forest); }
.ai-news-page .nav-links a[aria-current="page"]::after { display: block; height: 2px; margin-top: 2px; background: var(--news-lime); content: ""; }

.news-masthead { position: relative; overflow: hidden; padding: clamp(58px,8vw,104px) 0 clamp(52px,7vw,86px); background: var(--news-forest-deep); color: #f4f5ed; }
.news-masthead::before { position: absolute; inset: 0; background: radial-gradient(ellipse at 76% 38%, rgba(109,151,79,.18), transparent 38%), linear-gradient(108deg, transparent 55%, rgba(201,235,148,.04) 55.1%, transparent 55.3%); content: ""; pointer-events: none; }
.news-masthead::after { position: absolute; right: -95px; bottom: -210px; width: 430px; height: 430px; border: 1px solid rgba(201,235,148,.17); border-radius: 50%; box-shadow: 0 0 0 44px rgba(201,235,148,.025), 0 0 0 88px rgba(201,235,148,.02); content: ""; }
.news-masthead-inner { position: relative; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(230px,.65fr); align-items: end; gap: 42px; }
.news-kicker,.news-side-label,.news-overline { margin: 0; color: var(--news-lime); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.news-kicker { display: flex; align-items: center; gap: 10px; }
.live-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--news-lime); box-shadow: 0 0 0 4px rgba(201,235,148,.12); }
.news-masthead h1 { max-width: 760px; margin: 20px 0 12px; font-size: clamp(3.4rem,8.4vw,7.4rem); font-weight: 800; letter-spacing: -.085em; line-height: .91; }
.news-masthead h1 span { color: var(--news-lime); }
.news-intro { max-width: 580px; margin: 22px 0 0; color: #c2cdc2; font-size: clamp(1rem,1.8vw,1.22rem); line-height: 1.7; }
.news-masthead-side { position: relative; z-index: 1; max-width: 310px; justify-self: end; padding: 2px 0 5px 22px; border-left: 1px solid rgba(201,235,148,.35); }
.news-side-label { color: #9fb78e; font-size: .64rem; }
.news-masthead-side > p { margin: 11px 0 22px; color: #e0e6dd; font-size: .96rem; line-height: 1.65; }
.news-last-updated { display: flex; align-items: center; gap: 10px; color: #aebbb0; font-size: .75rem; font-weight: 700; }
.news-last-updated .live-dot { width: 6px; height: 6px; background: #a5d36c; }
.news-masthead-index { position: absolute; right: 0; top: -32px; color: rgba(244,245,237,.25); font-size: .65rem; font-weight: 800; letter-spacing: .16em; }

.news-content { padding: clamp(48px,7vw,82px) 0 72px; }
.news-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding-bottom: 27px; border-bottom: 1px solid var(--news-line); }
.news-overline { color: #688355; font-size: .68rem; }
.news-section-heading h2 { margin: 8px 0 0; font-size: clamp(2rem,4.5vw,3.35rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.05; }
.news-section-heading h2 span { color: #75944f; }
.news-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid #cad4c7; border-radius: 7px; background: #fff; color: var(--news-forest); font-size: .78rem; font-weight: 800; cursor: pointer; transition: background .18s ease,border-color .18s ease,transform .18s ease; }
.news-refresh:hover { transform: translateY(-1px); border-color: #9eb58d; background: #f9fbf6; }
.news-refresh:disabled { cursor: wait; opacity: .7; }
.news-refresh svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.news-refresh.is-loading svg { animation: news-rotate .9s linear infinite; }
@keyframes news-rotate { to { transform: rotate(360deg); } }

.news-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 18px; }
.news-filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.news-filter { padding: 9px 13px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #5d6b60; font-size: .76rem; font-weight: 800; cursor: pointer; }
.news-filter:hover { background: #e9ede4; }
.news-filter.is-active { border-color: #d5e1ce; background: #e6efd9; color: #2f5837; }
.news-search-wrap { display: flex; align-items: center; gap: 10px; }
.news-search-wrap label { color: #69766c; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.news-search-wrap input { width: min(290px,32vw); min-height: 42px; padding: 9px 12px; border: 1px solid var(--news-line); border-radius: 6px; background: #fff; color: var(--news-forest); font-size: .76rem; }
.news-search-wrap input::placeholder { color: #8b968d; }
.news-search-wrap input:focus { outline: 3px solid rgba(112,168,61,.25); border-color: #85a56e; }
.news-period-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 0 22px; }
.news-period-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid #e0e5dc; border-radius: 7px; background: #ecefe8; }
.news-period-switch button { min-height: 32px; padding: 6px 12px; border: 0; border-radius: 5px; background: transparent; color: #67746a; font-size: .7rem; font-weight: 800; cursor: pointer; }
.news-period-switch button.is-active { background: #fff; color: #253d2d; box-shadow: 0 1px 3px rgba(23,39,31,.12); }
.news-count { margin: 0; color: #78847a; font-size: .72rem; }
.news-stories[hidden] { display: none; }
.news-stories { display: grid; gap: 18px; }
.news-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.42fr); min-height: 272px; overflow: hidden; border: 1px solid #d8e0d5; border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgba(23,39,31,.045); }
.news-feature-main { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px,4vw,44px); }
.news-story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: #748077; font-size: .69rem; font-weight: 700; }
.news-story-category { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #e8f1dc; color: #42613a; font-size: .62rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.news-feature h3 { max-width: 25ch; margin: 20px 0 12px; font-size: clamp(1.65rem,3.5vw,2.65rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.news-feature h3 a { color: var(--news-forest); text-decoration: none; }
.news-feature h3 a:hover { color: #477443; }
.news-feature .news-story-summary { max-width: 68ch; margin: 0; color: #637067; font-size: .92rem; line-height: 1.7; }
.news-feature-side { display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border-left: 1px solid #dce4da; background: linear-gradient(145deg,#edf2e9,#e2ebdc); }
.news-feature-issue { color: #73876c; font-size: .63rem; font-weight: 900; letter-spacing: .16em; }
.news-feature-art { position: relative; min-height: 130px; overflow: hidden; border-radius: 9px; background: var(--news-forest); }
.news-feature-art::before,.news-feature-art::after { position: absolute; top: 50%; left: 50%; width: 136px; height: 136px; border: 1px solid rgba(201,235,148,.48); border-radius: 50%; content: ""; transform: translate(-50%,-50%); }
.news-feature-art::after { width: 84px; height: 84px; border-color: rgba(201,235,148,.68); }
.news-feature-art span { position: absolute; top: 50%; left: 50%; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--news-lime); color: var(--news-forest); font-size: 1rem; font-weight: 900; transform: translate(-50%,-50%); }
.news-feature-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #586a5c; font-size: .72rem; font-weight: 800; }
.news-feature-source span:last-child { color: #314d36; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.news-card { display: flex; min-height: 240px; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid #dfe4dc; border-radius: 11px; background: #fff; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.news-card:hover { transform: translateY(-2px); border-color: #c8d6c0; box-shadow: 0 12px 25px rgba(23,39,31,.055); }
.news-card .news-story-meta { margin-bottom: 17px; }
.news-card h3 { margin: 0 0 11px; font-size: 1.14rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.27; }
.news-card h3 a { color: var(--news-forest); text-decoration: none; }
.news-card h3 a:hover { color: #477443; }
.news-card .news-story-summary { margin: 0 0 20px; color: #6b776e; font-size: .8rem; line-height: 1.65; }
.news-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: #426e43; font-size: .7rem; font-weight: 900; text-decoration: none; }
.news-card-link:hover { color: #254c30; }
.news-card-link span { font-size: .9rem; transition: transform .18s ease; }
.news-card-link:hover span { transform: translate(2px,-2px); }
.news-state { display: flex; min-height: 190px; align-items: center; justify-content: center; gap: 13px; padding: 28px; border: 1px dashed #cdd7ca; border-radius: 11px; color: #69776d; font-size: .85rem; text-align: center; }
.news-state[hidden] { display: none; }
.news-state.is-error { display: block; padding-top: 62px; color: #a34a3f; }
.news-state.is-empty { display: block; padding-top: 62px; }
.news-loader { width: 19px; height: 19px; border: 2px solid #d2dfcb; border-top-color: #587c4b; border-radius: 50%; animation: news-rotate .8s linear infinite; }
.news-source-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 38px; padding: 18px 20px; border-left: 3px solid #9bc269; background: #e9eee4; }
.source-note-mark { color: #4f7846; font-size: 1.05rem; font-weight: 900; }
.news-source-note p { max-width: 76ch; margin: 0; color: #566558; font-size: .76rem; line-height: 1.6; }
.news-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.news-source-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dbe2d8; border-radius: 999px; background: rgba(255,255,255,.58); color: #657268; font-size: .64rem; font-weight: 700; }
.news-source-chip::before { width: 5px; height: 5px; border-radius: 50%; background: #77a75a; content: ""; }
.news-source-chip.is-offline::before { background: #d58b69; }

@media (max-width: 980px) {
  .news-masthead-inner { grid-template-columns: minmax(0,1fr) minmax(210px,.55fr); gap: 26px; }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-controls { align-items: flex-start; flex-direction: column; gap: 16px; }
  .news-search-wrap input { width: min(420px,56vw); }
}
@media (max-width: 720px) {
  .news-masthead { padding: 54px 0 52px; }
  .news-masthead-inner { grid-template-columns: 1fr; gap: 27px; }
  .news-masthead h1 { font-size: clamp(3.2rem,15vw,5.7rem); }
  .news-intro { max-width: 40ch; }
  .news-masthead-side { max-width: none; justify-self: stretch; padding-left: 15px; }
  .news-masthead-side > p { max-width: 45ch; margin-bottom: 13px; }
  .news-section-heading { align-items: flex-start; flex-direction: column; }
  .news-refresh { align-self: flex-start; }
  .news-controls { padding-top: 16px; }
  .news-search-wrap { width: 100%; }
  .news-search-wrap input { width: 100%; flex: 1; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-side { min-height: 190px; flex-direction: row; align-items: flex-end; gap: 16px; border-top: 1px solid #dce4da; border-left: 0; }
  .news-feature-art { width: min(44%,210px); min-height: 120px; flex: 0 0 auto; }
  .news-feature-source { flex: 1; }
  .news-feature-issue { align-self: flex-start; }
}
@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; }
  .news-period-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .news-filter-group { gap: 3px; }
  .news-filter { padding: 8px 10px; font-size: .7rem; }
  .news-feature-side { min-height: 160px; padding: 18px; }
  .news-feature-art { min-height: 105px; }
  .news-feature-main { padding: 24px 20px; }
  .news-feature h3 { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-refresh,.news-card,.news-card-link span { transition: none; }
  .news-loader,.news-refresh.is-loading svg { animation-duration: 3s; }
}
