/* Education's cards and shared wiki typography provide the main page styling. */
.ihp-document .toc-section { margin-bottom: 4rem; }
.ihp-document [id] { scroll-margin-top: 180px; }
.ihp-document .ihp-expert-sheet { margin: 2rem 0; }
.ihp-document .ihp-expert-sheet > h3 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 1.25rem;
}
.ihp-document h4 {
  color: var(--blue-light);
  font-size: 1.15rem;
  margin: 1.5rem 0 .65rem;
}
.ihp-document p { overflow-wrap: anywhere; }
.ihp-document .ihp-other-discussion {
  border-top: 1px solid var(--blue);
  margin-top: 1.75rem;
  padding-top: .5rem;
}
.ihp-document .ihp-recap { margin: 2rem 0; }
.ihp-document .ihp-part-heading {
  margin: 4rem 0 2.5rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--blue);
}
.ihp-document .ihp-disciplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.ihp-document .ihp-disciplines > div {
  border-left: 2px solid var(--blue-light);
  padding: .5rem 1rem;
}
.ihp-document .ihp-disciplines h3 { font-size: 1.2rem; margin-top: 0; }
.ihp-document .ihp-table-scroll { overflow-x: auto; margin: 1.5rem 0 2rem; }
.ihp-document .ihp-table { width: 100%; border-collapse: collapse; }
.ihp-document .ihp-table th,
.ihp-document .ihp-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--blue);
  vertical-align: top;
  min-width: 150px;
}
.ihp-document .ihp-table th { color: var(--blue-light); }
.ihp-document .ihp-table tbody tr:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); }
.ihp-document .ihp-citation { white-space: nowrap; }

/* Expert sheets use the wiki's shared dropdown interaction. */
.ihp-document .ihp-expert-sheet > h3 { margin-bottom: 0; }
.ihp-document .ihp-expert-toggle {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  white-space: normal;
  font-size: inherit;
  color: var(--white);
}
.ihp-document .ihp-expert-content { padding-top: 1.5rem; }

.ihp-document .ihp-expert-sheet > h3 { margin-bottom: 1rem; }
.ihp-document .ihp-expert-toggle { font-size: 1rem; line-height: 1.6; }

.ihp-document .ihp-highlight-text { color: var(--blue-light); }

