/* Main homepage: visual cash board. */
.home-redesign {
  background:
    linear-gradient(rgba(24, 25, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 25, 31, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf0 0%, #f7f4e9 58%, #eef7f3 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.home-redesign .page-shell {
  max-width: 1440px;
  padding: 18px 24px 42px;
}

.home-redesign .main-site-header {
  position: relative;
  z-index: 40;
  min-height: 74px;
  margin-bottom: 18px;
  padding-inline: 8px;
}

.cash-board-shell {
  position: relative;
  z-index: 10;
  border-block: 3px solid var(--brand-ink);
  background: rgba(255, 252, 244, 0.82);
}

.cash-route-bar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 410px minmax(520px, 1fr) 220px;
  gap: 22px;
  align-items: center;
  padding: 24px 16px 26px;
  border-bottom: 3px solid var(--brand-ink);
}

.cash-route-copy {
  display: grid;
  gap: 6px;
}

.cash-route-copy h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 0;
  line-height: 0.91;
}

.cash-route-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.35;
}

.cash-route-controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 62px minmax(190px, 1fr);
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.cash-route-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.cash-route-field > span {
  color: #343944;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.cash-route-field .currency-picker,
.cash-route-field .currency-trigger {
  width: 100%;
}

.cash-route-field .currency-trigger {
  min-height: 70px;
  padding: 9px 38px 9px 12px;
  border: 2px solid var(--brand-ink);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 3px 3px 0 rgba(5, 6, 10, 0.16);
}

.cash-route-field .currency-trigger:hover,
.cash-route-field .currency-picker.is-open .currency-trigger {
  border-color: var(--brand-ink);
  box-shadow: 4px 4px 0 var(--brand-yellow);
}

.cash-route-field .currency-menu {
  width: min(390px, calc(100vw - 40px));
}

.cash-route-field:last-child .currency-menu {
  right: 0;
  left: auto;
}

.cash-route-controls .bill-swap-button {
  display: grid;
  width: 62px;
  min-width: 62px;
  height: 70px;
  min-height: 70px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--brand-ink);
  border-radius: 6px;
  background: #fffef9;
  box-shadow: 4px 4px 0 var(--brand-ink);
}

.cash-route-controls .bill-swap-button:hover,
.cash-route-controls .bill-swap-button:focus-visible {
  background: var(--brand-yellow);
  box-shadow: 2px 2px 0 var(--brand-ink);
  transform: translate(2px, 2px);
}

.cash-route-controls .bill-swap-button .swap-label {
  display: none;
}

.cash-route-controls .bill-swap-button .swap-icon {
  width: 33px;
  height: 33px;
}

.cash-route-controls .bill-swap-button .swap-icon svg {
  width: 100%;
  height: 100%;
}

.cash-route-bar .rate-passport {
  justify-self: end;
  width: 100%;
  min-height: 112px;
  padding: 17px 44px 14px 16px;
  align-content: center;
  transform: rotate(-1deg);
  background: rgba(248, 252, 241, 0.78);
}

.cash-route-bar .passport-rate {
  overflow: hidden;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-route-bar .rate-passport small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-notes-board.notes-section {
  min-height: 0;
  padding: 22px 16px 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(24, 25, 31, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 25, 31, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 235, 0.95), rgba(245, 247, 231, 0.88));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: none;
  backdrop-filter: none;
}

.home-notes-board.notes-section::before {
  display: none;
}

.cash-board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-inline: 4px;
}

.cash-board-title {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.cash-board-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}

.cash-board-title h2 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0;
  line-height: 1;
}

.cash-board-title-line > span {
  color: #07696f;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cash-board-title > p {
  max-width: 820px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cash-board-actions {
  flex: 0 0 auto;
}

.home-notes-board .money-mode-switch {
  min-height: 48px;
  border-radius: 6px;
  white-space: nowrap;
}

.home-notes-board .notes-grid:not(.is-coin-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px 20px;
  margin-top: 30px;
  padding: 0;
  overflow: visible;
}

.home-notes-board .notes-grid:not(.is-coin-grid) .banknote-card {
  min-width: 0;
  max-width: none;
}

.home-notes-board .notes-grid.is-coin-grid {
  overflow: visible;
  margin-top: 18px;
  border-bottom: 0;
}

.cash-board-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 15px 4px 2px;
  border-top: 2px solid rgba(24, 25, 31, 0.72);
}

.cash-board-footer p {
  max-width: 930px;
  margin: 0;
  color: #424853;
  font-size: 0.78rem;
  line-height: 1.5;
}

.cash-board-footer span {
  flex: 0 0 auto;
  color: #07696f;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: right;
}

.home-redesign .exact-converter {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 0.7fr);
  gap: 20px 34px;
  align-items: center;
  margin-top: 20px;
  padding: 20px 22px;
  border: 3px solid var(--brand-ink);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 6px 6px 0 rgba(24, 25, 31, 0.14);
}

.home-redesign .exact-converter::before {
  display: none;
}

.exact-converter-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: end;
}

.exact-converter-heading > div {
  display: grid;
  gap: 4px;
}

