@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/vazirmatn/Vazirmatn-Variable.woff2") format("woff2-variations"),
		url("../fonts/vazirmatn/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--khsc-color-primary: #e93443;
	--khsc-color-primary-strong: #c91f31;
	--khsc-color-accent: #f6c900;
	--khsc-color-ink: #182033;
	--khsc-color-text: #2d3340;
	--khsc-color-muted: #687080;
	--khsc-color-border: #e7e9ee;
	--khsc-color-surface: #f7f8fa;
	--khsc-color-background: #ffffff;
	--khsc-radius-sm: 8px;
	--khsc-radius-md: 14px;
	--khsc-radius-lg: 20px;
	--khsc-shadow-card: 0 10px 30px rgba(24, 32, 51, 0.08);
	--khsc-container: 1180px;
	--khsc-reading-width: 780px;
	--khsc-font: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--khsc-font);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--khsc-color-text);
	background: var(--khsc-color-background);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--khsc-color-primary-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--khsc-color-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.khsc-btn:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

.khsc-skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	inset-block-start: -100px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--khsc-color-ink);
	color: #fff;
	border-radius: var(--khsc-radius-sm);
}

.khsc-skip-link:focus {
	inset-block-start: 1rem;
}

.khsc-container {
	width: min(100% - 2rem, var(--khsc-container));
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Header — compact two-level RTL shell
   ------------------------------------------------------------------------- */

.khsc-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-block-end: 1px solid var(--khsc-color-border);
}

/* WP Admin Bar: fixed on tablet/desktop only; scrolls away below ~600px. */
@media screen and (min-width: 783px) {
	body.admin-bar .khsc-site-header {
		top: 32px;
	}
}

@media screen and (min-width: 601px) and (max-width: 782px) {
	body.admin-bar .khsc-site-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar .khsc-site-header {
		top: 0;
	}
}

.khsc-header__primary {
	background: #fff;
	border-block-end: 1px solid var(--khsc-color-border);
}

.khsc-header__primary-inner {
	display: flex;
	align-items: center;
	gap: 0.5rem 0.75rem;
	min-height: 3.15rem;
	padding-block: 0.4rem;
}

.khsc-header__brand {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-inline-size: 0;
}

.khsc-header__row1-nav {
	display: none;
	flex: 1 1 auto;
	min-inline-size: 0;
	align-items: stretch;
	overflow: visible;
}

.khsc-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.khsc-header__brand .custom-logo,
.khsc-header__brand img {
	display: block;
	max-block-size: 32px;
	max-inline-size: 9.5rem;
	width: auto;
	height: auto;
}

.khsc-brand-text {
	color: var(--khsc-color-ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.82rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-inline-size: 11.5rem;
}

.khsc-header__brand a,
.khsc-header__brand a:hover,
.khsc-header__brand a:focus,
.khsc-header__brand a:active,
.khsc-header__brand .khsc-brand-text,
.khsc-header__brand .khsc-brand-text:hover,
.khsc-header__brand .khsc-brand-text:focus,
.khsc-header__brand .khsc-brand-text:active,
.khsc-header__brand .custom-logo-link,
.khsc-header__brand .custom-logo-link:hover,
.khsc-header__brand .custom-logo-link:focus,
.khsc-header__brand .custom-logo-link:active {
	color: var(--khsc-color-ink);
	text-decoration: none;
	opacity: 1;
	background: transparent;
	transform: none;
}

.khsc-header__brand a:focus-visible,
.khsc-header__brand .khsc-brand-text:focus-visible,
.khsc-header__brand .custom-logo-link:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

.khsc-header__utils {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	flex: 0 0 auto;
	margin-inline-start: auto;
}

.khsc-row1-menu {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	min-inline-size: 0;
	width: 100%;
	overflow: visible;
}

.khsc-row1-menu > li {
	position: relative;
	flex: 0 0 auto;
}

.khsc-row1-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-block-size: 2.75rem;
	padding-inline: 0.55rem;
	color: var(--khsc-color-ink);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	position: relative;
}

.khsc-row1-menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 0.55rem;
	inset-block-end: 0.35rem;
	block-size: 2px;
	border-radius: 999px;
	background: transparent;
	pointer-events: none;
}

.khsc-row1-menu > li > a:hover,
.khsc-row1-menu > li:focus-within > a,
.khsc-row1-menu > .current-menu-item > a,
.khsc-row1-menu > .current-menu-ancestor > a {
	color: var(--khsc-color-ink);
}

.khsc-row1-menu > li > a:hover::after,
.khsc-row1-menu > li:focus-within > a::after,
.khsc-row1-menu > .current-menu-item > a::after,
.khsc-row1-menu > .current-menu-ancestor > a::after {
	background: var(--khsc-color-primary);
}

.khsc-nav-chevron {
	display: inline-flex;
	line-height: 0;
	color: currentColor;
	opacity: 0.7;
	flex: 0 0 auto;
}

.khsc-nav-chevron svg {
	display: block;
}

.khsc-nav-chevron--nested {
	transform: rotate(90deg);
}

