/* U245: the HSK 4급 reading practice (design planning/chinese/design_preview). Subject colour --cn, its tint --cn-tint; one filled navy button a screen; green and red only for
   right and wrong. Chinese text carries lang="zh-CN": simplified letter shapes from an installed Chinese font (no web font is fetched). Every control is at least 44px. */
.hk { --cn: #A16207; --cn-tint: #FDF6E3; }
.hk [lang="zh-CN"] { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; word-break: normal; line-break: strict; }      /* the site keeps Korean words whole; Chinese breaks between characters, never before its punctuation */
.hk-in { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.hk-head { background: var(--cn-tint); }
.hk-head .hk-in { padding-top: 22px; padding-bottom: 26px; }
.hk-head .breadcrumb { font-size: 13px; color: #4B515C; margin-bottom: 12px; line-height: 1.7; }
.hk-head .breadcrumb a { color: #4B515C; padding: 0; }
.hk-head .breadcrumb .sep { margin: 0 6px; color: #6B7684; }
.hk-tag { display: inline-block; margin: 0; padding: 3px 10px; border-radius: 8px; background: var(--cn); color: #fff; font-size: 13px; font-weight: 800; }
.hk-head h1 { margin: 10px 0 6px; font-size: 28px; line-height: 1.35; font-weight: 900; color: #1F2329; }
.hk-lead { margin: 0; max-width: 720px; font-size: 15.5px; line-height: 1.65; color: #4B515C; }
.hk-acts { margin: 16px 0 0; }
.hk-main .hk-in { padding-top: 26px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 56px; }
.hk-main .ad-wrap { margin: 0; }
.hk-main h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.hk-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hk-parts li { border: 1px solid #E6E8EC; border-radius: 14px; padding: 14px 16px; }
.hk-parts h3 { margin: 0; font-size: 16px; font-weight: 800; }
.hk-parts h3 small { margin-left: 6px; font-size: 12.5px; color: var(--cn); }
.hk-parts p { margin: 4px 0 0; font-size: 14px; line-height: 1.65; color: #4B515C; }
.hk-small { margin: 10px 0 0; font-size: 13.5px; line-height: 1.7; color: #4B515C; }
.hk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 44px; padding: 0 22px; box-sizing: border-box; border: 1px solid #0F1E46; border-radius: 12px; background: #fff; color: #0F1E46; font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer; text-decoration: none; }
.hk-btn:hover { text-decoration: none; background: #F2F4F8; }
.hk .hk-btn--navy { background: #0F1E46; color: #fff; }
.hk .hk-btn--navy:hover { background: #1A2C5E; color: #fff; }
.hk-btn:disabled { border-color: #C9CFD8; background: #C9CFD8; color: #fff; cursor: default; }
.hk .hk-btn--navy:disabled { background: #C9CFD8; }
/* U253: the exam information page */
.hk-examlink { margin: 4px 0 0; }
.hk-next { border: 2px solid var(--cn); border-radius: 14px; padding: 16px 18px; max-width: 560px; }
.hk-next h2 { margin: 0; font-size: 13.5px; color: var(--cn); }
.hk-next__day { margin: 4px 0 2px; font-size: 24px; font-weight: 900; color: #1F2329; }
.hk-next p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.7; }
.hk-next .hk-btn { width: 100%; margin-top: 14px; }
.hk-scroll { overflow-x: auto; max-width: 100%; }
.hk-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.hk-table th, .hk-table td { border: 1px solid #E6E8EC; padding: 8px 10px; text-align: left; vertical-align: top; word-break: keep-all; }
.hk-table thead th { background: #F7F8FA; font-size: 13px; white-space: nowrap; }
.hk-table tbody th { font-weight: 800; white-space: nowrap; }
.hk-table caption { text-align: left; font-weight: 800; font-size: 14px; padding-bottom: 6px; }
.hk-table--wide { min-width: 640px; }
.hk-table--wide thead th:first-child, .hk-table--wide tbody th { position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 #E6E8EC; }
.hk-table--wide thead th:first-child { background: #F7F8FA; }
/* on a phone each exam date is a card (as the TOPIK dates page): the registration period must not hide off the side */
@media (max-width: 700px) {
  .hk-table--dates, .hk-table--dates tbody { display: block; }
  .hk-table--dates thead { position: absolute; left: -9999px; }
  .hk-table--dates tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; border: 1px solid #E6E8EC; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
  .hk-table--dates th, .hk-table--dates td { border: 0; padding: 0; }
  .hk-table--dates th { grid-column: 1; grid-row: 1; white-space: normal; font-size: 15px; }
  .hk-table--dates td { grid-column: 1 / -1; }
  .hk-table--dates td[data-label]::before { content: attr(data-label) " "; color: #4B515C; font-size: 12.5px; font-weight: 700; margin-right: 4px; }
  .hk-table--dates td:last-child { grid-column: 2; grid-row: 1; }
}
/* U255: on a phone the nine-column format table is one card a level, four values a line (the 시간 column ran off the screen) */
@media (max-width: 700px) {
  .hk-table--format { min-width: 0; }
  .hk-table--format, .hk-table--format tbody { display: block; }
  .hk-table--format thead { position: absolute; left: -9999px; }
  .hk-table--format tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; border: 1px solid #E6E8EC; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
  .hk-table--format th, .hk-table--format td { border: 0; padding: 0; }
  .hk-table--wide.hk-table--format tbody th { grid-column: 1 / -1; position: static; box-shadow: none; font-size: 15px; }
  .hk-table--format td::before { content: attr(data-label); display: block; color: #4B515C; font-size: 12px; font-weight: 700; }
}
.hk-state { display: inline-block; padding: 1px 8px; border: 1px solid #D9DCE3; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.hk-state--next { border-color: var(--cn); color: var(--cn); }
.hk-state--closed { background: #F1F3F6; color: #4B515C; }
.hk-checked { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: #4B515C; }
.hk-list { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.8; }
.hk-days { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.hk-days li { border: 1px solid #E6E8EC; border-radius: 10px; padding: 6px 10px; font-size: 13.5px; white-space: nowrap; }
.hk-main h3.hk-h3 { margin: 18px 0 8px; font-size: 15.5px; font-weight: 800; }
.hk-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 14.5px; line-height: 1.7; }
.hk-facts dt { font-weight: 800; }
.hk-facts dd { margin: 0; }
.hk-links { list-style: none; margin: 0; padding: 0; }
.hk-links li { padding: 8px 0; border-bottom: 1px solid #E6E8EC; }
.hk-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 800; color: #1F3C88; text-decoration: underline; }
.hk-links span { display: block; font-size: 13.5px; line-height: 1.6; color: #4B515C; }

.hk-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 2px; border: 0; background: transparent; color: #1F3C88; font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* the solve */
.hk.is-solving .hk-listonly, .hk.is-solving .hk-head { display: none; }
.hk.is-solving .hk-main .hk-in { padding-top: 12px; }
.hk-solve[hidden] { display: none; }
.hk-solve { min-height: 640px; }
.hk-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hk-title { margin: 0; flex: 1 1 130px; min-width: 0; font-size: 18px; font-weight: 800; outline: none; }
.hk-clock { font-size: 14px; font-variant-numeric: tabular-nums; color: #4B515C; }
.hk-count { font-size: 13.5px; color: #4B515C; }
.hk-icon { width: 44px; height: 44px; border: 0; background: transparent; font-size: 15px; color: #1F2329; cursor: pointer; }
.hk-tabs { display: flex; gap: 6px; margin: 10px 0 14px; max-width: 420px; }
.hk-tab { flex: 1 1 0; min-height: 44px; border: 0; border-radius: 10px; background: #F7F8FA; color: #4B515C; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.hk-tab[aria-current="true"] { background: #1F3C88; color: #fff; }
.hk-bank { margin: 14px 0 10px; padding: 12px; border-radius: 12px; background: #F7F8FA; }
.hk-bank__h { margin: 0 0 8px; font-size: 13px; color: #4B515C; }
.hk-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hk-chips li { padding: 7px 14px; border: 1px solid #D9DCE3; border-radius: 10px; background: #fff; font-size: 17px; }
.hk-chips li.is-used { color: #8A919C; background: #F2F3F5; text-decoration: line-through; }
.hk-card { border: 1px solid #E6E8EC; border-radius: 14px; background: #fff; padding: 12px 14px; margin-bottom: 12px; }
.hk-card.is-now { border: 2px solid #1F3C88; }
.hk-card__n { display: block; font-size: 13px; font-weight: 800; color: #4B515C; }
.hk-text { margin: 6px 0 0; font-size: 18px; line-height: 2.1; white-space: pre-line; overflow-wrap: break-word; }
.hk-blank { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 0 8px; margin: 0 2px; vertical-align: middle; border: 0; border-bottom: 2px solid #1F3C88; border-radius: 0; background: transparent; color: #1F3C88; font: inherit; font-weight: 800; cursor: pointer; }
.hk-blank.is-ok { border-color: #1B6B33; color: #1B6B33; }
.hk-blank.is-no { border-color: #B42318; color: #B42318; }
.hk-blank.is-now { background: #EEF2F9; }
.hk-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hk-opts--bank { flex-direction: row; flex-wrap: wrap; }
.hk-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; min-width: 56px; padding: 8px 12px; box-sizing: border-box; border: 1px solid #D9DCE3; border-radius: 12px; background: #fff; color: #1F2329; font: inherit; font-size: 16.5px; line-height: 1.6; text-align: left; cursor: pointer; }
.hk-opts--bank .hk-opt { justify-content: center; }
.hk-opt .hk-letter { flex: 0 0 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D9DCE3; border-radius: 50%; font-size: 12.5px; font-weight: 800; }
.hk-opt__t { flex: 1 1 auto; }
.hk-opt__used { margin-left: auto; font-size: 12.5px; color: #4B515C; white-space: nowrap; }
.hk-opt.is-used { color: #8A919C; background: #F7F8FA; }
.hk-opts--bank .hk-opt.is-used .hk-opt__t { text-decoration: line-through; }
.hk-opt[aria-pressed="true"] { border: 2px solid #1F3C88; background: #EEF2F9; color: #1F2329; }
.hk-opt:disabled { cursor: default; opacity: 1; }
.hk-opt.is-ok { border-color: #1B6B33; background: #EAF6EE; color: #1F2329; }
.hk-opt.is-ok .hk-letter { background: #1B6B33; border-color: #1B6B33; color: #fff; }
.hk-opt.is-no { border-color: #B42318; background: #FDECEA; color: #1F2329; }
.hk-opt.is-no .hk-letter { background: #B42318; border-color: #B42318; color: #fff; }
.hk-confirm { width: 100%; margin-top: 12px; }
.hk-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 6px 0 0; font-size: 13.5px; font-weight: 700; }
.hk-verdict .is-ok { color: #1B6B33; }
.hk-verdict .is-no { color: #B42318; }
.hk-exp { margin-top: 8px; }
.hk-exp__box { margin-bottom: 8px; padding: 12px 14px; border-radius: 12px; background: #F7F8FA; font-size: 14.5px; line-height: 1.75; }
.hk-exp__box b { display: block; margin-bottom: 2px; }
.hk-exp__box p { margin: 0 0 4px; white-space: pre-line; }
.hk-exp__box p b { display: inline; margin-right: 6px; }
.hk-exp__caution { border-left: 4px solid #FFE94A; border-radius: 6px; background: #FFF8CC; }
.hk-exp__caution b { display: inline; margin-right: 4px; }
.hk-words { width: 100%; border-collapse: collapse; font-size: 14px; }
.hk-words caption { text-align: left; font-weight: 800; padding: 4px 0; }
.hk-words th, .hk-words td { padding: 8px 6px; border-bottom: 1px solid #E6E8EC; text-align: left; vertical-align: top; }
.hk-words th { white-space: nowrap; font-size: 16px; }
.hk-level { display: inline-block; padding: 1px 8px; border: 1px solid #D9DCE3; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.hk-passage { padding: 14px 16px; border-radius: 12px; background: #F7F8FA; }
.hk-passage .hk-text { margin: 0; }
.hk-list3 { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 2; }
.hk-list3 b { margin-right: 8px; }
.hk-list3 span.hk-to { margin-left: 8px; font-size: 12.5px; color: #4B515C; }
.hk-lock { margin: 10px 0 18px; padding: 12px 14px; border: 1px dashed #C5CBD5; border-radius: 12px; font-size: 13.5px; line-height: 1.7; color: #4B515C; }
.hk-full { margin: 10px 0 18px; padding: 12px 14px; border-radius: 12px; background: #F7F8FA; font-size: 14.5px; line-height: 1.8; }
.hk-full b { display: block; margin-bottom: 4px; }
.hk-group { margin-bottom: 22px; }
.hk-cols { display: block; }
.hk-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hk-foot .hk-btn { flex: 1 1 180px; max-width: 420px; }
.hk-result { text-align: center; }
.hk-result h2 { margin: 4px 0; font-size: 15px; color: #4B515C; outline: none; }
.hk-score { margin: 0; font-size: 46px; font-weight: 900; color: #0F1E46; }
.hk-table { width: 100%; max-width: 520px; margin: 14px auto 0; border-collapse: collapse; font-size: 14.5px; text-align: left; }
.hk-table caption { text-align: left; font-weight: 800; padding-bottom: 6px; }
.hk-table th, .hk-table td { border: 1px solid #E6E8EC; padding: 9px 10px; }

@media (min-width: 900px) {
  .hk-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
}
@media (max-width: 700px) {
  .hk-in { padding: 0 16px; }
  .hk-head h1 { font-size: 23px; }
  .hk-title { font-size: 15.5px; }
  .hk-top { gap: 4px; }
  .hk-words th, .hk-words td { padding: 8px 4px; }
}
