/* The public article and private preview share a single reading surface. */
.story-reading {
  color: var(--theme-ink, var(--ink));
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.story-reading.story-article {
  max-width: 820px;
  padding: 36px 44px;
  margin: 0 auto 24px;
  background: var(--theme-card, white);
  border: 1px solid var(--theme-border, var(--border));
  border-radius: 18px;
}
.story-reading .story-category {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--theme-soft, var(--surface));
  color: var(--theme-accent, var(--accent));
  font-size: 12px;
}
.story-reading .story-reading-layout {
  display: block;
}
.story-reading .story-places-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--theme-accent, var(--accent));
  font-size: 13px;
}
.story-reading .story-route {
  position: static;
  margin-top: 24px;
  border: 1px solid var(--theme-border, var(--border));
  border-radius: 12px;
  background: var(--theme-soft, var(--surface));
  min-width: 0;
  scroll-margin-top: 140px;
}
.story-reading .story-route summary {
  cursor: pointer;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
}
.story-reading .story-route summary span {
  color: var(--theme-muted, var(--muted));
  font-size: 12px;
  margin-left: 6px;
}
.story-reading .story-route-content {
  padding: 0 16px 16px;
}
.story-reading .story-route-content > p {
  color: var(--theme-muted, var(--muted));
  font-size: 12px;
}
.story-reading .story-route ol {
  padding-left: 22px;
  font-size: 13px;
}
.story-reading .story-route li {
  padding: 4px 0;
}
.story-reading .story-preview-map {
  flex-basis: 100%;
  width: 100%;
  height: 260px;
  margin-top: 16px;
  border-radius: 10px;
}
.story-reading .story-place > .workspace-menu-icon {
  width: 22px;
  height: 22px;
}
.story-map-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  background: #176b4b;
  color: white;
  box-shadow: 0 2px 8px #0003;
  font-size: 13px;
  font-weight: 700;
}
@media (min-width: 1280px) {
  .story-reading.story-article:has(.story-route details[open]) {
    max-width: 1020px;
  }
  .story-reading:has(.story-route details[open]) .story-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
    align-items: start;
  }
  .story-reading .story-route:has(details[open]) {
    position: sticky;
    top: 140px;
  }
}
.story-reading .story-article-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--theme-border, var(--border));
}
.story-reading .story-article-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.04em;
  margin: 14px 0 18px;
}
.story-reading .story-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--theme-muted, var(--muted));
  white-space: pre-wrap;
  margin: 0 0 22px;
}
.story-reading .story-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--theme-muted, var(--muted));
}
.story-reading .story-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-ink, var(--ink));
  font-weight: 600;
}
.story-reading .story-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--theme-soft, var(--surface));
  color: var(--theme-accent, var(--accent));
}
.story-reading .story-prose {
  min-width: 0;
  font-size: 17px;
  line-height: 1.95;
  padding-top: 8px;
}
.story-reading .story-prose > p {
  white-space: pre-wrap;
  margin: 26px 0;
}
.story-reading .story-prose > h2 {
  white-space: pre-wrap;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.025em;
  margin: 38px 0 16px;
}
.story-reading .story-prose > figure {
  margin: 30px 0;
}
.story-reading .story-prose figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  border-radius: 12px;
  margin: auto;
}
.story-reading .story-prose .private-photo-thumbnail {
  display: block;
  width: 100%;
  height: auto;
}
.story-reading .story-prose figcaption {
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--theme-muted, var(--muted));
  white-space: pre-wrap;
  margin-top: 12px;
}
.story-reading .story-place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  margin: 26px 0;
  border: 1px solid var(--theme-border, var(--border));
  border-radius: 12px;
  background: var(--theme-soft, var(--surface));
  font-size: 14px;
  line-height: 1.6;
}
.story-reading .story-place > div:first-of-type {
  flex: 1 1 160px;
  min-width: 0;
}
.story-reading .story-place small {
  display: block;
  color: var(--theme-muted, var(--muted));
  font-size: 12px;
  margin-top: 4px;
}
.story-reading .story-place .coordinate-map {
  flex-basis: 100%;
  width: 100%;
  height: 260px;
  border-radius: 10px;
}
.story-reading .story-place-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--theme-accent, var(--accent));
}
@media (max-width: 600px) {
  .story-reading.story-article {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .story-reading .story-prose {
    font-size: 16px;
  }
  .story-reading .story-article-title {
    font-size: 27px;
  }
  .story-reading .story-lead {
    font-size: 15px;
  }
  .story-reading .story-place {
    padding: 14px;
  }
}
