/* Shared PLACE-related content surfaces. Cover ratios match the fresh feed. */
.scr-host[hidden] {
  display: none !important;
}

.scr-host {
  width: 100%;
  margin: 34px 0 0;
}

.scr-section {
  display: grid;
  gap: 18px;
}

.scr-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.scr-title {
  margin: 0;
  color: #202a32;
  font: 800 clamp(24px, 2.7vw, 36px)/1.2 "Source Han Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
}

.scr-subtitle {
  margin: 0;
  color: #7a858d;
  font-size: 13px;
}

.scr-editorial-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.scr-editorial-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 100 / 58;
  overflow: hidden;
  border-radius: 18px;
  background: #e8eaee;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.scr-editorial-cover,
.scr-post-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.scr-editorial-cover {
  position: absolute;
  inset: 0;
}

.scr-editorial-shade {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.scr-kind {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: 700 12px/1.2 "Source Han Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
  backdrop-filter: blur(8px);
}

.scr-editorial-title {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  max-height: 3.2em;
  padding: 30px 28px 26px;
  overflow: hidden;
  color: #fff;
  font: 800 clamp(22px, 2.5vw, 34px)/1.3 "Source Han Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scr-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scr-post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #e5e9ec;
  border-radius: 18px;
  background: #fff;
  color: #202a32;
  text-decoration: none;
}

.scr-post-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8eaee;
}

.scr-post-body {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 17px 18px;
}

.scr-post-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #202a32;
  font: 750 17px/1.45 "Source Han Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scr-post-meta {
  color: #808a91;
  font-size: 12px;
}

.scr-editorial-card:hover .scr-editorial-cover,
.scr-post-card:hover .scr-post-cover {
  transform: scale(1.018);
}

.scr-status {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 24px;
  border: 1px solid #e5e9ec;
  border-radius: 18px;
  background: #fff;
  color: #7b868e;
  text-align: center;
}

.scr-status p {
  margin: 0;
}

.scr-retry {
  margin-top: 12px;
  padding: 8px 15px;
  border: 1px solid #cfd6da;
  border-radius: 999px;
  background: #fff;
  color: #35414a;
  font: inherit;
  cursor: pointer;
}

.scr-partial-note {
  margin: -6px 0 0;
  color: #8a7470;
  font-size: 12px;
}

/* PLACE detail keeps its existing class names while sharing the same 58% cover contract. */
body.place-detail-nav-page .related-editorial-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

body.place-detail-nav-page .related-editorial-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 100 / 58;
  overflow: hidden;
  border-radius: 18px;
  background: #e8eaee;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

body.place-detail-nav-page .related-editorial-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

body.place-detail-nav-page .related-editorial-shade {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

body.place-detail-nav-page .related-editorial-kind {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: 700 12px/1.2 "Source Han Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
  backdrop-filter: blur(8px);
}

body.place-detail-nav-page .related-editorial-title {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  max-height: 3em;
  padding: 30px 28px 26px;
  overflow: hidden;
  color: #fff;
  font: 700 clamp(22px, 2.5vw, 34px)/1.3 "Source Han Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.place-detail-nav-page .related-editorial-card:hover .related-editorial-cover {
  transform: scale(1.015);
}

@media (max-width: 720px) {
  .scr-host {
    margin-top: 26px;
  }

  .scr-section {
    gap: 13px;
  }

  .scr-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .scr-editorial-list,
  .scr-post-list {
    gap: 12px;
  }

  .scr-post-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .scr-editorial-card,
  .scr-post-card,
  .scr-status,
  body.place-detail-nav-page .related-editorial-card {
    border-radius: 16px;
  }

  .scr-kind,
  body.place-detail-nav-page .related-editorial-kind {
    top: 12px;
    left: 12px;
  }

  .scr-editorial-title,
  body.place-detail-nav-page .related-editorial-title {
    padding: 24px 18px 18px;
    font-size: clamp(20px, 6vw, 28px);
  }

  body.place-detail-nav-page .related-editorial-list {
    gap: 12px;
    margin-bottom: 14px;
  }
}
