/*
Home page only (STANDARDS.md §7 — enqueued only on the front page).

Every effect here is CSS, per PERFORMANCE-BUDGET.md §5. The "fade-and-rise" entrance
(DAY-12 §5) is CSS transitions triggered by .is-visible, added by assets/js/home-reveal.js
via one IntersectionObserver — nothing here delays the hero, which paints immediately,
unanimated. The carousel is native scroll-snap; assets/js/home-carousel.js only drives it.
*/

/* Defensive: WordPress core and most themes define this, but a child theme cannot assume
   Ollie does. Standard visually-hidden-but-announced pattern, used by the "Agotado" suffix
   on the card title link. */
.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;
}

/*
Widths (DAY-103, DAY-362). <main> does not constrain its children: the brand block is a
full-bleed band and the hero bleeds to the edges on a phone, so each section is as wide as the
page and pads itself to the page container's edge (style.css) — the one definition, nothing
of this page's own. Named fluid spacing only in what DAY-103 adds (DAY-28 v6 §7).
*/
.daylon-home {
	--daylon-slide-pad: var(--wp--preset--spacing--medium);
	/* The photograph panel's share of the slide from 768 px, in percent (DAY-12 §4a.2): 50
	   up to 1199 px, 42 from 1200 px. Everything placed beside or over the panel — the
	   script, the arrows, the dots — is derived from it. */
	--daylon-slide-photo: 50;
}

.daylon-hero,
.daylon-block-categories,
.daylon-block-collection-grid,
.daylon-empty-state {
	padding-inline: var(--daylon-edge);
}

.daylon-block-categories,
.daylon-block-collection-grid {
	margin-block: var(--wp--preset--spacing--large);
}

.daylon-home h2 {
	margin-block: 0 var(--wp--preset--spacing--medium);
}

/* ------------------------------------------------------------------ hero carousel, §4a–§4d */

.daylon-hero {
	position: relative;
	container-type: inline-size;
	padding-block-start: var(--wp--preset--spacing--small);
}

.daylon-hero__eyebrow {
	margin-block: 0 var(--wp--preset--spacing--small);
}

.daylon-carousel {
	position: relative;
	container-type: inline-size;
	margin-inline: calc(-1 * var(--daylon-gutter));
}

/* The carousel's parts are one component, not flow content, so the block gap never applies
   between them (DAY-166). WordPress emits `:where(.is-layout-flow) > *` with a
   margin-block-start on every child but the FIRST, and the first child here is whichever part
   the markup happens to emit first — the `prev` arrow. That pushed the `next` arrow and the
   dots one gap below `prev`, and pushed the track, with the photograph the arrows are centred
   on, one gap down the moment a second slide added the controls at all. The controls are placed
   by `top`; a flow margin on an absolutely positioned box is never what places it. Same rule,
   same reason, as `.daylon-slide > *` below. */
.daylon-carousel > * {
	margin-block: 0;
}

/* Native scrolling does the work: touch, trackpad and keyboard move it with no script at
   all, and the script (home-carousel.js) only asks it to scroll. Nothing advances alone. */
.daylon-carousel__track {
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.daylon-carousel__track::-webkit-scrollbar {
	display: none;
}

.daylon-slide {
	flex: 0 0 100%;
	min-width: 0;
	box-sizing: border-box;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	/* The display token as the theme defines it, kept under another name so the line can cap
	   it without referring to itself. */
	--daylon-slide-display: var(--wp--preset--font-size--display);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	padding-block-end: var(--daylon-slide-pad);
	/* A band on the white page: tertiary, the default band ground (DAY-28 v7 §4.6, §4.7). */
	background: var(--wp--preset--color--tertiary);
}

.daylon-slide > * {
	margin-block: 0;
	margin-inline: var(--daylon-slide-pad);
}

/* The photograph: one 4:5 box, reserved before it loads (§7 state 10), never a wide crop
   (DAY-7 v3 §1a). */
.daylon-slide > .daylon-slide__image {
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--wp--preset--color--main-accent);
}

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

