/*
Theme Name: Polor Child
Theme URI: http://demo.7iquid.com/polor/
Template: polor
Author: Kilowott
Description: Child theme for Polor - Personal Blog WordPress Theme.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: polor-child
*/

/* Add custom styles below. */

/* ==========================================================================
   Site-wide styles (moved from Polor's Customizer > Additional CSS, which is
   stored per theme and stopped loading when the child theme was activated)
   ========================================================================== */

/* Image object-fit: cover fix */
.elementor img:not(.avatar):not(.custom-logo):not([class*="logo"]) {
	  object-fit: cover;
}

/* Post card background-image: cover fix */
.post-item {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Remove gap above Popular Blogs section */
.elementor-element-674a4e6 {
  margin-top: 0 !important;
}

/* Featured card: span all 3 rows so image fills full height */
.polor-grid-wrap .post-item.item-featured {
  grid-row: span 3 !important;
}
.polor-grid-wrap .post-item.item-featured .polor-image,
.polor-grid-wrap .post-item.item-featured img {
  height: 100% !important;
  width: 100% !important;
}

/* ---- Unfluencer: managed by wp-build/custom-css.php ---- */

/* Category pills on the article cards.
   Polor only exposes a colour param for the FEATURED item's tag
   (.item-featured .polor-category-tag), so every other card's tag keeps the
   theme's dark-on-light default and disappears against the dark ground. */
.polor-posts-el .polor-category-tag,
.polor-posts-el .polor-category-tag a,
.polor-posts-carousel-el .polor-category-tag,
.polor-posts-carousel-el .polor-category-tag a {
    color: #009C79;
    border-color: #242424;
}

/* Post meta sits on a light divider by default. */
.polor-posts-el .post-item-meta {
    border-color: #242424;
}
.polor-posts-el .comment-count {
    color: #6E6E6E;
}





/* =========================================================
   1. LAYOUT
   ========================================================= */
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_form_field {
	margin: 0 0 28px;
	padding: 0;
	
}
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_form_field:has(.frm_submit){
	margin-top: 24px;
}
.frm_style_formidable-style.with_frm_style .frm_form_fields > fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_half { margin-bottom: 28px; }

/* =========================================================
   2. LABELS (IBM Plex Mono, uppercase, muted)
   ========================================================= */
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_primary_label {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	font-family: "IBM Plex Mono", monospace;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 1.68px;
	text-transform: uppercase;
	color: #6E6E6E;
}
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_required { color: #E1A924; }

/* =========================================================
   3. INPUTS / SELECT / TEXTAREA (dark inset box, square)
   ========================================================= */
.frm_style_formidable-style.with_frm_style .frm_fields_container input[type="text"],
.frm_style_formidable-style.with_frm_style .frm_fields_container input[type="email"],
.frm_style_formidable-style.with_frm_style .frm_fields_container input[type="url"],
.frm_style_formidable-style.with_frm_style .frm_fields_container input[type="tel"],
.frm_style_formidable-style.with_frm_style .frm_fields_container input[type="number"],
.frm_style_formidable-style.with_frm_style .frm_fields_container input[type="password"],
.frm_style_formidable-style.with_frm_style .frm_fields_container select,
.frm_style_formidable-style.with_frm_style .frm_fields_container textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	box-sizing: border-box;
	margin: 0;
	background: #1C1C1C;
	border: 1px solid #242424;
	border-radius: 0;
	padding: 19px 20px;
	color: #F5F5F5;
	font-family: "Instrument Sans", sans-serif;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.frm_style_formidable-style.with_frm_style .frm_fields_container textarea {
	min-height: 220px;
	resize: vertical;
}

/* placeholders */
.frm_style_formidable-style.with_frm_style .frm_fields_container input::placeholder,
.frm_style_formidable-style.with_frm_style .frm_fields_container textarea::placeholder {
	color: #6E6E6E;
	opacity: 1;
}

/* hover: neutralise Formidable's hover border */
.frm_style_formidable-style.with_frm_style .frm_fields_container input:hover,
.frm_style_formidable-style.with_frm_style .frm_fields_container select:hover,
.frm_style_formidable-style.with_frm_style .frm_fields_container textarea:hover {
	border-color: #242424;
}

/* focus: green accent ring */
.frm_style_formidable-style.with_frm_style .frm_fields_container input:focus,
.frm_style_formidable-style.with_frm_style .frm_fields_container select:focus,
.frm_style_formidable-style.with_frm_style .frm_fields_container textarea:focus {
	outline: none;
	background: #1C1C1C;
	border-color: #009C79;
	box-shadow: 0 0 0 1px #009C79;
	color: white;
}

/* Chrome autofill: keep the dark box */
.frm_style_formidable-style.with_frm_style .frm_fields_container input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #1C1C1C inset;
	-webkit-text-fill-color: #F5F5F5;
	caret-color: #F5F5F5;
}

/* select: custom chevron */
.frm_style_formidable-style.with_frm_style .frm_fields_container select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	padding-right: 48px;
}