[dir="rtl"] .khsc-nav-chevron--nested {
	transform: rotate(-90deg);
}

.khsc-util-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 2.75rem;
	min-inline-size: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--khsc-color-ink);
	text-decoration: none;
	font: inherit;
	cursor: pointer;
	position: relative;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.khsc-util-btn:hover {
	background: var(--khsc-color-surface);
	color: var(--khsc-color-ink);
}

.khsc-util-btn:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

.khsc-util-btn__icon {
	display: inline-flex;
	line-height: 0;
}

.khsc-cart-count {
	position: absolute;
	inset-block-start: 0.3rem;
	inset-inline-end: 0.25rem;
	min-inline-size: 1rem;
	block-size: 1rem;
	padding-inline: 0.2rem;
	border-radius: 999px;
	background: var(--khsc-color-primary);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1rem;
	text-align: center;
}

/* Search popover */
.khsc-search-popover {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4.5rem 1rem 1rem;
	pointer-events: none;
}

.khsc-search-popover.is-open {
	pointer-events: auto;
}

.khsc-search-popover[hidden] {
	display: none !important;
}

.khsc-search-popover__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 32, 51, 0.28);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.khsc-search-popover.is-open .khsc-search-popover__backdrop {
	opacity: 1;
}

.khsc-search-popover__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 34rem);
	background: #fff;
	border: 1px solid var(--khsc-color-border);
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(24, 32, 51, 0.12);
	padding: 0.65rem;
	transform: translateY(-6px) scale(0.98);
	opacity: 0;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.khsc-search-popover.is-open .khsc-search-popover__panel {
	transform: translateY(0) scale(1);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.khsc-search-popover__backdrop,
	.khsc-search-popover__panel {
		transition: none;
	}
}

.khsc-search-popover__form {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--khsc-color-surface);
	border: 1px solid var(--khsc-color-border);
	border-radius: 10px;
	padding: 0.25rem 0.35rem 0.25rem 0.55rem;
}

.khsc-search-popover__icon {
	display: inline-flex;
	color: var(--khsc-color-muted);
	flex: 0 0 auto;
}

.khsc-search-popover__input {
	flex: 1 1 auto;
	min-inline-size: 0;
	border: 0;
	background: transparent;
	padding: 0.55rem 0.35rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--khsc-color-ink);
	outline: none;
}

.khsc-search-popover__input::-webkit-search-decoration,
.khsc-search-popover__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.khsc-search-popover__submit,
.khsc-search-popover__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 2.4rem;
	min-inline-size: 2.4rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--khsc-color-ink);
	cursor: pointer;
}

.khsc-search-popover__submit:hover,
.khsc-search-popover__close:hover {
	background: #fff;
}

.khsc-header__nav {
	display: none;
	background: #f7f8fa;
	border-block-start: 1px solid var(--khsc-color-border);
}

.khsc-primary-nav {
	display: flex;
	align-items: stretch;
	gap: 0.1rem;
	min-block-size: 2.35rem;
	position: relative;
	overflow: visible;
}

.khsc-row2-menu {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap;
	overflow: visible;
}

.khsc-row2-menu > li {
	position: relative;
	flex: 0 0 auto;
}

.khsc-row2-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-block-size: 2.35rem;
	padding-inline: 0.55rem;
	color: var(--khsc-color-muted);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 400;
	white-space: nowrap;
	position: relative;
}

.khsc-row2-menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 0.55rem;
	inset-block-end: 0;
	block-size: 2px;
	border-radius: 999px;
	background: transparent;
	pointer-events: none;
}

.khsc-row2-menu > li > a:hover,
.khsc-row2-menu > li:focus-within > a,
.khsc-row2-menu > .current-menu-item > a,
.khsc-row2-menu > .current-menu-ancestor > a {
	color: var(--khsc-color-ink);
}

.khsc-row2-menu > li > a:hover::after,
.khsc-row2-menu > li:focus-within > a::after,
.khsc-row2-menu > .current-menu-item > a::after,
.khsc-row2-menu > .current-menu-ancestor > a::after {
	background: var(--khsc-color-primary);
}

/* Shared desktop dropdowns — Row 1, Row 2, and More */
.khsc-site-header .khsc-row1-menu .menu-item-has-children,
.khsc-site-header .khsc-row2-menu .menu-item-has-children,
.khsc-site-header .khsc-nav-more__list .menu-item-has-children {
	position: relative;
}

.khsc-site-header .khsc-row1-menu .sub-menu,
.khsc-site-header .khsc-row2-menu .sub-menu,
.khsc-site-header .khsc-nav-more__list .sub-menu {
	display: none;
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	min-inline-size: 13.5rem;
	max-inline-size: min(18rem, calc(100vw - 2rem));
	margin: 0;
	padding: 0.45rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--khsc-color-border);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(24, 32, 51, 0.1);
	z-index: 60;
}

/* Close the pointer gap between parent and dropdown without shifting layout */
.khsc-site-header .khsc-row1-menu > .menu-item-has-children > .sub-menu::before,
.khsc-site-header .khsc-row2-menu > .menu-item-has-children > .sub-menu::before,
.khsc-site-header .khsc-nav-more > .khsc-nav-more__list::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 100%;
	block-size: 0.55rem;
}

