/*
 * Andana Blog — templates: home, listings, article, cards, share button.
 * Values from the approved mockups (andana-blog-handoff/referencia-disseny).
 */

:root {
	--andana-gutter: var(--wp--custom--sheet--gutter);
	--andana-inner: min(1040px, 100% - 40px);
	--andana-ease: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset the flow spacing inside our own components; spacing is explicit below. */
/* Plain class selectors (0,1,0), loaded after global styles, so they beat the flow-layout margins. */
.andana-home > *,
.andana-listing > *,
.andana-article > *,
.andana-sheet > *,
.andana-hero > *,
.andana-card > *,
.andana-card__body > *,
.andana-rank > *,
.andana-meta > *,
.andana-meta__item > *,
.andana-article__grid > *,
.andana-article__more > *,
.andana-article__tags > *,
.andana-carousel > * {
	margin-block: 0;
}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group {
	margin-block-start: 0;
}

/* ---------------------------------------------------------------- Sheets */

.andana-sheet {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	margin: 0 var(--andana-gutter) var(--wp--custom--sheet--gap);
	padding: var(--wp--custom--sheet--padding-y) 0;
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--sheet);
}
.andana-section > .wp-block-query,
.andana-section > .andana-carousel {
	width: var(--andana-inner);
}
.andana-section__title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
	letter-spacing: -0.017em;
	text-align: center;
}
.andana-section .wp-block-button__link {
	padding: 14px 28px;
}

/* ---------------------------------------------------------------- Heroes */

.andana-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: clamp(40px, 6vw, 80px) 20px clamp(40px, 5vw, 72px);
	text-align: center;
}
.andana-hero__title {
	max-width: 960px;
	text-wrap: balance;
}
.andana-hero--home {
	gap: 28px;
	padding-top: clamp(40px, 7vw, 96px);
	padding-bottom: 0;
}
.andana-hero--home .andana-hero__title {
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.98;
	letter-spacing: -0.031em;
}
.andana-hero__lead {
	max-width: 760px;
	font-size: var(--wp--preset--font-size--home-subtitle);
	line-height: 1.4;
	font-weight: 500;
}
.andana-hero__pills {
	margin-top: 12px;
}
.andana-hero__pills.andana-cat-nav--pills .wp-block-navigation-item > a {
	padding: 10px 18px;
}

.andana-hero--archive {
	margin: 0 var(--andana-gutter) var(--wp--custom--sheet--gap);
	padding-block: clamp(56px, 7vw, 96px);
	border-radius: var(--wp--custom--radius--sheet);
	background: var(--cat, var(--wp--preset--color--white));
}
.andana-hero--archive .andana-hero__lead {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.45;
}
.andana-hero--archive .andana-hero__lead p {
	margin: 0;
}

.andana-search-inline.wp-block-search {
	width: min(520px, 100%);
}
.andana-search-inline .wp-block-search__inside-wrapper {
	padding: 4px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1px var(--wp--custom--line--pill);
}
.andana-search-inline .wp-block-search__input {
	border: 0;
	padding-inline: 16px;
	background: none;
	font-size: var(--wp--preset--font-size--small);
}
.andana-search-inline .wp-block-search__button {
	margin: 0;
	padding: 10px;
	border-radius: var(--wp--custom--radius--pill);
}

/* ---------------------------------------------------------------- Cards */

.andana-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	padding: 20px 20px 30px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--cat, var(--wp--preset--color--surface));
	color: var(--wp--preset--color--ink);
}
.andana-card__media {
	height: 300px;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--media);
	background: var(--cat-tint, var(--wp--preset--color--line));
}
.andana-card__media .wp-block-post-featured-image,
.andana-card__media .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}
.andana-card__media img {
	transition: transform 0.6s var(--andana-ease);
}
.andana-card:hover .andana-card__media img {
	transform: scale(1.03);
}
.andana-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	text-align: center;
}
.andana-card__cat {
	position: relative;
	z-index: 1;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 13px;
	font-weight: 600;
}
.andana-card__cat a:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
}
.andana-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.andana-card__title a {
	color: inherit;
}
.andana-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.andana-card__title a:focus-visible {
	outline: none;
}
.andana-card:has(.andana-card__title a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}
.andana-card:hover .andana-card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
.wp-block-post-terms__separator {
	display: none;
}

