:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --soft: rgba(17, 24, 39, 0.06);
  --line: rgba(17, 24, 39, 0.12);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --gold: #b7791f;
  --teal: #0f766e;
  --red: #c2410c;
  --blue: #2563eb;
  --green: #16803c;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.86) 0%, rgba(248, 250, 252, 0.98) 440px, #eef2f7 100%),
    url("../../../../img/local/fx-22.jpg") center top / cover fixed;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 78%);
  pointer-events: none;
}

.page-shell,
.topbar-inner,
.site-footer-inner {
  width: min(1240px, calc(100% - 40px));
}

.topbar {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.topbar-inner {
  min-height: 64px;
}

.brand::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 118, 110, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.74)),
    url("../../../../img/local/fx-08x.jpg") center / cover;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.brand-title {
  color: #0f172a;
  font-weight: 900;
}

.market-tape {
  gap: 10px;
}

.tape-chip {
  border-color: rgba(15, 23, 42, 0.12);
  color: #667085;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tape-chip b {
  color: #111827;
}

.hero {
  min-height: calc(100svh - 64px);
  padding: 30px 0 44px;
}

.hero-grid {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}

.calculator {
  order: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    url("../../../../img/local/fx-03.jpg") center / cover;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: var(--shadow);
}

.calculator::before {
  inset: auto 0 0;
  height: 112px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(183, 121, 31, 0.12), rgba(37, 99, 235, 0.1));
  opacity: 1;
}

.calc-inner {
  padding: 22px;
}

.calc-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.calc-title,
h1,
h2,
.quote strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.calc-title {
  color: #0f172a;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.lang-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}

.lang-toggle select {
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.lang-status {
  color: #667085;
}

.calc-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 4px;
  background: #f1f5f9;
}

.calc-tabs button {
  border: 0;
  color: #475467;
  background: transparent;
}

.calc-tabs button.active {
  color: #ffffff;
  background: #0f766e;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
}

.calc-panel {
  gap: 12px;
}

.field-row {
  grid-template-columns: minmax(0, 1fr) 156px;
}

.field,
.result-box,
.rate-card,
.rank-card,
.crypto-card,
.quote,
.legal-dialog {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.field {
  padding: 13px;
}

.field label {
  color: #667085;
  letter-spacing: 0.04em;
}

.field input,
.field select {
  color: #111827;
}

.field select {
  padding-right: 2px;
}

.swap-row {
  justify-content: flex-start;
  margin-left: 18px;
}

.swap-btn {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.result-box {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(37, 99, 235, 0.08));
}

.result-value {
  color: #0f766e;
}

.result-meta,
.rate-card span,
.story-meta,
.rank-name span,
.crypto-card p,
.quote span,
.legal-dialog p,
.site-footer-inner,
.section-note,
.lead {
  color: #667085;
}

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

.rate-card {
  box-shadow: none;
}

.hero-copy {
  min-height: 640px;
  padding: 34px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.8) 44%, rgba(248, 250, 252, 0.18) 100%),
    url("../../../../img/local/fx-01.jpg") center / cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.edition,
.kicker {
  color: #0f766e;
  letter-spacing: 0.08em;
}

.edition::before {
  background: #0f766e;
}

h1 {
  max-width: 760px;
  color: #0f172a;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 0.98;
  font-weight: 950;
}

.lead {
  max-width: 560px;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.65;
}

.hero-stats {
  max-width: 640px;
  gap: 12px;
}

.hero-stat {
  border-top: 0;
  border-left: 3px solid rgba(15, 118, 110, 0.36);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stat strong {
  color: #0f172a;
}

.hero-stat span {
  color: #667085;
}

section {
  padding: 62px 0;
}

.section-head {
  align-items: flex-end;
  border-bottom: 1px solid rgba(17, 24, 39, 0.14);
}

h2 {
  color: #0f172a;
  font-weight: 950;
  line-height: 1.02;
}

.lead-story-grid {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

.lead-story,
.side-stack article,
.feature-card,
.policy-card,
.crypto-card,
.rank-card {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.lead-story {
  min-height: 620px;
  grid-template-rows: minmax(330px, 1fr) auto;
}

.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.18));
  pointer-events: none;
}

.story-body {
  padding: 20px;
}

.story-body h3,
.policy-card h3,
.crypto-card h3 {
  color: #0f172a;
  font-weight: 900;
}

.story-body p,
.policy-card p {
  color: #667085;
}

.tag {
  color: #ffffff;
  background: #0f766e;
  border-radius: 8px;
}

.side-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.side-stack article {
  grid-template-columns: 1fr;
  grid-template-rows: 178px auto;
  min-height: auto;
}

.side-stack .story-body {
  padding: 16px;
}

.hot-river {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hot-river article {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.hot-river .story-image {
  min-height: 142px;
}

.hot-river .story-body {
  padding: 14px;
}

.hot-river h3 {
  font-size: 18px;
}

.hot-river p {
  display: none;
}

.news-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.feature-card,
.feature-card:nth-child(1),
.feature-card:nth-child(6) {
  grid-column: span 3;
  grid-template-rows: 164px auto;
  min-height: 360px;
}

.feature-card:nth-child(1),
.feature-card:nth-child(5) {
  grid-column: span 6;
  grid-template-rows: 260px auto;
}

.markets-band {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.06)),
    rgba(255, 255, 255, 0.52);
  border-block: 1px solid rgba(17, 24, 39, 0.12);
}

.markets-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.rank-card {
  background: #ffffff;
}

.rank-item {
  border-bottom-color: rgba(17, 24, 39, 0.1);
}

.rank-no {
  color: #b7791f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 950;
}

.rank-share {
  color: #0f766e;
}

.visual-board {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(168px, 1fr));
}

