/* Townnews modern layer. Loaded after townnews.css and layout.css; uses the same tokens. */

/* Previous / next story */
.tn-post-nav { margin: 40px 0 8px; }
.tn-post-nav-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.tn-post-nav-card {
	display: flex; flex-direction: column; gap: 8px; min-width: 0;
	padding: 18px 20px; border: 1px solid var(--tn-line); border-radius: var(--tn-r, 14px);
	background: var(--tn-card); color: var(--tn-ink); text-decoration: none;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tn-post-nav-card:hover,
.tn-post-nav-card:focus-visible { border-color: var(--tn-accent); transform: translateY(-2px); box-shadow: var(--tn-shadow, none); }
.tn-post-nav-card:focus-visible { outline: 3px solid rgba(176, 88, 26, .35); outline-offset: 2px; }
.tn-post-nav-next { text-align: right; align-items: flex-end; }
.tn-post-nav-card,
.tn-post-nav-card:hover { text-decoration: none; }
.tn-post-nav-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-accent); }
.tn-post-nav-title {
	font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--tn-ink); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tn-post-nav-card.is-empty { visibility: hidden; border: 0; }
@media (max-width: 640px) {
	.tn-post-nav-grid { grid-template-columns: 1fr; }
	.tn-post-nav-next { text-align: left; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.tn-post-nav-card { transition: none; }
	.tn-post-nav-card:hover { transform: none; }
}

/* LSVR type templates: archives, singles and category pages */
.tn-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 8px 0 24px; }
.tn-type-document .tn-doc-row, .tn-type-lsvr-document .tn-doc-row { grid-column: 1 / -1; }
.tn-type-grid > .tn-card, .tn-type-grid > .tn-person-card { min-width: 0; }
.tn-person-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 18px; border: 1px solid var(--tn-line); border-radius: var(--tn-r, 14px); background: var(--tn-card); box-shadow: var(--tn-shadow, none); }
.tn-person-card h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.3; }
.tn-person-card h3 a { color: var(--tn-ink); text-decoration: none; }
.tn-person-card h3 a:hover { color: var(--tn-accent); }
.tn-person-photo { display: block; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--tn-paper); }
.tn-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 40px; font-weight: 700; color: var(--tn-accent); }
.tn-event-list-page { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 24px; }
.tn-event-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px; border: 1px solid var(--tn-line); border-radius: var(--tn-r, 14px); background: var(--tn-card); }
.tn-event-row h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.tn-event-row h3 a { color: var(--tn-ink); text-decoration: none; }
.tn-event-row h3 a:hover { color: var(--tn-accent); }
.tn-event-row .tn-event-date { width: 64px; }
.tn-doc-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--tn-line); border-radius: var(--tn-r, 14px); background: var(--tn-card); }
.tn-doc-row h3 { margin: 0 0 4px; font-size: 17px; }
.tn-doc-row h3 a { color: var(--tn-ink); text-decoration: none; }
.tn-doc-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tn-doc-files .tn-btn { font-size: 14px; padding: 8px 14px; }
.tn-profile { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.tn-profile-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--tn-r, 14px); overflow: hidden; background: var(--tn-paper); display: flex; }
.tn-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tn-profile-role { font-size: 18px; color: var(--tn-muted); margin: 0 0 14px; }
.tn-profile-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tn-profile-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--tn-line); border-radius: 999px; color: var(--tn-ink); text-decoration: none; font-size: 14px; }
.tn-profile-links a:hover { border-color: var(--tn-accent); color: var(--tn-accent); }
.tn-event-facts { margin-bottom: 24px; padding: 18px 20px; border: 1px solid var(--tn-line); border-radius: var(--tn-r, 14px); background: var(--tn-card); }
.tn-event-facts p { margin: 0 0 8px; }
.tn-event-dates { margin: 0; padding-left: 18px; color: var(--tn-ink); }
.tn-entry { max-width: 72ch; }
.tn-entry-image { margin: 0 0 24px; }
.tn-entry-image img { width: 100%; height: auto; border-radius: var(--tn-r, 14px); }
.tn-entry-content { line-height: 1.75; font-size: 17px; }
.tn-entry-content p { margin: 0 0 1.1em; }
.tn-term-archive .tn-type-grid { margin-top: 12px; }
.tn-type-document .tn-doc-row + .tn-doc-row { margin-top: 0; }
@media (max-width: 720px) {
	.tn-profile { grid-template-columns: 1fr; }
	.tn-profile-photo { max-width: 240px; }
	.tn-event-row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px; }
	.tn-event-row .tn-event-date { width: 56px; }
}
