/* OPC Phase 1 homepage consolidation (v0.48.0)
   Loaded last so the compact park/news and expert/learning compositions
   intentionally supersede the earlier carousel-specific layers. */

/* v0.48.1 — narrow rollback: keep the original black-gold park carousel intact
   and only compose the existing news panel beside it. */
.opc-community-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 320px);
  gap: 64px;
  align-items: start;
}

.opc-community-news-layout__main {
  min-width: 0;
}

.opc-community-news-section .opc-phase-one-panel {
  margin-top: 138px;
}

@media (max-width: 1180px) {
  .opc-community-news-layout {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 52px;
  }
}

@media (max-width: 980px) {
  .opc-community-news-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .opc-community-news-section .opc-phase-one-panel {
    margin-top: 0;
  }
}

.opc-phase-one-section {
  scroll-margin-top: 72px;
  color: #1f2d4d;
}

.opc-phase-one-section > .tcwf-section__inner {
  max-width: 1200px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.opc-phase-one-section .tcwf-section__header {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
  text-align: left;
}

.opc-phase-one-section .tcwf-section__header > div {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: left;
}

.opc-phase-one-section .tcwf-section__title {
  margin: 8px 0 10px;
  font-size: clamp(32px, 3.1vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.opc-phase-one-section .tcwf-section__description {
  max-width: 780px;
  margin: 0;
  color: #64728d;
  font-size: 17px;
  line-height: 1.75;
}

.opc-phase-one-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: #0052d9;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.opc-phase-one-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d9e4f7;
  border-radius: 999px;
  color: #37527d;
  background: #f5f8fd;
  font-size: 13px;
  font-weight: 600;
}

.opc-phase-one-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.opc-phase-one-parks-column,
.opc-phase-one-experts-column {
  min-width: 0;
}

.opc-phase-one-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.opc-phase-one-subhead h3 {
  margin: 0;
  color: #1f2d4d;
  font-size: 22px;
  line-height: 1.3;
}

.opc-phase-one-subhead p {
  margin: 0;
  color: #8793aa;
  font-size: 14px;
}

.opc-phase-one-parks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.opc-phase-one-park.tcwf-case-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(33, 50, 84, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.opc-phase-one-park.tcwf-case-card:hover,
.opc-phase-one-park.tcwf-case-card:focus-within {
  border-color: #b8cdf2;
  box-shadow: 0 12px 30px rgba(33, 70, 130, 0.1);
  transform: translateY(-2px);
}

.opc-phase-one-park .tcwf-case-card__image {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.opc-phase-one-park .tcwf-case-card__body {
  display: flex;
  flex-direction: column;
  min-height: 244px;
  padding: 19px 18px 16px;
}

.opc-phase-one-park__meta {
  margin: 0 0 8px;
  color: #0052d9;
  font-size: 13px;
  font-weight: 700;
}

.opc-phase-one-park .tcwf-case-card__title {
  min-height: 52px;
  margin: 0;
  color: #1f2d4d;
  font-size: 19px;
  line-height: 1.4;
}

.opc-phase-one-park .tcwf-case-card__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 15px;
  color: #65718a;
  font-size: 14px;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.opc-phase-one-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.opc-phase-one-tags li {
  padding: 5px 8px;
  border-radius: 5px;
  color: #53617b;
  background: #f1f4f9;
  font-size: 12px;
  line-height: 1.25;
}

.opc-phase-one-park__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #e7ebf2;
}

.opc-phase-one-park__footer span {
  color: #8a96aa;
  font-size: 12px;
}

.opc-phase-one-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  border: 0;
  color: #0052d9;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.opc-phase-one-link-button:focus-visible {
  outline: 2px solid #0052d9;
  outline-offset: 3px;
}

.opc-phase-one-compact-parks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.opc-phase-one-compact-park {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fff;
}

.opc-phase-one-compact-park img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.opc-phase-one-compact-park div {
  min-width: 0;
}

.opc-phase-one-compact-park small {
  color: #0052d9;
  font-size: 12px;
}

.opc-phase-one-compact-park h4 {
  overflow: hidden;
  margin: 5px 0 7px;
  color: #263555;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.opc-phase-one-compact-park button {
  min-height: 32px;
  font-size: 12px;
}

.opc-phase-one-panel {
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  background: #fff;
}

.opc-phase-one-panel__header {
  padding: 23px 24px 17px;
  border-bottom: 1px solid #e7ebf2;
}

.opc-phase-one-panel__header h3 {
  margin: 0 0 7px;
  color: #1f2d4d;
  font-size: 21px;
}

.opc-phase-one-panel__header p {
  margin: 0;
  color: #738099;
  font-size: 13px;
  line-height: 1.6;
}

.opc-phase-one-news-list,
.opc-phase-one-resource-list {
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

.opc-phase-one-news-list li + li,
.opc-phase-one-resource-list li + li {
  border-top: 1px solid #e7ebf2;
}

.opc-phase-one-news-list a,
.opc-phase-one-resource-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 17px 0;
  color: #263555;
  text-decoration: none;
}

.opc-phase-one-news-list a:hover strong,
.opc-phase-one-news-list a:focus-visible strong,
.opc-phase-one-resource-list a:hover strong,
.opc-phase-one-resource-list a:focus-visible strong {
  color: #0052d9;
}

.opc-phase-one-news-list em {
  min-width: 62px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #0052d9;
  background: #edf4ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.opc-phase-one-news-list strong,
.opc-phase-one-resource-list strong {
  display: block;
  color: #263555;
  font-size: 14px;
  line-height: 1.52;
  transition: color 160ms ease;
}

.opc-phase-one-news-list time,
.opc-phase-one-resource-list small {
  display: block;
  margin-top: 5px;
  color: #8a96aa;
  font-size: 12px;
}

.opc-phase-one-panel__footer {
  padding: 15px 24px 20px;
  border-top: 1px solid #e7ebf2;
  color: #8a96aa;
  font-size: 12px;
  line-height: 1.6;
}

.opc-phase-one-experts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.opc-phase-one-expert {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 292px;
  padding: 18px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(33, 50, 84, 0.04);
}

.opc-phase-one-expert__identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.opc-phase-one-expert__identity img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.opc-phase-one-expert__identity h4 {
  overflow: hidden;
  margin: 0 0 5px;
  color: #243250;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-phase-one-expert__identity p {
  margin: 0;
  color: #0052d9;
  font-size: 12px;
  line-height: 1.45;
}

.opc-phase-one-expert__intro {
  display: -webkit-box;
  overflow: hidden;
  margin: 15px 0 12px;
  color: #68758e;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.opc-phase-one-expert__topic {
  margin: 0 0 14px;
  padding: 10px 11px;
  border-radius: 7px;
  color: #50607d;
  background: #f2f5fa;
  font-size: 12px;
  line-height: 1.5;
}

.opc-phase-one-expert__topic strong {
  margin-right: 5px;
  color: #0052d9;
}

.opc-phase-one-expert footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e7ebf2;
}

.opc-phase-one-expert footer span {
  color: #8a96aa;
  font-size: 11px;
}

.opc-phase-one-resource-stack.tcwf-related-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.opc-phase-one-resource-card.tcwf-related-product {
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  background: #fff;
}

.opc-phase-one-resource-card .tcwf-related-product__heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 19px 21px 16px;
  border-bottom: 1px solid #e7ebf2;
}

.opc-phase-one-resource-card .tcwf-related-product__heading img {
  width: 28px;
  height: 28px;
}

.opc-phase-one-resource-card h3 {
  margin: 0 0 3px;
  color: #1f2d4d;
  font-size: 18px;
}

.opc-phase-one-resource-card .tcwf-related-product__heading p {
  margin: 0;
  color: #8793aa;
  font-size: 12px;
}

.opc-phase-one-resource-list {
  padding: 0 21px;
}

.opc-phase-one-resource-list a {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.opc-phase-one-resource-list img {
  width: 16px;
  height: 16px;
}

.opc-phase-one-resource-note {
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px solid #dce6f6;
  border-radius: 10px;
  color: #5f6f89;
  background: #f5f8fd;
  font-size: 12px;
  line-height: 1.65;
}

.opc-phase-one-resource-note strong {
  color: #2f456d;
}

@media (max-width: 1080px) {
  .opc-phase-one-layout {
    grid-template-columns: 1fr;
  }

  .opc-phase-one-resource-stack.tcwf-related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .opc-phase-one-section > .tcwf-section__inner {
    padding: 30px 18px 36px !important;
  }

  .opc-phase-one-section .tcwf-section__header,
  .opc-page.opc-mobile-ready[data-mobile-view="home"] #communities > .tcwf-section__inner > .tcwf-section__header,
  .opc-page.opc-mobile-ready[data-mobile-view="resources"] #resources > .tcwf-section__inner > .tcwf-section__header,
  .opc-page.opc-mobile-ready[data-mobile-view="learning"] #resources > .tcwf-section__inner > .tcwf-section__header {
    display: flex !important;
    margin-bottom: 22px !important;
  }

  .opc-phase-one-section .tcwf-section__title {
    font-size: 30px !important;
  }

  .opc-phase-one-section .tcwf-section__description {
    font-size: 15px !important;
  }

  .opc-page.opc-mobile-ready[data-mobile-view="news"] #communities {
    display: block !important;
  }

  .opc-page.opc-mobile-ready[data-mobile-view="news"] #communities .tcwf-section__header,
  .opc-page.opc-mobile-ready[data-mobile-view="news"] #communities .opc-phase-one-parks-column {
    display: none !important;
  }

  .opc-page.opc-mobile-ready[data-mobile-view="news"] #news {
    display: block !important;
  }

  .opc-phase-one-link-button,
  .opc-phase-one-compact-park .opc-phase-one-link-button {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .opc-phase-one-parks,
  .opc-phase-one-experts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opc-phase-one-compact-parks {
    grid-template-columns: 1fr;
  }

  .opc-phase-one-compact-park {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .opc-phase-one-compact-park img {
    width: 84px;
    height: 68px;
  }
}

@media (max-width: 600px) {
  .opc-phase-one-section > .tcwf-section__inner {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .opc-phase-one-section .tcwf-section__header {
    align-items: flex-start;
  }

  .opc-phase-one-badge {
    display: none;
  }

  .opc-phase-one-parks,
  .opc-phase-one-experts,
  .opc-phase-one-resource-stack.tcwf-related-products {
    grid-template-columns: 1fr;
  }

  .opc-phase-one-park .tcwf-case-card__image {
    height: 176px;
  }

  .opc-phase-one-park .tcwf-case-card__body {
    min-height: auto;
  }

  .opc-phase-one-park .tcwf-case-card__title {
    min-height: 0;
  }

  .opc-phase-one-expert {
    min-height: 0;
  }

  .opc-phase-one-news-list,
  .opc-phase-one-resource-list {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opc-phase-one-park.tcwf-case-card {
    transition: none;
  }
}