.exact-converter-heading h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: 0;
  line-height: 1.02;
}

.exact-converter-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-redesign .exact-converter .counter-console {
  display: block;
}

.home-redesign .exact-converter .amount-control {
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-redesign .exact-converter .amount-control > span {
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.66rem;
}

.home-redesign .exact-converter .amount-input-shell {
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 6px;
}

.home-redesign .exact-converter .amount-code {
  min-width: 76px;
  border-right: 0;
  border-left: 2px solid rgba(24, 25, 31, 0.9);
}

.home-redesign .exact-converter .amount-control input {
  min-height: 58px;
  font-size: 1.4rem;
}

.home-redesign .exact-converter .bill-result {
  grid-column: 1 / -1;
  grid-template-columns: minmax(235px, 0.55fr) minmax(0, 1.45fr);
  background: rgba(246, 250, 241, 0.82);
}

.home-redesign .exact-converter.is-active .bill-result {
  margin-top: 0;
  padding: 18px 0 0;
  border-width: 2px 0 0;
  border-radius: 0;
  background: transparent;
}

.home-redesign .exact-converter .cash-stack-group-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-redesign .exact-converter .bill-stack-item {
  flex: 0 0 168px;
  min-height: 126px;
  padding: 8px 4px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-redesign .exact-converter .bill-coin-item {
  flex: 0 0 126px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-redesign .stacked-note.is-illustrated-stack {
  padding: 0;
  background: var(--note-b);
}

.home-redesign .stacked-note.is-illustrated-stack::before,
.home-redesign .stacked-note.is-illustrated-stack::after {
  display: none;
}

.home-redesign .stacked-note.is-illustrated-stack > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stacked-note-identity {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 2;
  display: grid;
  gap: 1px;
  min-width: 42px;
  padding: 4px 5px;
  border: 1px solid rgba(24, 25, 31, 0.72);
  border-radius: 3px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 2px 2px 0 rgba(24, 25, 31, 0.34);
}

.stacked-note-identity strong {
  font-size: 0.82rem;
  line-height: 0.9;
}

.stacked-note-identity small {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.48rem;
}

.home-redesign .destination-spotlight-editorial {
  position: relative;
  display: grid;
  min-height: 338px;
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 25, 31, 0.22);
  border-left: 6px solid var(--brand-teal);
  border-radius: 7px;
  background: linear-gradient(145deg, #f8fbf7 0%, #edf6f3 100%);
  box-shadow: 0 18px 38px rgba(24, 25, 31, 0.1);
  align-items: stretch;
  gap: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
}

.home-redesign .destination-spotlight-editorial .destination-spotlight-copy {
  display: flex;
  max-width: none;
  padding: 42px 44px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.home-redesign .destination-spotlight-editorial .destination-spotlight-copy h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 0.98;
}

.home-redesign .destination-spotlight-editorial .destination-spotlight-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.destination-spotlight-topics {
  display: flex;
  margin: 6px 0 4px;
  padding: 0;
  color: #315752;
  list-style: none;
  flex-wrap: wrap;
}

.destination-spotlight-topics li {
  padding: 0 13px;
  border-left: 1px solid rgba(49, 87, 82, 0.34);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.destination-spotlight-topics li:first-child {
  padding-left: 0;
  border-left: 0;
}

.destination-spotlight-link {
  display: inline-flex;
  min-height: 48px;
  margin-top: 3px;
  padding: 0 9px 0 18px;
  border: 1px solid #18191f;
  border-radius: 5px;
  background: #18191f;
  color: #fff;
  box-shadow: 0 5px 0 rgba(24, 25, 31, 0.18);
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 180ms ease,
    background 180ms ease;
}

.destination-spotlight-link span:last-child {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--brand-yellow);
  color: #18191f;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
}

.destination-spotlight-link:hover,
.destination-spotlight-link:focus-visible {
  background: #2c302f;
  box-shadow: 0 8px 0 rgba(24, 25, 31, 0.15);
  transform: translateY(-2px);
}

.destination-spotlight-link:active {
  box-shadow: 0 3px 0 rgba(24, 25, 31, 0.18);
  transform: translateY(1px);
}

.destination-spotlight-media {
  position: relative;
  min-width: 0;
  min-height: 338px;
  overflow: hidden;
  border-left: 1px solid rgba(24, 25, 31, 0.18);
  background: #dceee9;
}

.destination-spotlight-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 251, 247, 0.34), transparent 32%);
  content: "";
  pointer-events: none;
}

.destination-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transition: transform 550ms cubic-bezier(0.23, 1, 0.32, 1);
}

.destination-spotlight-label {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  display: grid;
  min-width: 105px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 25, 31, 0.72);
  border-radius: 4px;
  background: rgba(255, 227, 110, 0.94);
  color: #18191f;
  box-shadow: 4px 4px 0 rgba(24, 25, 31, 0.78);
  justify-items: start;
  transform: rotate(-2deg);
}

.destination-spotlight-label b {
  font-size: 1.9rem;
  line-height: 0.95;
}

