/*
 * Stories & news, single story, plain text pages. Boards: LocalStories,
 * LocalStory, LocalStoryKayak, LocalPrivacy (+Phone).
 */

.stories__head { display: grid; gap: 20px; }
@media (min-width: 1025px) { .stories__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; } }
.stories__whatson { margin-top: 0; }
.stories__list { padding-top: 32px; padding-bottom: var(--space-section); }

/* Story cards: rows with a 112px 16:10 thumbnail on phones; three across on desktop */
.story-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--c-rule); color: var(--c-ironsand); text-decoration: none; }
.story-card__photo { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-tile); overflow: hidden; }
.story-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-card__nophoto { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--c-card); border-top: var(--stripe) solid var(--c-flax); }
.story-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.story-card__meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; color: var(--c-muted); }
.story-card__cat { font-weight: 600; color: var(--c-blue); }
.story-card__title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.2; }
.story-card__excerpt { font-size: 15px; line-height: 1.45; color: var(--c-muted); display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-card__cta { margin-top: auto; font-weight: 600; color: var(--c-blue); }
.story-card:hover .story-card__title { color: var(--c-blue); text-decoration: underline; }
.story-grid { list-style: none; border-bottom: 1px solid var(--c-rule); }
@media (min-width: 721px) {
	.story-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 0; border-top: 0; }
	.story-card__photo { border-radius: var(--radius-card); }
	.story-card__title { font-size: 22px; }
	.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; margin-top: 40px; border-bottom: 0; }
	.story-card--lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; margin-top: 24px; }
	.story-card--lead .story-card__title { font-size: 34px; line-height: 1.1; }
	.story-card--lead .story-card__excerpt { -webkit-line-clamp: 3; font-size: 17px; }
}
@media (min-width: 1025px) {
	.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
	.story-card--lead .story-card__title { font-size: 38px; }
}
.stories__more { margin-top: 32px; text-align: center; }

/* Single story */
.story__head { max-width: 900px; margin-top: 20px; }
.story__meta { margin: 12px 0 0; color: var(--c-muted); }
.story__hero { margin: 24px 0 0; text-align: center; }
.story__hero img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--radius-card); }
.story__hero--wide img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story__body { display: grid; gap: 40px; padding-block: 32px var(--space-section); }
@media (min-width: 1025px) {
	.story__body { grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 48px; }
	.story__aside { position: sticky; top: 24px; }
}
.past-event { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; padding: 14px 16px; background: var(--c-card); border-left: var(--stripe) solid var(--c-flax); border-radius: var(--radius-card); }
.past-event .link-arrow { min-height: 0; }

/* The post's own blocks: works for Gutenberg and converted Divi posts alike */
.story__content { font-size: 17px; line-height: 1.65; }
.story__content > * { max-width: 760px; }
.story__content > p:first-child { font-size: 19px; line-height: 1.5; }
.story__content h2 { margin: 1.6em 0 .5em; font-size: 26px; }
.story__content h3 { margin: 1.4em 0 .4em; font-size: 22px; }
.story__content a { font-weight: 600; }
.story__content img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: var(--radius-card); }
.story__content figure { margin: 1.5em 0; }
.story__content .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.story__content .wp-block-gallery figure { margin: 0; }
.story__content blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 4px solid var(--c-flax); font-family: var(--font-heading); font-size: 20px; font-weight: 600; }
.story__content .wp-block-button__link { display: inline-flex; padding: 12px 22px; border-radius: var(--radius-pill); background: var(--c-blue); color: var(--c-white); text-decoration: none; }
.story__content hr { border: 0; border-top: 1px solid var(--c-rule); }
.story__content table td, .story__content table th { padding: 8px; border-bottom: 1px solid var(--c-rule); text-align: left; }
.story__content ul, .story__content ol { padding-left: 1.3em; }
@media (min-width: 721px) {
	.story__content { font-size: 18px; }
	.story__content > p:first-child { font-size: 21px; }
	.story__content h2 { font-size: 30px; }
	.story__content h3 { font-size: 26px; }
}
.story__related { margin-bottom: 24px; }
.story__related .listing-card { border-top: 0; }
.story__related .listing-card__name { font-size: 20px; }
.story__about { margin: 0 0 16px; padding: 16px; background: var(--c-card); border-radius: var(--radius-card); }
.story__about div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--c-rule); font-size: 15px; }
.story__about div:first-child { border-top: 0; }
.story__about dt { color: var(--c-muted); }
.story__about dd { margin: 0; font-weight: 600; text-align: right; }

/* Flax newsletter block */
.newsletter-block__form { margin-top: 16px; max-width: 900px; }
.newsletter-block__form input[type="email"],
.newsletter-block__form input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--c-ironsand); border-radius: 10px; background: var(--c-card); font-size: 16px; }
.newsletter-block__form input[type="submit"] { min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius-pill); background: var(--c-blue); color: var(--c-white); font-weight: 600; }
.newsletter-block__form label { font-size: 15px; font-weight: 600; }
.newsletter-block__note { margin-top: 12px; font-size: 15px; }

/* Plain text page */
.text-page__head { max-width: 760px; margin-top: 20px; }
.text-page__head p { margin: 10px 0 0; }
.text-page__body { display: grid; gap: 24px; padding-block: 24px var(--space-section); }
@media (min-width: 1025px) {
	.text-page__body { grid-template-columns: 280px minmax(0, 720px); gap: 64px; align-items: start; padding-top: 40px; }
	.toc { position: sticky; top: 24px; }
}
.toc__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--c-muted); }
.toc__list { list-style: none; border-bottom: 1px solid var(--c-rule); }
.toc__list li { border-top: 1px solid var(--c-rule); }
.toc__list a { display: flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 600; text-decoration: none; }
.toc__list a:hover { text-decoration: underline; }
.toc__phone { border: 1.5px solid var(--c-ironsand); border-radius: var(--radius-card); padding: 0 14px; }
.toc__phone summary { display: flex; align-items: center; gap: 8px; min-height: 52px; font-weight: 600; cursor: pointer; }
.toc__phone summary .faq__chev { margin-left: auto; }
.toc__phone[open] summary .faq__chev { transform: rotate(180deg); }
.toc__phone .toc__list { margin-bottom: 12px; }
.text-page__text h2 { scroll-margin-top: 80px; }
.contact-card { margin-top: 40px; }
.contact-card p { margin: 0; }

/* Mailchimp (MC4WP) form inside the flax newsletter block: four across on desktop */
.newsletter-block__form .mc4wp-form-fields { display: grid; gap: 12px; }
.newsletter-block__form .newsletter-field { margin: 0; }
.newsletter-block__form label { display: flex; flex-direction: column; gap: 6px; }
.newsletter-block__form .newsletter-field--submit { display: flex; align-items: flex-end; }
.newsletter-block__form input[type="submit"] { width: 100%; cursor: pointer; }
.newsletter-block__form input[type="submit"]:hover { background: var(--c-navy); }
.newsletter-block__form .mc4wp-response { grid-column: 1 / -1; font-weight: 600; }
@media (min-width: 1025px) {
	.newsletter-block__form .mc4wp-form-fields { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
}
