/* AI Visibility & Citation — extends styles.css palette (navy/cyan/cream) */

.aiv-section { padding: 30px 28px 8px; }
.aiv-section-alt { background: var(--cream); padding-top: 30px; padding-bottom: 30px; }
.aiv-head { max-width: 980px; margin-bottom: 20px; }
.aiv-head h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.28;
}
.aiv-lede { margin: 0; font-size: 13.5px; line-height: 1.55; color: #3a4756; max-width: 860px; }
.aiv-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 8px; }
.sw-teal { background: var(--cyan-dk); }

/* Visibility panels */
.viz-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 8px; }
.viz-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px 12px;
  box-shadow: var(--card-shadow);
}
.viz-panel-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 6px; }
.chart-wrap { position: relative; width: 100%; }

/* Visibility dials */
.dial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 12px; }
.dial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px 18px;
  box-shadow: var(--card-shadow);
}
.dial-card-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 4px; }
.dial-body { display: flex; flex-direction: column; align-items: center; }
.dial-gauge-wrap { position: relative; width: 100%; max-width: 220px; }
.dial-center {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.dial-value { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--cyan-dk); }
.dial-brand { font-size: 11px; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; margin-top: 2px; }
.dial-others { width: 100%; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.dial-others-label { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dial-others-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.dial-others-list li { display: grid; grid-template-columns: 72px 1fr 40px; align-items: center; gap: 8px; }
.dial-other-name { font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dial-other-bar-track { position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dial-other-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--navy); }
.dial-other-val { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--navy); text-align: right; }

/* Section 01b: why the scores differ */
.why-diff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; padding-bottom: 12px; }
.why-diff-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan-dk);
  border-radius: 10px;
  padding: 14px 16px 15px;
  box-shadow: var(--card-shadow);
}
.why-diff-tag {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.why-diff-headline { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.why-diff-body { margin: 0; font-size: 12.5px; line-height: 1.55; color: #3a4756; }

/* 4Cs key strip */
.cc-key { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cc-key-chip {
  flex: 1 1 220px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.cc-key-chip .sw { margin-top: 3px; flex-shrink: 0; }
.cc-key-text { font-size: 12px; line-height: 1.45; color: var(--text); }
.cc-key-text b { display: block; color: var(--navy); font-size: 12.5px; margin-bottom: 1px; }

/* Section 04: why NerdWallet */
.why-nw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 12px; }
.why-nw-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 16px 14px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.why-nw-stat { display: block; font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--cyan-dk); line-height: 1.1; margin-bottom: 6px; }
.why-nw-label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 4px; }
.why-nw-sub { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* Donuts */
.donut-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.donut-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 16px 10px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.donut-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 6px; }
.cc-legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.cc-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cc-legend .sw { margin-right: 0; }

/* Citation columns */
.citation-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 4px; padding-bottom: 12px; }
.col-title { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 8px; }
.citation-cols .viz-panel { padding: 16px 18px 10px; }

/* Content-site referral traffic panel */
.traffic-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px 16px; margin-top: 18px; box-sizing: border-box; }
.traffic-panel-head { margin-bottom: 12px; }
.traffic-panel-title { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 6px; line-height: 1.4; }
.traffic-panel-lede { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; max-width: 780px; }

@media (max-width: 600px) {
  .traffic-panel { padding: 16px 16px 14px; }
  .traffic-panel-lede { max-width: 100%; }
}

@media (max-width: 1100px) {
  .donut-row, .citation-cols, .dial-grid, .why-diff-row { grid-template-columns: 1fr; }
  .why-nw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .why-nw-grid { grid-template-columns: 1fr; }
}
