:root {
  --bg-page: #ededef;
  --bg-panel: #ececef;
  --bg-card: #f8f8fb;
  --bg-right: #f2f3f6;
  --bg-dark: #15161a;
  --bg-soft-dark: #2a2c31;
  --ink-main: #3f4b69;
  --ink-muted: #6f7687;
  --ink-light: #e9edf7;
  --accent: #f2a233;
  --accent-red: #d9481a;
  --border: #d8dce4;
  --shadow: 0 14px 30px rgba(19, 23, 35, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-page);
  color: var(--ink-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1280px, calc(100vw - 24px));
  margin: 0 auto;
}

.topbar {
  background:
    linear-gradient(rgba(12, 12, 14, 0.78), rgba(12, 12, 14, 0.78)),
    center/cover no-repeat url("./images/generated-1773128602924.png");
  color: #fff;
}

.topbar-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
}

.brand-text {
  display: inline-block;
}

.topnav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
}

.topnav a,
.auth-links a {
  opacity: 0.94;
}

.topnav a:hover,
.auth-links a:hover {
  color: var(--accent);
}

.auth-links {
  display: flex;
  gap: 8px;
  color: #d5d8df;
  font-size: 11px;
}

.hero {
  position: relative;
  height: clamp(420px, 36vw, 640px);
  background-color: #1c2030;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: linear-gradient(135deg, #1c2030 0%, #2a2f44 100%);
  overflow: hidden;
}

/* 2026-05-01: yjj-hero-media-layers
   Video/img background phu kin .hero, dat duoi .hero-overlay (z-index 1).
   .hero-overlay van la layer 1 (gradient den nhat, lam logo va caption noi).
   .hero-logo o z-index 3 de noi tren overlay. */
.hero-bg-video,
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-video[hidden],
.hero-bg-image[hidden],
.hero-logo[hidden] {
  display: none !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(241, 242, 244, 0.18) 85%, rgba(241, 242, 244, 0.82));
}

.hero-logo {
  position: absolute;
  left: clamp(24px, 4vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 28vw, 460px);
  height: auto;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(8, 12, 22, 0.45));
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(77, 82, 91, 0.92);
  color: #d5c09c;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  z-index: 2;
}

.hero-play:hover,
.hero-play:focus-visible {
  background: rgba(77, 82, 91, 1);
  box-shadow: 0 10px 24px rgba(18, 20, 28, 0.28);
}

/* 2026-05-01: yjj-hero-play-toggle defensive rules.
   Khi admin bo tich "Hien thi nut play", JS se them attr [hidden]/aria-hidden
   va class is-hidden / yjj-hero-play--off. Mot so theme co the override CSS
   mac dinh cua [hidden] => phai khoa cung bang !important de chac an. */
.hero-play[hidden],
.hero-play.is-hidden,
.hero-play.yjj-hero-play--off,
.hero-play[aria-hidden="true"],
.hero-play[disabled] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  margin: 0;
  /* 2026-05-01: yjj-hero-caption-default - font cổ trang mặc định + hiệu ứng phát sáng kim.
     Admin có thể override qua state.hero.captionStyle (font/size/color/glow/letter-spacing/...). */
  color: #ffd57a;
  font-family: "ZCOOL XiaoWei", "Cinzel", "Noto Serif SC", "Be Vietnam Pro", serif;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-align: center;
  z-index: 3;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(255, 196, 64, 0.55),
    0 0 36px rgba(255, 196, 64, 0.35);
}

/* 2026-05-01: yjj-hero-caption-pulse - hieu ung glow pulse cho cau chu hero. */
@keyframes yjj-hero-caption-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 196, 64, 0.35)); }
  50%      { filter: drop-shadow(0 0 18px rgba(255, 196, 64, 0.85)); }
}
.hero-caption.hero-caption-pulse {
  animation: yjj-hero-caption-pulse 2.6s ease-in-out infinite;
}

/* 2026-05-01: yjj-bg-music FAB nhỏ + panel hover nhe nhang */
.yjj-music-fab {
  position: fixed;
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.yjj-music-fab[data-position="top-right"]    { top: 18px; right: 18px; }
.yjj-music-fab[data-position="top-left"]     { top: 18px; left: 18px; align-items: flex-start; }
.yjj-music-fab[data-position="bottom-right"] { bottom: 18px; right: 18px; }
.yjj-music-fab[data-position="bottom-left"]  { bottom: 18px; left: 18px; align-items: flex-start; }

.yjj-music-fab > * { pointer-events: auto; }

.yjj-music-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 64, 0.55);
  background: linear-gradient(135deg, rgba(40, 25, 12, 0.92), rgba(20, 12, 6, 0.92));
  color: #ffd57a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.yjj-music-btn:hover,
