/* Surf news (Pages/News, Pages/Shared/_NewsCard.cshtml, the news card in the Community feed). The landing tokens
   (--ag-*) come from landing.css. Touch first: every tap target 44 px or more; nothing positioned over text. */

/* ---- the card (feed and /news) ---- */
.nw-card { min-width: 0; border: 1px solid var(--ag-line); border-radius: 20px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(11, 79, 94, 0.06); overflow: hidden; }
.nw-card__link { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; }
.nw-card__link:hover .nw-card__head { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nw-card__link:focus-visible { outline: 3px solid var(--ag-cyan); outline-offset: -3px; border-radius: 20px; }
.nw-card__body { display: grid; align-content: start; gap: 8px; padding: 14px 16px 16px; min-width: 0; }
.nw-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ag-muted); font-size: 13px; }
.nw-card__head { margin: 0; color: var(--ag-ink); font-family: var(--ag-font-display); font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.22; text-wrap: balance; overflow-wrap: anywhere; }
.nw-card__sum { margin: 0; color: var(--ag-text); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 2px; color: var(--ag-muted); font-size: 13px; }
.nw-card__read { color: var(--ag-cyan-ink); font-weight: 800; font-size: 14px; }
.nw-card__eyebrow { color: var(--ag-cyan-ink); font-weight: 800; letter-spacing: 0.02em; }

