.portal-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-links a {
  color: #092650;
  font-weight: 700;
}

.danger-form {
  margin-top: 8px;
}

.danger-form button {
  background: #a33a3a;
}

.status.active {
  background: #dff3e9;
  color: #1f7a55;
}

.status.reviewing {
  background: #e4ebfb;
  color: #2b4e91;
}

.status.processing {
  background: #e9e1f8;
  color: #66419a;
}

.status.closed {
  background: #eceff2;
  color: #56616d;
}

.admin-stats.five {
  grid-template-columns: repeat(5, 1fr);
}

.admin-stats.six {
  grid-template-columns: repeat(6, 1fr);
}

.status-history {
  margin-top: 12px;
}

.status-history summary {
  color: #092650;
  font-weight: 700;
  cursor: pointer;
}

.status-history ol {
  padding-left: 18px;
  line-height: 1.5;
}

.request-flow {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 22px 0 5px;
  list-style: none;
}

.request-flow li {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8893a0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.request-flow li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #dbe1e8;
  border-radius: 50%;
}

.request-flow li.complete {
  color: #1f7a55;
}

.request-flow li.complete span {
  color: white;
  border-color: #1f7a55;
  background: #1f7a55;
}

.request-flow li.rejected {
  color: #a33a3a;
}

.request-flow li.rejected span {
  color: white;
  border-color: #a33a3a;
  background: #a33a3a;
}

.tracker-comment {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 16px;
  background: #f7f3ea;
}

.tracker-comment p {
  margin-bottom: 0;
}

.portal-menu {
  position: relative;
}

.portal-menu > button {
  padding: 33px 0;
  color: #10243d;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.portal-menu:hover .portal-dropdown,
.portal-menu:focus-within .portal-dropdown {
  display: grid;
}

.portal-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% - 1px);
  width: 245px;
  padding: 10px;
  background: white;
  border: 1px solid #dbe1e8;
  box-shadow: 0 18px 45px rgba(7, 28, 59, .14);
}

.portal-dropdown a {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
}

.portal-dropdown a:hover {
  background: #f7f3ea;
}

.portal-dropdown small {
  color: #647287;
  font-weight: 400;
}

.tracker-float {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 4vw, 60px);
  top: 115px;
  width: min(330px, calc(100% - 36px));
  color: #10243d;
}

.tracker-float summary {
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
  background: white;
  box-shadow: 0 12px 30px rgba(3, 18, 43, .22);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.tracker-float summary::-webkit-details-marker {
  display: none;
}

.tracker-float form {
  display: grid;
  gap: 9px;
  padding: 18px;
  background: white;
  border-top: 1px solid #dbe1e8;
  box-shadow: 0 18px 30px rgba(3, 18, 43, .22);
}

.tracker-float label {
  font-size: 12px;
  font-weight: 700;
}

.tracker-float input {
  min-width: 0;
  padding: 11px;
  border: 1px solid #dbe1e8;
}

.tracker-float button {
  padding: 11px;
  color: white;
  border: 0;
  background: #092650;
  font-weight: 700;
  cursor: pointer;
}

.blog-section {
  background: #f7f3ea;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 32px;
  background: white;
}

.blog-card > img {
  width: calc(100% + 64px);
  height: 210px;
  margin: -32px -32px 26px;
  object-fit: cover;
}

.blog-card > .blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
  border: 0;
}

.blog-card .blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #dbe1e8;
}

.blog-card h3 {
  margin-top: 18px;
}

.blog-card p {
  flex: 1;
  color: #647287;
  line-height: 1.65;
}

.blog-card > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #dbe1e8;
}

.blog-card a {
  color: #092650;
  font-weight: 700;
}

.article-page {
  width: min(820px, calc(100% - 48px));
  margin: auto;
  padding: 90px 0;
}

.article-page h1 {
  margin: 22px 0;
}

.article-lead {
  color: #647287;
  font-size: 21px;
  line-height: 1.65;
}

.article-byline {
  padding: 20px 0;
  border-bottom: 1px solid #dbe1e8;
  font-weight: 700;
}

.article-content {
  padding-top: 25px;
  font-size: 18px;
  line-height: 1.9;
}

.article-image {
  width: 100%;
  max-height: 520px;
  margin: 25px 0;
  object-fit: cover;
}

.status.needs_information {
  background: #ffe4d5;
  color: #9a471b;
}

.information-action {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 22px;
  background: #fff3e8;
  border-left: 4px solid #d97630;
}

.information-action p {
  color: #647287;
}

.attachment-list {
  padding-left: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.form label small {
  color: #647287;
  font-weight: 400;
}

.back-link {
  display: inline-block;
  margin-bottom: 45px;
  color: #092650;
  font-weight: 700;
}

@media (max-width: 700px) {
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .portal-links {
    flex-wrap: wrap;
  }

  .portal-menu > button {
    width: 100%;
    padding: 11px 0;
    text-align: left;
  }

  .portal-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .tracker-float {
    top: 92px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats.five {
    grid-template-columns: repeat(5, minmax(95px, 1fr));
    overflow-x: auto;
  }

  .admin-stats.six {
    grid-template-columns: repeat(6, minmax(95px, 1fr));
    overflow-x: auto;
  }
}
