@charset "UTF-8";

body.theme-materials {
  background: #f3f6f8;
}

.materials-page {
  width: 100%;
  margin: 0 0 72px;
  color: #15283e;
}

.materials-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 32px;
  min-height: 244px;
  padding: 28px 38px;
  border: 0;
  border-top: 4px solid var(--accent);
  border-radius: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, .12), transparent 22%),
    linear-gradient(132deg, #102a43 4%, color-mix(in srgb, var(--accent) 72%, #12334c));
  color: #fff;
  box-shadow: none;
}

.materials-hero::after {
  content: attr(data-issue);
  position: absolute;
  right: 3%;
  top: -28px;
  color: rgba(255, 255, 255, .055);
  font-size: 220px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.materials-hero__copy,
.materials-hero__actions {
  position: relative;
  z-index: 1;
}

.materials-hero__copy > p,
.materials-section-head > div > span {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
}

.materials-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 3.1vw, 46px);
  letter-spacing: -.055em;
}

.materials-hero__copy > span {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.7;
}

.materials-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.materials-hero__stats b {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(0, 0, 0, .12);
  color: rgba(255, 255, 255, .77);
  font-size: 11px;
}

.materials-hero__stats strong {
  color: #fff;
  font-size: 18px;
}

.materials-hero__actions {
  display: grid;
  gap: 11px;
  width: 290px;
  max-width: 100%;
}

.materials-issue-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: rgba(7, 28, 45, .38);
  backdrop-filter: blur(8px);
}

.materials-issue-form label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.materials-issue-form select,
.materials-issue-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.materials-issue-form select {
  min-width: 0;
  padding: 0 12px;
  background: #fff;
  color: #15324b;
}

.materials-issue-form button {
  padding: 0 13px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.materials-hero__actions > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.materials-editions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 0;
  background: #dce3e9;
}

.materials-editions a {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #fff;
  color: #41556a;
  text-decoration: none;
}

.materials-editions a.is-active {
  background: var(--accent);
  color: #fff;
}

.materials-editions span {
  font-size: 14px;
  font-weight: 900;
}

.materials-editions small {
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  opacity: .7;
}

.materials-issues {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  min-height: 76px;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0;
  border: 1px solid #dce3e9;
  border-radius: 0;
  background: #fff;
}

.materials-issues__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}

.materials-issues__heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .05em;
}

.materials-issues__heading strong {
  color: #516276;
  font-size: 13px;
}

.materials-issue-links {
  display: flex;
  min-width: 0;
  overflow-x: auto;
}

.materials-issue-links a {
  display: flex;
  min-width: 82px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border-left: 1px solid #dce3e9;
  color: #516276;
  text-decoration: none;
}

.materials-issue-links a.is-active {
  background: var(--accent);
  color: #fff;
}

.materials-issue-links a b {
  font-size: 18px;
}

.materials-issue-links a small {
  font-size: 11px;
  font-weight: 850;
  opacity: .82;
}

.materials-downloads,
.materials-unit-downloads {
  padding: 34px 38px;
  border: 1px solid #dfe6eb;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.materials-unit-downloads {
  margin-top: 14px;
  scroll-margin-top: 100px;
}

.materials-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.materials-section-head > div > span {
  color: var(--accent);
}

.materials-section-head h2 {
  margin: 0 0 8px;
  color: #142b42;
  font-size: clamp(25px, 3.5vw, 36px);
  letter-spacing: -.04em;
}

.materials-section-head p {
  margin: 0;
  color: #708092;
  font-size: 13px;
  line-height: 1.65;
}

.materials-section-head > b {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .09);
  color: var(--accent);
  font-size: 11px;
}

.materials-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.materials-resource-card {
  --resource-color: #34556f;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dce4ea;
  border-radius: 16px;
  background: linear-gradient(150deg, #fff, #f7f9fa);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.materials-resource-card.is-primary {
  min-height: 292px;
  border-top: 5px solid var(--resource-color);
}

.materials-resource-card.is-audio { --resource-color: #087f8c; }
.materials-resource-card.is-song { --resource-color: #6547b9; }
.materials-resource-card.is-document { --resource-color: #41617e; }
.materials-resource-card.is-answer { --resource-color: #16845b; }

.materials-resource-card.is-selected,
.materials-resource-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--resource-color) 65%, #dce4ea);
  box-shadow: 0 14px 28px rgba(26, 52, 74, .09);
}

.materials-resource-card.is-unavailable {
  opacity: .66;
  filter: grayscale(.55);
}

.materials-resource-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.materials-resource-card__top > span {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--resource-color);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
}

.materials-resource-card__top small {
  color: #8996a4;
  font-size: 9px;
  font-weight: 850;
}

.materials-resource-card h3 {
  margin: 0 0 10px;
  color: #142b42;
  font-size: 21px;
  letter-spacing: -.035em;
}

.materials-resource-card > p {
  margin: 0;
  color: #6b7b8c;
  font-size: 12px;
  line-height: 1.65;
}

.materials-resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.materials-resource-card__meta span {
  padding: 5px 7px;
  border-radius: 6px;
  background: #edf2f5;
  color: #4a5e72;
  font-size: 10px;
  font-weight: 850;
}

.materials-resource-card > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--resource-color);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.materials-resource-card > a b {
  font-size: 18px;
}

.materials-resource-card__empty {
  margin-top: auto;
  padding: 12px;
  border-radius: 8px;
  background: #edf0f2;
  color: #687786;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.materials-article-list {
  overflow: hidden;
  border: 1px solid #dfe6eb;
  border-radius: 0;
}

.materials-article-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 92px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaee;
  background: #fff;
}