/* A slide with no photograph among slides that have one keeps the same box, so the text,
   the script and the controls sit where they sit on every other slide. */
.daylon-carousel:has(.daylon-slide__image) .daylon-slide:not(:has(.daylon-slide__image))::before {
	content: "";
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--tertiary);
}

/* The line leaves room above itself for the script, which is fixed and outside the slides.
   Its type is set here, not inherited from the tag: slide 1's line is the h1 and every other
   slide's is a paragraph (DAY-96), and they must look the same. */
.daylon-slide__line {
	/* The line never sets larger than a 7.5em measure allows (DAY-324). Today's line is two
	   sentences on two lines, the longer 7.25em wide: where the column held the first and not
	   quite the second, the second broke and left its last word alone on a third line — at
	   320 px here, at 1200–1400 px beside the photograph (below). `text-wrap: balance` cannot
	   help, it balances each sentence on its own side of the <br>. The words are not touched.
	   Like the 768–1023 step, this is local to the line: the token itself does not change. */
	--wp--preset--font-size--display: min(var(--daylon-slide-display), calc((100cqi - 2 * var(--daylon-slide-pad)) / 7.5));
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	line-height: 1.1;
	max-width: 18ch;
	padding-block-start: calc(var(--daylon-slide-pad) + 3rem);
	text-wrap: balance;
}

.daylon-slide > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--medium);
}

/* The decorative script (§4d): absolutely placed from its own static position, which is the
   carousel's top edge — it never moves with the slides and never shifts the layout. */
.daylon-script {
	position: absolute;
	z-index: 1;
	left: var(--daylon-slide-pad);
	/* Drawn, not text: it keeps its 100 % size when the reader enlarges text. As 11rem it grew
	   to 352px with text at 200 % and pushed a 320 page 80px sideways (DAY-603, WCAG 1.4.10). */
	width: min(11rem, 176px);
	height: auto;
	margin-block-start: var(--daylon-slide-pad);
	color: var(--wp--preset--color--primary);
	pointer-events: none;
}

.daylon-hero:has(.daylon-slide__image) .daylon-script {
	margin-block-start: calc(125cqi + 2.5 * var(--daylon-gutter) + var(--daylon-slide-pad));
}

.daylon-carousel__arrow,
.daylon-carousel__dot {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--main);
	cursor: pointer;
}

.daylon-carousel__arrow[hidden],
.daylon-carousel__dots[hidden] {
	display: none;
}

.daylon-carousel__arrow {
	position: absolute;
	z-index: 1;
	top: calc(62.5cqi - 22px);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
}

.daylon-carousel__arrow--prev {
	left: var(--wp--preset--spacing--small);
}

.daylon-carousel__arrow--next {
	right: var(--wp--preset--spacing--small);
}

/* A disabled arrow keeps its ground and edge; only the chevron changes (§4a.3). No opacity,
   filter or blend on the button: over the photograph any of them lets the picture through the
   ground, and it would dim the focus ring drawn on the button too. */
.daylon-carousel__arrow[aria-disabled="true"] {
	color: var(--wp--preset--color--secondary);
	cursor: default;
}

/* The dots sit on the photograph, so they carry their own ground and edge, like the arrows:
   their contrast is measured against this pill, never against the picture she uploads
   (§4a.1). The pill hugs the buttons and stays centred in the same band; its 1px border is
   taken out of the offset so the 44px targets do not move. */
.daylon-carousel__dots {
	position: absolute;
	z-index: 1;
	top: calc(125cqi - 53px);
	inset-inline: 60px;
	display: flex;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	margin-inline: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 23px;
	background: var(--wp--preset--color--base);
}

/* The active dot differs in size and fill, not in colour alone (§11): a 10px ring against a
   14px disc, both ink on the pill's cream. */
