/* Editorial layout: stories first, community second. Shared account controls
   retain their existing interaction and role-specific visibility. */
:root { --font-heading: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif; }
.folio-header { padding: .55rem 0; }
.folio-header-inner { gap: 1rem; }
.folio-logo { min-width: 0; }
.folio-nav { flex-shrink: 0; }
.folio-nav ul { gap: 1.3rem; }
.journal-masthead { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 2rem 0 1.5rem; border-bottom: 3px double var(--text); }
.journal-masthead > div { min-width: 0; }
.folio-journal > .home-top-content { display: flow-root; max-width: none; margin: 0; padding: 1.5rem 0; text-align: inherit; border-bottom: 1px solid var(--border); }
.journal-masthead h1 { font: 700 clamp(2.5rem, 5.5vw, 4.5rem)/1.08 var(--font-heading); letter-spacing: -.035em; margin: 0; }
.journal-masthead p { color: var(--muted); font-size: .88rem; margin: .75rem 0 0; }
.journal-tools { display: flex; flex-direction: column; align-items: end; gap: .5rem; flex: 0 1 16rem; }
.journal-subscribe { font-size: .8rem; min-height: 32px; display: inline-flex; align-items: center; gap: .4rem; }
.journal-tools .home-search-form { display: flex; margin: 0; width: 100%; border-bottom: 1px solid var(--border); }
.journal-tools .search-input { min-width: 0; width: 100%; border: 0; padding: .5rem 0; font-size: .85rem; background: transparent; border-radius: 0; }
.journal-tools button { flex: none; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.section-label { font-size: .75rem; letter-spacing: .12em; }
.journal-front { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2.5rem; padding: 2rem 0; }
.journal-front-single { grid-template-columns: minmax(0, 1fr); }
.hero-title { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.25; letter-spacing: -.025em; margin: .8rem 0 1rem; }
.hero-excerpt { font-size: 1rem; line-height: 1.85; color: var(--text); margin: .8rem 0; }
.hero-meta, .article-meta, .article-card-meta { font-family: var(--font-body); font-size: .78rem; }
.hero-meta > a, .article-meta a, .article-card-meta > a { color: var(--text); }
.journal-read-link { display: inline-flex; gap: .6rem; align-items: center; min-height: 44px; font-size: .85rem; }
.journal-front-secondary { min-width: 0; border-left: 1px solid var(--border); padding-left: 2.5rem; }
.journal-secondary-story { padding: .8rem 0 1.15rem; }
.journal-secondary-story + .journal-secondary-story { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.journal-secondary-story:last-child { padding-bottom: 0; }
.journal-secondary-story h2 { font: 600 clamp(1.3rem, 2.2vw, 1.7rem)/1.4 var(--font-heading); margin: 0 0 .65rem; }
.journal-secondary-story h2 a { color: var(--text); }
.journal-secondary-story .article-card-excerpt { margin: .5rem 0 0; }
.journal-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--text); padding: 1rem 0; }
.journal-section-heading h2 { font: 600 1.5rem/1.3 var(--font-heading); margin: 0; }
.journal-section-heading > a { flex-shrink: 0; font-size: .8rem; }
.journal-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; padding: 0; list-style: none; }
.journal-story-grid .article-list-item { padding: 1.1rem 0; border-top: 1px solid var(--border); }
.article-card:hover { transform: none; }
.article-card-heading { margin: 0; font: inherit; }
.article-list .article-card-title { font-size: 1.4rem; line-height: 1.45; }
.article-card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .4rem; }
.article-card-stats { font: inherit; margin-left: auto; }
.article-card-excerpt { font-size: .88rem; line-height: 1.7; margin-bottom: 0; }
.journal-archive-link { border-top: 1px solid var(--border); padding: .7rem 0; text-align: right; font-size: .85rem; }
.journal-community { margin: 2rem 0 3rem; }
.journal-community-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2.5rem; }
.journal-community-grid > *, .journal-community-side { min-width: 0; }
.journal-community-side { border-left: 1px solid var(--border); padding-left: 2.5rem; }
.journal-community-no-topics { grid-template-columns: 1fr; }
.journal-community-no-topics .journal-community-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; border: 0; padding: 0; }
.journal-community .sidebar-section { margin-top: 0; }
.journal-community h3.section-label { margin: 0; }
.journal-community .home-comments-list { margin-top: .6rem; }
.journal-community .home-topics-section { margin: 0; }
.journal-community .reader-circle-home > p { font-size: .8rem; margin: .5rem 0; }
.journal-empty { padding: 3rem 0; color: var(--muted); }
.comment-role { font-weight: 500; border-color: transparent; border-radius: 3px; }
.app-prose > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; padding: 0; margin: 0; }
/* Only a prose opening gets a drop cap: never a paragraph after a heading,
   a version/access notice, or one beginning with media or inline code. */
