:root {
  --ink: #303033;
  --ink-soft: #4b4b4f;
  --muted: #737373;
  --muted-soft: #9a9a9a;
  --line: #efdfd8;
  --cream: #fff8f5;
  --soft: #f8e3da;
  --soft-2: #fff1eb;
  --brand: #ec633e;
  --brand-dark: #bd4b25;
  --navy: #1e536a;
  --green: #58ad62;
  --shadow: 0 10px 22px rgba(48, 48, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  background: #fff;
  overflow-x: clip;
}

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

button {
  font: inherit;
}

.app {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  box-shadow: none;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 22px 18px 20px;
  overflow: visible;
  background: #fff;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  width: 100%;
  max-width: 100%;
  border: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
  backdrop-filter: blur(6px) saturate(1.3);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 7px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-name .brand-lab {
  color: #a85b47;
}

.brand-name .brand-tv {
  color: var(--brand);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--brand);
  box-shadow: none;
  white-space: nowrap;
}

.pill:hover {
  background: var(--brand-dark);
}

.pill-short {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.top-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 32px;
  min-height: 32px;
  padding: 3px 8px 4px;
  border: 1px solid rgba(236, 99, 62, 0.48);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff0e7;
  box-shadow: none;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.top-button span:first-child {
  font-size: 14px;
  line-height: 1;
}

.top-button:hover {
  background: #ffe4d4;
  border-color: var(--brand);
}

.top-button:focus-visible {
  outline: 3px solid #f0d7cb;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .brand-row {
    padding: 6px 14px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .brand-name {
    font-size: 19px;
  }

  .pill {
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .pill-full {
    display: none;
  }

  .pill-short {
    display: inline;
  }

  .nav-actions {
    gap: 6px;
  }

  .top-button {
    min-width: 28px;
    height: 30px;
    min-height: 30px;
    padding: 3px 7px 4px;
    font-size: 8px;
  }

}

.hero-card {
  margin-top: 22px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: none;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-card p {
  max-width: none;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

.hero-short-copy {
  display: none;
}

.intro-replay-button-desktop {
  display: none;
}

main {
  padding: 18px 18px 34px;
  background: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.section-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: #fff0e7;
  border: 1px solid rgba(236, 99, 62, 0.34);
  border-radius: 999px;
}

.section-more-link:hover {
  color: var(--brand-dark);
  background: #ffe4d4;
  border-color: var(--brand);
}

.section-head time {
  color: #9d9d9d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tabs-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
}

.tabs-viewport {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  padding: 4px 0 12px;
  overflow: visible;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
}

.tab[aria-selected="true"] {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 900;
  background: var(--soft-2);
}

.tab-reading-set {
  display: inline-flex;
  align-items: center;
  border-color: #ded8d3;
  color: #5d5b61;
  background: #f7f5f2;
}

.tab-reading-set-start {
  position: relative;
  margin-left: 16px;
}

.tab-reading-set-start::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 1px;
  height: 20px;
  border-radius: 999px;
  background: #ded8d3;
  transform: translateY(-50%);
  pointer-events: none;
}

.tab-reading-set:hover,
.tab-reading-set:focus-visible {
  border-color: rgba(236, 99, 62, 0.48);
  color: var(--brand-dark);
  background: #fff4ed;
}

.tab-reading-set[aria-selected="true"] {
  border-color: rgba(236, 99, 62, 0.44);
  color: var(--brand-dark);
  background: #fff4ed;
}

.feature-article {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid #f2d5ca;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: var(--brand-dark);
}

.read-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feature-article h3 {
  margin: 26px 0 8px;
  color: var(--brand);
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.feature-article p {
  margin: 0;
  color: #4d4d4f;
  font-size: 14px;
  line-height: 1.65;
}

.feature-article h3,
.feature-article p,
.articles-news .carousel-content h3,
.articles-news .carousel-content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.feature-article h3,
.articles-news .carousel-content h3 {
  -webkit-line-clamp: 2;
}

.feature-article p,
.articles-news .carousel-content p {
  -webkit-line-clamp: 2;
}

.feature-article h3.is-title-long,
.articles-news .carousel-content h3.is-title-long {
  font-size: clamp(21px, 5.7vw, 28px);
  line-height: 1.14;
}

.feature-article h3.is-title-extra-long,
.articles-news .carousel-content h3.is-title-extra-long {
  font-size: clamp(19px, 5.2vw, 24px);
  line-height: 1.12;
}

.article-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.article-list:empty {
  display: none;
}

.article-empty {
  margin: 12px 0;
  padding: 28px 16px;
  border: 1px dashed #e3dede;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #f0eeee;
  border-radius: 12px;
  background: #fff;
}

.article-media {
  display: grid;
  gap: 6px;
  align-self: start;
}

.article-media .article-meta {
  justify-self: center;
  text-align: center;
}

.article-body {
  min-width: 0;
}

.article-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-body,
.article-body > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.article-body > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-meta {
  justify-self: start;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  background: #fff1eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.articles-news .feature-article {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #241d1a;
}

@media (max-width: 759px) {
  .articles-news .feature-article {
    height: 206px;
    min-height: 206px;
    max-height: 206px;
    aspect-ratio: auto;
  }
}

.carousel-link {
  position: relative;
  display: block;
  height: 100%;
  color: #fff;
}

.articles-news .feature-image {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 320ms ease, transform 4.6s ease;
}

.feature-article.is-sliding-right .feature-image {
  animation: carouselImageSlideRight 460ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
}

.feature-article.is-sliding-right .carousel-content {
  animation: carouselContentSlideRight 460ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
}

@keyframes carouselImageSlideRight {
  from {
    opacity: 0.58;
    transform: translateX(34px) scale(1.04);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1.02);
  }
}

@keyframes carouselContentSlideRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-link:hover .feature-image {
  transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
  .feature-article.is-sliding-right .feature-image,
.feature-article.is-sliding-right .carousel-content {
    animation: none;
  }
}

.carousel-shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.16) 30%, rgba(0, 0, 0, 0.82) 100%);
}

.carousel-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  padding: 24px 20px 22px;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.8);
}

