:root {
  color-scheme: light;
  --primary: #b5121b;
  --secondary: #12355b;
  --accent: #f2b705;
  --ink: #17191f;
  --muted: #626a76;
  --line: #e4e7ec;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --success: #0f7a55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.svg-sprite { display: none; }
.skip-link { position: absolute; left: -999px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 12px; }

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .25s ease, visibility .25s ease;
}
.loading-screen.is-hidden { opacity: 0; visibility: hidden; }
.loading-screen span {
  width: 38px;
  height: 38px;
  border: 4px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.top-strip { background: var(--secondary); color: #fff; font-size: 14px; }
.top-strip-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 38px; gap: 12px; }
.ticker-label { background: var(--primary); padding: 5px 10px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.ticker-track { overflow: hidden; white-space: nowrap; }
.ticker-track span { display: inline-block; animation: ticker 24s linear infinite; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.clock { color: #dce6f4; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--primary); color: #fff; font-weight: 800; border-radius: 6px; }
.brand-text { color: var(--primary); font-size: 28px; font-weight: 900; letter-spacing: 0; line-height: 1; }
.header-search { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; width: min(420px, 45vw); background: #fff; }
.header-search input { flex: 1; border: 0; padding: 10px 12px; min-width: 0; }
.header-search button, .menu-toggle { border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; width: 44px; cursor: pointer; }
.header-search svg, .menu-toggle svg, .back-top svg { width: 21px; height: 21px; fill: currentColor; }
.menu-toggle { display: none; border-radius: 6px; }
.main-nav { background: #fff; border-top: 1px solid var(--line); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; }
.nav-inner a { padding: 12px 14px; font-weight: 700; color: #303844; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-inner a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.alerts { margin-top: 18px; }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 10px; background: var(--soft); border: 1px solid var(--line); }
.alert-success { background: #eefaf5; border-color: #bdebd7; color: #0f5f44; }
.alert-danger { background: #fff0f0; border-color: #f2b5b5; color: #9f1b1b; }
.alert-warning { background: #fff8df; border-color: #efd376; color: #7a5a00; }

.home-lead { padding: 24px 0 12px; }
.ad-slot { min-height: 86px; border: 1px dashed #b8c0cc; background: #f8fafc; color: #788292; display: grid; place-items: center; border-radius: 6px; margin-bottom: 20px; font-weight: 700; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, .8fr); gap: 22px; align-items: stretch; }
.hero-story, .news-card, .lead-side, .newsletter-panel, .contact-panel, .contact-form, .empty-state { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.hero-story { height: 100%; overflow: hidden; position: relative; }
.hero-story a { display: block; height: 100%; position: relative; color: #fff; min-height: 440px; }
.hero-story img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-story a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.78)); }
.hero-story h1, .hero-story p, .hero-story .category-badge { position: relative; z-index: 2; margin-left: 26px; margin-right: 26px; }
.hero-story .category-badge { top: 260px; }
.hero-story h1 { margin-top: 270px; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; max-width: 760px; }
.hero-story p { font-size: 18px; max-width: 700px; color: #eef3f8; }
.hero-empty { min-height: 440px; display: grid; place-items: center; text-align: center; background: #f7f9fc; padding: 32px; }
.lead-side { padding: 16px; }
.lead-side h2, .section-title h2, .newsletter-panel h2 { margin: 0; font-size: 22px; }
.mini-story { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-story:first-of-type { border-top: 0; }
.mini-story img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.mini-story span { font-size: 12px; color: var(--primary); font-weight: 800; text-transform: uppercase; }
.mini-story strong { display: block; line-height: 1.28; }

.section-block, .split-section { padding: 22px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.section-title h2 { color: var(--secondary); }
.section-title a { color: var(--primary); font-weight: 800; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18, 53, 91, .12); }
.news-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--soft); }
.news-card a { display: block; padding-bottom: 12px; }
.news-card h3 { font-size: 18px; line-height: 1.25; margin: 10px 12px 6px; }
.news-card p { color: var(--muted); margin: 0 12px 8px; font-size: 14px; }
.news-card time { display: block; color: #7b8492; margin: 0 12px; font-size: 13px; }
.category-badge { display: inline-block; background: var(--primary); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.news-card .category-badge { margin: 12px 12px 0; }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 22px; }
.rank-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rank-list a { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.rank-list a:last-child { border-bottom: 0; }
.rank-list span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--secondary); color: #fff; border-radius: 50%; font-weight: 800; }
.newsletter-panel { padding: 22px; align-self: start; background: #f8fafc; }
.newsletter-panel p { color: var(--muted); }
.newsletter-panel input, .newsletter-panel button, .contact-form input, .contact-form textarea, .search-page-form input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; margin-bottom: 10px; }
.newsletter-panel button, .contact-form button, .search-page-form button, .button-link { background: var(--primary); color: #fff; border: 0; border-radius: 6px; padding: 11px 16px; font-weight: 800; cursor: pointer; display: inline-block; }
.empty-state { padding: 28px; color: var(--muted); background: #f8fafc; }
.muted { color: var(--muted); }

.page-heading { padding: 36px 0 10px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; color: var(--secondary); }
.page-heading p { color: var(--muted); max-width: 760px; }
.search-page-form { display: flex; gap: 10px; max-width: 720px; }
.search-page-form input { margin: 0; }
.search-page-form button { width: auto; }

.article-layout { max-width: 900px; padding: 32px 0; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.breadcrumbs a { color: var(--secondary); font-weight: 700; }
.article-header h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 14px 0; color: #10131a; }
.article-summary { font-size: 21px; color: #4d5562; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.article-featured { margin: 26px 0; }
.article-featured img { width: 100%; max-height: 540px; object-fit: cover; border-radius: 8px; }
figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.article-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.article-tools a, .article-tools button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 11px; cursor: pointer; color: var(--secondary); font-weight: 700; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.78; }
.article-body h2, .article-body h3 { font-family: "Segoe UI", Arial, sans-serif; line-height: 1.2; }
.article-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--primary); background: #f8fafc; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-grid img { width: 100%; height: auto; border-radius: 8px; }
.responsive-embed { position: relative; padding-top: 56.25%; margin: 18px 0; background: #10131a; border-radius: 8px; overflow: hidden; }
.responsive-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.instagram-frame { padding-top: 125%; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-row span { background: #eef2f7; color: var(--secondary); padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.article-neighbors { display: grid; gap: 10px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.article-neighbors a { color: var(--primary); font-weight: 800; }

.contact-panel, .contact-form, .legal-copy { padding: 22px; }
.legal-copy { max-width: 900px; margin-top: 20px; font-size: 18px; border: 1px solid var(--line); border-radius: 8px; }
.error-page { text-align: center; padding: 90px 0; }
.error-page h1 { font-size: 86px; color: var(--primary); margin: 0; }

.site-footer { background: #121821; color: #e8edf5; margin-top: 32px; padding: 34px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 28px; }
.footer-brand { font-size: 24px; font-weight: 900; color: #fff; }
.site-footer h2 { font-size: 16px; color: #fff; margin: 0 0 12px; }
.site-footer a { display: block; color: #c9d2df; margin: 7px 0; }
.social-row a { display: inline-block; margin-right: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); color: #aeb8c7; margin-top: 24px; padding-top: 16px; font-size: 14px; }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; display: none; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.back-top.is-visible { display: grid; }

@media (max-width: 980px) {
  .lead-grid, .split-section { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-search { width: min(360px, 40vw); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 22px, 1180px); }
  .top-strip-inner { grid-template-columns: auto 1fr; }
  .clock { grid-column: 1 / -1; padding-bottom: 8px; }
  .header-inner { flex-wrap: wrap; }
  .brand { min-width: 0; flex: 1; }
  .brand-text { font-size: 22px; }
  .header-search { order: 3; width: 100%; }
  .menu-toggle { display: grid; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .nav-inner { flex-direction: column; padding: 8px 0; }
  .hero-story a { min-height: 360px; }
  .hero-story .category-badge { top: 185px; }
  .hero-story h1 { margin-top: 195px; margin-left: 18px; margin-right: 18px; }
  .hero-story p { margin-left: 18px; margin-right: 18px; font-size: 16px; }
  .card-grid, .card-grid.compact, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .mini-story { grid-template-columns: 82px 1fr; }
  .search-page-form { display: block; }
  .article-body { font-size: 18px; }
  .article-meta { display: grid; gap: 4px; }
}

@media print {
  .top-strip, .site-header, .article-tools, .site-footer, .back-top { display: none !important; }
  .article-layout { max-width: none; width: 100%; }
}
/* Dark professional digital theme */
:root {
  --ink: #eef4ff;
  --muted: #a8b3c7;
  --line: rgba(180, 196, 222, .18);
  --soft: rgba(17, 25, 39, .86);
  --paper: rgba(13, 19, 31, .92);
}

body {
  color: var(--ink);
  background: #070b12 url("../img/digital-news-bg.png") center top / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, .72), rgba(5, 8, 14, .92)),
    linear-gradient(90deg, rgba(181, 18, 27, .08), rgba(242, 183, 5, .04));
  pointer-events: none;
}

.site-header,
.main-nav,
.lead-side,
.hero-story,
.news-card,
.newsletter-panel,
.contact-panel,
.contact-form,
.legal-copy,
.empty-state,
.rank-list,
.article-tools a,
.article-tools button {
  background: rgba(10, 16, 27, .9);
  border-color: var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.site-header {
  background: rgba(7, 11, 18, .92);
}

.main-nav {
  border-top-color: var(--line);
}

.nav-inner a,
.mini-story strong,
.news-card h3,
.article-header h1,
.section-title h2,
.page-heading h1,
.lead-side h2,
.newsletter-panel h2,
.contact-panel h2 {
  color: #f6f9ff;
}

.header-search,
.newsletter-panel input,
.contact-form input,
.contact-form textarea,
.search-page-form input {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #f8fbff;
}

.header-search input::placeholder,
.newsletter-panel input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.search-page-form input::placeholder {
  color: #9aa8bd;
}

.top-strip {
  background: rgba(5, 8, 14, .94);
  border-bottom: 1px solid var(--line);
}

.ad-slot {
  background: rgba(11, 18, 31, .72);
  border-color: rgba(242, 183, 5, .34);
  color: #cfdaeb;
}

.hero-story a::after {
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.86));
}

.section-title,
.article-meta,
.footer-bottom,
.article-neighbors,
.mini-story,
.rank-list a,
.article-body th,
.article-body td {
  border-color: var(--line);
}

.news-card:hover {
  box-shadow: 0 20px 42px rgba(0, 0, 0, .35);
}

.news-card p,
.mini-story span,
.article-summary,
.page-heading p,
.newsletter-panel p,
.muted,
figcaption {
  color: var(--muted);
}

.rank-list a:hover,
.news-card:hover h3,
.nav-inner a:hover {
  color: #ffd45a;
}

.article-body blockquote,
.article-body table,
.hero-empty {
  background: rgba(14, 23, 38, .88);
  border-color: var(--line);
}

.article-tools a,
.article-tools button {
  color: #f6f9ff;
}

.site-footer {
  background: rgba(5, 8, 14, .96);
  border-top: 1px solid var(--line);
}

.language-switcher,
.article-translate {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.language-switcher {
  margin-left: auto;
}

.language-switcher button,
.article-translate button {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #f6f9ff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button.is-active,
.article-translate button:hover,
.article-translate button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.article-translate {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 27, .88);
  color: var(--muted);
}

.article-translate span {
  color: #f6f9ff;
  font-weight: 800;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget-icon,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 980px) {
  .language-switcher {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
}
/* All News aggregator */
.ad-slot-media { padding: 12px; overflow: hidden; }
.ad-slot-media a { display: inline-grid; place-items: center; width: 100%; }
.ad-slot-media img { display: block; width: 100%; max-height: 170px; object-fit: contain; border-radius: 6px; }
.all-news-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, 280px) auto auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.all-news-toolbar label { display: grid; gap: 6px; font-weight: 800; color: var(--secondary); }
.all-news-toolbar input, .all-news-toolbar select { border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; background: var(--paper); color: var(--ink); }
.all-news-toolbar button, .read-source { border: 0; border-radius: 6px; background: var(--primary); color: #fff; padding: 11px 16px; font-weight: 900; cursor: pointer; }
.button-link.secondary { background: var(--secondary); }
.all-news-status { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.all-news-status span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: rgba(255, 255, 255, .04); }
.source-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; }
.source-pill { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--secondary); font-weight: 800; background: var(--paper); }
.external-news-list { display: grid; gap: 14px; }
.external-news-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 14px; }
.external-news-card:not(:has(.external-news-image)) { grid-template-columns: 1fr; }
.external-news-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: var(--soft); }
.external-news-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.external-news-card h2 { margin: 8px 0; font-size: 22px; line-height: 1.25; color: var(--secondary); }
.external-news-card p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.read-source { display: inline-block; padding: 9px 12px; }
.rss-note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.pagination { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 22px; }
.pagination a, .pagination span { border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; background: var(--paper); color: var(--secondary); font-weight: 800; }
#google_translate_element, .goog-te-banner-frame, .skiptranslate iframe { position: absolute !important; left: -9999px !important; height: 0 !important; overflow: hidden !important; }
body { top: 0 !important; }

@media (max-width: 760px) {
  .all-news-toolbar { grid-template-columns: 1fr; }
  .external-news-card { grid-template-columns: 1fr; }
}

/* Dark theme compatibility for All News */
.all-news-toolbar label, .external-news-card h2, .source-pill, .pagination a, .pagination span { color: #f6f9ff; }
.all-news-toolbar input, .all-news-toolbar select, .source-pill, .external-news-card, .pagination a, .pagination span { background: rgba(10, 16, 27, .9); border-color: rgba(180, 196, 222, .18); }
.external-news-card p, .external-news-meta, .rss-note, .all-news-status { color: #bac6d8; }

/* Imported logo + animated digital navigation theme */
.site-header {
  position: sticky;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, .95), rgba(7, 11, 18, .84), rgba(7, 11, 18, .95)),
    url("../img/imported/img-2.png") center / cover no-repeat;
  opacity: .28;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 42%, rgba(242, 183, 5, .18) 48%, rgba(215, 43, 53, .18) 52%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: digitalHeaderSweep 7s linear infinite;
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
  border-bottom-color: rgba(242, 183, 5, .24);
}

.header-inner,
.main-nav {
  position: relative;
  z-index: 1;
}

.brand-digital {
  min-width: min(360px, 42vw);
  gap: 12px;
}

.brand-logo-frame {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(5, 8, 14, .86);
  border: 1px solid rgba(242, 183, 5, .4);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.34);
}

.brand-logo-frame::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg, rgba(242,183,5,0), rgba(242,183,5,.75), rgba(215,43,53,.7), rgba(242,183,5,0));
  animation: logoCircuitSpin 5.5s linear infinite;
}

.brand-logo-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background: rgba(6, 10, 18, .9);
}

.brand-logo-frame img {
  position: relative;
  z-index: 1;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  border-radius: 5px;
  animation: logoSignalPulse 3.6s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-signal {
  color: #ffd45a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: .9;
}

.digital-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  border: 1px solid rgba(242, 183, 5, .34);
  border-radius: 6px;
  padding: 5px 9px;
  background: rgba(3, 8, 15, .72);
  color: #ffd45a;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  box-shadow: inset 0 0 14px rgba(242, 183, 5, .08), 0 0 18px rgba(242, 183, 5, .08);
}

.digital-watch::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px rgba(255, 212, 90, .12);
  animation: watchSignal 1.6s ease-in-out infinite;
}

.main-nav {
  background: rgba(5, 8, 14, .7);
}

.nav-inner {
  position: relative;
  scrollbar-color: rgba(242, 183, 5, .62) rgba(255, 255, 255, .08);
}

.nav-inner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 183, 5, .65), rgba(215, 43, 53, .65), transparent);
  animation: navSignalSlide 6s linear infinite;
}

.nav-inner a {
  position: relative;
  color: #dfe8f7;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-inner a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, #ffd45a, #d72b35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-inner a:hover,
.nav-inner a.is-active {
  color: #ffd45a;
  background: rgba(255, 255, 255, .06);
  transform: translateY(-1px);
  border-bottom-color: transparent;
}

.nav-inner a:hover::after,
.nav-inner a.is-active::after {
  transform: scaleX(1);
}

.news-card,
.external-news-card,
.hero-story,
.lead-side,
.rank-list,
.newsletter-panel {
  animation: cardRise .42s ease both;
}

.news-card:nth-child(2n),
.external-news-card:nth-child(2n) { animation-delay: .04s; }
.news-card:nth-child(3n),
.external-news-card:nth-child(3n) { animation-delay: .08s; }

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, .96), rgba(5, 8, 14, .82)),
    url("../img/imported/img-3.jpeg") center / cover no-repeat;
  opacity: .26;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

@keyframes digitalHeaderSweep {
  to { transform: translateX(120%); }
}

@keyframes logoCircuitSpin {
  to { transform: rotate(360deg); }
}

@keyframes logoSignalPulse {
  0%, 100% { filter: saturate(1) brightness(1); transform: scale(1); }
  50% { filter: saturate(1.2) brightness(1.12); transform: scale(1.025); }
}

@keyframes watchSignal {
  0%, 100% { opacity: .72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes navSignalSlide {
  0% { transform: translateX(-35%); opacity: .5; }
  50% { opacity: 1; }
  100% { transform: translateX(35%); opacity: .5; }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .brand-digital { min-width: 0; }
  .brand-signal { white-space: normal; }
}

@media (max-width: 720px) {
  .brand-logo-frame { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-signal { display: none; }
  .site-header::after { animation-duration: 10s; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after,
  .brand-logo-frame::before,
  .brand-logo-frame img,
  .digital-watch::before,
  .nav-inner::before,
  .news-card,
  .external-news-card,
  .hero-story,
  .lead-side,
  .rank-list,
  .newsletter-panel {
    animation: none !important;
  }
  .nav-inner a { transition: none; }
}
