/* Atlas dos Vales do Silício — folha da cartografia comparada. */
.vales {
  --v-paper: #faf8f1;
  --v-beige: #f1ecde;
  --v-ink: #1d363b;
  --v-muted: #4d6263;
  --v-rule: #c6cec6;
  --v-global: #165966;
  --v-brasil: #9c462e;
  --v-serif: Georgia, "Times New Roman", serif;
  --v-map-height: clamp(27rem, 62vh, 40rem);
  color: var(--v-ink);
  background: var(--v-paper);
  padding-bottom: clamp(2.4rem, 5vw, 4.6rem);
}
.vales :where(button, input, select) { font-family: inherit; }
.vales :where(button, summary, select) { cursor: pointer; }
.vales :where(button, input, select, a, summary):focus-visible {
  outline: 3px solid #00728a;
  outline-offset: 3px;
}
.vales [hidden] { display: none !important; }
.v-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.v-hero {
  background: var(--v-beige);
  border-bottom: 1px solid var(--v-rule);
}
.v-hero .container { padding-block: clamp(1.35rem, 2.6vw, 2.3rem) clamp(1.2rem, 2.3vw, 2rem); }
.v-eyebrow, .v-section-kicker {
  color: #4e625d;
  font: 750 .7rem/1.5 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.v-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.v-eyebrow > span:not(.v-rule) { color: #89755b; }
.v-rule { width: 2.7rem; height: 2px; background: var(--v-brasil); }
.v-hero h1 {
  margin: .4rem 0 .2rem;
  font: 500 clamp(2.55rem, 5.2vw, 4.6rem)/1.02 var(--v-serif);
  letter-spacing: -.048em;
  text-wrap: balance;
}
.v-subtitle {
  margin: .35rem 0 0;
  font: 400 clamp(1.12rem, 1.75vw, 1.55rem)/1.32 var(--v-serif);
  color: #364d4c;
  text-wrap: pretty;
}
.v-intro { max-width: 88ch; margin: .65rem 0 0; color: #455857; font-size: .94rem; }
.v-workspace { padding-top: 1.1rem; }
.v-command, .v-mapbar, .v-mapfoot, .v-legend, .v-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
}
.v-command, .v-mapbar, .v-mapfoot { justify-content: space-between; }
.v-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.v-tabs button, .v-button, .v-back, #v-reset, .v-pages button {
  border: 1px solid #a9b5ac;
  border-radius: .34rem;
  background: transparent;
  color: var(--v-ink);
  padding: .47rem .78rem;
  font-size: .85rem;
  font-weight: 670;
  line-height: 1.4;
}
.v-tabs button { display: inline-flex; align-items: center; gap: .44rem; }
.v-tabs b { font-size: .75rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.v-tabs button[aria-pressed="true"], .v-button.primary {
  color: #fffdf4;
  background: var(--v-ink);
  border-color: var(--v-ink);
}
.v-tabs button:hover:not([aria-pressed="true"]), :is(.v-button,.v-back,#v-reset,.v-pages button):hover {
  background: #e5ebe4;
  color: var(--v-ink);
}
.v-key { flex: 0 0 auto; display: inline-block; border-radius: 50%; width: .65rem; height: .65rem; }
.v-key.global, .geo-dot.v-global { background: var(--v-global); }
.v-key.brasil, .geo-dot.v-brasil { background: var(--v-brasil); }
.v-tabs [aria-pressed="true"] .v-key { outline: 1px solid #f8f5eb; }
.geo-dot.v-misto, .v-grp {
  background: linear-gradient(120deg, var(--v-global) 0 48%, var(--v-brasil) 52% 100%);
}
.v-jump, .v-mapfoot a, .v-record a:not(.v-button), .v-pages a, .v-source a span {
  color: var(--v-global);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.v-jump { font-weight: 630; font-size: .83rem; }
.v-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.15fr 1.1fr auto;
  align-items: end;
  gap: .55rem .7rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--v-rule);
}
.v-filters:has(#v-prio-wrap:not([hidden])) {
  grid-template-columns: 1.35fr .9fr 1.05fr 1.05fr .85fr auto;
}
.v-filters label, .v-compare-choices label {
  min-width: 0;
  display: grid;
  align-content: end;
  gap: .23rem;
  font-size: .76rem;
  line-height: 1.3;
  font-weight: 670;
}
.v-filters input, .v-filters select, .v-compare-choices select, .v-mapbar select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #a9b5ac;
  border-radius: .28rem;
  background-color: #fffdf7;
  color: var(--v-ink);
  padding: .46rem .5rem;
  font-size: .86rem;
  font-weight: 450;
  line-height: 1.4;
}
#v-reset { min-height: 2.2rem; }
.v-mapbar { padding: .6rem 0; font-size: .82rem; }
.v-mapbar p, .v-mapbar label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .65rem; margin: 0; }
.v-mapbar label { font-size: .76rem; color: var(--v-muted); align-items: center; }
.v-mapbar select { width: auto; padding: .22rem .3rem; }
#scale-caption { color: var(--v-muted); padding-left: .65rem; border-left: 1px solid var(--v-rule); }

