/* Morning Times — currency pair pages (converter-first, mobile-first) */
html body.mtx-currency-page .entry-content {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: 0 !important;
  overflow-x: clip !important;
}

html body .mtx-fx-widget,
html body .mtx-fx-widget * {
  box-sizing: border-box !important;
}

html body .mtx-fx-widget {
  background: #fff !important;
  border: 1px solid var(--mt-line, #e2e7e5) !important;
  border-radius: 10px !important;
  padding: 20px 18px 18px !important;
  margin: 0 0 22px !important;
  box-shadow: 0 2px 14px rgba(30, 58, 95, 0.07) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: clip !important;
}

html body .mtx-fx-widget--error {
  border-color: #e8b4b4 !important;
  background: #fff8f8 !important;
}

html body .mtx-fx-byline {
  font-size: 13px !important;
  color: var(--mt-muted, #6b7480) !important;
  margin: 0 0 18px !important;
  border: 0 !important;
  padding-top: 4px !important;
  border-top: 1px solid var(--mt-line, #eef1f0) !important;
}

html body .mtx-fx-byline a {
  color: var(--mt-navy, #1e3a5f) !important;
  border-bottom: 0 !important;
  font-weight: 600 !important;
}

html body .mtx-reviewed {
  color: #2d6a4f !important;
}

/* ---- Snapshot (optional, data-driven) ---- */
html body .mtx-fx-snapshot {
  background: #f8f9fb !important;
  border: 1px solid var(--mt-line, #e2e7e5) !important;
  border-radius: 8px !important;
  padding: 14px 16px 12px !important;
  margin: 0 0 16px !important;
}

html body .mtx-fx-snapshot--error {
  border-color: #e8b4b4 !important;
  background: #fff8f8 !important;
}

html body .mtx-fx-snapshot-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 16px !important;
  margin: 0 0 10px !important;
}

html body .mtx-fx-snapshot-grid > div {
  margin: 0 !important;
}

html body .mtx-fx-snapshot-grid dt {
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #6b7280 !important;
  margin: 0 0 2px !important;
}

html body .mtx-fx-snapshot-grid dd {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: var(--mt-ink, #101418) !important;
}

html body .mtx-fx-change.is-up {
  color: #2d6a4f !important;
}

html body .mtx-fx-change.is-down {
  color: #b83232 !important;
}

html body .mtx-fx-snapshot-note {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

html body .mtx-fx-converter {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body .mtx-fx-field {
  display: block !important;
  margin: 0 !important;
}

html body .mtx-fx-field-label {
  display: block !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #6b7280 !important;
  margin: 0 0 5px !important;
  font-weight: 600 !important;
}

html body .mtx-fx-field-row {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: 1.5px solid var(--mt-line, #d8ddda) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

html body .mtx-fx-field-row:focus-within {
  border-color: var(--mt-navy, #1e3a5f) !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12) !important;
}

html body .mtx-fx-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  font-family: var(--mt-serif, Georgia, serif) !important;
  font-size: clamp(20px, 4.2vw, 24px) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--mt-ink, #101418) !important;
  padding: 10px 12px !important;
  -moz-appearance: textfield !important;
}

html body .mtx-fx-input::-webkit-outer-spin-button,
html body .mtx-fx-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

html body .mtx-fx-cur {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 10px !important;
  min-width: 56px !important;
  justify-content: center !important;
  background: #f4f6f8 !important;
  border: 0 !important;
  border-left: 1px solid var(--mt-line, #e2e7e5) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: var(--mt-navy, #1e3a5f) !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

html body .mtx-fx-cur:hover {
  background: #e8edf3 !important;
}

html body .mtx-fx-chevron {
  font-size: 10px !important;
  opacity: 0.75 !important;
  line-height: 1 !important;
}

html body .mtx-fx-swap {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--mt-line, #d8ddda) !important;
  background: #fff !important;
  color: var(--mt-navy, #1e3a5f) !important;
  cursor: pointer !important;
  z-index: 2 !important;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.14) !important;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease !important;
}

html body .mtx-fx-swap-icon {
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

html body .mtx-fx-swap:hover {
  background: var(--mt-navy, #1e3a5f) !important;
  color: #fff !important;
}

html body .mtx-fx-widget.is-swapped .mtx-fx-swap {
  transform: translate(-50%, -50%) rotate(180deg) !important;
}

html body .mtx-fx-rateline {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin: 12px 0 16px !important;
  text-align: center !important;
  line-height: 1.45 !important;
  max-width: 100% !important;
}

html body .mtx-fx-rate-current {
  color: var(--mt-ink, #101418) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
}

/* ---- Grid: popular conversions + trend ---- */
html body .mtx-fx-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  align-items: start !important;
  border-top: 1px solid var(--mt-line, #eef1f0) !important;
  padding-top: 14px !important;
}

html body .mtx-fx-grid--single {
  grid-template-columns: 1fr !important;
}

html body .mtx-fx-col {
  min-width: 0 !important;
}

html body .mtx-fx-subhead {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #6b7280 !important;
  margin: 0 0 10px !important;
  font-weight: 700 !important;
}

html body .mtx-fx-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
  margin: 0 !important;
}

html body .mtx-fx-table th,
html body .mtx-fx-table td {
  padding: 7px 6px !important;
  border-bottom: 1px solid var(--mt-line, #eef1f0) !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body .mtx-fx-table th:first-child,
html body .mtx-fx-table td:first-child {
  width: 38% !important;
  white-space: nowrap !important;
}

html body .mtx-fx-table th:last-child,
html body .mtx-fx-table td:last-child {
  width: 62% !important;
}

html body .mtx-fx-table th {
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #6b7280 !important;
}

html body .mtx-fx-amt {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  font-weight: 600 !important;
  color: var(--mt-navy, #1e3a5f) !important;
  cursor: pointer !important;
  border-bottom: 1px dotted currentColor !important;
}

html body .mtx-fx-amt:hover {
  color: var(--mt-amber, #c8952a) !important;
}

html body .mtx-fx-table td.mtx-fx-conv {
  font-variant-numeric: tabular-nums !important;
  font-weight: 600 !important;
  color: var(--mt-ink, #101418) !important;
  text-align: right !important;
}

html body .mtx-fx-table th.mtx-fx-th-to {
  text-align: right !important;
}

/* ---- Trend chart ---- */
html body .mtx-fx-trend-svg {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

html body .mtx-fx-trend-grid {
  stroke: #e8eaed !important;
  stroke-width: 1 !important;
}

html body .mtx-fx-trend-ylabel {
  fill: #9ca3af !important;
  font-size: 8px !important;
  font-family: system-ui, sans-serif !important;
}

html body .mtx-fx-trend-point {
  fill: #c5cdd8 !important;
  stroke: none !important;
}

html body .mtx-fx-trend-today-stat {
  color: var(--mt-navy, #1e3a5f) !important;
  font-weight: 600 !important;
}

html body .mtx-fx-trend-today-stat strong {
  font-variant-numeric: tabular-nums !important;
}

html body .mtx-fx-trend-dot {
  fill: var(--mt-amber, #c8952a) !important;
  stroke: #fff !important;
  stroke-width: 1.5 !important;
}

html body .mtx-fx-live-note {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin: 0 0 10px !important;
  line-height: 1.5 !important;
}

html body .mtx-fx-live-note strong {
  color: var(--mt-ink, #101418) !important;
}

html body .mtx-fx-trend-area {
  fill: rgba(30, 58, 95, 0.08) !important;
  stroke: none !important;
}

html body .mtx-fx-trend-line {
  fill: none !important;
  stroke: var(--mt-navy, #1e3a5f) !important;
  stroke-width: 2 !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
}

html body .mtx-fx-trend-axis {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  color: #6b7280 !important;
  margin: 2px 0 8px !important;
}

html body .mtx-fx-trend-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 12px !important;
  font-size: 12px !important;
  color: #6b7280 !important;
}

html body .mtx-fx-trend-stats strong {
  color: var(--mt-ink, #101418) !important;
  font-variant-numeric: tabular-nums !important;
}

html body .mtx-fx-trend-empty {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

/* ---- Note + source ---- */
html body .mtx-fx-note {
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #6b7280 !important;
  margin: 16px 0 0 !important;
  border-top: 1px solid var(--mt-line, #eef1f0) !important;
  padding-top: 12px !important;
}

html body .mtx-fx-note strong {
  color: var(--mt-ink, #101418) !important;
}

html body .mtx-fx-source a {
  color: var(--mt-navy, #1e3a5f) !important;
}

/* ---- Timeless body copy ---- */
html body .mtx-fx-facts {
  margin: 0 0 18px !important;
  padding-left: 1.1em !important;
}

html body .mtx-fx-facts li {
  margin: 0 0 6px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

html body .mtx-fx-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 16px 0 20px !important;
  list-style: none !important;
  padding: 0 !important;
}

html body .mtx-fx-tags li {
  margin: 0 !important;
}

html body .mtx-fx-tags span {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: #f2efe8 !important;
  color: #5c4a12 !important;
  border: 1px solid #e8dfc8 !important;
}

html body .mtx-fx-sources {
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 0 16px !important;
}

html body .mtx-fx-sources ul {
  margin: 8px 0 0 !important;
  padding-left: 1.1em !important;
}

html body .entry-content .n24-wrap details {
  margin: 0 0 8px !important;
  border: 1px solid var(--mt-line, #e2e7e5) !important;
  border-radius: 6px !important;
  padding: 0 !important;
}

html body .entry-content .n24-wrap details summary {
  font-weight: 600 !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  list-style: none !important;
}

html body .entry-content .n24-wrap details[open] summary {
  border-bottom: 1px solid var(--mt-line, #e2e7e5) !important;
}

html body .entry-content .n24-wrap details > p {
  padding: 10px 12px 12px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* ---- Related pairs ---- */
html body .mtx-fx-related {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 8px 0 12px !important;
  padding: 0 !important;
}

html body .mtx-fx-related li {
  margin: 0 !important;
}

html body .mtx-fx-related a {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  padding: 9px 11px !important;
  border: 1px solid var(--mt-line, #e2e7e5) !important;
  border-radius: 7px !important;
  background: #fff !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--mt-line, #e2e7e5) !important;
}

html body .mtx-fx-related a:hover {
  border-color: var(--mt-navy, #1e3a5f) !important;
  background: #f8f9fb !important;
}

html body .mtx-fx-rel-code {
  font-weight: 700 !important;
  font-size: 13px !important;
  color: var(--mt-navy, #1e3a5f) !important;
}

html body .mtx-fx-rel-name {
  font-size: 12px !important;
  color: #6b7280 !important;
}

html body .mtx-fx-related-all {
  margin: 0 0 18px !important;
  font-size: 13px !important;
}

html body .mtx-fx-related-all a {
  color: var(--mt-navy, #1e3a5f) !important;
  font-weight: 600 !important;
}

/* ---- Hub index (/currency/) ---- */
html body .mtx-fx-hub-filter {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  border: 1.5px solid var(--mt-line, #d8ddda) !important;
  border-radius: 8px !important;
  margin: 0 0 18px !important;
}

html body .mtx-fx-hub-filter:focus {
  outline: 0 !important;
  border-color: var(--mt-navy, #1e3a5f) !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12) !important;
}

html body .mtx-fx-hub-empty {
  color: #6b7280 !important;
  font-size: 14px !important;
}

html body .mtx-fx-hub-group {
  margin: 0 0 22px !important;
}

html body .mtx-fx-hub-group h2 {
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #6b7280 !important;
  margin: 0 0 12px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid var(--mt-line, #eef1f0) !important;
}

html body .mtx-fx-hub-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}

html body .mtx-fx-hub-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 12px 13px !important;
  border: 1px solid var(--mt-line, #e2e7e5) !important;
  border-radius: 8px !important;
  background: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(30, 58, 95, 0.05) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease !important;
}

html body .mtx-fx-hub-card:hover {
  border-color: var(--mt-navy, #1e3a5f) !important;
  box-shadow: 0 3px 10px rgba(30, 58, 95, 0.1) !important;
}

html body .mtx-fx-hub-pair {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--mt-navy, #1e3a5f) !important;
  font-variant-numeric: tabular-nums !important;
}

html body .mtx-fx-hub-name {
  font-size: 12px !important;
  color: #6b7280 !important;
}

@media (max-width: 680px) {
  html body .mtx-fx-snapshot-grid {
    grid-template-columns: 1fr !important;
  }

  html body .mtx-fx-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .mtx-fx-widget {
    padding: 14px 10px 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body .mtx-fx-input {
    font-size: 18px !important;
    padding: 8px 8px !important;
  }

  html body .mtx-fx-cur {
    min-width: 52px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  html body .mtx-fx-swap {
    width: 40px !important;
    height: 40px !important;
  }

  html body .mtx-fx-swap-icon {
    font-size: 18px !important;
  }

  html body .mtx-fx-rateline {
    font-size: 11px !important;
  }

  html body .mtx-fx-table {
    font-size: 13px !important;
  }

  html body .mtx-fx-table th,
  html body .mtx-fx-table td {
    padding: 6px 4px !important;
  }

  html body .mtx-fx-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  html body .mtx-fx-trend-stats {
    font-size: 11px !important;
    gap: 4px 10px !important;
  }
}
