/* ==========================================================================
   PRO GEN — المدونة (index, archives, search, article, comments, home strip)
   Light and flat like the rest of the site: roof-cut images, solid accents,
   Noto Kufi headings, Almarai text. Depends on main.css tokens.
   ========================================================================== */

/* ---------- reading progress ---------- */
.read-progress { position: fixed; top: 0; inset-inline: 0; z-index: 905; height: 3px; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--steel); transform: scaleX(var(--p, 0)); transform-origin: 100% 50%; }
[dir="ltr"] .read-progress i { transform-origin: 0 50%; }

/* ---------- index / archive section ---------- */
.blog-sec { padding-block: clamp(56px, 7vw, 100px) var(--sec); }
.blog-sec__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.blog-sec__bar .bchips { margin-bottom: 0; }
.blog-sec__bar--search { align-items: end; }
.blog-sec__bar--search .pg-search { flex: 1 1 420px; max-width: 680px; }
.blog-sec__count { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--muted); }
.blog-sec__count b { font-family: var(--f-lat); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--navy); }

/* ---------- featured: the latest article ---------- */
.pfeat { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--mist); margin-bottom: clamp(48px, 6vw, 80px); }
.pfeat__fig { position: relative; display: block; min-height: 460px; overflow: hidden; background: #fff; }
.pfeat__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pfeat:hover .pfeat__fig img { transform: scale(1.04); }
.pfeat__ph { position: absolute; inset: 0; padding: 12% 10%; justify-content: center; }
.pfeat__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 56px); }
.pfeat__cat, .post-hero__cat { display: inline-block; padding: 5px 14px; background: var(--steel); color: #fff; font-family: var(--f-head); font-size: 13px; font-weight: 700; line-height: 1.7; transition: background .25s; }
.pfeat__cat:hover, .post-hero__cat:hover { background: var(--navy); }
.pfeat__title { font-family: var(--f-head); font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 800; line-height: 1.5; color: var(--navy); }
.pfeat__title a { transition: color .25s; }
.pfeat__title a:hover { color: var(--steel-2); }
.pfeat__excerpt { max-width: 52ch; color: var(--muted); font-size: 1.05rem; line-height: 1.95; }
.pfeat .pg-btn { margin-top: 8px; }

/* Shared meta line: date · reading time (numbers in Montserrat). */
.pfeat__meta, .pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.pfeat__meta > * + *, .pcard__meta > * + * { display: inline-flex; align-items: center; gap: 16px; }
.pfeat__meta > * + *::before, .pcard__meta > * + *::before { content: ""; width: 5px; height: 5px; background: var(--silver); flex: none; }
.pfeat__meta b, .pcard__meta b, .post-meta b { font-family: var(--f-lat); font-weight: 700; }

/* ---------- category chips ---------- */
.bchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: clamp(32px, 4vw, 48px); }
.bchips__label { font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--muted); margin-inline-end: 10px; }
.bchips a { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 18px; background: var(--mist); font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--navy); transition: background .25s, color .25s; }
.bchips a small { font-family: var(--f-lat); font-size: 12px; font-weight: 700; color: var(--steel-2); transition: color .25s; }
.bchips a:hover { background: var(--silver-2); }
.bchips a.is-current { background: var(--navy); color: #fff; }
.bchips a.is-current small { color: var(--silver); }

/* ---------- card grid (same rhythm as .work) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(18px, 2vw, 28px); }
.pcard { min-width: 0; display: flex; flex-direction: column; }
.pcard__link { display: flex; flex-direction: column; height: 100%; }
.pcard__fig { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--mist); }
.pcard__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard__link:hover .pcard__fig img { transform: scale(1.05); }
.pcard__ph { height: 100%; padding: 12% 10%; justify-content: center; }
.pcard__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 0 18px; padding-inline-end: 60px; border-bottom: 2px solid var(--line); transition: border-color .3s; }
.pcard__link:hover .pcard__body { border-color: var(--steel); }
.pcard__cat { font-family: var(--f-head); font-size: 13px; font-weight: 600; color: var(--steel-2); }
.pcard__title { font-family: var(--f-head); font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 700; line-height: 1.6; color: var(--navy); }
.pcard__excerpt { color: var(--muted); font-size: .97rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { margin-top: auto; padding-top: 8px; }
.pcard__go { position: absolute; inset-inline-end: 0; top: 22px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--mist); color: var(--navy); transition: background .3s, color .3s; }
.pcard__go .pg-ico { width: 20px; transition: transform .3s var(--ease); }
.pcard__link:hover .pcard__go { background: var(--navy); color: #fff; }
.pcard__link:hover .pcard__go .pg-ico { transform: translateX(-3px); }
[dir="ltr"] .pcard__go .pg-ico { transform: scaleX(-1); }

/* ---------- pagination ---------- */
.bpager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 2px solid var(--line); }
.bpager__label { font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--muted); }
.bpager__label b { font-family: var(--f-lat); font-weight: 700; color: var(--navy); }
.bpager__list { display: flex; flex-wrap: wrap; gap: 6px; }
.bpager__num, .bpager__step, .bpager__gap { min-width: 48px; height: 48px; display: grid; place-items: center; padding-inline: 8px; font-family: var(--f-lat); font-size: 15px; font-weight: 700; color: var(--navy); background: var(--mist); transition: background .25s, color .25s; }
.bpager__gap { background: none; color: var(--graphite); }
.bpager a:hover { background: var(--silver-2); }
.bpager__num.is-current { background: var(--navy); color: #fff; }
.bpager__step .pg-ico { width: 20px; }

/* ---------- empty state ---------- */
.bempty { max-width: 620px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: clamp(24px, 4vw, 56px); }
.bempty__pattern { width: min(240px, 70%); margin-bottom: 14px; }
.bempty__title { font-family: var(--f-head); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--navy); line-height: 1.5; }
.bempty > p:not(.pg-kicker) { color: var(--muted); }
.bempty .pg-btn { margin-top: 10px; }
.bempty .pg-search { width: 100%; margin-top: 10px; text-align: start; }