.carousel-content .feature-top {
  margin-bottom: 12px;
}

.carousel-content .badge {
  background: rgba(189, 75, 37, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.carousel-content .read-time {
  color: #fff;
}

.articles-news .carousel-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.16;
}

.articles-news .carousel-content p {
  display: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 2px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d3cac7;
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.carousel-dot[aria-current="true"] {
  width: 26px;
  background: var(--brand);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.36);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.58);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* carousel-rank:2026-07 由 homepage.js 的 ensureTabsWrapStyles 執行期注入樣式合併而來（取實際生效值）。 */
.carousel-rank-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 10px 0 14px;
  border-top: 1px solid #eee2dc;
  border-bottom: 1px solid #eee2dc;
}

.carousel-rank-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 11px;
  background: transparent;
}

.carousel-rank-card + .carousel-rank-card {
  border-left: 1px solid #eee2dc;
}

.carousel-rank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 8px;
}

.carousel-rank-head strong {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.carousel-rank-head span {
  overflow: hidden;
  color: #9a8f8b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-rank-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-rank-list li {
  min-width: 0;
  margin: 0;
}

.carousel-rank-list a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  color: inherit;
  text-decoration: none;
}

.carousel-rank-list a:hover strong,
.carousel-rank-list a:focus-visible strong {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carousel-rank-list a:hover strong {
  color: var(--brand-dark);
}

.carousel-rank-list em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  background: #fff1eb;
}

.carousel-rank-list strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-rank-empty {
  margin: 0;
  color: #8b8584;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .carousel-rank-sections {
    grid-template-columns: 1fr;
  }

  .carousel-rank-card + .carousel-rank-card {
    border-top: 1px solid #eee2dc;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  /* 其餘 560px 覆寫已被注入樣式壓死多時，合併時僅保留仍實際生效的兩條。 */
  .carousel-rank-card {
    gap: 6px;
  }

  .carousel-rank-list a {
    min-height: 28px;
  }
}

.article-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(236, 99, 62, 0.88), rgba(30, 83, 106, 0.86)),
    url("assets/renoai-icon.png") center / 82px auto no-repeat;
}

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

.articles-news .article-card {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  padding: 10px;
}

.articles-news .article-thumb {
  min-height: 0;
  border-radius: 10px;
  background-size: 44px auto;
}

.content-section {
  margin-top: 22px;
  min-width: 0;
  max-width: 100%;
}

.content-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  margin-bottom: 10px;
}

