/*
 * Legacy hub foundations.
 *
 * This file only keeps layout primitives still required by existing shortcode
 * markup. New and corrective rules belong in ki-hub-pages.css.
 */
.ki-hub {
  --ki-hub-navy: var(--ki-theme-primary, #17385c);
  --ki-hub-blue: var(--ki-theme-accent, #0d57b7);
  --ki-hub-gold: #f0b429;
  --ki-hub-bg: var(--ki-theme-page-bg, #f8fafc);
  --ki-hub-border: var(--ki-theme-border, #e2e8f0);
  --ki-hub-muted: var(--ki-theme-muted, #64748b);
  color: #172033;
  max-width: var(--ki-theme-content-width, 1180px);
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .ki-hub-page-template #contents {
    max-width: 1240px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .ki-hub-page-template #sidebar,
  .ki-hub-page-template #sidebar.sideber {
    display: none;
  }

  .ki-hub-page-template #main-contents {
    float: none;
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .ki-hub-page-template .cps-post-box,
  .ki-hub-page-template .cps-post,
  .ki-hub-page-template .cps-post-main-box {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .ki-hub-page-template #contents {
    max-width: 1280px;
  }
}

.ki-hub * {
  box-sizing: border-box;
}

.ki-hub-header {
  margin: 0 0 28px;
  padding: 28px;
  border: 1px solid var(--ki-hub-border);
  border-radius: 8px;
  background: #fff;
}

.ki-hub-title {
  margin: 0 0 10px;
  color: var(--ki-hub-navy);
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0;
}

.ki-hub-lead {
  margin: 0;
  color: #30394a;
  font-size: 16px;
  line-height: 1.8;
}

.ki-hub-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ki-hub-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #e7d4a6;
  border-radius: 999px;
  background: #fffaf0;
  color: #5d4615;
  font-size: 13px;
  font-weight: 700;
}

.ki-hub-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 34px;
}

.ki-hub-nav-title {
  margin: 0 0 14px;
  color: var(--ki-hub-navy);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0;
}

.ki-hub-nav-card {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--ki-hub-border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(18, 33, 63, 0.06);
}

a.ki-hub-nav-card:hover {
  border-color: #c9a04a;
  color: inherit;
  text-decoration: none;
}

.ki-hub-nav-card .ki-hub-card-title {
  color: var(--ki-hub-navy);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
}

.ki-hub-nav-card .ki-hub-card-desc {
  color: var(--ki-hub-muted);
  font-size: 13px;
  line-height: 1.65;
}

.ki-hub-nav-card__note {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7e2;
  color: #6c5015;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.ki-hub-nav-tree {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 34px;
}

.ki-hub-nav-tree__card {
  padding: 18px;
  border: 1px solid var(--ki-hub-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 33, 63, 0.06);
}

.ki-hub-nav-tree__card h3,
.ki-hub-nav-tree__card h4 {
  margin: 0;
  letter-spacing: 0;
}

.ki-hub-nav-tree__card h3 {
  color: var(--ki-hub-navy);
  font-size: 17px;
  line-height: 1.45;
}

.ki-hub-nav-tree__group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ki-hub-border);
}

.ki-hub-nav-tree__card h4 {
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.ki-hub-nav-tree__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ki-hub-nav-tree__items li {
  margin: 0;
  padding: 0;
}

.ki-hub-nav-tree__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: var(--ki-hub-bg);
  color: var(--ki-hub-blue);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  text-decoration: none;
}

a.ki-hub-nav-tree__title,
a.ki-hub-nav-tree__subtitle,
a.ki-hub-nav-tree__link {
  text-decoration: none;
}

a.ki-hub-nav-tree__title:hover,
a.ki-hub-nav-tree__subtitle:hover,
a.ki-hub-nav-tree__link:hover {
  border-color: #c9a04a;
  color: var(--ki-hub-navy);
  text-decoration: none;
}

.ki-hub-nav-tree__title,
.ki-hub-nav-tree__subtitle {
  color: inherit;
}

.ki-hub .ki-chip-group,
.ki-term .ki-chip-group {
  margin: 0 0 34px;
  padding: 18px;
  border: 1px solid var(--ki-hub-border);
  border-radius: 8px;
  background: #fff;
}