.khsc-site-header .khsc-row1-menu .sub-menu .sub-menu,
.khsc-site-header .khsc-row2-menu .sub-menu .sub-menu,
.khsc-site-header .khsc-nav-more__list .sub-menu .sub-menu {
	inset-block-start: 0;
	inset-inline-start: 100%;
	inset-inline-end: auto;
}

.khsc-site-header .khsc-row1-menu .sub-menu .sub-menu.is-flip,
.khsc-site-header .khsc-row2-menu .sub-menu .sub-menu.is-flip,
.khsc-site-header .khsc-nav-more__list .sub-menu.is-flip,
.khsc-site-header .khsc-nav-more__list .sub-menu .sub-menu.is-flip {
	inset-inline-start: auto;
	inset-inline-end: 100%;
}

.khsc-site-header .khsc-row1-menu .menu-item-has-children:hover > .sub-menu,
.khsc-site-header .khsc-row1-menu .menu-item-has-children:focus-within > .sub-menu,
.khsc-site-header .khsc-row2-menu .menu-item-has-children:hover > .sub-menu,
.khsc-site-header .khsc-row2-menu .menu-item-has-children:focus-within > .sub-menu,
.khsc-site-header .khsc-nav-more__list .menu-item-has-children:hover > .sub-menu,
.khsc-site-header .khsc-nav-more__list .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.khsc-site-header .khsc-row1-menu .sub-menu a,
.khsc-site-header .khsc-row2-menu .sub-menu a,
.khsc-site-header .khsc-nav-more__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	color: var(--khsc-color-text);
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 400;
	white-space: nowrap;
}

.khsc-site-header .khsc-row1-menu .sub-menu a:hover,
.khsc-site-header .khsc-row1-menu .sub-menu a:focus-visible,
.khsc-site-header .khsc-row2-menu .sub-menu a:hover,
.khsc-site-header .khsc-row2-menu .sub-menu a:focus-visible,
.khsc-site-header .khsc-nav-more__list a:hover,
.khsc-site-header .khsc-nav-more__list a:focus-visible {
	background: var(--khsc-color-surface);
	color: var(--khsc-color-primary-strong);
}

.khsc-nav-more {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: stretch;
}

.khsc-nav-more[hidden] {
	display: none !important;
}

.khsc-nav-more__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-block-size: 2.35rem;
	padding-inline: 0.65rem;
	border: 0;
	background: transparent;
	color: var(--khsc-color-muted);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
}

.khsc-nav-more__btn:hover,
.khsc-nav-more:focus-within .khsc-nav-more__btn,
.khsc-nav-more.is-open .khsc-nav-more__btn {
	color: var(--khsc-color-ink);
}

.khsc-nav-more__list {
	display: none;
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	min-inline-size: 14rem;
	margin: 0;
	padding: 0.45rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--khsc-color-border);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(24, 32, 51, 0.1);
	z-index: 70;
}

.khsc-nav-more:hover > .khsc-nav-more__list,
.khsc-nav-more:focus-within > .khsc-nav-more__list,
.khsc-nav-more.is-open > .khsc-nav-more__list {
	display: block;
}

.khsc-nav-more__list > li {
	position: relative;
}

.khsc-nav-more__list > .menu-item-has-children > .sub-menu {
	inset-block-start: 0;
	inset-inline-start: auto;
	inset-inline-end: 100%;
}

/* Mobile drawer */
.khsc-nav-panel {
	position: fixed;
	inset: 0;
	z-index: 120;
	pointer-events: none;
}

.khsc-nav-panel.is-open {
	pointer-events: auto;
}

.khsc-nav-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 32, 51, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.khsc-nav-panel.is-open .khsc-nav-panel__backdrop {
	opacity: 1;
}

.khsc-nav-panel__drawer {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(20.5rem, 90vw);
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.22s ease;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.khsc-nav-panel.is-open .khsc-nav-panel__drawer {
	transform: translateX(0);
}

.khsc-nav-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-block-end: 1px solid var(--khsc-color-border);
	position: sticky;
	inset-block-start: 0;
	background: #fff;
	z-index: 1;
}

.khsc-nav-panel__title {
	font-weight: 700;
	color: var(--khsc-color-ink);
}

.khsc-mobile-menu {
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
}

.khsc-mobile-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 1rem;
	color: var(--khsc-color-ink);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	min-block-size: 2.75rem;
	border-block-end: 1px solid var(--khsc-color-border);
}

.khsc-mobile-menu .sub-menu {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--khsc-color-surface);
}

.khsc-mobile-menu .sub-menu a {
	padding-inline-start: 1.5rem;
	font-size: 0.9rem;
	font-weight: 400;
}

.khsc-mobile-menu .sub-menu .sub-menu a {
	padding-inline-start: 2.15rem;
}

.khsc-mobile-menu li.is-open > .sub-menu {
	display: block;
}