.content-section-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-section h3 {
  min-width: max-content;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
}

.content-section h3 a {
  color: inherit;
  text-decoration: none;
}

.content-section h3 a:hover,
.content-section h3 a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section-head span {
  min-width: 0;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
}

.content-section-head .section-more-link {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  background: transparent;
}

.content-section-head .section-more-link:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .content-section-title-row {
    gap: 6px;
  }
}

.story-grid {
  display: grid;
  gap: 12px;
}

.story-card {
  --story-thumb-size: clamp(96px, 12vw, 108px);
  display: grid;
  grid-template-columns: var(--story-thumb-size) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 5px 0 12px;
  border-bottom: 1px solid #f3eeee;
  background: transparent;
}

.story-media {
  display: grid;
  gap: 5px;
  align-self: center;
  justify-items: center;
}

.story-card > span:not(.story-media) {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-self: center;
}

.story-media .article-meta,
.story-media .story-meta {
  display: none;
  justify-self: center;
  text-align: center;
}

.story-media .article-meta {
  position: static;
  max-width: 100%;
  padding: 4px 6px;
  color: var(--brand-dark);
  background: #fff1eb;
  box-shadow: none;
}

.story-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(30, 83, 106, 0.86), rgba(236, 99, 62, 0.78)),
    url("/assets/renolab-mark.png") center / 36px auto no-repeat;
}

/* 真實封面圖（或 placeholder）注入時，覆蓋裝飾縮圖殘留的 repeat / 小尺寸，
   否則封面會被縮成 36–44px 並平鋪成 2x2 格。 */
.article-thumb.has-cover,
.story-thumb.has-cover {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.story-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #56565c;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-card p {
  display: none;
}

@media (min-width: 900px) {
  .story-card.is-title-single-line p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #8b8584;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
}

.story-meta {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.popular-tags-section {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 18px 0 20px;
  border-top: 1px solid #f3eeee;
  border-bottom: 1px solid #f3eeee;
}

.popular-tags-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.popular-tags-head h3 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.popular-tags-head p {
  margin: 4px 0 0;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.popular-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.popular-tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid #ded8d3;
  border-radius: 999px;
  color: #5d5b61;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  background: #f7f5f2;
}

.popular-tag:hover,
.popular-tag:focus-visible {
  border-color: rgba(236, 99, 62, 0.48);
  color: var(--brand-dark);
  background: #fff4ed;
}

.popular-tag small {
  margin-left: 5px;
  color: #aaa2a0;
  font-size: 10px;
  font-weight: 850;
}

.popular-tags-empty {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .popular-tags-head {
    align-items: start;
    flex-direction: column;
  }

  .popular-tags-head .section-more-link {
    align-self: flex-start;
  }
}

.conversion-strip {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft-2);
}

.conversion-strip h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 18px;
}

.conversion-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.conversion-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.conversion-actions a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--brand);
}

.conversion-actions a + a {
  color: var(--brand-dark);
  background: #fff;
}