/* ---------------------------------------------------------------- Grids */

.andana-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50);
	margin: 0;
	padding: 0;
	list-style: none;
}
.andana-grid--bento .wp-block-post:is(:nth-child(6n + 1), :nth-child(6n + 4), :nth-child(6n + 5)) {
	grid-column: span 2;
}
.andana-grid--bento .wp-block-post:is(:nth-child(6n + 1), :nth-child(6n + 4), :nth-child(6n + 5)) .andana-card__title {
	font-size: 1.3125rem;
}
.andana-grid .andana-pagination {
	margin-top: 48px;
	gap: 8px;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}
.andana-pagination .page-numbers,
.andana-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--wp--custom--radius--pill);
	box-shadow: inset 0 0 0 1px var(--wp--custom--line--pill);
}
.andana-pagination .page-numbers.current {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	box-shadow: none;
}
.andana-empty {
	font-size: var(--wp--preset--font-size--large);
}

/* Listings (all articles, archives, search): full-width grid, as many columns as fit. */
.andana-listing .andana-section > .wp-block-query {
	width: calc(100% - 2 * clamp(16px, 3vw, 48px));
}
.andana-listing .andana-grid .wp-block-post-template {
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

/* Infinite scroll: with JS the pagination is replaced (shown again only on error). */
.andana-js .andana-listing .andana-grid:not(.is-paginated) .wp-block-query-pagination {
	display: none;
}
.andana-loadmore__sentinel {
	height: 1px;
}
.andana-loadmore {
	display: block;
	margin: 48px auto 0;
	padding: 14px 28px;
	border: 0;
	cursor: pointer;
}
.andana-loadmore__status {
	margin: 24px 0 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}
.andana-grid.is-loading .andana-loadmore__status::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: andana-spin 0.8s linear infinite;
}
@keyframes andana-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------- Featured carousel */

.andana-featured {
	padding: 72px 0 96px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.andana-featured::-webkit-scrollbar {
	display: none;
}
.andana-featured .wp-block-post-template {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--article--gap);
	width: max-content;
	margin: 0;
	padding: 0 20px;
	list-style: none;
}
.andana-featured .wp-block-post {
	flex: 0 0 318px;
	scroll-snap-align: center;
}
.andana-featured .andana-card__media {
	height: 270px;
}
.andana-featured .wp-block-post:nth-child(3) {
	flex-basis: 385px;
}
.andana-featured .wp-block-post:nth-child(3) .andana-card__media {
	height: 338px;
}
.andana-featured .wp-block-post:nth-child(3) .andana-card__title {
	font-size: 1.375rem;
}
/* Wide screens: centred row that bleeds past both edges, like the mockup. */
@media (min-width: 1100px) {
	.andana-featured {
		overflow: hidden;
	}
	.andana-featured .wp-block-post-template {
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		padding: 0;
	}
}

/* Step carousel (JS adds .is-marquee): the card in the middle widens to twice
 * its width; home.js sets each card's width and position. */
