.homeschool-page {
  background: #f6f8fc;
}

.homeschool-container {
  padding-top: 18px;
}

.homeschool-hero {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 38px 0 18px;
  text-align: center;
}

.homeschool-hero h1 {
  max-width: 820px;
  margin: 0 auto 12px;
  color: var(--ux-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.homeschool-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ux-muted);
  font-size: 1.06rem;
}

.homeschool-actions,
.homeschool-record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.homeschool-grid,
.homeschool-router,
.homeschool-record,
.homeschool-note {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--ux-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ux-shadow);
}

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

.homeschool-grid article {
  padding: 4px;
}

.homeschool-grid h2,
.homeschool-router h2,
.homeschool-record h2,
.homeschool-note h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.homeschool-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ux-muted);
}

.homeschool-grid li + li {
  margin-top: 7px;
}

.homeschool-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.homeschool-link-grid a {
  display: block;
  min-height: 118px;
  padding: 14px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ux-ink);
  text-decoration: none;
}

.homeschool-link-grid a:hover,
.homeschool-link-grid a:focus-visible {
  border-color: var(--ux-blue);
  background: #fff;
  box-shadow: var(--ux-shadow);
}

.homeschool-link-grid strong {
  display: block;
  margin-bottom: 6px;
}

.homeschool-link-grid span {
  display: block;
  color: var(--ux-muted);
  line-height: 1.4;
}

.homeschool-pack-card strong {
  font-size: 1.02rem;
}

.homeschool-inline-links {
  margin: 14px 0 0;
  color: var(--ux-muted);
}

.homeschool-inline-links a {
  color: var(--ux-blue);
  font-weight: 800;
}

.homeschool-subject-pack {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--ux-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ux-shadow);
}

.homeschool-subject-pack__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.homeschool-subject-pack__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.homeschool-pack-table td:first-child {
  min-width: 340px;
}

.homeschool-pack-table td:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--ux-muted);
  line-height: 1.35;
}

.homeschool-pack-table td a {
  color: var(--ux-blue);
  font-weight: 900;
  text-decoration: none;
}

.homeschool-pack-table td a:hover,
.homeschool-pack-table td a:focus-visible {
  text-decoration: underline;
}

.print-check {
  min-width: 105px;
  color: var(--ux-muted);
  line-height: 1.55;
}

.homeschool-qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--ux-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ux-shadow);
}

.homeschool-qr-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.homeschool-qr-card p {
  margin: 0 0 10px;
  color: var(--ux-muted);
}

.homeschool-qr-card a {
  color: var(--ux-blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.homeschool-qr {
  width: 172px;
  min-height: 172px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
}

.homeschool-qr canvas,
.homeschool-qr img,
.homeschool-qr svg {
  width: 156px !important;
  height: 156px !important;
}

.homeschool-record__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.homeschool-record__head p {
  margin: 0;
  color: var(--ux-muted);
}

.homeschool-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.homeschool-controls label {
  display: grid;
  gap: 5px;
  color: var(--ux-ink);
  font-weight: 800;
}

.homeschool-controls select,
.homeschool-controls input,
.homeschool-table input[type="text"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #c8d5e7;
  border-radius: 10px;
  background: #fff;
  color: var(--ux-ink);
  font: inherit;
}

.homeschool-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7faff;
  color: var(--ux-muted);
}

.homeschool-summary strong {
  color: var(--ux-ink);
}

.homeschool-table-wrap {
  overflow-x: auto;
  border: 1px solid #dce5f1;
  border-radius: 12px;
}

.homeschool-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: #fff;
}

.homeschool-table th,
.homeschool-table td {
  padding: 10px;
  border-bottom: 1px solid #e8eef7;
  text-align: left;
  vertical-align: top;
}

.homeschool-table th {
  background: #f7faff;
  color: var(--ux-ink);
  font-size: 0.9rem;
}

.homeschool-skill-title {
  display: block;
  color: var(--ux-ink);
  font-weight: 900;
}

.homeschool-skill-title a {
  color: var(--ux-blue);
  text-decoration: none;
}

.homeschool-skill-title a:hover {
  text-decoration: underline;
}

.homeschool-skill-meta {
  display: block;
  margin-top: 3px;
  color: var(--ux-muted);
  font-size: 0.86rem;
}

.homeschool-table input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.homeschool-note p {
  margin: 0;
  color: var(--ux-muted);
}

@media (max-width: 920px) {
  .homeschool-grid,
  .homeschool-link-grid,
  .homeschool-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .homeschool-grid,
  .homeschool-link-grid,
  .homeschool-controls,
  .homeschool-subject-pack__head,
  .homeschool-qr-card,
  .homeschool-record__head {
    display: block;
  }

  .homeschool-grid article + article,
  .homeschool-link-grid a + a,
  .homeschool-controls label + label,
  .homeschool-qr,
  .homeschool-subject-pack__head .ux-secondary {
    margin-top: 10px;
  }

  .homeschool-record__head .ux-primary {
    width: 100%;
    margin-top: 12px;
  }
}

@media print {
  .site-header,
  .homeschool-hero,
  .homeschool-grid,
  .homeschool-router,
  .homeschool-qr-card,
  .homeschool-record-actions,
  footer {
    display: none !important;
  }

  body,
  .home-page .container,
  .homeschool-record {
    background: #fff !important;
    box-shadow: none !important;
  }

  .homeschool-record {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .homeschool-subject-pack {
    break-inside: avoid;
    border: 0;
    box-shadow: none;
    margin: 0 0 18px;
    padding: 0;
  }

  .homeschool-subject-pack__head .ux-secondary {
    display: none;
  }

  .homeschool-table-wrap {
    overflow: visible;
    border: 0;
  }

  .homeschool-table {
    min-width: 0;
    font-size: 10pt;
  }

  .homeschool-table th,
  .homeschool-table td {
    padding: 6px;
  }
}