.market-strip {
  display: grid;
  --market-visible: 3;
  grid-template-columns: repeat(var(--market-visible), minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
  overflow: hidden;
}

.market-item.is-leaving {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.market-item.is-entering-card {
  animation: market-card-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes market-card-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.market-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.market-title strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.market-time {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.market-time-value {
  display: inline-block;
  min-width: 32px;
  color: var(--muted);
  font-weight: 900;
  transform-origin: center bottom;
}

.market-time-value.is-ticking {
  animation: time-tick 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes time-tick {
  0% {
    color: var(--muted);
    transform: translateY(0) scale(1);
  }

  34% {
    color: var(--brand);
    transform: translateY(-7px) scale(2);
  }

  68% {
    color: var(--brand-dark);
    transform: translateY(1px) scale(1.35);
  }

  100% {
    color: var(--muted);
    transform: translateY(0) scale(1);
  }
}

.market-item {
  display: grid;
  gap: 1px;
  min-height: 44px;
  padding: 5px 6px;
  align-content: center;
  border-radius: 9px;
  text-align: center;
  background: #f6f6f6;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.market-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.market-item strong {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.market-rate {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.market-watch {
  margin-bottom: 18px;
  background: #fff;
}

.newsletter {
  --newsletter-cue-edge: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(236, 99, 62, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(88, 55, 42, 0.05);
}

#referral {
  scroll-margin-top: 86px;
}

.newsletter h2 {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 800;
}

.newsletter-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.newsletter-title-row h2 {
  margin: 0;
}

.deals-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: #fff0e7;
  border: 1px solid rgba(236, 99, 62, 0.34);
  border-radius: 999px;
}

.deals-more-link:hover {
  color: var(--brand-dark);
  background: #ffe4d4;
  border-color: var(--brand);
}

.newsletter p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
}

.search-row button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: var(--brand);
  cursor: pointer;
}

.site-search-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.site-search-status.is-empty {
  color: var(--muted);
  font-weight: 700;
}

.site-search-status:empty {
  min-height: 0;
  margin: 0;
}

.article-search-title {
  margin: 18px 0 8px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.is-search-hidden {
  display: none !important;
}

.promo-panel {
  margin-top: 8px;
  padding-top: 0;
}

.promo-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.promo-panel-head strong {
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 800;
}

.newsletter p.promo-note {
  margin: 0 0 8px;
  color: #737373;
  font-size: 13px;
  line-height: 1.55;
}

.promo-grid {
  display: grid;
  gap: 10px;
}

.newsletter-scroll-cue {
  position: sticky;
  bottom: -1px;
  z-index: 5;
  display: none;
  height: 52px;
  margin: -52px calc(var(--newsletter-cue-edge) * -1) 0;
  pointer-events: none;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 62%, #fff 100%);
}

.newsletter.has-scroll-cue:not(.is-scroll-end) .newsletter-scroll-cue {
  display: block;
}

.newsletter-scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(236, 99, 62, 0.26);
  border-radius: 999px;
  background: rgba(255, 240, 231, 0.96);
  transform: translateX(-50%);
}

.newsletter-scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17px;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  opacity: 0.8;
  transform: translateX(-50%) rotate(45deg);
  animation: newsletter-cue-bounce 1.4s ease-in-out infinite;
}

@keyframes newsletter-cue-bounce {
  0%,
  100% {
    transform: translate(-50%, -1px) rotate(45deg);
  }

  50% {
    transform: translate(-50%, 3px) rotate(45deg);
  }
}

.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 72px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 12px 26px rgba(72, 36, 23, 0.12);
  isolation: isolate;
}

.promo-card::before,
.promo-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.promo-card::before {
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 44%);
}

.promo-card::after {
  width: 120px;
  height: 120px;
  right: -46px;
  bottom: -58px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.promo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(72, 36, 23, 0.18);
}

.promo-bybit {
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 214, 79, 0.34), transparent 34%),
    linear-gradient(135deg, #171a22 0%, #252a36 46%, #f6a400 152%);
}

.promo-airdrop {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #34150a 0%, #bd4b25 58%, #f3a13a 142%);
}

