/* ==========================================================================
 * What the section pages share with the place pages (TD-161).
 *
 * The rules of entity.css and location.css that the pages loading
 * sections.css can show, copied unchanged and in the same order, so that
 * those pages load this small file instead of both large ones. Made by
 * keeping each rule whose selector matches one of those pages or names a
 * class their templates print. A rule changed in entity.css or location.css
 * must be changed here too: tests/integration/performance.php checks that
 * every rule here is still in one of them, unchanged.
 * ========================================================================== */

.at-entity__heading {
	margin-bottom: var(--at-space-3);
	font-size: var(--at-text-xl);
}
.at-facts {
	padding: var(--at-space-5);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-card);
	background: var(--at-white);
	box-shadow: var(--at-shadow-card);
}
.at-facts__title {
	margin-bottom: var(--at-space-3);
	padding-bottom: var(--at-space-2);
	border-bottom: 2px solid var(--at-gold);
	font-size: var(--at-text-lg);
}
.at-notice {
	max-width: var(--at-width-reading);
	margin-bottom: var(--at-space-6);
	padding: var(--at-space-4) var(--at-space-5);
	border: 1px solid var(--at-gold);
	border-inline-start-width: 5px;
	border-radius: var(--at-radius-button);
	background: var(--at-white);
}
.at-notice__title {
	margin-bottom: var(--at-space-1);
	font-size: var(--at-text-base);
}
.at-notice > :last-child {
	margin-bottom: 0;
}
.at-entity__related {
	border-top: 1px solid var(--at-border);
}
.at-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--at-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 600px) {
	.at-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.at-gallery figure {
	margin: 0;
}
.at-gallery__link {
	display: block;
	overflow: hidden;
	border-radius: var(--at-radius-card);
}
.at-gallery__link img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.at-gallery figcaption {
	margin-top: var(--at-space-1);
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}
.at-entity__audio {
	width: 100%;
	max-width: var(--at-width-reading);
}
.at-entity__embed {
	max-width: var(--at-width-reading);
	margin-bottom: var(--at-space-3);
}
.at-entity__embed iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--at-radius-card);
}
.at-sources__list {
	max-width: var(--at-width-reading);
	margin: 0;
	padding-inline-start: 1.6em;
}
.at-sources__item {
	margin-bottom: var(--at-space-3);
	overflow-wrap: anywhere;
}
.at-sources__title {
	font-style: normal;
	font-weight: 600;
}
.at-sources__kind {
	display: inline-block;
	margin-inline-start: var(--at-space-1);
	padding: 0 8px;
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-pill);
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}
.at-sources__link {
	display: block;
	font-size: var(--at-text-sm);
}
.at-notice--translation {
	margin-top: var(--at-space-4);
	margin-bottom: 0;
}
.at-notice--translation p {
	margin: 0;
}
.at-claim {
	margin-top: var(--at-space-4);
}
.at-claim__text {
	margin: 0 0 var(--at-space-3);
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}
.at-claim__details > summary {
	display: inline-flex;
	list-style: none;
	cursor: pointer;
}
.at-claim__details > summary::-webkit-details-marker {
	display: none;
}
.at-claim__details[open] > summary {
	margin-bottom: var(--at-space-4);
}
.at-claim__form .at-form__field {
	margin-bottom: var(--at-space-3);
}
.at-claim__form input,
.at-claim__form select,
.at-claim__form textarea {
	width: 100%;
}
.at-claim .at-form-message {
	margin-bottom: var(--at-space-3);
	font-size: var(--at-text-sm);
}
.at-claim__confirmed {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin: var(--at-space-3) 0 0;
	color: var(--at-green-deep);
	font-size: var(--at-text-sm);
}
.at-claim__confirmed .at-icon {
	flex: none;
	margin-top: 3px;
}
.at-save {
	margin: var(--at-space-3) 0 0;
}
.at-save__button {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 40px;
	padding: 6px 14px;
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-pill);
	background: var(--at-white);
	color: var(--at-green-deep);
	font: inherit;
	font-size: var(--at-text-sm);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.at-save__button:hover {
	border-color: var(--at-green);
}
.at-save__button.is-saved {
	border-color: var(--at-green);
	background: #F1F8F3;
}

