/* ============================================================
   NCCN Color Palette
   --orange:  #ed6335  (UT Austin burnt orange)
   --navy:    #2c4a7c  (navy blue accent)
   ============================================================ */

/* ============================================================
   Global: push page body below the fixed navbar
   ============================================================ */

body {
  padding-top: 70px;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

* {
  text-decoration: none !important;
}

/* ============================================================
   Nav — logo & link styles
   ============================================================ */

.header .container {
  padding-left: 0;
  padding-right: 0.5rem;
  margin-left: -0.2rem;
}


.nccn-navbar-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.15rem;
  text-decoration: none;
  padding: 0;
  margin-left: 0;
}

.nccn-nav-logo {
  height: 75px;
  width: auto;
  flex-shrink: 0;
}

.nccn-nav-link {
  color: #2c4a7c !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
}

.nccn-nav-link:hover {
  color: #ed6335 !important;
}

/* ============================================================
   NCCN Split-Panel Showcase
   ============================================================ */

.nccn-showcase {
  display: flex;
  align-items: stretch;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  min-height: calc(100vh - 70px);
}

/* --- Left panel (solid navy rectangle) --- */
.nccn-showcase__left {
  flex: 0 0 35%;
  background-color: #2c4a7c;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  padding: 3.5rem 3rem;
}

.nccn-acronym {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nccn-acronym__word {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.nccn-acronym__letter {
  color: #ed6335;
  font-weight: 900;
}

.nccn-acronym__rest {
  color: #fff;
  font-weight: 900;
}

.nccn-pi-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* --- Right panel (white) --- */
.nccn-showcase__right {
  flex: 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 1rem 5rem 1rem 4rem;
}

.nccn-showcase__content {
  width: 100%;
}

.nccn-welcome {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c4a7c;
  margin-bottom: 2.2rem;
  line-height: 1.5;
}

.nccn-description {
  font-size: 1.05rem;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
  margin-bottom: 2.2rem;
}

.nccn-launch {
  font-size: 1.05rem;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
  margin-bottom: 0;
}

.nccn-link {
  color: #ed6335;
  text-decoration: none;
  font-weight: 600;
}

.nccn-link:hover {
  text-decoration: underline;
  color: #c04a00;
}

.nccn-link--plain,
.nccn-link--plain:hover {
  text-decoration: none !important;
}

/* ============================================================
   Shared section styles
   ============================================================ */

.nccn-section {
  padding: 5rem 0;
  background-color: #fff;
}

.nccn-section--alt {
  background-color: #f8f8f8;
}

.nccn-section__inner {
  padding: 0 8rem 0 7rem;
}

.nccn-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: #2c4a7c;
  margin-bottom: 2.5rem;
  border-bottom: 3px solid #ed6335;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.nccn-section__note {
  margin-top: 2rem;
  font-size: 1rem;
  color: #555;
}

.nccn-section__lead {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* --- Team --- */

.nccn-pi-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.nccn-pi-card__photo {
  flex: 0 0 200px;
}

.nccn-pi-card__photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.nccn-pi-card__bio {
  flex: 1;
}

.nccn-pi-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2c4a7c;
  margin-bottom: 0.25rem;
}

.nccn-pi-card__role {
  font-size: 1rem;
  font-weight: 600;
  color: #ed6335;
  margin-bottom: 1rem;
}

.nccn-pi-card__text {
  font-size: 1.05rem;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
  margin: 0 0 1rem 0;
}

.nccn-team-note {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
}

.nccn-team-note-link {
  color: #ed6335;
  font-weight: 700;
}

.nccn-team-note-link:hover {
  color: #c04a00;
}

.nccn-pi-links {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #555;
}

.nccn-pi-link {
  color: #999;
  font-weight: 400;
  text-decoration: none;
}

.nccn-pi-link:hover {
  text-decoration: none;
  color: #ed6335;
}

/* --- Publications --- */

.nccn-pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nccn-pub-item {
  display: list-item;
  padding: 0.4rem 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: #333;
  line-height: 1.65;
}

.nccn-pub-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.nccn-pub-authors {
  font-size: 0.92rem;
  color: #555;
}

.nccn-pub-journal {
  font-size: 0.92rem;
  color: #888;
  font-style: italic;
}

.nccn-pub-note {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.nccn-pub-year {
  font-size: 1rem;
  font-weight: 700;
  color: #2c4a7c;
  margin: 2rem 0 0.5rem 0;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.25rem;
}

.nccn-pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.nccn-pub-tag {
  font-size: 0.85rem;
  color: #ed6335;
  text-decoration: none;
  font-weight: 600;
}

.nccn-pub-tag:hover {
  text-decoration: underline;
}

/* --- Research --- */

.nccn-research-accordion {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
}

.nccn-research-accordion:first-of-type {
  border-top: 1px solid #e5e5e5;
}

.nccn-research-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c4a7c;
  line-height: 1.4;
  gap: 1rem;
}

.nccn-research-summary::-webkit-details-marker {
  display: none;
}

.nccn-research-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: #ed6335;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nccn-research-accordion[open] .nccn-research-summary::after {
  content: '−';
}

