/* Static main-site navigation and download page. Packaged app styles stay intact. */
@font-face {
  font-family: "Noto Sans CJK SC";
  src: url("./assets/NotoSansSC.woff") format("woff");
  font-display: swap;
  font-weight: 400;
}

.wis-topic-bar {
  background: #06152c;
  color: #d5e6f5;
  border-bottom: 1px solid #a4d6e526;
}

.wis-topic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: static;
  top: auto;
  right: auto;
  left: auto;
  min-height: 48px;
  height: auto;
  gap: 12px 24px;
  padding: 10px 6vw;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.wis-topic-nav a,
.wis-topic-nav a:last-child {
  color: inherit;
  text-decoration: none;
  border: 0;
}

.wis-topic-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wis-topic-brand { letter-spacing: 1px; }
.wis-topic-brand span { color: #91acc6; letter-spacing: 0; }
.wis-topic-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.wis-topic-portal #root .portal { min-height: calc(100svh - 48px); }

.wis-topic-nav a:focus-visible,
.wis-topic-fallback a:focus-visible,
.wis-topic-downloads a:focus-visible {
  outline: 3px solid #68bed6;
  outline-offset: 5px;
}

.wis-topic-fallback {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px;
  font-family: "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  line-height: 1.9;
}

.wis-topic-fallback h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.5; }
.wis-topic-fallback p { margin: 24px 0; }
.wis-topic-fallback li { margin: 12px 0; }
.wis-topic-fallback a { text-decoration: underline; text-underline-offset: 4px; }
.wis-topic-smart { margin: 0; background: #07142c; color: #e5f0ff; }

.wis-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wis-topic-downloads {
  margin: 0;
  background: #f8fafc;
  color: #152742;
  font-family: "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  line-height: 1.8;
}

.wis-topic-downloads * { box-sizing: border-box; }
.wis-topic-downloads a { color: inherit; }
.wis-download-main { max-width: 1160px; margin: 0 auto; padding: 76px 6vw; }
.wis-download-eyebrow { color: #527994; font-size: 11px; letter-spacing: 2px; }
.wis-download-main h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.4; margin: 20px 0; }
.wis-download-intro { max-width: 760px; color: #5d748b; font-size: 15px; }
.wis-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 30px; }
.wis-download-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid #c9d8e4; background: #fff; text-decoration: none; }
.wis-download-card:hover { border-color: #387e99; background: #f0f7fb; }
.wis-download-kind { color: #5b7a94; font-size: 11px; letter-spacing: 1px; }
.wis-download-card h2 { font-size: 22px; font-weight: 500; line-height: 1.6; margin: 20px 0 10px; }
.wis-download-card p { margin: 0 0 30px; color: #667d93; font-size: 13px; }
.wis-download-action { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid #dbe4ed; font-size: 13px; }
.wis-download-note { color: #7b8ca0; font-size: 12px; }
.wis-download-back { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 40px; font-size: 13px; }
.wis-download-back a { text-underline-offset: 5px; }

@media (max-width: 760px) {
  .wis-topic-nav { padding: 10px 6vw; gap: 8px 18px; }
  .wis-topic-links { gap: 8px 18px; }
  .wis-download-main { padding: 48px 7vw; }
  .wis-download-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .wis-download-card { padding: 24px; }
}
