:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", "PingFang HK", sans-serif;
  color: #193b39;
  background: #f4f3ec;
  font-synthesis: none;
  --green: #176b54;
  --muted: #5b6d67;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
.masthead {
  max-width: 1200px;
  margin: auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 2px;
  text-decoration: none;
  color: #193b39;
}
.brand span {
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  border-left: 1px solid #c7d0c6;
  padding-left: 12px;
  margin-left: 10px;
  letter-spacing: 0;
}
.masthead > a:last-child {
  font-size: 14px;
  font-weight: 650;
}
.child-layout {
  max-width: 1080px;
  margin: 50px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
h1 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 20px 0;
}
h2 {
  font-size: 28px;
  letter-spacing: -.7px;
  margin: 24px 0 10px;
}
h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
p {
  line-height: 1.65;
}
.chinese {
  font-size: 22px;
  margin: 0;
}
.intro > p:not(.eyebrow):not(.chinese) {
  color: var(--muted);
}
.panel {
  background: #fff;
  border: 1px solid #dde2d8;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 12px 35px #294b3710;
}
.staging {
  display: inline-block;
  padding: 6px 10px;
  background: #f8edce;
  color: #775b1c;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.muted, .small {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
label, legend {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin: 24px 0 9px;
}
label > span, legend > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
input {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #bfcfc4;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: #193b39;
  background: #fcfdf9;
}
input:focus {
  outline: 3px solid #d5e9ab;
  border-color: var(--green);
}
button, .button {
  font: inherit;
  font-weight: 750;
  border-radius: 9px;
  padding: 14px 18px;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
}
button:focus-visible, a:focus-visible {
  outline: 3px solid #abc478;
  outline-offset: 3px;
}
button:disabled {
  opacity: .55;
  cursor: wait;
}
.primary {
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
}
.primary:hover {
  background: #105740;
}
.secondary {
  color: var(--green);
  background: #f1f5eb;
  border: 1px solid #cbd8c5;
}
.button {
  display: inline-block;
  text-decoration: none;
}
.login-panel .primary, .login-panel .secondary {
  width: 100%;
  margin-top: 18px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0 10px;
  min-width: 0;
}
legend {
  padding: 0;
  margin: 0 0 9px;
}
.word-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.word-fields label {
  margin: 0;
  position: relative;
}
.word-fields label > span {
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 10px;
}
.word-fields input {
  padding-top: 21px;
  padding-bottom: 7px;
}
.notice {
  padding: 18px;
  background: #fff5d8;
  border: 1px solid #e4cf91;
  border-radius: 10px;
  margin-top: 20px;
}
.notice p {
  font-size: 13px;
}
#status, #teacher-status {
  font-size: 14px;
  color: #7c4c18;
  overflow-wrap: anywhere;
}
#status:empty, #teacher-status:empty {
  display: none;
}
footer {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 12px;
}
.city-art {
  height: 155px;
  width: 270px;
  margin-top: 30px;
  display: flex;
  align-items: end;
  gap: 8px;
  position: relative;
  border-bottom: 8px solid #193b39;
}
.city-art i {
  display: block;
  width: 48px;
  background: #d3dfba;
  border: 2px solid #193b39;
  border-bottom: 0;
  height: 88px;
  background-image: repeating-linear-gradient(0deg, transparent 0 20px, #193b3920 20px 24px);
}
.city-art i:nth-child(2) {
  height: 124px;
  background-color: #edc55d;
  width: 62px;
}
.city-art i:nth-child(3) {
  height: 64px;
  background-color: #82aaa0;
  width: 74px;
}
.city-art i:nth-child(4) {
  height: 105px;
  background-color: #e7ad8d;
}
.city-art span {
  position: absolute;
  right: -12px;
  bottom: 15px;
  background: #193b39;
  color: #fff;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 2px;
  transform: rotate(-7deg);
}
.teacher-layout {
  max-width: 1120px;
  padding: 28px 40px;
  margin: auto;
}
.teacher-layout h1 {
  font-size: 42px;
  margin-bottom: 14px;
}
.teacher-login {
  max-width: 490px;
  margin: 32px 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0;
}
.toolbar h2 {
  margin: 0 auto 0 0;
}
.create-form {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 14px;
  align-items: end;
}
.create-form label {
  margin-top: 0;
}
.create-form input {
  margin-top: 8px;
}
.class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.class-list button {
  text-align: left;
  background: #fff;
  border: 1px solid #cbd8c5;
  min-width: 180px;
}
.class-list button[aria-pressed="true"] {
  border: 2px solid var(--green);
  background: #eaf1e1;
}
.class-list span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid #e2e7dc;
}
td button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  margin: 3px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.city-card {
  border: 2px solid #b7c7ad;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  break-inside: avoid;
}
.city-card .eyebrow {
  font-size: 9px;
}
.card-code {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0;
}
.card-words {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .masthead {
    padding: 22px;
  }
  .child-layout {
    margin: 20px auto;
    padding: 0 22px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  h1 {
    font-size: 43px;
  }
  .intro h1 br {
    display: none;
  }
  .city-art {
    display: none;
  }
  .panel {
    padding: 24px;
  }
  .teacher-layout {
    padding: 22px;
  }
  .create-form {
    grid-template-columns: 1fr 100px;
  }
  .create-form button {
    grid-column: 1 / -1;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 440px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .brand span {
    display: none;
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .masthead, .teacher-layout > :not(#dashboard), #dashboard > :not(#cards-section),
  #cards-section > :not(.cards), footer {
    display: none !important;
  }
  .teacher-layout {
    padding: 0;
    max-width: none;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .city-card {
    box-shadow: none;
  }
}
