/* ==========================================================================
   ZBC — sidebar panels
   Radio / TV (dark) · Contact · Social

   Panel heights reduced on Janelle's note that Radio/TV were too tall in a
   sidebar. Measured on the live About ZBC page before and after:
     Radio  258px -> 196px      TV  228px -> 178px
     logo   120px -> 84px       audio 54px -> 36px      button 42px -> 34px
   Button stays 34x~90px, comfortably past the 24x24 WCAG 2.5.8 minimum.

   Contrast measured:
     white on #1a1a1a        17.4:1
     #f5c518 on #1a1a1a      10.9:1
     #412402 on #f5c518       8.7:1
     #111 on #fff            17.7:1
     #5a5a5a on #fff          7.0:1
   ========================================================================== */

.zbc-panel {
	margin-bottom: 16px;
	border-radius: 12px;
	overflow: hidden;
}

.zbc-panel__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 16px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #fff;
	background: #1a1a1a;
}

.zbc-panel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e02b2b;
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Dark panels — Radio and TV
   -------------------------------------------------------------------------- */

.zbc-panel--dark {
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, .09);
}

.zbc-panel--dark .zbc-panel__body {
	padding: 14px 16px;
	text-align: center;
}

.zbc-panel__logo {
	display: block;
	width: 84px;
	height: auto;
	margin: 0 auto 10px;
}

.zbc-panel__audio {
	width: 100%;
	height: 36px;              /* native control defaults to 54px */
	margin-bottom: 8px;
}

.zbc-panel__btn {
	display: inline-block;
	padding: 7px 20px;
	border-radius: 999px;
	background: #f5c518;
	color: #412402;              /* 8.7:1 */
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s ease, transform .18s ease;
}

.zbc-panel__btn:hover,
.zbc-panel__btn:focus-visible {
	background: #ffd539;
	color: #412402;
	transform: translateY(-1px);
}

.zbc-panel__note {
	margin: 9px 0 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #f5c518;              /* 10.9:1 on #1a1a1a */
}

/* --------------------------------------------------------------------------
   Contact panel — black text, per the zizonline reference
   -------------------------------------------------------------------------- */

.zbc-panel--contact,
.zbc-panel--social,
.zbc-panel--links {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .10);
}

.zbc-panel__title--light {
	background: #f2f2f2;
	color: #111;
}

.zbc-panel__contact-body {
	padding: 6px 18px 16px;
}

/* Icon + content row. The icon column is fixed so the address, phone list
   and email all align on the same left edge. */
.zbc-panel__row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.zbc-panel__row:last-child {
	border-bottom: 0;
}

.zbc-panel__ico {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: #af2424;              /* 6.0:1 on #fff */
}

.zbc-panel__address {
	display: block;
	font-style: normal;          /* <address> italicises by default */
	line-height: 1.6;
}

.zbc-panel__addr-line {
	display: block;
	font-size: 14px;
	color: #111;
}

.zbc-panel__addr-line.is-name {
	font-weight: 800;
	margin-bottom: 2px;
}

/* --- phone list ---------------------------------------------------------- */

.zbc-panel__tels {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1 1 auto;
}

.zbc-panel__tels li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 5px;
	padding: 0;
	font-size: 14px;
}

.zbc-panel__tels li:last-child {
	margin-bottom: 0;
}