.policy-card {
  min-height: 168px;
  padding: 14px;
}

.policy-card:first-child {
  grid-row: span 2;
  min-height: 360px;
  padding: 18px;
}

.policy-card:not(:first-child) {
  display: grid;
  grid-template-columns: minmax(156px, 0.45fr) minmax(0, 0.55fr);
  align-items: end;
  column-gap: 16px;
  overflow: hidden;
}

.policy-card:not(:first-child) img {
  position: relative;
  inset: auto;
  grid-row: 1 / span 3;
  width: 100%;
  height: 100%;
  min-height: 136px;
  border-radius: 6px;
  object-fit: cover;
  z-index: 0;
}

.policy-card:not(:first-child)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: -2;
}

.policy-card:not(:first-child) .tag,
.policy-card:not(:first-child) h3,
.policy-card:not(:first-child) p {
  grid-column: 2;
}

.policy-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.92));
}

.crypto-strip {
  grid-template-columns: minmax(0, 1fr);
}

.crypto-hero {
  min-height: 420px;
  padding: 28px;
  border-color: rgba(17, 24, 39, 0.12);
}

.crypto-hero::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.16));
}

.crypto-hero h2,
.crypto-hero .kicker {
  color: #ffffff;
}

.crypto-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote {
  min-height: 250px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.quote:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)),
    url("../../../../img/local/chart-fx-01.jpg") center / cover;
}

.quote:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)),
    url("../../../../img/local/chart-fx-02.jpg") center / cover;
}

.quote:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)),
    url("../../../../img/local/chart-fx-03.jpg") center / cover;
}

.quote:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)),
    url("../../../../img/local/chart-fx-04.jpg") center / cover;
}

.quote strong {
  color: #0f172a;
  font-weight: 950;
}

.site-footer {
  background: #ffffff;
  border-top-color: rgba(17, 24, 39, 0.12);
}

.footer-actions button,
.legal-close {
  border-color: rgba(15, 118, 110, 0.3);
  color: #0f172a;
  background: #ffffff;
}

.legal-close {
  color: #ffffff;
  background: #0f766e;
}

.legal-modal {
  background: rgba(15, 23, 42, 0.42);
}