.reading-content > p:first-child:not(:has(img, video, iframe, code))::first-letter {
  float: left; font: 700 3em/.95 var(--font-heading); color: var(--accent);
  padding-right: .12em; margin-top: .08em;
}
.article-header { text-align: center; padding-top: 2.25rem; margin-bottom: 2rem; }
.article-title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.3; margin-bottom: 1rem; text-wrap: balance; overflow-wrap: anywhere; }
.article-header .article-byline { justify-content: center; margin: .5rem 0 0; }
.article-header .article-byline > .article-meta { flex: 0 1 auto; justify-content: center; gap: .35rem .65rem; }
.article-meta time { white-space: nowrap; }
.article-header > .article-tags { justify-content: center; margin: .65rem 0 0; }
.article-header > .article-tags .article-tag { padding: .15rem .5rem; font-size: .75rem; }
.article-header .article-divider { width: min(20rem, 75%); margin: 2rem auto 0; }
.reading-content { display: flow-root; font-size: 1.05rem; line-height: 1.85; }
.reading-content > :first-child { margin-top: 0; }
.app-prose pre { background: #22272e; color: #adbac7; }
.app-prose pre code.hljs { background: #22272e; color: #adbac7; padding: 0; }
.reading-content h2, .reading-content h3 { scroll-margin-top: 6rem; }
.app-prose .vditor-anchor { display: inline-flex; vertical-align: middle; margin-left: .5rem; color: var(--muted); background: none; }
.app-prose .vditor-anchor svg { display: inline; width: .7em; height: .7em; fill: currentColor; }
.sibling-nav { margin-top: 2rem; padding: 1.25rem 0; gap: 1rem; }
.sibling-nav .section-label, .sibling-title { display: block; }
.sibling-next { margin-left: auto; text-align: right; }
.comments-section > hr { max-width: none; margin: 1.5rem 0; }
.comments-section > hr::after { display: none; }
@media (max-width: 767px) {
  .journal-masthead { padding: 1.5rem 0 1rem; display: block; }
  .journal-tools { flex-direction: row; align-items: center; margin-top: 1rem; gap: 1.5rem; }
  .journal-subscribe { flex: none; }
  .journal-front, .journal-story-grid, .journal-community-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .journal-front { padding: 1.5rem 0; }
  .journal-front-secondary, .journal-community-side { padding-left: 0; border-left: 0; }
  .journal-front-secondary { padding-top: 1rem; border-top: 1px solid var(--border); }
  .journal-story-grid { gap: 0; }
  .journal-community { margin-top: 1.5rem; }
  .journal-community-no-topics .journal-community-side { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .article-header { padding-top: 1.5rem; }
  .article-title { font-size: 1.75rem; }
  .article-header { margin-bottom: 1.5rem; }
  .article-header .article-divider { margin-top: 1.5rem; }
  .reading-content h1 { font-size: 1.625rem; }
  .reading-content h2 { font-size: 1.5rem; }
  .reading-content h3 { font-size: 1.25rem; }
  .reading-content h4 { font-size: 1.125rem; }
}
