/* ===== Blog ===== */
.blog-hero,.article-hero{position:relative;background:linear-gradient(180deg,#fff 0%,var(--tint) 100%);padding-block:clamp(28px,4vw,56px) clamp(56px,7vw,96px);overflow:hidden}
.blog-hero__wave,.article-hero__wave{position:absolute;bottom:-1px;left:0;width:100%;height:clamp(26px,3.4vw,48px);color:#fff;pointer-events:none}
.blog-hero__title{margin:0;font-family:var(--font-d);font-weight:600;font-size:clamp(2.5rem,5.4vw,4.25rem);line-height:1.04;color:var(--ink)}
.blog-hero__lead{margin:16px 0 0;max-width:34em;font-size:clamp(1.1875rem,1.6vw,1.375rem);line-height:1.6;color:var(--text)}

.blog-list{padding-block:clamp(32px,5vw,64px) var(--sec)}
.posts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.4vw,36px)}
.post-card__link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:var(--ink);border-radius:var(--r);background:#fff;box-shadow:0 0 0 1px rgba(6,40,61,.08);overflow:hidden;transition:box-shadow .3s,transform .3s}
.post-card__link:hover{transform:translateY(-4px);box-shadow:0 0 0 1px rgba(6,82,122,.25),0 26px 50px -34px rgba(6,40,61,.55)}
.post-card__link:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.post-card__media{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--tint)}
.post-card__media img,.post-card__media .ph{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s ease}
.post-card__link:hover .post-card__media img{transform:scale(1.05)}
.post-card__body{display:flex;flex-direction:column;gap:10px;padding:22px 24px 26px;flex:1}
.post-card__meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.95rem;color:var(--text)}
.post-card__title{font-family:var(--font-d);font-weight:600;font-size:1.5rem;line-height:1.25;text-wrap:balance}
.post-card__excerpt{color:var(--text);line-height:1.65;font-size:1.0625rem}
.post-card__more{margin-top:auto;padding-top:6px;display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--accent)}
.post-card__more svg{width:20px;height:20px}
.post-card--lead{grid-column:1 / -1}
.post-card--lead .post-card__link{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.post-card--lead .post-card__media{aspect-ratio:auto;min-height:340px}
.post-card--lead .post-card__body{justify-content:center;padding:clamp(28px,4vw,56px)}
.post-card--lead .post-card__title{font-size:clamp(1.875rem,3vw,2.5rem)}
.blog-empty{font-size:1.25rem}
.nav-links{display:flex;gap:10px;justify-content:center;margin-top:48px}
.nav-links .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:46px;padding:0 14px;border-radius:999px;background:var(--tint);color:var(--ink);font-weight:700;text-decoration:none}
.nav-links .current{background:var(--accent);color:#fff}

.article-hero__grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:center}
.article-hero__title{margin:0;font-family:var(--font-d);font-weight:600;font-size:clamp(2.25rem,4.6vw,3.75rem);line-height:1.08;color:var(--ink);text-wrap:balance}
.article-hero__meta{margin:20px 0 0;display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--text);font-size:1.0625rem}
.article-hero__meta span:first-child{font-weight:700;color:var(--accent)}
.article-hero__media{border-radius:var(--r);overflow:hidden;aspect-ratio:4/3;box-shadow:0 30px 60px -40px rgba(6,40,61,.6)}
.article-hero__media img{width:100%;height:100%;object-fit:cover;display:block}

