.top-link.is-current {
  color: #ffcf74;
}

[hidden] {
  display: none !important;
}

.hero--reference .hero__content {
  justify-content: flex-end;
}

.hero--compact,
.hero--compact .hero__content {
  min-height: 210px;
}

.hero--compact .hero__content {
  align-items: flex-end;
  padding-bottom: 30px;
}

.hero--reference .hero__dots {
  bottom: 18px;
  right: 16px;
}

.portal-subpage {
  background: #ffffff;
  padding: 54px 0 70px;
}

.portal-subpage__inner {
  width: min(1060px, calc(100vw - 40px));
  margin: 0 auto;
}

.portal-section-title {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111111;
}

.portal-table {
  border-top: 1px solid #ededed;
}

.portal-table__head,
.portal-table__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 142px;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
}

.portal-table__head {
  min-height: 54px;
  background: #f2f2f2;
  color: #151515;
  font-size: 14px;
  font-weight: 700;
}

.portal-table__row {
  min-height: 64px;
  border-bottom: 1px solid #ededed;
}

.portal-table__row.is-selected {
  background: #fffaf1;
}

.portal-table__index,
.portal-table__date {
  color: #171717;
  font-size: 14px;
}

.portal-table__date {
  text-align: right;
  white-space: nowrap;
}

.portal-table__title {
  padding: 0;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.portal-table__title:hover,
.portal-table__title:focus-visible {
  color: #f39e1d;
  outline: none;
}

.portal-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.portal-page-nav,
.portal-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #dddddd;
  border-radius: 9px;
  background: #ffffff;
  color: #666666;
  font-size: 14px;
  cursor: pointer;
}

.portal-page-nav {
  border-color: transparent;
  background: transparent;
}

.portal-page-button.is-current {
  color: #111111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.portal-page-nav:hover,
.portal-page-nav:focus-visible,
.portal-page-button:hover,
.portal-page-button:focus-visible {
  color: #111111;
  border-color: #f1b35f;
  outline: none;
}

.portal-page-nav:disabled,
.portal-page-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.portal-detail {
  margin-top: 24px;
  padding: 28px 30px 34px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fafafa;
}

.portal-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8c8c8c;
  font-size: 13px;
}

.portal-detail h3 {
  margin: 14px 0 16px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111111;
}

.portal-detail__content {
  color: #464646;
  font-size: 15px;
  line-height: 2;
  white-space: pre-wrap;
}

.portal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.portal-write-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcb69 0%, #ff8d24 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.portal-community-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 24px;
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid #ececec;
}

.portal-community-form input,
.portal-community-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #ffffff;
  font: inherit;
}

.portal-community-form textarea {
  min-height: 180px;
  resize: vertical;
}

.portal-community-form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.portal-community-status {
  color: #6d6d6d;
  font-size: 13px;
}

.portal-ranking {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.portal-ranking__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #222222;
}

.portal-ranking__title span {
  color: #f4a123;
}

.portal-ranking__subtitle {
  margin-top: 6px;
  color: #b2b2b2;
  font-size: 12px;
  letter-spacing: 0.24em;
}

.portal-ranking__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px auto 18px;
}

.portal-ranking__tab {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #dcdde2;
  color: #414141;
  font-size: 16px;
  cursor: pointer;
}

.portal-ranking__tab.is-current {
  background: linear-gradient(180deg, #ffb129 0%, #ff990d 100%);
  color: #ffffff;
}

.portal-ranking__table {
  margin-top: 18px;
  border-top: 1px solid #e4e4e4;
}

.portal-ranking__head,
.portal-ranking__row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 116px 116px;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 18px;
}

.portal-ranking__head {
  border-radius: 20px;
  background: #4b4b4b;
  color: #ffffff;
  font-size: 14px;
}

.portal-ranking__row {
  border-bottom: 1px solid #ededed;
  font-size: 14px;
  color: #2d2d2d;
}

.portal-ranking__empty {
  padding: 58px 0 12px;
  color: #777777;
  font-size: 15px;
}

.portal-auth {
  width: 100%;
  min-height: 640px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.portal-auth__card {
  width: min(340px, 100%);
  margin-top: 72px;
  text-align: center;
}

.portal-auth__heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 auto 24px;
}

.portal-auth__brand-logo {
  display: block;
  width: min(100%, 184px);
  height: auto;
}

.portal-auth__heading-copy strong,
.portal-auth__heading-copy span {
  display: block;
}

.portal-auth__heading-copy strong {
  color: #242424;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.portal-auth__heading-copy span {
  margin-top: 6px;
  color: #b882d4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.portal-auth__fields {
  display: grid;
  gap: 12px;
}

.portal-auth__fields input,
.portal-auth__fields select {
  width: 100%;
  height: 37px;
  padding: 0 16px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: linear-gradient(180deg, #f2f2f2 0%, #ececec 100%);
  color: #515151;
  font: inherit;
}

.portal-auth__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
}

.portal-auth__check {
  border: 0;
  border-radius: 14px;
  background: #9d9d9d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.portal-auth__guide {
  margin: 26px 0 18px;
  color: #8f8f8f;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.portal-auth__guide strong {
  display: block;
  margin-bottom: 10px;
  color: #5e5e5e;
  font-size: 13px;
}

.portal-auth__separator {
  height: 1px;
  margin-bottom: 22px;
  background: #e7e7e7;
}

.portal-auth__submit {
  display: inline-block;
}

.portal-auth__submit img {
  width: 100%;
  height: auto;
}

.portal-auth__links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.portal-auth__link {
  display: inline-block;
}

.portal-auth__link img {
  height: 38px;
  width: auto;
}

.portal-auth__status {
  margin-top: 12px;
  color: #8c8c8c;
  font-size: 12px;
}

.portal-auth__submit-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.portal-info {
  display: grid;
  gap: 18px;
}

.portal-info__lead {
  margin: -8px 0 10px;
  color: #6f6f6f;
  font-size: 15px;
  line-height: 1.8;
}

.portal-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-info__card {
  padding: 24px 24px 26px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fafafa;
}

.portal-info__card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #191919;
}

.portal-info__card p,
.portal-info__card li {
  color: #5f5f5f;
  font-size: 14px;
  line-height: 1.9;
}

.portal-info__card ul,
.portal-info__card ol {
  margin: 0;
  padding-left: 18px;
}

.portal-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.portal-info__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcb69 0%, #ff8d24 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .portal-subpage {
    padding: 46px 0 58px;
  }

  .portal-subpage__inner {
    width: calc(100vw - 24px);
  }
}

@media (max-width: 720px) {
  .portal-table__head,
  .portal-table__row {
    grid-template-columns: 56px minmax(0, 1fr) 96px;
    gap: 12px;
    padding: 0 14px;
  }

  .portal-table__title,
  .portal-table__index,
  .portal-table__date,
  .portal-table__head {
    font-size: 13px;
  }

  .portal-ranking__tabs {
    grid-template-columns: 1fr;
  }

  .portal-info__grid {
    grid-template-columns: 1fr;
  }

  .portal-ranking__head,
  .portal-ranking__row {
    grid-template-columns: 58px minmax(0, 1fr) 76px 76px;
    gap: 10px;
    padding: 0 10px;
    font-size: 12px;
  }

  .portal-auth__card {
    width: min(340px, calc(100vw - 32px));
    margin-top: 48px;
  }
}