.yjj-music-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(255, 196, 64, 0.35), 0 0 0 2px rgba(255, 196, 64, 0.4);
  outline: none;
}
.yjj-music-btn .yjj-music-icon       { display: inline-flex; }
.yjj-music-btn .yjj-music-icon-mute   { display: none; }
.yjj-music-fab.is-muted .yjj-music-btn .yjj-music-icon       { display: none; }
.yjj-music-fab.is-muted .yjj-music-btn .yjj-music-icon-mute   { display: inline-flex; }

@keyframes yjj-music-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 196, 64, 0.55); }
  50%      { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(255, 196, 64, 0); }
}
.yjj-music-fab.yjj-music-fab--pulse .yjj-music-btn {
  animation: yjj-music-pulse 1.6s ease-out infinite;
}
@keyframes yjj-music-spin {
  to { transform: rotate(360deg); }
}
.yjj-music-fab.is-playing .yjj-music-icon svg {
  animation: yjj-music-spin 4.5s linear infinite;
  transform-origin: center;
}

.yjj-music-panel {
  width: 260px;
  max-width: calc(100vw - 36px);
  padding: 12px 14px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 64, 0.45);
  background: linear-gradient(180deg, rgba(28, 18, 8, 0.96), rgba(15, 10, 6, 0.98));
  color: #f8e8c2;
  font-size: 12.5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.yjj-music-fab:hover .yjj-music-panel,
.yjj-music-fab:focus-within .yjj-music-panel,
.yjj-music-fab.yjj-music-panel-open .yjj-music-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.yjj-music-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.yjj-music-empty-hint {
  list-style: none;
  padding: 8px;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 196, 64, 0.08);
  color: rgba(248, 232, 194, 0.85);
  font-size: 12px;
  line-height: 1.45;
}

.yjj-music-panel-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 196, 64, 0.18);
  margin-bottom: 8px;
}
.yjj-music-now {
  font-family: "ZCOOL XiaoWei", "Cinzel", serif;
  font-size: 14px;
  color: #ffd57a;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.yjj-music-state { font-size: 11px; color: rgba(255, 213, 122, 0.55); }
.yjj-music-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.yjj-music-controls button {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 196, 64, 0.3);
  background: rgba(255, 196, 64, 0.1);
  color: #ffd57a;
  cursor: pointer;
  font-size: 14px;
  transition: background 180ms ease;
}
.yjj-music-controls button:hover { background: rgba(255, 196, 64, 0.22); }
.yjj-music-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}
.yjj-music-item {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: rgba(248, 232, 194, 0.78);
  line-height: 1.35;
}
.yjj-music-item:hover { background: rgba(255, 196, 64, 0.08); }
.yjj-music-item.is-active {
  background: rgba(255, 196, 64, 0.18);
  color: #ffd57a;
  font-weight: 600;
}
.yjj-music-num { color: rgba(255, 196, 64, 0.55); }

@media (max-width: 640px) {
  .yjj-music-fab[data-position="top-right"]    { top: 12px; right: 12px; }
  .yjj-music-fab[data-position="top-left"]     { top: 12px; left: 12px; }
  .yjj-music-btn { width: 40px; height: 40px; }
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.video-modal.is-open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(6px);
}

.video-modal-dialog {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  margin: 6vh auto 0;
  padding: 12px;
  background: #101217;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.video-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #d8dce7;
  font-size: 28px;
  cursor: pointer;
}

.video-modal-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
}

.video-frame {
  position: relative;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.portal-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 140px;
  gap: 12px;
  /* 2026-05-01: yjj-portal-layout-no-overlap
     Truoc day margin-top am 90-150px de cac card chong len hero banner. Khi
     hero la GIF/video thi viec nay che mat 1/3 banner, mat tham my. Day xuong
     duong de banner full-bleed va portal layout nam ngay duoi. */
  margin-top: clamp(16px, 2vw, 28px);
  position: relative;
  z-index: 3;
  align-items: start;
}

.left-rail,
.center-column,
.right-rail {
  min-width: 0;
}

.left-rail {
  background: #dce0e5;
  padding: 0 0 12px;
}

