@import url("../japan/japan.css");

:root {
  --vermilion: #e94138;
  --vermilion-dark: #aa2d2c;
  --sky: #bde8e4;
  --sky-dark: #197f88;
  --leaf: #2f7959;
  --gold: #f7bd3f;
  --plum: #78486f;
  --pink: #ee9586;
  --mist: #f4ead7;
}

.mini-mexico-logo {
  width: 154px;
  flex: 0 0 auto;
  border-left: 2px solid var(--ink);
  padding-left: 14px;
}

.mexico-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  background: #f4d574;
}

.mexico-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mexico-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 235, 0.98) 0%, rgba(255, 250, 235, 0.82) 35%, rgba(255, 250, 235, 0.06) 68%);
  content: "";
}

.mexico-hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 42px 0 48px;
}

.mexico-destination-logo {
  width: 306px;
  max-width: 55%;
  margin-bottom: 4px;
}

.mexico-hero h1 {
  max-width: 600px;
  margin: 0;
  font-family: "Arial Black", "Segoe UI Black", Arial, sans-serif;
  font-size: 4.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.mexico-hero-dek {
  max-width: 570px;
  margin: 18px 0 16px;
  color: #272321;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.5;
}

.mexico-hero-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 17px;
}

.mexico-hero-signal span {
  padding: 4px 9px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mexico-hero-signal span:nth-child(1) { background: var(--gold); }
.mexico-hero-signal span:nth-child(2) { background: var(--pink); }
.mexico-hero-signal span:nth-child(3) { background: var(--sky); }

.mexico-hero-proof {
  max-width: 460px;
  margin: 16px 0 0;
  color: #403a34;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.mexico-section-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  width: min(100%, var(--max));
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 11px 20px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.mexico-section-nav a {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.mexico-section-nav a:hover,
.mexico-section-nav a:focus-visible {
  color: var(--vermilion);
  text-decoration: underline;
}

.mexico-quick-answer { background: #fff9e9; }

.mexico-wallet {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 223, 145, 0.72)),
    var(--gold);
}

.mexico-moment-cash .moment-icon { background: var(--gold); }
.mexico-moment-card .moment-icon { background: var(--sky); }
.mexico-moment-notes .moment-icon { background: var(--pink); }

.mexico-section-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
}

.mexico-section-heading h2 { margin: 0; }

.mexico-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mexico-money-switch {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 8px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mexico-money-switch:hover,
.mexico-money-switch:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
  background: #fff5cf;
}

.mexico-money-switch[aria-pressed="true"] {
  background: #edf9f7;
}

.mexico-switch-art {
  position: relative;
  display: block;
  width: 32px;
  height: 24px;
  flex: 0 0 32px;
}

.mexico-switch-art i,
.mexico-switch-art b {
  position: absolute;
  display: block;
  border: 2px solid var(--ink);
  content: "";
}

.mexico-switch-art i {
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d9b246;
}

.mexico-switch-art i:first-child { left: 1px; }
.mexico-switch-art i:nth-child(2) { right: 1px; background: #dfe3e1; }

.mexico-switch-art b {
  left: 7px;
  top: 1px;
  width: 19px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(135deg, #d9b1d1, #8b5a95);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(7deg);
}

.mexico-counter-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  background: var(--gold);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}

.mexico-counter-link:hover,
.mexico-counter-link:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.mexico-peso-explorer {
  background:
    linear-gradient(135deg, rgba(255, 250, 235, 0.9), rgba(188, 232, 228, 0.46)),
    var(--paper);
}

.mexico-money-explorer {
  --coin-hole-bg: #fff9e9;
}

.mexico-money-explorer [hidden],
.mexico-pocket-section[hidden] {
  display: none !important;
}

/* Hide the superseded static Mexico note markup while the shared cards render. */
.cbc-money-grid > .mexico-note {
  display: none;
}

.cbc-mexico-flag {
  position: relative;
  width: 29px;
  height: 20px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, 0.3);
  border-radius: 3px;
  background: linear-gradient(90deg, #176c43 0 33.333%, #fff 33.333% 66.666%, #ce3d42 66.666%);
}

.cbc-mexico-flag::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(23, 23, 23, 0.52);
  border-radius: 50%;
  background: #b4923c;
  content: "";
  transform: translate(-50%, -50%);
}

.cbc-coin-face.is-reverse-bimetal {
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.76), transparent 22%),
    radial-gradient(
      circle,
      var(--coin-core, #e8eef0) 0 38%,
      var(--coin-core-dark, #89989d) 42%,
      var(--coin-ring, #d8b448) 44% 72%,
      var(--coin-ring-dark, #927540) 100%
    );
}

.mexico-note-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.mexico-coin-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 14px;
  align-items: end;
}

.mexico-pocket-coin {
  position: relative;
  display: grid;
  min-height: 146px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 14px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  transition: transform 180ms ease;
}

.mexico-pocket-coin::before {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 5px 0 rgba(23, 23, 23, 0.72);
  background: radial-gradient(circle at 35% 30%, #fff 0 3%, #dfe2df 6% 43%, #b7bab7 72% 100%);
  content: "";
}

.mexico-pocket-coin > span,
.mexico-pocket-coin > small {
  position: relative;
  z-index: 1;
}

.mexico-pocket-coin > span {
  font-size: 1.08rem;
  font-weight: 950;
}

.mexico-pocket-coin > small {
  align-self: end;
  margin-top: 92px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.12;
  text-transform: uppercase;
}

.mexico-pocket-coin.mxpc-centavo::before {
  width: 67px;
  height: 67px;
  background: radial-gradient(circle at 35% 30%, #fff9df 0 3%, #dfe2df 6% 43%, #b7bab7 72% 100%);
}

.mexico-pocket-coin.mxpc-centavo > small { margin-top: 71px; }

.mexico-pocket-coin.gold::before {
  background: radial-gradient(circle at 35% 30%, #fff8c7 0 3%, #e0bd59 7% 42%, #a57a22 74% 100%);
}

.mexico-pocket-coin.mxpc-bimetal::before {
  background: radial-gradient(circle at 50% 50%, #e2e3df 0 33%, #c2c4c1 35% 41%, #d8b246 43% 66%, #aaa98f 69% 100%);
}

.mexico-pocket-coin.mxpc-bimetal.reverse::before {
  background: radial-gradient(circle at 50% 50%, #d8b246 0 33%, #a68029 35% 41%, #dfe2df 43% 66%, #acaeaa 69% 100%);
}

.mexico-pocket-coin.mxpc-bimetal.large::before {
  width: 101px;
  height: 101px;
  background: radial-gradient(circle at 50% 50%, #dde0dd 0 35%, #c3c4c1 37% 43%, #d8b246 45% 67%, #adad96 70% 100%);
}

.mexico-pocket-coin.mxpc-bimetal.large > small { margin-top: 105px; }

.mexico-pocket-coin:hover {
  transform: translateY(-5px) rotate(-2deg);
}

.mexico-note {
  position: relative;
  display: grid;
  min-height: 186px;
  align-content: space-between;
  overflow: hidden;
  padding: 17px;
  border: 3px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  color: var(--ink);
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mexico-note:hover,
.mexico-note:focus-within {
  transform: translate(-3px, -4px) rotate(-0.6deg);
  box-shadow: 8px 10px 0 var(--ink);
}

.mexico-note::before {
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 2px solid rgba(23, 23, 23, 0.35);
  content: "";
}

.mexico-note > div {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: 72%;
  align-self: end;
}

.mexico-note strong {
  font-size: 1.42rem;
  line-height: 1;
}

.mexico-note small {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.mx-note-corner {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 2;
  font-size: 1.45rem;
  font-weight: 950;
}

.mx-note-scene {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 11px;
  width: 84px;
  height: 84px;
  border: 3px solid rgba(23, 23, 23, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.mx-note-scene::before,
.mx-note-scene::after {
  position: absolute;
  content: "";
}

.mx-scene-bell::before {
  left: 24px;
  bottom: 17px;
  width: 30px;
  height: 37px;
  border: 5px solid currentColor;
  border-radius: 20px 20px 8px 8px;
}

.mx-scene-bell::after { left: 38px; bottom: 8px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.mx-scene-axolotl::before {
  left: 18px;
  top: 32px;
  width: 47px;
  height: 24px;
  border: 4px solid currentColor;
  border-radius: 50% 55% 48% 48%;
}

.mx-scene-axolotl::after {
  right: 14px;
  top: 22px;
  width: 16px;
  height: 37px;
  border-top: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(35deg);
}

.mx-scene-butterfly::before {
  left: 20px;
  top: 19px;
  width: 39px;
  height: 44px;
  border: 4px solid currentColor;
  border-radius: 70% 30% 62% 38%;
  box-shadow: 25px 9px 0 -4px rgba(0, 0, 0, 0), 25px 9px 0 0 currentColor;
  transform: rotate(-24deg);
}

.mx-scene-butterfly::after { left: 39px; top: 28px; width: 5px; height: 36px; background: currentColor; }

.mx-scene-eagle::before {
  left: 17px;
  top: 24px;
  width: 49px;
  height: 35px;
  border-top: 6px solid currentColor;
  border-radius: 50%;
  transform: rotate(-10deg);
}

.mx-scene-eagle::after { left: 35px; top: 29px; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 18px solid currentColor; }

.mx-scene-whale::before { left: 16px; top: 32px; width: 55px; height: 26px; border: 4px solid currentColor; border-radius: 55% 55% 42% 42%; }
.mx-scene-whale::after { left: 12px; top: 22px; width: 19px; height: 18px; border-left: 4px solid currentColor; border-top: 4px solid currentColor; border-radius: 50%; }

.mx-scene-jaguar::before { left: 18px; top: 19px; width: 45px; height: 48px; border: 4px solid currentColor; border-radius: 48% 48% 44% 44%; }
.mx-scene-jaguar::after { left: 28px; top: 35px; width: 28px; height: 20px; border-top: 4px dotted currentColor; border-bottom: 4px dotted currentColor; }

.mexico-note-20 { background: linear-gradient(135deg, #bde4e4, #55aeb4); }
.mexico-note-50 { background: linear-gradient(135deg, #e2b3d3, #8b5a95); }
.mexico-note-100 { background: linear-gradient(135deg, #f1b2a5, #d25d58); }
.mexico-note-200 { background: linear-gradient(135deg, #c7dda5, #659a56); }
.mexico-note-500 { background: linear-gradient(135deg, #bdd9e9, #527fa8); }
.mexico-note-1000 { background: linear-gradient(135deg, #d0cbd4, #7c778b); }

.mexico-pocket-section { background: #fff; }

.mexico-pocket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.mexico-text-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 19px;
  color: var(--vermilion-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mexico-coin-pouch {
  position: relative;
  width: min(100%, 350px);
  height: 220px;
  justify-self: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 18px 18px;
  background: linear-gradient(145deg, #e94138, #a82f36);
  box-shadow: 7px 8px 0 var(--ink);
}

.mexico-coin-pouch::before {
  position: absolute;
  top: 19px;
  left: 18px;
  right: 18px;
  height: 50px;
  border-top: 8px solid #f7bd3f;
  border-radius: 50%;
  content: "";
}

.mx-coin {
  position: absolute;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 4px 0 rgba(23, 23, 23, 0.76);
  font-weight: 950;
}

.mx-coin-20 { top: 65px; left: 30px; width: 95px; height: 95px; background: radial-gradient(circle, #d5d6d1 0 38%, #d7af45 40% 57%, #c9c9c7 60%); font-size: 1.4rem; }
.mx-coin-10 { top: 103px; left: 116px; width: 88px; height: 88px; background: radial-gradient(circle, #d4d6d3 0 38%, #d3ad40 40% 58%, #d1d1cf 60%); font-size: 1.18rem; }
.mx-coin-5 { top: 61px; right: 27px; width: 78px; height: 78px; background: radial-gradient(circle, #d7af45 0 37%, #d5d5d1 39% 57%, #c3c5c3 59%); }
.mx-coin-2 { right: 72px; bottom: 16px; width: 61px; height: 61px; background: radial-gradient(circle, #d5ae42 0 37%, #d9d9d5 39% 57%, #c4c5c4 59%); font-size: 0.8rem; }
.mx-coin-1 { left: 62px; bottom: 13px; width: 54px; height: 54px; background: radial-gradient(circle, #d5ae42 0 37%, #d9d9d5 39% 57%, #c4c5c4 59%); font-size: 0.72rem; }

.mexico-guides-section { background: #fff9e9; }

.mexico-guide-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mexico-guide-card {
  display: grid;
  min-height: 260px;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 19px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 5px 6px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mexico-guide-card:hover,
.mexico-guide-card:focus-visible {
  transform: translate(-3px, -4px);
  box-shadow: 8px 10px 0 var(--ink);
}

.mexico-guide-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 3px solid var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 1.45rem;
  font-weight: 950;
}

.mexico-guide-card-notes .mexico-guide-icon { background: #d9b1d1; transform: rotate(-5deg); }
.mexico-guide-card-cards .mexico-guide-icon { background: var(--sky); transform: rotate(4deg); }
.mexico-guide-card-carry .mexico-guide-icon { background: var(--gold); transform: rotate(-3deg); }

.mexico-guide-card > span:nth-child(2) { display: grid; gap: 7px; align-content: start; }
.mexico-guide-card b { color: var(--vermilion-dark); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.mexico-guide-card strong { font-size: 1.2rem; line-height: 1.08; }
.mexico-guide-card small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.mexico-guide-card em { justify-self: end; color: var(--vermilion); font-size: 1.6rem; font-style: normal; font-weight: 950; }

@media (max-width: 920px) {
  .mini-mexico-logo { width: 126px; }
  .mexico-note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mexico-coin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mexico-guide-grid { grid-template-columns: 1fr; }
  .mexico-guide-card { min-height: 190px; }
}

@media (max-width: 700px) {
  .mini-mexico-logo { display: none; }
  .mexico-hero { min-height: 620px; }
  .mexico-hero::after { background: linear-gradient(90deg, rgba(255, 250, 235, 0.96), rgba(255, 250, 235, 0.6) 64%, rgba(255, 250, 235, 0.1)); }
  .mexico-hero-inner { padding-top: 28px; }
  .mexico-destination-logo { width: 280px; max-width: 82%; }
  .mexico-hero h1 { font-size: 2.75rem; }
  .mexico-hero-dek { max-width: 400px; font-size: 1rem; }
  .mexico-section-nav { justify-content: flex-start; gap: 18px; overflow-x: auto; white-space: nowrap; }
  .mexico-section-heading { align-items: start; flex-direction: column; }
  .mexico-heading-actions { justify-content: flex-start; }
  .mexico-note-grid { grid-template-columns: 1fr; }
  .mexico-coin-grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .mexico-note { min-height: 172px; }
  .mexico-pocket-layout { grid-template-columns: 1fr; gap: 26px; }
  .mexico-guide-grid { grid-template-columns: 1fr; }
}

.article-hero.mexico-article-hero {
  --article-accent: var(--gold);
  --article-accent-light: #fff1bd;
  --article-accent-dark: var(--vermilion-dark);
  --article-tint: #fff9e9;
}

.mexico-payments-hero {
  --article-accent: #9cdfe0;
  --article-accent-light: #dff8f6;
  --article-accent-dark: #197f88;
  --article-tint: #f1fbfa;
}

.mexico-carry-hero {
  --article-accent: #f2b2a1;
  --article-accent-light: #ffe2d9;
  --article-accent-dark: #a83d39;
  --article-tint: #fff8f4;
}

.mexico-inline-counter {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  margin: 8px 0 18px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--gold);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.mexico-inline-counter:hover,
.mexico-inline-counter:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