.at-lhero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(260px, 38vw, 440px);
	background: var(--at-green-deep);
	color: var(--at-white);
}
.at-lhero__slides {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}
.at-lhero__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.at-lhero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease;
}
.at-lhero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.at-lhero--image .at-lhero__slides::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(0, 40, 36, 0.9) 0%, rgba(0, 40, 36, 0.74) 45%, rgba(0, 40, 36, 0.68) 100%);
	pointer-events: none;
}
@media (min-width: 900px) {
	.at-lhero--image .at-lhero__slides::after {
		background:
			linear-gradient(to right, rgba(0, 40, 36, 0.9) 0, rgba(0, 40, 36, 0.74) 760px, rgba(0, 40, 36, 0.2) 1200px),
			linear-gradient(to top, rgba(0, 40, 36, 0.55) 0%, rgba(0, 40, 36, 0) 40%);
	}
}
.at-lhero__inner {
	width: 100%;
	padding-block: var(--at-space-5) var(--at-space-8);
}
@media (min-width: 900px) {
	.at-lhero__inner > :not(.at-breadcrumb) {
		max-width: 620px;
	}
}
.at-lhero__eyebrow {
	margin: 0 0 var(--at-space-1);
	color: var(--at-on-deep-muted);
	font-size: var(--at-text-sm);
	font-weight: 600;
}
.at-lhero__title {
	margin: 0;
	color: var(--at-white);
	font-size: var(--at-text-4xl);
	line-height: 1.2;
}
.at-lhero__title-en {
	margin: var(--at-space-1) 0 0;
	font-family: var(--at-font-en);
	font-size: var(--at-text-xl);
}
.at-lhero__subtitle {
	margin: var(--at-space-2) 0 0;
	font-size: var(--at-text-xl);
	font-weight: 600;
}
.at-lhero__lede {
	margin: var(--at-space-3) 0 0;
	font-size: var(--at-text-lg);
}
.at-breadcrumb--light {
	margin-bottom: var(--at-space-6);
}
.at-breadcrumb--light,
.at-breadcrumb--light a,
.at-breadcrumb--light [aria-current],
.at-breadcrumb--light .at-breadcrumb__item::after,
.at-breadcrumb--light .at-breadcrumb__item::before {
	color: var(--at-white);
}
.at-breadcrumb--light a:hover {
	color: var(--at-white);
	text-decoration-thickness: 2px;
}
.at-lhero :focus-visible {
	outline-color: var(--at-white);
}
.at-lhero__credit {
	position: absolute;
	right: var(--at-gutter);
	bottom: var(--at-space-7);
	z-index: 1;
	max-width: min(46ch, 60%);
	margin: 0;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(0, 40, 36, 0.85);
	color: var(--at-white);
	font-size: var(--at-text-xs);
	text-align: right;
}
.at-credit > span + span::before {
	content: " · ";
}
.at-lhero__controls {
	position: absolute;
	top: var(--at-space-4);
	right: var(--at-gutter);
	z-index: 2;
	display: flex;
	gap: var(--at-space-2);
}
.at-lhero__controls[hidden] {
	display: none;
}
.at-lhero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--at-control-height);
	height: var(--at-control-height);
	padding: 0;
	border: 2px solid var(--at-white);
	border-radius: 50%;
	background: rgba(0, 40, 36, 0.85);
	color: var(--at-white);
	cursor: pointer;
}
.at-lhero__button:hover {
	background: var(--at-white);
	color: var(--at-green-deep);
}
@media (max-width: 599px) {
	.at-lhero__inner {
		padding-top: calc(var(--at-control-height) + var(--at-space-6));
	}
	.at-lhero__credit {
		position: static;
		max-width: none;
		border-radius: 0;
		text-align: left;
	}
	.at-lhero__slide .at-lhero__credit {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
	}
}
.at-lhero + .at-container:not(:has(.at-lstats)) {
	margin-top: var(--at-space-5);
}
.at-panel[id] {
	scroll-margin-top: 96px;
}
.at-panel {
	padding: var(--at-space-5);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-card);
	background: var(--at-white);
	box-shadow: var(--at-shadow-card);
}
.at-panel__title {
	display: flex;
	align-items: center;
	gap: var(--at-space-2);
	margin: 0 0 var(--at-space-4);
	font-size: var(--at-text-xl);
}
.at-panel__title .at-icon {
	flex: none;
	color: var(--at-green);
}
.at-panel > .at-section-header {
	margin-bottom: var(--at-space-4);
}
.at-panel > .at-section-header .at-section-header__title {
	font-size: var(--at-text-xl);
}
.at-panel .at-news-row + .at-news-row {
	margin-top: var(--at-space-4);
}
.at-button--small {
	min-height: var(--at-control-height);
	padding: 6px 16px;
	border-radius: var(--at-radius-pill);
	background: var(--at-green-deep);
	font-size: var(--at-text-sm);
	white-space: nowrap;
}
.at-button--small.at-button--outline {
	background: transparent;
}
.at-button--small.at-button--outline:hover {
	background: var(--at-green);
}
.at-side-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}
.at-place__media .at-card__placeholder {
	color: var(--at-on-deep-muted);
}
.at-where__map .at-map__svg {
	max-height: 300px;
}
.at-upazila__row > .at-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--at-space-4);
}
.at-upazila__row .at-panel__title,
.at-upazila__row .at-panel > .at-section-header .at-section-header__title {
	font-size: var(--at-text-lg);
}
.at-union-map .at-map__svg {
	max-height: 230px;
}
.at-union-map .at-map__legend {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--at-space-5);
	columns: auto;
	max-height: 150px;
	margin: var(--at-space-2) 0 0;
	overflow-y: auto;
	font-size: var(--at-text-xs);
	scrollbar-width: thin;
}
.at-union-map .at-map__legend li {
	display: list-item;
	min-width: 0;
	overflow-wrap: anywhere;
}
.at-panel__pills--tabs .at-pill {
	min-height: 32px;
	padding: 4px 12px;
	font-size: var(--at-text-xs);
}
.at-person-slide {
	display: grid;
	flex: 0 0 100%;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: var(--at-space-3);
	align-items: start;
	scroll-snap-align: start;
}
.at-person-slide__media {
	display: grid;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--at-radius-button);
	background: #EAF2EE;
	place-items: center;
	color: var(--at-green);
}
.at-person-slide__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.at-person-slide__name {
	margin: 0;
	font-size: var(--at-text-base);
}
.at-person-slide__role {
	margin: 2px 0 0;
	color: var(--at-gold-ink);
	font-size: var(--at-text-xs);
	font-weight: 600;
}
.at-person-slide__text {
	margin: var(--at-space-2) 0;
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}
.at-person-slide .at-button {
	margin-top: var(--at-space-2);
}
.at-upazila__others .at-pill .at-icon {
	color: var(--at-green);
}
.at-district__main .at-section-header__title {
	display: flex;
	align-items: center;
	gap: var(--at-space-2);
}
@media (max-width: 640px) {
}
.at-side-nav__link {
	display: flex;
	align-items: center;
	gap: var(--at-space-3);
	min-height: var(--at-control-height);
	padding: 8px 12px;
	border-radius: var(--at-radius-button);
	color: var(--at-heading);
	font-weight: 600;
	text-decoration: none;
}
.at-side-nav li + li {
	border-top: 1px solid var(--at-border);
}
.at-side-nav__link:hover {
	background: var(--at-bg);
	color: var(--at-green-deep);
	text-decoration: underline;
}
.at-side-nav__link.is-current {
	background: var(--at-green-deep);
	color: var(--at-white);
}
.at-side-nav__arrow {
	margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
	.at-lhero__slide,
	.at-lhero__slide.is-active {
		transition: none;
	}
}
.at-map-dialog .at-map__svg {
	max-width: 640px;
	margin-inline: auto;
}
.at-map--context .at-map__svg {
	max-height: 360px;
	border-radius: var(--at-radius-card);
	background: #F7FAF8;
}
.at-map__pin path {
	fill: var(--at-green-deep);
}
.at-map__pin circle {
	fill: var(--at-white);
}
.at-tangail__three > .at-panel,
.at-tangail__pair > .at-panel {
	min-width: 0;
	padding: var(--at-space-4);
}
.at-tangail__three .at-section-header__title,
.at-tangail__pair .at-section-header__title,
.at-tangail__pair .at-panel__title,
.at-tangail__three .at-panel__title {
	font-size: var(--at-text-lg);
}
.at-placepage__up .at-button {
	width: 100%;
	height: auto;
	justify-content: center;
	padding-block: 8px;
	white-space: normal;
	text-align: center;
}
.at-placepage__where .at-map {
	margin-bottom: var(--at-space-4);
}
.at-placepage__where-more .at-button {
	width: 100%;
	justify-content: center;
}
@media (max-width: 1099px) {
	.at-placepage__menu .at-side-nav__link {
		min-height: 40px;
		border: 1px solid var(--at-border);
		border-radius: var(--at-radius-pill);
		white-space: nowrap;
	}
}
.at-history__related-count + .at-side-nav__arrow {
	margin-left: 0;
}
.at-ptabs {
	position: relative;
	z-index: 2;
	margin-top: calc(var(--at-space-7) * -1);
	padding: var(--at-space-3);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-card);
	background: var(--at-white);
	box-shadow: var(--at-shadow-card);
}
.at-ptabs__list {
	position: relative;
	display: flex;
	gap: var(--at-space-2);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}
