/* News shares the corporate header, typography, language menu, and footer. */
.thecast-homepage[data-corporate-page="news"] { color: #111; }
[data-corporate-page="news"] main { min-height: 70vh; padding-bottom: 140px; }
.news-list { width: min(1440px, calc(100% - 96px)); margin: 0 auto; }
.news-heading { padding-top: 110px; text-align: center; }
.news-heading h1 { margin: 0; font-size: clamp(42px, 4.5vw, 56px); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; }
.news-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 52px; }
.news-categories a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; border-radius: 100px; background: #f5f5f5; color: #171717; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.news-categories a:hover { background: #e9e9e9; }
.news-categories a[aria-current="page"] { color: #fff; background: #080808; }
.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 136px 0 24px; }
.news-count { margin: 0; color: #999; font-size: 18px; line-height: 1.5; letter-spacing: -.03em; }
.news-count strong { color: #111; font-weight: 600; }
.news-search { display: flex; align-items: center; width: min(400px, 45%); min-height: 48px; border-radius: 100px; background: #f3f3f3; }
.news-search input[type="search"] { width: 100%; min-width: 0; min-height: 48px; border: 0; padding: 12px 0 12px 24px; background: transparent; color: #111; font: inherit; font-size: 15px; outline: none; }
.news-search input::placeholder { color: #9c9c9c; }
.news-search button { display: grid; place-items: center; flex: 0 0 52px; min-height: 48px; border: 0; border-radius: 100px; background: transparent; color: #111; cursor: pointer; }
.news-search svg { width: 21px; height: 21px; }
.news-search:focus-within { outline: 2px solid #111; outline-offset: 3px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.news-grid > li { min-width: 0; border-top: 1px solid #e9e9e9; }
.news-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 24px; height: 100%; padding: 24px 0; color: inherit; text-decoration: none; }
.news-card-image { align-self: start; aspect-ratio: 1.48; overflow: hidden; border-radius: 10px; background: #f1f1f1; }
.news-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card-image img { transform: scale(1.035); }
.news-card-image--brand { display: grid; place-items: center; background: #f3f4f0; }
.news-card-image--brand img { width: 68%; height: auto; object-fit: contain; }
.news-card-copy { display: flex; min-width: 0; flex-direction: column; padding: 10px 0; }
.news-card h2 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0; font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.news-card time { display: block; margin-top: 10px; color: #999; font-size: 14px; line-height: 1.5; }
.news-card-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; }
.news-tag { display: inline-block; padding: 6px 9px; border-radius: 3px; background: #f3f3f3; color: #666; font-size: 14px; font-weight: 600; line-height: 18px; }
.news-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 72px; }
.news-pagination a, .news-pagination > span { display: grid; place-items: center; min-width: 40px; min-height: 40px; color: #999; font-size: 15px; text-decoration: none; }
.news-pagination a[aria-current="page"] { color: #111; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.news-pagination .news-pagination-arrow { font-size: 23px; color: #111; }
.news-pagination [aria-disabled="true"] { opacity: .25; }
.news-empty { padding: 100px 24px; border-top: 1px solid #e9e9e9; text-align: center; }
.news-empty h2 { margin: 0 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.news-empty p { color: #888; line-height: 1.7; }
.news-empty a { display: inline-block; margin-top: 20px; color: #111; text-underline-offset: 5px; }
[data-news-detail] main { padding-top: 108px; padding-bottom: 200px; }
.news-article { width: 720px; max-width: calc(100% - 80px); margin: 0 auto; }
.news-article-header { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-top: 120px; }
.news-article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; color: #333; font-size: 14px; font-weight: 600; line-height: 20px; }
.news-article-meta time { color: #999; }
.news-article h1 { width: 100%; margin: 0; color: #000; font-size: 54px; font-weight: 700; line-height: 72px; letter-spacing: 0; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.news-article h1 .news-keep-word { white-space: nowrap; }
.news-share-wrap { position: relative; max-width: 100%; }
.news-share { display: flex; justify-content: center; gap: 8px; }
.news-share button, .news-share a { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f2; color: #000; cursor: pointer; transition: background-color .3s; }
.news-share button:hover, .news-share a:hover { background: #e5e5e5; }
.news-share svg { display: block; width: 22px; height: 22px; }
.news-share-status { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 1; width: max-content; max-width: min(320px, calc(100vw - 40px)); margin: 0; padding: 8px 12px; border-radius: 4px; background: #111; color: #fff; font-size: 12px; line-height: 1.5; text-align: center; transform: translateX(-50%); }
.news-share-fallback { margin-top: 20px; font-size: 13px; line-height: 1.5; color: #666; }
.news-share-fallback input { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font: inherit; }
.news-share-wrap [hidden] { display: none; }
.news-article-content { display: flex; flex-direction: column; gap: 64px; margin-top: 64px; }
.news-article-gallery { position: relative; left: 50%; width: min(1056px, calc(100vw - 80px)); transform: translateX(-50%); }
.news-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 4px; cursor: grab; user-select: none; -webkit-user-select: none; }
.news-gallery-track:focus { outline: none; }
.news-gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.news-gallery-track.is-animating, .news-gallery-track.is-resetting { scroll-snap-type: none; }
.news-gallery-track::-webkit-scrollbar { display: none; }
.news-article-media { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.news-article-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f6f6f6; -webkit-user-drag: none; }
.news-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.news-gallery-controls[hidden] { display: none; }
.news-gallery-arrows { display: flex; flex: 0 0 auto; gap: 8px; }
.news-gallery-arrow { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #000; border-radius: 50%; background: #fff; color: #000; cursor: pointer; }
.news-gallery-arrow:hover { border-color: #000; background: #f7f7f7; color: #000; }
.news-gallery-arrow svg { width: 18px; height: 18px; }
.news-gallery-pagination { display: flex; order: -1; justify-content: center; align-items: center; gap: 16px; height: 44px; }
.news-gallery-dots { display: flex; }
.news-gallery-dots button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.news-gallery-dots button::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #d6d6d6; }
.news-gallery-dots button[aria-current="true"]::after { background: #111; }
.news-gallery-count { color: #777; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.news-body { width: 100%; color: #000; font-size: 18px; font-weight: 500; line-height: 32px; letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }
.news-body p { margin: 0; }
.news-body p + p { margin-top: 32px; }
.news-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.news-article-bottom { display: flex; flex-direction: column; align-items: center; gap: 80px; margin-top: 80px; }
.news-article-tags { width: 100%; }
.news-article-tags a { text-decoration: none; }
.news-back { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 56px; padding: 16px 24px; border-radius: 28px; background: #000; color: #fff; font-size: 16px; font-weight: 600; line-height: 24px; text-decoration: none; transition: background-color .3s; }
.news-back:hover { background: #505050; }
@media (min-width: 1025px) and (max-width: 1280px) { .news-article { width: 600px; } }
@media (max-width: 1024px) {
    [data-news-detail] main { padding-top: 54px; padding-bottom: 80px; }
    .news-article { width: calc(100% - 40px); max-width: none; }
    .news-article-header { padding-top: 64px; }
    .news-article h1 { font-size: 32px; line-height: 42px; }
    .news-article-gallery { width: 100%; }
    .news-article-content { gap: 40px; }
}
.news-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.news-list a:focus-visible, .news-article a:focus-visible, .news-share button:focus-visible, .news-search button:focus-visible, .news-gallery-controls button:focus-visible { outline: 2px solid #111; outline-offset: 5px; }
@media (min-width: 1600px) { .news-card-image { aspect-ratio: 1.48; } }
@media (max-width: 1100px) { .news-card { gap: 18px; } .news-card h2 { font-size: 18px; } .news-card-copy { padding: 0; } .news-card-labels { padding-top: 16px; } }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } .news-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; } .news-card h2 { font-size: 21px; } }
@media (max-width: 600px) {
    [data-corporate-page="news"] main { padding-bottom: 80px; }
    .news-list { width: calc(100% - 40px); }
    .news-heading { padding-top: 56px; }
    .news-heading h1 { font-size: 42px; }
    .news-categories { gap: 8px; margin-top: 32px; }
    .news-categories a { min-height: 44px; padding: 12px 17px; font-size: 13px; }
    .news-toolbar { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 64px; }
    .news-count { font-size: 16px; }
    .news-search { width: 100%; }
    .news-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; padding: 20px 0; }
    .news-card-image { aspect-ratio: 1.1; border-radius: 6px; }
    .news-card h2 { font-size: 17px; line-height: 1.45; }
    .news-card time { margin-top: 8px; font-size: 12px; }
    .news-card-labels { padding-top: 12px; }
    .news-tag { font-size: 12px; line-height: 14px; padding: 4px 6px; }
    .news-pagination { gap: 2px; margin-top: 44px; }
    .news-pagination a, .news-pagination > span { min-width: 32px; min-height: 40px; }
    .news-body { font-size: 16px; line-height: 28px; }
    .news-empty { padding: 64px 12px; }
    .news-empty h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .news-card-image img, .news-categories a, .news-share button, .news-share a, .news-back { transition: none; } }