/* =========================================================
   4. SUBMIT (gold, uppercase); works inside or outside fields container
   ========================================================= */
.frm_style_formidable-style.with_frm_style .frm_submit { margin: 8px 0 0; }
.frm_style_formidable-style.with_frm_style .frm_button_submit,
.frm_style_formidable-style.with_frm_style .frm_submit button,
.frm_style_formidable-style.with_frm_style .frm_submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	width: auto;
	height: auto;
	margin: 0;
	background: #E1A924;
	color: #060606;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 21px 30px 21px 34px;
	font-family: "Instrument Sans", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 1.26px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease;
}
.frm_style_formidable-style.with_frm_style .frm_button_submit:hover,
.frm_style_formidable-style.with_frm_style .frm_button_submit:focus,
.frm_style_formidable-style.with_frm_style .frm_button_submit:active,
.frm_style_formidable-style.with_frm_style .frm_submit button:hover,
.frm_style_formidable-style.with_frm_style .frm_submit button:focus,
.frm_style_formidable-style.with_frm_style .frm_submit button:active,
.frm_style_formidable-style.with_frm_style .frm_submit input[type="submit"]:hover,
.frm_style_formidable-style.with_frm_style .frm_submit input[type="submit"]:focus,
.frm_style_formidable-style.with_frm_style .frm_submit input[type="submit"]:active {
	background: #A97C16;
	color: #060606;
	border: 0;
	box-shadow: none;
	outline: none;
}
.frm_style_formidable-style.with_frm_style .frm_submit button:focus-visible {
	outline: 2px solid #009C79;
	outline-offset: 2px;
}
/* arrow after label (only renders if submit is a <button>) */
.frm_style_formidable-style.with_frm_style .frm_submit button::after {
	content: "\2192";
	font-weight: 400;
}

/* =========================================================
   5. DESCRIPTION / VALIDATION
   ========================================================= */
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_description {
	display: block;
	margin-top: 8px;
	color: #6E6E6E;
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
}
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_error {
	display: block;
	margin-top: 8px;
	color: #E1A924;
	font-family: "Instrument Sans", sans-serif;
	font-size: 14px;
}
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_blank_field input,
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_blank_field textarea,
.frm_style_formidable-style.with_frm_style .frm_fields_container .frm_blank_field select {
	border-color: #A97C16;
	box-shadow: none;
}

/* =========================================================
   6. MOBILE
   ========================================================= */
@media (max-width: 600px) {
	.frm_style_formidable-style.with_frm_style .frm_fields_container input,
	.frm_style_formidable-style.with_frm_style .frm_fields_container select,
	.frm_style_formidable-style.with_frm_style .frm_fields_container textarea {
		font-size: 16px; /* avoid iOS zoom */
	}
}

/* ==========================================================================
   Newsletter page (/newsletter/, Elementor page 480, Formidable form #3)
   ========================================================================== */

/* Card: fluid width capped at 560px instead of Elementor's 38% (too narrow on tablet). */
.elementor-480 .elementor-element.elementor-element-308c2b7 {
	--width: 100%;
	width: 100%;
	max-width: 560px;
}

/* Heading: 70px line-height leaves a big gap whenever the title wraps. */
.elementor-480 .elementor-element.elementor-element-214e88d7 .elementor-heading-title {
	line-height: 1.15;
}

/* Form widget fills the card (was 82%). */
.elementor-480 .elementor-element.elementor-element-2246f91 {
	--container-widget-width: 100%;
	width: 100%;
	max-width: 100%;
}

/* Newsletter form (Formidable #3, used on /newsletter/ and The Files strip).
   Container-driven, no breakpoints: Email + Submit share a row while the input
   keeps >= 220px; below that the button wraps underneath and stretches full
   width. The 999:1 grow ratio gives the spare space to the input on one row and
   lets the button fill the line once it is alone. Replaces Formidable's 12-col
   grid, where the 2-col submit cell was narrower than the button. */
#frm_form_3_container .frm_fields_container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 8px;
}
#frm_form_3_container #frm_field_13_container {
	position: relative;
	flex: 999 1 220px;
	min-width: 0;
	margin: 0;
}
/* Validation message floats under the input so it never changes the row height
   (otherwise flex-end drops the button to the error's baseline). Space for it is
   reserved only while an error is showing. */
#frm_form_3_container #frm_field_13_container .frm_error {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: 6px 0 0;
	line-height: 18px;
}
#frm_form_3_container .frm_fields_container:has(.frm_error) {
	row-gap: 36px;
	padding-bottom: 24px;
}
#frm_form_3_container #frm_field_12_container {
	flex: 1 0 auto;
	width: auto; /* Formidable sets 100% under 600px, which would force a wrap */
	margin: 0;
}
#frm_form_3_container .frm_submit {
	margin: 0;
}
#frm_form_3_container .frm_button_submit {
	width: 100%;
	height: 62px; /* match the email input */
	justify-content: center;
	white-space: nowrap;
}