@media (max-width: 1100px) {
  .hero-grid,
  .lead-story-grid,
  .markets-layout {
    grid-template-columns: 1fr;
  }

  .calculator {
    order: -1;
  }

  .hero-copy {
    min-height: 520px;
  }

  .hot-river,
  .crypto-list,
  .quote-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .feature-card,
  .feature-card:nth-child(1),
  .feature-card:nth-child(5),
  .feature-card:nth-child(6) {
    grid-column: auto;
    grid-template-rows: 220px auto;
  }

  .visual-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .page-shell,
  .topbar-inner,
  .site-footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .topbar-inner {
    min-height: 58px;
  }

  .brand::before {
    width: 28px;
    height: 28px;
  }

  .market-tape {
    max-width: 50vw;
  }

  .hero {
    padding: 14px 0 30px;
  }

  .hero-grid {
    gap: 14px;
  }

  .calc-inner,
  .hero-copy {
    padding: 14px;
  }

  .calc-header {
    display: grid;
    gap: 10px;
  }

  .lang-control {
    justify-items: stretch;
  }

  .lang-status {
    max-width: none;
    text-align: left;
  }

  .lang-toggle select {
    width: 100%;
  }

  .field-row,
  .rate-grid,
  .hero-stats,
  .side-stack,
  .hot-river,
  .news-grid,
  .visual-board,
  .crypto-list,
  .quote-wall {
    grid-template-columns: 1fr;
  }

  .swap-row {
    justify-content: center;
    margin-left: 0;
  }

  .hero-copy {
    min-height: 460px;
    background:
      linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.88) 58%, rgba(248, 250, 252, 0.18) 100%),
      url("../../../../img/local/fx-01.jpg") center / cover;
  }

  h1 {
    font-size: clamp(35px, 12vw, 54px);
  }

  .lead-story,
  .side-stack article,
  .feature-card,
  .feature-card:nth-child(1),
  .feature-card:nth-child(5),
  .feature-card:nth-child(6) {
    grid-template-rows: 220px auto;
    min-height: auto;
  }

  .hot-river p,
  .side-stack p {
    display: block;
  }

  .policy-card {
    min-height: 260px;
  }

  .policy-card img {
    object-position: left center;
  }

  .policy-card:not(:first-child) img {
    object-position: left center;
  }

  .crypto-hero {
    min-height: 340px;
    padding: 16px;
  }

  .site-footer-inner {
    display: grid;
  }
}

@media (max-width: 640px) {
  #policyBoard .policy-card,
  #policyBoard .policy-card:first-child,
  #policyBoard .policy-card:not(:first-child) {
    display: grid;
    grid-template-columns: 56% minmax(0, 44%);
    gap: 8px;
    min-height: 230px;
    padding: 10px;
    align-items: stretch;
  }

  #policyBoard .policy-card img,
  #policyBoard .policy-card:not(:first-child) img {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1 / span 3;
    justify-self: stretch;
    align-self: stretch;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 210px;
    max-width: none;
    border-radius: 6px;
    object-fit: cover;
    object-position: left center !important;
    transform: none;
    z-index: 0;
  }

  #policyBoard .policy-card .tag,
  #policyBoard .policy-card h3,
  #policyBoard .policy-card p,
  #policyBoard .policy-card:not(:first-child) .tag,
  #policyBoard .policy-card:not(:first-child) h3,
  #policyBoard .policy-card:not(:first-child) p {
    grid-column: 2;
    align-self: start;
  }
}

.calculator {
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(9, 15, 28, 0.97), rgba(14, 27, 48, 0.96) 46%, rgba(15, 118, 110, 0.88)),
    url("../../../../img/local/fx-03.jpg") center / cover;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.22);
}

.calculator::before {
  height: auto;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(0deg, rgba(15, 118, 110, 0.26), transparent 58%);
}

.calculator .calc-inner {
  display: grid;
  gap: 14px;
}