/* the region tag */
.nw-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; background: #E6F4F7; color: #0B4F5E; font-size: 12.5px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.nw-tag--asia { background: #EEF0FB; color: #2F3C8C; }
.nw-tag--world { background: #F1F3F4; color: #36434A; }
.nw-tag--event { background: #FFF3DD; color: #7A4A00; }
.nw-tag--results { background: #E7F7EE; color: #11603A; }

/* the picture: a photo, a coast map, the country, or a text card; always 16:9 so cards line up */
.nw-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0B4F5E; }
/* a beach photo's sea and break sit in its lower half: crop from the sky first */
.nw-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.nw-pic .sp-mini { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: radial-gradient(circle, rgba(178, 233, 243, 0.16) 1px, transparent 1.6px) 0 0 / 12px 12px, radial-gradient(120% 95% at 28% 18%, #0F5C6C 0%, #073B46 58%, #052A33 100%); --tone: #7FD3E3; }
.nw-pic .sp-mini__land { fill: #2A8292; stroke: rgba(205, 240, 247, 0.85); stroke-width: 1; stroke-linejoin: round; }
.nw-pic .sp-mini__halo { fill: var(--tone); opacity: 0.28; }
.nw-pic .sp-mini__pin { fill: var(--tone); stroke: rgba(4, 30, 37, 0.92); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.nw-plain { position: absolute; inset: 0; display: grid; align-content: end; gap: 4px; padding: 16px 18px; color: #FFFFFF;
    background: radial-gradient(circle, rgba(178, 233, 243, 0.14) 1px, transparent 1.6px) 0 0 / 14px 14px, radial-gradient(130% 120% at 85% 10%, #0E6B82 0%, #073B46 55%, #041F27 100%); }
.nw-plain--asia { background: radial-gradient(circle, rgba(200, 210, 255, 0.14) 1px, transparent 1.6px) 0 0 / 14px 14px, radial-gradient(130% 120% at 85% 10%, #3A4FA8 0%, #1D2A66 55%, #11183D 100%); }
.nw-plain--world { background: radial-gradient(circle, rgba(220, 230, 235, 0.14) 1px, transparent 1.6px) 0 0 / 14px 14px, radial-gradient(130% 120% at 85% 10%, #3F5A66 0%, #22333B 55%, #141F24 100%); }
.nw-plain__word { font-family: var(--ag-font-display); font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; line-height: 1; }
.nw-plain__sub { color: rgba(220, 244, 249, 0.86); font-size: 13.5px; font-weight: 700; }
.nw-plain__waves { position: absolute; right: -6%; top: 12%; width: 62%; height: auto; opacity: 0.32; stroke: #B2E9F3; fill: none; stroke-width: 2; }
.nw-plain__ph { position: absolute; top: 8%; right: 8%; height: 84%; width: auto; }
.nw-plain__ph use { fill: #2A8292; stroke: rgba(205, 240, 247, 0.8); stroke-width: 3; stroke-linejoin: round; }

/* ---- /news ---- */
.nw-top { padding: clamp(36px, 6vw, 64px) 0 0; background: radial-gradient(120% 140% at 0% 0%, #0E6B82 0%, var(--ag-deep) 45%, var(--ag-deepest) 100%); color: var(--ag-on-deep); }
.nw-top .ag-eyebrow { color: var(--ag-sky); }
.nw-top__title { margin: 6px 0 0; font-family: var(--ag-font-display); font-size: clamp(32px, 5vw, 54px); font-weight: 600; line-height: 1.05; color: #FFFFFF; text-wrap: balance; }
.nw-top__lead { max-width: 56ch; margin: 12px 0 0; font-size: clamp(15.5px, 1.3vw, 18px); }
.nw-chips { display: flex; gap: 8px; margin-top: 22px; padding-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.nw-chips::-webkit-scrollbar { display: none; }
.nw-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(178, 233, 243, 0.35); border-radius: 999px; color: #FFFFFF; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nw-chip:hover { border-color: var(--ag-sky); }
.nw-chip.is-on { background: #FFFFFF; border-color: #FFFFFF; color: var(--ag-deep); }
.nw-page { background: var(--ag-tint, #EEF7F9); }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.nw-grid--lead > .nw-card:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .nw-grid--lead > .nw-card:first-child .nw-card__link { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: none; }
    .nw-grid--lead > .nw-card:first-child .nw-pic { aspect-ratio: auto; min-height: 320px; height: 100%; }
    .nw-grid--lead > .nw-card:first-child .nw-card__body { align-content: center; padding: 28px 32px; gap: 12px; }
    .nw-grid--lead > .nw-card:first-child .nw-card__head { font-size: clamp(24px, 2.3vw, 32px); }
    .nw-grid--lead > .nw-card:first-child .nw-card__sum { -webkit-line-clamp: 5; line-clamp: 5; font-size: 16.5px; }
}
.nw-empty { display: grid; gap: 8px; justify-items: start; padding: 26px; border: 1px dashed var(--ag-arc); border-radius: 20px; background: #FFFFFF; }
.nw-empty h2 { margin: 0; font-family: var(--ag-font-display); font-size: 20px; font-weight: 600; color: var(--ag-ink); }
.nw-empty p { margin: 0; color: var(--ag-text); }
.nw-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.nw-pager .ag-btn { min-height: 44px; }

/* ---- the article ---- */
.nw-art { background: #FFFFFF; }
.nw-art__wrap { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) 16px clamp(36px, 6vw, 64px); }
.nw-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ag-cyan-ink); font-weight: 800; text-decoration: none; }
.nw-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; color: var(--ag-muted); font-size: 14px; }
.nw-art__title { margin: 12px 0 0; color: var(--ag-ink); font-family: var(--ag-font-display); font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere; }
.nw-art__sum { margin: 14px 0 0; color: var(--ag-text); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; }
.nw-art__fig { margin: 24px 0 0; }
.nw-art__fig .nw-pic { border-radius: 18px; }
.nw-art__credit { margin-top: 8px; color: var(--ag-muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.nw-art__credit a { color: inherit; }
.nw-art__body { margin-top: 26px; }
.nw-art__body p { margin: 0 0 1.05em; color: var(--ag-ink); font-size: clamp(17px, 1.4vw, 18.5px); line-height: 1.65; overflow-wrap: anywhere; }
.nw-box { display: grid; gap: 10px; margin-top: 26px; padding: 18px; border: 1px solid var(--ag-line); border-radius: 18px; background: var(--ag-tint, #EEF7F9); }
.nw-box h2 { margin: 0; color: var(--ag-ink); font-family: var(--ag-font-display); font-size: 19px; font-weight: 600; }
.nw-box p { margin: 0; color: var(--ag-text); }
.nw-event { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.nw-event__name { display: grid; gap: 2px; min-width: 0; }
.nw-event__name b { color: var(--ag-ink); font-size: 17px; overflow-wrap: anywhere; }
.nw-event__name small { color: var(--ag-muted); font-size: 14px; }
.nw-event__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-event__acts .ag-btn { min-height: 44px; }
.nw-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nw-sources li { display: grid; gap: 2px; min-width: 0; }
.nw-sources a { color: var(--ag-cyan-ink); font-weight: 700; overflow-wrap: anywhere; }
.nw-sources small { color: var(--ag-muted); font-size: 13px; }
.nw-ai { margin: 0; color: var(--ag-muted); font-size: 13.5px; }
.nw-ai--team { margin-top: 18px; font-weight: 700; }
.nw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.nw-acts .ag-share-row { margin: 0; }
.nw-report summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ag-muted); font-weight: 700; cursor: pointer; list-style: none; }
.nw-report summary::-webkit-details-marker { display: none; }
.nw-report form { display: grid; gap: 10px; margin-top: 8px; padding: 14px; border: 1px solid var(--ag-line); border-radius: 14px; background: #FFFFFF; }
.nw-report textarea { width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid var(--ag-line); border-radius: 12px; font: inherit; }
.nw-report button { justify-self: start; min-height: 44px; }
.nw-ok { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: #E7F7EE; color: #11603A; font-weight: 700; }
.nw-draft { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #FFF3DD; color: #7A4A00; font-weight: 700; font-size: 14px; }
.nw-more { margin-top: 30px; }
.nw-more h2 { margin: 0 0 12px; color: var(--ag-ink); font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; }

/* ---- shakas, comments and share (the Community's own, community.css) */
.nw-art__acts { flex: 1 1 100%; margin: 0; padding-top: 0; border-top: 0; flex-wrap: wrap; }
.nw-comments { display: grid; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ag-line); scroll-margin-top: calc(var(--ag-header-h, 88px) + 16px); }
.nw-comments h2 { margin: 0; color: var(--ag-ink); font-family: var(--ag-font-display); font-size: 21px; font-weight: 600; }
.nw-comments__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.nw-comment { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.nw-comment .cm-face { width: 32px; height: 32px; font-size: 12px; }
.nw-comment__body { display: grid; gap: 2px; min-width: 0; }
.nw-comment__body p { margin: 0; }
.nw-comment__body a { color: var(--ag-ink); font-weight: 800; text-decoration: none; }
.nw-comment__body time { color: var(--ag-muted); font-size: 13px; }
.nw-comment__text { color: var(--ag-ink); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.nw-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.nw-comment-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ag-line); border-radius: 14px; font: inherit; resize: vertical; }
.nw-comment-form .ag-btn { min-height: 48px; }
/* the card's actions in the feed: under the card's link, the posts' own row */
.nw-card .cm-post__acts { margin: 0; padding: 4px 8px 6px; border-top: 1px solid var(--ag-line); }

/* ---- worst cases (owner, 2026-11-05: "premium no matter what the news is") */
/* a headline is three lines at most on a card (four on the wide lead), the summary three, then "..." */
.nw-card__head { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .nw-grid--lead > .nw-card:first-child .nw-card__head { -webkit-line-clamp: 4; line-clamp: 4; } }
/* a long publisher or event name stays on one line beside Read */
.nw-card__foot { flex-wrap: nowrap; }
.nw-card__foot > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-card__foot > .nw-card__read { flex: 0 0 auto; }
.nw-card__meta { min-width: 0; }
/* the fallback behind a photo: hidden until the photo's link fails */
.nw-pic__alt { display: none; }
.nw-pic__alt.is-on, .nw-pic.is-broken .nw-pic__alt { display: contents; }
.nw-art__fig:has(.nw-pic.is-broken) .nw-art__credit { display: none; }
/* a small picture (under 480 px wide) is shown at its own size on the brand's ground, never stretched blurry */
.nw-pic.is-small { background: radial-gradient(circle, rgba(178, 233, 243, 0.14) 1px, transparent 1.6px) 0 0 / 14px 14px, radial-gradient(130% 120% at 85% 10%, #0E6B82 0%, #073B46 55%, #041F27 100%); display: grid; place-items: center; }
.nw-pic.is-small img { width: auto; height: auto; max-width: 70%; max-height: 80%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.nw-art__title { overflow-wrap: anywhere; }
/* the card's text column never grows past the card (a one-line publisher or event name would widen it) */
.nw-card__body { grid-template-columns: minmax(0, 1fr); }
.nw-card__body > * { min-width: 0; }
/* big counts on a phone: Share is its icon (the word stays for screen readers), like member posts under 360 px */
@media (max-width: 440px) {
    .nw-card .cm-post__acts .cm-act, .nw-card .cm-post__acts .cm-shaka { gap: 5px; padding: 6px 8px; }
    .nw-card .cm-act__words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
