/* Single Event (The Events Calendar Pro) — no Figma design yet.
   Temporary stopgap only: removes Kadence's global "Content Background"
   color so the page renders on a plain background until real styling is
   added. Keep separate from events-calendar.css, which is fully mapped to
   Figma nodes for List View and Month View only. */

/* Kadence's own #kadence-global-inline-css prints
   ".content-bg, body.content-style-unboxed .site { background:
   var(--global-palette2); }" sitewide (specificity 0,1,0) from its Content
   Background Customizer setting. Normal pages/posts get a more specific
   rule elsewhere that repaints .content-bg back to white, but TEC's
   single-event template wrapper never receives that override, so Kadence's
   raw global-palette2 (#1c5482, dark navy) shows through unmasked.
   .tribe-events-single.content-bg (0,2,0) is a compound selector built from
   two classes already present on this exact element (confirmed live via
   getComputedStyle: <div id="tribe-events-content" class="tribe-events-single
   entry content-bg">), which outranks Kadence's bare .content-bg rule
   without !important and without touching that selector's other site-wide
   uses. */
.tribe-events-single.content-bg {
	background: none;
}

/* ==========================================================================
   Match List View typography — no Figma node for the single-event template
   yet, so the four rules below reuse the equivalent already-styled elements
   from events-calendar.css's List View section (/events/) as the visual
   reference per direction, rather than a Figma node.
   ========================================================================== */

/* "Event Series: ..." marker (only rendered on events that belong to a
   recurring series). Matched to List View's
   .tribe-events-calendar-list__event-datetime-wrapper (font-size 14px,
   line-height 21px, color #757575, padding 0) — confirmed live via
   getComputedStyle both currently rendered 16px/24px, #041F3D (navy), and
   4px 0 padding instead. Font-family (Lato) and font-weight (400) already
   matched, so they're not repeated here.
   TEC's own custom-tables-v1/single.css ships
   ".tribe-events-series-relationship-marker, .tribe-events-series-
   relationship-single-marker" (specificity 0,1,0) setting these properties
   via --tec-color-text-primary. The element's own two real classes
   (.tribe-events-series-relationship-single-marker.tribe-common) give
   (0,2,0), outranking that rule without !important. */
.tribe-events-series-relationship-single-marker.tribe-common {
	font-size: 14px;
	line-height: 21px;
	color: #757575;
	padding: 0;
}

/* Subscribe-to-Calendar control. Confirmed live: no rule sets width — it's
   a plain block-level div, so it defaults to filling its container's full
   width (738px in the current layout). Per direction, shrink it to only as
   wide as its content (the button) needs, rather than matching any specific
   reference element. Scoped to .tribe-events-single (a real class already
   on the template's #tribe-events-content wrapper, confirmed live as an
   ancestor of this element) so List View's own
   .tribe-events-c-subscribe-dropdown in its sidebar column is untouched. */
.tribe-events-single .tribe-events-c-subscribe-dropdown {
	width: fit-content;
}

/* "Virtual Event" marker/icon. Matched to List View's bold virtual-event
   label (.tribe-common-b2--bold.tribe-events-virtual-virtual-event:
   font-weight 700, font-size 14px, line-height 21px) — confirmed live via
   getComputedStyle this currently rendered regular weight at 16px/24px
   instead. Color (#000000), text-transform, letter-spacing, and
   text-decoration already matched, so they're not repeated here. No
   competing rule sets these three properties (TEC's own skeleton CSS for
   this class only touches display/float/alignment), so no specificity
   fight — scoped to .tribe-events-single anyway for consistency with the
   rule above and to avoid bleeding into any other context that might reuse
   this exact marker class. */
.tribe-events-single .tribe-events-virtual-single-marker {
	font-weight: 700;
	font-size: 14px;
	line-height: 21px;
}

/* Previous/Next Event footer nav bar. Matched to List View's bottom
   pagination bar (#primary .tribe-events-calendar-list-nav: nav has
   padding: 24px 0 0; its ul has list-style: none, confirmed live) — the
   first pass above only re-colored the link text and left the bar itself
   unstyled: .tribe-events-nav-pagination (TEC's own skeleton rule,
   specificity 0,1,0) still had padding: 0, and .tribe-events-sub-nav's
   disc bullet is an unstyled browser list default with no competing rule
   at all, so it rendered as a plain bulleted list with no top separation
   instead of a proper nav bar. Scoping .tribe-events-sub-nav to
   .tribe-events-single (0,2,0) keeps any other TEC view reusing that same
   generic class name untouched. */