.daylon-carousel__dot::before {
	content: "";
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border: 1px solid var(--wp--preset--color--main);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
}

.daylon-carousel__dot[aria-current="true"]::before {
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--main);
}

@media (prefers-reduced-motion: no-preference) {
	.daylon-carousel__track {
		scroll-behavior: smooth;
	}
}

@media (min-width: 1024px) {
	.daylon-home {
		--daylon-slide-pad: var(--wp--preset--spacing--large);
	}
}

@media (min-width: 1200px) {
	.daylon-home {
		--daylon-slide-photo: 42;
	}

	/* From here the text column is wide enough for one sentence per line, and the measure is
	   the column's, not the slide's. Below 1200 the column holds neither sentence and both
	   break the same way, which is the designed four-line stack. */
	.daylon-carousel:has(.daylon-slide__image) .daylon-slide__line {
		--wp--preset--font-size--display: min(var(--daylon-slide-display), calc(((100 - var(--daylon-slide-photo)) * 1cqi - 2 * var(--daylon-slide-pad)) / 7.5));
	}
}

/* The hero line steps down between 768 and 1023 px, where the text column is half the slide
   and the line must fit inside a 4:5 panel's height (DAY-12 §4a.2 rule 2). Local to the hero:
   the display token itself is not changed, only what it resolves to on the line. It meets the
   token at 1024 px (74.7 px), so nothing jumps there. 52 px at 768 is the measured value:
   today's line fits with 7 px to spare, the tightest margin in the range. Only where there is
   a panel to fit: the typographic-only hero (state 0) keeps its size. */
@media (min-width: 768px) and (max-width: 1023px) {
	.daylon-carousel:has(.daylon-slide__image) .daylon-slide__line {
		--wp--preset--font-size--display: calc(52px + (100vw - 768px) * 0.0885);
	}
}

