/* Immobilog — platform blog v2 (SEO-BLOG, lot BL-3, docs/seo/SEO-BLOG-PROPOSITION.md §3.3).
   Same charter as the home page v2 and the feature pages (cream background, DM Sans / DM Serif Display, terracotta,
   black buttons). Scoped to .ib2: the legacy style.css stays loaded for the header and footer. */
.ib2 {
    --ib2-bg: var(--wm-ivory, #f7f5f0);
    --ib2-soft: #f1eee7;
    --ib2-surface: #fff;
    --ib2-text: #141414;
    --ib2-body: #2b2b29;
    --ib2-muted: #6e706b;
    --ib2-border: #ded9d0;
    --ib2-accent: #b85c45;
    --ib2-accent-dark: #9a4c39;
    --ib2-charcoal: #171918;
    --ib2-sans: "DM Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
    --ib2-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --ib2-shell: min(1180px, calc(100% - 2rem));
    background: var(--ib2-bg);
    color: var(--ib2-text);
    font-family: var(--ib2-sans);
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 72px;
    overflow-wrap: anywhere;
}
.ib2 *, .ib2 *::before, .ib2 *::after { box-sizing: border-box; }
.ib2 a { color: inherit; }
/* the legacy style.css greys every paragraph (p { color: var(--color-medium) }): the blog sets its own colours */
.ib2 p { color: inherit; line-height: inherit; }
.ib2 img, .ib2 svg { display: block; max-width: 100%; }
.ib2 h1, .ib2 h2, .ib2 h3 { font-family: var(--ib2-sans); color: var(--ib2-text); }
[dir="rtl"] .ib2, [dir="rtl"] .ib2 * { letter-spacing: 0 !important; }
[dir="rtl"] .ib2 .ib2-arrow { display: inline-block; transform: scaleX(-1); }
.ib2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ib2-shell { width: var(--ib2-shell); margin-inline: auto; }
.ib2-shell--narrow { max-width: 860px; }

.ib2-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--ib2-muted); margin: 0 0 14px; }
.ib2-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.ib2-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ib2-muted); margin: 0 0 10px; }
.ib2-display { font-weight: 700; font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.03; letter-spacing: -.045em; margin: 0; }
.ib2-display em { font-family: var(--ib2-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
[dir="rtl"] .ib2-display em { font-family: inherit; font-style: normal; color: var(--ib2-accent); }
.ib2-lead { font-size: 1.12rem; color: #3d3d3a; max-width: 46rem; margin: 18px 0 0; }

/* home / category */
.ib2-hero { padding: 52px 0 26px; }
.ib2-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ib2-search { display: flex; align-items: center; gap: 8px; background: var(--ib2-surface); border: 1px solid var(--ib2-border); border-radius: 999px; padding: 4px 16px; min-width: min(320px, 100%); color: var(--ib2-muted); }
.ib2-search input { border: 0; background: transparent; padding: 8px 0; font: inherit; font-size: 15px; color: var(--ib2-text); width: 100%; outline: none; }
.ib2-search:focus-within { border-color: var(--ib2-text); }
.ib2-chips { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 4px; scrollbar-width: none; }
.ib2-chips::-webkit-scrollbar { display: none; }
.ib2-chip { flex: none; border: 1px solid var(--ib2-border); background: var(--ib2-surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ib2-chip span { color: var(--ib2-muted); margin-inline-start: 6px; }
.ib2-chip[aria-current] { background: var(--ib2-text); color: #fff; border-color: var(--ib2-text); }
.ib2-chip[aria-current] span { color: #cfcac1; }
.ib2-chip:hover { border-color: var(--ib2-text); }

.ib2-cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #e9e3d8; }
.ib2-cover img, .ib2-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ib2-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding: 30px 0 46px; border-bottom: 1px solid var(--ib2-border); }
.ib2-featured .ib2-cover { aspect-ratio: 16 / 10; border-radius: 18px; }
.ib2-featured h2 { font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.12; letter-spacing: -.03em; margin: 10px 0 12px; }
.ib2-featured h2 a { text-decoration: none; }
.ib2-featured h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ib2-featured p { color: #3d3d3a; margin: 0 0 18px; }
.ib2 .ib2-cat { color: var(--ib2-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.ib2 .ib2-cat:hover { color: var(--ib2-accent-dark); text-decoration: underline; }
.ib2-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ib2-muted); font-size: 13.5px; }
.ib2-meta b { color: var(--ib2-text); font-weight: 600; }
.ib2-read { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-underline-offset: 4px; margin-top: 18px; }

.ib2-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 44px 0 20px; }
.ib2-sechead h2 { font-weight: 700; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.03em; margin: 0; }
.ib2-sechead > span { color: var(--ib2-muted); font-size: 14px; }
.ib2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.ib2-card { display: flex; flex-direction: column; min-width: 0; }
.ib2-card .ib2-cat { margin-top: 14px; }
.ib2-card h3 { font-weight: 700; font-size: 1.17rem; line-height: 1.3; letter-spacing: -.015em; margin: 6px 0 8px; }
.ib2-card h3 a { text-decoration: none; }
.ib2-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ib2-card p { color: var(--ib2-muted); font-size: 15px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ib2-card .ib2-meta { margin-top: auto; }
.ib2-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 44px 0 0; }
.ib2-pager a { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--ib2-border); border-radius: 8px; text-decoration: none; background: var(--ib2-surface); padding: 0 12px; font-size: 14px; }
.ib2-pager a[aria-current] { background: var(--ib2-text); color: #fff; border-color: var(--ib2-text); }
.ib2-empty { padding: 40px 0 10px; border-top: 1px solid var(--ib2-border); max-width: 46rem; }
.ib2-empty h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 8px; }
.ib2-empty p { color: var(--ib2-muted); margin: 0; }
.ib2-empty a { color: var(--ib2-accent); }

.ib2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ib2-text); color: #fff !important; border: 1px solid transparent; border-radius: 8px; padding: 11px 18px; font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1.2; }
.ib2-btn:hover { background: #000; }
.ib2-btn--accent { background: var(--ib2-accent); }
.ib2-btn--accent:hover { background: var(--ib2-accent-dark); }
.ib2-btn--ghost { background: transparent; border-color: #5c5852; }
.ib2-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.ib2-band { margin-top: 64px; background: var(--ib2-charcoal); color: #f7f5f0; border-radius: 18px; padding: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.ib2-band h2 { color: #f7f5f0; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 10px; }
.ib2-band h2 em { font-family: var(--ib2-serif); font-style: italic; font-weight: 400; color: #e7b9a9; }
[dir="rtl"] .ib2-band h2 em { font-family: inherit; font-style: normal; }
.ib2-band p { margin: 0; color: #cfcac1; }
.ib2-band__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* article */
.ib2-preview { background: #fff4d6; border-bottom: 1px solid #ecd9a0; color: #5b4a12; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.ib2-art-head { padding: 44px 0 26px; }
.ib2-art-head h1 { font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.04em; margin: 8px 0 0; }
.ib2-art-head .ib2-lead { font-size: 1.2rem; }
.ib2-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ib2-border); flex-wrap: wrap; }
.ib2-byline b { font-weight: 600; }
.ib2-byline .ib2-meta { font-size: 13px; }
.ib2-byline__date { flex-basis: 100%; }
.ib2-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ib2-accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ib2-langs { display: flex; gap: 8px; font-size: 13px; margin-top: 14px; color: var(--ib2-muted); align-items: center; flex-wrap: wrap; }
.ib2-langs a { border: 1px solid var(--ib2-border); border-radius: 999px; padding: 3px 10px; text-decoration: none; color: var(--ib2-text); background: var(--ib2-surface); }
.ib2-art-cover { width: var(--ib2-shell); margin: 6px auto 0; }
.ib2-art-cover .ib2-cover { aspect-ratio: 21 / 9; border-radius: 18px; }

.ib2-art-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 250px; gap: 44px; padding-top: 40px; }
.ib2-art-layout > article { max-width: 700px; min-width: 0; }
.ib2-toc { position: sticky; top: 90px; align-self: start; font-size: 14px; }
.ib2-toc p { font-weight: 700; margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ib2-muted); }
.ib2-toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--ib2-border); }
.ib2-toc li a { display: block; padding: 6px 14px; text-decoration: none; color: var(--ib2-muted); margin-inline-start: -1px; border-inline-start: 2px solid transparent; line-height: 1.4; }
.ib2-toc li a:hover { color: var(--ib2-text); }
.ib2-toc li a[aria-current] { color: var(--ib2-text); border-color: var(--ib2-accent); font-weight: 600; }
.ib2-share { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.ib2-share a, .ib2-share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ib2-border); display: grid; place-items: center; background: var(--ib2-surface); text-decoration: none; font-size: 12px; font-weight: 700; color: var(--ib2-text); cursor: pointer; padding: 0; }
.ib2-share a:hover, .ib2-share button:hover { border-color: var(--ib2-text); }
.ib2-share button.is-copied { background: var(--ib2-text); color: #fff; }

.ib2-prose { font-size: 1.075rem; line-height: 1.75; color: var(--ib2-body); }
.ib2-prose > :first-child { margin-top: 0; }
.ib2-prose h2 { font-weight: 700; font-size: 1.6rem; line-height: 1.25; letter-spacing: -.025em; margin: 2.1em 0 .6em; scroll-margin-top: 96px; }
.ib2-prose h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin: 1.8em 0 .5em; }
.ib2-prose p { margin: 0 0 1.1em; }
.ib2-prose ul, .ib2-prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.ib2-prose ul { list-style: disc; }
.ib2-prose ol { list-style: decimal; }
.ib2-prose li { margin: .35em 0; }
.ib2-prose li::marker { color: var(--ib2-accent); }
.ib2-prose a { color: var(--ib2-accent); text-decoration: underline; text-underline-offset: 3px; }
.ib2-prose strong { color: var(--ib2-text); }
.ib2-prose img { height: auto; border-radius: 10px; margin: 1.4em 0; }
.ib2-prose blockquote { margin: 1.6em 0; padding: 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--ib2-accent); font-family: var(--ib2-serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--ib2-text); }
[dir="rtl"] .ib2-prose blockquote { font-family: inherit; font-style: normal; font-weight: 600; font-size: 1.2rem; }
.ib2-prose blockquote p { margin: 0; }
.ib2-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.4em 0; display: block; overflow-x: auto; }
.ib2-prose th, .ib2-prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--ib2-border); vertical-align: top; min-width: 7em; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.ib2-prose th { font-size: 13px; color: var(--ib2-muted); font-weight: 700; }
/* blocks inserted from the Super Admin editor (BL-4) */
.ib2-prose .ib2-note { background: var(--ib2-surface); border: 1px solid var(--ib2-border); border-radius: 14px; padding: 18px 20px; margin: 1.6em 0; }
.ib2-prose .ib2-note > :last-child { margin-bottom: 0; }
.ib2-prose .ib2-note > p:first-child { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ib2-accent); font-weight: 700; margin-bottom: 6px; }
.ib2-prose .ib2-callout { background: var(--ib2-soft); border: 1px solid var(--ib2-border); border-radius: 14px; padding: 20px 22px; margin: 2em 0; }
.ib2-prose .ib2-callout > :last-child { margin-bottom: 0; }
.ib2-prose .ib2-callout a { display: inline-flex; margin-top: 4px; background: var(--ib2-text); color: #fff; text-decoration: none; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: 14px; }

.ib2-author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; margin-top: 30px; border-top: 1px solid var(--ib2-border); border-bottom: 1px solid var(--ib2-border); }
.ib2-author .ib2-avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.ib2-author p { margin: 4px 0 0; color: var(--ib2-muted); font-size: 15px; }
.ib2-updated { color: var(--ib2-muted); font-size: 14px; margin-top: 14px; }
.ib2-aside { position: sticky; top: 90px; align-self: start; background: var(--ib2-surface); border: 1px solid var(--ib2-border); border-radius: 14px; padding: 20px; font-size: 14px; }
.ib2-aside strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.ib2-aside p { color: var(--ib2-muted); margin: 0 0 14px; }

