.kp-inner-shell {
  max-width: 80rem;
  margin-inline: auto;
  padding: 2.25rem 1.25rem 5rem;
}

.kp-inner-hero {
  position: relative;
  isolation: isolate;
  min-height: 20rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(125deg, var(--primary-dark), #102f4f 62%, #173b48);
  color: #fff;
}

.kp-inner-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.kp-inner-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(3, 17, 34, .94) 0%, rgba(3, 17, 34, .82) 53%, rgba(3, 17, 34, .45) 100%);
}

.kp-inner-hero:not(.kp-inner-hero--image) .kp-inner-hero__wash {
  background: radial-gradient(circle at 85% 20%, rgba(var(--secondary-rgb), .22), transparent 30%), linear-gradient(125deg, var(--primary-dark), #102f4f 64%, #173b48);
}

.kp-inner-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image: linear-gradient(135deg, transparent 66%, rgba(255, 255, 255, .18) 66%, rgba(255, 255, 255, .18) 67%, transparent 67%), radial-gradient(circle at 78% 38%, transparent 0, transparent 4.5rem, rgba(255, 255, 255, .16) 4.6rem, transparent 4.75rem);
}

.kp-inner-hero__content {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 3.75rem 1.25rem 3rem;
}

.kp-inner-hero__eyebrow {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f5d889;
}

.kp-inner-hero h1 {
  max-width: 56rem;
  margin-top: .75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.kp-inner-hero__description {
  max-width: 45rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: #dce5ee;
}

.kp-inner-hero__cta { margin-top: 1.5rem; }

.kp-inner-hero__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  font-weight: 700;
  color: #dce5ee;
}

.kp-inner-hero__back:hover { color: #fff; }

.kp-filter-panel {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  border: 1px solid #dce3ea;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
  padding: 1.25rem;
}

.kp-filter-grid { display: grid; gap: 1rem; }
.kp-field label { display: block; font-size: .75rem; font-weight: 700; color: #475569; margin-bottom: .35rem; }
.kp-field :is(input, select) { width: 100%; min-height: 2.85rem; border: 1px solid #cbd5e1; border-radius: .75rem; background: #fff; }
.kp-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.kp-result-count { font-size: .8rem; color: #64748b; }
.kp-content-grid { display: grid; gap: 1.4rem; }

.kp-list-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #dce3ea;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.kp-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .11);
  border-color: rgba(var(--primary-rgb), .35);
}

.kp-list-card__media {
  position: relative;
  flex: 0 0 35%;
  min-height: 12rem;
  background: linear-gradient(145deg, rgba(var(--primary-rgb), .14), rgba(var(--secondary-rgb), .18));
}

.kp-list-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kp-list-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.kp-meta { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .75rem; color: #526173; }
.kp-meta span { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .2rem .65rem; border-radius: 999px; background: #f1f5f9; }
.kp-list-card h2, .kp-list-card h3 { margin-top: .85rem; font-size: 1.2rem; line-height: 1.3; font-weight: 800; color: #0f172a; }
.kp-list-card p { margin-top: .65rem; color: #526173; line-height: 1.6; }
.kp-card-link { margin-top: auto; padding-top: 1.15rem; font-size: .875rem; font-weight: 800; color: var(--primary); }
.kp-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.kp-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; }
.kp-section-head p { max-width: 42rem; margin-top: .4rem; color: #64748b; }
.kp-detail-layout { display: grid; gap: 2rem; }
.kp-detail-main { min-width: 0; }
.kp-detail-aside { align-self: start; }
.kp-fact-panel { border-top: 4px solid var(--secondary); border-radius: 0 0 1rem 1rem; background: #fff; padding: 1.5rem; box-shadow: 0 12px 34px rgba(15, 23, 42, .08); }
.kp-fact-panel dl { display: grid; gap: 1rem; }
.kp-fact-panel dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.kp-fact-panel dd { margin-top: .25rem; font-weight: 650; color: #172033; }
.kp-reading { max-width: 48rem; }
.kp-reading.prose { font-size: 1.05rem; line-height: 1.8; }
.kp-event-share { border-color: rgba(var(--primary-rgb), .22); background: #fff; }
.kp-event-share__eyebrow { color: var(--primary); }
.kp-event-share__cover { border: 1px solid rgba(var(--primary-rgb), .2); }
.kp-event-share__action { border-color: rgba(var(--primary-rgb), .25); color: var(--primary); background: #fff; transition: background-color .18s ease, border-color .18s ease; }
.kp-event-share__action:hover { background: rgba(var(--primary-rgb), .07); border-color: var(--primary); }
.kp-event-share__action:focus-visible, .kp-event-share__details summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.kp-event-share__details { background: rgba(var(--primary-rgb), .03); }
.kp-event-share__details textarea { color: #172033; background: #fff; }
.kp-event-share [data-share-status]:not(:empty) { color: var(--primary); font-weight: 600; }
.kp-event-share [data-share-native][hidden] { display: none !important; }
.kp-empty { border: 1px dashed #bdc8d4; border-radius: 1rem; background: rgba(255, 255, 255, .7); padding: 2rem; color: #526173; }
.kp-path-grid { display: grid; gap: 1rem; }
.kp-path { position: relative; overflow: hidden; padding: 1.75rem; border-top: 3px solid var(--secondary); border-radius: 0 0 1.25rem 1.25rem; background: #fff; box-shadow: 0 12px 34px rgba(15, 23, 42, .07); }
.kp-path h2, .kp-path h3 { font-size: 1.1rem; font-weight: 800; }
.kp-path p { margin-top: .65rem; color: #5b6878; line-height: 1.6; }
.kp-logo-frame { display: flex; min-height: 12rem; align-items: center; justify-content: center; border: 1px solid #dce3ea; border-radius: 1rem; background: #fff; padding: 1.5rem; }
.kp-logo-frame img { max-height: 9rem; object-fit: contain; }
.kp-logo-frame__fallback { font-size: 3rem; font-weight: 800; color: var(--primary); }

@media (min-width: 768px) {
  .kp-inner-shell { padding-top: 3rem; }
  .kp-filter-panel { padding: 1.5rem; }
  .kp-content-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-content-grid--3, .kp-path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kp-filter-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kp-filter-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kp-detail-layout { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
}

@media (max-width: 767px) {
  .kp-inner-hero { min-height: 16rem; }
  .kp-inner-hero__content { padding-top: 2rem; padding-bottom: 1.75rem; }
  .kp-inner-hero h1 { font-size: clamp(2rem, 10vw, 2.5rem); }
  .kp-inner-hero__description { margin-top: .75rem; line-height: 1.5; }
  .kp-inner-hero__cta { margin-top: 1rem; }
  .kp-inner-hero__back { margin-bottom: .75rem; }
  .kp-inner-hero__wash { background: linear-gradient(90deg, rgba(3, 17, 34, .94), rgba(3, 17, 34, .72)); }
  .kp-filter-panel { margin-top: -1rem; }
  .kp-list-card { display: block; }
  .kp-list-card__media { min-height: 10rem; }
  .kp-section-head { display: block; }
  .kp-section-head > a { display: inline-flex; margin-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .kp-list-card { transition: none; }
}
