.article-page { padding-top: 40px; }
.story__back { display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); font-weight: 700; text-decoration: none; }
.story__back:hover, .story-card__link:hover { text-decoration: underline; text-underline-offset: 5px; }
.article-page a:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 5px; }
.story__heading { width: min(100%, 900px); margin: 36px auto 40px; }
.story__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 16px; line-height: 1.5; }
.story__category { color: var(--color-primary); font-weight: 800; }
.story__meta time { color: #49434f; }
.story__heading h1 { max-width: none; margin: 18px 0 0; font-size: 40px; line-height: 1.22; font-weight: 800; letter-spacing: 0; overflow-wrap: anywhere; }
.story__cover { width: min(100% - 40px, 1000px); margin: 0 auto 48px; background: var(--color-soft); }
.story__cover-image { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.story__content { width: min(100% - 40px, 1000px); margin-inline: auto; color: #17131c; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.story__content > * { max-width: 780px; margin: 0 auto 24px; }
.story__content > :last-child { margin-bottom: 0; }
.story__content p, .story__content li { font-size: inherit; line-height: inherit; color: inherit; }
.story__content p { margin-block: 0 24px; }
.story__content > p { margin-inline: auto; }
.story__content h2 { margin-block: 40px 18px; font-size: 28px; line-height: 1.35; }
.story__content h3 { margin-block: 32px 16px; font-size: 23px; line-height: 1.4; }
.story__content h4, .story__content h5, .story__content h6 { margin-block: 28px 14px; font-size: 20px; line-height: 1.4; }
.story__content ul, .story__content ol { padding-inline-start: 26px; }
.story__content li + li { margin-top: 8px; }
.story__content li > ul, .story__content li > ol { margin-block: 12px; }
.story__content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; }
.story__content > figure, .story__content > .wp-caption, .story__content > .wp-block-gallery, .story__content > .gallery { max-width: 100%; margin-block: 36px; }
.story__content img { display: block; max-width: 100%; width: auto; height: auto; max-height: 640px; margin-inline: auto; object-fit: contain; }
.story__content figure, .story__content .wp-caption { width: auto; }
.story__content figcaption, .story__content .wp-caption-text { max-width: 780px; margin: 14px auto 0; color: #49434f; font-size: 16px; line-height: 1.6; text-align: center; }
.story__content blockquote { border-left: 4px solid var(--color-primary); padding: 8px 0 8px 24px; font-size: 22px; }
.story__content blockquote p:last-child { margin-bottom: 0; }
.story__content iframe, .story__content video { max-width: 100%; }
.story__content .wp-block-embed { width: 100%; }
.story__content .wp-block-table { overflow-x: auto; }
.story__content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.story__content td, .story__content th { border: 1px solid var(--color-line); padding: 12px; text-align: start; }
.story__content .alignleft, .story__content .alignright { float: none; margin-inline: auto; }
.story__end { width: min(100% - 40px, 780px); margin: 48px auto 64px; border-top: 1px solid var(--color-line); padding-top: 24px; }
.story-related { padding-block: 56px 64px; background: var(--color-soft); border-top: 1px solid var(--color-line); }
.story-related__heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.story-related__heading h2 { margin: 0; font-size: 30px; line-height: 1.3; }
.story-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.story-card { display: flex; flex-direction: column; min-width: 0; }
.story-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 20px; }
.story-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.story-card__image:hover img { transform: scale(1.025); }
.story-card h3 { margin: 12px 0 20px; font-size: 21px; line-height: 1.45; overflow-wrap: anywhere; }
.story-card h3 a { color: var(--color-ink); text-decoration: none; }
.story-card h3 a:hover { color: var(--color-primary); }
.story-card__link { align-self: flex-start; margin-top: auto; color: var(--color-primary); font-weight: 800; text-decoration: none; }
@media (max-width: 1000px) {
  .story__heading h1 { font-size: 36px; }
  .story-related__grid { gap: 22px; }
  .story-card h3 { font-size: 20px; }
}
@media (max-width: 700px) {
  .article-page { padding-top: 28px; }
  .story__heading { margin-block: 28px 28px; }
  .story__heading h1 { margin-top: 14px; font-size: 30px; line-height: 1.3; }
  .story__cover { margin-bottom: 32px; }
  .story__cover-image { max-height: 420px; }
  .story__content { font-size: 17px; line-height: 1.75; }
  .story__content > figure, .story__content > .wp-caption, .story__content > .wp-block-gallery { margin-block: 28px; }
  .story__content h2 { font-size: 25px; }
  .story__content h3 { font-size: 22px; }
  .story__end { margin-block: 36px 44px; }
  .story-related { padding-block: 36px 44px; }
  .story-related__heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .story-related__heading h2 { font-size: 26px; }
  .story-related__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-card__image img { transition: none; }
}
