/* NFPK Core 6.24.1 — Author Archive
   Native WordPress author context + NFPK Blog image/card pipeline. */
.nfpk-author-hero,.nfpk-author-posts{
  --naa-red:#ED2025;--naa-green:#1FAE5B;--naa-bg:#f7f7f8;--naa-panel:#fff;--naa-text:#171719;--naa-muted:#72757b;
  --naa-stroke:rgba(17,17,19,.13);--naa-stroke-strong:rgba(17,17,19,.23);--naa-shadow:0 18px 45px -36px rgba(0,0,0,.45);
  box-sizing:border-box;color:var(--naa-text);font-family:var(--e-global-typography-text-font-family,var(--nfpk-font-family,"Vazir",Tahoma,Arial,sans-serif));
}
html[data-nfpk-theme="dark"] :is(.nfpk-author-hero,.nfpk-author-posts),html[data-theme="dark"] :is(.nfpk-author-hero,.nfpk-author-posts),body.nfpk-dark-mode :is(.nfpk-author-hero,.nfpk-author-posts),body.nfpk-dark :is(.nfpk-author-hero,.nfpk-author-posts){
  --naa-bg:#09090b;--naa-panel:#111215;--naa-text:#fff;--naa-muted:rgba(255,255,255,.66);--naa-stroke:rgba(255,255,255,.16);--naa-stroke-strong:rgba(255,255,255,.30);--naa-shadow:0 20px 55px -38px rgba(0,0,0,.95)
}
.nfpk-author-hero *,.nfpk-author-posts *{box-sizing:border-box}

.nfpk-author-hero{
  position:relative;isolation:isolate;display:grid;grid-template-columns:clamp(160px,18vw,210px) minmax(0,1fr);gap:clamp(20px,3vw,36px);align-items:center;
  min-height:250px;padding:clamp(20px,3vw,32px);overflow:hidden;background:var(--naa-panel);border:1px solid var(--naa-stroke);border-radius:25px;box-shadow:var(--naa-shadow)
}

.nfpk-author-hero__cover{position:absolute;z-index:0;inset:0;display:block;overflow:hidden;border-radius:inherit;pointer-events:none}
.nfpk-author-hero__cover-image{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;margin:0!important;opacity:1!important;visibility:visible!important}
.nfpk-author-hero__cover-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.95),rgba(255,255,255,.82) 58%,rgba(255,255,255,.72));backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}
html[data-nfpk-theme="dark"] .nfpk-author-hero__cover-overlay,html[data-theme="dark"] .nfpk-author-hero__cover-overlay,body.nfpk-dark-mode .nfpk-author-hero__cover-overlay,body.nfpk-dark .nfpk-author-hero__cover-overlay{background:linear-gradient(90deg,rgba(10,10,12,.94),rgba(10,10,12,.82) 58%,rgba(10,10,12,.72))}

