/* ============================================================================
   Activity pages (waterfalls, lakes hub, Hiwassee Lake, Hiwassee River). Loads after
   tokens.css, homepage.css, town.css and directory.css, and holds only what
   these pages add.
   ========================================================================= */

/* A lake with no honest photo yet keeps the directory's no-photo block, in
   the town card's frame. */
.town .dir-noimg {
  width: 100%; aspect-ratio: 4 / 3.1;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--line);
  /* Same title tile as the Things to Do activities (hubs.css): forest ground,
     cream name, inset rule, so it sits beside real photos without looking empty. */
  background: var(--forest); color: var(--cream); font-size: 1.5rem;
  box-shadow: inset 0 0 0 8px var(--forest), inset 0 0 0 9px rgba(247, 239, 214, 0.45);
}
.town:hover .dir-noimg { border-bottom-color: var(--sun); }

/* A fact in the ruled list that has no page to link to. */
.t-more .td-plain { display: block; padding: 14px 0; }
.t-more .td-plain a { display: inline; padding: 0; color: var(--forest); font-weight: 700; text-decoration: underline; }

/* A page with no hero photo (About, town by category, Marble): a light title band. */
.act-plain { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.act-plain h1 { margin: 2px 0 14px; max-width: 22ch; text-wrap: balance; }
.act-plain .lede { margin: 0; max-width: 62ch; color: var(--ink-2); }

/* Outside businesses (rafting companies): small, plain, no cards. */
.act-small { padding-block: clamp(24px, 3vw, 36px); }
.act-small h2 { font-size: 1.15rem; margin: 0 0 6px; }
.act-small p { margin: 0 0 10px; color: var(--ink-2); font-size: 0.93rem; max-width: 70ch; }
.act-small ul { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: var(--gap); font-size: 0.93rem; }
.act-small li { break-inside: avoid; padding: 3px 0; }
.act-small a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.act-small span { color: var(--ink-2); }

/* A printed map shown whole (the River Walk): never cropped, a thin frame,
   the whole image opens the PDF. */
.act-map { margin: 0; }
.act-map a { display: block; }
.act-map img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.act-map figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }
.act-map-pdf { margin: 18px 0 0; }

/* A tour's stops, grouped. */
.act-stops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(22px, 3vw, 40px); }
.act-stops h3 { font-size: 1.15rem; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--forest); }
.act-stops ul { list-style: none; margin: 0; padding: 0; }
.act-stops li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.act-stops b { display: block; }
.act-stops span { display: block; color: var(--ink-2); font-size: 0.95rem; margin-top: 2px; }
.section-head p + p { margin-top: 10px; }

/* A data table (Piney Knob's trails, the railroad's seats). Under 640px each
   row stacks into a labelled block (data-label from activity.php), so nothing is
   cut off the right edge and nothing needs a sideways scroll. */
.act-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.act-table table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.97rem; }
.act-table th, .act-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.act-table thead th { font-size: var(--t-small); color: var(--ink-2); border-bottom: 2px solid var(--forest); }
.act-table tbody th { font-weight: 700; white-space: nowrap; }
.act-table td { color: var(--ink-2); }
#churches .act-table tbody th { white-space: normal; min-width: 11rem; }
@media (max-width: 640px) {
	.act-table { overflow: visible; }
	.act-table table, .act-table tbody, .act-table tr, .act-table th, .act-table td { display: block; min-width: 0; width: auto; }
	.act-table thead { display: none; }
	.act-table tr { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
	.act-table tbody tr:first-child { border-top: 2px solid var(--forest); }
	.act-table tbody th, .act-table td { border: 0; padding: 0; white-space: normal; }
	.act-table tbody th { font-size: 1.05rem; padding-bottom: 2px; }
	.act-table td { margin-top: 8px; }
	.act-table td:empty { display: none; }
	.act-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--t-small); font-weight: 700; color: var(--ink); margin-bottom: 1px; }
	#churches .act-table td::before { content: none; }
	#churches .act-table tbody tr:first-child { border-top: 0; }

	/* Churches: each row stacks on a phone, so service times need no sideways scroll. */
	#churches .act-table table, #churches .act-table tbody, #churches .act-table tr, #churches .act-table th, #churches .act-table td { display: block; min-width: 0; width: auto; }
	#churches .act-table thead { display: none; }
	#churches .act-table tr { padding: 14px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.15)); }
	#churches .act-table tbody th, #churches .act-table td { border: 0; padding: 2px 0; }
	#churches .act-table tbody th { font-size: 1.05rem; padding-bottom: 4px; }
	#churches .act-table td:nth-of-type(1), #churches .act-table td:nth-of-type(2) { display: inline; font-size: var(--t-small); }
	#churches .act-table td:nth-of-type(1)::after { content: "\00B7"; margin: 0 .4em; }
	#churches .act-table td:nth-of-type(3) { color: inherit; font-weight: 600; margin-top: 6px; }
}
.act-table-note { margin: 12px 0 0; font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }

/* Reviews, credited. Quiet: no stars, no cards. */
.act-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(20px, 2.6vw, 34px); }
.act-quote { margin: 0; padding-top: 14px; border-top: 2px solid var(--forest); }
.act-quote blockquote { margin: 0; }
.act-quote p { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.act-quote figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--ink-2); }
.act-quote figcaption a { color: inherit; }

/* River Walk trestle photo (2026-11-24): portrait shot in a wide hero; sit the crop a little above center so the truss bridge and the walker both show (32% was all treetops). */
.hero-photo[src*="river-walk-trestle"] { object-position: 50% 44%; }
