/*
 * Marvelous City Rio — article grammar ("The Traveller").
 *
 * Adapted from the approved prototype
 * workspace/design/2026-07-17-page-templates/page-article.html
 * (.proto-article → .mc-article). Masthead + footer chrome lives in chrome.css;
 * this sheet carries the article page (single.html / page.html) plus the
 * content patterns that ride inside the reading measure — short answer box,
 * pull quote, section label, FAQ block — which are left unscoped so they work
 * wherever an editor drops them.
 */

.mc-article {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--text);
	overflow-x: clip;
}

.mc-article a:focus-visible {
	outline: 2px solid var(--wp--preset--color--teal);
	outline-offset: 3px;
}

/* ---------- Article header ---------- */

.mc-article .mc-art-head {
	padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.25rem, 4vw, 3rem) 0;
	text-align: center;
}

.mc-article .mc-kicker {
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.1rem);
	font: 600 0.875rem/1 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	text-indent: 0.28em;
	color: var(--wp--preset--color--teal);
}

.mc-article .mc-kicker a {
	color: inherit;
	text-decoration: none;
}

.mc-article .mc-kicker::before,
.mc-article .mc-kicker::after {
	content: "";
	width: clamp(26px, 6vw, 56px);
	height: 1px;
	background: rgba(30, 30, 28, 0.18);
}

.mc-article .mc-headline {
	margin: clamp(1.1rem, 3vw, 1.6rem) auto 0;
	max-width: 46rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(1.8rem, 1.05rem + 3.1vw, 3.25rem);
	line-height: 1.12;
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
}

.mc-article .mc-byline {
	margin: clamp(1.6rem, 3.5vw, 2.25rem) auto 0;
	width: fit-content;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 1.6rem;
	border-top: 1px solid rgba(30, 30, 28, 0.16);
	border-bottom: 1px solid rgba(30, 30, 28, 0.16);
	font: 600 0.875rem/1.4 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(30, 30, 28, 0.64);
}

.mc-article .mc-byline > * {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

.mc-article .mc-dot {
	color: var(--wp--preset--color--gold);
}

/* ---------- The photograph (placeholder until Rodrigo's batch lands) ---------- */

.mc-article .mc-art-photo {
	max-width: 72rem;
	margin: clamp(2rem, 5vw, 3.25rem) auto 0;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.mc-article .mc-ph-art {
	width: 100%;
	height: clamp(300px, 48vw, 600px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(194, 155, 78, 0.1);
	border: 1px solid rgba(30, 30, 28, 0.14);
}

.mc-article .mc-ph-art .mc-ph-label {
	font: 600 0.875rem/1.5 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	text-indent: 0.2em;
	text-align: center;
	color: rgba(30, 30, 28, 0.66);
}

.mc-article .mc-caption {
	margin: 0.85rem 0 0;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem 2rem;
	flex-wrap: wrap;
}

.mc-article .mc-cap-text {
	font: 400 0.875rem/1.6 var(--wp--preset--font-family--text);
	color: rgba(30, 30, 28, 0.68);
}

.mc-article .mc-cap-credit {
	font: 600 0.875rem/1.6 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(30, 30, 28, 0.64);
	white-space: nowrap;
}

/* ---------- Body (the 66ch reading measure) ---------- */

.mc-article .mc-art-body {
	max-width: 66ch;
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2.75rem, 6vw, 4.25rem);
	font-size: 1.0625rem;
}

.mc-article .mc-art-body p {
	margin: 0 0 1.7rem;
	font-weight: 400;
	line-height: 1.75;
	color: var(--wp--preset--color--body);
}

.mc-article .mc-art-body .mc-lede {
	font-size: 1.125rem;
}

.mc-article .mc-art-body strong {
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.mc-article .mc-art-body h2 {
	margin: 2.9rem 0 1.1rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.7rem);
	line-height: 1.25;
	color: var(--wp--preset--color--ink);
}

.mc-article .mc-art-body .mc-short-answer + h2 {
	margin-top: 0;
}

/* ---------- Short-answer box (pattern: marvelous-city/short-answer) ---------- */

.mc-short-answer {
	margin: 0 0 2.75rem;
	padding: 1.4rem 1.6rem 1.5rem;
	background: rgba(194, 155, 78, 0.09);
	border: 1px solid rgba(30, 30, 28, 0.14);
}

.mc-short-answer .mc-sa-label {
	margin: 0 0 0.75rem;
	font: 600 0.875rem/1 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--wp--preset--color--teal);
}

.mc-short-answer .mc-sa-text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--body);
}

/* ---------- Pull quote ---------- */

.mc-pull {
	margin: 2.9rem 0;
	padding: 2rem 1rem 2.1rem;
	border-top: 1px solid rgba(30, 30, 28, 0.16);
	border-bottom: 1px solid rgba(30, 30, 28, 0.16);
	text-align: center;
}

.mc-pull::before {
	content: "";
	display: block;
	width: 44px;
	height: 2px;
	margin: 0 auto 1.5rem;
	background: var(--wp--preset--color--gold);
}

.mc-pull p {
	margin: 0 auto;
	max-width: 34ch;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.6rem);
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
}

/* ---------- Section labels (rules to the edges) ---------- */

