/*
 * NOWON Radio - Single blog post.
 *
 * TABLE OF CONTENTS
 *  1. Shared bits: avatar, tags, share buttons, reading bar
 *  2. Post header
 *  3. Columns and side panels
 *  4. The story
 *  5. Related stories
 *  6. Comments
 *  7. Comment form
 *  8. Media queries
 */

/* ==========================================================================
   1. Shared bits: avatar, tags, share buttons, reading bar
   ========================================================================== */
.avatar--52 {
  width: 52px;
  height: 52px;
}

.avatar--56 {
  width: 56px;
  height: 56px;
}

.avatar--60 {
  width: 60px;
  height: 60px;
}

.avatar--88 {
  width: 88px;
  height: 88px;
}

.hash-tags {
  display: flex;
  flex-wrap: wrap;
}

.hash-tags--side {
  gap: 6px;
  margin-top: 12px;
}

.hash-tags--end {
  gap: 8px;
  margin-top: 40px;
}

.hash-tag {
  display: flex;
  align-items: center;
  border: 1px solid rgba(245, 237, 216, .2);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease;
}

.hash-tag:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.hash-tag--sm {
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.hash-tag--md {
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  letter-spacing: .08em;
}

.share-button {
  border: 1.5px solid rgba(245, 237, 216, .25);
  font-weight: 700;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.share-button.is-on {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink-dark);
}

.share-button--pill {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.share-button--square {
  height: 40px;
  border-radius: 10px;
  font-size: 10px;
  letter-spacing: .1em;
}

/* Sticky reading bar across the full page width. */
.read-progress {
  position: sticky;
  top: var(--read-top, var(--topbar-height));
  z-index: 20;
  height: 3px;
  margin: -24px calc(-1 * var(--gutter)) 0;
  background: var(--line-soft);
}

.read-progress__fill,
.time-left__fill {
  display: block;
  width: var(--read, 0%);
  height: 100%;
  background: var(--acc);
}

.post-caption {
  margin-top: 12px;
  color: var(--ink-60);
  font-size: 13px;
}

/* ==========================================================================
   2. Post header
   ========================================================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.post-meta__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.post-meta__name {
  display: block;
  font-weight: 800;
  font-size: 16px;
}

.post-meta__role {
  display: block;
  margin-top: 2px;
  color: var(--ink-60);
  font-size: 13px;
}

.post-meta__cat {
  margin-left: 14px;
}

.post-meta__read {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(245, 237, 216, .25);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11px;
}

.post-meta__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-hero {
  margin-top: 30px;
}

.post-hero__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  object-fit: cover;
}

/* ==========================================================================
   3. Columns and side panels
   ========================================================================== */
.section + .post-body {
  margin-top: 60px;
  padding-top: 0;
  border-top: 0;
}

.post-columns {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}

.post-aside {
  position: sticky;
  top: 140px;
}

.post-aside--right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-toc {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border-left: 2px solid var(--line);
}

.story-toc__link {
  display: block;
  margin-left: -2px;
  padding: 9px 0 9px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-60);
  font-weight: 500;
  font-size: 14px;
  transition: all .25s ease;
}

.story-toc__link:hover {
  color: var(--ink);
}

.story-toc__link.is-on {
  border-left-color: var(--acc);
  color: var(--acc);
  font-weight: 800;
}

.time-left {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.time-left__bar {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.time-left__text {
  color: rgba(245, 237, 216, .7);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.side-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
}

.post-aside--right .side-panel {
  margin-top: 0;
}

.side-panel--first {
  margin-top: 28px;
}

.side-panel--solid {
  background: var(--surface-2);
}

.side-panel--line {
  border: 1px solid rgba(245, 237, 216, .1);
}

.side-panel--dashed {
  border: 1px dashed color-mix(in srgb, var(--acc) 40%, transparent);
}

.side-panel--accent {
  background: var(--acc);
  color: var(--ink-dark);
}

.side-panel__label {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.side-panel--accent .side-panel__label {
  color: inherit;
  font-weight: 700;
}

.side-panel__label--accent {
  color: var(--acc);
}

.side-panel__person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-panel__person--gap {
  margin-top: 12px;
}

.side-panel__mini {
  display: block;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
}

.side-panel__person-name {
  display: block;
  font-size: 16px;
}

.side-panel__small {
  color: var(--ink-60);
  font-size: 12px;
}

.side-panel__small--on-air {
  margin-top: 4px;
  color: rgba(245, 237, 216, .65);
  font-size: 13px;
}

.side-panel__text {
  margin-top: 12px;
  color: rgba(245, 237, 216, .7);
  font-size: 13px;
  line-height: 1.5;
}

.side-panel__button {
  width: 100%;
  height: 40px;
  margin-top: 14px;
  border: 1.5px solid rgba(245, 237, 216, .25);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  transition: all .25s ease;
}

.side-panel__button:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.side-panel__button[aria-pressed="true"] {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink-dark);
}

.side-panel__link {
  display: block;
  margin-top: 12px;
  color: var(--acc);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
}

.side-panel__heading {
  margin-top: 6px;
  font-weight: 900;
  font-size: 17px;
}

.side-panel__heading--lg {
  font-size: 20px;
}

.side-panel__heading--tight {
  font-size: 20px;
  line-height: 1.15;
}

.side-panel__cta {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
}

.side-panel__cta--ink {
  background: var(--ink-dark);
  color: var(--acc);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.post-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
  border-top: 1px solid rgba(245, 237, 216, .1);
  border-bottom: 1px solid rgba(245, 237, 216, .1);
}

.post-figures__cell {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 14px 0;
}

.post-figures__cell + .post-figures__cell {
  padding-left: 14px;
  border-left: 1px solid rgba(245, 237, 216, .1);
}

.post-figures dt {
  color: var(--ink-60);
  font-size: 9px;
  letter-spacing: .2em;
}

.post-figures dd {
  margin: 0;
  font-weight: 900;
  font-size: 22px;
}

.guest-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
}

.guest-stats__cell {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
}

.guest-stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}

.series-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.series-row__dot {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.series-row__text,
.record-row__text {
  display: block;
  min-width: 0;
}

.series-row__name,
.record-row__title,
.popular-row__title {
  display: block;
  font-size: 13px;
}

.series-row__date,
.popular-row__read {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
}

.record-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.record-row__cover {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.record-row__artist {
  color: var(--ink-60);
  font-size: 11px;
}

.popular-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.popular-row__num {
  font-size: 22px;
  line-height: normal;
  letter-spacing: 0;
  -webkit-text-stroke-width: 1.2px;
}

.popular-row__title {
  line-height: 1.35;
  transition: color .2s ease;
}

.popular-row:hover .popular-row__title {
  color: var(--acc);
}

/* ==========================================================================
   4. The story
   ========================================================================== */
.story {
  width: 100%;
  min-width: 0;
}

.story-lead {
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.55;
}

.story-text {
  margin-bottom: 24px;
  color: rgba(245, 237, 216, .86);
  font-size: 20px;
  line-height: 1.8;
}

.story-text--drop::first-letter {
  float: left;
  margin: 8px 14px 0 0;
  color: var(--acc);
  font-weight: 900;
  font-size: 84px;
  line-height: .78;
}

.story-question {
  margin: 34px 0 14px;
  color: var(--acc);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.3;
  scroll-margin-top: 140px;
}

.story-quote {
  margin: 44px 0;
  padding: 30px 0 30px 34px;
  border-left: 4px solid var(--acc);
}

.story-quote__text {
  font-weight: 900;
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.story-quote__who {
  margin-top: 14px;
  color: var(--ink-60);
  font-size: 13px;
  letter-spacing: .2em;
}

.story-figure {
  margin: 40px 0;
}

.story-figure__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
}

.story-figure .post-caption {
  margin-top: 10px;
}

.story-listen {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  border-radius: 18px;
  background: var(--surface-2);
}

.story-listen__cover {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 10px;
}

.story-listen__info {
  flex: 1;
  min-width: 0;
}

.story-listen__label {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.story-listen__title {
  margin-top: 4px;
  font-weight: 700;
  font-size: 17px;
}

.story-listen__bar {
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--line);
}

.story-listen__fill {
  display: block;
  width: var(--listen, 0%);
  height: 100%;
  border-radius: 2px;
  background: var(--acc);
}

.story-listen__play {
  font-size: 15px;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-actions__ask {
  color: rgba(245, 237, 216, .65);
  font-size: 13px;
}

.story-action {
  height: 52px;
  padding: 0 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: all .25s cubic-bezier(.3, 1.8, .5, 1);
}

.story-action--like[aria-pressed="true"] {
  border-color: var(--live);
  background: var(--live);
  color: var(--surface-inset);
  transform: scale(1.06);
}

.story-action--save[aria-pressed="true"] {
  background: var(--acc);
  color: var(--ink-dark);
}

.author-card {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface-2);
}

.author-card__name {
  margin-top: 4px;
  font-weight: 900;
  font-size: 22px;
}

.author-card__text {
  margin-top: 8px;
  color: rgba(245, 237, 216, .75);
  font-size: 14px;
  line-height: 1.6;
}

.author-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}

.author-card__link {
  color: var(--acc);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
}

/* ==========================================================================
   5. Related stories
   ========================================================================== */
.post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.post-head__title {
  margin-top: 20px;
  font-weight: 900;
  font-size: clamp(36px, 3.6vw, 64px);
  line-height: .95;
  letter-spacing: -.04em;
}

.post-head__link {
  color: var(--acc);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .15em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.related-card {
  position: relative;
}

.related-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
}

.related-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__image {
  position: absolute;
  inset: 0;
  transition: transform .6s ease;
}

.related-card:hover .related-card__image {
  transform: scale(1.06);
}

.related-card__cat {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .15em;
}

.related-card__meta {
  margin-top: 14px;
  color: rgba(245, 237, 216, .65);
  font-family: var(--mono);
  font-size: 11px;
}

.related-card__title {
  margin-top: 6px;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  transition: color .25s ease;
}

.related-card:hover .related-card__title {
  color: var(--acc);
}

/* ==========================================================================
   6. Comments
   ========================================================================== */
.comments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}

.comments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.comments-sort {
  display: flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.comments-sort__item {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  transition: background .25s ease, color .25s ease;
}

.comments-sort__item[aria-pressed="true"] {
  background: var(--acc);
  color: var(--ink-dark);
}

.comments {
  margin-top: 30px;
}

.comment {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(245, 237, 216, .1);
}

.comment--reply {
  padding-left: 68px;
}

.comment__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--ink-dark);
  font-weight: 900;
  font-size: 18px;
}