.andana-featured.is-marquee {
	/* clip, not hidden: a hidden box can still be scrolled by focus or scroll
	 * snapping, which shifted the whole row away from where home.js puts it. */
	overflow: hidden;
	overflow: clip;
	scroll-snap-type: none;
	padding-block: 96px 120px;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
.andana-featured.is-marquee:focus {
	outline: none;
}
.andana-featured.is-marquee:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: -6px;
}
.andana-featured.is-dragging {
	cursor: grabbing;
}
.andana-featured.is-marquee .wp-block-post-template {
	position: static;
	left: auto;
	align-items: stretch;
	padding: 0;
	will-change: transform;
}
.andana-featured.is-marquee .wp-block-post,
.andana-featured.is-marquee .wp-block-post:nth-child(3) {
	flex: 0 0 318px;
	scroll-snap-align: none;
	transform: skewX(var(--andana-lean, 0deg));
}
.andana-featured.is-marquee .andana-card__media,
.andana-featured.is-marquee .wp-block-post:nth-child(3) .andana-card__media {
	height: 270px;
}
/* The title grows with the card: from 19px to ~2rem (less on small screens). */
.andana-featured.is-marquee .andana-card__title,
.andana-featured.is-marquee .wp-block-post:nth-child(3) .andana-card__title {
	font-size: calc(1.1875rem + (clamp(1.1875rem, 1rem + 1.1vw, 2rem) - 1.1875rem) * var(--andana-grow, 0));
}
/* Texts always left-aligned, so they do not jump while the card widens. */
.andana-featured.is-marquee .andana-card__body {
	align-items: flex-start;
	text-align: left;
}
.andana-featured.is-marquee .andana-card__title {
	text-wrap: pretty;
}
/* Hover: the card grows a little and lifts with a soft shadow. */
.andana-featured.is-marquee .andana-card {
	transition:
		transform 0.5s var(--andana-ease),
		box-shadow 0.5s var(--andana-ease);
}
/* The hovered card goes above its neighbours so its shadow is never covered. */
.andana-featured.is-marquee .wp-block-post:hover {
	position: relative;
	z-index: 2;
}
.andana-featured.is-marquee:not(.is-dragging) .andana-card:hover {
	transform: scale(1.03);
	box-shadow:
		0 28px 50px -18px rgba(41, 50, 65, 0.32),
		0 6px 16px -6px rgba(41, 50, 65, 0.14);
}
.andana-featured.is-marquee img {
	pointer-events: none;
	-webkit-user-drag: none;
}

/* ---------------------------------------------------------------- Pages */

.andana-page .andana-hero--page .andana-hero__title {
	font-size: var(--wp--preset--font-size--title);
}
.andana-page__body {
	width: min(760px, 100% - 40px);
}
.andana-page__body > * {
	margin-block: 0 1.25em;
}
.andana-page__body > :last-child {
	margin-bottom: 0;
}
.andana-page__body > :where(h2, h3) {
	margin-top: 1.8em;
}
.andana-page__body > .alignwide {
	/* Wider than the reading column, centred on it (WP core forces auto margins). */
	width: min(1040px, 100vw - 80px);
	max-width: none;
	margin-left: calc(50% - min(520px, 50vw - 40px)) !important;
	margin-right: calc(50% - min(520px, 50vw - 40px)) !important;
}
.andana-page__body .wp-block-pullquote {
	margin-block: 1.5em 1.8em;
	padding: 0;
	border: 0;
	text-align: left;
}
.andana-page__body .wp-block-pullquote blockquote p {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--brand);
}
.andana-page__body .andana-hero__pills {
	justify-content: flex-start;
	margin-top: 0;
}
.andana-page__body .andana-cat-nav a {
	text-decoration: none;
}

/* Intro texts of pages in Manrope, like the other heroes and category descriptions. */
.andana-page .andana-subtitle .wp-block-post-excerpt__excerpt,
.andana-page__body > p:first-child,
.andana-page .andana-chapters > .is-style-andana-sheet:first-of-type > p:first-child {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 500;
}
.andana-page .andana-chapters > .is-style-andana-sheet:first-of-type > p:first-child {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.4;
}
.andana-page .andana-chapters > .is-style-andana-sheet:last-child {
	margin-bottom: var(--wp--custom--sheet--gap);
}
.andana-page .andana-chapters .andana-cat-nav a {
	text-decoration: none;
}
.andana-page .andana-chapters .andana-hero__pills {
	justify-content: flex-start;
	margin-top: 0;
}