/* Two connected skies keep all fourteen chapter questions visible. */
.ihp-chapter-atlas { display: grid; gap: 2rem; margin-block: 2rem; }
.ihp-star-group {
  border: 1px solid var(--blue);
  border-radius: 1rem;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 75%);
}
.ihp-document .ihp-star-group > h3 { font-size: 1.2rem; margin: 0; }
.ihp-chapter-sky { position: relative; height: 430px; margin-top: 1rem; }
.ihp-chapter-sky > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ihp-chapter-sky polyline { fill: none; stroke: var(--blue-light); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .3; }
.ihp-document .ihp-map-star {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  transform: translate(-50%, -9px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24%;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  padding: 0 .3rem;
  border-radius: .5rem;
}
.ihp-sky-1 .ihp-map-star { width: 30%; }
.ihp-map-star-point { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 10px var(--blue-light), 0 0 24px color-mix(in srgb, var(--blue-light) 45%, transparent); transition: transform .2s, box-shadow .2s; }
.ihp-map-star-number { color: var(--orange); font-size: .75rem; letter-spacing: .1em; margin: .65rem 0 .25rem; }
.ihp-map-star-label { font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.ihp-map-star:hover .ihp-map-star-point, .ihp-map-star:focus-visible .ihp-map-star-point { transform: scale(1.4); background: var(--white); box-shadow: 0 0 16px var(--blue-light), 0 0 32px var(--blue-light); }
.ihp-map-star:hover .ihp-map-star-label { color: var(--blue-light); }
.ihp-map-star:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
@media (max-width: 767px) {
  .ihp-chapter-sky { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; padding-block: 1rem; }
  .ihp-chapter-sky > svg { display: none; }
  .ihp-document .ihp-map-star { position: static; transform: none; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .ihp-map-star-point { transition: none; } }

/* Expert interiors: a compact introduction, readable narrative and a clear outcome. */
.ihp-document .ihp-expert-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--blue);
}
.ihp-document .ihp-expert-content p,
.ihp-document .ihp-expert-content li { line-height: 1.8; }
.ihp-document .ihp-response-section { margin: 1.75rem 0; }
.ihp-document .ihp-response-section > h4:first-child { margin-top: 0; }
.ihp-document .ihp-response-section > :last-child { margin-bottom: 0; }
.ihp-document .ihp-expert-context {
  border-left: 3px solid var(--blue-light);
  padding: 1rem 1.25rem;
  border-radius: 0 .75rem .75rem 0;
  background: color-mix(in srgb, var(--blue) 13%, transparent);
  margin-top: 0;
}
.ihp-document .ihp-expert-context > h4 { font-size: .95rem; letter-spacing: .025em; }
.ihp-document .ihp-expert-content > p.ihp-highlight-text {
  padding-left: 1.25rem;
  border-left: 2px solid color-mix(in srgb, var(--blue-light) 50%, transparent);
  margin-block: 1.5rem;
}
.ihp-document .ihp-expert-impact {
  border: 1px solid color-mix(in srgb, var(--orange) 45%, var(--blue));
  border-radius: .85rem;
  padding: 1.25rem;
  background: linear-gradient(125deg, color-mix(in srgb, var(--orange) 5%, transparent), transparent);
}
.ihp-document .ihp-expert-impact > h4 { color: var(--orange); }
.ihp-document .ihp-response-aside {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--blue);
  border-radius: .85rem;
  background: color-mix(in srgb, var(--blue) 6%, transparent);
}
.ihp-document .ihp-response-aside > h4:first-child { margin-top: 0; }
.ihp-document .ihp-response-aside > :last-child { margin-bottom: 0; }
.ihp-document .ihp-expert-content ul { padding-left: 1.4rem; }
.ihp-document .ihp-expert-content li::marker { color: var(--blue-light); }
.ihp-document .ihp-expert-content li { padding-left: .35rem; margin-bottom: .65rem; }

/* A field of numbered research gaps, with the people and scope kept together. */
.ihp-gap-observatory { margin: 1.75rem 0 3rem; }
.ihp-gap-key { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--blue); }
.ihp-gap-key span { font-size: .85rem; color: var(--blue-light); }
.ihp-gap-key span:nth-child(2) { color: var(--yellow); }
.ihp-gap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 0; list-style: none; counter-reset: ihp-gap; }
.ihp-gap-item { counter-increment: ihp-gap; min-width: 0; position: relative; }
.ihp-gap-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--blue);
  border-radius: 1rem;
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--blue) 17%, transparent), transparent 75%);
  transition: border-color .2s, box-shadow .2s;
}
.ihp-gap-card::before { content: counter(ihp-gap, decimal-leading-zero); font-size: .8rem; letter-spacing: .15em; color: var(--orange); display: block; margin-bottom: 1rem; }
.ihp-document .ihp-gap-card h4 { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.4; }
.ihp-document .ihp-gap-people { align-self: flex-start; color: var(--yellow); font-size: .85rem; margin: 0 0 1.25rem; padding: .35rem .65rem; border-radius: .5rem; background: color-mix(in srgb, var(--blue) 22%, transparent); }
.ihp-gap-answer { margin-top: auto; border-top: 2px solid var(--blue); padding-top: 1rem; }
.ihp-document .ihp-gap-answer p { margin-bottom: 0; font-size: .95rem; line-height: 1.7; }
.ihp-gap-partial .ihp-gap-answer { border-color: var(--blue-light); }
.ihp-gap-indirect .ihp-gap-answer { border-color: var(--yellow); }
.ihp-gap-attempt .ihp-gap-answer { border-color: var(--orange); }
.ihp-gap-card:hover, .ihp-gap-card:focus-within { border-color: var(--blue-light); box-shadow: 0 0 20px color-mix(in srgb, var(--blue-light) 8%, transparent); }
@media (max-width: 1100px) { .ihp-gap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ihp-gap-cards { grid-template-columns: 1fr; }
  .ihp-document .ihp-expert-context,
  .ihp-document .ihp-expert-impact,
  .ihp-document .ihp-response-aside { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ihp-gap-card { transition: none; } }