/* ---------- search form ---------- */
.pg-search__label { display: block; margin-bottom: 8px; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--navy); }
.pg-search__row { display: flex; }
.pg-search__input { flex: 1; min-width: 0; min-height: 54px; padding: 0 18px; background: #fff; border: 1.5px solid var(--line); border-inline-end: 0; border-radius: 0; font-size: 16px; transition: border-color .25s; -webkit-appearance: none; appearance: none; }
.pg-search__input::placeholder { color: var(--graphite); }
.pg-search__input:focus { outline: none; border-color: var(--steel); }
.pg-search__btn { flex: none; width: 54px; height: 54px; display: grid; place-items: center; background: var(--navy); color: #fff; transition: background .25s; }
.pg-search__btn:hover { background: var(--steel); }
.pg-search__btn .pg-ico { width: 22px; height: 22px; }

/* ==========================================================================
   Article
   ========================================================================== */
.post-hero { --ov: clamp(56px, 9vw, 140px); background: var(--mist); padding-block: clamp(36px, 5vw, 72px); }
.post-hero--cover { padding-bottom: calc(clamp(36px, 5vw, 72px) + var(--ov)); }
.post-hero__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.post-hero--cover .post-hero__in { grid-template-columns: minmax(0, 1fr); }
.post-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 900px; }
.post-hero__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.42; color: var(--navy); max-width: 26ch; }
.post-hero__lead { max-width: 60ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); }
.post-hero__pattern { width: min(380px, 100%); justify-self: end; }

.bcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.bcrumbs a { display: inline-flex; align-items: center; gap: 10px; transition: color .25s; }
.bcrumbs a::after { content: ""; width: 5px; height: 5px; background: var(--steel); }
.bcrumbs a:hover { color: var(--steel-2); }
.bcrumbs [aria-current] { color: var(--navy); font-weight: 700; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--silver-2); font-size: 14.5px; color: var(--muted); align-self: stretch; }
.post-meta li { display: inline-flex; align-items: center; gap: 8px; }
.post-meta li + li::before { content: ""; width: 5px; height: 5px; background: var(--silver); margin-inline-end: 10px; }
.post-meta .pg-ico { width: 18px; height: 18px; color: var(--steel); }

