/* Generated replica of https://isabella2026.figma.site */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #fff; font-family: "Inter", system-ui, sans-serif; }
.canvas { position: relative; margin: 0 auto; }
.nav-link { text-decoration: none; }
.nav-active { cursor: default; }
.line { position: absolute; }
.wordcloud { position: absolute; }
.wordcloud canvas { width: 100%; height: 100%; display: block; }
/* 数据绑定(databind.mjs):结果面板 + 采集表单 */
.databind { position: absolute; font-family: "Inter", system-ui, sans-serif; }
.databind .db-body { width: 100%; height: 100%; }
.databind .db-body canvas { width: 100%; height: 100%; display: block; }
.databind .db-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; line-height: 1.4; }
.databind .db-label { flex: 0 0 auto; min-width: 4em; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.databind .db-track { flex: 1 1 auto; height: 8px; background: rgba(0,0,0,.08); border-radius: 4px; overflow: hidden; }
.databind .db-fill { height: 100%; background: #2563eb; border-radius: 4px; transition: width .3s ease; }
.databind .db-count { flex: 0 0 auto; min-width: 2.5em; text-align: right; color: #475569; font-variant-numeric: tabular-nums; }
.databind .db-num { font-size: 42px; font-weight: 700; line-height: 1.1; color: #0f172a; }
.databind .db-unit { font-size: 14px; font-weight: 400; margin-left: 4px; color: #64748b; }
.databind .db-item { font-size: 13px; line-height: 1.6; padding: 2px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.databind .db-empty { font-size: 13px; color: #94a3b8; }
.databind .db-note { font-size: 12px; margin-top: 4px; color: #64748b; }
.databind .db-note.db-ok { color: #16a34a; }
.databind .db-note.db-err { color: #b91c1c; }
.databind .db-form { display: flex; gap: 6px; margin-top: 8px; pointer-events: auto; }
.databind .db-input { flex: 1 1 auto; min-width: 0; padding: 6px 8px; font-size: 13px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; }
.databind .db-btn { flex: 0 0 auto; padding: 6px 12px; font-size: 13px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; cursor: pointer; font-family: inherit; }
.databind .db-btn:hover { background: #1d4ed8; }
/* 组件变体轮播(SWAP_STATE):非当前变体隐藏。用属性选择器而不是内联 display ——
   文本节点靠内联 display:flex 排版,直接改 style.display 会把排版弄散。 */
[data-swap-off] { display: none !important; }
[data-swap-to] { cursor: pointer; }

@font-face {
  font-family: 'Noto Sans JP';
  font-weight: 400;
  font-style: normal;
  src: url(fonts/NotoSansJP-VF_2.woff2) format('woff2');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 400;
  font-style: normal;
  src: url(fonts/NotoSansSC-VF_2.woff2) format('woff2');
}

@font-face {
  font-family: 'IM FELL Double Pica';
  font-weight: 400;
  font-style: normal;
  src: url(fonts/IMFELLDoublePica-Regular_1.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  src: url(fonts/Inter_1.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 800;
  font-style: normal;
  src: url(fonts/Inter_1.woff2) format('woff2');
}

@font-face {
  font-family: 'IM FELL Double Pica';
  font-weight: 400;
  font-style: italic;
  src: url(fonts/IMFELLDoublePica-Italic_1.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  src: url(fonts/Inter_1.woff2) format('woff2');
}

@font-face {
  font-family: 'Inria Sans';
  font-weight: 700;
  font-style: normal;
  src: url(fonts/InriaSans-Bold_1.woff2) format('woff2');
}

/* 隐藏「展示选项结果」框内的说明性标注：Answers so far / N = x / 柱长与色深说明 */
.quiz .list-title,
.quiz .chart-title,
.quiz .box-note,
.quiz .chart-note {
  display: none !important;
}
/* ===== 4.2 第一题（Q1）词云：只显示词汇，不显示百分比 ===== */
#wc-q1 .wc-pct { display: none !important; }

/* ===== 4.2 第一题（Q1）词云：多档字号（值取自设计报告的字号阶梯），让大小层次更分明 ===== */
/* 词条在云内按被选中次数从多到少排列，排位越靠前字号档位越大 */
#wc-q1 > span:nth-of-type(1) { font-size: 40px !important; }
#wc-q1 > span:nth-of-type(2) { font-size: 30px !important; }
#wc-q1 > span:nth-of-type(3) { font-size: 26px !important; }
#wc-q1 > span:nth-of-type(4) { font-size: 20px !important; }
#wc-q1 > span:nth-of-type(5) { font-size: 18px !important; }
#wc-q1 > span:nth-of-type(6) { font-size: 16px !important; }
#wc-q1 > span:nth-of-type(7) { font-size: 14px !important; }
#wc-q1 > span:nth-of-type(8) { font-size: 12px !important; }
/* ===== 修正 GENERATIONAL PERSPECTIVES 两处题干引号：直引号 " → 上引号 “ / 下引号 ” ===== */
/* 本页 HTML 是被锁定（整体手写）的页面，文本覆盖层改不进去，这里用伪元素按原文重绘题干文字。
   选择器用本页 .canvas 的 min-height:5880px 限定，只影响这一页，不动布局与其它页面。 */
.canvas[style*="min-height:5880px"] .tx[style*="top: 2945px"][style*="width: 701px"],
.canvas[style*="min-height:5880px"] .tx[style*="top: 3437px"][style*="width: 693px"] {
  color: transparent !important;          /* 隐藏原来的直引号文字，占位高度不变 */
}
.canvas[style*="min-height:5880px"] .tx[style*="top: 2945px"][style*="width: 701px"]::after {
  content: "When you hear “antibiotics”, what is the first thing that comes to mind? (Choose up to 3)";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: rgb(76,112,43);
}
.canvas[style*="min-height:5880px"] .tx[style*="top: 3437px"][style*="width: 693px"]::after {
  content: "What does “antibiotic use” mean to you?";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: rgb(76,112,43);
}
