/* ==========================================================================
   AMARTANGAIL.COM — single views of entries and places
   Loaded on single pages of platform content only.
   ========================================================================== */

.at-entity__header {
	max-width: var(--at-width-reading);
	margin-bottom: var(--at-space-6);
}

.at-entity__title {
	margin-bottom: var(--at-space-2);
}

.at-entity__dateline {
	margin: 0 0 var(--at-space-3);
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}

.at-entity__lede {
	margin-bottom: var(--at-space-3);
	color: var(--at-green-deep);
	font-size: var(--at-text-lg);
}

.at-entity__terms {
	margin-top: var(--at-space-3);
}

/* Main text beside a facts column on wide screens; stacked, facts first
   after the heading, on narrow ones. */
.at-entity__layout {
	display: grid;
	gap: var(--at-space-6);
}

.at-entity__layout--aside .at-entity__aside {
	order: -1;
}

@media (min-width: 1024px) {
	.at-entity__layout--aside {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
		gap: var(--at-space-7);
	}

	.at-entity__layout--aside .at-entity__aside {
		order: 0;
	}
}

.at-entity__main > * + * {
	margin-block-start: var(--at-space-6);
}

.at-entity__figure {
	max-width: var(--at-width-reading);
	margin: 0;
}

.at-entity__figure img {
	display: block;
	width: 100%;
	border-radius: var(--at-radius-card-lg);
}

.at-entity__figure figcaption {
	margin-top: var(--at-space-2);
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}

.at-entity__heading {
	margin-bottom: var(--at-space-3);
	font-size: var(--at-text-xl);
}

.at-entity__aside {
	display: grid;
	gap: var(--at-space-4);
}

/* Facts box */
.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-facts__list {
	margin: 0;
}

.at-facts__row {
	padding-block: var(--at-space-2);
	border-bottom: 1px solid var(--at-border);
}

.at-facts__row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.at-facts__row dt {
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}

.at-facts__row dd {
	margin: 0;
	color: var(--at-text);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.at-facts__row dd p,
.at-facts__row dd ul {
	margin: 0;
	font-weight: 400;
}

.at-facts__row dd ul {
	padding: 0;
	list-style: none;
}

/* Correction notice on a news article */
.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;
}

/* Places inside a place: a compact list of links in columns */
.at-link-list {
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: var(--at-space-6);
	list-style: none;
}

@media (min-width: 600px) {
	.at-link-list {
		columns: 3;
	}
}

.at-link-list li {
	break-inside: avoid;
}

.at-link-list a {
	display: inline-block;
	padding-block: 6px;
}

/* Bands of content filed under a place, and related entries */
.at-entity__band {
	border-top: 1px solid var(--at-border);
}

.at-entity__band:nth-of-type(even) {
	background: var(--at-white);
}

.at-entity__related {
	border-top: 1px solid var(--at-border);
}

/* Photograph galleries */
.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);
}

/* Audio and video */
.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);
}

/* Verification status: words and an icon, with a border as a third cue */
.at-verify {
	display: flex;
	gap: var(--at-space-3);
	max-width: var(--at-width-reading);
	margin-top: var(--at-space-4);
	padding: var(--at-space-3) var(--at-space-4);
	border: 1px solid var(--at-border);
	border-inline-start: 5px solid var(--at-muted);
	border-radius: var(--at-radius-button);
	background: var(--at-white);
}

.at-verify--verified {
	border-inline-start-color: var(--at-success);
}

.at-verify--source-checked,
.at-verify--under-review {
	border-inline-start-color: var(--at-green);
}

.at-verify--disputed {
	border-inline-start-color: var(--at-gold);
}

.at-verify__icon {
	flex: none;
	margin-top: 3px;
	color: var(--at-green-deep);
}

.at-verify__label {
	margin: 0;
	color: var(--at-green-deep);
	font-weight: 700;
}

.at-verify__text,
.at-verify__note {
	margin: 0;
	color: var(--at-text-muted);
	font-size: var(--at-text-sm);
}

.at-verify__note {
	margin-top: var(--at-space-1);
	color: var(--at-text);
}

/* Sources */
.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);
}

/* A translation that is behind its original */
.at-notice--translation {
	margin-top: var(--at-space-4);
	margin-bottom: 0;
}

.at-notice--translation p {
	margin: 0;
}

/* "Is this your business?" ------------------------------------------------- */

.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;
}

/* "Save" for members ------------------------------------------------------- */

.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;
}
