/*
 * Blog home v3 (TASK-2051) — host layer, hand-written. The canvas CSS lives in assets/generated/blog-home.css.
 * Desktop board from 1100 px, tablet board from 768 to 1099, mobile board below 768.
 */
/* Ohio frames a full-width page with a 16 px side padding on the container and a -16 px margin on the Elementor body,
   but not at every width (measured live 2026-10-24: at 1440 the padding is 0 and the margin stays, so the page was
   32 px wider than the viewport; at 390 both apply). The blog home spans the viewport exactly: both go to zero. */
.page-container:has(#eobh) { padding-left: 0 !important; padding-right: 0 !important; }
.entry-content > .elementor:has(#eobh) { margin-left: 0 !important; margin-right: 0 !important; }

#eobh .eobh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 1099.98px) {
	#eobh .eobh-d { display: none; }
}

@media (min-width: 1100px), (max-width: 767.98px) {
	#eobh .eobh-t { display: none; }
}

@media (min-width: 768px) {
	#eobh .eobh-m { display: none; }
}

/* Below 390 px (not designed in the canvas): the 358 px topics orbit scales to the column, its centre label keeps the
   canvas proportions (79/84/200/190 of 358). */
@media (max-width: 389.98px) {
	#eobh .eobh-m [data-fluid="orbit"] { width: 100% !important; height: auto !important; aspect-ratio: 1; }
	#eobh .eobh-m [data-fluid="orbit"] > img { width: 100% !important; height: 100% !important; }
	#eobh .eobh-m [data-fluid="orbit"] > div { left: 22.07% !important; top: 23.46% !important; width: 55.87% !important; height: 53.07% !important; }
}

/* Glitch subscription without a real form behind it (data-subscribe="off", 2026-10-24): the canvas forms only simulate
   a submit, so they are not shown until a published Growth Form is configured (option eo_blog_glitch_form_key). */
#eobh[data-subscribe="off"] .gxs:not(.gxs--ev),
#eobh[data-subscribe="off"] .gxs:not(.gxs--ev) + .gxs__note,
#eobh[data-subscribe="off"] form[aria-label="Suscripción a Glitch"] { display: none !important; }

/* Real Glitch subscription (TASK-2054 host skin): the host declares the font and the tone; widths, curves and timings
   come from the renderer with the canvas defaults. With 480 px or more the pill uses the canvas widths. */
#eobh greenhouse-form.eo-inline-pill { --ghf-font: 'Poppins', system-ui, sans-serif; display: block; width: 480px; max-width: 100%; }
/* The canvas pill column (.gxw) shrinks to its content: the form takes the canvas open width; on the phone, the column. */
#eobh .eobh-m greenhouse-form.eo-inline-pill { width: 100%; }
/* Before the renderer runs (and without JavaScript): the link to Glitch in the canvas idle pill's shape and place. */
#eobh greenhouse-form.eo-inline-pill > a.ghf-fallback { display: flex; width: 252px; margin-left: auto; font-size: 16px; font-weight: 400; text-decoration: none; }
#eobh .eobh-m greenhouse-form.eo-inline-pill > a.ghf-fallback { width: 100%; }
/* Tablet board: the canvas column aligns the pill and its note to the left (.gxw{align-items:flex-start}). */
#eobh .eobh-t .gxw greenhouse-form.eo-inline-pill { --ghf-inline-align: flex-start; --ghf-inline-note-align: left; }
#eobh .eobh-t .gxw greenhouse-form.eo-inline-pill > a.ghf-fallback { margin-left: 0; }
/* Bottom subscription (deviation 13): the pill takes the place of the canvas form — its full column on desktop and
   tablet (so it sits on the column's right edge) and, on the phone, the form's 32 px top margin and 16 px sides. */
#eobh greenhouse-form.eo-inline-pill:not(.gxw *) { width: 100%; max-width: none; }
#eobh .eobh-m greenhouse-form.eo-inline-pill:not(.gxw *) { box-sizing: border-box; margin-top: 32px; padding: 0 16px; }
#eobh greenhouse-form.eo-inline-pill--glitch { --ghf-inline-tone: #6ec207; --ghf-inline-tone-hover: #8bd13a; --ghf-inline-tone-active: #a6dd68; --ghf-inline-on-tone: #001a33; }

/* Real event reservation (event pill of the renderer, TASK-2054 host skin): turquoise on the event card, aligned left
   like the canvas (.evcta .gxw), the canvas open width 470 px; on the phone, the column. */
/* In the canvas the pill's column measures what the pill measures (236 idle, 470 open/sending/success, 360 done) and
   the note hangs below it out of the flow, so «Agregar al calendario» keeps its place. The host reproduces that from
   outside the form: the element's width follows the pill state (the renderer, under 480 px, fills its container) and
   its height is the pill's, so the note never pushes the row. */
#eobh greenhouse-form.eo-inline-pill--event { --ghf-inline-tone: #36c8bf; --ghf-inline-tone-hover: #73d5cd; --ghf-inline-tone-active: #a1e1db; --ghf-inline-on-tone: #001a33; width: 236px; max-width: 100%; height: 52px; overflow: visible; transition: width 520ms cubic-bezier(0.2, 0, 0, 1); }
#eobh greenhouse-form.eo-inline-pill--event:has(.ghf-inline-pill:is([data-ghf-inline-state="open"], [data-ghf-inline-state="loading"], [data-ghf-inline-state="success"])) { width: 470px; }
#eobh greenhouse-form.eo-inline-pill--event:has(.ghf-inline-pill[data-ghf-inline-state="done"]) { width: 360px; }
#eobh .eobh-m greenhouse-form.eo-inline-pill--event { width: 100%; height: auto; }
#eobh greenhouse-form.eo-inline-pill--event > a.ghf-fallback { width: 100%; margin-left: 0; }
@media (prefers-reduced-motion: reduce) { #eobh greenhouse-form.eo-inline-pill--event { transition: none; } }
