/* Category stories use the same linked cards as the existing AAC story page. */
.chronicles-story-page{
  --story-text: #2f343c;
  --story-muted: #687680;
  --story-line: #dfe2dc;
}
.chronicles-lore-page .general-head,
.chronicles-lore-page .lore-shell{ width: min(1100px, 95%); margin-inline: auto; }
.chronicles-lore-page .general-head{ margin-bottom: 40px; }
.chronicles-story-images{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  min-width: 0;
}
.chronicles-story-images > :only-child,
.chronicles-story-images > :first-child:nth-last-child(3){ grid-column: 1 / -1; }
.chronicles-story-images .chronicles-story-image img{ object-fit: contain; }
.chronicles-lore-page .chronicles-story-entry{ color: var(--story-text); box-shadow: 0 2px 6px rgba(24,32,30,.05); }
.chronicles-lore-page .chronicles-story-entry:is(:hover, :focus-visible){
  color: var(--story-text);
  border-color: #62b850;
  transform: none;
  box-shadow: 0 2px 8px rgba(24,32,30,.08);
}
.chronicles-lore-page .chronicles-story-entry:focus-visible{ outline: 2px solid var(--story-muted); outline-offset: 4px; }
.chronicles-story-entry__content{ min-width: 0; }
.chronicles-lore-page .chronicles-story-entry :is(h2, h3){
  margin: 0 0 14px;
  color: var(--story-text);
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chronicles-story-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  color: var(--story-muted);
  font-size: 12px;
  line-height: 1.5;
}
.chronicles-story-page .chronicles-story-entry p{
  color: var(--story-text);
  font-family: inherit;
  line-height: 1.9;
  text-indent: 0;
  overflow-wrap: anywhere;
}
.chronicles-story-page .chronicles-story-entry p + p{ margin-top: 12px; }
.chronicles-lore-page .chronicles-story-entry{ scroll-margin-top: 100px; }
[data-theme="dark"] .chronicles-story-page{
  --story-text: #d1d5db;
  --story-muted: #afb8b2;
  --story-line: #4d514e;
}
@media(max-width:600px){
  .chronicles-lore-page .general-head,
  .chronicles-lore-page .lore-shell{ width: calc(100% - 32px); }
  .chronicles-lore-page .chronicles-story-entry{ padding: 16px; gap: 18px; scroll-margin-top: 165px; }
  .chronicles-lore-page .chronicles-story-entry :is(h2, h3){ font-size: 18px; }
  .chronicles-story-page .chronicles-story-entry p{ font-size: 15px; line-height: 1.7; }
}
@media(prefers-reduced-motion:reduce){
  .chronicles-lore-page .chronicles-story-entry{ transition: none; }
}