.calculator .calc-header {
  margin-bottom: 0;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.calculator .calc-title {
  color: #ffffff;
}

.calculator .lang-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.calculator .lang-toggle select {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.calculator .lang-toggle select option,
.calculator .field select option {
  color: #111827;
}

.calculator .lang-status,
.calculator .field label,
.calculator .result-meta,
.calculator .rate-card span {
  color: rgba(248, 250, 252, 0.68);
}

.calculator .calc-tabs {
  margin-bottom: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.calculator .calc-tabs button {
  color: rgba(248, 250, 252, 0.72);
}

.calculator .calc-tabs button.active {
  color: #052e2b;
  background: linear-gradient(135deg, #ccfbf1, #fef3c7);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.22);
}

.calculator .field,
.calculator .result-box,
.calculator .rate-card {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.calculator .field input,
.calculator .field select {
  color: #ffffff;
}

.calculator .field input {
  font-size: clamp(30px, 5vw, 46px);
}

.calculator .swap-row {
  margin: -4px 0;
  justify-content: center;
}

.calculator .swap-btn {
  width: 38px;
  height: 38px;
  color: #052e2b;
  background: #ccfbf1;
  border-color: rgba(204, 251, 241, 0.78);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.26);
}

.calculator .result-box {
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.2), rgba(37, 99, 235, 0.14));
}

.calculator .result-value {
  color: #ccfbf1;
}

.calculator .rate-grid {
  margin-top: 0;
}

.calculator .rate-card {
  padding: 9px 10px;
}

.calculator .rate-card b {
  color: #ffffff;
}

@media (max-width: 640px) {
  .calculator {
    margin-inline: -2px;
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.24);
  }

  .calculator .calc-inner {
    padding: 12px;
    gap: 10px;
  }

  .calculator .calc-header {
    grid-template-columns: 1fr;
    padding-bottom: 10px;
    gap: 8px;
  }

  .calculator .calc-title {
    font-size: 21px;
    line-height: 1.12;
  }

  .calculator .lang-control {
    gap: 4px;
  }

  .calculator .lang-toggle {
    padding: 3px;
  }

  .calculator .lang-toggle select {
    min-height: 34px;
    padding-block: 6px;
    font-size: 13px;
  }

  .calculator .calc-tabs {
    gap: 4px;
    padding: 3px;
  }

  .calculator .calc-tabs button {
    min-height: 36px;
    font-size: 13px;
  }

  .calculator .calc-panel {
    gap: 8px;
  }

  .calculator .field-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .calculator .field {
    padding: 9px;
  }

  .calculator .field label {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .calculator .field input {
    font-size: 28px;
    line-height: 1.1;
  }

  .calculator .field select {
    min-height: 34px;
    font-size: 13px;
    font-weight: 800;
  }

  .calculator .swap-row {
    height: 18px;
    margin: -2px 0;
    align-items: center;
  }

  .calculator .swap-btn {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .calculator .result-box {
    padding: 10px;
  }

  .calculator .result-value {
    font-size: clamp(25px, 8vw, 36px);
  }

  .calculator .result-meta {
    margin-top: 6px;
    gap: 5px;
    font-size: 11px;
  }

  .calculator .rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .calculator .rate-card {
    min-height: 72px;
    padding: 8px;
  }

  .calculator .rate-card b {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .calculator .rate-card span {
    font-size: 10px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }
}

#hot,
#magazine {
  position: relative;
}

#hot .section-head,
#magazine .section-head {
  margin-bottom: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

#hot .lead-story-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 16px;
}

#hot .lead-story,
#hot .side-stack article,
#hot .hot-river article,
#magazine .feature-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

#hot .lead-story {
  min-height: 560px;
  grid-template-rows: minmax(360px, 1fr) auto;
  background: #ffffff;
}

#hot .lead-story .story-image {
  min-height: 360px;
}

#hot .lead-story .story-body {
  position: relative;
  margin: -58px 18px 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

#hot .lead-story .story-body h3 {
  font-size: clamp(27px, 3.8vw, 44px);
}

#hot .side-stack {
  grid-template-columns: 1fr;
  gap: 12px;
}

#hot .side-stack article {
  grid-template-columns: 156px minmax(0, 1fr);
  grid-template-rows: auto;
  min-height: 176px;
}

#hot .side-stack .story-image {
  min-height: 100%;
}

