#das-resource-app {
  font-size: 14px;
}
.resource-selectors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.resource-selectors label {
  font-size: 12px;
  font-weight: 800;
}
.resource-selectors select {
  display: block;
  margin-top: 4px;
}
.term-tabs button[hidden] {
  display: none;
}
.resource-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #edf4ff;
  border: 1px solid #c9d9ef;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 30px;
}
.resource-intro small,
.resource-title small,
.existing-downloads small {
  color: #105eea;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.resource-intro h2,
.resource-title h2 {
  margin: 3px 0;
}
.resource-intro p {
  margin: 0;
  color: #617089;
}
.resource-intro select {
  min-width: 220px;
  padding: 13px;
  border: 1px solid #aebfd6;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}
.resource-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 13px;
}
.resource-title span {
  color: #617089;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 35px;
}
.subject-grid button {
  padding: 15px;
  text-align: left;
  border: 1px solid #d2ddea;
  border-radius: 10px;
  background: #fff;
  color: #10213b;
  font-weight: 800;
  cursor: pointer;
}
.subject-grid button:hover,
.subject-grid button.active {
  border-color: #105eea;
  background: #edf4ff;
  color: #105eea;
}
#resource-viewer {
  border: 1px solid #c8d5e5;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}
#resource-viewer[hidden] {
  display: none;
}
.resource-viewer-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 24px;
  background: #071d41;
  color: #fff;
}
.resource-viewer-head small {
  color: #73a9ff;
  font-weight: 900;
}
.resource-viewer-head h2 {
  color: #fff;
  margin: 4px 0;
}
.resource-viewer-head p {
  margin: 0;
  color: #c5d6ec;
}
.resource-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.resource-actions button {
  border: 1px solid #fff5;
  border-radius: 8px;
  padding: 11px 13px;
}
.resource-actions #print-resource {
  background: #fff;
  color: #071d41;
}
.term-tabs {
  display: flex;
  border-bottom: 1px solid #d2ddea;
  background: #f7f9fc;
}
.term-tabs button {
  padding: 13px 22px;
  border: 0;
  border-right: 1px solid #d2ddea;
  background: transparent;
  font-weight: 800;
}
.term-tabs button.active {
  background: #105eea;
  color: #fff;
}
.resource-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #fff7df;
  border-bottom: 1px solid #e7d59d;
}
.resource-table-wrap {
  overflow: auto;
}
.scheme-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}
.scheme-table th,
.scheme-table td {
  border: 1px solid #cbd7e5;
  padding: 9px;
  vertical-align: top;
}
.scheme-table th {
  background: #eaf2ff;
  color: #071d41;
}
.scheme-table td:first-child {
  text-align: center;
  font-weight: 900;
}
.lesson-week {
  padding: 20px;
  border-bottom: 1px solid #d2ddea;
}
.lesson-week:last-child {
  border: 0;
}
.lesson-week header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.lesson-week h3 {
  margin: 0;
  color: #071d41;
}
.lesson-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.lesson-fields div {
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  padding: 11px;
}
.lesson-fields b {
  display: block;
  color: #105eea;
  font-size: 11px;
  text-transform: uppercase;
}
.existing-downloads {
  padding: 30px 0;
}
.existing-downloads header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 25px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.download-grid article {
  border: 1px solid #d2ddea;
  border-radius: 12px;
  padding: 18px;
}
.download-grid article > b,
.download-grid article > span {
  display: block;
}
.download-grid article > span {
  color: #617089;
  margin: 5px 0 13px;
}
.download-grid article a {
  display: inline-block;
  background: #105eea;
  color: #fff;
  border-radius: 7px;
  padding: 8px 13px;
  margin-right: 6px;
  font-weight: 800;
}
#resource-access-status {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1cd;
  color: #7a5100;
  font-size: 12px;
  font-weight: 900;
}
#resource-access-status.active {
  background: #dff7e8;
  color: #126032;
}
.resource-document-head {
  padding: 26px;
  text-align: center;
  background: linear-gradient(135deg, #071d41, #105eea);
  color: #fff;
  border-bottom: 7px solid #f5a623;
}
.resource-document-head small {
  color: #ffd879;
  font-weight: 900;
  letter-spacing: 2px;
}
.resource-document-head h1 {
  color: #fff;
  margin: 6px 0;
}
.resource-document-head p {
  margin: 5px 0 0;
  color: #dbe9ff;
}
.resource-document-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff3d5;
  border-bottom: 1px solid #d9c388;
}
.resource-document-meta span {
  padding: 10px;
  border-right: 1px solid #d9c388;
}
.resource-watermark {
  text-align: center;
  padding: 13px;
  border-top: 4px solid #f5a623;
  color: #617089;
  font-weight: 800;
}
.scheme-table thead th {
  background: #105eea;
  color: #fff;
}
.scheme-table tbody tr:nth-child(even) td {
  background: #eef5ff;
}
#das-resource-paywall .modal-card {
  max-width: 520px;
  text-align: center;
}
#das-resource-paywall #resource-price {
  display: block;
  font-size: 28px;
  color: #105eea;
  margin: 12px;
}
#das-resource-paywall .btn {
  display: inline-block;
  margin: 10px 0;
}
@media (max-width: 820px) {
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resource-viewer-head {
    display: block;
  }
  .resource-actions {
    margin-top: 15px;
  }
  .lesson-fields,
  .download-grid {
    grid-template-columns: 1fr;
  }
  .resource-document-meta {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .resource-intro {
    display: block;
  }
  .resource-intro select {
    width: 100%;
    margin-top: 12px;
  }
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .term-tabs button {
    flex: 1;
    padding: 11px 4px;
  }
  .resource-meta {
    display: block;
  }
  .resource-meta span {
    display: block;
    margin: 4px 0;
  }
  .resource-document-meta {
    grid-template-columns: 1fr;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  #resource-viewer,
  #resource-viewer * {
    visibility: visible;
  }
  #resource-viewer {
    position: absolute;
    inset: 0;
    border: 0;
  }
  .resource-actions,
  .term-tabs {
    display: none;
  }
}