.khsc-mobile-menu .menu-item-has-children > a .khsc-nav-chevron {
	opacity: 0.65;
	transition: transform 0.15s ease;
}

.khsc-mobile-menu li.is-open > a > .khsc-nav-chevron {
	transform: rotate(180deg);
}

.khsc-nav-panel__utils {
	margin-block-start: auto;
	padding: 1rem;
	border-block-start: 1px solid var(--khsc-color-border);
	display: grid;
	gap: 0.5rem;
}

.khsc-nav-panel__utils a {
	display: flex;
	align-items: center;
	min-block-size: 2.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: var(--khsc-color-surface);
	color: var(--khsc-color-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

body.khsc-nav-open {
	overflow: hidden;
}

@media (min-width: 48rem) {
	.khsc-header__primary-inner {
		min-height: 3.35rem;
		gap: 0.85rem 1rem;
	}

	.khsc-header__brand {
		flex: 0 1 auto;
		max-inline-size: 12.5rem;
	}

	.khsc-header__row1-nav {
		display: flex;
	}

	.khsc-header__utils {
		margin-inline-start: 0;
	}

	.khsc-brand-text {
		font-size: 0.9rem;
		max-inline-size: 12.5rem;
		-webkit-line-clamp: 2;
	}

	.khsc-header__brand .custom-logo,
	.khsc-header__brand img {
		max-block-size: 36px;
	}

	.khsc-search-popover {
		padding-block-start: 5rem;
	}

	.khsc-header__nav {
		display: block;
	}

	.khsc-site-header:not(.is-nav-ready) .khsc-header__row1-nav,
	.khsc-site-header:not(.is-nav-ready) .khsc-header__nav {
		visibility: hidden;
	}

	.khsc-util-btn--menu {
		display: none;
	}

	.khsc-nav-panel {
		display: none !important;
	}
}

@media (min-width: 64rem) {
	.khsc-header__primary-inner {
		gap: 1rem 1.25rem;
	}

	.khsc-header__brand {
		max-inline-size: 13.5rem;
	}

	.khsc-row1-menu > li > a {
		padding-inline: 0.65rem;
		font-size: 0.9rem;
	}

	.khsc-row2-menu > li > a {
		padding-inline: 0.65rem;
		font-size: 0.84rem;
	}
}

@media (min-width: 80rem) {
	.khsc-header__brand {
		max-inline-size: 14rem;
	}

	.khsc-brand-text {
		max-inline-size: 14rem;
	}

	.khsc-row1-menu {
		gap: 0.2rem;
	}
}

.khsc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1.15rem;
	border-radius: var(--khsc-radius-sm);
	border: 1px solid transparent;
	background: var(--khsc-color-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.khsc-btn:hover {
	background: var(--khsc-color-primary-strong);
	color: #fff;
}

.khsc-btn--secondary {
	background: #fff;
	color: var(--khsc-color-ink);
	border-color: #c5cad3;
	font-weight: 400;
}

.khsc-btn--secondary:hover {
	background: #f7f8fa;
	color: var(--khsc-color-ink);
	border-color: #9aa3b2;
}

.khsc-latest-posts__actions {
	display: flex;
	justify-content: center;
	margin-block-start: clamp(1.5rem, 3vw, 2.75rem);
	margin-block-end: 0.25rem;
}

.khsc-latest-posts__more {
	width: auto;
	max-width: 100%;
	font-weight: 400;
}

.khsc-section {
	padding-block: 2.5rem;
}

.khsc-section__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	color: var(--khsc-color-ink);
}

.khsc-home-feed {
	width: min(100% - 2rem, 1200px);
	margin-inline: auto;
	display: grid;
	gap: 3rem;
	padding-block: 2rem 1rem;
}

.khsc-home-block {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

/* Shared straight red accent under section headings (card rails + home media). */
.khsc-heading-rule,
.khsc-card-section__rule {
	display: block;
	width: clamp(3.75rem, 8vw, 5.5rem);
	height: 3px;
	border-radius: 999px;
	background: var(--khsc-color-primary);
}

.khsc-home-block__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	text-align: center;
}

.khsc-home-block__title {
	margin: 0;
	color: var(--khsc-color-ink);
	text-align: center;
	font-weight: 700;
	line-height: 1.35;
}

.khsc-home-block--slider .khsc-home-block__header {
	margin-block: 0.35rem 1.35rem;
}

.khsc-home-block--slider .khsc-home-block__title {
	font-size: clamp(1.55rem, 2.8vw, 2.35rem);
	letter-spacing: -0.01em;
}

.khsc-home-block--video .khsc-home-block__header {
	margin-block: 0.25rem 1.1rem;
}

.khsc-home-block--video .khsc-home-block__title {
	font-size: clamp(1.3rem, 2.2vw, 1.85rem);
}

.khsc-home-block__media {
	width: min(100%, 1100px);
	margin-inline: auto;
}

.khsc-home-block__desc {
	margin: 0.85rem auto 0;
	max-width: 48rem;
	text-align: center;
	color: var(--khsc-color-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.khsc-home-block--video {
	width: 100%;
	margin-inline: auto;
}

.khsc-daily-videos {
	width: 100%;
	margin-block: 0.5rem 2rem;
}

.khsc-daily-video {
	width: 100%;
	margin-inline: auto;
}

.khsc-daily-video + .khsc-daily-video {
	margin-block-start: clamp(3rem, 7vw, 6.5rem);
}

.khsc-daily-video__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
	margin-block: 0.25rem 1.1rem;
}

.khsc-daily-video__title {
	margin: 0;
	max-width: 42rem;
	font-family: var(--khsc-font);
	font-size: clamp(1.3rem, 2.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.55;
	color: var(--khsc-color-text);
}

.khsc-daily-video__media {
	width: min(100%, 1100px);
	margin-inline: auto;
}

.khsc-media-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0f1218;
	border-radius: 16px;
	overflow: hidden;
}

.khsc-media-frame iframe,
.khsc-media-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.khsc-slider {
	position: relative;
	width: min(100%, 1100px);
	margin-inline: auto;
	direction: ltr;
}

.khsc-slider__stage {
	position: relative;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.khsc-slider__track {
	position: relative;
	width: 100%;
	direction: ltr;
}

.khsc-slider__slide {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	overflow: hidden;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.khsc-slider__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.khsc-slider__slide img {
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	border-radius: 16px;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

.khsc-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 2.75rem;
	min-inline-size: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--khsc-color-ink);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(24, 32, 51, 0.12);
	backdrop-filter: blur(4px);
	transition: background-color 0.15s ease, color 0.15s ease;
	touch-action: manipulation;
}

.khsc-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.92);
	color: var(--khsc-color-ink);
}

.khsc-slider__arrow:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

.khsc-slider__arrow--prev {
	left: 0.65rem;
}

.khsc-slider__arrow--next {
	right: 0.65rem;
}

.khsc-slider__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	margin-block-start: 0.95rem;
	direction: ltr;
}

.khsc-slider__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c5cbd6;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.khsc-slider__dot.is-active {
	background: var(--khsc-color-ink);
	transform: scale(1.15);
}

.khsc-slider__dot:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

@media (min-width: 48rem) {
	.khsc-home-feed {
		gap: 4rem;
		padding-block: 2.5rem 1.25rem;
	}

	.khsc-home-block--slider .khsc-home-block__header {
		margin-block: 0.5rem 1.6rem;
	}

	.khsc-slider__arrow--prev {
		left: 1rem;
	}

	.khsc-slider__arrow--next {
		right: 1rem;
	}
}

@media (min-width: 64rem) {
	.khsc-home-feed {
		gap: 5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.khsc-slider__arrow,
	.khsc-slider__dot,
	.khsc-slider__slide {
		transition: none;
	}
}

.khsc-card-section {
	padding-block: 2.5rem 1.5rem;
	min-width: 0;
}

/* Sticky-header offset for /#magnet and /#majors deep links */
#magnet,
#majors {
	scroll-margin-top: 4.75rem;
}

@media (min-width: 48rem) {
	#magnet,
	#majors {
		scroll-margin-top: 7rem;
	}
}