.destination-spotlight-label small {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

@media (hover: hover) and (pointer: fine) {
  .destination-spotlight-editorial:hover .destination-spotlight-media img {
    transform: scale(1.025);
  }
}

@media (max-width: 1080px) {
  .cash-route-bar {
    grid-template-columns: minmax(300px, 0.72fr) minmax(470px, 1.5fr);
  }

  .cash-route-bar .rate-passport {
    grid-column: 1 / -1;
    justify-self: start;
    width: min(100%, 340px);
    min-height: 94px;
  }

  .cash-route-copy h1 {
    font-size: 2.8rem;
  }

  .home-redesign .exact-converter {
    grid-template-columns: 1fr minmax(270px, 0.55fr);
  }

  .exact-converter-heading {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 780px) {
  .home-redesign .page-shell {
    padding: 12px 12px 30px;
  }

  .home-redesign .main-site-header {
    min-height: 0;
    margin-bottom: 12px;
    padding: 0 0 12px;
  }

  .cash-route-bar {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 12px;
  }

  .cash-route-copy h1 {
    font-size: 2.65rem;
  }

  .cash-route-controls {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 8px;
  }

  .cash-route-controls .bill-swap-button {
    width: 52px;
    min-width: 52px;
    height: 62px;
    min-height: 62px;
  }

  .cash-route-field .currency-trigger {
    min-height: 62px;
    padding: 8px 29px 8px 7px;
  }

  .cash-route-field .currency-trigger .currency-option-text small {
    display: none;
  }

  .cash-route-field .currency-trigger .currency-option-text span {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cash-route-field .currency-menu {
    position: absolute;
    right: auto;
    left: 0;
    width: min(350px, calc(100vw - 48px));
  }

  .cash-route-field:last-child .currency-menu {
    right: 0;
    left: auto;
  }

  .cash-route-bar .rate-passport {
    grid-column: auto;
    width: 100%;
  }

  .cash-board-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .home-notes-board.notes-section {
    padding-inline: 10px;
  }

  .home-notes-board .notes-grid:not(.is-coin-grid) {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 18px 0 0;
    padding: 0;
    overflow: visible;
  }

  .home-notes-board .notes-grid:not(.is-coin-grid) .banknote-card {
    min-width: 0;
  }

  .cash-board-footer {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .cash-board-footer span {
    text-align: left;
  }

  .home-redesign .exact-converter {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 14px;
  }

  .home-redesign .exact-converter .bill-result {
    grid-template-columns: 1fr;
  }

  .home-redesign .exact-converter .bill-result-main {
    grid-column: 1;
    grid-row: auto;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 2px dashed rgba(24, 25, 31, 0.18);
  }

  .home-redesign .exact-converter .cash-tray-label,
  .home-redesign .exact-converter .bill-stack,
  .home-redesign .exact-converter .bill-remainder {
    grid-column: 1;
  }

  .home-redesign .destination-spotlight-editorial {
    grid-template-columns: 1fr;
  }

  .home-redesign .destination-spotlight-editorial .destination-spotlight-copy {
    padding: 32px 28px 34px;
    grid-row: 2;
  }

  .destination-spotlight-media {
    min-height: 250px;
    border-bottom: 1px solid rgba(24, 25, 31, 0.18);
    border-left: 0;
    grid-row: 1;
  }

  .destination-spotlight-media::after {
    background: linear-gradient(0deg, rgba(248, 251, 247, 0.28), transparent 38%);
  }
}

@media (max-width: 520px) {
  .home-redesign .main-site-brand img {
    width: 220px;
  }

  .home-redesign .main-site-header nav {
    gap: 6px;
  }

  .home-redesign .main-site-header nav a {
    font-size: 0.64rem;
  }

  .cash-route-copy h1 {
    font-size: 2.35rem;
  }

  .cash-route-copy p {
    font-size: 0.88rem;
  }

  .cash-route-field > span {
    min-height: 22px;
    font-size: 0.62rem;
  }

  .cash-route-field .currency-trigger .currency-option-text span,
  .cash-route-field .currency-trigger .currency-option-text small {
    display: none;
  }

  .cash-route-controls .bill-swap-button .swap-icon {
    width: 28px;
    height: 28px;
  }

  .cash-board-title h2 {
    font-size: 1.75rem;
  }

  .home-notes-board .money-mode-switch {
    width: 100%;
    justify-content: center;
  }

  .home-redesign .exact-converter .amount-control input {
    font-size: 1.2rem;
  }

  .home-redesign .exact-converter .amount-code {
    min-width: 64px;
  }

  .home-redesign .destination-spotlight-editorial {
    grid-template-columns: 1fr;
  }

  .home-redesign .destination-spotlight-editorial .destination-spotlight-copy {
    padding: 28px 24px 30px;
  }

  .home-redesign .destination-spotlight-editorial .destination-spotlight-copy h2 {
    font-size: 2rem;
  }

  .destination-spotlight-media {
    min-height: 220px;
  }

  .destination-spotlight-link {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .destination-spotlight-link,
  .destination-spotlight-media img {
    transition: none;
  }
}
