/* DELF Foundation – News page. Load css/home.css before this file. */

/* Page hero: shared split layout comes from home.css; these refinements keep it aligned with other pages. */
.dl .hero--page { min-height: clamp(420px, 62vh, 560px); }
.dl .hero--page .hero__copy h1 { font-size: clamp(2.15rem, 4vw, 3.35rem); max-width: 15ch; }
.dl .hero--page .hero__lede { max-width: 54ch; }
.dl .hero--page .hero__eyebrow { margin: 0 0 14px; color: var(--marigold); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dl .hero--page .hero__media { min-width: 0; }
@media (max-width: 767.98px) {
  .dl .hero--page { min-height: 0; }
  .dl .hero--page .hero__img { display: block; width: 100%; height: auto; min-height: 240px; max-height: 340px; object-fit: cover; }
}
@keyframes headIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Featured story */
.dl .feature { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px 56px; align-items: center; max-width: none; }
@media (min-width: 992px) { .dl .feature { grid-template-columns: 7fr 5fr; } }
.dl .feature .photo { margin: 0; }
.dl .feature .photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--fog); }
.dl .feature__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; color: var(--navy); margin: 0 0 14px; text-wrap: balance; }
.dl .feature__text { font-size: 1.05rem; line-height: 1.75; max-width: 55ch; margin: 0 0 16px; text-wrap: pretty; }
.dl .feature__text--lede { font-size: 1.2rem; line-height: 1.65; color: var(--navy); }
.dl .feature__body .more { display: inline-block; margin-top: 8px; }
.dl .story__cat { color: var(--link, var(--navy)); font-size: .78rem; font-weight: 700; letter-spacing: .1em; line-height: 1.4; margin: 0 0 12px; text-transform: uppercase; }

#stories, #events, #newsletter { scroll-margin-top: 72px; }
#eventsList { min-height: 120px; }

/* Story grid */
.dl .subhead { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; color: var(--navy); margin: clamp(56px, 7vw, 88px) 0 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.dl .story-grid { display: grid; grid-template-columns: 1fr; gap: 44px 32px; }
@media (min-width: 640px) { .dl .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .dl .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl .card-story { position: relative; max-width: none; display: flex; flex-direction: column; align-items: flex-start; }
.dl .card-story .photo { margin: 0 0 18px; width: 100%; }
.dl .card-story .photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--fog); }
.dl .card-story h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; line-height: 1.35; color: var(--navy); margin: 0 0 12px; text-wrap: balance; }
.dl .story__summary { line-height: 1.7; margin: 0 0 18px; text-wrap: pretty; }
.dl .card-story .more { margin-top: auto; }

/* Whole card is the click target */
.dl .feature .more::after, .dl .card-story .more::after { content: ""; position: absolute; inset: 0; }
.dl .feature__title, .dl .card-story h3 { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 5px; transition: text-decoration-color .15s; }
@media (hover: hover) { .dl .feature:hover .feature__title, .dl .card-story:hover h3 { text-decoration-color: var(--marigold); } }
.dl .feature .more:focus-visible, .dl .card-story .more:focus-visible { outline: 0; }
.dl .feature:has(.more:focus-visible), .dl .card-story:has(.more:focus-visible) { outline: 3px solid var(--link); outline-offset: 8px; }

/* Insights */
.dl .insights__intro { max-width: 720px; margin-bottom: 34px; }
.dl .insights-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 992px) { .dl .insights-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.dl .insight-item { padding-top: 20px; border-top: 3px solid var(--marigold); }
.dl .insight-item h3 { color: var(--navy); font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.4; margin: 0 0 12px; }
.dl .insight-item p { line-height: 1.75; margin: 0; max-width: 60ch; text-wrap: pretty; }

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .dl .hero--page .hero__copy h1, .dl .hero--page .hero__lede { animation: none; }
  .dl .feature__title, .dl .card-story h3 { transition: none; }
}