/* Info cards (Contacto, Sobre Andana) */
.andana-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--beige);
	font-family: var(--wp--preset--font-family--ui);
	font-size: 1rem;
	line-height: 1.5;
}
.andana-info > * {
	margin: 0;
}
.andana-info h2,
.andana-info h3 {
	font-size: 1.375rem;
	line-height: 1.2;
}
.andana-info .andana-label {
	margin-bottom: -14px;
}
.andana-info a {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.andana-info a:hover {
	color: var(--wp--preset--color--brand);
}
.andana-info .andana-social {
	margin-left: -6px;
}
.andana-contact.wp-block-columns {
	gap: clamp(32px, 5vw, 64px);
	margin-top: 0;
}

/* Contact Form 7 */
.andana-page .wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-family: var(--wp--preset--font-family--ui);
}
.andana-page .wpcf7 form > p {
	margin: 0;
}
.andana-page .wpcf7 label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}
.andana-page .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font: 500 1rem/1.4 var(--wp--preset--font-family--ui);
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface-soft);
	border: 1px solid var(--wp--custom--line--pill);
	border-radius: 12px;
	transition: border-color 0.2s, background-color 0.2s;
}
.andana-page .wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
}
.andana-page .wpcf7 :is(input, textarea):focus {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 1px;
	background: var(--wp--preset--color--white);
}
.andana-page .wpcf7 .wpcf7-acceptance label {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500;
}
.andana-page .wpcf7 .wpcf7-list-item {
	margin: 0;
}
.andana-page .wpcf7 input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--wp--preset--color--ink);
}
.andana-page .wpcf7 input[type="submit"] {
	align-self: flex-start;
	padding: 14px 28px;
	font: 600 0.9375rem/1.2 var(--wp--preset--font-family--ui);
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--ink);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	transition: background-color 0.2s;
}
.andana-page .wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--brand);
}
.andana-page .wpcf7 .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--wp--preset--color--brand);
}
.andana-page .wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
}
.andana-page .wpcf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
}

/* ------------------------------------------------------ Recent carousel */

.andana-carousel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}
.andana-row {
	width: 100%;
}
.andana-row .wp-block-post-template {
	display: flex;
	gap: var(--wp--custom--article--gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.andana-row .wp-block-post-template::-webkit-scrollbar {
	display: none;
}
.andana-row .wp-block-post {
	flex: 0 0 318px;
	scroll-snap-align: start;
}
.andana-row .andana-card__media {
	height: 270px;
}
.andana-carousel__nav {
	display: flex;
	gap: 12px;
}
.andana-carousel__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1px var(--wp--custom--line--pill);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}
.andana-carousel__btn:hover:not(:disabled) {
	background: var(--wp--preset--color--surface);
}
.andana-carousel__btn:disabled {
	opacity: 0.35;
	cursor: default;
}
/* Arrows only make sense with JS. */
html:not(.andana-js) .andana-carousel__nav {
	display: none;
}

/* ------------------------------------------------------------ Most read */

.andana-ranking .wp-block-post-template {
	counter-reset: andana-rank;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--wp--custom--line--default);
}
.andana-ranking .wp-block-post {
	counter-increment: andana-rank;
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	padding: 28px 0;
	border-top: 1px solid var(--wp--custom--line--default);
}
.andana-ranking .wp-block-post::before {
	content: counter(andana-rank, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--brand);
}
.andana-rank {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
}
.andana-rank__title {
	font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.014em;
}
.andana-rank__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.andana-ranking .wp-block-post:hover .andana-rank__title a {
	color: var(--wp--preset--color--brand);
}
.andana-rank__cat {
	position: relative;
	z-index: 1;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.andana-rank__cat a,
.andana-pill--cat a {
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--cat, var(--wp--preset--color--surface));
	color: var(--wp--preset--color--ink);
}
.andana-rank__cat a:hover,
.andana-pill--cat a:hover {
	background: var(--cat-tint, var(--wp--preset--color--line));
	color: var(--wp--preset--color--ink);
}

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

