/* Org chart page (page-organization.php): ID cards in a grid, same plate / hazard / neon language as the home and 404. */
.ekp-org { padding: 0; }
.og-stage { max-width: 1180px; margin: 0 auto; padding: 36px 16px 72px; display: flex; flex-direction: column; gap: 34px; }

.og-plate {
  position: relative; padding: 30px 34px 26px 46px; color: #dfe7fb; background: linear-gradient(135deg, #1b2236, #0e1424);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  box-shadow: inset 0 0 0 1px rgba(34, 227, 255, .35);
}
.og-plate::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 0; width: 10px; background: repeating-linear-gradient(-45deg, var(--cyan) 0 8px, #1b2130 8px 16px); }
.og-no { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: #8fa0cf; }
.og-no b { color: var(--cyan); text-shadow: 0 0 6px var(--cyan); }
.og-plate h1 { margin: 0 0 12px; padding: 0; border: 0; background: none; font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: #fff; }
.og-plate h1::before, .og-plate h1::after { display: none; }
.og-intro p { margin: 0 0 .6em; font-size: 14.5px; line-height: 1.9; color: #c9d4f5; }
.og-intro a { color: var(--cyan); }

.og-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; padding: 0; border: 0; background: none; font-size: 15px; }
.og-head::before, .og-head::after { display: none; }
.og-head b { font-family: var(--tech); font-size: 26px; letter-spacing: .12em; color: var(--blue-900); }
.og-head span { font-weight: 700; color: var(--steel-700); }
.og-note { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); }

.og-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.og-card {
  --acc: var(--cyan);
  position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 18px 18px 16px 22px;
  background: linear-gradient(rgba(30, 60, 140, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(30, 60, 140, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(135deg, #ffffff, #e6ebf2);
  box-shadow: inset 0 0 0 1px rgba(30, 60, 140, .22), inset 5px 0 0 var(--acc);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .15s ease, box-shadow .15s ease;
}
.og-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--acc), inset 5px 0 0 var(--acc); }
.og-tier.-boss .og-grid { grid-template-columns: minmax(0, 760px); }
.og-card.-boss { grid-template-columns: 170px 1fr; background: linear-gradient(135deg, #1b2236, #0e1424); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 55%, transparent), inset 5px 0 0 var(--acc); }
.og-face { display: block; width: 116px; height: 116px; padding: 3px; border-radius: 50%; background: conic-gradient(var(--acc), #1b2130, var(--acc)); box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 45%, transparent); }
.og-card.-boss .og-face { width: 170px; height: 170px; }
.og-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0e1424; }
.og-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.og-code { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: color-mix(in srgb, var(--acc) 75%, #1b2130); }
.og-card .og-name { margin: 0; padding: 0; border: 0; background: none; font-family: var(--tech); font-size: 24px; line-height: 1.1; letter-spacing: .03em; color: var(--blue-900); }
.og-card .og-name a { color: inherit; text-decoration: none; }
.og-card .og-name a:hover { color: var(--acc); }
.og-card .og-name::before, .og-card .og-name::after { display: none; }
.og-title { font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--acc) 70%, #1b2130); }
.og-role { margin: 6px 0 4px; font-size: 13.5px; line-height: 1.75; color: #2e374a; }
.og-spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 2px 0 0; font-size: 12.5px; }
.og-spec dt { font-family: var(--mono); font-size: 10.5px; line-height: 2; letter-spacing: .06em; color: var(--steel-500); white-space: nowrap; }
.og-spec dd { margin: 0; color: var(--steel-700); }
.og-card.-boss .og-name { color: #fff; font-size: 30px; }
.og-card.-boss .og-code, .og-card.-boss .og-title { color: var(--acc); text-shadow: 0 0 6px color-mix(in srgb, var(--acc) 60%, transparent); }
.og-card.-boss .og-role { color: #c9d4f5; }
.og-card.-boss .og-spec dt { color: #8fa0cf; }
.og-card.-boss .og-spec dd { color: #dfe7fb; }
.og-fine { margin: 0; font-size: 12px; color: var(--steel-700); text-align: center; }

.og-more { margin-top: auto; padding-top: 8px; align-self: flex-end; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: color-mix(in srgb, var(--acc) 75%, #1b2130); text-decoration: none; }
.og-more::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.og-card:hover .og-more { text-decoration: underline; }
.og-card.-boss .og-more { color: var(--acc); }

.og-crumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.og-back { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--blue-900); text-decoration: none; padding: 6px 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(30, 60, 140, .22); }
.og-back:hover { background: #eef3fb; }
.og-tier-badge { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--steel-700); }

.og-detail {
  --acc: var(--cyan);
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 28px 30px 26px 34px;
  background: linear-gradient(rgba(30, 60, 140, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(30, 60, 140, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(135deg, #ffffff, #e6ebf2);
  box-shadow: inset 0 0 0 1px rgba(30, 60, 140, .24), inset 6px 0 0 var(--acc);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.og-detail.-boss { background: linear-gradient(135deg, #1b2236, #0e1424); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 55%, transparent), inset 6px 0 0 var(--acc); color: #dfe7fb; }
.og-detail-head { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
.og-detail .og-face { width: 180px; height: 180px; }
.og-detail-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.og-detail .og-name { margin: 0; padding: 0; border: 0; background: none; font-family: var(--tech); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--blue-900); }
.og-detail .og-name::before, .og-detail .og-name::after { display: none; }
.og-detail.-boss .og-name { color: #fff; }
.og-detail.-boss .og-code, .og-detail.-boss .og-title { color: var(--acc); }
.og-detail.-boss .og-role { color: #c9d4f5; }
.og-detail.-boss .og-spec dt { color: #8fa0cf; }
.og-detail.-boss .og-spec dd { color: #dfe7fb; }

.og-bio { padding-top: 16px; border-top: 1px dashed rgba(30, 60, 140, .22); }
.og-detail.-boss .og-bio { border-top-color: rgba(255, 255, 255, .16); }
.og-bio h2 { margin: 0 0 10px; padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--steel-700); }
.og-bio h2::before, .og-bio h2::after { display: none; }
.og-detail.-boss .og-bio h2 { color: #8fa0cf; }
.og-bio p { margin: 0 0 .8em; font-size: 14.5px; line-height: 1.85; color: #2e374a; }
.og-bio p:last-child { margin-bottom: 0; }
.og-detail.-boss .og-bio p { color: #c9d4f5; }

.og-links { display: flex; flex-wrap: wrap; gap: 10px; }
.og-link-chip { display: inline-flex; align-items: center; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: var(--blue-900); background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(30, 60, 140, .25); text-decoration: none; }
.og-link-chip:hover { box-shadow: inset 0 0 0 1px var(--acc); }

.og-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed rgba(30, 60, 140, .22); }
.og-detail.-boss .og-share { border-top-color: rgba(255, 255, 255, .16); }
.og-xbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  font-size: 13.5px; font-weight: 700; color: #fff; background: #0f1419; text-decoration: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 70%, transparent);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.og-xbtn:hover { background: #1c2430; box-shadow: inset 0 0 0 1px var(--acc), 0 0 12px color-mix(in srgb, var(--acc) 35%, transparent); }
.og-share-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.og-share-tags code { padding: 3px 8px; font-family: var(--mono); font-size: 11.5px; color: var(--steel-700); background: rgba(30, 60, 140, .08); border-radius: 3px; }
.og-detail.-boss .og-share-tags code { color: #dfe7fb; background: rgba(255, 255, 255, .1); }

.og-nav { display: flex; justify-content: space-between; gap: 12px; }
.og-nav-btn { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--blue-900); text-decoration: none; padding: 8px 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(30, 60, 140, .22); }
.og-nav-btn:hover { background: #eef3fb; }

@media (max-width: 560px) {
  .og-plate { padding: 24px 18px 20px 30px; }
  .og-grid { grid-template-columns: 1fr; }
  .og-card, .og-card.-boss { grid-template-columns: 1fr; }
  .og-face, .og-card.-boss .og-face { width: 128px; height: 128px; }
  .og-detail { padding: 22px 18px 20px 22px; }
  .og-detail-head { grid-template-columns: 1fr; }
  .og-detail .og-face { width: 140px; height: 140px; }
}
