/* Research perspectives and focus cards. Scoped to the existing homepage module. */
.research-map .perspective-intro { display: flex; flex-direction: column; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0 14px; }
.research-map .axis-hint { font-size: 12px; color: #8d8176; margin-top: 12px; text-align: center; }
.research-map .research-coordinates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 0; width: min(100%,560px); min-width: 0; }
.research-map .coordinate-lines { grid-column: 1 / -1; grid-row: 2; display: block; width: 100%; height: auto; aspect-ratio: 600 / 160; overflow: visible; }
.research-map .coordinate-plane { fill: #faf8f5; stroke: #ebe4dd; }
.research-map .coordinate-guide { stroke: #ede7e1; stroke-dasharray: 3 5; stroke-width: 1; }
.research-map .coordinate-axis { color: #b5b5af; cursor: pointer; transition: color .25s; }
.research-map .axis-hit { stroke: transparent; stroke-width: 30; pointer-events: stroke; }
.research-map .axis-line { stroke-width: 2; pointer-events: none; }
.research-map[data-perspective="focus"] .axis-focus,
.research-map[data-perspective="areas"] .axis-areas,
.research-map[data-perspective="approach"] .axis-approach { color: #ba531e; }
.research-map .coordinate-axis:hover { color: #ba531e; }
.research-map .axis-origin-halo { fill: #f1e6da; stroke: none; }
.research-map .axis-origin { fill: #b34f18; stroke: none; }
.research-map .axis-tab { position: relative; display: flex; flex-direction: column; align-items: center; padding: 5px 9px; border: 1px solid transparent; background: #fff; color: #777f84; border-radius: 7px; min-height: 46px; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.research-map .axis-tab span { font-size: 16px; font-weight: 600; line-height: 1.35; }
.research-map .axis-tab small { font-size: 12px; line-height: 1.4; margin-top: 2px; }
.research-map .axis-tab:hover { color: var(--accent); background: #fff9f2; }
.research-map .axis-tab[aria-selected="true"] { color: var(--accent); background: #fff3e6; border-color: #edd4bc; }
.research-map .axis-tab--focus { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
.research-map .axis-tab--areas { grid-column: 2; grid-row: 3; justify-self: end; }
.research-map .axis-tab--approach { grid-column: 1; grid-row: 3; justify-self: start; }
.research-map .perspective-panel { padding-top: 22px; animation: focus-panel-in .38s ease both !important; outline-offset: 5px; }
.research-map .focus-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.research-map .research-pillar { --pillar-color: #b34f18; --pillar-border: #ecd4bf; padding: 23px 23px 8px; border: 1px solid var(--pillar-border); border-radius: 12px; background: #fff7ee; min-width: 0; display: flex; flex-direction: column; }
.research-map .pillar-for-safety { --pillar-color: #426e70; --pillar-border: #d3e1dc; background: #f3f8f5; }
.research-map .pillar-heading h3 { font: 500 30px/1.2 Georgia,serif; letter-spacing: -.7px; }
.research-map .pillar-heading h3 em { font-style: normal; color: var(--pillar-color); }
.research-map .pillar-heading p { margin-top: 8px; font-size: 14px; color: #596774; }
.research-map .research-pillar > *, .research-map .pillar-works > * { min-width: 0; }
.research-map .pillar-illustration { width: 100%; max-width: 100%; min-width: 0; margin: 18px 0 12px; display: block; }
.research-map .pillar-illustration img { width: 100%; max-width: 100%; min-width: 0; height: auto; display: block; margin: 0; }
.research-map .pillar-description { font-size: 15px; line-height: 1.6; color: #485968; min-height: 4.8em; }
.research-map .pillar-works { margin-top: 18px; border-top: 1px solid var(--pillar-border); }
.research-map .pillar-work { padding: 12px 0; border-bottom: 1px solid var(--pillar-border); }
.research-map .pillar-work:last-child { border-bottom: none; }
.research-map .pillar-work h4 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.research-map .pillar-work h4 a { display: inline; }
.research-map .pillar-work h4 a span { font: 12px/1 system-ui,sans-serif; color: var(--pillar-color); }
.research-map .pillar-work h4 a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--pillar-color); }
.research-map .pillar-work p { font-size: 13px; line-height: 1.5; color: #62707a; margin-top: 4px; }
.research-map .work-divider { color: #b0a393; font-weight: 400; margin: 0 2px; }
.research-map .pillar-affiliation { display: inline-block; font-size: 11px; font-weight: 400; color: var(--pillar-color); margin-left: 6px; }
.research-map .shared-work-connector { display: none; }
@container research (min-width: 581px) {
  /* Shared rows keep the two SORRY-Bench entries aligned as copy wraps. */
  .research-map .focus-pair { grid-template-rows: repeat(7,auto); row-gap: 0; }
  .research-map .research-pillar { display: grid; grid-row: 1 / span 7; grid-template-rows: subgrid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .research-map .pillar-model { grid-column: 1; }
  .research-map .pillar-for-safety { grid-column: 2; }
  .research-map .pillar-works { display: grid; grid-row: 4 / span 4; grid-template-rows: subgrid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .research-map .shared-work-connector { display: block; grid-column: 1 / -1; grid-row: 6; justify-self: center; align-self: start; width: 50px; height: 26px; margin-top: 9.5px; position: relative; z-index: 1; pointer-events: none; }
}
@keyframes focus-panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@container research (max-width: 860px) {
  .research-map .axis-tab span { font-size: 15px; }
  .research-map .axis-tab small { font-size: 11px; }
  .research-map .research-pillar { padding: 20px 18px 8px; }
  .research-map .pillar-heading h3 { font-size: 27px; }
  .research-map .pillar-heading p { min-height: 3em; }
  .research-map .pillar-description { min-height: 6.4em; }
}
@container research (max-width: 580px) {
  .research-map .perspective-intro { padding-top: 18px; }
  .research-map .axis-tab { padding: 4px 6px; min-height: 42px; }
  .research-map .axis-tab span { font-size: 14px; }
  .research-map .focus-pair { grid-template-columns: 1fr; gap: 16px; }
  .research-map .research-pillar { padding: 22px 22px 8px; }
  .research-map .pillar-heading h3 { font-size: 30px; }
  .research-map .pillar-heading p, .research-map .pillar-description { min-height: 0; }
  .research-map .pillar-illustration { margin-top: 16px; }
}
@container research (max-width: 340px) {
  .research-map .axis-tab span { font-size: 13px; }
  .research-map .axis-tab { padding-inline: 3px; }
}
