/* PepperScale Tools - Festivals & Events (pst-fest)
   Card shell per docs/design-card-specs.md, tokens per docs/design-color-tokens.md.
   Text is set a step larger than the older cards (Matt has found new tools'
   text too small on first preview). Links are written as `.pst-fest a.x` so
   they beat the theme's `.entry-content a`, and name :visited too. */

.pst-fest, .pst-fest * { box-sizing: border-box; }
.pst-fest a, .pst-fest a:visited { color: inherit; text-decoration: none; }

.pst-fest {
	background: #faf6f0;
	border: 1px solid #e3d8c6;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(42, 35, 32, .05);
	color: #2a2320;
	font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	margin: 26px 0;
}

.pst-fest-sec { padding: 20px 24px; border-top: 1px solid #ece2d3; }
.pst-fest-sec:first-child { border-top: 0; padding-top: 22px; }

.pst-fest-eyebrow {
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #8a6d2f; /* system bronze: gold #b08d4f fails AA on paper */
	margin-bottom: 8px;
}

.pst-fest-dim { color: #6b5f52; }

/* ---- festival page hero ------------------------------------------------- */

.pst-fest-when {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 30px;
	line-height: 1.15;
	color: #2a2320;
}
.pst-fest-hero.is-expected .pst-fest-when,
.pst-fest-hero.is-defunct .pst-fest-when { color: #6b5f52; font-style: italic; font-weight: 500; }
.pst-fest-hero.is-off .pst-fest-when { color: #8a1c16; }

.pst-fest-status {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1ebe1;
	color: #3f362e;
	font-size: 14.5px;
}
.pst-fest-hero.is-off .pst-fest-status { background: #f8e2df; color: #8a1c16; }

.pst-fest-where { margin-top: 12px; font-size: 18px; font-weight: 500; }

.pst-fest-facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: #3f362e; font-size: 15.5px; }
.pst-fest-facts li { margin: 0; }
.pst-fest-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b08d4f; margin: 0 8px 2px 0; }

.pst-fest-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pst-fest a.pst-fest-btn, .pst-fest a.pst-fest-btn:visited {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	background: #b3261e;
	color: #fff;
	font-weight: 600;
	font-size: 15.5px;
	border: 1px solid #b3261e;
}
.pst-fest a.pst-fest-btn:hover { background: #8a1c16; border-color: #8a1c16; }
.pst-fest a.pst-fest-btn.is-ghost, .pst-fest a.pst-fest-btn.is-ghost:visited { background: transparent; color: #8a1c16; border-color: #d9c9ad; }
.pst-fest a.pst-fest-btn.is-ghost:hover { background: #f1ebe1; }

.pst-fest-verified { margin-top: 14px; font-size: 14px; color: #6b5f52; }

.pst-fest-feat {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #2a2320;
	color: #f3ead9;
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	vertical-align: middle;
	cursor: help;
}

/* ---- pepper chips: aroma-family tints, same pairs as the other cards ---- */

.pst-fest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pst-fest .pst-fest-chip, .pst-fest a.pst-fest-chip:visited {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: #f1ebe1;
	color: #3f362e;
	font-weight: 600;
	font-size: 15px;
}
.pst-fest .pst-fest-chip.g-A, .pst-fest a.pst-fest-chip.g-A:visited { background: #eaf0dd; color: #4f6a24; }
.pst-fest .pst-fest-chip.g-B, .pst-fest a.pst-fest-chip.g-B:visited { background: #f8e7dd; color: #b3491f; }
.pst-fest .pst-fest-chip.g-C, .pst-fest a.pst-fest-chip.g-C:visited { background: #f0e6d6; color: #8a5a2b; }
.pst-fest .pst-fest-chip.g-D, .pst-fest a.pst-fest-chip.g-D:visited { background: #efe4f2; color: #77477f; }
.pst-fest a.pst-fest-chip:hover { text-decoration: underline; }

/* ---- page footer: social, past years, sources -------------------------- */

.pst-fest-links, .pst-fest-past { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pst-fest-links li, .pst-fest-past li { margin: 0; }
.pst-fest-links a, .pst-fest-update a, .pst-fest-sources a { color: #8a1c16 !important; text-decoration: underline !important; }

.pst-fest-sources summary { cursor: pointer; font-weight: 600; color: #3f362e; }
.pst-fest-sources ul { margin: 10px 0 0 18px; padding: 0; font-size: 15px; }
.pst-fest-sources li { margin: 4px 0; }

.pst-fest-update { font-size: 15px; color: #3f362e; background: #fdfbf7; border-radius: 0 0 14px 14px; }

/* ---- list + card rows --------------------------------------------------- */

.pst-fest-list { padding: 6px 0; }
.pst-fest-list.is-empty { padding: 0; }

.pst-fest-month {
	padding: 16px 24px 6px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #8a6d2f;
}

.pst-fest a.pst-fest-row, .pst-fest a.pst-fest-row:visited {
	display: grid;
	grid-template-columns: 11em 1fr;
	gap: 2px 16px;
	padding: 12px 24px;
	border-top: 1px solid #ece2d3;
	color: #2a2320;
}
.pst-fest a.pst-fest-row:hover { background: #fdfbf7; }
.pst-fest-month + a.pst-fest-row { border-top: 0; }

.pst-fest-row-when { grid-row: span 2; font-weight: 600; color: #8a1c16; font-size: 16px; }
.pst-fest-row.is-expected .pst-fest-row-when { color: #6b5f52; font-weight: 500; font-style: italic; }
.pst-fest-row-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.25; }
.pst-fest-row-place { color: #6b5f52; font-size: 15.5px; }
.pst-fest-row-status { grid-column: 2; font-size: 14px; color: #6b5f52; }

.pst-fest-card { padding-bottom: 4px; }
.pst-fest-card-eyebrow { padding: 18px 24px 0; margin: 0; }
.pst-fest-card a.pst-fest-row { border-top: 0; }

@media (max-width: 560px) {
	.pst-fest-sec { padding: 18px; }
	.pst-fest-when { font-size: 25px; }
	.pst-fest a.pst-fest-row, .pst-fest a.pst-fest-row:visited { grid-template-columns: 1fr; padding: 12px 18px; }
	.pst-fest-row-when { grid-row: auto; }
	.pst-fest-row-status { grid-column: 1; }
	.pst-fest-month { padding: 14px 18px 4px; }
}

/* ---- lead card + At a glance (2.8.6) ------------------------------------ */
.pst-fest-card { margin: 0 0 22px; }
.pst-fest-card img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid #e3d8c6; }
.pst-fest-glance { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.pst-fest-glance > div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid #ece2d3; }
.pst-fest-glance > div:nth-child(-n+2) { border-top: 0; }
.pst-fest-glance dt { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a6d2f; padding-top: 3px; }
.pst-fest-glance dd { margin: 0; color: #2a2320; font-size: 16.5px; line-height: 1.45; }
.pst-fest-glance dd strong { font-weight: 600; }
.pst-fest-glance .pst-fest-when { font-size: 19px; display: inline; }
.pst-fest-sub { display: block; color: #6b5f52; font-size: 15px; margin-top: 2px; }
.pst-fest-sub a { color: #b3261e; font-weight: 600; }
.pst-fest-highlights { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-size: 16.5px; color: #2a2320; }
.pst-fest-highlights li { margin: 0; padding-left: 18px; position: relative; line-height: 1.45; }
.pst-fest-highlights li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #b3261e; }
@media (max-width: 640px) {
	.pst-fest-glance, .pst-fest-highlights { grid-template-columns: 1fr; }
	.pst-fest-glance > div:nth-child(2) { border-top: 1px solid #ece2d3; }
	.pst-fest-glance > div { grid-template-columns: 100px 1fr; }
}

/* ---- /events/ hub: filters, map, list (2.9.0) --------------------------- */
.pst-fest-hub { padding: 0; }
.pst-fest-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 20px 24px 16px; border-bottom: 1px solid #ece2d3; }
.pst-fest-f { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pst-fest-f > span { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a6d2f; }
.pst-fest-f select { font: inherit; font-size: 15.5px; color: #2a2320; background: #fff; border: 1px solid #d9c9ad; border-radius: 8px; padding: 7px 30px 7px 10px; min-width: 9.5em; max-width: 100%; }
.pst-fest-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 15.5px; color: #3f362e; padding-bottom: 8px; margin: 0; cursor: pointer; }
.pst-fest-chk input { width: 17px; height: 17px; accent-color: #b3261e; margin: 0; }
.pst-fest .pst-fest-reset { font: inherit; font-size: 14.5px; background: none; border: 0; padding: 0 0 9px; color: #8a1c16; text-decoration: underline; cursor: pointer; }
.pst-fest .pst-fest-reset[hidden] { display: none; }

.pst-fest-map { padding: 14px 24px 4px; }
.pst-fest-map[hidden] { display: none; }
.pst-fest-map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 30px; font-size: 14px; color: #6b5f52; }
.pst-fest .pst-fest-back { font: inherit; font-size: 14.5px; font-weight: 600; background: #f1ebe1; border: 1px solid #e3d8c6; border-radius: 999px; padding: 4px 12px; color: #3f362e; cursor: pointer; }
.pst-fest .pst-fest-back[hidden] { display: none; }
.pst-fest-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-left: auto; }
.pst-fest-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin: 0 2px 0 10px; vertical-align: -1px; }
.pst-fest-legend .lg.is-firm { background: #b3261e; border: 2px solid #faf6f0; box-shadow: 0 0 0 1px #b3261e; }
.pst-fest-legend .lg.is-tba { background: #faf6f0; border: 2px solid #b3261e; }
.pst-fest-legend .lg.is-feat { background: #b3261e; box-shadow: 0 0 0 2px #faf6f0, 0 0 0 4px #b08d4f; }
.pst-fest-legend .lg-feat { display: none; }
.pst-fest-hub.has-feat .pst-fest-legend .lg-feat { display: inline; }

.pst-fest-map-box { position: relative; margin-top: 6px; }
.pst-fest-svg { display: block; width: 100%; height: auto; aspect-ratio: 975 / 610; overflow: hidden; }
.pst-fest-st { fill: #efe6d8; stroke: #faf6f0; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .15s; }
.pst-fest-st.is-has { fill: #e6d7bf; cursor: pointer; }
.pst-fest-st.is-has:hover { fill: #dcc8a8; }
.pst-fest-st.is-sel { fill: #d8c09a; }
.pst-fest-st.is-inset-off { display: none; }
.pst-fest-pin { cursor: pointer; outline: none; }
.pst-fest-pin .dot { fill: #b3261e; stroke: #faf6f0; }
.pst-fest-pin.is-tba .dot { fill: #faf6f0; stroke: #b3261e; }
.pst-fest-pin .ring { fill: none; stroke: #b08d4f; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.pst-fest-pin:hover .dot, .pst-fest-pin:focus-visible .dot, .pst-fest-pin.is-sel .dot { fill: #8a1c16; stroke: #2a2320; }
.pst-fest-pin.is-tba:hover .dot, .pst-fest-pin.is-tba:focus-visible .dot, .pst-fest-pin.is-tba.is-sel .dot { fill: #f8e2df; stroke: #8a1c16; }

.pst-fest-pop { position: absolute; z-index: 5; width: 290px; max-width: calc(100% - 12px); max-height: 280px; overflow: auto; background: #fff; border: 1px solid #e3d8c6; border-radius: 12px; box-shadow: 0 8px 24px rgba(42, 35, 32, .16); padding: 6px 0; }
.pst-fest-pop[hidden] { display: none; }
.pst-fest .pst-fest-pop-x { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; border: 0; background: none; font-size: 20px; line-height: 1; color: #6b5f52; cursor: pointer; border-radius: 6px; }
.pst-fest .pst-fest-pop-x:hover { background: #f1ebe1; }
.pst-fest a.pst-fest-pop-item, .pst-fest a.pst-fest-pop-item:visited { display: block; padding: 9px 40px 9px 16px; border-top: 1px solid #ece2d3; color: #2a2320; }
.pst-fest a.pst-fest-pop-item:first-of-type { border-top: 0; }
.pst-fest a.pst-fest-pop-item:hover, .pst-fest a.pst-fest-pop-item:focus { background: #fdfbf7; }
.pst-fest-pop-when { display: block; font-size: 14px; font-weight: 600; color: #8a1c16; }
.pst-fest-pop-name { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 17px; line-height: 1.25; margin-top: 1px; }
.pst-fest-pop-place { display: block; font-size: 14px; color: #6b5f52; }
.pst-fest-pop .pst-fest-feat { margin-left: 4px; font-family: "Hanken Grotesk", system-ui, sans-serif; }

.pst-fest-count { padding: 12px 24px 0; font-size: 15px; font-weight: 600; color: #3f362e; }
.pst-fest-count:empty { display: none; }
.pst-fest-hub .pst-fest-list { padding: 0 0 6px; }
.pst-fest-hub .pst-fest-month[hidden], .pst-fest-hub .pst-fest-row[hidden] { display: none; }
.pst-fest-none { padding: 18px 24px; color: #6b5f52; }
.pst-fest-none[hidden] { display: none; }
.pst-fest-submit-link { font-size: 15.5px; color: #3f362e; background: #fdfbf7; border-radius: 0 0 14px 14px; }
.pst-fest-submit-link a { color: #8a1c16 !important; font-weight: 600; text-decoration: underline !important; }

@media (max-width: 560px) {
	.pst-fest-filters { padding: 16px 18px 14px; gap: 10px 12px; }
	.pst-fest-f { flex: 1 1 42%; }
	.pst-fest-f select { min-width: 0; width: 100%; }
	.pst-fest-map { padding: 12px 10px 4px; }
	.pst-fest-legend { margin-left: 0; font-size: 13px; }
	.pst-fest-count { padding: 12px 18px 0; }
}

/* ---- submit form (2.9.0) ------------------------------------------------ */
.pst-fest-form form { margin: 0; }
.pst-fest-lede { margin: 0 0 14px; font-size: 16.5px; }
.pst-fest-lede a { color: #8a1c16 !important; text-decoration: underline !important; font-weight: 600; }
.pst-fest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.pst-fest-ff { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.pst-fest-ff.is-wide, .pst-fest-chk.is-wide, .pst-fest-grid > .pst-fest-err { grid-column: 1 / -1; }
.pst-fest-ff > span:first-child { font-size: 15px; font-weight: 600; color: #2a2320; }
.pst-fest-ff > span:first-child em { font-style: normal; font-weight: 500; font-size: 12.5px; color: #8a6d2f; margin-left: 4px; }
.pst-fest-ff input:not([type=file]), .pst-fest-ff select, .pst-fest-ff textarea { font: inherit; font-size: 16px; color: #2a2320; background: #fff; border: 1px solid #d9c9ad; border-radius: 8px; padding: 9px 11px; width: 100%; }
.pst-fest-ff input:focus, .pst-fest-ff select:focus, .pst-fest-ff textarea:focus { outline: 2px solid #b3261e; outline-offset: 1px; border-color: #b3261e; }
.pst-fest-ff input[aria-invalid=true], .pst-fest-ff select[aria-invalid=true], .pst-fest-ff textarea[aria-invalid=true] { border-color: #b3261e; background: #fdf6f5; }
.pst-fest-ff small { font-size: 14px; color: #6b5f52; line-height: 1.4; }
.pst-fest-ff input[type=file] { font-size: 15px; }
.pst-fest-form .pst-fest-chk { align-items: flex-start; padding: 0; line-height: 1.45; }
.pst-fest-form .pst-fest-chk input { margin-top: 3px; flex: none; }
.pst-fest-ff > .pst-fest-err, .pst-fest-err { display: block; font-size: 14px; font-weight: 600; color: #8a1c16; }
.pst-fest-errbox { background: #f8e2df; color: #8a1c16; font-weight: 600; border-radius: 14px 14px 0 0; }
.pst-fest-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pst-fest-form .cf-turnstile { margin-top: 18px; }
.pst-fest .pst-fest-send { font: inherit; font-weight: 600; font-size: 16px; padding: 11px 26px; border-radius: 8px; border: 1px solid #b3261e; background: #b3261e; color: #fff; cursor: pointer; }
.pst-fest .pst-fest-send:hover { background: #8a1c16; border-color: #8a1c16; }
.pst-fest-fine { margin: 12px 0 0; font-size: 14px; color: #6b5f52; }
.pst-fest-done { font-size: 17px; }
@media (max-width: 640px) { .pst-fest-grid { grid-template-columns: 1fr; } }

/* ---- draft preview for editors (2.9.1) ---------------------------------- */
.pst-fest-draftnote { background: #f1ebe1; color: #3f362e; font-size: 15px; border-radius: 14px 14px 0 0; }
.pst-fest-draft { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px dashed #8a6d2f; color: #8a6d2f; font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
