/*-------------------------------*/
/*- COLOR & STYLE OVERRIDES -----*/
/*-------------------------------*/
/* Uses CSS custom properties set via the plugin settings page.
   Fallback values match the defaults defined in settings-page.php
   so the page looks correct even when no settings have been saved.

   Rules that compete with linklings_wp_program-public.css are scoped
   under .linklings-wp-plugin-contents for higher specificity. */


/*- PAGE, HEADER & FOOTER -------*/
/* body/header/footer rules are NOT in this static file. They are
   emitted inline by cps_build_inline_css() ONLY when explicitly set
   on the settings page. When blank, the WordPress theme controls them. */

/*- CONTENT AREA ----------------*/
.linklings-wp-plugin-contents {
	background-color: var(--cps-content-bg, inherit);
}

/*- SCHEDULE TABLE ROWS ---------*/
/* The JS applies both .odd and .even classes to visible rows.
   Using tr.even (not tr:not(.odd)) avoids coloring nested table
   rows inside combo-sess-pres cells that have neither class. */
.linklings-wp-plugin-contents .tablesched tr.odd td {
	background-color: var(--cps-row-odd-bg, #eeeeee);
}
.linklings-wp-plugin-contents .tablesched tr.even td {
	background-color: var(--cps-row-even-bg, #ffffff);
}
.linklings-wp-plugin-contents .tablesched td {
	padding: var(--cps-row-density, .3em);
}

/*- SESSION PAGE PRESENTATION LIST ---*/
/* The session-contents table doesn't use JS-applied .odd/.even,
   so we use :nth-child for alternating rows. */
.linklings-wp-plugin-contents .session-contents tr:nth-child(odd) td,
.linklings-wp-plugin-contents.session-display .session-contents tr:nth-child(odd) td {
	background-color: var(--cps-row-odd-bg, #eeeeee);
}
.linklings-wp-plugin-contents .session-contents tr:nth-child(even) td,
.linklings-wp-plugin-contents.session-display .session-contents tr:nth-child(even) td {
	background-color: var(--cps-row-even-bg, #ffffff);
}
.linklings-wp-plugin-contents .session-contents td,
.linklings-wp-plugin-contents.session-display .session-contents td {
	padding: var(--cps-row-density, .3em);
}

/*- FRAMEWORK BORDER OVERRIDE --------*/
/* The layers-elementor framework.css sets border: 2px solid rgba(0,0,0,0.08)
   on table/td/th globally. Override it on program tables so the alternating
   row colors look clean. Table grid lines are controlled by the plugin setting. */
.linklings-wp-plugin-contents table,
.linklings-wp-plugin-contents table td,
.linklings-wp-plugin-contents table th {
	border: none;
}

/*- SCHEDULE TABLE HEADERS ------*/
.linklings-wp-plugin-contents .tablesched th {
	background-color: var(--cps-table-header-bg, #eeeeee);
	color: var(--cps-table-header-text, #000000);
}

/*- SCHEDULE TABLE GRID LINES ---*/
/* "Horizontal" and "Full grid" are handled via cps_build_inline_css()
   which sets --cps-table-border-h and --cps-table-border-v. */
.linklings-wp-plugin-contents .tablesched td {
	border-bottom: var(--cps-table-border-h, none);
}
.linklings-wp-plugin-contents .tablesched td,
.linklings-wp-plugin-contents .tablesched th {
	border-left: var(--cps-table-border-v, none);
	border-right: var(--cps-table-border-v, none);
}

/*- DATE & CATEGORY TABS --------*/
.linklings-wp-plugin-contents .large-date-sels div,
.linklings-wp-plugin-contents .small-date-sels div {
	background-color: var(--cps-selector-bg, #eeeeee);
	border-radius: var(--cps-selector-radius, 0px);
}
.linklings-wp-plugin-contents .org-type-sels div {
	background-color: var(--cps-selector-bg, #eeeeee);
	border-radius: var(--cps-selector-radius, 0px);
}
.linklings-wp-plugin-contents .large-date-sels div.selected-date,
.linklings-wp-plugin-contents .small_date_sel.selected-date,
.linklings-wp-plugin-contents .org-type-sels div.selected-org {
	background-color: var(--cps-selector-active-bg, #999999);
	color: var(--cps-selector-active-text, #ffffff);
}

/*- DETAIL PAGE TITLE BAR -------*/
/* Both descendant (.x .y) and same-element (.x.y) selectors are needed
   because some pages put both classes on the same wrapper element. */
.linklings-wp-plugin-contents .session-display div.presentation-title,
.linklings-wp-plugin-contents .presentation-display div.presentation-title,
.linklings-wp-plugin-contents.session-display div.presentation-title,
.linklings-wp-plugin-contents.presentation-display div.presentation-title {
	background-color: var(--cps-title-bg, #eeeeee);
	color: var(--cps-title-text, #000000);
}

/*- ACTION BUTTONS ---------------*/
.linklings-wp-plugin-contents .attendee-tools-sect .info-section,
.linklings-wp-plugin-contents .under-tools-sect .info-section {
	background-color: var(--cps-action-bg, #777777);
	color: var(--cps-action-text, #ffffff);
	border-radius: var(--cps-action-radius, .2em);
}
.linklings-wp-plugin-contents .attendee-tools-sect a:link,
.linklings-wp-plugin-contents .attendee-tools-sect a:visited {
	color: var(--cps-action-text, #ffffff);
}

/*- SECTION SHADOW ---------------*/
.linklings-wp-plugin-contents .session-display,
.linklings-wp-plugin-contents .presentation-display,
.linklings-wp-plugin-contents.session-display,
.linklings-wp-plugin-contents.presentation-display {
	box-shadow: var(--cps-section-shadow, none);
}

/*- PRESENTER PHOTO SHAPE --------*/
.linklings-wp-plugin-contents .session-display .presenter-details-sect img.presenter-pic,
.linklings-wp-plugin-contents .presentation-display .presenter-details-sect img.presenter-pic,
.linklings-wp-plugin-contents .presentation-display .presenter-details-list img.presenter-pic,
.linklings-wp-plugin-contents.session-display .presenter-details-sect img.presenter-pic,
.linklings-wp-plugin-contents.presentation-display .presenter-details-sect img.presenter-pic,
.linklings-wp-plugin-contents.presentation-display .presenter-details-list img.presenter-pic,
.linklings-wp-plugin-contents .presenter-photo img,
.linklings-wp-plugin-contents.presenter-display .presenter-photo img {
	border-radius: var(--cps-photo-radius, 50%);
	border-color: var(--cps-border-color, #cccccc);
}

/*- NAVIGATION -------------------*/
.linklings-wp-plugin-contents .current-page.main-page-link a {
	color: var(--cps-current-page-text, #999999);
}
.linklings-wp-plugin-contents .main-page-links a {
	text-transform: var(--cps-nav-text-case, uppercase);
}

/*- LINKS ------------------------*/
/* text-decoration is handled inline by cps_build_inline_css() with
   !important, since the linklings plugin sets text-decoration: none
   on .linklings-wp-plugin-contents a at equal specificity. */
.linklings-wp-plugin-contents a {
	color: var(--cps-link-color, #0073aa);
}
.linklings-wp-plugin-contents a:hover {
	color: var(--cps-link-hover-color, #005177);
}