@media screen and (min-width: 601px) and (max-width: 782px) {
	body.admin-bar #magnet,
	body.admin-bar #majors {
		scroll-margin-top: calc(4.75rem + 46px);
	}
}

@media screen and (min-width: 768px) and (max-width: 782px) {
	body.admin-bar #magnet,
	body.admin-bar #majors {
		scroll-margin-top: calc(7rem + 46px);
	}
}

@media screen and (min-width: 783px) {
	body.admin-bar #magnet,
	body.admin-bar #majors {
		scroll-margin-top: calc(7rem + 32px);
	}
}

.khsc-card-section + .khsc-card-section {
	padding-block-start: 3.5rem;
}

@media (min-width: 48rem) {
	.khsc-card-section + .khsc-card-section {
		padding-block-start: 5rem;
	}
}

.khsc-card-section__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	margin-block-end: 1.5rem;
	text-align: center;
}

.khsc-card-section__title {
	margin: 0;
	font-size: clamp(1.55rem, 2.6vw, 2.15rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--khsc-color-ink);
}

.khsc-card-section__shell {
	position: relative;
	min-width: 0;
}

.khsc-card-section__rail {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	padding-block: 0.75rem 1.15rem;
	padding-inline: 0.25rem;
	box-sizing: border-box;
}

.khsc-card-section__nav {
	display: none;
}

/* Shared gradient cards (Teachers, Majors, Magnet School) */
.khsc-gradient-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.95rem;
	width: 100%;
	min-height: 0;
	padding: 1.1rem 1.15rem;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--khsc-grad-start, #ff6b6b), var(--khsc-grad-end, #e83e5b));
	box-shadow: 0 6px 16px rgba(24, 32, 51, 0.1);
	text-decoration: none;
	color: #fff;
	scroll-snap-align: start;
}

.khsc-gradient-card--link {
	cursor: pointer;
}

