/*
Theme Name: ScienceGrid
Description: Україномовна тема для календаря наукових конференцій та архіву збірників матеріалів.
Version: 1.2.8
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 7.1
Text Domain: sciencegrid
*/

:root {
	--sg-ink: #182d2d;
	--sg-muted: #526663;
	--sg-bg: #f5f8f6;
	--sg-paper: #fff;
	--sg-line: #dce7e1;
	--sg-green: #106056;
	--sg-dark: #123f38;
	--sg-pale: #edf6f1;
	--sg-radius: 13px;
	--sg-sidebar-width: 277px;
	--sg-layout-gap: 24px;
	--sg-single-column-width: 890px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--sg-bg);
	color: var(--sg-ink);
	font: 16px/1.58 "Segoe UI", system-ui, -apple-system, sans-serif;
	overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sg-green); text-underline-offset: .2em; }
a:hover { color: var(--sg-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
	outline: 3px solid #b27a16;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	z-index: 1000;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: .65rem 1rem;
	clip-path: none;
	background: var(--sg-paper);
}

.sg-wrap {
	width: min(calc(100% - 64px), 1184px);
	margin-inline: auto;
}

.sg-main {
	flex: 1 0 auto;
	padding-bottom: clamp(2.8rem, 6vw, 5rem);
}

.sg-header {
	position: relative;
	z-index: 2;
	background: var(--sg-paper);
	border-bottom: 1px solid var(--sg-line);
}

.sg-masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 17px;
}

.sg-brand, .sg-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sg-actions { flex-wrap: wrap; }
.sg-brand { min-width: 0; }
.sg-brand-mark { flex: 0 0 46px; }
.sg-brand .custom-logo-link { flex: 0 0 auto; }
.sg-brand .custom-logo { max-width: 104px; max-height: 54px; width: auto; }
.sg-brand-name { color: var(--sg-ink); text-decoration: none; line-height: 1.24; }
.sg-brand-name strong { display: block; font-size: 1.5rem; letter-spacing: -.045em; }
.sg-brand-name span { display: block; margin-top: 3px; color: var(--sg-muted); font-size: .78rem; }

/* Compensate for the transparent left margin of the horizontal wordmark. */
.sg-brand img.custom-logo[width="2172"][height="724"] { margin-inline-start: -4.1%; }
.sg-header .sg-brand:has(img.custom-logo[width="2172"][height="724"]) .sg-brand-name { margin-inline-start: 0; }

.sg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 43px;
	padding: .56rem .96rem;
	border: 1px solid var(--sg-green);
	border-radius: 8px;
	background: var(--sg-green);
	color: #fff;
	font-size: .88rem;
	font-weight: 650;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}

