/*
 * AEO service page (draft, template page-answer-engine-optimization). Concept "מבנה של תשובה": the parts of a good
 * answer on the site (hero), what AEO is and is not, its place next to SEO and GEO (links to both), who it is for,
 * six deliverables on ink, five stages, an eight-point answer checklist, what is measured and what is not promised,
 * official sources. Further reading comes from inc/related-content.php (topic articles + IBASTOM_BLG_TOPICS["aeo"]["related"]).
 * Palette: the SEO / GEO family's moss ink, linen paper and citrus accent; the signal moves on to a sea-teal, so the
 * three pages read as siblings. All illustrations are ordinary blocks + CSS (no inline SVG in the content).
 */

:root, .sv-page--aeo {
	--sv-ink: #18210f;
	--sv-ink-2: #222e17;
	--sv-ink-3: #3a4a2a;
	--sv-paper: #f5f4ec;
	--sv-paper-2: #e6ebe3;
	--sv-card: #fbfbf6;
	--sv-line: #cfd6cb;
	--sv-line-strong: #8fa094;
	--sv-muted: #4b5a50;
	/* Sea-green teal (20.10.2026): the first teal #1d6a6e / #a3d8d6 was nearly the Dropshipping petrol (ΔE2000 6.8 signal,
	   2.0 soft, 1.1 tint); this one keeps the family and sits between Dropshipping (ΔE 12.3) and GEO green (11.2). */
	--sv-signal: #0f6b62;
	--sv-signal-deep: #0b5952;
	--sv-signal-soft: #8fdccd;
	--sv-accent: #ffd447;
	--sv-alert: #a63d2a;
	--sv-on-ink: #f5f4ec;
	--sv-on-ink-muted: #bcc2a6;
	--sv-on-ink-line: #364428;
	--sv-on-signal: #ffffff;
	--sv-grid: rgba(24, 33, 15, .05);
	--sv-grid-ink: rgba(245, 244, 236, .045);
	--sv-glow: rgba(29, 106, 110, .18);
	--sv-underline: linear-gradient(90deg, #ffd447 0 30%, #0f6b62 30% 100%);
	--sv-cta-mark: "?";
}

/* Section grounds: light, tinted and ink alternate. */
.aeo-what, .aeo-checklist, .aeo-sources { background: var(--sv-paper-2); border-block: 1px solid var(--sv-line); }
.aeo-what .aeo-not, .aeo-what .aeo-lens { background: var(--sv-card); }

/* ---------- Hero ---------- */
.aeo-hero .sv-h1 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.6rem); }
.aeo-hero__question.aeo-hero__question { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); font-weight: 700; line-height: 1.4; color: var(--sv-ink); max-width: 40rem; }
.aeo-anatomy__list { display: grid; gap: .5rem; margin: 0 !important; padding: 0 !important; list-style: none; }
.aeo-anatomy__list li {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; padding: .65rem .85rem;
	background: var(--sv-card); border: 1px solid var(--sv-line); border-inline-start: 4px solid var(--sv-signal); border-radius: 4px;
}
/* The question and the short answer carry the weight; the later parts step back. */
.aeo-anatomy__list li:first-child { border-inline-start-color: var(--sv-accent); background: #fff8d6; }
.aeo-anatomy__list li:nth-child(2) { border-inline-start-color: var(--sv-signal-deep); background: #e3f3f2; }
.aeo-anatomy__list li:nth-child(n+3) { margin-inline-start: 1rem; }
.aeo-anatomy__label { font-family: var(--sv-mono); font-size: .75rem; font-weight: 500; color: var(--sv-muted); }
.aeo-anatomy__text { font-size: 1rem; line-height: 1.35; }
.aeo-anatomy__note { font-size: .875rem; line-height: 1.5; color: var(--sv-muted); }
@media (prefers-reduced-motion: no-preference) {
	.aeo-anatomy__list li { animation: sv-pop .4s var(--sv-ease) both; animation-delay: calc(.25s + var(--i, 0) * .1s); }
	.aeo-anatomy__list li:nth-child(2) { --i: 1; } .aeo-anatomy__list li:nth-child(3) { --i: 2; }
	.aeo-anatomy__list li:nth-child(4) { --i: 3; } .aeo-anatomy__list li:nth-child(5) { --i: 4; }
}

/* ---------- What is AEO ---------- */
.aeo-what__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
	.aeo-what__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
.aeo-what__text { display: grid; gap: 1.1rem; font-size: 1.0625rem; line-height: 1.8; max-width: 44rem; }
.aeo-what__aside { display: grid; gap: .75rem; }
.aeo-not { display: grid; gap: .35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--sv-line); border-inline-start: 4px solid var(--sv-alert); border-radius: var(--sv-radius); }
.aeo-not__title { font-size: 1.0625rem; font-weight: 700; }
.aeo-not__text { font-size: .9375rem; line-height: 1.65; color: var(--sv-muted); }

.aeo-lenses-wrap { margin-block-start: clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1rem; }
.aeo-lenses__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 700; }
.aeo-lenses { display: grid; gap: 1rem; }
@media (min-width: 900px) {
	.aeo-lenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.aeo-lens { display: grid; gap: .6rem; align-content: start; padding: 1.3rem 1.4rem; border: 1px solid var(--sv-line); border-radius: var(--sv-radius); }
.aeo-what .aeo-lens--aeo { background: var(--sv-ink); border-color: var(--sv-ink); color: var(--sv-on-ink); }
.aeo-lens__title { display: grid; gap: .2rem; font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.aeo-lens__title [lang="en"] { font-family: var(--sv-mono); letter-spacing: .02em; }
.aeo-lens__short { font-family: var(--sv-sans); font-size: 1rem; font-weight: 700; color: var(--sv-signal-deep); }
.aeo-lens--aeo .aeo-lens__short { color: var(--sv-accent); }
.aeo-lens__text { line-height: 1.65; }
.aeo-lens__more { font-weight: 700; }
.aeo-lens__more a, .aeo-sources__list a, .sv-qa a {
	color: var(--sv-signal-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px;
}
.aeo-lens__more a:hover, .aeo-sources__list a:hover { text-decoration-thickness: 2px; }
.aeo-lenses__note { max-width: 60rem; padding-inline-start: 1rem; border-inline-start: 4px solid var(--sv-accent); color: var(--sv-muted); line-height: 1.7; }

/* ---------- Process ---------- */
.aeo-process .sv-intro [lang="en"] { font-family: var(--sv-mono); font-size: .9375rem; color: var(--sv-signal-deep); }
.aeo-stages { display: grid; gap: 1rem; }
@media (min-width: 720px) {
	.aeo-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.aeo-stages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.aeo-stage { position: relative; display: grid; gap: .6rem; align-content: start; padding: 1.5rem 1.3rem 1.6rem; background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: var(--sv-radius); }
.aeo-stage::before { content: ""; position: absolute; inset-inline: 1.3rem; top: 0; height: 3px; background: var(--sv-signal); border-radius: 0 0 3px 3px; }
.aeo-stage__num { font-family: var(--sv-mono); font-size: .8125rem; color: var(--sv-signal-deep); }
.aeo-stage__title { font-size: 1.375rem; font-weight: 700; }
.aeo-stage__why { line-height: 1.65; }
.aeo-stage__act, .aeo-stage__out { font-size: .9375rem; line-height: 1.6; color: var(--sv-muted); }
.aeo-stage__act strong, .aeo-stage__out strong { color: var(--sv-ink); }

/* ---------- Measurement ---------- */
.aeo-measure__grid { display: grid; gap: 1rem; }
@media (min-width: 800px) {
	.aeo-measure__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.aeo-measure__col { padding: 1.4rem 1.5rem; border-radius: var(--sv-radius); }
.aeo-measure__col--yes { background: var(--sv-ink); color: var(--sv-on-ink); }
.aeo-measure__col--no { background: var(--sv-card); border: 1.5px dashed var(--sv-line-strong); }
.aeo-measure__title { font-size: 1.125rem; font-weight: 700; margin-block-end: .8rem !important; }
.aeo-measure__list { display: grid; gap: .55rem; }
.aeo-measure__list li { position: relative; padding-inline-start: 1.6rem; line-height: 1.6; }
.aeo-measure__list li::before { position: absolute; inset-inline-start: 0; font-weight: 700; }
.aeo-measure__col--yes li::before { content: "✓"; color: var(--sv-accent); }
.aeo-measure__col--no li::before { content: "–"; color: var(--sv-muted); }


/* ---------- Sources ---------- */
.aeo-sources { padding-block: clamp(3rem, 6vw, 5rem); }
.aeo-sources__list { display: grid; gap: .5rem; max-width: 60rem; counter-reset: aeo-src; }
.aeo-sources__list li { counter-increment: aeo-src; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem; font-size: .9375rem; line-height: 1.6; }
.aeo-sources__list li::before { content: counter(aeo-src, decimal-leading-zero); font-family: var(--sv-mono); font-size: .75rem; color: var(--sv-muted); padding-block-start: .2rem; }
.aeo-sources__list a { text-align: left; overflow-wrap: anywhere; }

/* ---------- The floating accessibility button (Ally, fixed on the left edge) must not cover text – as on the GEO page. */
@media (max-width: 1399px) {
	body.ibastom-sv-aeo:has(#pojo-a11y-toolbar) :is(.sv-main .sv-wrap, .ibs-footer) {
		width: min(var(--sv-wrap, 1240px), 100% - var(--sv-gutter) - 3.75rem);
		margin-inline: auto 3.75rem; /* RTL: the free space stays on the right, the button's strip on the left */
	}
}

@media (prefers-reduced-motion: reduce) {
	.aeo-anatomy__list li { animation: none; }
}