.khsc-gradient-card,
.khsc-gradient-card:hover,
.khsc-gradient-card:focus,
.khsc-gradient-card:active,
a.khsc-gradient-card:hover,
a.khsc-gradient-card:focus,
a.khsc-gradient-card:active {
	color: #fff;
	background: linear-gradient(135deg, var(--khsc-grad-start, #ff6b6b), var(--khsc-grad-end, #e83e5b));
	box-shadow: 0 6px 16px rgba(24, 32, 51, 0.1);
	transform: none;
	opacity: 1;
	filter: none;
	text-decoration: none;
}

.khsc-gradient-card:hover .khsc-gradient-card__title,
.khsc-gradient-card:hover .khsc-gradient-card__icon,
a.khsc-gradient-card:hover .khsc-gradient-card__title,
a.khsc-gradient-card:hover .khsc-gradient-card__icon {
	color: #fff;
}

.khsc-gradient-card:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 3px;
}

.khsc-gradient-card__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
}

.khsc-gradient-card__title {
	flex: 1 1 auto;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.45;
	text-align: start;
	color: #fff;
}

@media (min-width: 40rem) {
	.khsc-card-section__shell {
		position: relative;
		display: block;
		min-width: 0;
		max-width: 100%;
		/* Arrow gutter — keeps controls outside the scroll viewport */
		padding-inline: 0;
	}

	.khsc-card-section.has-overflow .khsc-card-section__shell {
		padding-inline: 3rem;
	}

	.khsc-card-section__rail {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 1.5rem;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: auto;
		scroll-snap-type: x mandatory;
		/* Instant by default so initial right-edge pin has no left→right flash.
		   Arrow buttons still request smooth scrolling via scrollBy({ behavior }). */
		scroll-behavior: auto;
		/* Shadow safe area inside the scrollport */
		padding-block: 1rem 1.35rem;
		padding-inline: 1.25rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		/* Desktop/tablet: first DOM item sits on the RIGHT (RTL visual order).
		   Mobile stays column + document direction — do not reverse the stack. */
		direction: rtl;
	}

	/* Brief hide until JS settles scroll at the logical start (right / first cards). */
	.khsc-card-section__rail[data-khsc-rail-init] {
		opacity: 0;
	}

	.khsc-card-section__rail::-webkit-scrollbar {
		display: none;
	}

	.khsc-card-section:not(.has-overflow) .khsc-card-section__rail {
		justify-content: safe center;
	}

	.khsc-gradient-card {
		flex: 0 0 auto;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: clamp(15rem, 18vw, 17.5rem);
		min-height: 9.75rem;
		padding: 1.5rem 1.25rem;
		gap: 0.85rem;
		text-align: center;
	}

	.khsc-gradient-card__icon {
		width: 3.25rem;
		height: 3.25rem;
		font-size: 1.55rem;
	}

	.khsc-gradient-card__title {
		text-align: center;
		font-size: 1.02rem;
	}

	.khsc-card-section__nav {
		position: absolute;
		inset-block-start: 50%;
		transform: translateY(-50%);
		z-index: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.65rem;
		height: 2.65rem;
		padding: 0;
		border: 1px solid rgba(24, 32, 51, 0.1);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.95);
		color: var(--khsc-color-ink);
		box-shadow: 0 4px 14px rgba(24, 32, 51, 0.08);
		cursor: pointer;
		touch-action: manipulation;
	}

	.khsc-card-section__nav--prev {
		left: 0;
	}

	.khsc-card-section__nav--next {
		right: 0;
	}

	.khsc-card-section__nav[hidden] {
		display: none !important;
	}

	.khsc-card-section__nav:disabled {
		opacity: 0.35;
		cursor: default;
	}

	.khsc-card-section__nav:focus-visible {
		outline: 3px solid var(--khsc-color-accent);
		outline-offset: 2px;
	}
}

.khsc-teacher-intro-video {
	display: flex;
	flex-direction: column;
	gap: 2.75rem;
	width: min(100%, 1100px);
	margin: 0 auto 2.5rem;
}

@media (min-width: 48rem) {
	.khsc-teacher-intro-video {
		gap: 4.5rem;
	}
}

.khsc-teacher-intro-video__media {
	width: 100%;
	margin: 0;
}

.khsc-major-videos {
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
	width: min(100%, 1100px);
	margin: 0 auto 2.5rem;
}

.khsc-major-videos__item {
	margin: 0;
}

.khsc-major-videos__title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	color: var(--khsc-color-ink);
}

.khsc-major-videos__media {
	width: 100%;
}

/* Magnet School destination pages — compact resource directory */
.khsc-reading:has(.khsc-magnet-resources) {
	width: min(100% - 2rem, var(--khsc-container));
}

.khsc-magnet-resources {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	width: 100%;
	margin: 0 0 2rem;
	padding-block-end: clamp(2.5rem, 5vw, 4rem);
}

.khsc-magnet-resources__grade {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.khsc-magnet-resources__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	text-align: center;
}

.khsc-magnet-resources__title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--khsc-color-ink);
}

.khsc-magnet-resources__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 40rem) {
	.khsc-magnet-resources__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}
}

