/* Progenix Research — main stylesheet */
:root {
  --navy: #101d29;
  --blue: #0076a8;
  --cyan: #00a0d6;
  --text: #344354;
  --muted: #657484;
  --border: #e2e8ed;
  --soft: #f5f8fa;
  --edge: clamp(24px, 4vw, 90px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--navy); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-container { width: 100%; margin: 0; padding: 22px var(--edge); display: flex; align-items: center; justify-content: flex-start; }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { width: 220px; height: auto; }
.content-container { width: calc(100% - 96px); max-width: 1240px; margin: 0 auto; padding: 0; }
.progenix-main { width: 100%; }

/* Hero */
.research-intro { --progenix-edge: var(--edge); padding: 0 0 70px; background: #fff; border-bottom: 1px solid var(--border); }
.research-intro .progenix-hero { display: block; width: 100vw; max-width: none; min-height: 0; margin: 0 0 18px calc(50% - 50vw); padding: 65px var(--progenix-edge) 28px; background: #fff; }
.research-intro .progenix-hero__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 1000px; padding: 0; }
.progenix-hero__eyebrow { display: block; margin-bottom: 22px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.research-intro .progenix-hero h1 { max-width: 1000px; margin: 0 0 25px; color: var(--navy); font-size: clamp(50px, 5.5vw, 82px); font-weight: 750; line-height: 1.02; letter-spacing: -.06em; }
.progenix-hero__dot { color: var(--cyan); }
.research-intro .progenix-hero p { max-width: 780px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.progenix-hero__rule { width: 56px; height: 2px; margin: 32px 0 16px; background: var(--blue); }
.progenix-hero__caption { color: #8c9aa7; font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }

/* Guidance cards — aligned to hero's outer gutter */
.research-intro .research-guidance:not(.research-guidance-secondary) { width: calc(100vw - (2 * var(--progenix-edge))); max-width: none; margin: 0 0 28px calc(50% - 50vw + var(--progenix-edge)); padding: 36px 40px; background: var(--soft); border: 1px solid #dbe5eb; border-left: 4px solid var(--blue); border-radius: 9px; text-align: left; }
.research-guidance-head { margin-bottom: 20px; }
.research-guidance-label { display: block; color: var(--navy); font-size: 18px; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; }
.research-guidance .research-original-text { color: var(--text); font-size: 15px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; text-align: left; }
.research-intro .research-guidance:not(.research-guidance-secondary) .research-guidance-head,
.research-intro .research-guidance:not(.research-guidance-secondary) .research-original-text { max-width: none; text-align: left; }
.research-intro .research-guidance-secondary { width: calc(100vw - (2 * var(--progenix-edge))); max-width: none; margin: 20px 0 0 calc(50% - 50vw + var(--progenix-edge)); padding: 36px 40px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 9px; }

/* Research library */
.research-content { padding: 76px var(--edge) 110px; background: #fff; }
.research-content > .content-container { width: 100%; max-width: none; margin: 0; padding: 0; }
.research-category { margin: 0 0 86px; }
.research-category:last-child { margin-bottom: 0; }
.research-category h2 { position: relative; margin: 0 0 28px; padding: 0 0 25px; color: var(--navy); font-size: clamp(30px, 3.5vw, 48px); font-weight: 750; line-height: 1.15; letter-spacing: -.045em; border-bottom: 1px solid var(--border); }
.research-category h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 75px; height: 3px; background: var(--blue); }

/* Accordion rows */
.research-item { margin: 0 0 12px; overflow: hidden; background: #fff; border: 1px solid #dce5eb; border-radius: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.research-item:hover { border-color: #a8c8da; }
.research-item[open] { border-color: #b4cdda; box-shadow: 0 12px 35px rgba(16, 29, 41, .055); }
.research-item > summary { position: relative; display: flex; align-items: center; width: 100%; min-height: 88px; padding: 24px 94px 24px 35px; background: #f7f9fb; color: var(--navy); font-size: 20px; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; cursor: pointer; list-style: none; transition: background .2s ease, color .2s ease; }
.research-item > summary::-webkit-details-marker { display: none; }
.research-item > summary::marker { content: ''; }
.research-item > summary:hover { background: #edf5f9; }
.research-item[open] > summary { background: #102637; color: #fff; border-bottom: 1px solid #294253; }
.research-item > summary::after { content: '+'; position: absolute; top: 50%; right: 32px; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #c9dfe9; border-radius: 50%; background: #fff; color: var(--blue); font-size: 27px; font-weight: 400; line-height: 1; }
.research-item[open] > summary::after { content: '−'; background: #0087b9; border-color: #0087b9; color: #fff; }

/* Expanded content: each original text line is its own block.
   The PHP already renders spans with .progenix-research-line. */
.research-item > .research-original-text { display: block; width: 100%; max-width: none; margin: 0; padding: 40px 36px 48px; color: var(--text); background: #fff; font-size: 16px; line-height: 1.85; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.research-item > .research-original-text .progenix-research-line { display: block; width: 100%; max-width: none; margin: 0 0 16px; padding: 0; color: inherit; font-size: 16px; line-height: 1.85; white-space: normal; overflow-wrap: anywhere; }
.research-item > .research-original-text .progenix-research-line:last-child { margin-bottom: 0; }
.research-item > .research-original-text .progenix-research-line:empty { min-height: 10px; margin-bottom: 8px; }
.research-item > .research-original-text::selection { background: #d8f0fa; }

/* Footer */
.site-footer { background: var(--navy); }
.footer-container { width: calc(100% - 96px); max-width: 1240px; margin: 0 auto; padding: 38px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-container p { margin: 0; color: #a9b8c5; font-size: 13px; line-height: 1.7; }

@media (max-width: 768px) {
  :root { --edge: 20px; }
  .header-container { padding: 17px 20px; }
  .site-logo img { width: 175px; }
  .content-container, .footer-container { width: calc(100% - 40px); }
  .research-intro { --progenix-edge: 20px; padding-bottom: 45px; }
  .research-intro .progenix-hero { padding: 42px 20px 22px; margin-bottom: 14px; }
  .research-intro .progenix-hero h1 { font-size: clamp(42px, 10vw, 62px); }
  .research-intro .progenix-hero p { font-size: 15px; }
  .research-intro .research-guidance:not(.research-guidance-secondary) { padding: 26px 22px; margin-bottom: 22px; }
  .research-intro .research-guidance-secondary { padding: 25px 22px; margin-top: 18px; }
  .research-guidance .research-original-text { font-size: 14px; line-height: 1.85; }
  .research-content { padding: 55px var(--edge) 75px; }
  .research-category { margin-bottom: 60px; }
  .research-category h2 { font-size: 29px; }
  .research-item > summary { min-height: 74px; padding: 19px 66px 19px 20px; font-size: 17px; }
  .research-item > summary::after { right: 17px; width: 35px; height: 35px; font-size: 23px; }
  .research-item > .research-original-text { padding: 28px 20px 36px; font-size: 15px; line-height: 1.75; }
  .research-item > .research-original-text .progenix-research-line { margin-bottom: 14px; font-size: 15px; line-height: 1.75; }
  .footer-container { flex-direction: column; align-items: flex-start; padding: 30px 0; gap: 8px; }
}

.research-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
