.article-main {
  color: #555;
}

.article-breadcrumb {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Article lists should size to their content instead of reserving the desktop home canvas. */
.portal-policy-page .portal-main,
.portal-policy-page .portal-content,
.portal-policy-page .article-index {
  min-height: 0;
}

.portal-policy-page .portal-content>.article-friend-section {
  position: static;
  height: 103px;
  margin-top: 28px;
}

.article-layout {
  gap: 26px;
}

/* Article index */
.article-index {
  min-width: 0;
  min-height: 1537px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}

.article-index__list {
  padding: 8px 10px 0 33px;
}

.article-index__item {
  position: relative;
  min-height: 46.5px;
}

.article-index__item::before {
  position: absolute;
  top: 50%;
  left: -17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-green, #18b77f);
  content: "";
  transform: translateY(-50%);
}

.article-index__row {
  display: grid;
  min-width: 0;
  min-height: 46.5px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.article-index__row h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-index__row h2 a {
  color: #4c4c4c;
}

.article-index__row h2 a:hover,
.article-index__row h2 a:focus-visible {
  color: var(--portal-green-dark, #0e9f6c);
}

.article-index__row time {
  color: #a8aeab;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

/* Shared article rail */
.portal-rail>.article-hot {
  padding-top: 38px;
  background: transparent;
}

.article-rail-heading {
  height: 25px;
  padding: 0;
  border: 0;
}

.article-rail-heading h2 {
  padding-left: 20px;
  color: #3f3f3f;
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
}

.article-rail-heading h2::before {
  width: 6px;
  height: 25px;
}

.article-hot__list {
  height: 204px;
  margin-top: 18px;
  padding: 0 10px;
  overflow: hidden;
  background: #fff;
}

.article-hot__list li {
  height: 51px;
  overflow: hidden;
  color: #5c5c5c;
  font-size: 17px;
  line-height: 51px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-hot__list a {
  color: inherit;
}

.article-hot__list a:hover,
.article-hot__list a:focus-visible {
  color: var(--portal-green-dark, #0e9f6c);
}

.article-topic-ads {
  margin-top: 0;
}

.article-topic-ads a,
.article-topic-ads img {
  border-radius: 6px;
}

.article-topic-ads a {
  transition: filter var(--transition), box-shadow var(--transition);
}

.article-topic-ads a:hover,
.article-topic-ads a:focus-visible {
  filter: brightness(1.03);
  box-shadow: 0 4px 14px rgb(130 63 22 / 18%);
}

/* Article detail */
.article-detail {
  min-width: 0;
  min-height: 1333px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}

.article-detail__header {
  padding: 40px 12px 28px;
  border-bottom: 1px solid #ededed;
  text-align: center;
}

.article-detail__header h1 {
  margin: 0;
  color: #343434;
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
}

.article-detail__meta {
  display: flex;
  margin: 10px 0 0;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #a6aaa8;
  font-size: 13px;
  line-height: 20px;
}

.article-detail__body {
  padding: 36px 20px 0;
  color: #4b4b4b;
  font-size: 14px;
  line-height: 30px;
}

.article-detail__body section {
  margin: 0;
}

.article-detail__body h2 {
  margin: 0 0 8px;
  color: #414141;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.article-detail__body p {
  margin: 0;
  text-indent: 2em;
}

/* Previous / next article navigation */
.article-detail__siblings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 20px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border, #e4e8e6);
}

.article-detail__sibling {
  display: flex;
  min-width: 0;
  min-height: 108px;
  padding: 16px 18px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--color-border, #e4e8e6);
  border-radius: var(--radius-md, 4px);
  background: #fff;
  color: #414141;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.article-detail__sibling-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #686e6a;
  font-size: 13px;
  line-height: 20px;
}

.article-detail__sibling-label::before,
.article-detail__sibling--next .article-detail__sibling-label::after {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.article-detail__sibling--next .article-detail__sibling-label {
  justify-content: flex-end;
}

.article-detail__sibling--next .article-detail__sibling-label::before {
  content: none;
}

.article-detail__sibling--next .article-detail__sibling-label::after {
  transform: rotate(225deg);
}

.article-detail__sibling--next {
  text-align: right;
}

.article-detail__sibling-title {
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

a.article-detail__sibling:hover,
a.article-detail__sibling:focus-visible {
  border-color: var(--color-primary, #1cb278);
  background: var(--color-primary-soft, #e8f7f1);
  color: #08734f;
}

a.article-detail__sibling:hover .article-detail__sibling-label,
a.article-detail__sibling:focus-visible .article-detail__sibling-label {
  color: #08734f;
}

a.article-detail__sibling:focus-visible {
  outline: 2px solid #08734f;
  outline-offset: 3px;
}

.article-detail__sibling.is-disabled {
  background: #f7f8f7;
  color: #737974;
  cursor: default;
}

@media (max-width: 768px) {
  .article-detail__siblings {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0 18px 24px;
    padding-top: 20px;
  }

  .article-detail__sibling {
    min-height: 92px;
    padding: 14px 16px;
    gap: 6px;
  }

  .article-detail__sibling-title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-detail__sibling {
    transition: none;
  }
}

/* Related articles */
.article-related {
  width: 831px;
  min-height: 215px;
  margin-top: 29px;
}

.article-related__heading {
  position: relative;
  display: flex;
  height: 51px;
  align-items: flex-start;
  border-bottom: 1px solid #e8e8e8;
}

.article-related__heading::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 101px;
  height: 4px;
  background: var(--portal-green, #18b77f);
  content: "";
}

.article-related__heading h2 {
  margin: 0;
  color: #3c3c3c;
  font-size: 24px;
  font-weight: 600;
  line-height: 31px;
}

.article-related__list {
  margin-top: 23px;
}

.article-related__list li {
  display: grid;
  min-height: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: #555;
  font-size: 15px;
  line-height: 28px;
}

.article-related__list a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-related__list time {
  color: #a8aeab;
  white-space: nowrap;
}

.article-related__list a:hover,
.article-related__list a:focus-visible {
  color: var(--portal-green-dark, #0e9f6c);
}

@media (max-width: 1024px) {

  .article-index,
  .article-detail {
    min-height: 0;
  }

  .portal-rail>.article-hot {
    padding-top: 0;
    background: #fff;
  }

  .article-rail-heading {
    height: 49px;
    padding: 0 20px;
    border-bottom: 1px solid var(--portal-line, #e7e7e7);
  }

  .article-rail-heading h2 {
    padding-left: 14px;
    font-weight: 400;
    line-height: 49px;
  }

  .article-rail-heading h2::before {
    width: 5px;
    height: 19px;
  }

  .article-hot__list {
    height: auto;
    margin-top: 0;
    padding: 8px 20px 14px;
  }

  .article-related {
    width: 100%;
    min-height: 0;
    margin-top: 28px;
    padding-bottom: 18px;
  }
}

@media (max-width: 768px) {
  .article-index__list {
    padding: 8px 14px 8px 31px;
  }

  .article-index__item {
    min-height: 0;
    border-bottom: 1px solid #ededed;
  }

  .article-index__row {
    min-height: 64px;
    padding: 10px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    align-content: center;
  }

  .article-index__row h2 {
    overflow: visible;
    font-size: 15px;
    line-height: 1.65;
    text-overflow: clip;
    white-space: normal;
  }

  .article-index__row time {
    font-size: 12px;
  }

  .article-detail__header {
    padding: 28px 16px 22px;
  }

  .article-detail__header h1 {
    font-size: 24px;
    line-height: 1.5;
  }

  .article-detail__meta {
    align-items: center;
    flex-direction: column;
    gap: 2px;
  }

  .article-detail__body {
    padding: 26px 18px 32px;
    font-size: 16px;
    line-height: 1.9;
  }

  .article-detail__body h2 {
    font-size: 16px;
    line-height: 1.8;
  }

  .article-related__heading {
    height: 48px;
  }

  .article-related__heading h2 {
    font-size: 21px;
    line-height: 30px;
  }

  .article-related__list {
    margin-top: 14px;
  }

  .article-related__list li {
    min-height: 56px;
    padding: 8px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-bottom: 1px solid #ededed;
    font-size: 14px;
    line-height: 1.7;
  }

  .article-related__list a {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .article-related__list time {
    font-size: 12px;
  }
}

/* Legacy school article templates keep their existing presentation. */
.article-list-panel {
  padding: 0 24px 24px;
}

.article-list-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.article-list-item__image {
  width: 180px;
  height: 118px;
  object-fit: cover;
  background: #dcece6;
}

.article-list-item h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.article-list-item p {
  color: var(--color-muted);
}

.article-list-item time {
  color: #9ba19e;
  font-size: 12px;
}

.article-sidebar {
  padding: 16px;
}

.article-page {
  padding: 28px 42px 50px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.article-page__header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.article-page__header h1 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.45;
}

.article-page__meta {
  color: #929894;
}

.article-page__body {
  max-width: 820px;
  margin: 30px auto 0;
  font-size: 16px;
  line-height: 2;
}

.article-page__body h2 {
  margin: 28px 0 14px;
  font-size: 21px;
}

.article-page__body p {
  margin-bottom: 18px;
}

.article-page__body img {
  width: 100%;
  max-height: 380px;
  margin: 22px 0;
  object-fit: cover;
}