.at-ptabs__list > li {
	flex: 1 1 0;
	min-width: 92px;
}
.at-ptabs__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 100%;
	min-height: 64px;
	padding: 8px 14px;
	border-radius: var(--at-radius-button);
	color: var(--at-heading);
	font-size: var(--at-text-sm);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.at-ptabs__tab .at-icon {
	flex: none;
	color: var(--at-green);
}
.at-ptabs__list > li:first-child .at-ptabs__tab,
.at-ptabs__more .at-ptabs__tab {
	flex-direction: column;
	gap: 2px;
	min-width: 84px;
}
.at-ptabs__tab:hover {
	background: var(--at-bg);
	color: var(--at-green-deep);
}
.at-ptabs__tab.is-current {
	background: var(--at-green-deep);
	color: var(--at-white);
}
.at-ptabs__tab.is-current .at-icon {
	color: var(--at-white);
}
.at-ptabs__details > summary {
	list-style: none;
}
.at-ptabs__details > summary::-webkit-details-marker {
	display: none;
}
.at-ptabs__menu {
	position: absolute;
	right: 0;
	z-index: 3;
	min-width: 220px;
	margin: 6px 0 0;
	padding: var(--at-space-2);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-card);
	background: var(--at-white);
	box-shadow: var(--at-shadow-card);
	list-style: none;
}
.at-ptabs__menu a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--at-radius-button);
	color: var(--at-heading);
	font-weight: 600;
	text-decoration: none;
}
.at-ptabs__menu a:hover,
.at-ptabs__menu a[aria-current] {
	background: var(--at-bg);
	color: var(--at-green-deep);
}
.at-ptabs:has(.at-ptabs__details[open]) .at-ptabs__list {
	overflow: visible;
}
.at-psearch {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--at-space-3);
	margin: 0;
}
@media (min-width: 760px) {
	.at-psearch {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	}
}
.at-psearch p {
	margin: 0;
}
.at-psearch__words {
	display: flex;
}
.at-psearch input[type="search"],
.at-psearch select {
	width: 100%;
	min-height: var(--at-control-height);
	padding: 6px 12px;
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-button);
	background: var(--at-white);
	color: var(--at-text);
	font: inherit;
	font-size: var(--at-text-sm);
}
.at-psearch input[type="search"] {
	border-right: 0;
	border-radius: var(--at-radius-button) 0 0 var(--at-radius-button);
}
.at-psearch input:focus-visible,
.at-psearch select:focus-visible {
	outline: 3px solid var(--at-gold);
	outline-offset: 1px;
}
.at-quicklinks .at-side-nav__link {
	font-weight: 600;
}
.at-onward__tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--at-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.at-onward__tile {
	display: grid;
	justify-items: center;
	gap: 6px;
	height: 100%;
	padding: var(--at-space-3) var(--at-space-2);
	border: 1px solid var(--at-border);
	border-radius: var(--at-radius-button);
	background: var(--at-white);
	color: var(--at-heading);
	font-size: var(--at-text-sm);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.at-onward__tile .at-icon {
	color: var(--at-green-deep);
}
.at-onward__tile:hover {
	border-color: var(--at-green);
	background: #EAF2EE;
}