.v-desk {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.8rem, 1.7vw, 1.5rem);
}
.v-map-column, .v-panel, .v-compare-card, .v-source > * { min-width: 0; }
.vales .real-map {
  height: var(--v-map-height);
  min-height: 0;
  border: 1px solid #9caeaa;
  border-radius: .45rem;
  box-shadow: none;
}
.v-mapfoot { margin: .52rem 0; font-size: .77rem; }
.v-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.v-grp {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  width: 1.18rem;
  height: 1.18rem;
  color: white;
  font: 700 .68rem/1 system-ui, sans-serif;
}
#v-map-hint, .vales .geo-notes, .vales .map-diagnostics {
  color: var(--v-muted);
  font-size: .78rem;
  line-height: 1.5;
}
#v-map-hint { margin: .45rem 0; }
.vales .map-diagnostics { margin: .45rem 0 0; }

.v-panel {
  max-height: calc(var(--v-map-height) + 7.8rem);
  overflow-y: auto;
  scrollbar-color: #a3b2a9 #f8f6ee;
  border: 1px solid var(--v-rule);
  border-radius: .45rem;
  background: #fffdf7;
  padding: clamp(.92rem, 1.55vw, 1.35rem);
  overflow-wrap: anywhere;
}
.v-panel-head { margin-bottom: .72rem; }
.v-panel :is(h2,h3), .v-compare-card :is(h2,h3), .v-source h2 {
  color: var(--v-ink);
  font: 500 clamp(1.42rem, 2.1vw, 1.95rem)/1.15 var(--v-serif);
  letter-spacing: -.022em;
  margin: .25rem 0 .45rem;
}
.v-panel h4 { margin: 1.1rem 0 .45rem; font-size: .94rem; }
.v-panel-head p, .v-record p, .v-empty p, .v-compare-card p { margin: .46rem 0; }
.v-panel-head p, .v-empty, .v-record, .v-compare-card { font-size: .89rem; line-height: 1.5; }
.v-index-list, .v-point-list { list-style: none; margin: 0; padding: 0; }
.v-index-list li { border-top: 1px solid #dde0d6; }
.v-index-list button, button.v-point {
  display: grid;
  gap: .1rem;
  width: 100%;
  border: 0;
  padding: .65rem .3rem;
  background: transparent;
  text-align: left;
  color: var(--v-ink);
  font: inherit;
}
.v-index-list button:hover, .v-index-list button:focus-visible, button.v-point:hover { background: #edf1e9; }
.v-index-list :is(strong,small), .v-index-item > span, .v-point :is(strong,small) { display: block; }
.v-index-list small, .v-point small { color: var(--v-muted); font-size: .74rem; }
.v-index-list strong { font: 600 1.04rem/1.25 var(--v-serif); }
.v-index-item > span { color: var(--v-muted); font-size: .8rem; line-height: 1.38; }
.v-back { margin-bottom: .75rem; padding: .28rem .5rem; font-size: .8rem; }
.v-quote {
  margin: .68rem 0;
  padding-left: .75rem;
  border-left: 3px solid #aa795a;
  font: italic 1.12rem/1.45 var(--v-serif);
}
.v-facts { margin: .75rem 0; }
.v-facts > div { padding: .55rem 0; border-top: 1px solid #dce0d6; }
.v-facts dt { color: #3c5555; font-size: .76rem; font-weight: 740; }
.v-facts dd { margin: .13rem 0 0; font-size: .9rem; line-height: 1.45; }
.v-point-list { display: grid; gap: .45rem; }
.v-point { border-left: 2px solid #a7b8ab; background: #f4f4eb; padding: .55rem .7rem; }
.v-point p { margin: .23rem 0; }
.v-actions, .v-pages { margin: .7rem 0; }
.v-actions { gap: .4rem; }
.v-pages { font-size: .8rem; color: var(--v-muted); }
.v-pill {
  display: inline-flex;
  border: 1px solid #c4cec3;
  border-radius: 1rem;
  padding: .13rem .5rem;
  background: #eef2e9;
  color: #38534e;
  font-size: .72rem;
  font-weight: 680;
}
.v-note, .v-empty { padding: .7rem .8rem; background: #f3f0e5; }
.v-note { font-size: .81rem; color: var(--v-muted); }

.v-compare, .v-source { scroll-margin-top: 10rem; }
.v-compare { margin-top: clamp(1.3rem, 3vw, 2.5rem); }
.v-compare details { border-block: 1px solid var(--v-rule); padding: .9rem 0; }
.v-compare summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; }
.v-compare summary::-webkit-details-marker { display: none; }
.v-compare summary strong { display: block; font: 500 1.55rem/1.25 var(--v-serif); }
.v-expand { font-size: 1.6rem; color: var(--v-global); line-height: 1; padding: .32rem; }
.v-compare details[open] .v-expand { transform: rotate(45deg); }
.v-compare details > p { max-width: 80ch; margin: .75rem 0; font-size: .92rem; }
.v-compare-choices, .v-comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .95rem; }
.v-comparison-grid { margin: .85rem 0 .25rem; }
.v-compare-card { border: 1px solid var(--v-rule); padding: clamp(.85rem, 2vw, 1.4rem); background: #fffdf7; overflow-wrap: anywhere; }
.v-source { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: clamp(1.3rem, 5vw, 4.5rem); margin-top: 2rem; }
.v-source h2 { margin-top: .3rem; }
.v-source p { font-size: .9rem; line-height: 1.6; max-width: 75ch; }
.v-source .v-bib { color: var(--v-muted); font-size: .83rem; }
.v-downloads a { display: block; padding: .62rem 0; border-bottom: 1px solid var(--v-rule); }
.v-downloads a span { font-weight: 650; font-size: .91rem; }
.v-downloads small { display: block; color: var(--v-muted); font-size: .75rem; }

@media (max-width: 980px) {
  .v-filters, .v-filters:has(#v-prio-wrap:not([hidden])) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #v-reset { justify-self: start; }
}
@media (max-width: 790px) {
  .v-desk, .v-source { grid-template-columns: minmax(0,1fr); }
  .v-panel { max-height: min(42rem, 78vh); }
  .v-source { gap: .85rem; }
  .vales { --v-map-height: clamp(20rem, 57vh, 31rem); }
  .v-compare, .v-source { scroll-margin-top: 8rem; }
}
@media (max-width: 580px) {
  .v-hero h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .v-intro { font-size: .89rem; }
  .v-tabs { gap: .32rem; }
  .v-tabs button { font-size: .78rem; padding: .42rem .48rem; }
  .v-filters, .v-filters:has(#v-prio-wrap:not([hidden])) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-searchlabel { grid-column: 1/-1; }
  .v-filters input, .v-filters select, .v-compare-choices select { font-size: 1rem; }
  .v-mapbar { align-items: flex-start; }
  .v-compare-choices, .v-comparison-grid { grid-template-columns: minmax(0,1fr); }
  .v-command, .v-mapfoot { row-gap: .65rem; }
}

.v-index-item small .v-key,.v-pill .v-key{margin-inline-end:.35em}.v-territory{display:inline-block;margin-left:.55rem;color:var(--v-muted);font-size:.78rem}.v-note a,.v-bib a,.v-pages{text-decoration:underline;text-underline-offset:.16em}