.materials-article-row:nth-child(even) {
  background: #f8fafb;
}

.materials-article-row:last-child {
  border-bottom: 0;
}

.materials-article-row > b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
  font-size: 14px;
}

.materials-article-row > div:nth-child(2) {
  min-width: 0;
}

.materials-article-row > div > span {
  display: block;
  margin-bottom: 4px;
  color: #8492a0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.materials-article-row h3 {
  overflow: hidden;
  margin: 0;
  color: #1b3148;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.materials-article-row__actions {
  display: flex;
  gap: 8px;
}

.materials-article-row__actions a {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 8px;
  min-width: 126px;
  min-height: 52px;
  align-content: center;
  padding: 7px 11px;
  border: 1px solid #d7e0e6;
  border-radius: 9px;
  background: #fff;
  color: #244058;
  text-decoration: none;
}

.materials-article-row__actions small {
  grid-row: 1 / 3;
  align-self: center;
  padding: 5px;
  border-radius: 5px;
  background: #087f8c;
  color: #fff;
  font-size: 7px;
  font-weight: 950;
}

.materials-article-row__actions a:nth-child(2) small {
  background: #6547b9;
}

.materials-article-row__actions span {
  font-size: 10px;
  font-weight: 900;
}

.materials-article-row__actions b {
  color: #8492a0;
  font-size: 8px;
}

.materials-source-note {
  margin: 16px 4px 0;
  color: #778696;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .materials-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-article-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .materials-article-row__actions {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .materials-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    min-height: 0;
    padding: 32px;
    border-radius: 0;
  }

  .materials-hero__actions {
    width: 100%;
  }

  .materials-editions {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
  }

  .materials-editions a {
    flex-direction: column;
    gap: 4px;
  }

  .materials-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .materials-issues {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .materials-issue-links a {
    min-height: 54px;
  }
}

@media (max-width: 560px) {
  .materials-hero {
    padding: 30px 22px;
  }

  .materials-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .materials-resource-grid {
    grid-template-columns: 1fr;
  }

  .materials-downloads,
  .materials-unit-downloads {
    padding: 18px;
    border-radius: 0;
  }

  .materials-article-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 10px;
  }

  .materials-article-row > b {
    width: 36px;
    height: 36px;
  }

  .materials-article-row__actions {
    grid-column: 1 / -1;
  }

  .materials-article-row__actions a {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Published article documents: PDF and editable Word, 2026-10-22. */
.materials-document-grid { margin-bottom: 16px; }
.materials-resource-card.is-document { min-height: 240px; }
.materials-document-buttons { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:auto; }
.materials-document-buttons a { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; min-height:46px; padding:10px; border:1px solid var(--resource-color); border-radius:8px; background:var(--resource-color); color:#fff; font-size:13px; font-weight:800; text-decoration:none; }
.materials-document-buttons a + a { background:#fff; color:var(--resource-color); }
.materials-document-buttons small { font-size:10px; }
.materials-paper-download { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; margin-bottom:24px; border:1px solid #dce4ea; border-radius:12px; background:#f6f9fe; }
.materials-paper-download strong { display:block; font-size:16px; }
.materials-paper-download span { display:block; margin-top:4px; color:#60748b; font-size:13px; }
.materials-paper-download a { padding:10px 14px; color:#305dea; font-weight:800; white-space:nowrap; }
.materials-article-row__actions { align-items:flex-start; flex-wrap:wrap; }
.materials-document-options { min-width:188px; border:1px solid #d7e0e6; border-radius:9px; background:#fff; }
.materials-document-options summary { cursor:pointer; padding:16px 12px; color:#244058; font-size:12px; font-weight:800; }
.materials-document-options > div { padding:0 10px 8px; }
.materials-document-options p { display:flex; gap:6px; align-items:center; margin:6px 0; }
.materials-document-options strong { min-width:30px; font-size:12px; }
.materials-article-row__actions .materials-document-options a { display:inline-flex; min-width:0; min-height:32px; padding:5px 10px; align-items:center; font-size:12px; }
.materials-article-row h3 { white-space:normal; line-height:1.5; }
@media (max-width:760px) {
 .materials-document-options { width:100%; }
 .materials-paper-download { align-items:flex-start; flex-direction:column; padding:16px; }
 .materials-paper-download a { padding:8px 0; }
 .materials-document-buttons a { font-size:12px; }
}
