/* Sổ liên lạc của bố mẹ: giấy ô li, chữ rõ, không trang trí. */

@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 400;
  src: url('/fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 400;
  src: url('/fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 600;
  src: url('/fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 600;
  src: url('/fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --giay: #fbfaf4;
  --o-li: #dfe9ef;
  --muc: #1d2b3a;
  --muc-nhat: #5a6b7c;
  --bang: #1f4d3a;
  --le: #c9463d;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--giay) linear-gradient(var(--o-li) 1px, transparent 1px) 0 0 / 100% 32px;
  color: var(--muc);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 32px;
}

.so {
  max-width: 880px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px 20px 64px 28px;
  border-left: 2px solid var(--le);
}

.dau-so {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 24px;
  margin-bottom: 32px;
}
h1,
h2 {
  margin: 0;
  font-weight: 600;
  line-height: 64px;
}
h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.375rem;
  line-height: 32px;
  margin-top: 32px;
}
p {
  margin: 0;
  max-width: 68ch;
}
a {
  color: var(--bang);
  text-underline-offset: 3px;
}

button {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--bang);
  border-radius: 6px;
  background: var(--bang);
  color: #fff;
  cursor: pointer;
}
.nut-phu,
.xem {
  background: transparent;
  color: var(--bang);
}
.xem {
  min-height: 30px;
  padding: 0 10px;
  border-width: 1px;
  font-weight: 400;
  line-height: 28px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #e2a93b;
  outline-offset: 2px;
}

.form-pin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.form-pin label {
  flex-basis: 100%;
  font-weight: 600;
}
input {
  font: inherit;
  width: 200px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--muc);
  border-radius: 6px;
  background: #fff;
  letter-spacing: 0.2em;
}
.bao {
  color: var(--le);
  min-height: 32px;
}

.dang-hoc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 32px;
  padding: 15px 16px;
  border: 2px solid var(--le);
  border-radius: 6px;
  background: #fff;
}
.dang-hoc button {
  border-color: var(--le);
  background: var(--le);
}

.tom-tat,
.trong {
  color: var(--muc-nhat);
}

table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  height: 32px;
  padding: 0 12px 0 0;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 600;
  border-bottom: 2px solid var(--muc);
}
td:last-child,
th:last-child {
  padding-right: 0;
  text-align: right;
}
.an {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.loi-thoai {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.loi-thoai li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0 12px;
}
.loi-thoai .ai {
  font-weight: 600;
  white-space: nowrap;
}
.loi-thoai .con .ai {
  color: var(--le);
}
.loi-thoai .co .ai {
  color: var(--bang);
}
.ghi-chu {
  margin: 32px 0 0;
  padding-left: 1.2em;
  color: var(--muc-nhat);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 0 0 31px;
    border-bottom: 1px solid var(--muc-nhat);
    margin-bottom: 32px;
  }
  td {
    height: auto;
    white-space: normal;
  }
  td::before {
    content: attr(data-nhan) ': ';
    color: var(--muc-nhat);
  }
  td:last-child {
    text-align: left;
  }
  td:last-child::before {
    content: none;
  }
}