.mc-sec-label {
	margin: 0;
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 1.75rem);
	font: 600 0.875rem/1 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: var(--wp--preset--color--teal);
	white-space: nowrap;
}

.mc-sec-label::before,
.mc-sec-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(30, 30, 28, 0.16);
}

/* ---------- FAQ (pattern: marvelous-city/faq-block) ---------- */

.mc-faq {
	margin-top: 3.25rem;
}

.mc-faq .mc-faq-item {
	padding: 1.5rem 0 1.6rem;
	border-bottom: 1px solid rgba(30, 30, 28, 0.12);
}

.mc-faq .mc-faq-item:last-child {
	border-bottom: none;
}

.mc-faq .mc-faq-q {
	margin: 0 0 0.6rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.1875rem;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

.mc-faq .mc-faq-a {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--body);
}

/* ---------- Related reading ---------- */

.mc-article .mc-related {
	max-width: 72rem;
	margin: clamp(2.75rem, 6vw, 4.25rem) auto 0;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.mc-article .mc-rel-grid {
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.mc-article .mc-rel-card {
	display: block;
	text-decoration: none;
}

.mc-article .mc-rel-card .mc-photo-ph {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(194, 155, 78, 0.1);
	border: 1px solid rgba(30, 30, 28, 0.14);
}

.mc-article .mc-rel-card .mc-ph-label {
	font: 600 0.875rem/1.5 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	text-indent: 0.2em;
	text-align: center;
	color: rgba(30, 30, 28, 0.66);
}

.mc-article .mc-rel-kicker {
	margin: 1.15rem 0 0;
	font: 600 0.875rem/1 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--wp--preset--color--teal);
}

.mc-article .mc-rel-title {
	margin: 0.6rem 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	transition: color 140ms ease;
}

.mc-article .mc-rel-card:hover .mc-rel-title {
	color: var(--wp--preset--color--teal);
}

.mc-article .mc-rel-byline {
	margin: 0.7rem 0 0;
	font: 600 0.875rem/1.5 var(--wp--preset--font-family--text);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(30, 30, 28, 0.64);
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
	.mc-article .mc-rel-grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 27rem;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 759px) {
	.mc-article .mc-ph-art {
		height: clamp(260px, 62vw, 380px);
	}
}

@media (max-width: 599px) {
	.mc-article .mc-byline {
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.85rem 1.1rem;
	}

	.mc-article .mc-byline .mc-dot {
		display: none;
	}

	.mc-article .mc-caption {
		flex-direction: column;
		gap: 0.35rem;
	}
}

/* Featured image rendered by core/post-featured-image in single.html */
.mc-article .mc-art-photo img { display: block; width: 100%; height: clamp(300px, 48vh, 560px); object-fit: cover; }
.mc-article .wp-block-post-featured-image.mc-art-photo { margin: 0 auto clamp(1.5rem, 4vw, 2.75rem); max-width: 72rem; }

/* ---------- Wide furniture inside the reading measure (fix 2026-07-27) ----------
   .mc-art-body is a 66ch measure (~620px). Two pieces of furniture were designed
   for the full-width hotels page and break when dropped inside it:

     .mc-entry     a four-column grid — photo / numeral / text / button. Its text
                   cell carries min-width:0, which removes the min-content floor
                   that normally protects a 1fr column. Inside the measure the
                   fixed columns eat almost everything and the text column
                   collapses until a hotel name sets ONE CHARACTER PER LINE.
     .mc-tbl-wrap  a 56rem comparison table, squeezed to ~550px.

   Rather than shrink the furniture, let it break out of the measure — which is
   what a magazine does with a table wider than its body column. */

.mc-article .mc-art-body .mc-tbl-wrap,
.mc-article .mc-art-body .mc-map,
.mc-article .mc-art-body .mc-entries {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(56rem, calc(100vw - 2.5rem));
	max-width: none;
	margin-inline: 0;
}

/* Narrower than the breakout: four columns no longer fit, so put the numeral,
   text and button in a stack beside a smaller photo instead of crushing them. */
@media (max-width: 820px) {
	.mc-article .mc-entry {
		grid-template-columns: clamp(96px, 26vw, 150px) minmax(0, 1fr);
		grid-template-areas:
			"photo num"
			"photo txt"
			"photo btn";
		align-items: start;
		gap: 0.35rem clamp(1rem, 3vw, 1.5rem);
	}
	.mc-article .mc-entry .mc-entry-btn { margin-top: 0.9rem; }
}

/* Phones: stack completely. */
@media (max-width: 520px) {
	.mc-article .mc-entry {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "photo" "num" "txt" "btn";
		gap: 0.5rem;
	}
	.mc-article .mc-entry .mc-entry-no { font-size: 1.6rem; }
}

/* Real maps (OpenStreetMap, unaltered — never generated, never restyled; see
   visual-doctrine.md). They break out of the reading measure like other wide
   furniture, and the attribution in the caption is a licence requirement. */
.mc-article .mc-art-body .mc-map img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--mc-hair, #DFDAD1);
}

.mc-article .mc-art-body .mc-map figcaption {
	margin: 0.7rem 0 0;
	font: 400 0.8125rem/1.5 var(--wp--preset--font-family--text);
	color: #6E6A63;
	text-align: left;
}

.mc-article .mc-art-body .mc-map figcaption a { color: inherit; }
