/*
Theme Name: IDIMT
Theme URI: https://idimt.org/
Description: Theme of the IDIMT conference website (Interdisciplinary Information Management Talks). Rebuilt in 2026 from the archived idimt.org; layout and styles follow the original Optimizer PRO theme by OptimizerWP (GPL v2 or later), whose CSS and scripts are bundled in /assets.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Author: IDIMT organisers
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idimt
*/

/* Small additions on top of the original styles. */
.ast_pagenav { text-align: center; padding: 20px 0 40px; clear: both; }
.ast_pagenav .page-numbers { display: inline-block; padding: 6px 12px; margin: 2px; border: 1px solid #ddd; color: #555; text-decoration: none; }
.ast_pagenav .page-numbers.current { background: #016b42; border-color: #016b42; color: #fff; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
#sidebar .textwidget img { display: block; margin: 0 auto 15px; }

/* Front-page header: the original theme placed the title over a fixed-height picture, so on many
   screen widths the menu overlapped the title. Here the block grows with its content and the
   picture fills the background. */
@media screen and (min-width: 481px) {
	body.home #stat_img { position: relative; overflow: hidden; }
	body.home #stat_img .stat_bg_img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
	body.home #slidera .stat_content_inner { position: relative !important; top: auto !important; bottom: auto !important; transform: none !important; padding: 210px 0 50px; min-height: 0; }
	body.home #slidera .static_slide_conwrap > h1:empty,
	body.home #slidera .static_slide_conwrap > .spacer { display: none; }
}

/* Emoji in titles/breadcrumbs (WordPress turns them into small images): keep them text-sized. */
img.emoji, .layerbread img, .breadcrumbs img { display: inline !important; width: 1em !important; height: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; border: none !important; box-shadow: none !important; padding: 0 !important; }

/* Cookie consent bar (shown only when a Google Analytics ID is set). */
#idimt-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #016b42; color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 14px; box-shadow: 0 -2px 8px rgba(0,0,0,.2); }
#idimt-consent[hidden] { display: none; }
#idimt-consent p { display: inline; margin: 0 12px 0 0; color: #fff; }
#idimt-consent a { color: #fff; text-decoration: underline; }
#idimt-consent button { margin: 6px 4px 0; padding: 6px 18px; border: 1px solid #fff; background: #fff; color: #016b42; font-weight: 600; cursor: pointer; border-radius: 3px; }
#idimt-consent button.idimt-consent-no { background: transparent; color: #fff; }