@media (min-width: 64rem) {
	.khsc-magnet-resources__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.khsc-magnet-resource {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3.25rem;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--khsc-color-border);
	border-radius: var(--khsc-radius-md);
	background: #fff;
	box-shadow: 0 1px 2px rgba(24, 32, 51, 0.04);
	text-decoration: none;
	color: var(--khsc-color-ink);
}

.khsc-magnet-resource,
.khsc-magnet-resource:hover,
.khsc-magnet-resource:focus,
.khsc-magnet-resource:active,
a.khsc-magnet-resource:hover,
a.khsc-magnet-resource:focus,
a.khsc-magnet-resource:active,
.entry-content a.khsc-magnet-resource,
.entry-content a.khsc-magnet-resource:visited,
.entry-content a.khsc-magnet-resource:hover {
	color: var(--khsc-color-ink);
	background: #fff;
	border-color: var(--khsc-color-border);
	box-shadow: 0 1px 2px rgba(24, 32, 51, 0.04);
	transform: none;
	text-decoration: none;
}

.khsc-magnet-resource:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

.khsc-magnet-resource__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	background: var(--khsc-color-surface);
	color: var(--khsc-color-primary);
	font-size: 1.05rem;
}

.khsc-magnet-resource__title {
	flex: 1 1 auto;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: start;
}

.khsc-magnet-resource__ext {
	flex: 0 0 auto;
	color: #8b93a7;
	font-size: 0.95rem;
	line-height: 1;
}

.archive-masonry {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	direction: rtl;
	grid-auto-flow: row;
}

.archive-card {
	margin: 0;
	background: #fff;
	border: 1px solid var(--khsc-color-border);
	border-radius: var(--khsc-radius-md);
	overflow: hidden;
}

.archive-card a {
	color: inherit;
	text-decoration: none;
}

.archive-card__media {
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: var(--khsc-color-surface);
}

.archive-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.archive-card__body {
	padding: 0.85rem 1rem 0.95rem;
}

.archive-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	line-height: 1.45;
}

@media (min-width: 48rem) {
	.archive-masonry {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.archive-masonry {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.khsc-reading {
	width: min(100% - 2rem, var(--khsc-reading-width));
	margin-inline: auto;
	padding-block: 2rem 3rem;
}

.khsc-reading .entry-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.35;
	color: var(--khsc-color-ink);
}

.khsc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	color: var(--khsc-color-muted);
	font-size: 0.92rem;
	margin-block-end: 1.25rem;
}

.khsc-featured {
	margin-block-end: 1.5rem;
	background: var(--khsc-color-surface);
	border-radius: var(--khsc-radius-md);
	overflow: hidden;
}

.khsc-featured img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content > *:first-child {
	margin-block-start: 0;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content a {
	color: #2563eb;
	text-decoration: none;
	text-decoration-thickness: initial;
	text-underline-offset: initial;
}

.entry-content a:visited {
	color: #2563eb;
}

.entry-content a:hover {
	color: #1d4ed8;
	text-decoration: none;
}

.entry-content a:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

/* Account nav / buttons must not inherit blue content-link styles. */
.entry-content .woocommerce-MyAccount-navigation a,
.entry-content .woocommerce-MyAccount-navigation a:visited,
.entry-content .woocommerce-MyAccount-navigation a:hover,
.entry-content .woocommerce-button,
.entry-content .woocommerce-button:visited,
.entry-content .woocommerce-button:hover,
.entry-content a.button,
.entry-content a.button:visited,
.entry-content a.button:hover,
.entry-content .woocommerce-Button,
.entry-content .woocommerce-Button:visited,
.entry-content .woocommerce-Button:hover {
	color: inherit;
	text-decoration: none;
}

/* Native Classic Editor / WordPress galleries */
.entry-content .gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 1.25rem 0;
	width: 100%;
	clear: both;
}

.entry-content .gallery .gallery-item {
	display: block;
	float: none;
	width: 100% !important;
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.entry-content .gallery .gallery-icon {
	margin: 0;
}

.entry-content .gallery .gallery-icon img,
.entry-content .gallery .gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin-inline: auto;
	border: 0;
	object-fit: unset;
}

.entry-content .gallery .gallery-caption {
	margin: 0.45rem 0 0;
	padding: 0 0.25rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--khsc-color-muted);
}

.entry-content .gallery br {
	display: none;
}

.entry-content .gallery-columns-1 {
	grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
	.entry-content .gallery {
		gap: 1.1rem;
	}

	.entry-content .gallery-columns-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-3,
	.entry-content .gallery-columns-4,
	.entry-content .gallery-columns-5,
	.entry-content .gallery-columns-6,
	.entry-content .gallery-columns-7,
	.entry-content .gallery-columns-8,
	.entry-content .gallery-columns-9 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.entry-content .gallery {
		gap: 1.25rem;
	}

	.entry-content .gallery-columns-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-7 {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-8 {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	.entry-content .gallery-columns-9 {
		grid-template-columns: repeat(9, minmax(0, 1fr));
	}
}

/* Gutenberg gallery (if present) — same responsive idea */
.entry-content .wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.25rem 0;
}

.entry-content .wp-block-gallery .wp-block-image {
	margin: 0;
}

.entry-content .wp-block-gallery .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.khsc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.9);
	direction: ltr;
}