.comment__avatar--1 {
  background: #f9c22e;
}

.comment__avatar--2 {
  background: #8fe3b6;
}

.comment__avatar--3 {
  background: #b8a4ff;
}

.comment__avatar--4 {
  background: #efe7d3;
}

.comment__body {
  min-width: 0;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.comment__name {
  font-size: 16px;
}

.comment__staff {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .15em;
}

.comment__age {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
}

.comment__text {
  margin-top: 8px;
  color: rgba(245, 237, 216, .88);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.comment__actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

/* 24px tap target; the negative margin keeps the row at the design's 18px. */
.comment__like,
.comment__reply {
  min-height: 24px;
  margin: -3px 0;
  font-weight: 700;
  font-size: 12px;
}

.comment__like::before {
  content: "\2665\00a0";
}

.comment__like[aria-pressed="true"]::before {
  color: var(--live-text);
}

.comment__reply {
  color: rgba(245, 237, 216, .7);
  letter-spacing: .08em;
}

.comment__reply:hover {
  color: var(--acc);
}

/* ==========================================================================
   7. Comment form
   ========================================================================== */
.comment-form {
  position: sticky;
  top: 140px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  border-radius: 22px;
  background: var(--surface-2);
}

.comment-form__title {
  color: var(--acc);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
}

.comment-form__replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
}

.comment-form__replying[hidden] {
  display: none;
}

.comment-form__cancel {
  width: 24px;
  height: 24px;
  color: var(--ink-75);
  font-size: 18px;
  line-height: 1;
}

.comment-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.comment-form__input {
  height: 52px;
  font-size: 15px;
}

.comment-form__text {
  margin-top: 10px;
}

.comment-form__status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
}