#hot .side-stack .story-body {
  padding: 15px;
}

#hot .side-stack h3 {
  font-size: 19px;
  line-height: 1.16;
}

#hot .side-stack p,
#hot .hot-river p,
#magazine .feature-card p {
  font-size: 13px;
  line-height: 1.55;
}

#hot .hot-river {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

#hot .hot-river .story-image {
  min-height: 156px;
}

#hot .hot-river p {
  display: block;
}

#magazine .news-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

#magazine .feature-card,
#magazine .feature-card:nth-child(1),
#magazine .feature-card:nth-child(5),
#magazine .feature-card:nth-child(6) {
  grid-column: span 2;
  grid-template-rows: 172px auto;
  min-height: 342px;
}

#magazine .feature-card:nth-child(1),
#magazine .feature-card:nth-child(8) {
  grid-column: span 3;
  grid-template-rows: 238px auto;
}

@media (min-width: 901px) {
  #magazine .feature-card,
  #magazine .feature-card:nth-child(1),
  #magazine .feature-card:nth-child(5),
  #magazine .feature-card:nth-child(6) {
    grid-template-rows: 210px minmax(300px, auto);
    min-height: 540px;
  }

  #magazine .feature-card:nth-child(1),
  #magazine .feature-card:nth-child(8) {
    grid-template-rows: 300px minmax(290px, auto);
    min-height: 620px;
  }

  #magazine .feature-card .story-body {
    padding: 28px 28px 30px;
    gap: 15px;
  }

  #magazine .feature-card .story-body h3 {
    margin-top: 4px;
    font-size: 23px;
    line-height: 1.24;
  }

  #magazine .feature-card .story-body p {
    font-size: 15px;
    line-height: 1.72;
  }

  #magazine .feature-card .story-meta {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
}

#magazine .feature-card .story-body {
  padding: 20px 20px 22px;
  display: grid;
  align-content: start;
  gap: 10px;
}

#magazine .feature-card .story-image {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

#magazine .feature-card .story-body h3 {
  margin: 2px 0 0;
  line-height: 1.18;
}

#magazine .feature-card .story-body p {
  margin-top: 0;
}

#magazine .feature-card .story-meta {
  margin-top: 4px;
}

@media (min-width: 901px) {
  #magazine .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  #magazine .feature-card,
  #magazine .feature-card:nth-child(1),
  #magazine .feature-card:nth-child(5),
  #magazine .feature-card:nth-child(6),
  #magazine .feature-card:nth-child(8) {
    grid-column: auto;
    grid-template-columns: minmax(250px, 0.43fr) minmax(0, 0.57fr);
    grid-template-rows: minmax(340px, auto);
    min-height: 340px;
  }

  #magazine .feature-card:nth-child(1),
  #magazine .feature-card:nth-child(8) {
    grid-column: span 2;
    grid-template-columns: minmax(420px, 0.46fr) minmax(0, 0.54fr);
    min-height: 390px;
  }

  #magazine .feature-card .story-image {
    min-height: 100%;
    height: 100%;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
    border-bottom: 0;
  }

  #magazine .feature-card .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #magazine .feature-card .story-body {
    padding: 34px 36px;
    gap: 17px;
    align-content: center;
  }

  #magazine .feature-card .story-body h3 {
    margin: 2px 0 0;
    font-size: 24px;
    line-height: 1.28;
  }

  #magazine .feature-card:nth-child(1) .story-body h3,
  #magazine .feature-card:nth-child(8) .story-body h3 {
    font-size: 30px;
    line-height: 1.22;
  }

  #magazine .feature-card .story-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.82;
  }

  #magazine .feature-card .story-meta {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
}

#hot .tag,
#magazine .tag {
  border-radius: 6px;
  background: #111827;
}

