.map-section { padding-top: 64px; }
.world-map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.map-toolbar span { display: inline-flex; align-items: center; gap: 8px; }
.legend-swatch { width: 15px; height: 15px; border: 1px solid #879890; border-radius: 3px; }
.legend-swatch.available { background: #8fcdb5; }
.legend-swatch.other { background: #e4e9e6; }
.world-map-wrap { position: relative; min-height: 360px; background: linear-gradient(180deg, #eaf5fa, #f7fbfc); }
#worldMap { display: block; width: 100%; height: auto; min-height: 360px; }
.map-country {
  fill: #e4e9e6;
  stroke: #fff;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  transition: fill 120ms ease, filter 120ms ease;
}
.map-country.is-covered { fill: #8fcdb5; cursor: pointer; }
.map-country:hover, .map-country:focus { fill: #e0a72f; outline: none; filter: drop-shadow(0 2px 3px rgba(25, 54, 43, .3)); }
.map-country.is-selected { fill: var(--green); }
.map-marker { stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 750; pointer-events: none; }
.map-loading.error { padding: 30px; color: #8c3f32; text-align: center; }
.map-tooltip {
  position: absolute;
  z-index: 3;
  display: none;
  max-width: 220px;
  padding: 8px 11px;
  border-radius: 6px;
  background: #162922;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 7px 22px rgba(22, 41, 34, .25);
}
.map-tooltip.visible { display: block; }
.country-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.country-chip {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.country-chip:hover, .country-chip:focus-visible { border-color: var(--green); background: var(--mint); }
.country-chip.is-selected { border-color: var(--green); background: var(--green); color: #fff; }
.guide-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.guide-heading h2 { margin-bottom: 7px; }
.guide-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 17px; }
.selected-country { padding: 11px 15px; border: 1px solid #b9cec4; border-radius: 7px; background: #fff; font-size: 17px; font-weight: 850; white-space: nowrap; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 22px; align-items: start; }
.year-table-card, .subject-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 8px 25px rgba(23, 49, 40, .08); }
.year-table { width: 100%; border-collapse: collapse; }
.year-table th { padding: 14px 16px; background: var(--green-dark); color: #fff; text-align: left; font-size: 13px; }
.year-table td { padding: 0; border-bottom: 1px solid var(--line); }
.year-table tr:last-child td { border-bottom: 0; }
.year-table .age-cell { width: 74px; padding: 15px 14px; background: #f2f6f4; text-align: center; font-weight: 900; }
.year-table tr.is-active td { background: #e7f2ec; }
.year-table tr.is-active .age-cell { background: #cfe5da; color: var(--green-dark); }
.year-choice {
  width: 100%;
  min-height: 51px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.year-choice:hover, .year-choice:focus-visible { color: var(--green-dark); text-decoration: underline; outline: none; }
.italy-pathways .path-cell { width: 30%; }
.italy-pathways .common-year { padding: 0; }
.subject-panel { position: sticky; top: 94px; padding: 24px; }
.subject-panel h3 { margin: 0 0 8px; font-size: 23px; }
.subject-panel > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.subject-list { display: grid; gap: 10px; margin-top: 18px; }
.subject-card { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf9; }
.subject-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.subject-card strong { display: block; }
.subject-card small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.subject-status { padding: 5px 8px; border-radius: 999px; background: #dff3e9; color: #176548; font-size: 11px; font-weight: 850; text-transform: capitalize; }
.subject-status.expanding { background: #e4eff8; color: #24658f; }
.pathway-subjects { margin-top: 18px; }
.pathway-subjects + .pathway-subjects { padding-top: 16px; border-top: 1px solid var(--line); }
.pathway-subjects h4 { margin: 0 0 8px; font-size: 15px; }
.not-available { margin: 0; padding: 13px; border-radius: 7px; background: #f3f5f4; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guide-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .subject-panel { position: static; }
}
@media (max-width: 620px) {
  .world-map-wrap, #worldMap { min-height: 250px; }
  .map-toolbar { gap: 10px 16px; }
  .country-shortcuts { max-height: 210px; overflow-y: auto; }
  .guide-heading { align-items: flex-start; flex-direction: column; }
  .selected-country { white-space: normal; }
  .year-table-card { overflow-x: auto; }
  .year-table { min-width: 520px; }
  .year-table:not(.italy-pathways) { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-country { transition: none; }
}
