.journal {
  max-width: 960px;
  margin: auto;
}
.head-actions,
.social-actions,
.pilot-id,
.post-byline,
.topic-row,
.author-link,
.gear-link {
  display: flex;
  align-items: center;
  gap: 9px;
}
.head-actions {
  gap: 5px;
}
.social-tabs {
  justify-content: space-between;
  gap: 13px;
  margin: 2px 0 13px;
}
.journal-cover {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #163c3b;
  color: white;
  min-height: 190px;
  aspect-ratio: 1.95;
}
.journal-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #081810ba, transparent 82%);
}
.journal-cover > div {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 18px;
}
.journal-cover small {
  color: white;
  font-size: 12px;
  border-left: 2px solid #b5f2b5;
  padding-left: 6px;
}
.journal-cover h2 {
  font-size: 27px;
  margin: 6px 0 3px;
  font-weight: 650;
  letter-spacing: -0.06em;
}
.journal-cover span {
  font-size: 13px;
}
.topic-row {
  margin: 12px 0;
  flex-wrap: wrap;
  gap: 6px;
}
.topic-row a,
.topic-link {
  font-size: 13px;
  color: #3a5946;
  background: #eff4ed;
  padding: 6px 9px;
  border-radius: 20px;
}
.topic-row i {
  font-style: normal;
  color: #628569;
}
.work-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.work-row > img,
.work-row > i {
  width: 64px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}
.work-row > i {
  display: grid;
  place-items: center;
  background: #e9eee9;
  color: #3b5842;
}
.work-row span {
  flex: 1;
}
.work-row small,
.journal-copy small,
.post-byline > small {
  color: #666e69;
  font-size: 12px;
  line-height: 1.5;
}
.work-row b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
}
.journal-card {
  min-width: 0;
}
.journal-card > a {
  display: block;
}
.journal-card img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 8px;
}
.journal-copy {
  padding: 6px 1px 2px;
}
.journal-copy h3 {
  margin: 3px 0;
  font-weight: 650;
}
.journal-card footer,
.post-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.author-link {
  font-size: 12px;
  color: #5d6860;
  gap: 5px;
}
.author-link i,
.pilot-id > i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e1eade;
  color: #34513b;
  font-size: 12px;
}
.heart,
.social-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #647067;
  font-size: 13px;
  min-height: 32px;
}
.heart.active,
.social-actions button[aria-pressed="true"] {
  color: #2846a6;
}
.heart.active svg {
  fill: #e7ecff;
}
.journal-detail {
  max-width: 760px;
  margin: auto;
}
.post-byline {
  margin: 4px 0 14px;
}
.post-byline .author-link {
  font-size: 15px;
  color: var(--ink);
}
.post-byline i {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.post-cover {
  width: 100%;
  height: auto;
  max-height: 55svh;
  object-fit: contain;
  background: #eff1ed;
  border-radius: 9px;
  margin-bottom: 16px;
}
.topic-link {
  display: inline-flex;
  margin-top: 10px;
}
.gear-link {
  background: #eef2ef;
  border-radius: 8px;
  padding: 11px;
  font-size: 13px;
}
.gear-link b {
  margin-left: auto;
}
.social-actions {
  margin: 18px 0;
  gap: 22px;
}
.pilot-id {
  padding: 20px 0;
}
.pilot-id > i {
  width: 46px;
  height: 46px;
  font-size: 21px;
}
.pilot-id > button {
  margin-left: auto;
}
.pilot-id h1 {
  font-size: 24px;
}
.pilot-id small {
  font-size: 13px;
}
.work-panel:empty,
.journal-grid:empty {
  display: none;
}
@media (min-width: 760px) {
  .journal-cover {
    aspect-ratio: 3.4;
  }
  .journal-cover > div {
    left: 25px;
    bottom: 22px;
  }
  .journal-cover h2 {
    font-size: 34px;
  }
  .social-tabs {
    justify-content: flex-start;
    gap: 34px;
  }
  .journal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .work-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}