.nfpk-author-hero::after{content:"";position:absolute;z-index:1;inset-block:0;inset-inline-end:-7%;width:38%;background:radial-gradient(circle at center,rgba(237,32,37,.09),transparent 68%);pointer-events:none}
.nfpk-author-hero__photo{position:relative;z-index:2;display:grid;place-items:center;width:100%;aspect-ratio:1;overflow:hidden;background:var(--naa-bg);border:1px solid var(--naa-stroke-strong);border-radius:25px}
.nfpk-author-hero__photo img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;margin:0!important;border-radius:0!important;opacity:1!important;visibility:visible!important}
.nfpk-author-hero__fallback{display:grid;place-items:center;width:100%;height:100%;color:#fff;background:linear-gradient(135deg,#8c8c8c,#59595c);font-size:clamp(52px,8vw,92px);font-weight:900;line-height:1}
.nfpk-author-hero__body{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;min-width:0}
.nfpk-author-hero__identity{min-width:0}
.nfpk-author-hero h1{margin:0!important;color:var(--naa-text)!important;font:900 clamp(30px,4vw,52px)/1.22 inherit!important;letter-spacing:-.025em!important;text-align:start!important}
.nfpk-author-hero__position{display:inline-flex;align-items:center;min-height:32px;margin:10px 0 0!important;padding:5px 11px;color:var(--naa-muted)!important;background:var(--naa-bg);border:1px solid var(--naa-stroke);border-radius:999px;font-size:12px!important;font-weight:750!important;line-height:1.5!important;text-align:start!important}
.nfpk-author-hero__actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:clamp(20px,2.5vw,30px)}
.nfpk-author-hero__btn{display:flex!important;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:9px 12px;color:var(--naa-text)!important;background:var(--naa-bg)!important;border:1px solid var(--naa-stroke-strong)!important;border-radius:15px!important;box-shadow:none!important;text-decoration:none!important;font-family:inherit!important;font-size:11.5px!important;font-weight:800!important;line-height:1.3!important;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease!important}
.nfpk-author-hero__btn svg{flex:0 0 19px;width:19px;height:19px;color:var(--naa-red)}
.nfpk-author-hero__btn span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfpk-author-hero__btn:hover,.nfpk-author-hero__btn:focus-visible{color:#fff!important;background:var(--naa-green)!important;border-color:var(--naa-green)!important;transform:translateY(-1px)!important;outline:0!important}
.nfpk-author-hero__btn:hover svg,.nfpk-author-hero__btn:focus-visible svg{color:#fff!important}

.nfpk-author-posts{margin-top:20px;padding:20px;background:var(--naa-panel);border:1px solid var(--naa-stroke);border-radius:25px;box-shadow:var(--naa-shadow)}
.nfpk-author-posts__head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:0 2px}
.nfpk-author-posts__head h2{position:relative;margin:0!important;padding-inline-start:16px;color:var(--naa-text)!important;font:900 clamp(24px,2.5vw,36px)/1.3 inherit!important;text-align:start!important}
.nfpk-author-posts__head h2::before{content:"";position:absolute;inset-inline-start:0;top:.18em;width:4px;height:1.05em;background:var(--naa-red);border-radius:99px}
.nfpk-author-posts__count{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 11px;color:var(--naa-muted);background:var(--naa-bg);border:1px solid var(--naa-stroke);border-radius:999px;font-size:10.5px;font-weight:750;white-space:nowrap}
.nfpk-author-posts__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.nfpk-author-posts__empty{display:flex;align-items:center;justify-content:center;min-height:170px;padding:24px;color:var(--naa-muted);background:var(--naa-bg);border:1px dashed var(--naa-stroke-strong);border-radius:18px;text-align:center;font-size:13px;font-weight:700}

/* Author archive cards use the same approved light-first archive language. */
.nfpk-author-posts .nfpk-bc4--archive{--bc4-bg:#fff;--bc4-bg-hover:#fff;--bc4-text:#171719;--bc4-muted:#74777d;--bc4-stroke:rgba(17,17,19,.15);--bc4-line:rgba(17,17,19,.12);background:var(--bc4-bg)!important;border:1px solid var(--bc4-stroke)!important;box-shadow:0 15px 34px -30px rgba(0,0,0,.35)}
.nfpk-author-posts .nfpk-bc4--archive:hover,.nfpk-author-posts .nfpk-bc4--archive:focus-within{border-color:var(--naa-red)!important;background:#fff!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__media{aspect-ratio:16/10;background:#ececef;border-radius:24px 24px 15px 15px}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__category{color:var(--naa-red)!important}
.nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__title,.nfpk-bc4__title a){color:#171719!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__excerpt{color:#696c72!important}
.nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__author,.nfpk-bc4__author-name){color:#4c4f54!important}
.nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__date,.nfpk-bc4__read){color:#8a8d92!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__footer{border-top-color:rgba(17,17,19,.10)!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__badge{background:rgba(255,255,255,.94)!important;color:#202124!important;border-color:rgba(17,17,19,.18)!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__share{color:#161719!important;background:rgba(255,255,255,.90)!important;border-color:rgba(17,17,19,.18)!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__share:hover,.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__share:focus-visible,.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__share.is-copied{color:#fff!important;background:var(--naa-red)!important;border-color:#fff!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__actions{background:rgba(255,255,255,.84);border-color:rgba(17,17,19,.11)}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__action{color:rgba(28,29,31,.52)!important;background:rgba(255,255,255,.80)!important;border-color:rgba(17,17,19,.18)!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__action.is-active{color:#202124!important;background:#fff!important;border-color:rgba(17,17,19,.28)!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__action.is-quick{color:var(--naa-red)!important;border-color:rgba(237,32,37,.38)!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__avatar{color:#fff!important;background:#8c8c8c!important;border-color:rgba(17,17,19,.16)!important}
.nfpk-author-posts .nfpk-bc4--archive .nfpk-bc4__stars{color:rgba(128,128,128,.28)!important}
html[data-nfpk-theme="dark"] .nfpk-author-posts .nfpk-bc4--archive,html[data-theme="dark"] .nfpk-author-posts .nfpk-bc4--archive,body.nfpk-dark-mode .nfpk-author-posts .nfpk-bc4--archive,body.nfpk-dark .nfpk-author-posts .nfpk-bc4--archive{--bc4-bg:rgba(43,43,43,.97);--bc4-bg-hover:rgba(34,34,34,.99);--bc4-text:#fff;--bc4-muted:rgba(255,255,255,.72);--bc4-stroke:rgba(255,255,255,.90);--bc4-line:rgba(255,255,255,.20);border:2px solid var(--bc4-stroke)!important;box-shadow:0 16px 34px -28px rgba(0,0,0,.9)}
html[data-nfpk-theme="dark"] .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__title,.nfpk-bc4__title a),html[data-theme="dark"] .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__title,.nfpk-bc4__title a),body.nfpk-dark-mode .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__title,.nfpk-bc4__title a),body.nfpk-dark .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__title,.nfpk-bc4__title a){color:#fff!important}
html[data-nfpk-theme="dark"] .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__excerpt,.nfpk-bc4__author,.nfpk-bc4__author-name,.nfpk-bc4__date,.nfpk-bc4__read),html[data-theme="dark"] .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__excerpt,.nfpk-bc4__author,.nfpk-bc4__author-name,.nfpk-bc4__date,.nfpk-bc4__read),body.nfpk-dark-mode .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__excerpt,.nfpk-bc4__author,.nfpk-bc4__author-name,.nfpk-bc4__date,.nfpk-bc4__read),body.nfpk-dark .nfpk-author-posts .nfpk-bc4--archive :is(.nfpk-bc4__excerpt,.nfpk-bc4__author,.nfpk-bc4__author-name,.nfpk-bc4__date,.nfpk-bc4__read){color:rgba(255,255,255,.72)!important}