@media (min-width: 768px) {

	.daylon-carousel {
		margin-inline: 0;
	}

	/* Typographic slide: one column. Photographic: the text beside a contained portrait
	   panel — the same 4:5 crop as the phone, never a banner (DAY-7 v3 §1a). The photograph
	   is first in the source (the phone's order) and placed second here. */
	.daylon-slide {
		/* The first row is never shorter than the script it sits under (§4d): at 768 the text
		   column is too narrow for the line to clear it sideways. */
		grid-template-rows: minmax(calc(var(--daylon-slide-pad) + 4.5rem), 1fr) auto auto minmax(var(--daylon-slide-pad), 1fr);
		align-content: stretch;
		min-height: 20rem;
		padding-block: var(--daylon-slide-pad);
	}

	.daylon-slide__line {
		grid-row: 2;
		padding-block-start: 0;
	}

	.daylon-slide > .wp-block-buttons {
		grid-row: 3;
	}

	.daylon-carousel:has(.daylon-slide__image) .daylon-slide {
		grid-template-columns: minmax(0, 1fr) calc(var(--daylon-slide-photo) * 1%);
		/* 4:5 of the photo column, in container units: the slide's height, unless a line too
		   long for it makes the text taller (§4a.2 rule 5). */
		min-height: calc(var(--daylon-slide-photo) * 1.25cqi);
		padding-block: 0;
		/* The script's room is a row of its own inside the centred stack — script row, line,
		   link, with the same air above and below (§4a.2 rule 4) — not the minimum of a
		   flexible row. With `minmax(pad + 4.5rem, 1fr)` above and `minmax(pad, 1fr)` below,
		   the slide's own height counts the larger minimum twice, because both rows take the
		   same share: at 768 px that made the slide 47 px taller than a text block that fits
		   the panel, so the slide outgrew it. This way the slide's height is exactly the fit
		   test's text block — pad, script row, line, link, pad. */
		grid-template-rows: minmax(var(--daylon-slide-pad), 1fr) 4.5rem auto auto minmax(var(--daylon-slide-pad), 1fr);
	}

	.daylon-carousel:has(.daylon-slide__image) .daylon-slide > * {
		grid-column: 1;
	}

	.daylon-carousel:has(.daylon-slide__image) .daylon-slide__line {
		grid-row: 3;
	}

	.daylon-carousel:has(.daylon-slide__image) .daylon-slide > .wp-block-buttons {
		grid-row: 4;
	}

	/* The panel is 4:5 at every width (§4a.2): its width is the column's and its height comes
	   from the ratio, never from the text beside it — a panel stretched to the text is a
	   different crop of her photograph at every width. Centred, so where the text does
	   outgrow it the panel sits in the middle of the taller slide; and since the track
	   stretches every slide to the tallest one, every panel sits in the same place (rule 6). */
	.daylon-carousel:has(.daylon-slide__image) .daylon-slide > .daylon-slide__image,
	.daylon-carousel:has(.daylon-slide__image) .daylon-slide:not(:has(.daylon-slide__image))::before {
		grid-column: 2;
		grid-row: 1 / -1;
		align-self: center;
		width: 100%;
	}

	.daylon-script,
	.daylon-hero:has(.daylon-slide__image) .daylon-script {
		left: auto;
		right: calc(var(--daylon-edge) + var(--daylon-slide-pad));
		width: clamp(11rem, 22cqi, 17rem);
		margin-block-start: var(--daylon-slide-pad);
	}

	.daylon-hero:has(.daylon-slide__image) .daylon-script {
		right: calc(var(--daylon-edge) + var(--daylon-slide-photo) * 1cqi + var(--daylon-slide-pad));
	}

	/* Centred on the panel, which is centred in the slide. */
	.daylon-carousel__arrow {
		top: calc(50% - 22px);
	}

	.daylon-carousel__arrow--prev {
		left: calc(100% - var(--daylon-slide-photo) * 1% + var(--wp--preset--spacing--small));
	}

	.daylon-carousel__dots {
		top: auto;
		bottom: 7px;
		inset-inline: calc(100% - var(--daylon-slide-photo) * 1% + 60px) 60px;
	}

	/* 8 px above the panel's bottom edge, not the slide's: the two part only in the overflow
	   state, where the slide is taller than the panel (§4a.2 rule 5). Half the panel's height
	   is 0.625 × its width, and the carousel is the container the width is a share of. 7px,
	   not 8, for the same reason as above: the pill's 1px border is taken out of the offset. */
	.daylon-carousel:has(.daylon-slide__image) .daylon-carousel__dots {
		bottom: calc(50% - var(--daylon-slide-photo) * 0.625cqi + 7px);
	}
}

/* ------------------------------------------------------------------ categorías, §3 */

/* A fixed column count, never auto-fit: with fewer categories than columns each tile keeps
   its natural width and the row stays left-aligned — never stretched or centred (§3). */
.daylon-categories__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--small);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.daylon-categories__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.daylon-categories__list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.daylon-category-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

/* The name, in the eyebrow style (DAY-28 v6 §5.2) — real text on both rungs (§10.7). */
.daylon-category-tile__name {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: var(--wp--preset--spacing--small);
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.daylon-category-tile:hover .daylon-category-tile__name,
.daylon-category-tile:focus-visible .daylon-category-tile__name {
	color: var(--wp--preset--color--main);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Default rung: the tile IS the name, on a flat ground, at the card's own ratio. The ratio
   sits on a spacer, not on the link: beside a photo tile the link stretches to the row's
   height, and an aspect-ratio on a stretched box widens it past its column. */
.daylon-category-tile:not(.daylon-category-tile--photo) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	/* Its name is secondary: 4.47:1 on main-accent fails AA, 4.73:1 on tertiary passes
	   (DAY-28 v7 §4.5). */
	background: var(--wp--preset--color--tertiary);
}

.daylon-category-tile:not(.daylon-category-tile--photo)::before {
	content: "";
	grid-area: 1 / 1;
	align-self: start;
	width: 100%;
	aspect-ratio: 4 / 5;
}

.daylon-category-tile:not(.daylon-category-tile--photo) .daylon-category-tile__name {
	grid-area: 1 / 1;
}

.daylon-category-tile__image {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--wp--preset--color--main-accent);
}