.post-cover { position: relative; margin-top: calc(-1 * clamp(56px, 9vw, 140px)); }
.post-cover__img { --roof-x: 120px; --roof-y: 75px; display: block; aspect-ratio: 21 / 9; overflow: hidden; background: var(--silver-2); }
.post-cover__img img { width: 100%; height: 100%; object-fit: cover; }
.post-cover__fig figcaption { margin-top: 12px; padding-inline-start: 12px; border-inline-start: 2px solid var(--steel); font-size: 14px; color: var(--muted); }

.post-body { padding-block: clamp(48px, 6vw, 88px) clamp(64px, 8vw, 110px); }
.post-body__in { display: grid; grid-template-columns: minmax(0, 72ch) 300px; justify-content: center; gap: clamp(40px, 5vw, 88px); align-items: start; }
.post-body__in--solo { grid-template-columns: minmax(0, 72ch); }
.post-main { grid-column: 1; grid-row: 1; min-width: 0; }
.post-aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr) + 24px); }

/* ---------- table of contents ---------- */
.toc { background: var(--mist); padding: 24px 24px 18px; }
.toc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--navy); font-family: var(--f-head); font-size: 16px; font-weight: 700; color: var(--navy); list-style: none; cursor: pointer; }
.toc__head::-webkit-details-marker { display: none; }
.toc__head small { min-width: 30px; height: 30px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--f-lat); font-size: 13px; font-weight: 700; }
.toc__list { max-height: calc(100vh - var(--hdr) - 140px); overflow-y: auto; }
.toc__item a { display: flex; gap: 12px; padding-block: 9px; padding-inline: 12px 8px; border-inline-start: 3px solid transparent; font-size: 14.5px; line-height: 1.7; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.toc__item a small { flex: none; min-width: 16px; font-family: var(--f-lat); font-size: 13px; font-weight: 700; color: var(--steel-2); line-height: 1.9; }
.toc__item--h3 a { padding-inline-start: 40px; font-size: 13.5px; }
.toc__item a:hover { color: var(--navy); }
.toc__item a.is-active { color: var(--navy); font-weight: 700; border-color: var(--steel); background: #fff; }

/* ---------- article body: typography for core blocks ---------- */
.pg-article { --a-text: #2a2550; font-size: 1.12rem; line-height: 2.05; color: var(--a-text); overflow-wrap: break-word; }
.pg-article > * + * { margin-top: 1.4em; }
.pg-article > p:first-child { font-size: 1.24rem; line-height: 1.95; color: var(--navy); }
.pg-article h2, .pg-article h3, .pg-article h4 { font-family: var(--f-head); color: var(--navy); font-weight: 700; }
.pg-article h2 { position: relative; margin-top: 2.2em; padding-top: 20px; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.55; }
.pg-article h2::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 4px; background: var(--steel); }
.pg-article h3 { margin-top: 1.8em; font-size: 1.28rem; line-height: 1.6; }
.pg-article h4 { margin-top: 1.6em; font-size: 1.08rem; color: var(--steel-2); }
.pg-article h2 + *, .pg-article h3 + *, .pg-article h4 + * { margin-top: .7em; }
.pg-article a { color: var(--steel-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color .2s; }
.pg-article a:hover { color: var(--navy); }
.pg-article strong, .pg-article b { color: var(--navy); font-weight: 700; }
.pg-article mark { background: rgba(81, 137, 191, .18); color: inherit; padding-inline: .15em; }
.pg-article ul, .pg-article ol { padding-inline-start: 1.7em; }
.pg-article li { position: relative; }
.pg-article li + li { margin-top: .45em; }
.pg-article li > ul, .pg-article li > ol { margin-top: .45em; }
.pg-article ul > li::before { content: ""; position: absolute; inset-inline-start: -1.4em; top: .85em; width: 8px; height: 8px; background: var(--steel); }
.pg-article ul ul > li::before { background: var(--silver); }
.pg-article ol { counter-reset: pg-ol; }
.pg-article ol > li { counter-increment: pg-ol; }
.pg-article ol > li::before { content: counter(pg-ol); position: absolute; inset-inline-start: -1.7em; top: .1em; min-width: 1.3em; font-family: var(--f-lat); font-size: .9em; font-weight: 700; color: var(--steel-2); }
.pg-article blockquote, .pg-article .wp-block-quote { margin-block: 2em; padding: 26px 30px; background: var(--mist); border: 0; border-inline-start: 4px solid var(--steel); }
.pg-article blockquote p { font-family: var(--f-head); font-size: 1.22rem; font-weight: 600; line-height: 1.9; color: var(--navy); }
.pg-article blockquote p + p { margin-top: .8em; }
.pg-article blockquote cite, .pg-article blockquote footer { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--muted); }
.pg-article .wp-block-pullquote { margin-block: 2.4em; padding: 32px 0; border-block: 3px solid var(--navy); text-align: center; }
.pg-article .wp-block-pullquote blockquote { margin: 0; padding: 0; background: none; border: 0; }
.pg-article .wp-block-pullquote p { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.pg-article figure { margin-block: 2em; }
.pg-article img { max-width: 100%; height: auto; border-radius: 0 !important; }
.pg-article .wp-block-image img { width: 100%; }
.pg-article figcaption, .pg-article .wp-element-caption { margin-top: 10px; padding-inline-start: 12px; border-inline-start: 2px solid var(--silver); font-size: 14px; line-height: 1.8; color: var(--muted); text-align: start; }
.pg-article .alignleft { float: left; margin: .4em 0 1em 1.6em; max-width: 50%; }
.pg-article .alignright { float: right; margin: .4em 1.6em 1em 0; max-width: 50%; }
.pg-article .aligncenter { margin-inline: auto; }
.pg-article .wp-block-gallery { gap: 10px; }
.pg-article .wp-block-gallery figure { margin: 0; }
.pg-article table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.8; }
.pg-article .wp-block-table { overflow-x: auto; }
.pg-article th { padding: 12px 16px; background: var(--navy); color: #fff; font-family: var(--f-head); font-size: 14.5px; font-weight: 600; text-align: start; border: 0; }
.pg-article td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); }
.pg-article tbody tr:nth-child(even) td { background: var(--mist); }
.pg-article code { padding: .1em .4em; background: var(--mist); font-family: ui-monospace, Consolas, monospace; font-size: .88em; }
.pg-article pre { direction: ltr; text-align: left; padding: 20px 22px; background: var(--mist); border-inline-start: 3px solid var(--navy); overflow-x: auto; font-size: .92rem; line-height: 1.7; }
.pg-article pre code { padding: 0; background: none; }
.pg-article hr, .pg-article .wp-block-separator { height: 2px; margin-block: 2.6em; background: var(--line); border: 0; opacity: 1; }
.pg-article .wp-block-separator.is-style-dots { height: auto; background: none; text-align: center; }
.pg-article .wp-block-separator.is-style-dots::before { content: "■ ■ ■"; color: var(--steel); font-size: 8px; letter-spacing: 1.4em; }
.pg-article .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; background: var(--navy); color: #fff; font-family: var(--f-head); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 10px, 100% 100%, 0 100%); transition: background .25s, color .25s; }
.pg-article .wp-block-button__link:hover { background: var(--steel); color: #fff; }
.pg-article .is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); border: 0; }
.pg-article .is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.pg-article .wp-block-embed iframe, .pg-article video { width: 100%; max-width: 100%; }
.pg-article .wp-block-embed.wp-embed-aspect-16-9 iframe { height: auto; aspect-ratio: 16 / 9; }
.pg-article details { padding: 14px 18px; background: var(--mist); }
.pg-article summary { font-family: var(--f-head); font-weight: 600; color: var(--navy); cursor: pointer; }
.pg-article .has-drop-cap:not(:focus)::first-letter { float: right; margin: .1em 0 0 .25em; font-family: var(--f-head); font-size: 3.4em; font-weight: 800; line-height: 1; color: var(--navy); }
.pg-article::after { content: ""; display: block; clear: both; }
.pg-article__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--f-head); font-size: 14px; color: var(--muted); }
.pg-article__pages a, .pg-article__pages > span:not(:first-child) { min-width: 40px; height: 40px; display: grid; place-items: center; background: var(--mist); font-family: var(--f-lat); font-weight: 700; color: var(--navy); text-decoration: none; }

