/* Kokoda 1942 — Person Page Styles & Directory Grid */
.kk-person-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 960px) {
  .kk-person-layout {
    grid-template-columns: 1fr;
  }
}

.kk-person-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kk-portrait-card {
  background: #0d2621;
  border: 1.5px solid #2f5545;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.kk-portrait-img-box {
  width: 100%;
  height: 380px;
  background: #061410;
  position: relative;
  overflow: hidden;
}

.kk-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.kk-portrait-caption {
  padding: 12px 14px;
  font-size: 12px;
  color: #a7f3d0;
  background: #0f2f29;
  border-top: 1px solid #204b3e;
  line-height: 1.4;
}

.kk-person-meta-card {
  background: #0f231c;
  border: 1px solid #2f5545;
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
}

.kk-person-meta-row {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.kk-person-meta-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.kk-person-meta-row strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fde68a;
  margin-bottom: 2px;
}

.kk-person-meta-row span {
  color: #f1f5f9;
  line-height: 1.4;
}

/* AI Overview Main Card */
.kk-ai-overview-card {
  background: #0b1f1a;
  border: 1.5px solid #346352;
  border-radius: 14px;
  padding: 24px;
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.kk-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #204b3e;
}

.kk-ai-sparkle-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: 24px;
  color: #fde68a;
  margin: 0;
}

.kk-ai-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: #f1f5f9;
}
.kk-ai-body p {
  margin: 0 0 14px;
}
.kk-ai-body p:last-child {
  margin-bottom: 0;
}

/* Official AWM Link Pills */
.kk-awm-panel {
  margin-top: 20px;
  padding: 16px;
  background: #081814;
  border: 1px solid #d4ab5b;
  border-radius: 12px;
}
.kk-awm-links-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.kk-awm-direct-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #14352d;
  border: 1px solid #2f5f50;
  border-radius: 8px;
  color: #fde68a;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.kk-awm-direct-pill:hover,
.kk-awm-direct-pill:focus {
  background: #fde68a;
  color: #07130f;
  border-color: #fde68a;
  transform: translateX(4px);
}

/* Ask AI Card */
.kk-ask-ai-widget {
  margin-top: 22px;
  padding: 18px;
  background: #071713;
  border: 1px solid #2f5545;
  border-radius: 12px;
}

.kk-question-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.kk-question-input {
  flex: 1;
  padding: 10px 14px;
  background: #0f2a24;
  border: 1px solid #204b3e;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
}
.kk-question-input:focus {
  outline: 2px solid #fde68a;
  border-color: transparent;
}

.kk-ai-qa-result {
  margin-top: 14px;
  padding: 14px;
  background: #113129;
  border-left: 4px solid #fde68a;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #f8fafc;
}
.qa-source-chip {
  display: inline-block;
  padding: 2px 8px;
  background: #061914;
  border: 1px solid #2f5545;
  border-radius: 6px;
  font-size: 11.5px;
  color: #a7f3d0;
  margin: 4px 4px 0 0;
}

/* Campaign Timeline Trail */
.kk-trail-step {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-left: 2px solid #346352;
  margin-left: 8px;
  padding-left: 16px;
  position: relative;
}
.kk-trail-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fde68a;
}
.kk-trail-date {
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
  min-width: 90px;
}

/* People Directory Grid */
.kk-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.kk-person-card {
  background: #0f231c;
  border: 1.5px solid #254a3c;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.18s ease;
}
.kk-person-card:hover {
  border-color: #fde68a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.kk-person-card.active-person {
  border-color: #fde68a;
  background: #14352d;
  box-shadow: 0 0 0 2px rgba(253,230,138,0.4);
}
.kk-person-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.kk-person-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d4ab5b;
  flex-shrink: 0;
  background: #061410;
}
.kk-person-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inline Link Auto-Linking */
.kk-person-inline-link {
  color: #fde68a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  display: inline;
  padding: 1px 3px;
  border-radius: 4px;
  transition: background 0.12s ease;
}
.kk-person-inline-link:hover,
.kk-person-inline-link:focus {
  background: rgba(253, 230, 138, 0.25);
  color: #ffffff;
}