@media (max-width: 575px) {
	.elementor-480 .elementor-element.elementor-element-308c2b7 {
		--padding-left: 24px;
		--padding-right: 24px;
		--padding-top: 36px;
		--padding-bottom: 36px;
	}
	.elementor-480 .elementor-element.elementor-element-214e88d7 .elementor-heading-title {
		font-size: 28px;
	}
}

/* ==========================================================================
   Front page (Elementor page 4524)
   ========================================================================== */

/* Unmasking list: keep the "01"-"04" index at its desktop 48px. Elementor's
   tablet override sets it to 100% width in a non-wrapping row, which squeezed
   the titles into ~177px and broke words ("Disinform/ation"). Phones wrap, so
   the stacked mobile layout is left alone. */
@media (min-width: 768px) {
	.elementor-4524 .elementor-element.elementor-element-b81b363 > .e-con > .elementor-widget:first-child {
		--container-widget-width: 48px;
		width: 48px;
		max-width: 48px;
		flex-shrink: 0;
	}
}

/* Display headings: Elementor holds the desktop letter-spacing in px, so at
   tablet/phone font sizes the negative tracking swallows the word spaces
   ("Mostpeoplethink"). Same ratios as desktop, expressed in em. */
@media (max-width: 1199px) {
	.elementor-4524 .elementor-element.elementor-element-8861833 .elementor-heading-title,
	.elementor-4524 .elementor-element.elementor-element-649c53e .elementor-heading-title {
		letter-spacing: -0.032em;
	}
	.elementor-4524 .elementor-element.elementor-element-d6cf573 .elementor-heading-title,
	.elementor-4524 .elementor-element.elementor-element-3a99944 .elementor-heading-title,
	.elementor-4524 .elementor-element.elementor-element-6e3b593 .elementor-heading-title,
	.elementor-4524 .elementor-element.elementor-element-5e21f80 .elementor-heading-title,
	.elementor-4524 .elementor-element.elementor-element-e420f3c .elementor-heading-title,
	.elementor-4524 .elementor-element.elementor-element-8975093 .elementor-heading-title,
	.elementor-4524 .elementor-element.elementor-element-95826e8 .elementor-heading-title {
		letter-spacing: -0.024em;
	}
	.elementor-4524 .elementor-element.elementor-element-4dc5aec .elementor-heading-title {
		letter-spacing: -0.018em;
	}
	.elementor-4524 .elementor-element.elementor-element-ce975b4 .elementor-heading-title {
		letter-spacing: -0.015em;
	}
}

/* ==========================================================================
   Newsletter strip — add the CSS class `newsletter-section` to the strip's
   container in Elementor (Advanced → CSS Classes) to use it on any page.
   The Files strip (page 3287, a330416) is also matched by id until the class
   is on it.

   Elementor gave the strip a fixed 1304px width with per-breakpoint overrides,
   so it overflowed at in-between sizes (e.g. iPad Pro 1032px). Fluid at every
   width: fill the parent up to 1304px; the copy and form columns sit side by
   side when there is room and stack when there is not — no breakpoints.
   ========================================================================== */
.elementor .elementor-element.newsletter-section,
.elementor-3287 .elementor-element.elementor-element-a330416 {
	--width: 100%;
	--flex-wrap: wrap;
	width: 100%;
	max-width: 1304px;
	box-sizing: border-box;
	flex-wrap: wrap;
}
/* Columns (copy, form): grow to share the row, wrap below ~340px each. */
.elementor .newsletter-section > .e-con,
.elementor .newsletter-section > .e-con-inner > .e-con,
.elementor-3287 .elementor-element-a330416 > .e-con {
	--width: auto;
	flex: 1 1 340px;
	width: auto;
	min-width: 0;
	max-width: 100%;
}
.elementor .newsletter-section .elementor-widget-formidable,
.elementor-3287 .elementor-element-a330416 .elementor-widget-formidable {
	width: 100%;
	max-width: 100%;
}

/* Article (preview) pages 4604/4605 — 1200px content column kept its desktop
   width on tablet. */
.elementor-element.elementor-element-52f89a6 {
	max-width: 100%;
}

/* Behind the Mask (4520) and The Giveback Model (4521) — the decorative mascot
   images are positioned to bleed past the right edge. Clip them at their own
   full-width section so the page can't be shifted sideways (anchor jumps,
   focus, mobile browsers). `clip` keeps vertical overflow and sticky intact. */
.elementor-4520 .elementor-element.elementor-element-fd85ec3,
.elementor-4521 .elementor-element.elementor-element-00181a2 {
	overflow-x: clip;
}