.comment-form__send {
  height: 56px;
  margin-top: 16px;
  font-weight: 900;
  letter-spacing: .12em;
}

.comment-form__note {
  margin-top: 14px;
  color: var(--ink-60);
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   8. Media queries (widest first)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .post-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-aside {
    display: none;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comments-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .comment-form {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .post-meta__cat {
    margin-left: 0;
  }

  .post-meta__read,
  .share-button--pill,
  .comment__age,
  .comment-form__title,
  .comment-form__status,
  .related-card__cat,
  .related-card__meta,
  .story-listen__label,
  .comment__staff {
    font-size: 12px;
  }

  .post-meta__role,
  .post-caption {
    font-size: 13px;
  }

  .post-hero__image {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .post-meta__share {
    width: 100%;
  }

  .share-button--pill {
    flex: 1 1 auto;
    padding: 0 12px;
    letter-spacing: .06em;
  }

  .story-lead {
    font-size: 20px;
  }

  .story-text {
    font-size: 17px;
    line-height: 1.7;
  }

  .story-text--drop::first-letter {
    font-size: 66px;
  }

  .story-question {
    font-size: 21px;
  }

  .story-quote {
    margin: 32px 0;
    padding: 16px 0 16px 20px;
  }

  .story-listen {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }

  .story-listen__cover {
    width: 56px;
    height: 56px;
  }

  .story-listen__info {
    order: 3;
    flex-basis: 100%;
  }

  .story-listen__play {
    margin-left: auto;
  }

  .story-actions {
    justify-content: flex-start;
  }

  .story-actions__ask {
    order: 3;
    flex-basis: 100%;
  }

  .author-card {
    flex-direction: column;
    padding: 20px;
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .comment {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .comment__avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .comment--reply {
    padding-left: 24px;
  }

  .comment-form {
    padding: 20px;
  }

  .comment-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .comment-form__input {
    font-size: 16px;
  }

  .comment-form__send {
    letter-spacing: .06em;
  }
}

@media (max-width: 379.98px) {
  .post-head__title {
    font-size: 32px;
  }

  .comments-sort {
    width: 100%;
  }

  .comments-sort__item {
    flex: 1;
  }

  .story-action {
    padding: 0 16px;
  }
}