.nfpk-author-pagination{margin-top:24px}
.nfpk-author-pagination ul{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:0!important;padding:0!important;list-style:none!important}
.nfpk-author-pagination li{margin:0!important;padding:0!important}
.nfpk-author-pagination :is(a,span){display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 11px;color:var(--naa-text)!important;background:var(--naa-bg);border:1px solid var(--naa-stroke-strong);border-radius:11px;text-decoration:none!important;font-size:11px;font-weight:800;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.nfpk-author-pagination .current,.nfpk-author-pagination a:hover,.nfpk-author-pagination a:focus-visible{color:#fff!important;background:var(--naa-red)!important;border-color:var(--naa-red)!important;outline:0!important}

@media(max-width:1024px){
  .nfpk-author-hero{grid-template-columns:160px minmax(0,1fr)}
  .nfpk-author-hero__actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nfpk-author-posts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  .nfpk-author-hero{grid-template-columns:1fr;gap:18px;padding:16px;text-align:center;border-radius:18px}
  .nfpk-author-hero__photo{width:150px;margin-inline:auto;border-radius:20px}
  .nfpk-author-hero h1{text-align:center!important;font-size:30px!important}
  .nfpk-author-hero__position{margin-inline:auto!important}
  .nfpk-author-hero__actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
  .nfpk-author-hero__btn{min-height:46px;padding-inline:8px;font-size:10.5px!important}
  .nfpk-author-posts{margin-top:14px;padding:14px;border-radius:18px}
  .nfpk-author-posts__head{align-items:flex-start;flex-direction:column;margin-bottom:14px}
  .nfpk-author-posts__head h2{font-size:25px!important}
  .nfpk-author-posts__grid{grid-template-columns:1fr}
}
@media(max-width:380px){.nfpk-author-hero__actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.nfpk-author-hero__btn{transition:none!important;transform:none!important}}