/* ---------- article end: tags, share, author ---------- */
.post-end { display: grid; gap: 28px; margin-top: clamp(48px, 5vw, 64px); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.post-tags__label { font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--muted); margin-inline-end: 8px; }
.post-tags a { padding: 6px 14px; background: var(--mist); font-size: 14px; color: var(--navy); transition: background .25s, color .25s; }
.post-tags a:hover { background: var(--navy); color: #fff; }
.post-share { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.post-share__label { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--navy); }
.post-share__row { display: flex; flex-wrap: wrap; gap: 6px; }
.post-share__btn, .post-share__copy { height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--mist); color: var(--navy); transition: background .25s, color .25s; }
.post-share__btn { width: 46px; }
.post-share__copy { gap: 8px; padding: 0 18px; font-family: var(--f-head); font-size: 14px; font-weight: 600; }
.post-share__btn:hover, .post-share__copy:hover { background: var(--navy); color: #fff; }
.post-share__copy.is-done { background: var(--steel); color: #fff; }
.post-share .pg-ico { width: 20px; height: 20px; }
.post-author { display: grid; grid-template-columns: 96px 1fr; gap: clamp(18px, 2.4vw, 28px); align-items: start; padding: clamp(22px, 3vw, 32px); background: var(--mist); }
.post-author__mark { width: 96px; height: 96px; display: grid; place-items: center; background: #fff; }
.post-author__svg { height: 62px; width: auto; }
.post-author__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.post-author__body small { font-size: 13px; color: var(--muted); }
.post-author__body b { font-family: var(--f-lat); font-weight: 700; font-size: 18px; color: var(--navy); }
.post-author__body p { margin-block: 4px 12px; font-size: 15.5px; line-height: 1.9; color: var(--muted); }

/* ---------- comments ---------- */
.pcomments { margin-top: clamp(56px, 6vw, 80px); }
.pcomments__head { margin-bottom: 24px; }
.pcomments__title { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-family: var(--f-head); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; color: var(--navy); }
.pcomments__title small { min-width: 36px; height: 36px; display: grid; place-items: center; padding-inline: 6px; background: var(--steel); color: #fff; font-family: var(--f-lat); font-size: 15px; font-weight: 700; }
.pcomments__list { border-top: 2px solid var(--line); }
.pcomments__list .children { margin-inline-start: clamp(16px, 4vw, 56px); padding-inline-start: clamp(14px, 2vw, 22px); border-inline-start: 2px solid var(--line); }
.ccard__in { padding-block: 22px; border-bottom: 1px solid var(--line); }
.ccard--ping .ccard__in { font-size: 14px; color: var(--muted); }
.ccard__head { display: flex; align-items: center; gap: 14px; }
.ccard__avatar { width: 52px; height: 52px; border-radius: 0; background: var(--mist); }
.ccard__who { display: flex; flex-direction: column; line-height: 1.6; }
.ccard__who b { font-family: var(--f-head); font-size: 15.5px; color: var(--navy); }
.ccard__who time { font-size: 13px; color: var(--muted); }
.ccard__hold { margin-top: 12px; padding: 8px 14px; background: var(--mist); font-size: 14px; color: var(--steel-2); }
.ccard__body { margin-top: 12px; color: var(--a-text, var(--text)); font-size: 1rem; line-height: 1.95; }
.ccard__body p + p { margin-top: .7em; }
.ccard__body a { color: var(--steel-2); text-decoration: underline; }
.ccard__foot { margin-top: 10px; }
.ccard__foot a { font-family: var(--f-head); font-size: 13.5px; font-weight: 700; color: var(--steel-2); border-bottom: 2px solid currentColor; }
.ccard__foot a:hover { color: var(--navy); }
.pcomments__empty, .pcomments__closed { padding: 18px 0; color: var(--muted); border-top: 2px solid var(--line); }
.pcomments .comment-navigation .nav-links { display: flex; justify-content: space-between; padding-block: 16px; font-family: var(--f-head); font-weight: 600; color: var(--navy); }
.pcomments__respond { margin-top: 36px; padding: clamp(22px, 3vw, 36px); background: var(--mist); }
.cform__title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--f-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.cform__title small a, #cancel-comment-reply-link { font-size: 13.5px; font-weight: 600; color: var(--steel-2); border-bottom: 2px solid currentColor; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.cform > * { grid-column: 1 / -1; }
.cform > .cform__field--half { grid-column: auto; }
.cform__note { font-size: 14px; color: var(--muted); }
.cform__field label { display: block; margin-bottom: 8px; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--navy); }
.cform__field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.cform__field input, .cform__field textarea { width: 100%; min-height: 52px; padding: 12px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 0; font-size: 16px; line-height: 1.8; transition: border-color .25s; -webkit-appearance: none; appearance: none; }
.cform__field textarea { min-height: 150px; resize: vertical; }
.cform__field input:focus, .cform__field textarea:focus { outline: none; border-color: var(--steel); }
.cform__cookies { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.cform__cookies input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--navy); flex: none; }
.cform__submit { margin-top: 4px; }

/* ---------- previous / next ---------- */
.post-nav { background: var(--mist); padding-block: clamp(36px, 4vw, 56px); }
.post-nav__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.post-nav__link { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; background: #fff; border-bottom: 2px solid var(--line); transition: border-color .3s; }
.post-nav__link--empty { background: none; border: 0; }
.post-nav__link--next { align-items: flex-end; text-align: end; }
.post-nav__link small { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-size: 13px; font-weight: 600; color: var(--steel-2); }
.post-nav__link small .pg-ico { width: 18px; }
.post-nav__link b { font-family: var(--f-head); font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 700; line-height: 1.6; color: var(--navy); }
a.post-nav__link:hover { border-color: var(--steel); }

/* ---------- related + home strip ---------- */
.related { padding-block: var(--sec); }
.lposts { padding-bottom: var(--sec); }
.lposts > .pg-wrap { padding-top: var(--sec); border-top: 1px solid var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
	.pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
	.post-body__in { grid-template-columns: minmax(0, 72ch); }
	.post-aside { grid-column: 1; grid-row: auto; position: static; }
	.post-main { grid-row: auto; }
	.toc { padding: 0; }
	.toc__head { padding: 16px 20px; margin: 0; border-bottom: 0; }
	.toc__head::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-3px) rotate(45deg); margin-inline-start: 6px; transition: transform .25s; }
	.toc[open] .toc__head { border-bottom: 2px solid var(--navy); }
	.toc[open] .toc__head::after { transform: translateY(3px) rotate(225deg); }
	.toc__head span { margin-inline-end: auto; }
	.toc__list { max-height: none; padding: 8px 20px 14px; }
}

@media (max-width: 860px) {
	.pfeat { grid-template-columns: 1fr; }
	.pfeat__fig { min-height: 0; aspect-ratio: 16 / 10; }
	.post-hero__in { grid-template-columns: minmax(0, 1fr); }
	.post-hero__pattern { display: none; }
	.post-cover__img { --roof-x: 56px; --roof-y: 35px; aspect-ratio: 4 / 3; }
	.post-nav__in { grid-template-columns: 1fr; }
	.post-nav__link--empty { display: none; }
	.pg-article { font-size: 1.06rem; line-height: 2; }
	.pg-article > p:first-child { font-size: 1.14rem; }
	.pg-article .alignleft, .pg-article .alignright { float: none; margin: 0; max-width: 100%; }
}

@media (max-width: 600px) {
	.pgrid { grid-template-columns: minmax(0, 1fr); }
	.cform { grid-template-columns: 1fr; }
	.cform > .cform__field--half { grid-column: 1 / -1; }
	.post-author { grid-template-columns: 64px 1fr; }
	.post-author__mark { width: 64px; height: 64px; }
	.post-author__svg { height: 42px; }
	.pg-article blockquote, .pg-article .wp-block-quote { padding: 20px 20px; }
	.bpager { justify-content: center; }
}