@media (min-width: 700px) {
    .ib2-byline__date { flex-basis: auto; margin-inline-start: auto; }
}
@media (max-width: 1100px) {
    .ib2-art-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
    .ib2-art-layout > article { max-width: none; }
    .ib2-toc { position: static; order: -1; background: var(--ib2-surface); border: 1px solid var(--ib2-border); border-radius: 14px; padding: 14px 16px; }
    .ib2-toc ol { border: 0; }
    .ib2-toc li a { padding: 5px 0; border: 0; }
    .ib2-share { margin-top: 14px; }
    .ib2-aside { display: none; }
}
@media (max-width: 900px) {
    .ib2-featured { grid-template-columns: 1fr; gap: 20px; }
    .ib2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ib2-band { grid-template-columns: 1fr; padding: 28px; }
    .ib2-band__cta { justify-content: flex-start; }
}
@media (max-width: 620px) {
    .ib2-grid { grid-template-columns: 1fr; }
    .ib2-hero { padding-top: 32px; }
    .ib2-art-head { padding-top: 28px; }
    .ib2-art-cover .ib2-cover { aspect-ratio: 16 / 10; }
    .ib2-sechead { flex-wrap: wrap; }
    .ib2-prose table { font-size: .88rem; }
    .ib2-prose th, .ib2-prose td { padding: 8px; min-width: 6.5em; }
}

/* SIM-L8 — free simulators under an article */
.ib2-tools__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ib2-tools__list a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--ib2-border); border-radius: 14px; background: var(--ib2-surface); color: var(--ib2-text); text-decoration: none; transition: border-color .2s; }
.ib2-tools__list a:hover, .ib2-tools__list a:focus-visible { border-color: var(--ib2-accent); }
.ib2-tools__list b { display: block; font-size: 1rem; margin-bottom: 6px; }
.ib2-tools__list span { display: block; color: var(--ib2-muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) { .ib2-tools__list { grid-template-columns: minmax(0, 1fr); } }