.promo-bitfinex {
  background:
    radial-gradient(circle at 86% 18%, rgba(151, 197, 84, 0.34), transparent 32%),
    linear-gradient(135deg, #172315 0%, #2d4f27 58%, #97c554 145%);
}

.promo-okx {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #050505 0%, #272727 72%, #656565 140%);
}

.promo-binance {
  background:
    radial-gradient(circle at 86% 18%, rgba(243, 186, 47, 0.38), transparent 30%),
    linear-gradient(135deg, #16120a 0%, #30250b 58%, #f3ba2f 150%);
}

.promo-zoomex {
  grid-template-columns: 72px minmax(0, 1fr);
  background:
    radial-gradient(circle at 86% 18%, rgba(43, 226, 206, 0.36), transparent 30%),
    linear-gradient(135deg, #061011 0%, #123c3c 58%, #2be2ce 150%);
}

.promo-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #171a22;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.promo-logo-wide {
  font-size: 10px;
}

.promo-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.promo-logo-wide img {
  width: 40px;
  height: auto;
  max-height: 22px;
}

.promo-zoomex .promo-logo {
  width: 72px;
  height: 42px;
  border-radius: 12px;
}

.promo-zoomex .promo-logo img {
  width: 64px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
}

.promo-copy {
  min-width: 0;
}

.promo-copy b {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.promo-copy span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.idle-alert {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(18, 15, 13, 0.56);
}

.idle-alert.is-visible {
  display: grid;
}

.idle-alert-card {
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.idle-alert-card h2 {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.25;
}

.idle-alert-card p {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.idle-alert-card p span {
  display: block;
}

.idle-alert-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.idle-alert-card button,
.idle-alert-card a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
  background: var(--soft-2);
  cursor: pointer;
}

.idle-alert-card a {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(236, 99, 62, 0.26);
}

body.is-idle-locked {
  overflow: hidden;
}

.site-footer {
  color: #d4d4d4;
  background: #303030;
  border-top: 1px solid #222;
}

.footer-inner {
  display: grid;
  gap: 28px;
  padding: 34px 18px 30px;
}

.footer-block h2,
.footer-block h3 {
  margin: 0 0 18px;
  color: #e4e4e4;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.footer-block p,
.footer-block a {
  margin: 0;
  color: #c9c9c9;
  font-size: 16px;
  line-height: 1.8;
}

.footer-block a {
  display: block;
}

.footer-note {
  max-width: 560px;
  color: #eeeeee;
}

.footer-company {
  font-weight: 900;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid #171717;
  color: #d0d0d0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 760px) {
  body {
    padding: 0;
    background: #fff;
  }

  .app {
    width: 100%;
    border-radius: 0;
    overflow: visible;
  }
}

@media (min-width: 760px) and (max-width: 899px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    align-items: start;
    gap: 18px;
    padding: 24px;
  }

  .market-watch {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .tabs-shell {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    overflow: visible;
  }

  .tabs-viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    transform: none !important;
    overflow: visible;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .newsletter {
    margin-top: 52px;
  }

}

@media (min-width: 900px) {
  body {
    padding: 0;
    background: #fff;
  }

  .hero {
    padding: 30px 34px 32px;
  }

  .hero-card {
    max-width: 1180px;
    margin: 26px auto 0;
    padding: 36px;
    border-radius: 22px;
  }

  .hero-card h1 {
    max-width: 9em;
    font-size: 54px;
  }

  .hero-card p {
    font-size: 16px;
  }

  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 24px;
    padding: 30px 34px 40px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .market-watch {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .tabs-shell {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    overflow: visible;
  }

  .tabs-viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    transform: none !important;
    overflow: visible;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .feature-article {
    min-height: 240px;
    padding: 22px;
  }

  .feature-article h3 {
    max-width: 13em;
    margin-top: 42px;
    font-size: 34px;
  }

  .feature-article p {
    max-width: 42em;
    font-size: 15px;
  }

  .article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .article-card {
    grid-template-columns: 1fr;
    min-height: 154px;
    align-content: space-between;
    padding: 16px;
  }

  .articles-news .article-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 0;
    align-content: start;
    padding: 10px;
  }

  .article-meta {
    justify-self: start;
  }

  .market-strip {
    grid-template-columns: repeat(var(--market-visible), minmax(0, 1fr));
    justify-content: start;
    gap: 12px;
  }

  .market-item {
    padding: 14px 10px;
  }

  .newsletter {
    --newsletter-cue-edge: 18px;
    position: sticky;
    top: 24px;
    margin-top: 52px;
    padding: 18px;
  }

  .newsletter h2 {
    font-size: 20px;
  }

  .promo-panel-head strong {
    font-size: 20px;
  }

  .site-footer {
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px 48px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 34px 52px;
  }

  .footer-block h2,
.footer-block h3 {
    font-size: 22px;
  }

  .footer-block p,
.footer-block a {
    font-size: 18px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-information {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 22px 34px;
    font-size: 16px;
  }

}

@media (min-width: 1180px) {
  .app {
    width: 100%;
  }

}

/* Variant A: compact the current hero without changing its structure. */
.hero {
  padding-top: 12px;
  padding-bottom: 14px;
}

.hero-card {
  margin-top: 8px;
  padding: 16px 16px 10px;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 13px;
}

.hero-card h1 {
  font-size: clamp(23px, 6.2vw, 31px);
}

.hero-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

  main {
    padding-top: 14px;
  }

@media (min-width: 900px) {
  .hero {
    padding-bottom: 24px;
  }

  .hero-card {
    padding: 26px;
  }

  .hero-card h1 {
    font-size: 36px;
  }

  main {
    padding-top: 24px;
  }
}

@media (min-width: 900px) and (max-width: 1079px) {
  .hero-card {
    padding: 24px;
  }

  .hero-card h1 {
    max-width: 11em;
    font-size: clamp(32px, 3.6vw, 36px);
    line-height: 1.08;
  }

  .hero-card p {
    max-width: 37em;
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Mobile entrance variant 4: compact button cards with icon and title in one row. */
@media (max-width: 899px) {
  .hero-card {
    padding: 18px 18px 12px;
  }

  .hero-card .eyebrow {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.2;
  }

  .hero-card h1 {
    font-size: clamp(27px, 4.2vw, 34px);
    line-height: 1.04;
  }

  .hero-card .hero-long-copy {
    display: none;
  }

  .hero-card .hero-short-copy {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.35;
  }

  .intro-replay-button {
    display: flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    border: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 800;
    background: transparent;
    cursor: pointer;
    transition: transform 160ms ease;
  }

  .intro-replay-button:active {
    transform: scale(0.97);
  }

  .intro-replay-button::after {
    content: "↻";
    font-size: 12px;
    line-height: 1;
  }

  .hero-card .intro-replay-button-mobile {
    display: none;
  }

}

@media (max-width: 480px) {
  .hero-card {
    padding: 16px 16px 11px;
  }

  .hero-card .eyebrow {
    font-size: 11px;
  }

  .hero-card h1 {
    font-size: clamp(24px, 7.6vw, 30px);
  }

  .hero-card .hero-short-copy {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
  }
}

@media (max-width: 340px) {
  .hero-card h1 {
    font-size: 23px;
  }
}

@media (min-width: 900px) {

  .intro-replay-button {
    display: flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    border: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 800;
    background: transparent;
    cursor: pointer;
    transition: transform 160ms ease;
  }

  .intro-replay-button:active {
    transform: scale(0.97);
  }

  .intro-replay-button::after {
    content: "↻";
    font-size: 13px;
    line-height: 1;
  }

  .hero-copy .intro-replay-button-desktop {
    display: flex;
    margin-top: 12px;
  }

}

@media (max-width: 899px) {
  .hero-copy .intro-replay-button-desktop {
    display: none;
  }
}

@media (min-width: 900px) {
  .brand-row,
.hero-card,
main,
.footer-inner {
    width: min(1180px, calc(100% - 68px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .brand-row,
main,
.footer-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .newsletter {
    margin-top: 0;
  }

  main {
    grid-template-columns: minmax(0, 760px) minmax(320px, 360px);
    justify-content: space-between;
  }

  .articles-news {
    max-width: 760px;
  }

  .articles-news .feature-article {
    height: clamp(250px, 24vw, 320px);
    aspect-ratio: auto;
  }

  .articles-news .article-list,
#story-sections,
.conversion-strip {
    max-width: 720px;
  }

  .newsletter {
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }
}

/* News-site desktop rhythm:
   keep the reading area stable like major news homepages, with a fixed-feel
   two-column body and a carousel that stops growing on wide screens. */
@media (min-width: 900px) {
  :root {
    --news-shell: 1120px;
    --news-side: 320px;
    --news-gap: 28px;
  }

  .brand-row,
.hero-card,
main,
.footer-inner {
    width: min(var(--news-shell), calc(100% - 56px));
    max-width: var(--news-shell);
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
    gap: 26px;
  }

  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, var(--news-side));
    gap: var(--news-gap);
    align-items: start;
    justify-content: center;
  }

  .market-watch {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .articles-news {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .articles-news .feature-article {
    width: 100%;
    height: clamp(246px, 26vw, 300px);
    max-height: 300px;
    aspect-ratio: auto;
  }

  .articles-news .carousel-content {
    padding: 20px 18px 18px;
  }

  .articles-news .carousel-content h3 {
    max-width: 94%;
    font-size: clamp(23px, 2.2vw, 30px);
    line-height: 1.12;
  }

  .articles-news .carousel-content h3.is-title-long {
    font-size: clamp(21px, 2vw, 27px);
  }

  .articles-news .carousel-content h3.is-title-extra-long {
    font-size: clamp(19px, 1.8vw, 24px);
  }

  .articles-news .carousel-content p {
    max-width: 90%;
    font-size: 13px;
    line-height: 1.55;
  }

  .articles-news .article-list,
#story-sections,
.conversion-strip {
    max-width: none;
  }

  .articles-news .article-card {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 78px;
    padding: 10px 12px;
  }

  .articles-news .article-thumb {
    width: 94px;
    height: 53px;
  }

  .newsletter {
    position: sticky;
    top: 76px;
    width: 100%;
    max-width: var(--news-side);
    max-height: calc(100dvh - 96px);
    margin-top: 0;
    overflow: auto;
  }
}

@media (min-width: 1180px) {
  :root {
    --news-shell: 1160px;
    --news-side: 340px;
    --news-gap: 34px;
  }

  .articles-news .feature-article {
    height: 300px;
  }
}

@media (min-width: 1440px) {
  :root {
    --news-shell: 1180px;
    --news-side: 340px;
    --news-gap: 36px;
  }

  .articles-news .feature-article {
    height: 304px;
    max-height: 304px;
  }
}

/* Featured articles only:
   the rate monitor stays full-width; the articles area below becomes two columns. */
.featured-layout {
  display: grid;
  gap: 18px;
}

.featured-layout > *,
.articles-news {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 760px) {
  :root {
    --featured-shell: 1120px;
    --featured-side: 300px;
    --featured-gap: 22px;
  }

  .brand-row,
.hero-card,
main,
.footer-inner {
    width: min(var(--featured-shell), calc(100% - 44px));
    max-width: var(--featured-shell);
    margin-left: auto;
    margin-right: auto;
  }

  main {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }

  .market-watch {
    width: 100%;
    margin-bottom: 22px;
  }

  .featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, var(--featured-side));
    gap: var(--featured-gap);
    align-items: start;
  }

  .articles-news {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .articles-news .feature-article {
    width: 100%;
    height: clamp(240px, 28vw, 304px);
    max-height: 304px;
    aspect-ratio: auto;
  }

  .articles-news .article-list,
#story-sections,
.conversion-strip {
    max-width: none;
  }

  .newsletter {
    position: sticky;
    top: 76px;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 96px);
    margin-top: 0;
    overflow: auto;
  }
}

@media (min-width: 1040px) {
  :root {
    --featured-shell: 1160px;
    --featured-side: 330px;
    --featured-gap: 32px;
  }

  .articles-news .feature-article {
    height: 300px;
  }
}

@media (min-width: 1280px) {
  :root {
    --featured-shell: 1180px;
    --featured-side: 340px;
    --featured-gap: 36px;
  }

  .articles-news .feature-article {
    height: 304px;
  }
}

/* Tighten the gap between the sticky top navigation and hero. */
.hero {
  padding-top: 6px;
}

.hero-card {
  margin-top: 4px;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 6px;
  }

  .hero-card {
    margin-top: 4px;
  }
}

/* Desktop hero dock: keep the entrance links compact like the mobile collapsed state. */
@media (min-width: 900px) {
  .hero-card {
    position: relative;
    padding: 18px 26px 14px;
  }

  .hero-card .hero-copy {
    max-width: 680px;
  }

  .hero-card .eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
  }

  .hero-card h1 {
    max-width: none;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.04;
  }

  .hero-card p {
    max-width: 58em;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.42;
  }

  .hero-card .hero-copy .intro-replay-button-desktop {
    min-height: 24px;
    margin-top: 7px;
    padding: 2px 0;
    font-size: 11px;
  }

  .hero-card .hero-copy .intro-replay-button-desktop::after {
    font-size: 11px;
  }
}

/* Research media hero: entrances stay out of the masthead until requested. */
.hero-card {
  overflow: hidden;
  transition:
    padding 200ms ease,
    min-height 200ms ease;
}

.hero-card .intro-replay-button-mobile {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

@media (max-width: 899px) {
  .hero {
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .hero-card {
    padding: 18px 18px 12px;
  }

  .hero-card .intro-replay-button-mobile {
    display: inline-flex;
    font-size: 12px;
  }

  .hero-card .intro-replay-button-mobile::after {
    font-size: 12px;
  }
}

@media (min-width: 900px) {
  .hero-card {
    display: block;
    min-height: 0;
    padding: 18px 26px 14px;
  }

  .hero-card .hero-copy {
    max-width: 760px;
  }
}

.home-quick-toolbar {
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  width: min(430px, calc(100vw - 20px));
  min-height: 50px;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid rgba(236, 99, 62, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(48, 48, 51, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transform-origin: center bottom;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    background-color 180ms ease,
    box-shadow 180ms ease;
  -webkit-backdrop-filter: blur(18px) saturate(1.36);
  backdrop-filter: blur(18px) saturate(1.36);
}

.home-quick-toolbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.renolab-intro-active .home-quick-toolbar,
.is-idle-locked .home-quick-toolbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
}

.home-quick-toolbar-button {
  display: inline-flex;
  min-width: 0;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  color: #6f6968;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 180ms ease,
    transform 160ms ease;
}

.home-quick-toolbar-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.home-quick-toolbar-button:hover,
.home-quick-toolbar-button:focus-visible {
  color: var(--brand-dark);
  background: #fff3ed;
  outline: 0;
}

.home-quick-toolbar-button:active {
  transform: scale(0.96);
}

.home-quick-toolbar-primary {
  color: #fff;
  font-weight: 920;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(236, 99, 62, 0.2);
}

.home-quick-toolbar-primary:hover,
.home-quick-toolbar-primary:focus-visible {
  color: #fff;
  background: var(--brand-dark);
}

@media (max-width: 360px) {
  .home-quick-toolbar {
    gap: 2px;
    min-height: 46px;
    padding: 4px;
  }

  .home-quick-toolbar-button {
    height: 36px;
    gap: 2px;
    padding: 0 4px;
    font-size: 10px;
  }

  .home-quick-toolbar-button svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 760px) and (max-width: 899px) {
  .home-quick-toolbar {
    width: min(500px, calc(100vw - 28px));
    min-height: 54px;
    padding: 6px;
  }

  .home-quick-toolbar-button {
    height: 42px;
    gap: 5px;
    font-size: 12px;
  }
}

@media (min-width: 900px) {
  .home-quick-toolbar {
    top: max(92px, calc(50dvh - 126px));
    right: max(18px, calc((100vw - var(--featured-shell, 1180px)) / 2 - 78px));
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: 64px;
    min-height: 0;
    padding: 8px;
    border-radius: 22px;
    transform: translateX(14px);
    transform-origin: center right;
  }

  .home-quick-toolbar.is-visible {
    transform: translateX(0);
  }

  .renolab-intro-active .home-quick-toolbar,
.is-idle-locked .home-quick-toolbar {
    transform: translateX(14px);
  }

  .home-quick-toolbar-button {
    flex-direction: column;
    height: 54px;
    gap: 4px;
    padding: 0 4px;
    font-size: 11px;
    white-space: normal;
  }

  .home-quick-toolbar-button svg {
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-quick-toolbar,
.home-quick-toolbar-button {
    transition: none;
  }
}

/* story-sections 標題列:2026-07 由 homepage.js 的 ensureTabsWrapStyles 執行期注入樣式合併而來。
   #story-sections 前綴（ID 特異度）維持原本蓋過 .content-section-* 規則的行為，勿降級成 class。 */
#story-sections .content-section-title-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

#story-sections .content-section-title-row h3 {
  display: inline;
  margin: 0;
}

#story-sections .section-more-link {
  display: inline-flex;
  align-items: center;
  color: #8b8584;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

#story-sections .section-more-link:hover {
  color: var(--brand-dark);
}

/* 2026-07 轉化導向 hero:收合機制移除,入口移到全站漢堡選單(/assets/site-menu.css),
   hero 只留文案 + 轉化 CTA,綠葉利率監測改為 hero 下方常駐 ticker。 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.hero-cta-primary {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 8px 20px rgba(93, 39, 18, 0.2);
}

.hero-cta-primary::after {
  content: "→";
}

.hero-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions .intro-replay-button-mobile {
  margin-left: auto;
}

@media (min-width: 900px) {
  .hero-actions {
    margin-top: 14px;
  }

  .hero-actions .intro-replay-button-mobile {
    display: none;
  }

  .hero-cta:hover {
    transform: translateY(-1px);
  }
}

.market-ticker {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.market-ticker .market-title {
  margin-bottom: 6px;
}

.market-ticker .market-strip {
  margin-top: 0;
}

.market-ticker .market-item {
  min-height: 42px;
  padding: 4px 6px;
}

@media (min-width: 900px) {
  .market-ticker {
    width: min(var(--news-shell, 1180px), calc(100% - 56px));
    max-width: var(--news-shell, 1180px);
    margin: 12px auto 0;
    padding: 12px 14px;
  }
}