.tribe-events-nav-pagination {
	padding: 24px 0 0;
}

.tribe-events-single .tribe-events-sub-nav {
	list-style: none;
}

/* The "»" chevron was never actually invisible-by-styling — it's
   unconditionally hidden by TEC's own tribe-events-single-skeleton.css rule
   ".tribe-events-single .tribe-events-sub-nav a span { display: none; }"
   (0,2,2), confirmed live (getComputedStyle showed display: none on the
   span). No amount of color/hover work on the <a> itself could have
   surfaced it. Adding .tribe-events-nav-pagination as an extra real
   ancestor class (confirmed live as the <nav>'s own class) gives
   (0,3,2), outranking TEC's rule without !important.
   A prior pass stopped at making the "»" character itself visible and
   called that a match for List View's nav icon — it was never actually
   compared shape-for-shape against the reference. The reference chevron
   (.tribe-events-c-nav__next-icon-svg / __prev-icon-svg, confirmed live via
   outerHTML) is a single caret-right triangle (viewBox 0 0 10 16, path
   "M.3 1.6L1.8.1 9.7 8l-7.9 7.9-1.5-1.5L6.7 8 .3 1.6z"), sized 7x11px —
   a genuinely different shape from "»" (a double angle-quote character).
   Replacing the text glyph with a CSS mask of that exact path (same
   viewBox/path data, same 7x11 size as the reference icon rule below)
   makes the two render identically. background-color: currentColor
   (rather than a hardcoded fill in the data URI) means the icon tracks
   the link's own color automatically, including on :hover — same
   behavior as the reference's SVG fill, without duplicating the hover
   color here. font-size: 0 collapses the now-decorative text without
   removing it from the DOM. */
.tribe-events-single .tribe-events-nav-pagination .tribe-events-sub-nav a span {
	display: inline-block;
	width: 7px;
	height: 11px;
	margin-left: 6px;
	font-size: 0;
	line-height: 0;
	vertical-align: middle;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M.3 1.6L1.8.1 9.7 8l-7.9 7.9-1.5-1.5L6.7 8 .3 1.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M.3 1.6L1.8.1 9.7 8l-7.9 7.9-1.5-1.5L6.7 8 .3 1.6z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Matched to List View's nav buttons
   (#primary .tribe-events.tribe-events-view--list .tribe-events-c-nav__prev/
   __next in events-calendar.css: font-weight 600, font-size 14px,
   line-height 22.4px, color #041F3D, underlined (solid, default
   thickness/offset), hover #1C5482) even though the underlying markup is
   completely different here (TEC's classic .tribe-events-nav-pagination
   single <a> link, not the button-based List View nav) — matching the text
   treatment is what makes the two page types feel consistent. Font-family
   (Lato) and text-transform (none) already matched confirmed live, so
   they're not repeated here. A prior pass here set text-decoration: none,
   on the mistaken assumption that the List View reference was unstyled —
   it was never actually checked against that element's computed style, and
   .tribe-events-c-nav__next/__prev are in fact underlined by browser
   default (Kadence/TEC set no text-decoration rule on them at all).
   .tribe-events-nav-pagination a (0,1,1) outranks the bare "a" rule in
   global.min.css (0,0,1) without !important. */
.tribe-events-nav-pagination a {
	font-weight: 600;
	color: #041F3D;
	font-size: 14px;
	line-height: 22.4px;
	text-decoration: underline;
}

.tribe-events-nav-pagination a:hover {
	color: #1C5482;
}

/* ==========================================================================
   "Watch" virtual-event link button (event meta area).
   ========================================================================== */

/* Matched to List View's bordered top-bar "Today" button
   (.tribe-common-c-btn-border-small, already re-colored in
   events-calendar.css to border/text #2577BD, white background, 6px
   radius, 600 weight, no underline, for this rebrand) — confirmed live this
   link currently has none of that: transparent background, no border,
   Kadence's default underlined link-blue (#1c5482) from the bare "a" rule
   in global.min.css. Scoped to .tribe-events-single rather than the literal
   #post-10000875 test-event ID given in the request — that ID belongs to
   this one test event only, so scoping to it would leave every other
   event's virtual-link button unstyled. TEC's own
   .tribe-events-virtual-link-button skeleton rule (0,1,0) only sets
   display/alignment/padding; .tribe-events-single .tribe-events-virtual-
   link-button (0,2,0) outranks it for the padding override without
   !important. */
.tribe-events-single .tribe-events-virtual-link-button {
	background-color: #FFFFFF;
	border: 1px solid #2577BD;
	border-radius: 6px;
	padding: 6px 15px;
	color: #2577BD;
	font-weight: 600;
	text-decoration: none;
}

.tribe-events-single .tribe-events-virtual-link-button:hover {
	background-color: #2577BD;
	color: #FFFFFF;
}

/* The previous rule here targeted the <svg> wrapper itself, but that never
   actually controlled the icon's color: TEC's own events-virtual-single-
   skeleton.css sets fill on the <path> directly —
   ".tribe-events-virtual-link-button__icon path { fill:
   var(--tec-color-background); }" (0,1,1) — and --tec-color-background
   resolves to #fff on this site (confirmed live). That's an invisible white
   icon on the white button background added above. Targeting the path
   itself with .tribe-events-single .tribe-events-virtual-link-button__icon
   path (0,2,1) outranks TEC's rule without !important, and currentColor
   keeps the icon following the link's own text color in both the default
   and :hover states. */
.tribe-events-single .tribe-events-virtual-link-button__icon path {
	fill: currentColor;
}

/* ==========================================================================
   "After Event HTML" callout box — reuses List/Month View's styling
   (Figma 952:4343 / 952:4344 / 952:4337 / 532:3665 / 532:3666), same as the
   other sections above with no dedicated single-event Figma node.
   ========================================================================== */

/* events-calendar.css scopes this same callout to ".tribe-common-l-container
   .tribe-events-after-html" — a real ancestor wrapper on List/Month View's
   markup. Confirmed live that wrapper does not exist on the single-event
   template at all (no ".tribe-common-l-container" or even ".tribe-common"
   ancestor anywhere above this div), so that rule's selector simply never
   matches here and the box rendered fully unstyled (0 width/padding/border/
   background, confirmed via getComputedStyle). The real ancestor on this
   template is "#tribe-events-pg-template" (confirmed live as the wrapping
   <section>'s own id) — also confirmed live there is no competing rule of
   any kind on this element here (not even a skeleton reset), so this needs
   no specificity fight, just a selector that actually reaches the element. */
#tribe-events-pg-template .tribe-events-after-html {
	background-color: rgba(253, 185, 42, 0.2);
	border: 1px solid #FDB92A;
	border-radius: 12px;
	padding: 24px;
	margin-top: 24px;
}