.sg-button:hover { background: var(--sg-dark); border-color: var(--sg-dark); color: #fff; }
.sg-button-outline { border-color: #b6cec5; background: var(--sg-paper); color: var(--sg-green); }
.sg-button-outline:hover { background: var(--sg-pale); border-color: #92b5a8; color: var(--sg-dark); }
.sg-button-ghost { border-color: #7da89e; background: transparent; }
.sg-button-ghost:hover { border-color: #c8e3d9; background: #ffffff18; }
.sg-menu-toggle { display: none; }

.sg-navigation { border-top: 1px solid var(--sg-line); }

.sg-nav-list, .sg-nav-list ul, .sg-footer ul, .sg-next-list, .sg-side-links {
	padding: 0;
	margin: 0;
	list-style: none;
}

.sg-nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0 clamp(.8rem, 2.1vw, 1.8rem);
}

.sg-nav-list li { position: relative; }
.sg-nav-list a {
	display: block;
	padding: .72rem 0 .64rem;
	border-bottom: 2px solid transparent;
	color: var(--sg-ink);
	font-size: 1.25rem;
	font-weight: 630;
	text-decoration: none;
}

.sg-nav-list a:hover { color: var(--sg-green); }
.sg-nav-list [aria-current], .sg-nav-list .current-menu-ancestor > a {
	border-color: var(--sg-green);
	color: var(--sg-green);
}

.sg-nav-list ul {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 178px;
	padding: 5px;
	border: 1px solid var(--sg-line);
	border-radius: 9px;
	background: var(--sg-paper);
	box-shadow: 0 12px 24px #102e231a;
}

.sg-nav-list ul a { padding: .55rem .7rem; border: 0; border-radius: 5px; }
.sg-nav-list ul a:hover, .sg-nav-list ul [aria-current] { background: var(--sg-pale); }
.sg-custom-menu .sub-menu { display: none; }
.sg-custom-menu li:hover > .sub-menu, .sg-custom-menu li:focus-within > .sub-menu { display: block; }

.sg-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1rem, 2.2vw, 2rem);
	padding: clamp(1.125rem, 2.6vw, 2rem);
	margin-block: clamp(18px, 3vw, 34px) clamp(28px, 4vw, 44px);
	overflow: hidden;
	border: 1px solid #1e574a;
	border-radius: 21px;
	background: radial-gradient(ellipse at 79% 50%, #15594a, transparent 63%), #073e33;
	color: #fff;
}

.sg-hero-benefits {
	display: grid;
	gap: .43rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-hero-benefits li {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: clamp(.5rem, 1.05vw, .8rem);
}

.sg-hero-icon {
	display: grid;
	place-items: center;
	width: clamp(2rem, 3.5vw, 2.375rem);
	aspect-ratio: 1;
	border-radius: 20%;
	background: #145b4c;
	color: #d1f5d9;
}

.sg-hero-icon .dashicons {
	width: 1em;
	height: 1em;
	font-size: clamp(1.2rem, 2.45vw, 1.72rem);
}

.sg-hero-doi {
	display: grid;
	place-items: center;
	width: 73%;
	aspect-ratio: 1;
	border: .11em solid currentColor;
	border-radius: 50%;
	font-size: clamp(.72rem, 1.31vw, .94rem);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.sg-hero-benefit {
	padding-inline-start: clamp(.58rem, 1.4vw, 1rem);
	border-inline-start: 1px solid #9fcfbc;
	font-size: clamp(.94rem, 1.6vw, 1.1875rem);
	line-height: 1.24;
	letter-spacing: -.022em;
}

.sg-hero-benefit strong { font-weight: 740; }
.sg-hero-accent { display: inline-block; max-width: 100%; color: #f8e4ac; }
.sg-hero .sg-actions { margin-top: 1.05rem; }

.sg-hero-illustration {
	position: relative;
	align-self: stretch;
}

.sg-hero-art {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 100%;
	max-width: 18rem;
	height: 100%;
	object-fit: contain;
}
.sg-home-content { margin: 0 0 2rem; }

.sg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--sg-sidebar-width);
	gap: var(--sg-layout-gap);
	align-items: start;
}

.sg-single-column, .sg-page-heading:has(+ .sg-single-column) { max-width: var(--sg-single-column-width); }
.sg-conference-layout {
	grid-template-areas: "announcement participation" "announcement related";
	grid-template-rows: auto 1fr;
	row-gap: 16px;
}

.sg-conference-layout > .sg-document { grid-area: announcement; }
.sg-conference-layout > .sg-conference-panel { grid-area: participation; }
.sg-conference-layout > .sg-sidebar { grid-area: related; }

.sg-panel {
	min-width: 0;
	background: var(--sg-paper);
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	box-shadow: 0 3px 12px #1d493307;
}

.sg-listing { scroll-margin-top: 56px; min-width: 0; }

.sg-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

.sg-section-heading h2 {
	margin: 0;
	font-size: clamp(1.3rem, 2.4vw, 1.78rem);
	letter-spacing: -.035em;
	line-height: 1.2;
}

.sg-result-count {
	flex: 0 0 auto;
	padding: .27rem .65rem;
	border-radius: 30px;
	background: #e4f1ea;
	color: #265b4f;
	font-size: .77rem;
	font-weight: 680;
}

.sg-filters {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, .9fr)) auto;
	align-items: end;
	gap: 10px;
	padding: 15px;
	border-bottom: 1px solid var(--sg-line);
}

.sg-filters label, .sg-toc-search { display: block; min-width: 0; }
.sg-filters label > span, .sg-toc-search > span {
	display: block;
	margin-bottom: 4px;
	color: var(--sg-muted);
	font-size: .79rem;
	font-weight: 650;
}

.sg-filters input, .sg-filters select, .sg-prose input:not([type="checkbox"]):not([type="radio"]), .sg-prose textarea {
	width: 100%;
	max-width: 100%;
	min-height: 43px;
	padding: .53rem .67rem;
	border: 1px solid #bdcfc7;
	border-radius: 7px;
	background: var(--sg-paper);
	color: var(--sg-ink);
	font-size: .88rem;
}

.sg-filters input::placeholder, .sg-prose input::placeholder { color: #526663; }
.sg-filters select { overflow: hidden; text-overflow: ellipsis; }

.sg-schedule, .sg-toc {
	width: 100%;
	border-collapse: collapse;
	text-align: start;
}

.sg-schedule th, .sg-toc th {
	background: var(--sg-pale);
	color: var(--sg-dark);
	font-size: .78rem;
	font-weight: 680;
	text-align: start;
}

.sg-schedule th, .sg-schedule td { padding: .75rem .92rem; }
.sg-schedule-panel { overflow: clip; }
.sg-schedule td { vertical-align: top; }
.sg-schedule tbody tr + tr { border-top: 1px solid var(--sg-line); }
.sg-schedule tbody tr:hover { background: #f7faf8; }
.sg-event-date { width: 24%; font-size: .9rem; line-height: 1.4; }
.sg-event-place { width: 23%; font-size: .9rem; line-height: 1.4; }
.sg-event-place span { display: block; margin-top: .15rem; color: var(--sg-muted); font-size: .78rem; }
.sg-event-title > span { display: block; color: var(--sg-muted); font-size: .73rem; line-height: 1.35; }
.sg-event-title > a { display: block; width: fit-content; margin-top: .08rem; font-weight: 680; line-height: 1.38; text-decoration: none; }
.sg-event-title > a:is(:hover, :focus-visible),
.sg-event-title > a:is(:hover, :focus-visible) .sg-event-title-end,
.sg-collection-card h3 a:hover { text-decoration: underline; }
.sg-event-title-end { display: inline-block; inline-size: max-content; max-inline-size: 100%; }
.sg-event-title i { font-size: .84em; font-style: normal; }

.sg-demo {
	display: inline-block;
	padding: .1rem .35rem;
	margin-top: .24rem;
	border-radius: 4px;
	background: #fbf0d8;
	color: #654810;
	font-size: .68rem;
	font-weight: 660;
	line-height: 1.42;
}

.sg-empty { padding: 1.5rem 1rem; margin: 0; color: var(--sg-muted); text-align: center; }
.sg-listing-footer, .sg-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem 1rem;
	font-size: .84rem;
}

.sg-listing-footer { padding: .75rem .95rem; border-top: 1px solid var(--sg-line); }
.sg-pagination { margin-inline-start: auto; }
.sg-pagination span { color: var(--sg-muted); }

.sg-sidebar { display: grid; gap: 16px; }
.sg-sidebar-panel { padding: 17px; }
.sg-sidebar-panel h2 {
	margin: 0 0 .74rem;
	font-size: 1.05rem;
	line-height: 1.22;
	letter-spacing: -.018em;
}

.sg-conference-panel { border-color: #bbd8cc; }
.sg-conference-submission { display: grid; gap: .7rem; margin: 0; }
.sg-conference-submission div + div { padding-top: .65rem; border-top: 1px solid var(--sg-line); }
.sg-conference-submission dt { color: var(--sg-muted); font-size: .79rem; }
.sg-conference-submission dd { margin: .16rem 0 0; font-weight: 680; line-height: 1.4; }
.sg-conference-submission a { font-size: .89rem; }
.sg-conference-panel-actions { display: grid; gap: .55rem; margin-top: .9rem; }
.sg-conference-panel-actions a { text-align: center; }
.sg-next-list li + li, .sg-side-links li + li { border-top: 1px solid var(--sg-line); }
.sg-next-list a { display: block; padding: .66rem 0; color: var(--sg-ink); text-decoration: none; }
.sg-next-list li:first-child a { padding-top: .22rem; }
.sg-next-list a:hover strong { color: var(--sg-green); text-decoration: underline; }
.sg-next-list strong { display: block; margin: .1rem 0; font-size: .89rem; line-height: 1.36; }
.sg-next-date, .sg-next-place { display: block; font-size: .75rem; line-height: 1.38; }
.sg-next-date { color: var(--sg-green); font-weight: 680; }
.sg-next-place { color: var(--sg-muted); }
.sg-sidebar-all { display: inline-block; margin-top: .35rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.sg-sidebar-all:hover { text-decoration: underline; }
.sg-side-links a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: .45rem;
	padding: .46rem 0;
	font-size: .87rem;
	text-decoration: none;
}

.sg-side-links li:first-child a { padding-top: 0; }
.sg-side-links li:last-child a { padding-bottom: 0; }
.sg-side-links a:hover { text-decoration: underline; }

.sg-breadcrumbs { margin-top: 22px; color: var(--sg-muted); font-size: .83rem; }
.sg-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .15rem .55rem; padding: 0; margin: 0; list-style: none; }
.sg-breadcrumbs li + li::before { content: "/"; display: inline-block; margin-inline-end: .55rem; color: #5d756d; }
.sg-breadcrumbs a { text-decoration: none; }
.sg-breadcrumbs a:hover { text-decoration: underline; }

.sg-page-heading { margin: clamp(22px, 3.8vw, 40px) 0 clamp(21px, 3vw, 32px); }
.sg-page-heading:has(+ .sg-layout) { max-width: calc(100% - var(--sg-sidebar-width) - var(--sg-layout-gap)); }
.sg-breadcrumbs + .sg-page-heading { margin-top: 16px; }
.sg-page-heading h1 {
	margin: 0;
	font-size: clamp(calc(2rem / 1.5), calc(4.6vw / 1.5), 2.4rem);
	font-weight: 740;
	line-height: 1.08;
	letter-spacing: -.047em;
}

.sg-page-heading p { max-width: 65ch; margin: .65rem 0 0; color: var(--sg-muted); }

.sg-collection-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 15px;
}

.sg-collection-card {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	padding: 13px;
	border: 1px solid var(--sg-line);
	border-radius: 9px;
}

.sg-collection-cover { aspect-ratio: 3 / 4; border-radius: 3px 6px 6px 3px; overflow: hidden; }
.sg-collection-cover img { width: 100%; height: 100%; object-fit: cover; }
.sg-cover-fallback {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 9px 7px;
	border-inline-start: 3px solid #85b8a6;
	background: linear-gradient(145deg, #3a7565, var(--sg-dark) 76%);
	color: #fff;
	font-size: .65rem;
	font-weight: 650;
	line-height: 1.18;
}

.sg-cover-fallback span::after {
	content: "";
	display: block;
	width: 60%;
	height: 1px;
	margin-top: 5px;
	background: #bce1d4b8;
	box-shadow: 0 4px #bce1d474;
}

.sg-collection-card h3 { margin: .12rem 0 .3rem; font-size: .97rem; line-height: 1.32; }
.sg-collection-card h3 a { text-decoration: none; }
.sg-collection-card p { margin: 0 0 .35rem; color: var(--sg-muted); font-size: .78rem; }
.sg-card-link { font-size: .78rem; font-weight: 670; }

.sg-document { padding: clamp(17px, 3.2vw, 33px); }
.sg-document-actions { margin-bottom: 1.35rem; }
.sg-document-actions:empty { display: none; }
.sg-featured-image { margin: 0 0 1.35rem; }
.sg-featured-image img { border-radius: 8px; }

.sg-note {
	margin: 0 0 1.15rem;
	padding: .65rem .8rem;
	border-inline-start: 3px solid #b48a3d;
	border-radius: 5px;
	background: #fbf4e4;
	color: #624611;
	font-size: .9rem;
}

.sg-meta-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	margin: 0 0 1.25rem;
}

.sg-meta-grid div { padding: .65rem .77rem; background: var(--sg-pale); border-radius: 7px; }
.sg-meta-grid dt { color: var(--sg-muted); font-size: .79rem; }
.sg-meta-grid dd { margin: .05rem 0 0; color: var(--sg-dark); font-weight: 680; }
.sg-prose h2, .sg-prose h3 { margin: 1.4em 0 .45em; line-height: 1.21; letter-spacing: -.025em; }
.sg-prose h2 { font-size: clamp(1.18rem, 2.6vw, 1.57rem); }
.sg-prose > :first-child { margin-top: 0; }
.sg-prose > :last-child { margin-bottom: 0; }
.sg-prose li + li { margin-top: .28em; }
.sg-prose :where(iframe, embed, video) { max-width: 100%; }
.sg-prose :where(pre, .wp-block-table) { max-width: 100%; overflow: auto; }
.sg-prose blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 3px solid var(--sg-line); }
.sg-prose .wp-caption { max-width: 100%; }
.sg-prose input[type="submit"] { width: auto; border-color: var(--sg-green); background: var(--sg-green); color: #fff; cursor: pointer; }
.sg-prose textarea { min-height: 115px; resize: vertical; }

:is(.sg-payment-steps, .sg-conference-steps) {
	counter-reset: sg-procedure-step;
	margin: .85rem 0 0;
	padding: 0;
}

:is(.sg-payment-steps, .sg-conference-steps) > li {
	position: relative;
	counter-increment: sg-procedure-step;
	min-height: 2rem;
	padding: .2rem 0 .2rem 2.75rem;
}

:is(.sg-payment-steps, .sg-conference-steps) > li::marker { color: transparent; }
:is(.sg-payment-steps, .sg-conference-steps) > li::before {
	content: counter(sg-procedure-step) / "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--sg-pale);
	color: var(--sg-green);
	font-size: .9rem;
	font-weight: 680;
}

.sg-prose :is(.sg-payment-steps, .sg-conference-steps) > li + li { margin-top: .55rem; }
.sg-payment-steps small { color: var(--sg-muted); }
.sg-payment-faq { padding-block: .65rem; border-bottom: 1px solid var(--sg-line); }
.sg-payment-faq summary { cursor: pointer; font-weight: 650; }
.sg-payment-faq p { margin: .5rem 0 0; }

.sg-conference-section { margin-top: 1.65rem; }
.sg-conference-section h2 { margin: 0 0 .7rem; }
.sg-conference-steps li span { display: block; margin-top: .12rem; color: var(--sg-muted); font-size: .88rem; }
.sg-conference-guide-actions { margin-top: .9rem; }
.sg-conference-fees { margin-bottom: 0; }
.sg-conference-fees dd { font-size: 1.25rem; }
.sg-conference-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1.65rem;
	margin: 0;
	padding-inline-start: 1.55rem;
}

.sg-prose .sg-conference-sections li {
	margin: 0;
	padding: .4rem 0;
	border-bottom: 1px solid var(--sg-line);
	font-size: .9rem;
}

.sg-conference-sections li::marker { color: var(--sg-green); font-weight: 680; }
.sg-conference-results { padding: .8rem 1rem; border-radius: 8px; background: var(--sg-pale); }
.sg-conference-results p { margin: 0; }
.sg-conference-results p + p { margin-top: .5rem; }

.sg-document-section { margin-top: 1.5rem; }
.sg-prose .sg-format-sample {
	padding: clamp(14px, 4vw, 20px);
	margin: 0 0 1rem;
	border: 1px solid #dce5e6;
	border-radius: 0;
	background: #fff;
	color: #263a3e;
	font: normal 1rem/1.55 Georgia, "Times New Roman", serif;
}

.sg-format-sample > p { margin: .72rem 0; }
.sg-format-sample > p:nth-of-type(2) { margin-block: 1rem; }
.sg-format-sample > :first-child { margin-top: 0; }
.sg-format-sample > :last-child { margin-bottom: 0; }
.sg-format-sample.wp-block-quote > p:first-of-type,
.sg-format-sample.wp-block-quote > p:last-of-type { text-align: center; }
.sg-format-sample.wp-block-quote > p:nth-of-type(2) { text-align: right; }
.sg-contact-form, .sg-contact-fields { display: grid; gap: 13px; }
.sg-contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-contact-form label { display: block; margin-bottom: 4px; font-size: .88rem; font-weight: 650; }
.sg-contact-form p { margin: 0; }
.sg-citation { padding: .75rem .9rem; border-radius: 7px; background: var(--sg-pale); white-space: pre-wrap; }
.sg-control-status { color: var(--sg-muted); font-size: .84rem; }
.sg-toc-search { max-width: 380px; margin-bottom: .85rem; }
.sg-toc th, .sg-toc td { padding: .52rem .7rem; border-bottom: 1px solid var(--sg-line); }
.sg-toc th:last-child, .sg-toc td:last-child { width: 100px; text-align: end; }
.sg-toc td span, .sg-toc td small { display: block; color: var(--sg-muted); }
.sg-toc td { vertical-align: top; }

.sg-comments { margin-top: 18px; }
.sg-comment-list { padding-inline-start: 1.25rem; }
.sg-comment-list img { display: inline-block; margin-inline-end: .3rem; border-radius: 50%; vertical-align: middle; }
.sg-comment-list li { margin-bottom: 1rem; }
.sg-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sg-post-card { padding: 18px; }
.sg-layout + .sg-section-heading { margin-top: 34px; }
.sg-main .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.sg-main .nav-links .page-numbers { display: inline-block; padding: .35rem .55rem; }

.sg-footer { padding: 29px 0 17px; background: #153f37; color: #d4e6de; }
.sg-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.sg-footer a { color: #e2f0e9; text-decoration: none; }
.sg-footer a:hover { color: #fff; text-decoration: underline; }
.sg-footer .sg-footer-brand { color: #fff; font-weight: 700; font-size: 1.2rem; }
.sg-footer-logo { display: block; width: min(100%, 212px); }
.sg-footer-logo-image { width: 100%; height: auto; filter: brightness(0) invert(1); }
.sg-footer p, .sg-footer li { margin: 4px 0; font-size: .86rem; }
.sg-footer-base {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 18px;
	justify-content: space-between;
	margin-top: 21px;
	padding-top: 12px;
	border-top: 1px solid #ffffff30;
	font-size: .76rem;
}

@media (max-width: 1040px) {
	:root { --sg-sidebar-width: 230px; --sg-layout-gap: 16px; }
	.sg-wrap { width: calc(100% - 48px); }
	.sg-collection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.sg-wrap { width: calc(100% - 32px); }
	.sg-layout { grid-template-columns: minmax(0, 1fr); }
	.sg-conference-layout {
		grid-template-areas: "participation" "announcement" "related";
		grid-template-rows: auto;
	}
	.sg-header-action { display: none; }
	.sg-menu-toggle { display: inline-flex; }
	.sg-masthead { padding-block: 12px; }
	.sg-brand { gap: 8px; }
	.sg-brand-mark { flex-basis: 40px; }
	.sg-brand .custom-logo { max-width: 68px; max-height: 44px; }
	.sg-brand-name strong { font-size: 1.28rem; }
	.sg-brand-name span { font-size: .69rem; }
	.sg-nav-list { display: block; padding-block: 4px; }
	.sg-nav-list > li > a { border-bottom: 0; }
	.sg-nav-list > li + li { border-top: 1px solid var(--sg-line); }
	.sg-nav-list a { padding: .58rem 0; font-size: .9rem; }
	.sg-nav-list ul { position: static; border-color: transparent; box-shadow: none; padding: 0 0 3px .65rem; }
	.sg-custom-menu .sub-menu { display: block; }
	.sg-page-heading h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
	.sg-page-heading:has(+ .sg-layout) { max-width: none; }
	.sg-hero { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
	.sg-hero-illustration { display: none; }
	.sg-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-sidebar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
}

@media (max-width: 540px) {
	.sg-conference-sections { grid-template-columns: minmax(0, 1fr); }
	.sg-hero-benefits { gap: .65rem; }
	.sg-contact-fields { grid-template-columns: 1fr; }
	.sg-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-filters .sg-filter-search { grid-column: 1 / -1; }
	.sg-filters > .sg-button { grid-column: 1 / -1; justify-self: start; }
	.sg-schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.sg-schedule, .sg-schedule tbody { display: block; }
	.sg-schedule tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: .7rem .75rem;
		gap: .35rem .65rem;
	}
	.sg-schedule td { display: block; width: auto; padding: 0; }
	.sg-event-place { text-align: end; }
	.sg-event-title { grid-column: 1 / -1; }
	.sg-collection-grid, .sg-post-grid { grid-template-columns: minmax(0, 1fr); }
	.sg-footer-grid { grid-template-columns: 1fr 1fr; gap: 13px; }
	.sg-footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media print {
	body { display: block; background: white; color: black; font-size: 11pt; }
	.sg-wrap { width: 100%; }
	.sg-header, .sg-sidebar, .sg-footer, .sg-breadcrumbs, .sg-actions, .sg-filters, .sg-listing-footer, .sg-toc-search, .sg-contact-form, #wpadminbar { display: none !important; }
	.sg-layout { display: block; }
	.sg-panel { border: 0; box-shadow: none; }
	.sg-document { padding: 0; }
	.sg-conference-panel { margin-bottom: 1rem; break-inside: avoid; }
	.sg-page-heading:has(+ .sg-layout, + .sg-single-column) { max-width: none; }
	.sg-page-heading h1 { font-size: 22pt; }
	.sg-meta-grid, .sg-note { break-inside: avoid; }
}