/* `:root body` beats PostX's global `html body { background }` (remove with PostX). */
:root body {
	background-color: var(--wp--preset--color--beige);
}
:root body.single-post {
	background-color: var(--cat, var(--wp--preset--color--beige));
}
/* Category archives: page tinted with the category colour. 5% of these pastels is
   indistinguishable from white, so the tint is 25% (one value to adjust). */
:root body.category {
	--andana-page-tint: 25%;
	background-color: color-mix(in srgb, var(--cat, var(--wp--preset--color--beige)) var(--andana-page-tint), #ffffff);
}
.andana-hero--article {
	padding-bottom: clamp(40px, 5vw, 72px);
}
.andana-pill--glass a {
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(255, 255, 255, 0.55);
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	font-weight: 600;
}
.andana-pill--glass a:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}
.andana-hero--article .andana-hero__title {
	font-size: var(--wp--preset--font-size--title);
	line-height: 1.02;
	letter-spacing: -0.028em;
}
.andana-subtitle {
	max-width: 780px;
}
.andana-subtitle .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-family: var(--wp--preset--font-family--reading);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.45;
}

.andana-article__sheet {
	gap: clamp(48px, 7vw, 96px);
	padding-top: 0;
}
.andana-article__sheet:not(:has(.andana-article__cover)) {
	padding-top: var(--wp--custom--sheet--padding-y);
}
.andana-article__cover {
	width: 100%;
	aspect-ratio: 1400 / 780;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--sheet);
}
.andana-article__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.andana-article__grid,
.andana-article__more {
	display: grid;
	grid-template-columns: var(--wp--custom--article--meta) minmax(0, var(--wp--custom--article--text));
	gap: var(--wp--custom--article--gap);
	width: var(--andana-inner);
}
.andana-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	align-self: start;
	position: sticky;
	top: 136px;
}
.andana-meta__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.andana-meta .andana-label {
	margin: 0;
	color: var(--wp--preset--color--ink);
}
.andana-meta__value,
.andana-meta .wp-block-post-author-name,
.andana-meta .wp-block-post-date {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

/* Reading column */
.andana-article__body {
	min-width: 0;
}
.andana-article__body > p:first-child {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.4;
}
.andana-article__body :where(h2, h3, h4) {
	margin-top: 2em;
}
.andana-article__body :where(figure, .wp-block-image) img {
	border-radius: var(--wp--custom--radius--figure);
}
.andana-article__body figcaption,
.andana-article__body .wp-element-caption {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}
@media (min-width: 1000px) {
	.andana-article__body > :is(.alignwide, .alignfull) {
		width: min(1040px, 100vw - 80px);
		max-width: none;
		margin-left: calc(-1 * (var(--wp--custom--article--meta) + var(--wp--custom--article--gap)));
	}
	.andana-article__body > :is(.alignwide, .alignfull) figcaption {
		margin-left: calc(var(--wp--custom--article--meta) + var(--wp--custom--article--gap));
	}
	.andana-article__body > :is(.wp-block-pullquote, .wp-block-quote.is-style-large) {
		width: var(--wp--custom--article--quote);
		max-width: none;
	}
}

/* More on */
.andana-article__more {
	align-items: center;
}
.andana-article__more .andana-label {
	margin: 0;
	color: var(--wp--preset--color--ink);
}
.andana-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.andana-article__tags .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}
.andana-pill--cat a {
	padding: 9px 16px;
}
.andana-pill--outline a {
	display: inline-block;
	padding: 9px 16px;
	border-radius: var(--wp--custom--radius--pill);
	box-shadow: inset 0 0 0 1px var(--wp--custom--line--pill);
	color: var(--wp--preset--color--ink);
}
.andana-pill--outline a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}
.andana-article__more:not(:has(.wp-block-post-terms a)) {
	display: none;
}