#tribe-events-pg-template .tribe-events-after-html h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #041F3D;
	margin: 0 0 16px;
}

/* Lightbulb glyph — same icon/positioning as events-calendar.css's List/
   Month View version of this box (Figma 952:6558, native 32x32,
   stroke="#FDB92A"); see that file for the full rationale. Duplicated here
   rather than shared because this template scopes the callout box to
   "#tribe-events-pg-template" instead of ".tribe-common-l-container". */
#tribe-events-pg-template .tribe-events-after-html h3:first-child::before {
	content: '';
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M20 18.6669C20.2667 17.3334 20.9333 16.4 22 15.3333C23.3333 14.1332 24 12.3997 24 10.6662C24 8.54434 23.1571 6.50934 21.6569 5.00893C20.1566 3.50852 18.1217 2.6656 16 2.6656C13.8783 2.6656 11.8434 3.50852 10.3431 5.00893C8.84285 6.50934 8 8.54434 8 10.6662C8 11.9997 8.26667 13.5998 10 15.3333C10.9333 16.2667 11.7333 17.3334 12 18.6669M12 24.0006H20M13.3333 29.3344H18.6667' stroke='%23FDB92A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

#tribe-events-pg-template .tribe-events-after-html p {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	color: #041F3D;
	margin: 0 0 16px;
}

#tribe-events-pg-template .tribe-events-after-html ul + p {
	border-top: 1px solid #eaeaea;
	padding-top: 24px;
}

#tribe-events-pg-template .tribe-events-after-html ul {
	padding-left: 20px;
	list-style: disc;
	margin-bottom: 24px;
}

#tribe-events-pg-template .tribe-events-after-html li {
	font-family: 'Lato', sans-serif;
	color: #4C4E4F;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 8px;
}

@media (min-width: 768px) {
	#tribe-events-pg-template .tribe-events-after-html {
		padding: 40px;
	}

	#tribe-events-pg-template .tribe-events-after-html h3 {
		font-size: 18px;
	}

	#tribe-events-pg-template .tribe-events-after-html p {
		font-size: 14px;
	}

	#tribe-events-pg-template .tribe-events-after-html li {
		font-size: 15px;
	}
}