.daylon-category-tile__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ------------------------------------------------------------------ Lo nuevo, §10.4 */

/* Fixed columns for the same reason as the tiles: fewer than a full row keeps natural card
   width, left-aligned (§7 state 3).

   Below 768px: two columns, unless a column would be narrower than 3.5rem — which only happens
   when the reader has enlarged the text (at 400% at 320px a column is 128px and «29,90 €» is
   213px, and a price cannot break). Then the cards stack in one column (DAY-633). The track's
   minimum is half the row (minus 1px, so rounding never drops the second column), raised to
   3.5rem, capped at the row: at 100% and 200% that is exactly the two columns there were.
   `auto-fill` keeps the empty track, so a lone card still keeps its natural width. */
.daylon-collection-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(3.5rem, calc((100% - var(--wp--preset--spacing--small)) / 2 - 1px))), 1fr));
	gap: var(--wp--preset--spacing--medium) var(--wp--preset--spacing--small);
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 768px) {
	.daylon-collection-grid .wp-block-post-template {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--medium);
	}
}

/* The post template keeps core's flow layout, which spaces every child but the first with a
   block-gap top margin. In a grid that pushes cards 2–4 down a row gap and leaves the first card
   standing higher (DAY-111); the grid gap already does the spacing. */
.daylon-collection-grid .wp-block-post-template > * {
	margin-block: 0;
}

.daylon-block-collection-grid > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--medium);
}

/* The card itself — image, name, price, "Agotado" — is product-card.css, the one copy every
   page that prints a card shares (DAY-320). Only the grid above is this page's. */

/* ------------------------------------------------------------------ bloque de marca, §4c */

.daylon-brand {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--tertiary);
}

.daylon-brand > * {
	margin-block: 0;
}

.daylon-brand__text {
	position: relative;
	z-index: 1;
	padding: var(--wp--preset--spacing--large) var(--daylon-edge);
}

.daylon-brand__text > * {
	max-width: 28rem;
}

.daylon-brand__headline {
	max-width: 12ch;
}

.daylon-brand__image {
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--wp--preset--color--main-accent);
}

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

/* The watermark: the logo's own triangle, flat, behind the text and clear of it. */
.daylon-monogram {
	position: absolute;
	right: calc(-1 * var(--wp--preset--spacing--medium));
	bottom: calc(-1 * var(--wp--preset--spacing--medium));
	width: clamp(9rem, 32vw, 20rem);
	height: auto;
	color: var(--wp--preset--color--primary);
	opacity: 0.12;
	pointer-events: none;
}

@media (min-width: 768px) {
	/* Photograph on the left, always (§4c: pick one side and keep it). Its half is a
	   contained portrait, never a landscape half-banner (DAY-7 v3 §1a). */
	.daylon-brand--photo {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: center;
	}

	.daylon-brand--photo .daylon-brand__text {
		margin-inline: 0;
		padding-inline: var(--wp--preset--spacing--x-large);
	}
}

/* ------------------------------------------------------------------ cuatro ventajas, §10.6 */

/* The page's white, not a band: a white interval between the cream brand block above and the
   cream footer below (DAY-28 v8 §4.6; the human, 2026-09-21). Its neighbours' grounds are the
   only separator — no border, no rule, no shadow. base is named rather than left to the body
   so the strip's own computed ground is white, which is what the check reads. It still meets
   the brand block with no flow gap, so its own padding alone sets the interval's height. */
.daylon-block-reassurance {
	margin-block: 0;
	padding-block: var(--wp--preset--spacing--large);
	background: var(--wp--preset--color--base);
}

