/* Shared resource guidance: light surface, explicit colours, no changes to programme gates. */
.resource-use-section {
  background: #f3f5f7;
  color: #1c2a33;
  padding: clamp(24px, 4vw, 40px) 0;
  margin-top: 32px;
  clear: both;
}
.resource-use-section .container {
  max-width: 1120px;
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}
.resource-use-notice {
  border: 1px solid #d6dfe6;
  border-radius: 12px;
  background: #fff;
  padding: 16px 20px;
  color: #1c2a33;
  font:
    400 0.9375rem/1.65 Inter,
    system-ui,
    sans-serif;
  text-align: left;
}
.resource-use-notice summary {
  cursor: pointer;
  font-weight: 700;
  color: #023158;
  min-height: 28px;
}
.resource-use-notice summary:focus-visible {
  outline: 3px solid #023158;
  outline-offset: 5px;
}
.resource-use-notice p {
  color: #1c2a33;
  max-width: 80ch;
  margin: 16px 0 0;
  font-size: inherit;
  line-height: inherit;
}
.resource-use-notice a {
  color: #023158;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.resource-credit {
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  opacity: 1;
}
a.btn .resource-credit,
a.resource-link .resource-credit {
  display: block;
  margin-top: 5px;
  font-size: 0.8em;
  color: inherit;
}
@media (max-width: 480px) {
  .resource-use-notice {
    padding: 16px;
  }
  .resource-use-section .container {
    width: calc(100% - 32px);
  }
}
/* Existing course buttons use flex; keep each source credit below its title. */
a.btn:has(> .resource-credit),
a.resource-link:has(> .resource-credit) {
  display: inline-block;
  white-space: normal;
}