/* ---------------------------------------------------------- Share button */

.andana-share {
	position: fixed;
	left: 40px;
	bottom: 40px;
	z-index: 40;
	font-family: var(--wp--preset--font-family--ui);
}
.andana-share__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px 0 16px;
	border: 1px solid var(--wp--custom--line--default);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: 13px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.andana-share__toggle::-webkit-details-marker {
	display: none;
}
.andana-share__toggle:hover {
	background: var(--wp--preset--color--surface);
}
.andana-share__menu {
	position: absolute;
	left: 0;
	bottom: 54px;
	display: flex;
	flex-direction: column;
	min-width: 190px;
	padding: 6px;
	border: 1px solid var(--wp--custom--line--default);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
	animation: andana-share-in 0.25s var(--andana-ease);
}
@keyframes andana-share-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}
.andana-share__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
}
.andana-share__item:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}
.andana-share__toast {
	position: absolute;
	left: 0;
	bottom: 54px;
	padding: 10px 16px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s;
	pointer-events: none;
}
.andana-share.has-toast .andana-share__toast {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------- Card variant B (?tarjeta=b) */

.andana-cards-outline .andana-card {
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1.5px var(--wp--custom--line--default);
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.andana-cards-outline .andana-card__media {
	background: var(--wp--preset--color--beige);
	transition: background-color 0.18s ease;
}
.andana-cards-outline .andana-card:is(:hover, :focus-within) {
	background: var(--cat, var(--wp--preset--color--surface));
	box-shadow: inset 0 0 0 1.5px transparent;
}
.andana-cards-outline .andana-card:is(:hover, :focus-within) .andana-card__media {
	background: var(--cat-tint, var(--wp--preset--color--line));
}

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

@media (max-width: 999px) {
	.andana-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.andana-grid--bento .wp-block-post:is(:nth-child(6n + 1), :nth-child(6n + 4), :nth-child(6n + 5)) {
		grid-column: auto;
	}
	.andana-grid--bento .wp-block-post:nth-child(6n + 1) {
		grid-column: span 2;
	}
	.andana-article__grid,
	.andana-article__more {
		grid-template-columns: minmax(0, 1fr);
		max-width: calc(var(--wp--custom--article--text) + 40px);
	}
	.andana-meta {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px 32px;
	}
}

@media (max-width: 639px) {
	:root {
		--andana-inner: calc(100% - 32px);
	}
	.andana-sheet {
		gap: 32px;
	}
	.andana-grid .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
	.andana-grid--bento .wp-block-post:nth-child(6n + 1) {
		grid-column: auto;
	}
	.andana-card__media {
		height: 220px;
	}
	.andana-featured {
		padding: 40px 0 64px;
	}
	.andana-featured.is-marquee {
		padding: 40px 0 64px;
	}
	.andana-featured .wp-block-post,
	.andana-featured .wp-block-post:nth-child(3),
	.andana-featured.is-marquee .wp-block-post,
	.andana-featured.is-marquee .wp-block-post:nth-child(3),
	.andana-row .wp-block-post {
		flex-basis: min(78vw, 290px);
	}
	.andana-featured .andana-card__media,
	.andana-featured .wp-block-post:nth-child(3) .andana-card__media,
	.andana-featured.is-marquee .andana-card__media,
	.andana-featured.is-marquee .wp-block-post:nth-child(3) .andana-card__media,
	.andana-row .andana-card__media {
		height: 230px;
	}
	.andana-ranking .wp-block-post {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 16px;
		padding: 20px 0;
	}
	.andana-ranking .wp-block-post::before {
		font-size: 1.75rem;
	}
	.andana-rank {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		justify-items: start;
	}
	.andana-share {
		left: 16px;
		bottom: calc(60px + 24px + 12px);
	}
}
