@font-face {
  font-family: "Khmer Content";
  src: url("assets/KhmerOScontent.ttf") format("truetype");
  font-display: swap;
}

:root {
  --blue: #07518b;
  --deep-blue: #123a50;
  --button-blue: #316c9f;
  --border-blue: #0078d4;
  --page-background: #f5f5f5;
  --text: #211b1b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
}

body {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  color: var(--text);
  background: var(--page-background);
  font-family: "Khmer Content", Arial, sans-serif;
  font-size: 14px;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 55px;
  background: var(--page-background);
}

.ministry-header {
  display: flex;
  height: 88px;
  align-items: center;
  overflow: hidden;
  background: var(--blue);
}

.emblem {
  width: 20%;
  max-height: 86px;
  object-fit: contain;
  padding-left: 10px;
}

.wordmark {
  width: 75%;
  max-height: 77px;
  object-fit: contain;
}

.fraud-heading {
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 9px 10px;
  background: var(--deep-blue);
  color: #fff;
}

.fraud-heading p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.content {
  padding: 5px 25px 0;
}

.language-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.language-button {
  height: 35px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
  color: #3b2929;
}

.language-button:first-child {
  border-radius: 4px 0 0 4px;
}

.language-button:last-child {
  margin-left: -1px;
  border-radius: 0 4px 4px 0;
}

.language-button.active {
  position: relative;
  border-color: #2d6595;
  background: var(--button-blue);
  color: #fff;
}

.language-button:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(0, 120, 212, 0.28);
  outline-offset: 2px;
}

h1 {
  margin: 14px 0 8px;
  color: #2a587a;
  font-family: "Khmer Content", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

:lang(kh) h1 {
  font-family: "Khmer Content", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
}

:lang(kh) .detail-row dt,
:lang(kh) .detail-row dd {
  font-size: 15px;
}

:lang(kh) .address-row {
  min-height: 37px;
}

.vehicle-details {
  margin: 0;
  border: 2px solid var(--border-blue);
  background: #fff;
}

.detail-row {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 37px;
  border-bottom: 1px solid #ddd;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row dt,
.detail-row dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 7px 8px;
  line-height: 1.35;
}

.detail-row dt {
  font-family: Arial, "Khmer Content", sans-serif;
  font-weight: 700;
}

.address-row {
  min-height: 57px;
}

.warning {
  margin-top: 19px;
  border: 1px solid #ebcccc;
  border-radius: 5px;
  background: #f2dede;
  color: #b6423c;
}

.warning p {
  margin: 0;
  padding: 15px;
  font-family: Arial, "Khmer Content", sans-serif;
  font-weight: 700;
  line-height: 1.75;
}

@media (max-width: 380px) {
  .content {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: 22px;
  }

  .detail-row {
    grid-template-columns: 42% 58%;
  }

  .detail-row dt,
  .detail-row dd {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 13px;
  }
}
