/**
 * Grohman Theme Handmade Template (page-templates/grohman-theme-handmade-template.php).
 * Textové stránky — obchodní podmínky, GDPR, informace. Panel bez linkovaného papíru (vhodné pro delší text).
 */

.grohman-theme-handmade-inner-wrap.grohman-theme-handmade-inner-wrap--template {
	max-width: 80rem;
	width: 100%;
	margin-inline: auto;
	padding-top: 2rem;
	padding-bottom: 3rem;
}

@media (min-width: 768px) {
	.grohman-theme-handmade-inner-wrap.grohman-theme-handmade-inner-wrap--template {
		padding-top: 2.5rem;
		padding-bottom: 4rem;
	}
}

/* --- Hlavička --- */
.grohman-theme-handmade-template-page__header {
	margin-bottom: 1.75rem;
}

.grohman-theme-handmade-template-page__header .page-title {
	margin: 0 0 0.5rem;
	font-family: var(--sk-font-heading);
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--sk-color-brand-heavy);
	letter-spacing: -0.02em;
}

.grohman-theme-handmade-template-page__header .breadcrumb,
.grohman-theme-handmade-template-page__header .grohman-theme-handmade-breadcrumb {
	margin: 0;
	font-family: var(--sk-font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-gray-500);
}

.grohman-theme-handmade-template-page__header .breadcrumb a,
.grohman-theme-handmade-template-page__header .grohman-theme-handmade-breadcrumb a {
	color: var(--color-gray-500);
	text-decoration: none;
	transition: color 0.15s ease;
}

.grohman-theme-handmade-template-page__header .breadcrumb a:hover,
.grohman-theme-handmade-template-page__header .grohman-theme-handmade-breadcrumb a:hover,
.grohman-theme-handmade-template-page__header .breadcrumb a:focus-visible,
.grohman-theme-handmade-template-page__header .grohman-theme-handmade-breadcrumb a:focus-visible {
	color: var(--sk-color-brand);
	outline: none;
}

/* --- Volitelný widget nad obsahem --- */
.grohman-theme-handmade-template-page__widgets {
	margin-bottom: 1.5rem;
	font-family: var(--sk-font-sans);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--color-gray-700);
}

.grohman-theme-handmade-template-page__widgets .widget {
	margin-bottom: 1rem;
}

.grohman-theme-handmade-template-page__widgets .widget:last-child {
	margin-bottom: 0;
}

/* --- Hlavní panel (čisté pozadí — bez horizontálních linek) --- */
.grohman-theme-handmade-template-page__panel {
	position: relative;
	padding: 1.75rem 1.5rem 2rem;
	font-family: var(--sk-font-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-gray-800);
	background-color: color-mix(in srgb, var(--color-white) 94%, var(--sk-color-surface));
	border: 1px solid color-mix(in srgb, var(--sk-color-brand) 18%, var(--color-gray-200));
	border-radius: 0.75rem;
	box-shadow:
		0 4px 24px -4px color-mix(in srgb, var(--sk-color-brand-heavy) 10%, transparent),
		0 1px 3px color-mix(in srgb, var(--color-gray-900) 5%, transparent);
}

@media (min-width: 640px) {
	.grohman-theme-handmade-template-page__panel {
		padding: 2.25rem 2rem 2.5rem;
	}
}

.grohman-theme-handmade-template-page__panel::before {
	content: "";
	position: absolute;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 50%;
	background-color: var(--sk-color-footer-bg);
	border: 2px solid var(--sk-color-gold);
	box-shadow: inset 0 1px 3px color-mix(in srgb, var(--color-gray-900) 45%, transparent);
	pointer-events: none;
	opacity: 0.85;
}

@media (min-width: 640px) {
	.grohman-theme-handmade-template-page__panel::before {
		top: 1.125rem;
	}
}

/* --- Typografie obsahu --- */
.grohman-theme-handmade-template-page__panel > :first-child {
	margin-top: 1.25rem;
}

.grohman-theme-handmade-template-page__panel p {
	margin: 0 0 1rem;
}

.grohman-theme-handmade-template-page__panel p:last-child {
	margin-bottom: 0;
}

.grohman-theme-handmade-template-page__panel strong,
.grohman-theme-handmade-template-page__panel b {
	font-weight: 600;
	color: var(--sk-color-brand-heavy);
}

.grohman-theme-handmade-template-page__panel h1,
.grohman-theme-handmade-template-page__panel h2,
.grohman-theme-handmade-template-page__panel h3,
.grohman-theme-handmade-template-page__panel h4,
.grohman-theme-handmade-template-page__panel .wp-block-heading {
	margin: 2rem 0 0.85rem;
	font-family: var(--sk-font-heading);
	font-weight: 600;
	line-height: 1.3;
	color: var(--sk-color-brand-heavy);
	letter-spacing: -0.01em;
}

.grohman-theme-handmade-template-page__panel h1,
.grohman-theme-handmade-template-page__panel h2,
.grohman-theme-handmade-template-page__panel .wp-block-heading {
	font-size: 1.375rem;
}

.grohman-theme-handmade-template-page__panel h3 {
	font-size: 1.2rem;
}

.grohman-theme-handmade-template-page__panel h4 {
	font-size: 1.0625rem;
}

.grohman-theme-handmade-template-page__panel h2:first-child,
.grohman-theme-handmade-template-page__panel h3:first-child,
.grohman-theme-handmade-template-page__panel .wp-block-heading:first-child {
	margin-top: 1rem;
}

