/* Independent global archive visual system */
.hero {
  min-height: 82vh;
  padding: 11vh 6vw 8vh;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 140px;
  gap: 5vw;
  align-items: center;
  background: linear-gradient(115deg, #000 0 63%, #0c1613 63% 82%, #241038 82%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid #63efd244;
  border-radius: 50%;
  right: -160px;
  top: -180px;
  box-shadow: 0 0 0 70px #8b19ff0b, 0 0 0 140px #63efd208;
}
.hero-copy { position: relative; z-index: 1; }
.hero-index {
  align-self: stretch;
  border-right: 1px solid #ffffff20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  color: #aaa;
}
.hero-index span, .hero-index small { font-size: 9px; letter-spacing: .2em; }
.hero-index strong { font-size: 29px; color: var(--mint); }
.hero-index i { width: 1px; height: 90px; background: linear-gradient(var(--mint), var(--purple)); }
.hero-stamp {
  width: 130px;
  height: 130px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(8deg);
  position: relative;
  z-index: 1;
}
.hero-stamp span, .hero-stamp small { font-size: 8px; letter-spacing: .16em; }
.hero-stamp strong { font-size: 24px; margin: 5px; }
.hero .primary span { margin-left: 28px; }
.language-grid {
  gap: 1px;
  background: #312b36;
  border: 1px solid #312b36;
  border-radius: 24px;
  overflow: hidden;
}
.lang { min-height: 120px; border: 0; border-radius: 0; position: relative; }
.lang::after { content: "↘"; position: absolute; right: 16px; bottom: 14px; color: #625d67; }
.lang > b {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 5px 16px #0008, 0 0 0 1px #ffffff35;
  font-size: 25px;
  line-height: 1;
}
.lang.active > b { box-shadow: 0 5px 18px #0008, 0 0 0 2px var(--mint); }
.lang > b > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.08);
}
.resource-tools { display: grid; justify-items: end; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #514a55; padding: 7px 2px; color: var(--mint); }
.search input { width: 190px; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; }
.search input::placeholder { color: #77717b; }
.resource-card { padding-bottom: 112px; }
.resource-card > a.download-button {
  left: 24px;
  right: 24px;
  bottom: 22px;
  min-height: 66px;
  padding: 11px 16px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  background: #fff;
  color: #08070a;
  box-shadow: 0 12px 30px #0000002e;
  transition: transform .2s ease, box-shadow .2s ease;
}
.resource-card.mint > a.download-button { background: #070a09; color: #fff; }
.resource-card > a.download-button:hover { transform: translateY(-3px); box-shadow: 0 16px 36px #00000045; }
.download-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #8b19ff;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.resource-card.mint .download-icon { background: #63efd2; color: #050807; }
.download-button > span:last-child { display: grid; gap: 3px; }
.download-button strong { font-size: 14px; }
.download-button small { font-size: 9px; opacity: .58; font-weight: 600; }
.download-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 850px) {
  .hero { padding: 12vh 6vw 9vh; grid-template-columns: 1fr; background: radial-gradient(circle at 90% 10%, #402061 0, transparent 35%); }
  .hero-index, .hero-stamp { display: none; }
  .resource-tools { justify-items: start; }
  .search input { width: min(70vw, 280px); }
}

/* v1.3 — 720px centered layout shared with the landing page. */
header,
main,
footer {
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}

header {
  padding-left: 24px;
  padding-right: 24px;
}

header nav { display: none; }

.hero {
  min-height: 700px;
  padding: 82px 42px 64px;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 38px;
  background: linear-gradient(118deg, #000 0 69%, #0c1613 69% 86%, #241038 86%);
}

.hero-stamp { display: none; }
.hero h1 { font-size: clamp(4rem, 10vw, 6.1rem); }

.language-section,
.resources-section {
  padding-left: 42px;
  padding-right: 42px;
}

.language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resource-grid { grid-template-columns: 1fr; }
.resource-card { min-height: 325px; }

@media (max-width: 600px) {
  header { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 620px; padding: 82px 24px 58px; grid-template-columns: 1fr; }
  .hero-index { display: none; }
  .hero h1 { font-size: clamp(3.25rem, 15vw, 5rem); }
  .language-section,
  .resources-section { padding-left: 20px; padding-right: 20px; }
  .language-grid { grid-template-columns: 1fr; }
  .resource-card h3 { max-width: 90%; }
}

/* v3.2 — prevent translated resource titles from inheriting invisible text colors. */
.resource-card.purple h3 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #fff !important;
}
.resource-card.mint h3 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #000 !important;
}

/* v3.3 — use one Chinese typeface and weight for every Simplified Chinese title. */
html[lang="zh"] .resource-card h3,
html[lang="zh"] .resource-card p,
html[lang="zh"] .download-button,
html[lang="zh"] .resource-head {
  font-family: "PAXON Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif !important;
  font-synthesis: none;
}

html[lang="zh"] .resource-card h3 {
  font-weight: 700 !important;
}

/* v3.5 — keep the Simplified Chinese language selector consistent too. */
.lang[data-lang="zh"] > span,
.lang[data-lang="zh"] > span > small {
  font-family: "PAXON Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif !important;
  font-synthesis: none;
}

.lang[data-lang="zh"] > span {
  font-weight: 700 !important;
}

.lang[data-lang="zh"] > span > small {
  font-weight: 500 !important;
}

/* v2.1 — keep the floating point above every visual layer. */
.float-dot {
  z-index: 1000;
  pointer-events: none;
  width: 9px;
  height: 9px;
  background: #63f3d1;
  box-shadow: 0 0 8px rgba(99, 243, 209, .74), 0 0 15px rgba(139, 25, 255, .28);
}

/* v2.3 — explicit, accessible format-label contrast. */
.resource-card.purple > .file-type {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  opacity: 1 !important;
}
.resource-card.mint > .file-type {
  background: transparent !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  opacity: 1 !important;
}
@media (max-width: 760px) {
  .float-dot { width: 8px; height: 8px; }
}

/* v1.6 — color-block separation with minimal internal rules. */
header,
footer,
.hero,
.language-section,
.resources-section {
  border-color: transparent;
}
.hero-index { border-right: 0; }
.hero-index i { display: none; }
.language-section { background: #070709; }
.resources-section { background: #0b0a0e; }
.language-grid {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.lang {
  border-radius: 18px;
  background: #171122;
}
.lang:nth-child(even) { background: #10231f; }
.lang:hover,
.lang.active {
  border: 0;
  background: #7320cf;
  transform: translateY(-3px);
}
.lang:nth-child(even):hover,
.lang:nth-child(even).active {
  background: #47d6b8;
  color: #050807;
}
.lang.active small,
.lang:hover small { color: currentColor; opacity: .72; }
.search {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: #19161e;
}
.filter { border: 0; background: #19161e; }
.filter.active { border: 0; }
.resource-card { border: 0; }
.resource-card dl { padding: 13px 15px; border-radius: 12px; background: #00000017; }
.file-type {
  border: 0;
  background: #fff;
  color: #6f16c4;
}
.resource-card.mint .file-type {
  border: 0;
  background: #080a09;
  color: #63efd2;
}

/* v2.0 — compact 230px resource cards. */
.resource-card {
  min-height: 230px;
  padding: 24px;
  padding-bottom: 82px;
}
.resource-card > p {
  margin-top: 2px;
  margin-bottom: 14px;
}
.resource-card h3 {
  margin: 14px 0 20px;
  font-size: clamp(1.65rem, 4.5vw, 2.2rem);
}
.resource-card dl {
  position: absolute;
  left: 24px;
  bottom: 23px;
  margin: 0;
  min-height: 52px;
  padding: 8px 13px;
  align-items: center;
  gap: 28px;
}
.resource-card > a.download-button {
  left: auto;
  right: 24px;
  bottom: 23px;
  width: 218px;
  min-height: 52px;
  padding: 7px 12px;
  border-radius: 12px;
}
.download-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 19px;
}
@media (max-width: 600px) {
  .resource-card {
    min-height: 285px;
    padding-bottom: 132px;
  }
  .resource-card dl {
    left: 20px;
    right: 20px;
    bottom: 82px;
  }
  .resource-card > a.download-button {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
  }
}

/* v1.9 — unified language cards and outlined format labels. */
header {
  border-bottom: 1px solid #353039;
}
footer {
  border-top: 1px solid #353039;
}
.language-section,
.resources-section {
  background: #000;
}
.lang,
.lang:nth-child(even) {
  background: #7d18df;
  color: #fff;
}
.lang:hover,
.lang.active,
.lang:nth-child(even):hover,
.lang:nth-child(even).active {
  background: #63efd2;
  color: #050807;
}
.lang small,
.lang.active small,
.lang:hover small {
  color: currentColor;
  opacity: .72;
}
.resource-card .file-type,
.resource-card.purple .file-type {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: none;
}
.resource-card.mint .file-type {
  background: transparent;
  color: #000;
  border: 2px solid #000;
  box-shadow: none;
}
.resource-card > a.download-button { border: 0; }

/* v1.7 — pure-black language field and high-contrast format badges. */
.language-section,
.language-grid {
  background: #000;
}
.file-type,
.resource-card.purple .file-type {
  z-index: 2;
  background: #fff;
  color: #000;
  border: 0;
  box-shadow: 0 5px 16px #0005;
}
.resource-card.mint .file-type {
  z-index: 2;
  background: #000;
  color: #fff;
  border: 0;
  box-shadow: 0 5px 16px #0004;
}

/* v1.4 — larger, presentation-friendly typography throughout. */
body { font-size: 17px; }
header { height: 78px; }
header .brand { font-size: 18px; }
.dapp { font-size: 14px; padding: 12px 18px; }
.eyebrow,
.section-title > span,
.resource-head > div > span { font-size: 14px; line-height: 1.5; }
.hero-index span,
.hero-index small { font-size: 12px; line-height: 1.5; }
.hero .lead { font-size: 19px; }
.primary { font-size: 16px; }
.section-title p { font-size: 16px; }
.lang span { font-size: 17px; }
.lang small { font-size: 13px; line-height: 1.4; }
.resource-card > p { font-size: 13px; line-height: 1.5; }
.resource-card dt { font-size: 13px; }
.resource-card dd { font-size: 14px; }
.file-type { font-size: 12px; padding: 7px 11px; }
.filter { font-size: 14px; }
.search input { font-size: 15px; }
.download-button strong { font-size: 16px; }
.download-button small { font-size: 13px; line-height: 1.35; }
.empty p { font-size: 15px; }
footer { font-size: 14px; }
footer small { font-size: 13px; }

/* v1.5 — simplified hero and clearer file-card hierarchy. */
.hero {
  background: #000;
  border-bottom: 1px solid #27222c;
}
.hero::after { display: none; }
.hero-index {
  border-right-color: #302936;
}
.hero-index i {
  height: 70px;
  background: linear-gradient(var(--mint), var(--purple));
}
.lang > b {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.lang.active > b {
  box-shadow: none;
}
.lang > b > img {
  transform: scale(1.02);
}
.resource-card h3 {
  max-width: calc(100% - 94px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.8rem, 5vw, 2.45rem);
}
.resource-card dt {
  font-size: 15px;
  font-weight: 600;
  opacity: .72;
}
.resource-card dd {
  font-size: 17px;
  font-weight: 800;
}
.file-type {
  min-width: 66px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px 13px;
  border: 2px solid currentColor;
  background: #ffffff1c;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}
.resource-card.mint .file-type {
  background: #00000012;
  border-color: #050807;
}
@media (max-width: 600px) {
  .resource-card h3 {
    max-width: calc(100% - 72px);
    font-size: 1.55rem;
  }
  .file-type {
    min-width: 56px;
    min-height: 34px;
    font-size: 13px;
  }
}
