
.country-codes-page {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  color: var(--mtt-text);
}.country-codes-hero {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  padding: 4.8rem 1rem 3.2rem;
  text-align: center;
}.country-codes-map-backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1420px, 118vw);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}.country-codes-map-backdrop::before {
  position: absolute;
  inset: 8% 3% 0;
  content: "";
  background-image:
    linear-gradient(rgba(57, 132, 243, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 132, 243, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 72%, transparent 100%);
}.country-codes-map-backdrop .world-svg-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 390px;
  opacity: 0.28;
  transform: scale(1.02);
}.country-codes-map-backdrop .world-svg-map path {
  fill: #dfeafa;
  stroke: #b9d3f0;
  stroke-width: 0.9;
  cursor: default;
}.country-codes-hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}.country-codes-hero h1,
.country-code-detail-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--mtt-navy);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}.country-codes-hero .lead,
.country-code-detail-hero .lead {
  max-width: 720px;
  margin: 1.25rem auto 0;
  color: var(--mtt-muted);
  font-size: 1.12rem;
}.country-codes-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}.country-codes-hero__stats span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(57, 132, 243, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--mtt-muted);
  font-weight: 500;
  backdrop-filter: blur(12px);
}.country-codes-hero__stats strong {
  color: var(--mtt-blue);
  font-size: 1.1rem;
}.country-codes-search {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin: -1.35rem auto 1.25rem;
  border: 1px solid rgba(225, 232, 245, 0.95);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}.country-codes-search__form {
  display: grid;
  gap: 0.55rem;
}.country-codes-search__form label {
  color: var(--mtt-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}.country-codes-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}.country-codes-search input {
  min-height: 58px;
  border-color: rgba(57, 132, 243, 0.2);
  border-radius: 8px;
  padding-inline: 1rem;
  font-size: 1.03rem;
  font-weight: 500;
}.country-codes-search button,
.country-code-actions a {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1.35rem;
  background: var(--mtt-blue);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}.country-codes-search button:hover,
.country-code-actions a:hover {
  background: var(--mtt-blue-dark);
  color: #fff;
}.country-code-quick-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
}.country-code-quick-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.55rem;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(225, 232, 245, 0.9);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background:
    linear-gradient(135deg, rgba(57, 132, 243, 0.05), transparent 52%),
    #fff;
}.country-code-quick-list a:hover {
  border-color: rgba(57, 132, 243, 0.32);
  color: var(--mtt-blue-dark);
}.country-code-quick-list img,
.country-code-name img,
.country-code-detail-flag {
  object-fit: cover;
  border: 1px solid rgba(9, 30, 64, 0.08);
}.country-code-quick-list img {
  grid-row: span 2;
  width: 30px;
  height: 22px;
  border-radius: 4px;
}.country-code-quick-list span {
  color: var(--mtt-navy);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.1;
}.country-code-quick-list small {
  color: var(--mtt-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.1;
}.country-code-directory,
.country-code-reference {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  border: 1px solid var(--mtt-line);
  border-radius: 8px;
  background: #fff;
}.country-code-directory__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.45rem 1.1rem;
}.country-code-directory__head h2 {
  margin: 0;
  color: var(--mtt-navy);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}.country-code-directory__head > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--mtt-soft);
  color: var(--mtt-muted);
  font-weight: 500;
  white-space: nowrap;
}.country-code-directory__head strong {
  color: var(--mtt-blue);
}.country-code-table-wrap {
  overflow: auto;
  border-top: 1px solid var(--mtt-line);
}.country-code-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}.country-code-table th,
.country-code-table td {
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid rgba(225, 232, 245, 0.72);
  text-align: left;
  vertical-align: middle;
}.country-code-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
  color: var(--mtt-muted);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
}.country-code-table tbody tr:hover {
  background: #fbfdff;
}.country-code-table tbody tr:last-child td {
  border-bottom: 0;
}.country-code-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--mtt-navy);
  font-weight: 500;
}.country-code-name:hover {
  color: var(--mtt-blue-dark);
}.country-code-name img {
  width: 32px;
  height: 24px;
  border-radius: 4px;
}.country-code-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(57, 132, 243, 0.18);
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  background: #f5f9ff;
  color: var(--mtt-navy);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
}.country-code-pill small {
  color: var(--mtt-blue-dark);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}.country-code-pill:hover,
.country-code-pill--copied {
  border-color: rgba(31, 157, 114, 0.34);
  background: #ecfbf5;
  color: var(--mtt-green);
}.country-code-pill--calling {
  background: #fff9ed;
  border-color: rgba(247, 185, 85, 0.42);
}.country-code-muted {
  color: var(--mtt-muted);
  font-weight: 500;
}.country-code-empty td {
  padding: 1.5rem;
  color: var(--mtt-muted);
  text-align: center;
}.country-code-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 3rem;
}.country-code-notes article {
  border-top: 3px solid var(--mtt-blue);
  padding: 1rem 0 0;
}.country-code-notes article:nth-child(2) {
  border-color: var(--mtt-green);
}.country-code-notes article:nth-child(3) {
  border-color: var(--mtt-amber);
}.country-code-notes span {
  color: var(--mtt-blue);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
}.country-code-notes h2 {
  margin: 0.3rem 0;
  color: var(--mtt-navy);
  font-size: 1.15rem;
}.country-code-notes p {
  margin: 0;
  color: var(--mtt-muted);
}.country-code-detail-page {
  padding-top: 2rem;
}.country-code-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 330px;
  overflow: hidden;
  border-bottom: 1px solid var(--mtt-line);
  padding: 3.5rem 0 2.5rem;
}.country-code-detail-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}.country-code-detail-flag {
  width: min(260px, 32vw);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #fff;
}.country-code-reference {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding: 1.4rem;
}.country-code-reference__main h2 {
  margin-bottom: 0.4rem;
}.country-code-reference__main p {
  margin: 0;
  color: var(--mtt-muted);
}.country-code-reference__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}.country-code-reference__grid div {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(225, 232, 245, 0.85);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fbfdff;
}.country-code-reference__grid dt {
  color: var(--mtt-muted);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
}.country-code-reference__grid dd {
  margin: 0;
  color: var(--mtt-navy);
  font-size: 1.02rem;
  font-weight: 500;
}.country-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 3rem;
}.country-code-actions a {
  min-height: 46px;
}.country-code-actions a:nth-child(2) {
  background: var(--mtt-navy);
}.country-code-actions a:nth-child(3) {
  background: #fff7e8;
  color: #a46400;
}@media (max-width: 980px) {
  .country-code-quick-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .country-code-reference {
    grid-template-columns: 1fr;
  }
}@media (max-width: 720px) {
  .country-codes-page {
    width: min(100% - 1rem, 1240px);
  }

  .country-codes-hero {
    min-height: 330px;
    padding-top: 3rem;
  }

  .country-codes-hero h1 {
    font-size: clamp(2.45rem, 15vw, 4rem);
  }

  .country-codes-search__row {
    grid-template-columns: 1fr;
  }

  .country-code-quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-code-directory__head {
    align-items: start;
    flex-direction: column;
  }

  .country-code-notes {
    grid-template-columns: 1fr;
  }

  .country-code-detail-hero {
    align-items: start;
    flex-direction: column-reverse;
  }

  .country-code-detail-flag {
    width: min(210px, 70vw);
  }

  .country-code-reference__grid {
    grid-template-columns: 1fr;
  }
}