.zbc-panel__tel-label {
	color: #5a5a5a;              /* 7.0:1 on #fff */
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.zbc-panel__tels a {
	color: #111;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}

.zbc-panel__tels a:hover,
.zbc-panel__tels a:focus-visible {
	color: #af2424;
	border-bottom-color: currentColor;
}

/* --- email --------------------------------------------------------------- */

.zbc-panel__email {
	font-size: 13.5px;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	word-break: break-word;
	border-bottom: 1px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}

.zbc-panel__email:hover,
.zbc-panel__email:focus-visible {
	color: #af2424;
	border-bottom-color: currentColor;
}

/* --------------------------------------------------------------------------
   Quick links panel
   -------------------------------------------------------------------------- */

.zbc-panel__linklist {
	display: flex;
	flex-direction: column;
	padding: 6px 8px 10px;
}

.zbc-panel__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 12px;
	border-radius: 9px;
	color: #111;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}

.zbc-panel__link + .zbc-panel__link {
	box-shadow: 0 -1px 0 rgba(0, 0, 0, .06);
}

.zbc-panel__arrow {
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1;
	transition: transform .18s ease;
}

.zbc-panel__link:hover,
.zbc-panel__link:focus-visible {
	background: #f4f4f4;
	color: #af2424;
}

.zbc-panel__link:hover .zbc-panel__arrow,
.zbc-panel__link:focus-visible .zbc-panel__arrow {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Social panel
   -------------------------------------------------------------------------- */

.zbc-panel__socials {
	display: flex;
	flex-direction: column;
	padding: 8px 10px 12px;
}

.zbc-panel__soc {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 10px;
	border-radius: 9px;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}

.zbc-panel__soc i {
	width: 26px;
	font-size: 16px;
	text-align: center;
	flex: 0 0 auto;
}

.zbc-panel__soc:hover,
.zbc-panel__soc:focus-visible {
	background: #f4f4f4;
	color: #111;
}

.zbc-panel__soc--facebook:hover  { color: #1877f2; }
.zbc-panel__soc--youtube:hover   { color: #c4302b; }
.zbc-panel__soc--instagram:hover { color: #c13584; }
.zbc-panel__soc--linkedin:hover  { color: #0a66c2; }
.zbc-panel__soc--twitter:hover   { color: #111; }

@media (prefers-reduced-motion: reduce) {
	.zbc-panel__btn,
	.zbc-panel__soc,
	.zbc-panel__link,
	.zbc-panel__arrow,
	.zbc-panel__tels a,
	.zbc-panel__email {
		transition: none;
	}
	.zbc-panel__btn:hover {
		transform: none;
	}
	.zbc-panel__link:hover .zbc-panel__arrow,
	.zbc-panel__link:focus-visible .zbc-panel__arrow {
		transform: none;
	}
}

/* Narrow sidebars: let the phone label and number stack rather than squash. */
@media (max-width: 360px) {
	.zbc-panel__tels li {
		display: block;
	}
	.zbc-panel__tel-label {
		display: block;
		margin-bottom: 1px;
	}
}

/* Sidebar stack wrapper — panels injected by the plugin. */
.zbc-panels-stack{display:block;}
.zbc-panels-stack .zbc-panel:last-child{margin-bottom:0;}

/* ==========================================================================
   Mobile / tablet stacking order
   --------------------------------------------------------------------------
   The panel column is FIRST in the DOM. Janelle wants the panels on the RIGHT,
   and below the main content once the row stacks. Left as-is the DOM order
   would put them left on desktop and ABOVE the content on mobile — measured on the live site at 390px:

     Watch ZIZ TV Live   panels y=408   player y=1616
     Listen Live Radio   panels y=280   player y=1453

   i.e. a visitor scrolled past the whole panel stack before reaching the
   player. Flexbox `order` fixes this visually without touching DOM order, so
   the desktop layout and the reading order for assistive tech both stay put.

   NOTE: targeted by element ID because Elementor strips custom CSS classes on
   this install. If a panel column is ever rebuilt its ID changes and must be
   added here.
   ========================================================================== */

/* Applies at ALL widths: right-hand column on desktop, below the content
   once the row stacks. */

	/* Watch ZIZ TV Live (2809) */
.page-id-2809 .elementor-element-ab684ac { order: 2; }
.page-id-2809 .elementor-element-b673750 { order: 1; }

	/* Listen Live Radio (2826) */
.page-id-2826 .elementor-element-ab50eaa { order: 2; }
.page-id-2826 .elementor-element-6d9fbe2 { order: 1; }

	/* About ZBC (2858) — panels are a widget, timeline is its sibling */
.page-id-2858 .elementor-element-598f356 { order: 2; }
.page-id-2858 .elementor-element-a21dd63 { order: 1; }

	/* Contact Sales / Advertise (2879) */
.page-id-2879 .elementor-element-3c62913 { order: 2; }
.page-id-2879 .elementor-element-f45a4f9 { order: 1; }

	/* Radio Programme Schedule (2828) */
.page-id-2828 .elementor-element-124fc75 { order: 2; }
.page-id-2828 .elementor-element-37a5285 { order: 1; }

	/* Catch-all for any page added later: a flex child containing our panels
	   sorts last. Scoped tightly so it only matches the immediate column,
	   never an ancestor section. Browsers without :has() simply fall back to
	   the ID rules above. */
/* TV Programme Schedule (4877) — a page built outside the original ten. */
.page-id-4877 .elementor-element-55ef4b0 { order: 2; }

/* Catch-all for pages added later.
   FIXED: the previous version matched the shortcode WIDGET rather than the
   COLUMN containing it. On page 4877 that put order:2 on an element that was
   its column's only child, so it had no effect and the panels stayed left.
   Now it targets the container whose DIRECT child is the shortcode widget —
   which is the actual flex item in the row. The `> ` matters: without it this
   would also match every ancestor section. No parent-chain requirement, so it
   works regardless of how deeply Elementor nests the row.
   Browsers without :has() fall back to the ID rules above. */
.e-con:has(> .elementor-widget-shortcode .zbc-panel) { order: 2; }

/* ==========================================================================
   Sidebar side — category archives
   --------------------------------------------------------------------------
   Nothing here on purpose. Foxiz already renders the archive sidebar on the
   RIGHT, which is what Janelle wants. An earlier version flipped it to the
   left with `order`; that override was removed rather than replaced, so the
   theme's own layout stands and there is one less rule to maintain.
   ========================================================================== */