#hot .story-meta {
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  #hot .lead-story-grid,
  #hot .hot-river,
  #magazine .news-grid {
    grid-template-columns: 1fr;
  }

  #magazine .feature-card,
  #magazine .feature-card:nth-child(1),
  #magazine .feature-card:nth-child(5),
  #magazine .feature-card:nth-child(6),
  #magazine .feature-card:nth-child(8) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  #hot,
  #magazine {
    padding-block: 34px;
  }

  #hot .section-head,
  #magazine .section-head {
    margin-bottom: 14px;
    padding: 14px 0;
  }

  #hot .section-head h2,
  #magazine .section-head h2 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.04;
  }

  #hot .section-note,
  #magazine .section-note {
    font-size: 13px;
    line-height: 1.52;
  }

  #hot .lead-story {
    min-height: auto;
    grid-template-rows: 248px auto;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
  }

  #hot .lead-story .story-image {
    min-height: 248px;
  }

  #hot .lead-story .story-body {
    margin: -34px 10px 10px;
    padding: 14px;
  }

  #hot .lead-story .story-body h3 {
    font-size: 25px;
    line-height: 1.08;
  }

  #hot .lead-story .story-body p {
    font-size: 13px;
    line-height: 1.58;
  }

  #hot .side-stack,
  #hot .hot-river,
  #magazine .news-grid {
    gap: 9px;
  }

  #hot .side-stack article,
  #hot .hot-river article,
  #magazine .feature-card,
  #magazine .feature-card:nth-child(1),
  #magazine .feature-card:nth-child(5),
  #magazine .feature-card:nth-child(6),
  #magazine .feature-card:nth-child(8) {
    min-height: auto;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }

  #hot .side-stack .story-image,
  #hot .hot-river .story-image,
  #magazine .feature-card .story-image {
    min-height: 100%;
    height: 100%;
  }

  #hot .side-stack .story-image img,
  #hot .hot-river .story-image img,
  #magazine .feature-card .story-image img {
    height: 100%;
    min-height: 158px;
  }

  #hot .side-stack .story-body,
  #hot .hot-river .story-body,
  #magazine .feature-card .story-body {
    padding: 11px;
  }

  #hot .side-stack h3,
  #hot .hot-river h3,
  #magazine .feature-card .story-body h3 {
    margin: 8px 0 6px;
    font-size: 16px;
    line-height: 1.16;
  }

  #hot .side-stack p,
  #hot .hot-river p,
  #magazine .feature-card p {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.42;
  }

  #hot .story-meta,
  #magazine .story-meta {
    margin-top: 8px;
    padding-top: 8px;
    gap: 5px;
    font-size: 10px;
  }

  #hot .tag,
  #magazine .tag {
    padding: 4px 7px;
    font-size: 9px;
    letter-spacing: 0.03em;
  }
}

:root {
  color-scheme: dark;
  --ink: #f3efe4;
  --muted: #a4aec3;
  --line: rgba(226, 213, 183, 0.15);
  --panel: rgba(16, 24, 42, 0.88);
  --panel-strong: rgba(11, 17, 30, 0.95);
  --gold: #dcb56d;
  --teal: #63d8c6;
  --red: #ff7a70;
  --blue: #8fb4f9;
  --green: #92dd80;
  --rose: #f0a7c8;
  --violet: #c0aaf5;
  --orange: #f6b26b;
  --cyan: #6fd7ef;
  --shadow: 0 26px 76px rgba(2, 6, 14, 0.52);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(220, 181, 109, 0.13), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(99, 216, 198, 0.08), transparent 30%),
    radial-gradient(circle at 50% 108%, rgba(84, 106, 168, 0.2), transparent 48%),
    linear-gradient(180deg, #0c1222 0%, #0d1425 44%, #0a0f1c 100%);
  color: var(--ink);
}

body::before {
  background-image:
    linear-gradient(rgba(226, 213, 183, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 213, 183, 0.05) 1px, transparent 1px);
}

.topbar {
  background: rgba(10, 15, 28, 0.84);
  border-bottom-color: rgba(220, 181, 109, 0.2);
  box-shadow: 0 14px 42px rgba(2, 6, 14, 0.42);
}