.article__wrap{max-width:calc(760px + 2 * var(--gut));padding-block:clamp(32px,5vw,64px) var(--sec)}
.article__content{font-size:clamp(1.125rem,1.3vw,1.25rem);line-height:1.85;color:var(--text)}
.article__content > * + *{margin-top:1.1em}
.article__content h2{margin-top:2em;font-family:var(--font-d);font-weight:600;font-size:clamp(1.75rem,2.6vw,2.25rem);line-height:1.2;color:var(--ink)}
.article__content h3{margin-top:1.6em;font-family:var(--font-d);font-weight:600;font-size:1.5rem;color:var(--ink)}
.article__content a{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.article__content a:hover{color:var(--ink)}
.article__content ul,.article__content ol{padding-inline-start:1.3em}
.article__content ul{list-style:disc}
.article__content ol{list-style:decimal}
.article__content li + li{margin-top:.4em}
.article__content strong{color:var(--ink)}
.article__content blockquote{margin-inline:0;padding:22px 26px;border-inline-start:4px solid var(--cyan);background:var(--tint);border-radius:0 var(--r) var(--r) 0;color:var(--ink);font-size:1.1em}
.article__content figure{margin-inline:0}
.article__content figure img{width:100%;height:auto;border-radius:var(--r)}
.article__content figcaption{margin-top:8px;font-size:.95rem;color:var(--text);text-align:center}
.article__content .note{padding:20px 24px;border-radius:var(--r);background:#FFF8E8;border:1px solid #F1D99B;color:#4A3A12;font-size:1.0625rem}

.author-box{display:flex;gap:20px;align-items:center;margin-top:56px;padding:24px;border-radius:var(--r);background:var(--tint)}
.author-box__img{flex:none;width:96px;height:96px;border-radius:50%;overflow:hidden}
.author-box__img img,.author-box__img .ph{width:100%;height:100%;object-fit:cover;object-position:50% 25%}
.author-box__name{margin:0;font-family:var(--font-d);font-weight:600;font-size:1.375rem;color:var(--ink)}
.author-box__bio{margin:4px 0 8px;color:var(--text);line-height:1.6}
.author-box__link{font-weight:700;color:var(--accent)}

.article-more{padding-bottom:var(--sec)}
.article-more .h2{text-align:start;margin-inline:0;margin-bottom:28px}
.posts--small .post-card__title{font-size:1.25rem}

@media (max-width:900px){.posts{grid-template-columns:repeat(2,minmax(0,1fr))}.post-card--lead .post-card__link,.article-hero__grid{grid-template-columns:1fr}.post-card--lead .post-card__media{min-height:0;aspect-ratio:16/10}}
@media (max-width:600px){.posts{grid-template-columns:1fr}.author-box{flex-direction:column;align-items:flex-start}}

/* ===== Article layout: TOC + summary + FAQ (same structure as Rami) ===== */
.post-layout{display:grid;grid-template-columns:16.5rem minmax(0,47.5rem);justify-content:center;gap:clamp(28px,4vw,64px);align-items:start;padding-block:clamp(32px,5vw,64px) var(--sec)}
.post-toc{position:sticky;top:110px}
.admin-bar .post-toc{top:142px}
.post-toc__box{background:var(--tint);border:1px solid var(--line);border-radius:16px}
.post-toc__title{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem 1.25rem;font-weight:700;color:var(--ink);cursor:pointer;list-style:none;border-radius:16px}
.post-toc__title::-webkit-details-marker{display:none}
.post-toc__title::after{content:"";width:.5rem;height:.5rem;border-inline-end:.125rem solid currentColor;border-bottom:.125rem solid currentColor;transform:rotate(45deg);transition:transform .25s}
.post-toc__box[open] .post-toc__title::after{transform:rotate(-135deg)}
.post-toc__title:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.post-toc__list{max-height:calc(100vh - 16rem);overflow-y:auto;padding:0 1.25rem 1rem;font-size:.95rem;line-height:1.45;scrollbar-width:thin}
.post-toc__list,.post-toc__list ol{list-style:none;margin:0}
.post-toc__list li{margin-top:.625rem}
.post-toc__list ol{padding-inline-start:.75rem;border-inline-start:1px solid var(--line);margin-top:.5rem}
.post-toc__list ol li{margin-top:.4rem}
.post-toc__list a{color:var(--text);text-decoration:none}
.post-toc__list > li > a{font-weight:600;color:var(--ink)}
.post-toc__list a:hover,.post-toc__list a:focus-visible{color:var(--accent);text-decoration:underline;text-underline-offset:.2rem}
.post-main{min-width:0}
.article__content h2,.article__content h3,.post-faq h2{scroll-margin-top:120px}
.post-summary{margin-bottom:2rem;padding:1.5rem 1.75rem;border-radius:var(--r);background:linear-gradient(135deg,var(--tint),#E3F3F8);border-inline-start:4px solid var(--blue)}
.post-summary__tag{margin:0 0 .5rem;font-weight:700;color:var(--accent);font-size:1rem}
.post-summary p:not(.post-summary__tag){margin:0;font-size:clamp(1.125rem,1.4vw,1.25rem);line-height:1.75;color:var(--ink)}
.table-wrap{overflow-x:auto;border-radius:16px;border:1px solid var(--line)}
.table-wrap:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.article__content table{width:100%;border-collapse:collapse;font-size:1.0625rem;min-width:520px}
.article__content th,.article__content td{padding:.85rem 1rem;text-align:start;border-bottom:1px solid var(--line);vertical-align:top}
.article__content thead th{background:var(--tint);color:var(--ink);font-weight:700}
.article__content tbody tr:last-child td{border-bottom:0}
.article__content .sources{font-size:1rem}
.post-faq{margin-top:3rem}
.post-faq h2{font-family:var(--font-d);font-weight:600;font-size:clamp(1.75rem,2.6vw,2.25rem);color:var(--ink);margin:0}
.faq{display:grid;gap:12px;margin-top:1.25rem}
.faq__item{border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .2s,box-shadow .2s}
.faq__item:hover{border-color:var(--blue)}
.faq__item[open]{border-color:var(--accent);background:var(--tint);box-shadow:0 14px 30px -22px rgba(6,82,122,.6)}
.faq__summary{list-style:none;display:flex;align-items:center;gap:16px;padding:18px 20px;cursor:pointer;border-radius:14px}
.faq__summary::-webkit-details-marker{display:none}
.faq__summary:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.faq__q{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;margin:0;font-family:var(--font-d);font-weight:600;font-size:clamp(1.125rem,1.5vw,1.3125rem);color:var(--ink);line-height:1.35}
.faq__toggle{flex:0 0 auto;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--tint);color:var(--accent);transition:transform .25s,background .2s,color .2s}
.faq__toggle svg{width:20px;height:20px}
.faq__item[open] .faq__toggle{transform:rotate(180deg);background:var(--accent);color:#fff}
.faq__answer{padding:0 20px 20px}
.faq__answer p{margin:0;font-size:1.0625rem;line-height:1.75;color:var(--text)}
.author-box__kicker{margin:0;font-size:.95rem;color:var(--accent);font-weight:700}
@media (max-width:1000px){.post-layout{grid-template-columns:minmax(0,1fr);max-width:calc(760px + 2 * var(--gut))}.post-toc{position:static}.post-toc__list{max-height:60vh}}