.ki-hub .ki-chip-group__title,
.ki-term .ki-chip-group__title {
  margin: 0 0 12px;
  color: var(--ki-hub-navy);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.ki-hub .ki-chip-list,
.ki-term .ki-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ki-hub .ki-chip,
.ki-term .ki-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--ki-hub-blue);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  text-decoration: none;
}

.ki-hub a.ki-chip:hover,
.ki-term a.ki-chip:hover {
  border-color: #c9a04a;
  background: #fff7e2;
  color: var(--ki-hub-navy);
  text-decoration: none;
}

.ki-hub-section {
  margin: 0 0 34px;
  scroll-margin-top: 90px;
}

.ki-hub-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ki-hub-navy);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0;
}

.ki-hub-section-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 24px;
  border-radius: 4px;
  background: var(--ki-hub-gold);
}

.ki-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ki-hub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--ki-hub-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 33, 63, 0.05);
}

.ki-hub-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eaf0f7;
  color: inherit;
  text-decoration: none;
}

.ki-hub-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.ki-hub-card:hover .ki-hub-card__media img {
  transform: scale(1.035);
}

.ki-hub-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  margin: -12px 12px 12px;
  padding: 12px;
  border: 1px solid rgba(220, 227, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(18, 33, 63, 0.08);
}

.ki-hub-card-label {
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--ki-hub-blue);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.ki-hub-card-title {
  color: var(--ki-hub-navy);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 800;
  text-decoration: none;
}

.ki-hub-card-title:hover {
  color: var(--ki-hub-blue);
  text-decoration: underline;
}

.ki-hub-card-desc {
  margin: 0;
  color: #3e4858;
  font-size: 14px;
  line-height: 1.7;
}

.ki-hub-section-desc {
  margin: -4px 0 14px;
  color: var(--ki-hub-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ki-hub-card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
  color: var(--ki-hub-muted);
  font-size: 12px;
  line-height: 1.6;
}

.ki-exam-archive {
  margin: 0 0 34px;
  padding: 20px 0 0;
  border-top: 1px solid #e7edf5;
  scroll-margin-top: 90px;
}

.ki-exam-archive__header {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
}

.ki-exam-archive__eyebrow {
  margin: 0 0 4px;
  color: var(--ki-hub-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.ki-exam-archive__title {
  margin: 0;
  color: var(--ki-hub-navy);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0;
}

.ki-exam-archive__lead {
  max-width: 760px;
  margin: 0;
  color: #10213e;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
}

.ki-exam-archive__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ki-exam-archive__stats > span {
  display: grid;
  grid-template-columns: 54px auto;
  gap: 12px;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 33, 62, 0.06);
  text-align: left;
}

.ki-exam-archive__stats > span + span {
  border-left: 1px solid #dce4ee;
}

.ki-exam-archive__stat-icon {
  display: inline-flex;
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f4fa;
  color: #0a2b58;
  font-size: 27px;
}

.ki-exam-archive__stats strong {
  color: var(--ki-hub-navy);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
}

.ki-exam-archive__stats small {
  color: #10213e;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.ki-exam-archive__tabs {
  display: grid;
  gap: 18px;
}

.ki-exam-archive__tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ki-exam-archive__switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #fff;
}

.ki-exam-archive__tab-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #10213e;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.ki-exam-archive__tab-label + .ki-exam-archive__tab-label {
  border-left: 1px solid #d8e1ec;
}

.ki-exam-archive__tab-label .dashicons {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

#ki-exam-archive-tab-year:checked ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--year,
#ki-exam-archive-tab-exam:checked ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--exam {
  position: relative;
  background: #052b5f;
  color: #fff;
}

#ki-exam-archive-tab-year:checked ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--year::after,
#ki-exam-archive-tab-exam:checked ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--exam::after {
  content: "";
  position: absolute;
  right: 45%;
  bottom: 7px;
  left: 45%;
  height: 3px;
  border-radius: 999px;
  background: #e2b13c;
}

.ki-exam-archive__tab-label:hover {
  background: #f7faff;
  color: var(--ki-hub-navy);
  text-decoration: none;
}