/* Sekce vložené jako tučný odstavec (typické u OP) */
.grohman-theme-handmade-template-page__panel p:has(> strong:only-child),
.grohman-theme-handmade-template-page__panel p:has(> b:only-child) {
	margin-top: 1.75rem;
	margin-bottom: 0.65rem;
	font-size: 1.0625rem;
	line-height: 1.45;
}

.grohman-theme-handmade-template-page__panel ul,
.grohman-theme-handmade-template-page__panel ol,
.grohman-theme-handmade-template-page__panel .wp-block-list {
	margin: 0 0 1.15rem;
	padding-left: 1.35rem;
}

.grohman-theme-handmade-template-page__panel li {
	margin-bottom: 0.45rem;
}

.grohman-theme-handmade-template-page__panel li:last-child {
	margin-bottom: 0;
}

.grohman-theme-handmade-template-page__panel ul ul,
.grohman-theme-handmade-template-page__panel ol ol,
.grohman-theme-handmade-template-page__panel ul ol,
.grohman-theme-handmade-template-page__panel ol ul {
	margin-top: 0.45rem;
	margin-bottom: 0.35rem;
}

/* --- Akční tlačítka (Gutenberg file / online odstoupení) --- */
.grohman-theme-handmade-template-page__panel .grohman-theme-handmade-template-page__action,
.grohman-theme-handmade-template-page__panel .wp-block-file,
.grohman-theme-handmade-template-page__panel .wp-block-buttons {
	margin: 0 0 0.85rem;
}

.grohman-theme-handmade-template-page__panel .grohman-theme-handmade-template-page__action:last-child,
.grohman-theme-handmade-template-page__panel .wp-block-file:last-child,
.grohman-theme-handmade-template-page__panel .wp-block-buttons:last-child {
	margin-bottom: 0;
}

.grohman-theme-handmade-template-page__panel :is(
	.grohman-theme-handmade-template-page__action-btn,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-file > a,
	.wp-element-button
) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.75rem !important;
	font-family: var(--sk-font-sans) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: 0.02em;
	color: var(--color-white) !important;
	text-decoration: none !important;
	text-underline-offset: 0 !important;
	background-color: var(--sk-color-brand) !important;
	border: 0 !important;
	border-radius: var(--sk-button-radius) !important;
	box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--sk-color-brand) 45%, transparent);
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		transform 0.15s ease,
		box-shadow 0.15s ease;
}

.grohman-theme-handmade-template-page__panel :is(
	.grohman-theme-handmade-template-page__action-btn,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-file > a,
	.wp-element-button
):hover,
.grohman-theme-handmade-template-page__panel :is(
	.grohman-theme-handmade-template-page__action-btn,
	.wp-block-button__link,
	.wp-block-file__button,
	.wp-block-file > a,
	.wp-element-button
):focus-visible {
	color: var(--color-white) !important;
	background-color: var(--sk-color-brand-dark) !important;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--sk-color-brand) 55%, transparent);
	outline: 2px solid var(--sk-color-mint);
	outline-offset: 2px;
}

.grohman-theme-handmade-template-page__panel a:not(.button):not(.wp-block-button__link):not(.wp-block-file__button):not(.grohman-theme-handmade-template-page__action-btn):not([class*="wp-element-button"]) {
	color: var(--sk-color-mint-dark);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--sk-color-mint-dark) 55%, transparent);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	transition:
		color 0.15s ease,
		text-decoration-color 0.15s ease;
}

.grohman-theme-handmade-template-page__panel a:not(.button):not(.wp-block-button__link):not(.wp-block-file__button):not(.grohman-theme-handmade-template-page__action-btn):not([class*="wp-element-button"]):hover,
.grohman-theme-handmade-template-page__panel a:not(.button):not(.wp-block-button__link):not(.wp-block-file__button):not(.grohman-theme-handmade-template-page__action-btn):not([class*="wp-element-button"]):focus-visible {
	color: var(--sk-color-brand);
	text-decoration-color: var(--sk-color-brand);
	outline: none;
}

.grohman-theme-handmade-template-page__panel hr,
.grohman-theme-handmade-template-page__panel .wp-block-separator {
	margin: 1.75rem 0;
	border: 0;
	border-top: 1px solid color-mix(in srgb, var(--sk-color-brand) 22%, var(--color-gray-200));
}

.grohman-theme-handmade-template-page__panel blockquote,
.grohman-theme-handmade-template-page__panel .wp-block-quote {
	margin: 1.25rem 0;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--sk-color-brand-soft);
	background: color-mix(in srgb, var(--sk-color-brand-light) 55%, transparent);
	border-radius: 0 0.5rem 0.5rem 0;
	color: var(--color-gray-700);
}

.grohman-theme-handmade-template-page__panel table {
	width: 100%;
	margin: 0 0 1.25rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.grohman-theme-handmade-template-page__panel th,
.grohman-theme-handmade-template-page__panel td {
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--color-gray-200);
	text-align: left;
	vertical-align: top;
}

.grohman-theme-handmade-template-page__panel th {
	font-weight: 600;
	background: color-mix(in srgb, var(--sk-color-brand-light) 40%, var(--color-white));
	color: var(--sk-color-brand-heavy);
}

.grohman-theme-handmade-template-page__panel .wp-block-table {
	overflow-x: auto;
	margin-bottom: 1.25rem;
}

.grohman-theme-handmade-template-page__pagination {
	margin-top: 1.5rem;
	font-size: 0.9375rem;
}
