/* Components: section heads, buttons, tags, covers, share, back-to-top, lists. */

/* Section head: 2px Ink rule, 26–28px heading, right-aligned 13px link */
.trd-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-bottom: 10px;
	margin: 0 0 20px;
	border-bottom: 2px solid var(--trd-ink);
}
.trd-section-head__title { font-size: 27px; margin: 0; }
.trd-section-head__link { font-size: 13px; color: var(--trd-slate); white-space: nowrap; }

/* Buttons. Postcard pink is for Buy/Tickets buttons only. Square corners. */
.trd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--trd-tap);
	padding: 12px 20px;
	font: 500 14px/1.2 var(--trd-font-body);
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	text-align: center;
}
.trd-btn--primary { background: var(--trd-pink); border-color: var(--trd-pink); color: var(--trd-white); }
.trd-btn--primary:hover { background: var(--trd-pink-text); border-color: var(--trd-pink-text); color: var(--trd-white); }
.trd-btn--secondary { background: transparent; border-color: var(--trd-pink); color: var(--trd-pink-text); }
.trd-btn--secondary:hover { background: rgba(200, 21, 108, .06); color: var(--trd-pink-text); }
.trd-btn--plain { background: transparent; border-color: #8f958f; color: var(--trd-ink); }
.trd-btn--plain:hover { border-color: var(--trd-ink); color: var(--trd-ink); }
.trd-buy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trd-btn--sm { min-height: 34px; padding: 7px 12px; font-size: 13px; }
.trd-btn__tag { margin-left: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* Tags / chips */
.trd-tag {
	display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
	border: 1px solid var(--trd-tag-border); color: var(--trd-slate);
	font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}

/* Chips (filters, toggles) */
.trd-chip { font: 12px/1.2 var(--trd-font-body); color: var(--trd-ink); background: none; border: 1px solid var(--trd-tag-border); padding: 7px 11px; min-height: 32px; cursor: pointer; border-radius: 0; }
.trd-chip.is-on { background: var(--trd-ink); color: var(--trd-paper); border-color: var(--trd-ink); }

/* Covers */
.trd-cover { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #3a424d; }
.trd-cover__img { width: 100%; height: 100%; object-fit: cover; }
.trd-cover__blank { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.10), rgba(0,0,0,.28)); }

/* Share: icon buttons (owner, 2026-12-03) */
.trd-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 32px 0 0; }
.trd-share__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--trd-slate); margin-right: 4px; }
.trd-share__copy, .trd-share__to {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; color: var(--trd-ink);
	background: none; border: 1px solid var(--trd-tag-border); border-radius: 0;
	text-decoration: none; cursor: pointer;
}
.trd-share__copy:hover, .trd-share__to:hover { border-color: var(--trd-ink); color: var(--trd-ink); }
.trd-share__copy.is-done { border-color: var(--trd-teal); color: var(--trd-teal); }
.trd-share__done { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: 12px; background: var(--trd-ink); color: var(--trd-paper); padding: 3px 8px; pointer-events: none; }
.trd-share__done:empty { display: none; }

/* Back to top: 52px desktop / 48px mobile, after ~500px of scroll */
.trd-to-top {
	position: fixed; right: 32px; bottom: 32px; z-index: 30;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--trd-ink); border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 20px rgba(0,0,0,.25);
	opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.trd-to-top.is-visible { opacity: 1; transform: none; }
.trd-to-top[hidden] { display: none; }
.trd-to-top span { width: 12px; height: 12px; border-left: 2px solid var(--trd-paper); border-top: 2px solid var(--trd-paper); transform: translateY(3px) rotate(45deg); }
@media (max-width: 767px) { .trd-to-top { width: 48px; height: 48px; right: 16px; bottom: 16px; } }

/* Simple list used by the fallback template */
.trd-list { display: flex; flex-direction: column; }
.trd-list__item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--trd-rule); color: var(--trd-ink); text-decoration: none; font-weight: 500; }
.trd-list__item:hover .trd-list__title { text-decoration: underline; }
.nav-links { display: flex; gap: 12px; margin-top: 24px; }
.nav-links .page-numbers { padding: 8px 12px; border: 1px solid var(--trd-tag-border); color: var(--trd-ink); text-decoration: none; }
.nav-links .current { border-color: var(--trd-ink); }

