:root {
  color-scheme: light;
  --ink: #102734;
  --ink-soft: #506573;
  --paper: #f6f4ed;
  --surface: rgba(255, 255, 255, 0.88);
  --line: rgba(16, 39, 52, 0.12);
  --brand: #123a52;
  --brand-bright: #1f6476;
  --accent: #d8a75d;
  --success: #2f7359;
  --warning: #a16421;
  --shadow: 0 24px 70px rgba(16, 39, 52, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 58, 82, 0.05), transparent 42%),
    var(--paper);
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 25rem;
  height: 25rem;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.ambient-one {
  top: -10rem;
  right: -8rem;
  background: rgba(31, 100, 118, 0.12);
}

.ambient-two {
  bottom: -15rem;
  left: -12rem;
  background: rgba(216, 167, 93, 0.13);
}

.page-shell {
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.auth-card {
  width: min(24rem, 100%);
  margin: clamp(2rem, 10vh, 7rem) auto 0;
  padding: clamp(1.65rem, 6vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.system-glyph {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid rgba(134, 207, 219, 0.28);
  border-radius: 1.65rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(102, 208, 221, 0.28), transparent 29%),
    linear-gradient(145deg, #0b2b3f, #164d61);
  box-shadow:
    0 18px 34px rgba(18, 58, 82, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.system-glyph::before,
.system-glyph::after {
  position: absolute;
  inset: 0;
  content: "";
}

.system-glyph::before {
  background:
    linear-gradient(rgba(142, 215, 226, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 215, 226, 0.1) 1px, transparent 1px);
  background-size: 1.05rem 1.05rem;
  mask-image: radial-gradient(circle, black, transparent 74%);
}

.system-glyph::after {
  inset: 1rem;
  border: 1px solid rgba(223, 177, 103, 0.55);
  rotate: 45deg;
}

.glyph-orbit,
.glyph-core,
.glyph-node {
  position: absolute;
  z-index: 1;
  display: block;
}

.glyph-orbit {
  inset: 1.55rem;
  border: 1px solid rgba(132, 222, 232, 0.68);
  border-radius: 50%;
}

.glyph-orbit-a {
  scale: 1.3 0.62;
  rotate: 28deg;
}

.glyph-orbit-b {
  scale: 0.62 1.3;
  rotate: -28deg;
}

.glyph-core {
  inset: 2.05rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0.55rem;
  background: rgba(97, 205, 218, 0.22);
  box-shadow: 0 0 1.2rem rgba(97, 205, 218, 0.48);
}

.glyph-node {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #e0b16a;
  box-shadow: 0 0 0.65rem rgba(224, 177, 106, 0.75);
}

.glyph-node-a {
  top: 1.05rem;
  right: 1.2rem;
}

.glyph-node-b {
  bottom: 1.05rem;
  left: 1.2rem;
  background: #80d4df;
}

.brand-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.6rem;
  place-items: center;
  border-radius: 1.15rem;
  background: var(--brand);
  color: white;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.45rem;
  box-shadow: 0 12px 24px rgba(18, 58, 82, 0.22);
}

.eyebrow,
.section-kicker,
.record-code {
  margin: 0 0 0.45rem;
  color: var(--brand-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.035em;
}

.auth-card h1 {
  margin-bottom: 0.65rem;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 600;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.auth-form label {
  display: block;
}

.auth-form input,
.search-box,
.filter-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-form input {
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.auth-form input::placeholder {
  color: #7b8c96;
}

.auth-form input:focus,
.search-box:focus-within,
.filter-box select:focus {
  border-color: rgba(31, 100, 118, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 100, 118, 0.11);
}

.primary-button,
.secondary-icon-button,
.ghost-button {
  min-height: 3.15rem;
  border: 0;
  border-radius: 1rem;
  font-weight: 800;
}

.primary-button {
  position: relative;
  width: 3.3rem;
  min-height: 3.3rem;
  margin: 0.65rem auto 0;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  box-shadow: 0 13px 26px rgba(18, 58, 82, 0.2);
}

.primary-button:hover {
  background: #0d3045;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.primary-button[aria-busy="true"] .login-arrow {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: login-spin 700ms linear infinite;
}

.mfa-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.mfa-actions .primary-button {
  margin-right: 0;
  margin-left: 0;
}

.secondary-icon-button {
  position: relative;
  width: 3.3rem;
  min-height: 3.3rem;
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
}

.back-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.82rem;
  height: 0.82rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  translate: -38% -50%;
  rotate: 45deg;
}

.back-arrow::after {
  position: absolute;
  bottom: -1px;
  left: -2px;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  content: "";
  transform-origin: left center;
  rotate: -45deg;
}

.login-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 2px solid white;
  border-right: 2px solid white;
  translate: -62% -50%;
  rotate: 45deg;
}

.login-arrow::after {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 1.15rem;
  height: 2px;
  background: white;
  content: "";
  transform-origin: right center;
  rotate: -45deg;
}

.primary-button[aria-busy="true"] .login-arrow::after {
  display: none;
}

.face-button {
  display: grid;
  width: 3.3rem;
  min-height: 3.3rem;
  margin: 0.05rem auto 0;
  place-items: center;
  border: 1px solid rgba(18, 58, 82, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
}

.face-button:disabled {
  opacity: 0.6;
}

.face-symbol {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
}

.face-symbol::before,
.face-symbol::after {
  position: absolute;
  top: 0.42rem;
  width: 0.15rem;
  height: 0.15rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.face-symbol::before { left: 0.37rem; }
.face-symbol::after { right: 0.37rem; }

.face-symbol i {
  position: absolute;
  width: 0.52rem;
  height: 0.52rem;
  border-color: currentColor;
  border-style: solid;
}

.face-symbol i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 0.26rem 0 0; }
.face-symbol i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 0.26rem 0 0; }
.face-symbol i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 0.26rem; }
.face-symbol i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-radius: 0 0 0.26rem; }

.face-symbol i:nth-child(4)::after {
  position: absolute;
  right: 0.32rem;
  bottom: 0.22rem;
  width: 0.55rem;
  height: 0.28rem;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

@keyframes login-spin {
  to {
    rotate: 360deg;
  }
}

.form-error {
  margin: 0;
  color: #a33a35;
  font-size: 0.88rem;
  font-weight: 700;
}

.app-view {
  width: min(72rem, 100%);
  min-width: 0;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.app-header,
.search-heading,
.results-heading,
.result-top,
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-header {
  margin-bottom: 2rem;
  padding: 0.35rem 0.25rem;
}

.compact-header {
  min-height: 2.55rem;
  justify-content: flex-end;
  margin-bottom: 0.55rem;
  padding: 0;
}

.app-header > div,
.search-heading > div,
.result-top > div {
  min-width: 0;
}

.app-header h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 800;
}

.connection-state::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
  box-shadow: 0 0 0 4px rgba(47, 115, 89, 0.11);
}

.connection-state.is-offline {
  color: #9b5447;
}

.ghost-button {
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.search-panel {
  width: 100%;
  min-width: 0;
  padding: clamp(1.35rem, 4vw, 2.3rem);
  border-radius: 1.75rem;
  background: var(--brand);
  color: white;
  box-shadow: 0 22px 54px rgba(18, 58, 82, 0.22);
}

.compact-search-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.compact-search-panel .search-box {
  border-color: rgba(16, 39, 52, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(16, 39, 52, 0.07);
}

.search-panel .section-kicker {
  color: #8cc8d2;
}

.search-heading {
  align-items: end;
  margin-bottom: 1.35rem;
}

.search-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 500;
}

.welcome-text {
  margin: 0 0 0.2rem;
  color: #b7d5db;
  font-size: 0.82rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.search-box {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1rem;
}

.search-symbol {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid var(--brand-bright);
  border-radius: 999px;
}

.search-symbol::after {
  position: absolute;
  right: -0.35rem;
  bottom: -0.2rem;
  width: 0.45rem;
  height: 2px;
  rotate: 45deg;
  background: var(--brand-bright);
  content: "";
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  outline: 0;
}

.search-box input::placeholder {
  color: #788994;
}

.letter-keyboard {
  padding: 0.48rem;
  border: 1px solid rgba(16, 39, 52, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(16, 39, 52, 0.09);
}

.t9-display {
  display: block;
  min-height: 2.15rem;
  padding: 0 0.4rem 0.45rem;
  color: var(--brand);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.7rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.letter-keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.letter-key {
  min-width: 0;
  min-height: 3.8rem;
  padding: 0;
  border: 1px solid rgba(16, 39, 52, 0.08);
  border-radius: 0.65rem;
  background: #f4f6f5;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 39, 52, 0.07);
}

.letter-key:active {
  translate: 0 1px;
  background: rgba(31, 100, 118, 0.13);
}

.t9-key {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.12rem;
}

.t9-number {
  font-size: 1.28rem;
  line-height: 1;
}

.t9-letters {
  min-height: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.filter-box select {
  min-height: 3.5rem;
  padding: 0 0.85rem;
  font-size: 1rem;
}

.results-section {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  overflow-anchor: none;
}

.compact-search-panel + .results-section {
  padding-top: 0.55rem;
}

.compact-result-count {
  display: block;
  margin: 0 0.25rem 0.45rem auto;
}

.compact-result-count:empty {
  display: none;
}

.results-heading {
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.results-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

.result-count {
  min-width: 5.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.result-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
  overflow-anchor: none;
}

.result-card {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(16, 39, 52, 0.07);
  backdrop-filter: blur(16px);
  transition: box-shadow 160ms ease;
}

.person-card {
  padding: clamp(1.1rem, 4vw, 1.65rem);
}

.person-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.person-avatar {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-bright));
  color: white;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.25rem;
  box-shadow: 0 9px 20px rgba(18, 58, 82, 0.18);
}

.person-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.person-number {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.person-position-pill {
  max-width: 10rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(31, 100, 118, 0.09);
  color: var(--brand-bright);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.person-overview {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  padding-top: 0.9rem;
}

.person-overview span {
  max-width: 100%;
  padding: 0.42rem 0.62rem;
  border-radius: 0.7rem;
  background: rgba(18, 58, 82, 0.06);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.person-overview .person-overview-title {
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

.person-overview .person-overview-education {
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

.person-detail-heading {
  margin: 1.15rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.person-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 0.75rem;
}

.person-detail-group {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(16, 39, 52, 0.08);
  border-radius: 1rem;
  background: rgba(246, 244, 237, 0.58);
}

.person-detail-group h4 {
  margin: 0 0 0.7rem;
  color: var(--brand-bright);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.person-detail-group dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.person-detail-row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(16, 39, 52, 0.07);
}

.person-detail-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.person-detail-row:last-child {
  padding-bottom: 0;
}

.person-detail-row dt {
  color: #758792;
  font-size: 0.75rem;
}

.person-detail-row dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.55;
  white-space: pre-line;
}

.result-top {
  align-items: flex-start;
}

.record-code {
  margin-bottom: 0.35rem;
  color: #6b7e88;
  letter-spacing: 0.1em;
}

.result-card h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.status-pill {
  flex: 0 0 auto;
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-active {
  background: rgba(47, 115, 89, 0.1);
  color: var(--success);
}

.status-pending {
  background: rgba(161, 100, 33, 0.11);
  color: var(--warning);
}

.status-archived {
  background: rgba(80, 101, 115, 0.11);
  color: var(--ink-soft);
}

.record-summary {
  min-height: 3rem;
  margin: 0.9rem 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.record-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.meta-item {
  display: grid;
  gap: 0.2rem;
}

.meta-item span {
  color: #7d8d96;
  font-size: 0.68rem;
}

.meta-item strong {
  font-size: 0.78rem;
  font-weight: 750;
}

.empty-state {
  padding: 3.2rem 1rem;
  border: 1px dashed rgba(16, 39, 52, 0.2);
  border-radius: 1.4rem;
  text-align: center;
}

.empty-symbol {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.8rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(18, 58, 82, 0.08);
  color: var(--brand);
  font-family: Georgia, serif;
  font-weight: 700;
}

.empty-state h3 {
  margin-bottom: 0.4rem;
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.error-state .empty-symbol {
  background: rgba(163, 58, 53, 0.08);
  color: #a33a35;
}

.app-footer {
  margin-top: 2rem;
  padding: 1.1rem 0.25rem;
  border-top: 1px solid var(--line);
  color: #71838d;
  font-size: 0.72rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page-shell {
    padding-right: max(0.65rem, env(safe-area-inset-right));
    padding-left: max(0.65rem, env(safe-area-inset-left));
  }

  .auth-card,
  .result-card {
    backdrop-filter: none;
  }

  .search-heading {
    align-items: flex-start;
  }

  .welcome-text {
    display: none;
  }

  .search-form,
  .result-list {
    grid-template-columns: 1fr;
  }

  .person-details {
    grid-template-columns: 1fr;
  }

  .filter-box select {
    min-height: 3.1rem;
  }

  .record-summary {
    min-height: 0;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .app-header .eyebrow,
  .connection-state {
    display: none;
  }

  .search-panel:not(.compact-search-panel) {
    border-radius: 1.4rem;
  }

  .record-meta {
    grid-template-columns: 1fr 1fr;
  }

  .person-header {
    grid-template-columns: auto minmax(0, 1fr) minmax(5.5rem, 9rem);
    align-items: start;
  }

  .person-position-pill {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .person-detail-row {
    grid-template-columns: 4.7rem minmax(0, 1fr);
  }

  .meta-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .result-card:hover {
    box-shadow: 0 18px 42px rgba(16, 39, 52, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