.brand::before {
  border-color: rgba(220, 181, 109, 0.5);
  background: linear-gradient(135deg, #33415e, #131c30 52%, #6d5426);
  box-shadow: 0 12px 28px rgba(220, 181, 109, 0.18);
}

.brand-title {
  color: #f3efe4;
}

.tape-chip {
  border-color: rgba(220, 181, 109, 0.16);
  color: #a4aec3;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.tape-chip:nth-child(2n) {
  background: rgba(255, 255, 255, 0.035);
}

.tape-chip:nth-child(3n) {
  background: rgba(255, 255, 255, 0.035);
}

.tape-chip b,
h1,
h2,
.hero-stat strong,
.story-body h3,
.policy-card h3,
.crypto-card h3,
.quote strong,
.rank-name b {
  color: #f3efe4;
}

.edition,
.kicker {
  color: #dcb56d;
}

.edition::before {
  background: linear-gradient(90deg, #dcb56d, #63d8c6);
}

.lead,
.section-note,
.story-body p,
.policy-card p,
.crypto-card p,
.quote span,
.story-meta,
.rank-name span,
.result-meta,
.rate-card span,
.site-footer-inner,
.legal-dialog p {
  color: #a4aec3;
}

.hero-copy {
  border-color: rgba(220, 181, 109, 0.2);
  background:
    linear-gradient(155deg, rgba(14, 21, 38, 0.95) 0%, rgba(10, 15, 28, 0.8) 52%, rgba(10, 15, 28, 0.32) 100%),
    url("../../../../img/local/fx-01.jpg") center / cover;
  box-shadow: var(--shadow);
}

.hero-stat {
  border-left-color: rgba(220, 181, 109, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.hero-stat:nth-child(2) {
  border-left-color: rgba(99, 216, 198, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-stat:nth-child(3) {
  border-left-color: rgba(143, 180, 249, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.calculator {
  background:
    linear-gradient(150deg, rgba(19, 27, 46, 0.98), rgba(10, 15, 28, 0.96) 48%, rgba(45, 35, 16, 0.92)),
    url("../../../../img/local/fx-03.jpg") center / cover;
  border-color: rgba(220, 181, 109, 0.3);
  box-shadow: 0 30px 90px rgba(2, 6, 14, 0.55);
}

.calculator::before {
  background:
    linear-gradient(120deg, rgba(220, 181, 109, 0.12), transparent 40%),
    radial-gradient(circle at 82% 14%, rgba(220, 181, 109, 0.18), transparent 32%),
    radial-gradient(circle at 10% 88%, rgba(99, 216, 198, 0.1), transparent 30%);
}

.calculator .calc-tabs button.active,
.calculator .swap-btn,
.legal-close {
  color: #241a06;
  background: linear-gradient(135deg, #f0deb0, #dcb56d 58%, #c69a4e);
  box-shadow: 0 12px 30px rgba(220, 181, 109, 0.26);
}

.calculator .result-value {
  color: #f0deb0;
}

.calculator .result-box {
  background: linear-gradient(135deg, rgba(220, 181, 109, 0.14), rgba(99, 216, 198, 0.08));
}

.calculator .field,
.calculator .rate-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(226, 213, 183, 0.16);
}

.lead-story,
.side-stack article,
.feature-card,
.policy-card,
.crypto-card,
.rank-card,
.quote,
#hot .lead-story,
#hot .side-stack article,
#hot .hot-river article,
#magazine .feature-card {
  border-color: rgba(226, 213, 183, 0.15);
  background: rgba(16, 24, 42, 0.88);
  box-shadow: 0 18px 52px rgba(2, 6, 14, 0.38);
}

.lead-story,
.feature-card:nth-child(4n + 1),
.quote:nth-child(4n + 1) {
  background: linear-gradient(180deg, rgba(19, 28, 49, 0.94), rgba(12, 18, 33, 0.92));
}

.side-stack article:nth-child(3n + 1),
.feature-card:nth-child(4n + 2),
.crypto-card:nth-child(4n + 2),
.quote:nth-child(4n + 2) {
  background: linear-gradient(180deg, rgba(15, 25, 44, 0.94), rgba(10, 18, 32, 0.92));
}

.side-stack article:nth-child(3n + 2),
.feature-card:nth-child(4n + 3),
.crypto-card:nth-child(4n + 3),
.quote:nth-child(4n + 3) {
  background: linear-gradient(180deg, rgba(20, 27, 46, 0.94), rgba(12, 17, 30, 0.92));
}

.side-stack article:nth-child(3n),
.feature-card:nth-child(4n),
.crypto-card:nth-child(4n),
.quote:nth-child(4n) {
  background: linear-gradient(180deg, rgba(22, 28, 47, 0.94), rgba(13, 18, 31, 0.92));
}

.tag,
#hot .tag,
#magazine .tag {
  color: #241a06;
  background: linear-gradient(135deg, #f0deb0, #dcb56d);
  box-shadow: 0 8px 18px rgba(220, 181, 109, 0.16);
}

article:nth-child(2n) .tag,
.crypto-card:nth-child(2n) .tag,
.policy-card:nth-child(2n) .tag {
  color: #06231f;
  background: linear-gradient(135deg, #8fe8dc, #5fd0cd);
}

article:nth-child(3n) .tag,
.crypto-card:nth-child(3n) .tag,
.policy-card:nth-child(3n) .tag {
  color: #0e1a36;
  background: linear-gradient(135deg, #a9c4fb, #c9b8f7);
}

.markets-band {
  background:
    linear-gradient(135deg, rgba(220, 181, 109, 0.06), rgba(99, 216, 198, 0.05), rgba(143, 180, 249, 0.05)),
    rgba(10, 15, 28, 0.72);
  border-block-color: rgba(226, 213, 183, 0.15);
}

.rank-no {
  color: #dcb56d;
}

.rank-share {
  color: #63d8c6;
}

.crypto-hero::after {
  background: linear-gradient(90deg, rgba(7, 11, 21, 0.92), rgba(7, 11, 21, 0.4) 55%, rgba(7, 11, 21, 0.32));
}

.site-footer {
  background: rgba(8, 12, 22, 0.95);
  border-top-color: rgba(226, 213, 183, 0.15);
}

.footer-actions button {
  color: #f3efe4;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(226, 213, 183, 0.22);
}

.legal-dialog {
  background: linear-gradient(180deg, #121a2e, #0b1120);
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .hero-copy {
    background:
      linear-gradient(180deg, rgba(12, 18, 33, 0.96) 0%, rgba(10, 15, 28, 0.88) 58%, rgba(10, 15, 28, 0.42) 100%),
      url("../../../../img/local/fx-01.jpg") center / cover;
  }
}

.section-head {
  border-bottom-color: rgba(226, 213, 183, 0.16);
}

#hot .section-head,
#magazine .section-head {
  border-top-color: rgba(226, 213, 183, 0.12);
  border-bottom-color: rgba(226, 213, 183, 0.16);
}

.rank-item {
  border-bottom-color: rgba(226, 213, 183, 0.14);
}

#hot .lead-story .story-body {
  border-color: rgba(226, 213, 183, 0.15);
  background: rgba(14, 21, 38, 0.96);
}

.policy-card:not(:first-child)::before {
  background: rgba(15, 22, 38, 0.94);
}

.policy-card::after {
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.14), rgba(8, 12, 22, 0.9));
}

.quote:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(12, 18, 33, 0.88), rgba(10, 15, 28, 0.94)),
    url("../../../../img/local/chart-fx-01.jpg") center / cover;
}

.quote:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(12, 18, 33, 0.88), rgba(10, 15, 28, 0.94)),
    url("../../../../img/local/chart-fx-02.jpg") center / cover;
}

.quote:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(12, 18, 33, 0.88), rgba(10, 15, 28, 0.94)),
    url("../../../../img/local/chart-fx-03.jpg") center / cover;
}

.quote:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(12, 18, 33, 0.88), rgba(10, 15, 28, 0.94)),
    url("../../../../img/local/chart-fx-04.jpg") center / cover;
}

.legal-modal {
  background: rgba(4, 7, 14, 0.72);
}