#ki-exam-archive-tab-year:focus-visible ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--year,
#ki-exam-archive-tab-exam:focus-visible ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--exam {
  outline: 3px solid rgba(226, 177, 60, 0.45);
  outline-offset: -3px;
}

#ki-exam-archive-tab-year:checked ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--year:hover,
#ki-exam-archive-tab-exam:checked ~ .ki-exam-archive__switch .ki-exam-archive__tab-label--exam:hover {
  background: #052b5f;
  color: #fff;
}

.ki-exam-archive__views {
  display: block;
}

.ki-exam-archive-view {
  display: none;
  min-width: 0;
}

#ki-exam-archive-tab-year:checked ~ .ki-exam-archive__views .ki-exam-archive-view--year,
#ki-exam-archive-tab-exam:checked ~ .ki-exam-archive__views .ki-exam-archive-view--exam {
  display: grid;
  gap: 14px;
}

.ki-exam-archive-view h3 {
  margin: 0 0 8px;
  color: var(--ki-hub-navy);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

.ki-exam-archive-group {
  overflow: hidden;
  border: 1px solid #dce4ee;
  border-left: 1px solid #dce4ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 33, 62, 0.04);
}

.ki-exam-archive-group[open] {
  border-left: 4px solid #d7a51e;
}

.ki-exam-archive-group summary {
  display: grid;
  position: relative;
  cursor: pointer;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  min-height: 64px;
  padding: 11px 42px 11px 18px;
  list-style: none;
}

.ki-exam-archive-group summary::-webkit-details-marker {
  display: none;
}

.ki-exam-archive-group summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7890;
  border-bottom: 2px solid #6b7890;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

.ki-exam-archive-group[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.ki-exam-archive-group__icon {
  display: inline-flex;
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #062957;
  color: #fff;
  font-size: 18px;
}

.ki-exam-archive-group__label {
  min-width: 0;
  color: var(--ki-hub-navy);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.ki-exam-archive-group__count {
  grid-column: 3;
  color: var(--ki-hub-blue);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  white-space: nowrap;
}

.ki-exam-archive-group__years {
  display: none;
}

.ki-exam-archive-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0 18px 18px 56px;
  list-style: none;
}

.ki-exam-archive-link {
  margin: 0;
  padding: 0;
}

.ki-exam-archive-link a {
  display: flex;
  position: relative;
  min-height: 144px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 44px 16px 16px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(16, 33, 62, 0.035);
}

.ki-exam-archive-link a:hover {
  border-color: #c9a04a;
  background: #fffdf7;
  text-decoration: none;
}

.ki-exam-archive-link a:hover .ki-exam-archive-link__title {
  color: var(--ki-hub-blue);
  text-decoration: none;
}

.ki-exam-archive-link__title {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  color: #061a3d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ki-exam-archive-link__year {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.ki-exam-archive-link__year--latest {
  background: #fff0cf;
  color: #9a6900;
}

.ki-exam-archive-link__year--year {
  background: #eaf2ff;
  color: #174a8b;
}

.ki-exam-archive-link__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin-top: auto;
  min-width: 0;
  padding-right: 8px;
}

.ki-exam-archive-link__meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f5f9;
  color: var(--ki-hub-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.ki-exam-archive-link__meta .dashicons {
  width: 15px;
  height: 15px;
  margin-right: 4px;
  color: #0a2b58;
  font-size: 15px;
  line-height: 1;
}

.ki-exam-archive-link__meta > span:first-child {
  background: #eef4fb;
  color: var(--ki-hub-blue);
}

.ki-exam-archive-link__arrow {
  position: absolute;
  right: 15px;
  bottom: 22px;
  width: 20px;
  height: 20px;
  color: #0a2b58;
  font-size: 20px;
  line-height: 1;
}

.ki-pay-table-archive {
  margin: 0 0 34px;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--ki-hub-border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.ki-pay-table-archive__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}

.ki-pay-table-archive__intro {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ki-pay-table-archive__title {
  margin: 0;
  color: var(--ki-hub-navy);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0;
}

.ki-pay-table-archive__lead {
  margin: 0;
  color: var(--ki-hub-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ki-pay-table-archive__stats {
  display: grid;
  flex: 0 0 246px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #f8fbff;
}

.ki-pay-table-archive__stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
}

.ki-pay-table-archive__stats span + span {
  border-left: 1px solid #dfe7f1;
}

.ki-pay-table-archive__stats strong {
  color: var(--ki-hub-navy);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
}

.ki-pay-table-archive__stats small {
  color: var(--ki-hub-muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
}

.ki-pay-table-archive__year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
}

.ki-pay-table-archive__year-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #fbfcfe;
  color: var(--ki-hub-blue);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  text-decoration: none;
}

.ki-pay-table-archive__year-nav a:hover {
  border-color: #c9a04a;
  background: #fff7e2;
  color: var(--ki-hub-navy);
  text-decoration: none;
}

.ki-pay-table-archive__years {
  display: grid;
  gap: 10px;
}

.ki-pay-table-year {
  border: 0;
  border-top: 1px solid #e1e7f0;
  border-radius: 0;
  background: transparent;
  scroll-margin-top: 90px;
}

.ki-pay-table-year[open] {
  background: transparent;
}

.ki-pay-table-year__summary {
  display: flex;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 42px 14px 0;
  color: var(--ki-hub-navy);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.ki-pay-table-year__summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7890;
  border-bottom: 2px solid #6b7890;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

.ki-pay-table-year[open] .ki-pay-table-year__summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.ki-pay-table-year__summary small {
  color: var(--ki-hub-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}

.ki-pay-table-year__body {
  overflow-x: auto;
  padding: 0 0 14px;
}

.ki-pay-table-list {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.ki-pay-table-list th,
.ki-pay-table-list td {
  padding: 9px 0;
  border-top: 1px solid #edf1f6;
  vertical-align: top;
}

.ki-pay-table-list th {
  width: 220px;
  padding-right: 16px;
  color: #1f2c44;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
  text-align: left;
}

.ki-pay-table-list td {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ki-pay-table-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ki-hub-blue);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ki-pay-table-link--base {
  border-color: #cbdaf0;
  background: #f3f7ff;
  color: #1d4f85;
}

.ki-pay-table-link--after {
  border-color: #d9c48f;
  background: #fff8e8;
  color: #6d4a00;
}

.ki-pay-table-link--diff {
  border-color: #cfe1d3;
  background: #f3fbf5;
  color: #24613a;
}

.ki-pay-table-link--recommendation {
  border-color: #ddd6fe;
  background: #f7f5ff;
  color: #51408d;
}

a.ki-pay-table-link:hover {
  border-color: #c9a04a;
  background: #fff7e2;
  color: var(--ki-hub-navy);
  text-decoration: none;
}

.ki-hub-page--w_choice .ki-hub-grid {
  gap: 12px;
}

.ki-hub-page--w_choice .ki-hub-card__media {
  aspect-ratio: 2 / 1;
}

.ki-hub-page--w_choice .ki-hub-card__body {
  gap: 6px;
  margin: -10px 10px 10px;
  padding: 10px;
}

.ki-hub-page--w_choice .ki-hub-card-label {
  padding: 3px 8px;
  font-size: 11px;
}

.ki-hub-page--w_choice .ki-hub-card-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ki-hub-page--w_choice .ki-hub-card-desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ki-hub-page--w_choice .ki-hub-card-meta {
  padding-top: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.ki-hub-section-more,
.ki-hub-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--ki-hub-border);
  border-radius: 8px;
  background: var(--ki-hub-bg);
  color: var(--ki-hub-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .ki-hub-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ki-hub-nav-tree {
    grid-template-columns: 1fr;
  }

  .ki-exam-archive-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ki-hub {
    margin-bottom: 32px;
  }

  .ki-hub-header {
    padding: 20px;
  }

  .ki-hub-title {
    font-size: 24px;
  }

  .ki-pay-table-archive {
    padding: 16px 0 0;
  }

  .ki-pay-table-archive__header {
    display: grid;
    gap: 14px;
  }

  .ki-exam-archive {
    padding-top: 20px;
  }

  .ki-exam-archive__header {
    display: grid;
    gap: 18px;
  }

  .ki-exam-archive__title {
    font-size: 20px;
  }

  .ki-exam-archive__lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .ki-exam-archive__stats {
    width: 100%;
    gap: 9px;
  }

  .ki-exam-archive__stats > span {
    grid-template-columns: 34px auto;
    gap: 6px;
    min-height: 74px;
    padding: 9px 7px;
    border-radius: 9px;
  }

  .ki-exam-archive__stat-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .ki-exam-archive__stats strong {
    font-size: 26px;
  }

  .ki-exam-archive__stats small {
    font-size: 12px;
  }

  .ki-exam-archive__switch {
    border-radius: 8px;
  }

  .ki-exam-archive__tab-label {
    min-height: 48px;
    gap: 7px;
    font-size: 16px;
  }

  .ki-exam-archive__tab-label .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }

  .ki-exam-archive__views {
    display: block;
  }

  .ki-exam-archive-group summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 4px 10px;
    min-height: 62px;
    padding: 10px 38px 10px 16px;
  }

  .ki-exam-archive-group summary::after {
    right: 20px;
  }

  .ki-exam-archive-group__icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .ki-exam-archive-group__label {
    font-size: 18px;
  }

  .ki-exam-archive-group__count {
    font-size: 16px;
  }

  .ki-exam-archive-group__years {
    display: none;
  }

  .ki-exam-archive-link a {
    min-height: 126px;
    padding: 12px 34px 12px 12px;
  }

  .ki-exam-archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px 24px;
  }

  .ki-exam-archive-link__title {
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .ki-exam-archive-link__year {
    min-height: 24px;
    padding: 2px 8px;
    font-size: 12px;
  }

  .ki-exam-archive-link__meta {
    gap: 3px;
  }

  .ki-exam-archive-link__meta > span {
    min-height: 20px;
    padding: 1px 7px;
    font-size: 10px;
  }

  .ki-pay-table-archive__title {
    font-size: 20px;
  }

  .ki-pay-table-archive__stats {
    width: 100%;
    flex-basis: auto;
  }

  .ki-pay-table-year__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ki-pay-table-year__summary small {
    white-space: normal;
  }

  .ki-pay-table-year__body {
    overflow-x: visible;
  }

  .ki-pay-table-list {
    min-width: 0;
  }

  .ki-pay-table-list,
  .ki-pay-table-list tbody,
  .ki-pay-table-list tr,
  .ki-pay-table-list th,
  .ki-pay-table-list td {
    display: block;
    width: 100%;
  }

  .ki-pay-table-list tr {
    padding: 10px 0;
    border-top: 1px solid #edf1f6;
  }

  .ki-pay-table-list th,
  .ki-pay-table-list td {
    padding: 0;
    border-top: 0;
  }

  .ki-pay-table-list th {
    margin: 0 0 8px;
    padding-right: 0;
  }

  .ki-hub-nav,
  .ki-hub-nav-tree,
  .ki-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ki-hub-page--w_choice .ki-hub-grid {
    gap: 10px;
  }

  .ki-hub-page--w_choice .ki-hub-card {
    min-height: 0;
    flex-direction: row;
    align-items: stretch;
  }

  .ki-hub-page--w_choice .ki-hub-card__media {
    flex: 0 0 134px;
    width: 134px;
    aspect-ratio: 16 / 9;
    min-height: 0;
    background: #f8fafc;
  }

  .ki-hub-page--w_choice .ki-hub-card__media img {
    object-fit: contain;
  }

  .ki-hub-page--w_choice .ki-hub-card:hover .ki-hub-card__media img {
    transform: none;
  }

  .ki-hub-page--w_choice .ki-hub-card__body {
    min-width: 0;
    margin: 0;
    padding: 8px 9px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ki-hub-page--w_choice .ki-hub-card-label {
    padding: 2px 7px;
    font-size: 10px;
    line-height: 1.35;
  }

  .ki-hub-page--w_choice .ki-hub-card-title {
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .ki-hub-page--w_choice .ki-hub-card-desc {
    font-size: 11px;
    line-height: 1.4;
    -webkit-line-clamp: 1;
  }

  .ki-hub-page--w_choice .ki-hub-card-meta {
    display: none;
  }
}
