/* 鷹傳媒: shared identity and an advertising layout that follows available space. */
.news-site { --masthead-height: 96px; --navigation-height: 48px; --brand-height: calc(var(--masthead-height) - 8px); --header-height: calc(var(--masthead-height) + var(--navigation-height)); --ad-sticky-top: calc(var(--header-height) + 20px); --ad-sticky-clearance: calc(var(--header-height) + 40px); --ink: #111b2c; --black: #111b2c; --phone-ink: #111b2c; --nav-blue: #8b702a; --news-blue: #b79b50; --news-yellow: #b79b50; --focus: #92752c; --brand-gold: #b79b50; --gold-soft: #f6f1e6; color: var(--ink); }
.brand .brand-wordmark { display: block; width: 150px; height: 50px; object-fit: contain; }
.news-site .site-header { background: #fff; color: var(--ink); border-top: 0; }
.news-site .news-masthead, .news-site .news-nav-inner, .news-site .complete-menu, .news-site .site-search { width: min(100%, 1600px); padding-inline: 24px; }
.news-site .news-masthead { height: var(--masthead-height); gap: 24px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
/* Every media logo fits this shared height; artwork never sets masthead height. */
.news-site .news-masthead .brand { height: var(--brand-height); min-width: 0; max-width: 100%; grid-column: 2; grid-row: 1; justify-self: center; }
.news-site .masthead-partner-space { grid-column: 1; grid-row: 1; display: flex; align-items: center; width: 100%; min-width: 0; }
.news-site .news-masthead .desktop-search, .news-site .news-masthead .search-toggle { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
.news-site .news-masthead .brand-wordmark { width: 240px; max-width: 100%; height: var(--brand-height); }
.news-site .masthead-placements { --partner-item-min: 120px; --partner-item-max: 180px; max-width: 744px; }
.news-site .site-header .search-toggle { color: var(--ink); }
.news-site .desktop-search::before { background: #f2f2ef; }
.news-site .news-nav-row { color: var(--ink); background: white; border-top: 1px solid #e7e7e3; border-bottom: 0; box-shadow: inset 0 -4px 0 var(--ink); }
.news-site .news-nav-inner, .news-site .category-navigation { height: 47px; }
.news-site .news-nav-inner > .icon-button { color: var(--ink); }
.news-site .category-navigation a { height: 47px; min-height: 44px; font-weight: 650; }
.news-site .category-navigation a[aria-current] { color: var(--nav-blue); font-weight: 750; }
.news-site .category-navigation a[aria-current]::after { bottom: 0; left: 0; right: 0; height: 4px; border-radius: 0; background: var(--brand-gold); }
.news-site #more-toggle[data-category-current]::after { background: var(--brand-gold); }
.news-site .breaking-strip { background: #efefec; color: var(--ink); border-radius: 0; min-height: 56px; height: auto; padding-block: 8px; }
.news-site .breaking-strip a { white-space: normal; line-height: 1.5; }
.news-site .breaking-badge { background: #981522; }
.news-site .phone-investigations .phone-section-title::before { background: var(--brand-gold); }
.news-site .phone-investigations .category-label { color: var(--nav-blue); }
.news-site #complete-menu-links a[aria-current] { background: var(--gold-soft); }
.news-site .phone-lead .image-frame { border-radius: 10px; }
.news-site .site-footer { background: #f7f7f4; }
.news-site .phone-sponsor-strip, .news-site .phone-report-brief { background: #f3f2ef; }
.news-site .site-header { height: var(--header-height); }
.news-site .footer-brand .brand-wordmark { width: 240px; height: 88px; }
.news-site .masthead-placements .compact-ad { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.news-site .compact-ad-link.phone-partner-link { display: grid; grid-template-rows: 26px 16px; justify-items: center; gap: 2px; width: 100%; height: 44px; padding-right: 32px; }
.news-site .phone-partner-link .compact-ad-frame { height: 26px; }
.news-site .phone-partner-disclosure { display: block; font-size: .75rem; line-height: 16px; color: #626b75; }
.news-site .masthead-placements a:focus-visible { outline-color: var(--focus); }
.admin-header .brand-wordmark { width: 180px; height: 70px; }
.dismissible-ad { position: relative; }
.ad-dismiss { position: absolute; top: 0; right: 0; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: #263847; cursor: pointer; }
.ad-dismiss::before { content: ''; width: 28px; height: 28px; border: 1px solid #dfe5eb; background: #fffffff2; border-radius: 50%; grid-area: 1/1; box-shadow: 0 1px 4px #17232f12; }
.ad-dismiss svg { width: 16px; height: 16px; grid-area: 1/1; position: relative; pointer-events: none; }
.ad-dismiss:hover::before { background: #edf2f7; }
.ad-dismiss:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.compact-ad .ad-dismiss::before { width: 20px; height: 20px; border: 0; box-shadow: none; }
.compact-ad .ad-dismiss svg { width: 13px; height: 13px; }
.news-site .phone-sponsor-strip { position: relative; }
.news-site .phone-sponsor-message-link { padding-right: 48px; }
.news-site .sponsor-card-meta { padding-right: 30px; }
.news-site .ad-label, .news-site .phone-ad-heading { padding-right: 44px; font-size: .875rem; text-align: left; line-height: 20px; min-height: 24px; color: #626b75; }
.news-site .top-ad-wrap { height: auto; padding-block: 20px 24px; }
.news-site .top-ad-wrap .ad-label, .news-site .homepage-sidebar-ad .ad-label { position: static; background: none; padding: 0 44px 4px 0; margin: 0; font-size: .875rem; }
.news-site .top-ad-wrap .ad-creative, .news-site .feed-ad-wrap .ad-creative, .news-site .homepage-sidebar-ad .ad-creative { aspect-ratio: var(--ad-current-ratio); }
.news-site .news-layout { padding-top: 20px; }
.news-site .sidebar-ad-stack { display: grid; gap: 24px; align-content: start; }
.news-site .sidebar-ad-stack:empty { display: none; }
.news-site .sidebar-ad-stack .secondary-sidebar-ad { margin-top: 0; }
.news-site .article-grid { grid-template-columns: minmax(0, 760px) 300px; gap: 48px; justify-content: center; align-items: start; }
.news-site .article-reading-column { min-width: 0; }
.news-site .article-reading-column .article-title { font-weight: 750; font-size: 38px; line-height: 1.4; }
.news-site .article-cover { margin-block: 24px 32px; }
.news-site .article-cover .image-frame { aspect-ratio: 16/9; }
.news-site .article-sidebar { display: block; align-self: stretch; }
.news-site .article-sidebar .sidebar-ad-stack.is-sticky { position: sticky; top: var(--ad-sticky-top); }
.news-site .category-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.news-site .category-main { min-width: 0; width: 100%; }
.news-site .category-main .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-site .category-sidebar { padding-top: 40px; align-self: stretch; }
.news-site .category-sidebar .sidebar-ad-stack.is-sticky { position: sticky; top: var(--ad-sticky-top); }
.news-site .category-layout:not(:has(.category-sidebar [data-ad-slot])) { grid-template-columns: minmax(0,1fr); }
.news-site .category-sidebar:not(:has([data-ad-slot])), .news-site .article-sidebar:not(:has([data-ad-slot])) { display: none; }
.news-site .article-grid:not(:has(.article-sidebar [data-ad-slot])) { grid-template-columns: minmax(0,800px); justify-content: center; }
.docked-ad-host { position: fixed; z-index: 35; }
.docked-ad-host .ad-slot, .docked-ad-host .phone-ad { margin: 0; width: 100%; background: #fff; padding: 4px; border: 1px solid #dfe5eb; box-shadow: 0 5px 24px #17232f24; }
.docked-ad-host .ad-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#floating-ad-host { right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); width: min(260px, 30dvh); }
#floating-ad-host:has(.ad-video-slot) { width: min(320px, 36vw, 48dvh); }
.news-site .site-top-strip { padding-block: 10px 12px; }
.news-site .site-top-strip .ad-slot, .news-site .site-top-strip .phone-ad { padding: 0; margin: 0 auto; border: 0; background: transparent; max-width: 970px; }
.news-site .site-top-strip .ad-label, .news-site .site-top-strip .phone-ad-heading { margin: 0 0 4px; width: 100%; }
.news-site .site-top-strip .ad-creative { aspect-ratio: 970 / 90; background: #f3f6fa; }
.news-site .site-top-strip .ad-dismiss { top: 0; }
.ad-video-player { width: 100%; min-width: 0; background: #f3f6fa; }
.ad-video-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #f3f6fa; }
.ad-video-controls { display: flex; align-items: center; min-height: 44px; gap: 0; background: #fff; border-top: 1px solid #e6ebf1; }
.ad-video-controls button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; color: #2058a2; cursor: pointer; }
.ad-video-controls button svg { width: 22px; height: 22px; }
.ad-video-controls a { display: grid; place-items: center; min-height: 44px; margin-left: auto; padding-inline: 8px; color: #2058a2; font-size: 12px; white-space: nowrap; text-decoration: none; }
.ad-video-controls :is(button,a):hover { background: #edf3fa; }
.ad-video-controls :is(button,a):focus-visible { outline: 2px solid #2058a2; outline-offset: -3px; }
.news-site .ad-video-controls :is(button,a) { color: var(--ink); }
.news-site .ad-video-controls :is(button,a):hover { background: var(--gold-soft); }
.news-site .ad-video-controls :is(button,a):focus-visible { outline-color: var(--focus); }
.admin-ad-preview.preview-video { display: block; padding: 0; overflow: hidden; }
.cms-media-item video { width: 100%; height: 90px; object-fit: contain; background: #f3f6fa; }
#left-rail-ad-host, #right-rail-ad-host { top: var(--ad-sticky-top); width: 160px; max-height: calc(100dvh - var(--ad-sticky-clearance)); overflow-y: auto; scrollbar-width: thin; }
#left-rail-ad-host { left: max(16px, calc((100vw - 1640px)/2)); }
#right-rail-ad-host { right: max(16px, calc((100vw - 1640px)/2)); }
@media (max-width: 1679px) { #left-rail-ad-host, #right-rail-ad-host { display: none; } }
@media (max-width: 1024px) {
  .news-site .news-masthead { gap: 16px; }
  .news-site .article-grid, .news-site .category-layout { display: block; }
  .news-site .article-sidebar .sidebar-ad-stack, .news-site .category-sidebar .sidebar-ad-stack { position: static !important; grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 640px; margin: 32px auto 0; }
  .news-site .category-sidebar { padding-top: 0; }
  .news-site .article-sidebar .sidebar-ad-stack, .news-site .category-sidebar .sidebar-ad-stack { max-height: none; overflow: visible; }
}
@media (min-width: 640px) {
  .news-site .masthead-placements, .news-site .masthead-placements .compact-ad { height: 64px; }
  .news-site .masthead-placements .compact-ad-link.phone-partner-link { height: 64px; grid-template-rows: 38px 18px; gap: 4px; align-content: center; }
  .news-site .phone-partner-link .compact-ad-frame { height: 38px; }
  .news-site .phone-partner-disclosure { line-height: 18px; }
}
@media (max-width: 639px) {
  .news-site { --masthead-height: 80px; }
  .news-site .news-masthead { padding-inline: 12px; gap: 4px; grid-template-columns: 44px minmax(0,1fr) 44px; }
  .news-site .news-nav-inner, .news-site .complete-menu, .news-site .site-search { padding-inline: 20px; }
  .news-site .news-nav-row { color: var(--ink); }
  .news-site .news-nav-inner { padding-inline: 8px; }
  .news-site .category-navigation a { flex: 1; padding-inline: 8px; font-size: 1rem; }
  .news-site .site-header #more-toggle { font-size: 1rem; }
  .news-site .news-masthead .brand-wordmark { width: clamp(152px, 46vw, 184px); }
  .news-site .masthead-placements { --partner-item-min: 88px; --partner-item-max: 132px; }
  .news-site .phone-header-partners { display: flex; justify-content: center; padding-block: 2px; min-height: 48px; border-bottom: 1px solid #eeeae2; }
  .news-site .phone-header-partners .masthead-placements { --partner-item-min: 180px; --partner-item-max: 220px; max-width: 100%; justify-content: center; }
  .news-site .phone-header-partners .masthead-placements.is-carousel { max-width: 220px; }
  .news-site .phone-header-partners .phone-partner-link { display: flex; align-items: center; gap: 10px; padding-right: 44px; }
  .news-site .phone-header-partners .compact-ad-frame { flex: 1; height: 32px; }
  .news-site .phone-header-partners .phone-partner-disclosure { flex: 0 0 auto; }
  .admin-header .brand-wordmark { width: 148px; height: 58px; }
  .news-site .article-reading-column .article-title { font-size: 1.75rem; line-height: 1.5; }
  .news-site .article-sidebar .sidebar-ad-stack { display: grid; grid-template-columns: minmax(0,1fr); max-width: 300px; }
  .news-site .category-layout { padding-inline: 20px; }
  .news-site .category-main .listing-grid { display: block; }
  #floating-ad-host { width: min(160px, 43vw, 28dvh); bottom: max(12px, env(safe-area-inset-bottom, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
  #floating-ad-host:has(.ad-video-slot) { width: min(200px, 48vw, 38dvh); }
  .news-site .site-top-strip { padding: 8px 20px 10px; }
  .news-site .site-top-strip .phone-ad-creative { width: 100%; max-width: 320px; aspect-ratio: 320 / 60; }
  .news-site .site-top-strip .phone-ad-heading { justify-content: flex-start; gap: 6px; padding-right: 44px; font-size: .75rem; }
  .news-site .site-top-strip .phone-ad-heading span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .docked-ad-host .phone-ad-heading { margin: 0; padding: 0 40px 3px 2px; font-size: .75rem; }
  .docked-ad-host .phone-ad-heading span:last-child { display: none; }
  .docked-ad-host .phone-ad-creative { width: 100%; }
}
@media (max-width: 639px) and (max-height: 440px) {
  .news-site { --masthead-height: 56px; }
}

/* Compact logo placements: up to eight brands on each side of the centered mark. */
.news-site .masthead-partner-space { grid-column: 1 / -1; display: block; }
.news-site .news-masthead .brand { position: relative; z-index: 2; }
.news-site .masthead-placements { display: grid; width: 100%; max-width: none; gap: 4px 8px; align-content: center; overflow: clip; --partner-item-min: 104px; }
.news-site .masthead-placements .compact-ad { width: 100%; max-width: none; height: 44px; }
.news-site .masthead-placements .compact-ad-link.phone-partner-link { display: grid; grid-template-rows: 26px 14px; align-content: center; justify-items: center; gap: 2px; height: 44px; padding-right: 44px; }
.news-site .masthead-placements .phone-partner-link .compact-ad-frame { display: block; width: 100%; height: 26px; }
.news-site .masthead-placements .phone-partner-disclosure { font-size: 12px; line-height: 14px; }
.news-site .masthead-placements .compact-ad.ad-not-closable .phone-partner-link { padding-right: 0; }
.news-site .masthead-placements .compact-ad .ad-dismiss { width: 44px; height: 44px; }
.news-site .masthead-placements.is-paged .marquee-entering { z-index: 2; animation: header-logo-in 300ms ease both; transform: none; }
.news-site .masthead-placements.is-paged .marquee-leaving { z-index: 1; animation: header-logo-out 300ms ease both; transform: none; }
.news-site .ad-not-closable .ad-label, .news-site .ad-not-closable .phone-ad-heading, .news-site .ad-not-closable .sponsor-card-meta { padding-right: 0; }
.news-site .ad-not-closable .phone-sponsor-message-link { padding-right: 20px; }
.popup-auto-close { position: absolute; bottom: 10px; right: 10px; padding: 5px 8px; border-radius: 3px; font-size: 12px; background: #fffffff2; color: #111b2c; pointer-events: none; }
@media (max-width: 639px) {
  .news-site .phone-header-partners .masthead-placements { max-width: none; --partner-item-min: 112px; }
  .news-site #phone-anchor-ad.ad-not-closable { grid-template-columns: auto minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .news-site .masthead-placements.is-paged .marquee-entering, .news-site .masthead-placements.is-paged .marquee-leaving { animation: none; }
}

@keyframes header-logo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes header-logo-out { from { opacity: 1; } to { opacity: 0; } }
.news-site .brand-name { display:block; font-size:clamp(20px,2.5vw,32px); font-weight:750; letter-spacing:.06em; color:#182d46; line-height:1.3; white-space:nowrap; text-align:center; }
.news-site .brand-english { display:block; margin-top:5px; font-size:clamp(9px,1vw,12px); letter-spacing:.16em; color:#91712e; }

/* ZS retains its stacked artwork and accent colors within the shared masthead. */
.news-site[data-site="zs"] { --nav-blue: #b40e36; --news-blue: #bd143e; --news-yellow: #bd143e; --focus: #b40e36; --brand-gold: #bd143e; --gold-soft: #fff0f3; }
.news-site[data-site="zs"] .footer-brand .brand-wordmark { width: 156px; height: 140px; }
.news-site[data-site="zs"] .brand-english { color: #b40e36; }
/* Crawlable archive controls shared by the initial HTML and enhanced reader. */
.story-pagination { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; margin:32px 0; font-size:14px; }
.story-pagination a { display:inline-flex; min-height:44px; align-items:center; padding:8px 16px; border:1px solid #d7d7d7; border-radius:6px; color:inherit; text-decoration:none; }
.story-pagination a:hover,.story-pagination a:focus-visible { border-color:currentColor; background:#f7f7f7; }
.story-pagination [aria-disabled="true"] { color:#999; padding:8px; }

/* Flowing image ads use the artwork's own height; special ad formats keep their frames. */
.news-site .ad-flow-image { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; padding: 0; border: 0; background: transparent; }
.news-site .ad-flow-image.phone-ad { width: min(100%, var(--phone-ad-width)); margin-inline: auto; padding: 0; border: 0; background: transparent; }
.news-site .ad-flow-image[data-ad-slot="sidebar"], .news-site .ad-flow-image[data-ad-slot="sidebar_secondary"] { width: 300px; max-width: 100%; }
.news-site .ad-flow-image > :is(.ad-label, .phone-ad-heading) { grid-area: 1 / 1; width: 100%; margin: 0 0 4px; padding: 0; min-height: 20px; line-height: 20px; }
.news-site .ad-flow-image.inventory-slot > .ad-creative, .news-site .ad-flow-image.phone-ad > .phone-ad-creative { grid-area: 2 / 1; position: relative; display: block; width: 100%; max-width: none; height: auto; min-height: 0; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.news-site .ad-flow-image > :is(.ad-creative, .phone-ad-creative) > img { position: static; display: block; inset: auto; width: 100%; height: auto; max-height: none; object-fit: contain; }
.news-site .ad-flow-image > .ad-dismiss { grid-area: 2 / 1; top: 0; right: 0; }
/* Fit homepage artwork as one complete image, with the close control on its edge. */
.news-site .ad-flow-image.inventory-slot.ad-home-banner-image { width: min(100%, var(--ad-current-width), calc(420px * var(--ad-image-ratio, 1))); margin-inline: auto; }
.news-site .ad-flow-image.phone-ad.ad-home-banner-image { width: min(100%, var(--phone-ad-width), calc(420px * var(--ad-image-ratio, 1))); margin-inline: auto; }
