/* Marathon Records in Hero */
.marathon-records {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--brand-color);
}

.marathon-records__title {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-font-color);
}

.marathon-records__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marathon-record {
  display: grid;
  grid-template-columns: 60px 100px 1fr;
  gap: 15px;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
}

.marathon-record__distance {
  font-weight: 700;
  color: var(--brand-color);
  font-size: 16px;
}

.marathon-record__time {
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--heading-font-color);
  font-size: 16px;
}

.marathon-record__event {
  color: var(--text-color);
  opacity: 0.8;
  font-size: 14px;
}

/* Article Taxonomy (Categories + Tags) */
.article__taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.article__categories,
.article__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.article__tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article__tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.article__category {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.article__category:hover {
  background: var(--gradient-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Post Info (Categories + Tags in Single Post Page) */
.post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.post-categories,
.post-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.post-category {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.post-category:hover {
  background: var(--gradient-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.post-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

/* Heading Spacing */
.post h2, .page h2 {
  margin-top: 36px;
}

.post h2:first-child, .page h2:first-child {
  margin-top: 12px;
}

/* Nested List Fix */
.post ul, .post ol,
.page ul, .page ol {
  list-style-position: outside;
  padding-left: 24px;
}

.post ul ul, .post ol ul,
.post ul ol, .post ol ol,
.page ul ul, .page ol ul,
.page ul ol, .page ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 24px;
}

.post li, .page li {
  margin-bottom: 8px;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  .marathon-record {
    grid-template-columns: 50px 90px 1fr;
    gap: 10px;
    font-size: 14px;
  }

  .marathon-record__distance,
  .marathon-record__time {
    font-size: 14px;
  }

  .marathon-record__event {
    font-size: 12px;
  }

  .article__taxonomy {
    gap: 6px;
  }

  .article__category {
    font-size: 11px;
    padding: 3px 10px;
  }
}

/* Comments Spacing */
.post__comments {
  margin-top: 32px;
}

.post__comments-title {
  margin-bottom: 16px;
}

/* Bookmark and Scrap Collections */
.collection-page__head {
  margin-bottom: 32px;
}

.collection-page__title {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.2;
  color: var(--heading-font-color);
}

.collection-page__description,
.collection-page__empty {
  margin: 0;
  color: var(--text-color);
  opacity: 0.8;
}

.collection-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collection-card {
  display: grid;
  grid-template-columns: minmax(0, 196px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  background: var(--background-alt-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.collection-card--without-preview {
  grid-template-columns: 1fr;
}

.collection-card__preview {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 128px;
  overflow: hidden;
  color: var(--heading-font-color);
  text-decoration: none;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.collection-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

.collection-card__preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-card__preview-fallback,
.collection-source-preview__fallback {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.collection-card__preview-fallback span,
.collection-source-preview__fallback span {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-color);
  letter-spacing: 0;
}

.collection-card__preview-fallback strong,
.collection-source-preview__fallback strong {
  max-width: 100%;
  color: var(--heading-font-color);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.collection-preview__play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.collection-preview__play::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  content: "";
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

.collection-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.collection-card__meta,
.collection-single__kicker,
.collection-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.72;
}

.collection-card__meta span,
.collection-single__kicker span {
  color: var(--brand-color);
  font-weight: 700;
}

.collection-card__host,
.collection-single__host {
  color: var(--text-color) !important;
  font-weight: 500 !important;
  opacity: 0.86;
  overflow-wrap: anywhere;
}

.collection-card__title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.collection-card__title a,
.collection-single__title {
  color: var(--heading-font-color);
}

.collection-card__description {
  margin: 0 0 14px;
  color: var(--text-color);
  opacity: 0.88;
}

.collection-card__tags,
.collection-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.collection-card__tags a,
.collection-single__tags a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--dark-gray);
  border-radius: 2px;
  text-decoration: none;
}

.collection-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.collection-card__source,
.collection-card__detail,
.collection-source-preview__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.collection-card__source,
.collection-source-preview__action {
  color: var(--button-color);
  background: var(--gradient-color);
}

.collection-card__detail {
  color: var(--heading-font-color);
  background: rgba(255, 255, 255, 0.08);
}

.collection-single__head {
  margin-bottom: 28px;
}

.collection-single__image {
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
}

.collection-single__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-source-preview {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 22px;
  padding: 16px;
  color: var(--text-color);
  text-decoration: none;
  background: var(--background-alt-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.collection-source-preview--without-image {
  grid-template-columns: 1fr;
}

.collection-source-preview__media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 146px;
  overflow: hidden;
  color: var(--heading-font-color);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.collection-source-preview--without-image .collection-source-preview__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: auto;
}

.collection-source-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

.collection-source-preview__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.collection-source-preview__eyebrow {
  margin-bottom: 8px;
  color: var(--brand-color);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.collection-source-preview__title {
  margin-bottom: 8px;
  color: var(--heading-font-color);
  font-size: 22px;
  line-height: 1.3;
}

.collection-source-preview__description {
  margin-bottom: 14px;
  color: var(--text-color);
  opacity: 0.86;
}

.collection-source-preview__action {
  align-self: flex-start;
}

.collection-single__title {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.2;
}

@media only screen and (max-width: 768px) {
  .collection-page__title,
  .collection-single__title {
    font-size: 32px;
  }

  .collection-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .collection-source-preview {
    grid-template-columns: 1fr;
  }

  .collection-source-preview__title {
    font-size: 20px;
  }
}

/* Font Family (LineSeed for Korean fallback) */
body {
  font-family: 'Roboto Mono', "Courier New", "Lucida Console", Monaco, "LineSeed";
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', Helvetica Neue, Helvetica, Arial, sans-serif, "LineSeed";
}

/* Keep monospace for code */
code, pre, .marathon-record__time {
  font-family: 'Roboto Mono', 'Courier New', "LineSeed";
}

/* Hero Avatar - Round Rectangle (Moyo Character) */
.hero__avatar img {
  border-radius: 20px;
}