.khsc-lightbox.is-open {
	display: flex;
}

.khsc-lightbox__dialog {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 96vw);
	height: min(100%, 96vh);
	outline: none;
}

.khsc-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.khsc-lightbox__img {
	display: block;
	max-width: min(90vw, 1400px);
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	pointer-events: none;
}

.khsc-lightbox__btn {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	font: inherit;
}

.khsc-lightbox__btn:hover,
.khsc-lightbox__btn:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.khsc-lightbox__btn:disabled {
	opacity: 0.28;
	cursor: default;
	pointer-events: none;
}

.khsc-lightbox__close {
	top: 0.75rem;
	right: 0.75rem;
}

.khsc-lightbox__prev {
	left: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
}

.khsc-lightbox__next {
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
}

.khsc-lightbox__btn i {
	font-size: 1.35rem;
	line-height: 1;
}

body.khsc-lightbox-open {
	overflow: hidden;
}

/* About Us gallery tabs */
.khsc-about-tabs {
	margin-block: 0.5rem 2rem;
}

.khsc-about-tabs__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.35rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	margin-block-end: 1.5rem;
	padding-block-end: 0.15rem;
}

.khsc-about-tabs__tab {
	flex: 0 0 auto;
	appearance: none;
	border: 0;
	border-block-end: 2px solid transparent;
	background: transparent;
	color: var(--khsc-color-muted);
	font: inherit;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.4;
	padding: 0.55rem 0.85rem;
	cursor: pointer;
	white-space: nowrap;
}

.khsc-about-tabs__tab:hover {
	color: var(--khsc-color-ink);
}

.khsc-about-tabs__tab.is-active,
.khsc-about-tabs__tab[aria-selected='true'] {
	color: var(--khsc-color-ink);
	border-block-end-color: var(--khsc-color-primary);
	font-weight: 600;
}

.khsc-about-tabs__tab:focus-visible {
	outline: 3px solid var(--khsc-color-accent);
	outline-offset: 2px;
}

.khsc-about-tabs__panel[hidden] {
	display: none !important;
}

.entry-content .khsc-about-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	width: 100%;
	margin: 0;
}

.entry-content .khsc-about-gallery .gallery-item,
.entry-content .khsc-about-gallery__item {
	margin: 0;
	width: 100% !important;
	float: none;
	max-width: none;
}

.entry-content .khsc-about-gallery .gallery-icon a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.entry-content .khsc-about-gallery img,
.entry-content .khsc-about-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--khsc-radius-sm);
}

.khsc-about-gallery__empty {
	margin: 1rem 0;
	color: var(--khsc-color-muted);
	text-align: center;
}

@media (min-width: 48rem) {
	.entry-content .khsc-about-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.1rem;
	}
}

@media (min-width: 64rem) {
	.entry-content .khsc-about-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.khsc-breadcrumbs {
	margin-block-end: 1rem;
	font-size: 0.9rem;
	color: var(--khsc-color-muted);
}

.khsc-breadcrumbs a {
	color: inherit;
}

.navigation.pagination {
	margin-block: 2rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.navigation.pagination a,
.navigation.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--khsc-color-border);
	border-radius: var(--khsc-radius-sm);
	text-decoration: none;
	color: var(--khsc-color-ink);
}

.navigation.pagination .current {
	background: var(--khsc-color-primary);
	border-color: var(--khsc-color-primary);
	color: #fff;
}

.khsc-empty {
	padding: 2rem;
	text-align: center;
	background: var(--khsc-color-surface);
	border-radius: var(--khsc-radius-md);
}

.khsc-site-footer {
	margin-block-start: 3rem;
	padding-block: 2.75rem 1.5rem;
	background: #000;
	color: #f2f2f2;
}

.khsc-footer__grid {
	display: grid;
	gap: 1.75rem;
	align-items: start;
}

@media (min-width: 48rem) {
	.khsc-footer__grid--n1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.khsc-footer__grid--n2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.khsc-footer__grid--n3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.khsc-footer__title {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
	color: #f7f7f7;
}

.khsc-footer__text {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.75;
	color: #c8c8c8;
	overflow-wrap: anywhere;
}

.khsc-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.khsc-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 999px;
	color: #f2f2f2;
	text-decoration: none;
	background: transparent;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.khsc-footer__social-link .bi {
	font-size: 1.25rem;
	line-height: 1;
}

.khsc-footer__social-link:hover,
.khsc-footer__social-link:focus-visible {
	opacity: 0.85;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.khsc-footer__legal {
	margin-block-start: 2rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #9a9a9a;
	text-align: right;
}

.khsc-search-form {
	display: flex;
	gap: 0.5rem;
}

.khsc-search-form input[type="search"] {
	flex: 1;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--khsc-color-border);
	border-radius: var(--khsc-radius-sm);
	font: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
