/*
 * Flake Ice Machine Guide (page-flake-ice.php) — page-specific styles.
 * Builds on about.css (vd-about layout shell); everything here is prefixed
 * with `vd-fi-` to avoid collisions. No web fonts, no images, no
 * animations beyond a single color transition — Core Web Vitals first.
 *
 * @package Vendora
 */

/* ---- Page override: let prose paragraphs run full width ---------------- */
.vd-about-prose { max-width: 100%; }

/* ---- Quick answer (AI/featured-snippet target) ------------------------- */
.vd-fi-answer {
	background: var(--vd-soft, #f0f7fb);
	border-left: 3px solid var(--vd-blue, #0a84d0);
	border-radius: 10px;
	padding: 16px 18px;
	margin: 14px 0 4px;
}
.vd-fi-answer h2 {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vd-blue, #0a84d0);
	margin: 0 0 6px;
}
.vd-fi-answer p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--vd-ink, #17222b);
}
.vd-fi-answer strong { color: var(--vd-blue, #0a84d0); }

/* ---- Byline (E-E-A-T: author / reviewed / updated) --------------------- */
.vd-fi-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
	margin-top: 12px;
	font-size: 0.8rem;
	color: var(--vd-mute, #63737f);
}
.vd-fi-meta span { display: inline-flex; align-items: center; gap: 6px; }
.vd-fi-meta svg { opacity: 0.65; }

/* ---- On this page (anchor chips) --------------------------------------- */
.vd-fi-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 4px;
}
.vd-fi-toc a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--vd-ink, #17222b);
	background: var(--vd-card, #fff);
	transition: border-color 0.15s ease, color 0.15s ease;
}
.vd-fi-toc a:hover,
.vd-fi-toc a:focus-visible {
	border-color: var(--vd-blue, #0a84d0);
	color: var(--vd-blue, #0a84d0);
}
/* Anchor offset so sticky headers don't cover section tops. */
.vd-about-section { scroll-margin-top: 84px; }

/* ---- Tables ------------------------------------------------------------- */
.vd-fi-tablewrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 14px 0 6px;
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 12px;
	background: var(--vd-card, #fff);
}
.vd-fi-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86rem;
	min-width: 480px;
}
.vd-fi-table caption {
	text-align: left;
	font-size: 0.78rem;
	color: var(--vd-mute, #63737f);
	padding: 10px 14px 0;
}
.vd-fi-table th,
.vd-fi-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--vd-line, #e2e8ee);
	vertical-align: top;
	line-height: 1.5;
}
.vd-fi-table thead th {
	background: var(--vd-soft, #f0f7fb);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--vd-blue, #0a84d0);
	white-space: nowrap;
}
.vd-fi-table tbody tr:last-child th,
.vd-fi-table tbody tr:last-child td { border-bottom: 0; }
.vd-fi-table td strong { color: var(--vd-blue, #0a84d0); }

/* ---- Figures (generated photos / illustrations) -------------------------- */
.vd-fi-fig {
	margin: 14px 0 6px;
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 14px;
	overflow: hidden;
	background: var(--vd-card, #fff);
}
.vd-fi-fig img {
	display: block;
	width: 100%;
	height: auto;
}
.vd-fi-fig figcaption {
	padding: 10px 16px;
	font-size: 0.78rem;
	color: var(--vd-mute, #63737f);
	border-top: 1px solid var(--vd-line, #e2e8ee);
}

/* ---- Image placeholders (zero CLS: aspect-ratio reserves the box) ------- */
.vd-fi-ph {
	aspect-ratio: 16 / 9;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1.5px dashed var(--vd-line, #d7e0e8);
	border-radius: 14px;
	background: repeating-linear-gradient(45deg, #f6f9fb, #f6f9fb 12px, #eef3f7 12px, #eef3f7 24px);
	color: var(--vd-mute, #63737f);
	text-align: center;
	padding: 16px;
	margin: 14px 0 6px;
}
.vd-fi-ph svg { opacity: 0.5; }
.vd-fi-ph-title { font-size: 0.9rem; font-weight: 600; color: var(--vd-ink, #17222b); }
.vd-fi-ph-sub { font-size: 0.78rem; max-width: 40ch; }
.vd-fi-ph.is-slim { aspect-ratio: 21 / 9; }

/* ---- Numbered steps (how it works / sizing) ----------------------------- */
.vd-fi-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 14px 0 6px;
	list-style: none;
	padding: 0;
	counter-reset: vd-fi-step;
}
.vd-fi-steps li {
	counter-increment: vd-fi-step;
	background: var(--vd-card, #fff);
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 12px;
	padding: 14px 16px 12px;
	font-size: 0.86rem;
	line-height: 1.55;
}
.vd-fi-steps li::before {
	content: counter(vd-fi-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--vd-blue, #0a84d0);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.vd-fi-steps li strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }

/* ---- Application cards --------------------------------------------------- */
.vd-fi-apps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin: 14px 0 6px;
}
.vd-fi-app {
	background: var(--vd-card, #fff);
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 14px;
	padding: 16px 18px;
}
.vd-fi-app-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 12px;
}
.vd-fi-app-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--vd-soft, #f0f7fb);
	color: var(--vd-blue, #0a84d0);
	margin-bottom: 10px;
}
.vd-fi-app h3 {
	margin: 0 0 6px;
	font-size: 0.95rem;
}
.vd-fi-app p {
	margin: 0 0 8px;
	font-size: 0.84rem;
	line-height: 1.55;
	color: var(--vd-ink, #17222b);
}
.vd-fi-app-data {
	display: inline-block;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--vd-blue, #0a84d0);
	background: var(--vd-soft, #f0f7fb);
	border-radius: 999px;
	padding: 4px 10px;
}

/* ---- Sizing calculator ---------------------------------------------------- */
.vd-fi-calc {
	background: var(--vd-card, #fff);
	border: 1.5px solid var(--vd-blue, #0a84d0);
	border-radius: 16px;
	padding: 18px;
	margin: 16px 0 6px;
}
.vd-fi-calc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.vd-fi-calc-head .vd-fi-app-ic { margin-bottom: 0; }
.vd-fi-calc-head h3 { margin: 0; font-size: 1rem; }
.vd-fi-calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.vd-fi-field label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--vd-mute, #63737f);
	margin-bottom: 5px;
}
.vd-fi-field select,
.vd-fi-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vd-line, #d7e0e8);
	border-radius: 10px;
	font-size: 0.9rem;
	background: var(--vd-bg, #fbfdfe);
	color: var(--vd-ink, #17222b);
}
.vd-fi-field select:focus,
.vd-fi-field input:focus {
	outline: 2px solid var(--vd-blue, #0a84d0);
	outline-offset: 1px;
	border-color: var(--vd-blue, #0a84d0);
}
.vd-fi-calc-result {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--vd-soft, #f0f7fb);
	font-size: 0.9rem;
	line-height: 1.6;
	display: none;
}
.vd-fi-calc-result.is-on { display: block; }
.vd-fi-calc-result strong {
	color: var(--vd-blue, #0a84d0);
	font-size: 1.05rem;
}
.vd-fi-calc-note {
	margin-top: 10px;
	font-size: 0.76rem;
	color: var(--vd-mute, #63737f);
	line-height: 1.5;
}

/* ---- Checklist ------------------------------------------------------------- */
.vd-fi-check {
	margin: 12px 0 6px;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 8px;
}
.vd-fi-check li {
	display: flex;
	gap: 9px;
	font-size: 0.86rem;
	line-height: 1.55;
	background: var(--vd-card, #fff);
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 10px;
	padding: 10px 12px;
}
.vd-fi-check svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--vd-blue, #0a84d0);
}

/* ---- FAQ (native <details>, zero JS) ---------------------------------------- */
.vd-fi-faq { margin: 14px 0 6px; display: grid; gap: 10px; }
.vd-fi-faq details {
	background: var(--vd-card, #fff);
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 12px;
	overflow: hidden;
}
.vd-fi-faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--vd-ink, #17222b);
}
.vd-fi-faq summary::-webkit-details-marker { display: none; }
.vd-fi-faq summary::after {
	content: '+';
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--vd-soft, #f0f7fb);
	color: var(--vd-blue, #0a84d0);
	font-weight: 700;
}
.vd-fi-faq details[open] summary::after { content: '–'; }
.vd-fi-faq .vd-fi-faq-a {
	padding: 0 16px 14px;
	font-size: 0.86rem;
	line-height: 1.65;
	color: var(--vd-ink, #17222b);
	margin: 0;
}
.vd-fi-faq .vd-fi-faq-a strong { color: var(--vd-blue, #0a84d0); }

/* ---- Related articles --------------------------------------------------------- */
.vd-fi-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin: 14px 0 6px;
}
.vd-fi-post {
	display: block;
	background: var(--vd-card, #fff);
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 14px;
	padding: 16px 18px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vd-fi-post:hover,
.vd-fi-post:focus-visible {
	border-color: var(--vd-blue, #0a84d0);
	box-shadow: 0 4px 14px rgba(10, 132, 208, 0.08);
}
.vd-fi-post-cat {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vd-blue, #0a84d0);
}
.vd-fi-post h3 {
	margin: 6px 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--vd-ink, #17222b);
}
.vd-fi-post p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--vd-mute, #63737f);
}

/* ---- E-E-A-T author box + sources ---------------------------------------------- */
.vd-fi-author {
	display: flex;
	gap: 14px;
	background: var(--vd-card, #fff);
	border: 1px solid var(--vd-line, #e2e8ee);
	border-radius: 14px;
	padding: 16px 18px;
	margin: 14px 0 6px;
}
.vd-fi-author-ava {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vd-soft, #f0f7fb);
	color: var(--vd-blue, #0a84d0);
}
.vd-fi-author h3 { margin: 0 0 4px; font-size: 0.92rem; }
.vd-fi-author p { margin: 0; font-size: 0.82rem; line-height: 1.6; color: var(--vd-mute, #63737f); }
.vd-fi-sources { margin: 12px 0 0; padding: 0 0 0 18px; font-size: 0.8rem; line-height: 1.8; color: var(--vd-mute, #63737f); }
.vd-fi-sources a { color: inherit; text-decoration: underline; }
/* Sources block sits right under the author card — give it breathing room. */
.vd-fi-author + .vd-about-prose { margin-top: 24px; }

/* ---- Narrow screens -------------------------------------------------------------- */
@media (max-width: 560px) {
	.vd-fi-calc-grid { grid-template-columns: 1fr; }
	.vd-fi-answer { padding: 14px 15px; }
	.vd-fi-meta { gap: 4px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.vd-fi-toc a,
	.vd-fi-post,
	.vd-fi-field select,
	.vd-fi-field input { transition: none; }
}