/* The sprite only defines the symbols; it must take no room. (`hidden` is an HTML attribute
   and does nothing on an <svg>.) */
.daylon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* One grid of equal cells, and no width leaves an item alone on a row (§10.6b rule 2): one
   column, then 2 × 2, then four across. The second column starts at 768px — the build's own
   step, kept as the spec asks, rather than the 600px it names; the rule that holds is "never
   three and one". The one column is declared, not left implicit: an implicit column is `auto`,
   which grows to an item's longest word, and with text at 400% at 320px that word pushed the
   page 118px sideways (DAY-633). Declared `minmax(0, 1fr)`, the column is the strip's width and
   the word breaks inside it (style.css, body). */
.daylon-advantages__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--medium);
	margin: 0;
	padding: 0 var(--daylon-edge);
	list-style: none;
}

/* The same anatomy in every cell, at every width (§10.6b rule 3): icon beside the text,
   title above, line below, left-aligned. The fourth item's link is that same box, so it
   lines up with its siblings to the pixel. */
.daylon-advantage,
.daylon-advantage__link {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--small);
}

.daylon-advantage__icon {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: var(--wp--preset--color--secondary);
}

/* Wraps, never truncates, never below the strip's body size (§10.6b rule 4). */
.daylon-advantage__text {
	min-width: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.daylon-advantage__text strong,
.daylon-advantage__text span {
	display: block;
}

.daylon-advantage__text span {
	color: var(--wp--preset--color--secondary);
}

/* The fourth item, Ayuda: the whole item is one link to Contacto (§10.6b). It fills its cell
   and is never shorter than 44px, so the target is 44 × 44 at every width — as built the
   item measured 43px at 320. At rest it is its siblings' ink with the line underlined, so
   the link is not told by colour alone (§7 state 36); theme.json's link colour and its hover
   recolouring are set aside here for that reason, visited included. */
.daylon-advantage__link {
	flex: 1;
	min-width: 0;
	min-height: 44px;
}

.daylon-advantage__link,
.daylon-advantage__link:hover,
.daylon-advantage__link:visited {
	color: inherit;
	text-decoration: none;
}

.daylon-advantage__link .daylon-advantage__text span {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Hover: the title is underlined too, so the whole item reads as one link (§7 state 37).
   Nothing moves and nothing transitions. */
.daylon-advantage__link:hover .daylon-advantage__text strong {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Keyboard focus is the site-wide two-tone ring (style.css), which already draws around the
   whole item with its 2px gap. That ring is a box-shadow, and forced colours drop shadows:
   there the item gets a real outline instead (§7 state 37). One class above the site rule's
   (0,2,2), which sets `outline: none`. */
@media (forced-colors: active) {
	html body .daylon-advantage__link:focus-visible:focus-visible {
		outline: 2px solid CanvasText;
		outline-offset: 2px;
	}
}

@media (min-width: 768px) {
	.daylon-advantages__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.daylon-advantages__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.daylon-empty-state {
	text-align: center;
	padding-block: var(--wp--preset--spacing--large);
}

/*
The fade-and-rise entrance (DAY-12 §5) — blocks 3-6 only, once.

Gated behind .js-reveal, added by home-reveal.js only once it is actually about to observe
the elements. Nothing is hidden by CSS alone: if the script fails to load or run for any
reason, .js-reveal is never added and every block stays fully visible — the page has to be
complete with the effect never firing, the same way it has to be complete with
prefers-reduced-motion (DAY-12 §5 rule 4).
*/
@media (prefers-reduced-motion: no-preference) {
	.js-reveal .daylon-reveal {
		opacity: 0;
		transform: translateY(16px);
		transition:
			opacity var(--wp--custom--motion--calm) var(--wp--custom--motion--easing),
			transform var(--wp--custom--motion--calm) var(--wp--custom--motion--easing);
	}

	.js-reveal .daylon-reveal.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
}
