/*
Theme Name: Paran Network
Description: Mobile-first editorial theme for Paran Resin Network.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: paran-network
*/

@font-face {
  font-family: "IRANSans";
  src: url("assets/fonts/IRANSans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --prn-ink: #17221d;
  --prn-muted: #65716a;
  --prn-paper: #f2f1ec;
  --prn-card: #fffef9;
  --prn-green: #0d4d3a;
  --prn-green-soft: #dce9df;
  --prn-amber: #d7922f;
  --prn-line: rgba(23, 34, 29, .14);
  --prn-radius: 1.35rem;
  --prn-shadow: 0 18px 50px rgba(18, 38, 29, .09);
  --prn-shell: min(100% - 2rem, 76rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--prn-paper);
  color: var(--prn-ink);
  font-family: "IRANSans", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.prn-shell { width: var(--prn-shell); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; z-index: 10000; background: #fff; padding: .75rem; }

.prn-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,241,236,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--prn-line);
}
.prn-header__inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prn-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; }
.prn-brand__mark { width: 2.2rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--prn-green); color: #fff; }
.prn-brand small { display: block; color: var(--prn-muted); font-size: .68rem; font-weight: 400; line-height: 1.2; }
.prn-nav { display: none; gap: 1.5rem; align-items: center; }
.prn-nav a { text-decoration: none; font-size: .9rem; }
.prn-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 999px; padding: .72rem 1.25rem; background: var(--prn-green); color: #fff; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.prn-button--ghost { background: transparent; color: var(--prn-ink); border: 1px solid var(--prn-line); }