.download-card,
.mini-link,
.image-button {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.download-card,
.mini-link {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
}

.quick-link-bg {
  position: absolute;
  inset: 0;
  background-color: #20242f;
  background-image: linear-gradient(135deg, #232838 0%, #1a1e2a 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.download-card {
  height: 88px;
  padding: 0 16px;
}

.download-card span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.2;
}

.mini-link {
  height: 36px;
  margin-top: 4px;
  background-color: #2a2f3e;
  background-image: linear-gradient(135deg, #2f3548 0%, #232838 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.download-card:hover,
.download-card:focus-visible,
.mini-link:hover,
.mini-link:focus-visible {
  transform: scale(1.035);
  filter: brightness(1.08);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.24);
}

.showcase-card {
  position: relative;
  height: 158px;
  margin-top: 4px;
  background-color: #1f2330;
  background-image: linear-gradient(135deg, #232838 0%, #181b25 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.showcase-card:hover,
.showcase-card:focus-visible {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.24);
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7b818e;
  font-size: 20px;
  cursor: pointer;
}

.showcase-arrow-left {
  left: 4px;
}

.showcase-arrow-right {
  right: 4px;
}

.image-button {
  height: 66px;
  margin-top: 6px;
  background-color: #2a2f3e;
  background-image: linear-gradient(135deg, #2f3548 0%, #232838 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
}

.image-button:hover,
.image-button:focus-visible {
  transform: scale(1.04);
  filter: brightness(1.08);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.24);
}

.ally-box {
  margin-top: 6px;
  background: var(--bg-soft-dark);
  padding: 10px;
  color: #c6cad3;
}

.ally-rule {
  display: block;
  width: 100%;
  background: #343740;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.ally-rule:hover,
.ally-rule:focus-visible,
.ally-rule:active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
  transform: translateY(-1px);
}

.ally-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.ally-rule-middle {
  margin-top: 10px;
}

.ally-icon {
  height: 44px;
  border-radius: 4px;
  background: #343740;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #e8edf8;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.ally-icon:hover,
.ally-icon:active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
  transform: translateY(-1px);
}


.ally-desc {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10px;
}

.center-column {
  background: var(--bg-card);
  padding: 0;
}

.news-card {
  background: #f8f8fb;
  border: 1px solid var(--border);
  margin: 0 10px 10px;
}

.news-head {
  padding: 10px 12px 0;
}

.news-head h2 {
  margin: 0;
  font-size: 13px;
  color: #4f5a72;
}

.news-head-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: #4f5a72;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.news-head-trigger:hover,
.news-head-trigger:focus-visible {
  color: var(--accent);
}

.news-list {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 8px;
  padding: 8px 12px 12px;
}

.news-items {
  display: grid;
  gap: 4px;
}

.news-items a,
.news-dates span {
  font-size: 11px;
  color: #5d657a;
}

.news-items a:hover,
.news-items a:focus-visible {
  color: var(--accent);
}

.news-dates {
  display: grid;
  gap: 4px;
  text-align: right;
}

.news-tabs-panel {
  border: 1px solid var(--border);
  background: #fff;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.news-tab {
  border: 0;
  background: transparent;
  color: #6c7283;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 160ms ease, color 160ms ease;
}

.news-tab:hover,
.news-tab:focus-visible {
  background: #e9edf3;
  color: #445170;
}

.news-tab.is-active {
  background: #dde2ea;
  color: #3f4b69;
}

.news-detail-panel {
  margin: 0 10px 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  border: 1px solid var(--border);
  background: #f8f8fb;
}

.news-detail-main,
.news-detail-side {
  min-width: 0;
}

.news-detail-back {
  border: 0;
  padding: 0;
  background: transparent;
  color: #6b7285;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.news-detail-back:hover,
.news-detail-back:focus-visible {
  color: var(--accent);
}

.news-detail-kicker {
  margin: 12px 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-detail-title {
  margin: 0;
  color: #33415f;
  font-size: 24px;
  line-height: 1.2;
}

.news-detail-date {
  margin: 8px 0 0;
  color: #7a8092;
  font-size: 12px;
  font-weight: 700;
}

.news-detail-body {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  color: #4f5870;
  font-size: 14px;
  line-height: 1.75;
}

.news-detail-body p {
  margin: 0;
}

.news-detail-side {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.news-detail-side-title {
  margin: 0 0 12px;
  color: #33415f;
  font-size: 13px;
  font-weight: 800;
}

.news-detail-side-list {
  display: grid;
  gap: 8px;
}

.news-detail-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #4f5870;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}

.news-detail-link:hover,
.news-detail-link:focus-visible,
.news-detail-link.is-active {
  color: var(--accent);
  border-color: rgba(242, 162, 51, 0.4);
  box-shadow: 0 10px 20px rgba(17, 20, 31, 0.08);
  transform: translateY(-1px);
}

.news-detail-link-title {
  font-size: 12px;
  font-weight: 700;
}

.news-detail-link-date {
  font-size: 10px;
  color: #8a91a2;
}

.banner-block {
  position: relative;
  padding: 10px;
}

.banner-block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background-color: #1f2330;
  background-image: linear-gradient(135deg, #232838 0%, #181b25 100%);
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #7a8092;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.banner-dot:hover,
.banner-dot:focus-visible,
.banner-dot.is-active {
  background: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

.feature-story {
  padding: 0 10px 10px;
}

.feature-story-visual {
  position: relative;
}

.feature-story-visual img {
  background-color: #1f2330;
  background-image: linear-gradient(135deg, #232838 0%, #181b25 100%);
}

.story-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.story-filters button {
  border: 0;
  background: #8a8f9c;
  color: #fff;
  padding: 6px 4px;
  font-size: 10px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.story-filters button:hover,
.story-filters button:focus-visible,
.story-filters button.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
}

.feature-story img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.feature-story-view {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 132px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 21, 29, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(14, 19, 28, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.feature-story-view:hover,
.feature-story-view:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(242, 162, 51, 0.92);
  box-shadow: 0 18px 32px rgba(242, 162, 51, 0.24);
}

.guide-grid,
.updates-grid {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.guide-grid {
  grid-template-columns: repeat(4, 1fr);
}

.updates-grid {
  grid-template-columns: repeat(3, 1fr);
}

.guide-card,
.update-card {
  background: #fff;
  display: block;
  overflow: hidden;
}

.guide-label,
.update-label {
  display: block;
  background: #8a8f9c;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  font-size: 10px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.guide-card,
.update-card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-card:hover,
.guide-card:focus-visible,
.guide-card:focus-within,
.update-card:hover,
.update-card:focus-visible,
.update-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.12);
}

.guide-card:hover .guide-label,
.guide-card:active .guide-label,
.guide-card:focus-within .guide-label,
.update-card:hover .update-label,
.update-card:active .update-label,
.update-card:focus-within .update-label {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
}

.guide-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease, filter 220ms ease;
}

.update-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease, filter 220ms ease;
}

.guide-card:hover img,
.guide-card:focus-visible img,
.guide-card:focus-within img,
.update-card:hover img,
.update-card:focus-visible img,
.update-card:focus-within img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.right-rail {
  background: var(--bg-right);
  padding: 0;
  display: grid;
  gap: 8px;
}

.info-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 8px;
}

.icon-box {
  padding: 0;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.icon-cell {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #eceef3;
  color: #6b7085;
  text-align: center;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-cell:hover,
.icon-cell:focus-visible {
  color: var(--accent);
  background: #ffffff;
  transform: translateY(-1px);
}

.icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
}

.icon-facebook {
  font-size: 30px;
  font-weight: 800;
}

.icon-youtube {
  font-size: 28px;
}

.icon-label {
  font-size: 13px;
  font-weight: 500;
}

.info-box h3 {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 10px;
  padding: 0 10px;
  background: #8a8f9c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.info-box ul {
  list-style: square;
  margin: 0;
  padding-left: 16px;
  color: #7a8092;
}

.info-box li {
  margin-bottom: 8px;
  font-size: 10px;
  line-height: 1.35;
  transition: color 160ms ease;
  cursor: pointer;
}

.info-box li a {
  display: block;
}

.info-box li:hover,
.info-box li:focus-within,
.info-box li:hover::marker {
  color: var(--accent);
}

.tall-box li {
  margin-bottom: 7px;
}

.site-footer {
  position: relative;
  min-height: 160px;
  margin-top: 22px;
  background-color: #14161e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: linear-gradient(180deg, #1a1d27 0%, #14161e 100%);
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 21, 26, 0.28), rgba(20, 21, 26, 0.75));
}

.footer-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 0 26px;
}

.footer-brand {
  margin: 0;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.footer-links {
  margin: 10px 0 0;
  color: #e0e2e8;
  font-size: 11px;
}

.footer-copy {
  margin: 10px 0 0;
  color: #838894;
  font-size: 10px;
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .topnav {
    order: 3;
    flex-wrap: wrap;
  }

  .portal-layout {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .left-rail,
  .right-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .center-column {
    order: -1;
  }

  .showcase-card,
  .ally-box {
    grid-column: span 2;
  }

  .story-filters {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 16px, 100%);
  }

  .hero {
    height: 280px;
  }

  .hero-caption {
    width: calc(100% - 20px);
    font-size: 14px;
    text-align: center;
  }

  .hero-logo {
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: min(70vw, 320px);
    max-height: 60%;
  }

  .left-rail,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .showcase-card,
  .ally-box {
    grid-column: auto;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-dates {
    text-align: left;
    grid-auto-flow: column;
    overflow: auto;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .updates-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-panel {
    grid-template-columns: 1fr;
  }

  .news-detail-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
}
