.et_pb_column #phrd-research-wrapper,
.et_pb_row #phrd-research-wrapper,
.et_pb_section #phrd-research-wrapper,
.et_pb_module #phrd-research-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.et_pb_text_inner > p:has(#phrd-research-wrapper),
.et_pb_text_inner > #phrd-research-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- Base reset ---------- */
#phrd-research-wrapper,
#phrd-research-wrapper *,
#phrd-research-wrapper *::before,
#phrd-research-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#phrd-research-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #f7f3ec;
  color: #17211f;
  font-family: 'Inter',system-ui,sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: visible !important;
}
#phrd-research-wrapper a { color: inherit; text-decoration: none; }
#phrd-research-wrapper img { max-width: 100%; display: block; }

#phrd-research-wrapper .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
#phrd-research-wrapper header.hero {
  background: linear-gradient(135deg, #082a28, #0b3d3a);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
#phrd-research-wrapper header.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 340px; height: 100%;
  background: repeating-linear-gradient(45deg, rgba(217,142,62,0.08) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
#phrd-research-wrapper .hero-inner { position: relative; z-index: 1; }
#phrd-research-wrapper .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono',monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: #d98e3e;
  margin-bottom: 14px;
}
#phrd-research-wrapper .eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: #d98e3e;
  display: inline-block;
}
#phrd-research-wrapper header.hero h1 {
  font-family: 'Fraunces',serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
#phrd-research-wrapper header.hero p.lede {
  margin-top: 16px;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 52ch;
}

#phrd-research-wrapper main { padding: 0 0 90px; }

/* ---------- Panel ---------- */
#phrd-research-wrapper .panel {
  margin-top: -40px;
  background: #ffffff;
  border: 1px solid rgba(11,61,58,0.14);
  border-radius: 10px;
  box-shadow: 0 24px 48px -28px rgba(8,42,40,0.28);
  padding: 26px;
  position: relative;
  z-index: 2;
}

/* ---------- Controls ---------- */
#phrd-research-wrapper .controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#phrd-research-wrapper .count {
  font-family: 'JetBrains Mono',monospace;
  font-size: 11px;
  color: #6b7a76;
  letter-spacing: .04em;
}
#phrd-research-wrapper .search-box { position: relative; width: 100%; max-width: 320px; }
#phrd-research-wrapper .search-box input {
  width: 100%;
  font-family: 'Inter',system-ui,sans-serif;
  font-size: 14px;
  padding: 11px 16px 11px 38px;
  border: 1.5px solid rgba(11,61,58,0.14);
  border-radius: 30px;
  background: #f7f3ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230e6b5c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
  color: #17211f;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#phrd-research-wrapper .search-box input:focus {
  border-color: #0e6b5c;
  box-shadow: 0 0 0 3px #e7f1ee;
}
#phrd-research-wrapper .search-box input::placeholder { color: #8a9b96; }

/* ---------- Table ---------- */
#phrd-research-wrapper table { width: 100%; border-collapse: separate; border-spacing: 0; }
#phrd-research-wrapper thead th {
  background: #082a28;
  color: #fff;
  font-family: 'JetBrains Mono',monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
#phrd-research-wrapper thead th:first-child { border-radius: 6px 0 0 0; }
#phrd-research-wrapper thead th:last-child { border-radius: 0 6px 0 0; }
#phrd-research-wrapper thead th .arrow { opacity: .5; margin-left: 4px; font-size: 9px; }
#phrd-research-wrapper thead th.sorted .arrow { opacity: 1; color: #d98e3e; }

#phrd-research-wrapper tbody tr { transition: background .2s ease; }
#phrd-research-wrapper tbody tr:hover { background: #e7f1ee; }
#phrd-research-wrapper tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(11,61,58,0.14);
  font-size: 14px;
  color: #3c4a47;
  vertical-align: middle;
}
#phrd-research-wrapper tbody tr:last-child td { border-bottom: none; }
#phrd-research-wrapper td.title { font-weight: 600; color: #082a28; max-width: 420px; }
#phrd-research-wrapper td.journal { font-style: italic; color: #5b6863; white-space: nowrap; }
#phrd-research-wrapper td.access a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d98e3e;
  color: #082a28;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
#phrd-research-wrapper td.access a:hover { background: #b97225; transform: translateY(-1px); }
#phrd-research-wrapper td.access a::after { content: "→"; }

#phrd-research-wrapper .empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #6b7a76;
  font-family: 'JetBrains Mono',monospace;
  font-size: 13px;
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #phrd-research-wrapper .panel { margin-top: -24px; padding: 20px 16px; }
  #phrd-research-wrapper .controls { flex-direction: column; align-items: stretch; }
  #phrd-research-wrapper .search-box { max-width: none; }
}

@media (max-width: 760px) {
  #phrd-research-wrapper thead { display: none; }
  #phrd-research-wrapper table,
  #phrd-research-wrapper tbody,
  #phrd-research-wrapper tr,
  #phrd-research-wrapper td { display: block; width: 100%; }
  #phrd-research-wrapper tbody tr {
    margin-bottom: 14px;
    border: 1px solid rgba(11,61,58,0.14);
    border-radius: 8px;
    overflow: hidden;
    padding: 4px 0;
  }
  #phrd-research-wrapper tbody td {
    text-align: right;
    padding-left: 46%;
    position: relative;
    min-height: 24px;
  }
  #phrd-research-wrapper tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    width: 40%;
    text-align: left;
    font-family: 'JetBrains Mono',monospace;
    font-size: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #b97225;
    font-weight: 600;
  }
  #phrd-research-wrapper td.access { text-align: left; padding-left: 14px; padding-top: 4px; }
  #phrd-research-wrapper td.access::before { display: none; }
}