.prn-hero { padding: 1rem 0 3.5rem; }
.prn-hero__stage { position: relative; min-height: 35rem; overflow: hidden; border-radius: 0 0 2.2rem 2.2rem; background: #e8ebe6 url('assets/images/resin-hero.webp') center bottom / cover no-repeat; box-shadow: var(--prn-shadow); }
.prn-hero__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248,248,244,.97) 0%, rgba(248,248,244,.78) 45%, rgba(13,77,58,.06) 100%); }
.prn-hero__content { position: relative; z-index: 1; padding: 3.2rem 1.25rem; text-align: center; }
.prn-eyebrow { margin: 0 0 .75rem; color: var(--prn-green); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.prn-hero h1 { max-width: 14ch; margin: 0 auto 1rem; font-size: clamp(2.25rem, 10vw, 5.6rem); line-height: 1.08; letter-spacing: -.045em; }
.prn-hero__lead { max-width: 42rem; margin: 0 auto; color: #4e5c55; }
.prn-search { max-width: 38rem; margin: 1.6rem auto 0; padding: .4rem; display: flex; gap: .4rem; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: 0 12px 35px rgba(21,44,34,.12); }
.prn-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: .7rem 1rem; font: inherit; }
.prn-search .prn-button { width: 48px; padding: 0; border:2px solid #777; background:transparent; }
.prn-search-node { max-width:38rem; margin:1.6rem auto 0; }
.prn-search-node .prn-search { margin:0; }
.prn-search-branches { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:2rem; max-width:26rem; margin:2rem auto 0; }
.prn-search-branches::before { content:""; position:absolute; right:50%; bottom:100%; width:1px; height:2rem; background:var(--prn-line); }
.prn-search-branches::after { content:""; position:absolute; right:25%; left:25%; bottom:calc(100% + 1rem); height:1px; background:var(--prn-line); }
.prn-search-branches a { position:relative; min-height:48px; display:grid; place-items:center; border:1px solid var(--prn-line); border-radius:999px; background:#222; color:#ececec; text-decoration:none; font-size:.875rem; }
.prn-search-branches a::before { content:""; position:absolute; bottom:100%; right:50%; width:1px; height:1rem; background:var(--prn-line); }

.prn-section { padding: 2.6rem 0; }
.prn-section--dark { background: var(--prn-ink); color: #f8f7f1; }
.prn-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.prn-section h2 { margin: 0; font-size: clamp(1.65rem, 7vw, 3rem); line-height: 1.2; letter-spacing: -.025em; }
.prn-section__head a { color: var(--prn-muted); font-size: .85rem; white-space: nowrap; }
.prn-card-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem max(1rem, calc((100vw - 76rem)/2)) 1.2rem; }
.prn-card-track::-webkit-scrollbar { display: none; }
.prn-person-card { position: relative; min-height: 19rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; overflow: hidden; scroll-snap-align: center; background: var(--prn-card); border: 1px solid var(--prn-line); border-radius: var(--prn-radius); box-shadow: var(--prn-shadow); text-decoration: none; }
.prn-person-card:nth-child(3n+2) { background: var(--prn-green-soft); }
.prn-person-card:nth-child(3n) { background: #eadfcf; }
.prn-person-card__index { font-size: .72rem; color: var(--prn-muted); direction: ltr; text-align: left; }
.prn-avatar { width: 6.2rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--prn-green); color: #fff; font-size: 2.1rem; font-weight: 800; box-shadow: inset 0 0 0 6px rgba(255,255,255,.15); }
.prn-avatar-image { width:6.2rem; aspect-ratio:1; object-fit:cover; border-radius:50%; }
.prn-person-card__identity { color:inherit; text-decoration:none; }
.prn-person-card h3 { margin: 1.1rem 0 .2rem; font-size: 1.35rem; }
.prn-person-card p { margin: 0; color: var(--prn-muted); font-size: .85rem; }
.prn-person-card__button { min-height:42px; display:inline-flex; align-items:center; justify-content:center; align-self:stretch; padding:.55rem .8rem; border:1px solid var(--prn-line); border-radius:.7rem; color:inherit; text-decoration:none; font-size:.82rem; }
.prn-person-card--all { align-items:center; justify-content:center; text-align:center; border-style:dashed; font-weight:700; }

.prn-feature-grid { display: grid; gap: .8rem; }
.prn-feature { min-height: 13rem; padding: 1.35rem; border: 1px solid rgba(255,255,255,.16); border-radius: var(--prn-radius); background: rgba(255,255,255,.05); }
.prn-feature b { display: block; margin-bottom: .5rem; color: #eab868; font-size: 2rem; }
.prn-feature h3 { margin: 0 0 .4rem; }
.prn-feature p { margin: 0; color: #bdc6c1; font-size: .9rem; }

.prn-directory { padding: 2.5rem 0 7rem; }
.prn-directory__intro { margin-bottom: 2rem; }
.prn-directory__intro h1 { margin: 0; font-size: clamp(2.3rem, 9vw, 4.8rem); line-height: 1.1; }
.prn-directory-grid { display: grid; gap: .9rem; }
.prn-empty { padding: 3rem 1rem; text-align: center; border: 1px dashed var(--prn-line); border-radius: var(--prn-radius); }

.prn-profile { padding: 1rem 0 7rem; }
.prn-profile__hero { position: relative; min-height: 30rem; overflow: hidden; display: flex; align-items: end; border-radius: 0 0 2rem 2rem; background: var(--prn-green) url('assets/images/resin-hero.webp') center / cover; }
.prn-profile__hero::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(12,28,21,.94), rgba(12,28,21,.1)); }
.prn-profile__content { position:relative; z-index:1; width:100%; padding: 2rem 1.25rem; color:#fff; }
.prn-profile__content .prn-eyebrow { color: #f1c67f; }
.prn-profile__avatar { width: 5.5rem; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--prn-green); font-size:2rem; font-weight:800; }
.prn-profile__avatar-wrap { width: 7rem; aspect-ratio: 1; margin-bottom: .8rem; }
.prn-profile__avatar-wrap .prn-profile__avatar { width: 100%; }
.prn-profile__avatar-image { width: 7rem; height: 7rem; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.prn-profile h1 { margin:.8rem 0 0; font-size:clamp(2.2rem,9vw,4.5rem); line-height:1.1; }
.prn-profile__summary { margin: .7rem 0 0; color: rgba(255,255,255,.82); }
.prn-profile__body { display:grid; align-items:start; gap:1rem; margin-top:1rem; }
.prn-profile__intro-card { height:max-content; align-self:start; }
.prn-profile__intro-card { order:1; }
.prn-profile__works { order:2; }
.prn-profile__details-card { order:3; }
.prn-profile__panel { padding:1.4rem; background:var(--prn-card); border:1px solid var(--prn-line); border-radius:var(--prn-radius); }
.prn-profile__panel h2 { margin-top:0; }
.prn-profile__subheading { margin-top: 1.8rem !important; padding-top: 1.4rem; border-top: 1px solid var(--prn-line); }
.prn-profile__bio { font-size: 1.05rem; line-height: 2; white-space: normal; }
.prn-profile__gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:.7rem; }
.prn-profile__gallery img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:1rem; }
.prn-showcase-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.75rem; }
.prn-showcase-card { overflow:hidden; display:grid; gap:.6rem; color:inherit; text-decoration:none; }
.prn-showcase-card img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:1rem; }
.prn-showcase-card strong { font-size:.88rem; }
.prn-profile__works { margin-top:0; overflow:hidden; }
.prn-profile__contact-card { margin-top:1rem; }
.prn-profile__contact-card h2 { margin-top:0; }
.prn-profile-posts { min-height:65vh; padding:2rem 0 7rem; }
.prn-profile-posts__header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.prn-profile-posts__header h1 { margin:0; font-size:clamp(1.35rem,4vw,2rem); }
.prn-profile-posts__header a { color:var(--prn-muted); text-decoration:none; font-size:.875rem; }
.prn-works-track,.prn-works-set { display:flex; gap:.75rem; }
.prn-works-track { width:max-content; }
.prn-works-set { width:max-content; flex:0 0 auto; }
.prn-work-item { width:min(69.12vw,19.2rem); flex:0 0 auto; display:block; }
.prn-work-item img { width:100%; aspect-ratio:1; display:block; object-fit:cover; border-radius:1rem; }
@keyframes prn-works-loop-right {
  from { transform:translate3d(calc(-50% - .375rem),0,0); }
  to { transform:translate3d(0,0,0); }
}
@keyframes prn-works-loop-left {
  from { transform:translate3d(0,0,0); }
  to { transform:translate3d(calc(-50% - .375rem),0,0); }
}
@media (max-width:47.99rem) {
  .prn-works-marquee { overflow:hidden; }
  .prn-works-marquee + .prn-works-marquee { margin-top:.75rem; }
  .prn-works-marquee--portfolio .prn-works-track { animation:prn-works-loop-left 56s linear infinite; }
  .prn-works-marquee--posts .prn-works-track { animation:prn-works-loop-right 56s linear infinite; }
}
.prn-profile__facts { margin: 0; }
.prn-profile__facts div { padding: .8rem 0; border-bottom: 1px solid var(--prn-line); }
.prn-profile__facts div:last-child { border-bottom: 0; }
.prn-profile__facts dt { color: var(--prn-muted); font-size: .78rem; }
.prn-profile__facts dd { margin: .2rem 0 0; font-weight: 700; }
.prn-contact { margin-top:1.5rem; padding-top:1.4rem; border-top:1px solid var(--prn-line); }
.prn-contact__links { display:flex; flex-wrap:wrap; gap:.6rem; }
.prn-contact__links a { width:4.5rem; min-height:4.5rem; display:grid; place-items:center; align-content:center; gap:.2rem; padding:.4rem; border:1px solid var(--prn-line); border-radius:1rem; color:inherit; text-decoration:none; text-align:center; }
.prn-contact__links a:hover { border-color:#2f6d58; background:rgba(47,109,88,.12); }
.prn-contact__links span { font-weight:800; font-size:.9rem; direction:ltr; }
.prn-contact__links small { color:var(--prn-muted); font-size:.62rem; line-height:1.35; }

/* Public person profiles use the same quiet, dark visual language as the member dashboard. */
body.single-prn_person {
  --prn-ink: #ececec;
  --prn-muted: #a9a9a9;
  --prn-paper: #171717;
  --prn-card: #212121;
  --prn-line: rgba(255,255,255,.12);
  --prn-shadow: none;
  background: var(--prn-paper);
  color: var(--prn-ink);
}
.single-prn_person .prn-header { background: rgba(23,23,23,.92); }
.single-prn_person .prn-brand__mark { background: #2f6d58; }
.single-prn_person .prn-button { background: #2f6d58; }
.single-prn_person .prn-button--ghost { background: transparent; color: var(--prn-ink); }
.single-prn_person .prn-profile__hero { background-color: #212121; }
.single-prn_person .prn-profile__hero::after { background: linear-gradient(0deg, rgba(15,15,15,.97), rgba(15,15,15,.38)); }
.single-prn_person .prn-profile__panel { background: var(--prn-card); border-color: var(--prn-line); box-shadow: none; }
.single-prn_person .prn-profile__panel h2 { color: #f5f5f5; }
.single-prn_person .prn-profile__bio,
.single-prn_person .prn-profile__panel p { color: #d8d8d8; }
.single-prn_person .prn-footer { background: #171717; }

.prn-footer { padding: 3rem 0 7rem; border-top: 1px solid var(--prn-line); color: var(--prn-muted); font-size: .85rem; }
.prn-mobile-nav { position: fixed; z-index: 60; right: .75rem; bottom: .75rem; left: .75rem; min-height: 4rem; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; background: rgba(23,34,29,.94); color: #fff; border-radius: 1.2rem; box-shadow: 0 12px 35px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.prn-mobile-nav a { min-height: 48px; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:.76rem; }

@media (min-width: 48rem) {
  .prn-nav { display: flex; }
  .prn-hero { padding-top: 1.5rem; }
  .prn-hero__stage { min-height: 42rem; }
  .prn-hero__content { padding: 5rem 2rem; }
  .prn-card-track { grid-auto-columns: minmax(18rem, 22rem); }
  .prn-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .prn-directory-grid { grid-template-columns: repeat(2, 1fr); }
  .prn-profile__content { padding: 3rem; }
  .prn-profile__body { grid-template-columns:1.4fr .6fr; grid-template-rows:auto auto; }
  .prn-profile__intro-card { grid-column:1; grid-row:1; }
  .prn-profile__works { grid-column:1; grid-row:2; }
  .prn-profile__details-card { grid-column:2; grid-row:1 / span 2; }
  .prn-works-track { width:100%; }
  .prn-works-set { width:100%; display:grid; grid-template-columns:repeat(3,1fr); }
  .prn-works-set[aria-hidden="true"] { display:none; }
  .prn-work-item { width:auto; }
  .prn-showcase-grid { grid-template-columns:repeat(3,1fr); }
  .prn-mobile-nav { display: none; }
  .prn-footer { padding-bottom: 3rem; }
}
@media (min-width: 70rem) { .prn-directory-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Unified dark interface */
:root {
  --prn-ink:#ececec; --prn-muted:#a4a4a4; --prn-paper:#171717; --prn-card:#222;
  --prn-green:#2f6d58; --prn-green-soft:#293a34; --prn-amber:#b9b9b9;
  --prn-line:rgba(255,255,255,.12); --prn-shadow:none;
}
body { background:#171717; color:#ececec; font-size:16px; }
button,input,textarea,select { font-family:"IRANSans",Tahoma,Arial,sans-serif; font-size:16px; }
.prn-header { background:rgba(23,23,23,.94); }
.prn-brand,.prn-nav a { color:#ececec; }
.prn-hero__stage { background-color:#222; box-shadow:none; }
.prn-hero__stage::after { background:linear-gradient(180deg,rgba(18,18,18,.95),rgba(18,18,18,.65)); }
.prn-hero__lead,.prn-section__head a { color:#aaa; }
.prn-search { background:#222; border-color:var(--prn-line); box-shadow:none; }
.prn-search input { color:#ececec; }
.prn-person-card,.prn-person-card:nth-child(3n+2),.prn-person-card:nth-child(3n) { background:#222; }
.prn-profile__panel,.prn-feature { background:#222; }
.prn-directory__intro h1,.prn-section h2 { font-size:clamp(1.5rem,5vw,2.35rem); }
.prn-profile h1 { font-size:clamp(1.8rem,7vw,3.2rem); }
.prn-profile__bio { font-size:.9rem; }
.prn-mobile-nav { display:none!important; }
.prn-footer { background:#171717; }
.prn-coming-soon { min-height:55vh; display:grid; place-content:center; text-align:center; }
.prn-coming-soon h1 { margin:0; font-size:1rem; font-weight:600; }
.prn-coming-soon p { margin:.35rem 0 0; color:var(--prn-muted); font-size:.78rem; }
.home .prn-hero h1 { max-width:22ch; font-size:clamp(1.2rem,2.4vw,1.5rem); line-height:1.45; }
.home .prn-hero__lead { font-size:.8rem; }
.prn-account-menu { position:relative; }
.prn-account-menu summary { min-height:44px; display:flex; align-items:center; list-style:none; cursor:pointer; padding:.55rem .8rem; border:1px solid var(--prn-line); border-radius:.65rem; font-size:.875rem; }
.prn-home-menu summary { min-width:44px; justify-content:center; padding:.5rem; }
.prn-resin-menu summary { font-size:.875rem; }
.prn-account-menu summary::-webkit-details-marker { display:none; }
.prn-account-menu__panel { position:absolute; z-index:80; left:0; top:calc(100% + .45rem); width:13.5rem; padding:.45rem; background:#292929; border:1px solid var(--prn-line); border-radius:.75rem; box-shadow:0 16px 38px rgba(0,0,0,.45); }
.prn-account-menu__panel a,.prn-account-menu__panel button,.prn-menu-item { min-height:44px; display:flex; width:100%; align-items:center; padding:.7rem; border:0; background:transparent; color:#ececec; text-align:right; text-decoration:none; font:inherit; font-size:.875rem; cursor:pointer; }
.prn-account-menu__panel a:hover,.prn-account-menu__panel button:hover { background:#383838; color:#fff; }
.prn-account-menu__panel a:focus-visible,.prn-account-menu__panel button:focus-visible { outline:1px solid #777; background:#383838; }
.prn-home-menu .prn-account-menu__panel { right:0; left:auto; }
.prn-menu-item--soon { justify-content:space-between; color:var(--prn-muted); cursor:default; }
.prn-menu-item--soon small { padding:.15rem .45rem; border:1px solid var(--prn-line); border-radius:999px; font-size:.7rem; }
.prn-eyebrow,.prn-section__head a,.prn-person-card p,.prn-feature p,.prn-profile__facts dt,.prn-footer { font-size:.875rem; }
.prn-person-card h3 { font-size:1.125rem; }
.prn-contact__links small { font-size:.75rem; }
@media(max-width:47.99rem){.prn-header__inner{min-height:4rem}.prn-account-menu summary{padding:.5rem .65rem}}