/* Mini player (MiniPlayer.dc.html): every audio play button on the site opens it (mini-player.js) */
.trd-mini {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	height: 80px; background: var(--trd-white); border-top: 1px solid var(--trd-rule);
	display: grid; grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr) 44px; gap: 24px; align-items: center;
	padding: 0 20px 0 12px; box-shadow: 0 -14px 30px rgba(0,0,0,.2);
	transform: translateY(100%); transition: transform .25s ease;
}
.trd-mini[hidden] { display: none; }
.trd-mini.is-open { transform: none; }
.trd-mini__cover { width: 56px; height: 56px; object-fit: cover; background: var(--trd-mist); }
.trd-mini__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.trd-mini__title { font-size: 15px; font-weight: 500; color: var(--trd-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trd-mini__sub { font-size: 13px; color: var(--trd-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trd-mini__player iframe { width: 100%; height: 42px; border: 0; display: block; }
.trd-mini__player audio { width: 100%; }
.trd-mini__close { width: 44px; height: 44px; border: 0; background: none; color: var(--trd-slate); font-size: 22px; cursor: pointer; }
body.has-mini .trd-to-top { bottom: 104px; }
.trd-play.is-active .trd-play__icon { width: 17px; height: 21px; border: 0; border-left: 6px solid var(--trd-paper); border-right: 6px solid var(--trd-paper); margin: 0; }
@media (max-width: 760px) {
	.trd-mini { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; height: auto; padding: 10px 8px 10px 10px; }
	.trd-mini__cover { width: 44px; height: 44px; }
	.trd-mini__player { grid-column: 1 / -1; grid-row: 2; }
	.trd-mini__close { grid-column: 3; grid-row: 1; }
}

/* Lightbox (site.js) */
a.trd-lb { display: block; cursor: zoom-in; }
.trd-lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(12, 14, 16, .94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.trd-lightbox[hidden] { display: none; }
.trd-lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100vh; padding: 48px 0 24px; }
.trd-lightbox__fig img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; display: block; }
.trd-lightbox__fig figcaption { display: flex; gap: 16px; justify-content: center; color: #d9dcd6; font-size: 13px; text-align: center; max-width: 720px; }
.trd-lightbox__count { color: #9aa09a; white-space: nowrap; }
.trd-lightbox__nav, .trd-lightbox__close { background: none; border: 0; color: #fff; cursor: pointer; font: 300 44px/1 var(--trd-font-body); width: var(--trd-tap); height: var(--trd-tap); margin: auto; }
.trd-lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
body.admin-bar .trd-lightbox__close { top: 44px; } /* clear of the WordPress toolbar */
@media (max-width: 782px) { body.admin-bar .trd-lightbox__close { top: 58px; } }
.trd-lightbox__nav:hover, .trd-lightbox__close:hover { color: var(--trd-teal); }
.trd-lightbox.is-single .trd-lightbox__nav { visibility: hidden; }
body.trd-lb-open { overflow: hidden; }
@media (max-width: 767px) {
	.trd-lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; }
	.trd-lightbox__nav { font-size: 34px; }
}

/* Self-hosted video (Instagram posts): its own play icon, gone once it plays (owner, 2026-12-03) */
.trd-vid { position: relative; display: block; background: #111; overflow: hidden; }
.trd-vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.trd-vid.is-playing video { object-fit: contain; }
.trd-vid__play { position: absolute; inset: 0; z-index: 3; border: 0; padding: 0; background: rgba(0, 0, 0, .12); cursor: pointer; }
.trd-vid__play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(28, 33, 41, .78); }
.trd-vid__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -6px; border-left: 19px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.trd-vid__play:hover::before { background: var(--trd-pink); }
.trd-vid.is-playing .trd-vid__play { display: none; }
.trd-tile .trd-vid.trd-tile__vid { position: absolute; inset: 0; }
.trd-tile.has-video .trd-tile__over { pointer-events: none; z-index: 4; }
.trd-tile.has-video .trd-tile__title { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.trd-tile.has-video .trd-tile__date, .trd-tile.has-video .trd-tile__label { color: rgba(255, 255, 255, .85); }
.trd-tile.has-video:has(.is-playing) .trd-tile__over, .trd-tile.has-video.is-playing .trd-tile__over { display: none; }
