/*
 * Transpirenaica Trail — global tokens and base rules (ported from base.css and mobile.css in assets/source
 * of the approved design with the table of docs/class-map.md).
 *
 * Colours are the GP Global Colors (Customizer › Colors), which GeneratePress prints as variables:
 * --mustard, --mustard-dark, --forest, --forest-800, --forest-900, --cream, --white, --ink, --body-text,
 * --border, --on-dark-muted and --rust. They are NOT redefined here, so the client changes a colour in one
 * place. Fonts come from the GP Premium Font Library (--gp-font--barlow, --gp-font--barlow-condensed,
 * --gp-font--saira-stencil-one) and are assigned to body, headings, menu and buttons in Customizer ›
 * Typography; the aliases below are for components that need a family that is not the one of their tag.
 *
 * Breakpoints of the design: tablet (max-width:1100px) and (min-width:768px); mobile (max-width:767px).
 */

:root {
	/* Aliases of the Global Colors used by the components */
	--on-dark: var(--cream);
	--on-dark-line: rgba(244, 239, 227, .16);
	--veil: rgba(13, 26, 17, .66);
	--mustard-line: rgba(242, 179, 53, .55);

	/* Font families (GP Premium Font Library) */
	--font-body: var(--gp-font--barlow, "Barlow", sans-serif);
	--font-heading: var(--gp-font--barlow-condensed, "Barlow Condensed", sans-serif);
	--font-stencil: var(--gp-font--saira-stencil-one, "Saira Stencil", sans-serif);

	/* Type scale */
	--fs-h1: 78px;
	--fs-h2: 56px;
	--fs-h3: 30px;
	--fs-price: 72px;
	--fs-date: 34px;
	--fs-stat: 40px;
	--fs-stage-title: clamp(30px, 2.8vw, 40px);
	--fs-footer-title: 16px;
	--fs-lead: 21px;
	--fs-body: 17px;
	--fs-small: 15px;
	--fs-xs: 13px;
	--ls-heading: .015em;

	/* Spacing */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;
	--space-section: 112px;

	/* Radii and shadows */
	--radius-section: 48px;
	--radius-card: 24px;
	--radius-band: 16px;
	--radius-photo: 12px;
	--radius-media: 12px;
	--radius-pill: 999px;
	--shadow-none: none;
	--shadow-focus: 0 0 0 3px rgba(242, 179, 53, .55);

	/* Layout */
	--container: 1200px;
	--gutter: 40px;
	--header-h: 72px;
	--hero-compact-h: 480px;
	--faq-row-pad: var(--space-7);
	--faq-col-gap: var(--space-8);
}

@media (max-width: 1100px) and (min-width: 768px) {
	:root {
		--fs-h1: 56px;
		--fs-h2: 44px;
		--fs-h3: 26px;
		--fs-date: 30px;
		--fs-price: 62px;
		--fs-stage-title: clamp(28px, 3.4vw, 36px);
		--gutter: 32px;
		--faq-col-gap: var(--space-7);
		--faq-row-pad: var(--space-6);
	}
}

@media (max-width: 767px) {
	:root {
		--fs-h1: 38px;
		--fs-h2: 32px;
		--fs-h3: 24px;
		--fs-price: 60px;
		--fs-date: 28px;
		--fs-stat: 30px;
		--fs-stage-title: 26px;
		--fs-footer-title: 15px;
		--fs-lead: 18px;
		--fs-body: 16px;
		--fs-small: 15px;
		--space-section: 72px;
		--radius-section: 28px;
		--radius-card: 20px;
		--radius-media: 10px;
		--gutter: 20px;
		--header-h: 64px;
		--hero-compact-h: 340px;
		--faq-row-pad: var(--space-5);
	}
}

/* Base (body family, size and line height come from Customizer › Typography) */
html {
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus);
	border-radius: 6px;
}

.nowrap {
	white-space: nowrap;
}

/*
 * GeneratePress paints the content box with «.one-container .container{background-color}» (0,2,0), which
 * also hits every .container of the design (sections, footer). GP's own containers always carry
 * .grid-container.
 */
.container:not(.grid-container) {
	background-color: transparent;
}

/*
 * Resets of the approved design (h1…figure without margins, lists without bullets), scoped to the design
 * sections so text pages (Contact, legal pages) keep GeneratePress typography. Weight 0,0,1 loaded after
 * GP's main.min.css, so it wins over p{margin-bottom:1.5em}, ul{margin;list-style:disc} and h2{margin-bottom}.
 */
:where([data-section]) :is(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) {
	margin: 0;
}

:where([data-section]) :is(ul, ol) {
	padding: 0;
	list-style: none;
}

:where([data-section]) img {
	display: block;
	max-width: 100%;
}

:where([data-section]) a {
	color: inherit;
}

/*
 * Text pages (Contacto, Política de privacidad, Política de cookies, Login Customizer): they keep their content
 * and GeneratePress page title (the H1). They are the pages without the Layout Element «Páginas de diseño»,
 * which is the one that adds .full-width-content. A readable column, the headings of the design scale in
 * forest and links in forest underlined in mustard (forest on cream is above 4.5:1).
 */
body.page:not(.full-width-content) .site-main .inside-article {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	padding: var(--space-8) var(--gutter) var(--space-9);
}

body.page:not(.full-width-content) .entry-header {
	margin-bottom: var(--space-6);
}

body.page:not(.full-width-content) .entry-title {
	font-size: var(--fs-h2);
	line-height: 1;
	color: var(--forest-800);
	text-wrap: balance;
}

body.page:not(.full-width-content) .entry-content :is(h2, h3, h4) {
	margin: 1.6em 0 .6em;
	color: var(--forest-800);
	text-wrap: balance;
}

body.page:not(.full-width-content) .entry-content h2 {
	font-size: var(--fs-h3);
}

body.page:not(.full-width-content) .entry-content :is(h3, h4) {
	font-size: 22px;
}

body.page:not(.full-width-content) .entry-content a:not(.btn, .wp-block-button__link) {
	color: var(--forest);
	text-decoration: underline;
	text-decoration-color: var(--mustard);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

body.page:not(.full-width-content) .entry-content a:not(.btn, .wp-block-button__link):is(:hover, :focus) {
	color: var(--forest-800);
	text-decoration-color: var(--forest);
}

@media (max-width: 767px) {
	body.page:not(.full-width-content) .site-main .inside-article {
		padding-top: var(--space-7);
		padding-bottom: var(--space-8);
	}
}