.nccn-research-summary:hover {
  color: #ed6335;
}

.nccn-research-panel {
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.4s ease;
  padding: 0.5rem 0 2rem 0;
}

.nccn-research-theme--img {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.nccn-research-body {
  flex: 1;
}

.nccn-research-img {
  flex: 0 0 350px;
  max-width: 350px;
}

.nccn-research-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.nccn-research-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c4a7c;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.nccn-research-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.nccn-research-papers {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #ed6335;
  padding-left: 1rem;
}

.nccn-research-papers li {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.nccn-research-ref {
  color: #999;
  text-decoration: none;
}

.nccn-research-ref:hover {
  color: #ed6335;
  text-decoration: none;
}

/* --- Contact section --- */

.nccn-contact-title {
  margin-top: 3.5rem;
}

/* --- Contact address --- */

.nccn-contact-address {
  margin-top: 0;
}

.nccn-contact-address p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.75;
  margin: 0;
}

/* --- Join Us --- */

.nccn-join-lead {
  font-weight: 700;
  color: #2c4a7c;
}

.nccn-join-normal {
  font-weight: 400;
  color: #333;
}

.nccn-join-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 0 2.5rem 0;
}

.nccn-join-role {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e5e5e5;
}

.nccn-join-role:last-child {
  border-bottom: none;
}

.nccn-join-role__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c4a7c;
  margin-bottom: 1.25rem;
}

.nccn-join-role__desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.nccn-join-role__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin: 1rem 0 0.4rem 0;
}

.nccn-join-list {
  padding-left: 1.5rem;
  margin: 0;
}

.nccn-join-list li {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.2rem;
}

/* ============================================================
   Footer — minimal, no black bar
   ============================================================ */

.nccn-footer {
  padding: 1.5rem 2rem;
  background-color: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nccn-footer__copy {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.nccn-footer__logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Phone: stack so logo sits above (or below) the copyright comfortably */
@media (max-width: 480px) {
  .nccn-footer {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .nccn-footer__logo {
    height: 36px;
  }
}

/* Hide the theme's default footer background/nav if it leaks through */
.footer {
  display: none !important;
}

/* ============================================================
   Responsive: tablet & smaller (≤ 991px)
   The default desktop padding (8rem / 7rem) is too tight on
   anything narrower than ~1100px, so we drop it well before
   the phone breakpoint.
   ============================================================ */

@media (max-width: 991px) {
  .nccn-section {
    padding: 3.5rem 0 !important;
  }

  .nccn-section__inner {
    padding: 0 3rem !important;
  }
}

/* ============================================================
   Responsive: stack on phone (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  /* Home */
  .nccn-showcase {
    flex-direction: column !important;
  }

  .nccn-showcase__left {
    flex: none !important;
    width: 100% !important;
    padding: 2.5rem 1.5rem !important;
  }

  .nccn-acronym__word {
    font-size: clamp(2rem, 10vw, 3.2rem);
    white-space: normal;
  }

  .nccn-showcase__right {
    padding: 2rem 1.5rem !important;
  }

  .nccn-showcase__content {
    max-width: 100%;
  }

  /* Inner pages: comfortable mobile padding */
  .nccn-section {
    padding: 2.5rem 0 !important;
  }

  .nccn-section__inner {
    padding: 0 1.25rem !important;
  }

  .nccn-section__title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  /* Team: stack photo ABOVE description on phone */
  .nccn-pi-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  .nccn-pi-card__photo {
    flex: none !important;
    width: 100% !important;
    display: block;
  }

  .nccn-pi-card__photo img {
    width: 180px;
    height: 180px;
  }

  .nccn-pi-card__bio {
    width: 100%;
  }

  /* Research: stack image below text */
  .nccn-research-theme--img {
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .nccn-research-img {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nccn-research-summary {
    font-size: 1rem;
    padding: 1rem 0;
  }

  /* Publications: prevent overflow on long author/title lines */
  .nccn-pub-item {
    font-size: 0.97rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Join Us accordions: comfortable touch target */
  .nccn-research-panel {
    padding: 0.25rem 0 1.25rem 0;
  }
}

/* ============================================================
   Extra-small phones (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
  .nccn-section__inner {
    padding: 0 1rem !important;
  }

  .nccn-nav-logo {
    height: 56px;
  }

  body {
    padding-top: 60px;
  }

  .nccn-pi-card__photo img {
    width: 160px;
    height: 160px;
  }
}

/* ============================================================
   Safety: never let any flex row force horizontal scroll on phones
   ============================================================ */

@media (max-width: 768px) {
  .nccn-pi-card,
  .nccn-research-theme--img,
  .nccn-section__inner {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}
