/*
 * Airwright CMS – news module.
 * Uses the colour variables of the template (--aw-…); every variable has a fallback,
 * so the news also looks right in a template that does not define them.
 * A template can change everything: its own style.css is loaded after this file.
 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.news-card { background: var(--aw-surface, #10131b); border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); border-radius: var(--aw-radius, 18px); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--aw-accent, #ff3d6e) 55%, transparent); box-shadow: 0 22px 50px -28px var(--aw-accent, #ff3d6e); }
.news-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.news-card-link:hover { color: inherit; }
.news-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--aw-surface-2, #171b26); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font-size: 21px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.news-card.no-image { background: linear-gradient(150deg, color-mix(in srgb, var(--aw-accent, #ff3d6e) 16%, var(--aw-surface, #10131b)), var(--aw-surface, #10131b) 62%); }
.news-card.no-image h3 { font-size: 24px; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 13px; color: var(--aw-muted, #98a2b6); }
.news-meta a { text-decoration: none; }
.news-cat { --c: var(--aw-accent, #ff3d6e); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; color: var(--aw-text, #eef1f7); text-decoration: none; }
.news-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.news-flag { background: #ff3b3b; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.news-excerpt { margin: 0; color: var(--aw-muted, #98a2b6); font-size: 15.5px; line-height: 1.55; }
.news-foot { margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--aw-muted, #98a2b6); }

/* home page: first card large */
@media (min-width: 900px) {
    .news-bento { grid-template-columns: repeat(3, 1fr); }
    .news-bento .news-card:first-child { grid-column: span 2; grid-row: span 2; }
    .news-bento .news-card:first-child .news-card-media { aspect-ratio: auto; flex: 1; min-height: 300px; }
    .news-bento .news-card:first-child .news-card-body { flex: 0 0 auto; }
    .news-bento .news-card:first-child h3 { font-size: clamp(26px, 2.6vw, 36px); }
}

/* overview */
.news-top { padding: clamp(34px, 6vw, 70px) 0 26px; }
.news-top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.news-top h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -.045em; }
.news-search { display: flex; align-items: center; background: var(--aw-surface, #10131b); border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: min(320px, 100%); }
.news-search:focus-within { border-color: var(--aw-accent, #ff3d6e); }
.news-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: inherit; font: inherit; font-size: 15.5px; }
.news-search button { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--aw-surface-2, #171b26); color: inherit; }
.news-empty { text-align: center; color: var(--aw-muted, #98a2b6); padding: 60px 0; font-size: 18px; }

.news-hero { border-radius: calc(var(--aw-radius, 18px) + 8px); overflow: hidden; position: relative; background: linear-gradient(140deg, color-mix(in srgb, var(--aw-accent, #ff3d6e) 55%, #0b0d12), color-mix(in srgb, var(--aw-accent-2, #7c5cff) 55%, #0b0d12)); }
.news-hero-link { display: flex; align-items: flex-end; min-height: clamp(360px, 52vw, 600px); text-decoration: none; color: #fff; position: relative; }
.news-hero-link:hover { color: #fff; }
.news-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.news-hero:hover img { transform: scale(1.03); }
.news-hero-body { position: relative; width: 100%; padding: clamp(22px, 4vw, 48px); padding-top: 120px; background: linear-gradient(transparent, rgba(4, 5, 9, .9) 62%); display: flex; flex-direction: column; gap: 14px; }
.news-hero h2 { font-size: clamp(28px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.035em; max-width: 20ch; }
.news-hero .news-meta, .news-hero .news-excerpt { color: rgba(255, 255, 255, .82); }
.news-hero .news-cat { color: #fff; }
.news-hero .news-excerpt { max-width: 62ch; font-size: 17.5px; }
.news-readmore { font-weight: 700; }

/* article */
.news-article-head { max-width: 760px; padding: clamp(34px, 6vw, 76px) 0 26px; }
.news-article-head h1 { font-size: clamp(34px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.04em; margin: 14px 0 0; }
.news-lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; color: var(--aw-muted, #98a2b6); margin: 20px 0 0; }
.news-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; font-size: 15px; color: var(--aw-muted, #98a2b6); }
.news-byline b { color: var(--aw-text, #eef1f7); }
.news-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--aw-accent, #ff3d6e), var(--aw-accent-2, #7c5cff)); }
.news-cover { margin-block: 10px 0; padding: 0; }
.news-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: calc(var(--aw-radius, 18px) + 6px); display: block; }
.news-article-body { max-width: 760px; padding-top: clamp(28px, 4vw, 48px); position: relative; }
.news-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; font-size: 14px; }
.news-share span { color: var(--aw-muted, #98a2b6); margin-right: 4px; }
.news-share a, .news-share button { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); background: var(--aw-surface, #10131b); color: inherit; text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.news-share a:hover, .news-share button:hover { border-color: var(--aw-accent, #ff3d6e); color: var(--aw-accent, #ff3d6e); }
.news-tags { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.news-tags a { padding: 6px 13px; border-radius: 999px; background: var(--aw-surface-2, #171b26); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.news-author { margin: 36px 0 0; display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--aw-radius, 18px); background: var(--aw-surface, #10131b); border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); }
.news-author p { margin: 4px 0 0; color: var(--aw-muted, #98a2b6); font-size: 15.5px; }

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .news-search { width: 100%; }
}

.news-article-body .prose { max-width: none; }
