:root {
    --paper: #f4f1e9;
    --paper-deep: #e9e4d8;
    --ink: #171816;
    --muted: #6d6c65;
    --line: #d7d1c4;
    --red: #e23b2e;
    --red-dark: #a51f1b;
    --blue: #153f48;
    --mint: #cfe8df;
    --yellow: #f5c94c;
    --purple: #735b9d;
    --white: #fffefa;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(23, 24, 22, .09);
}

.article-image-gallery { margin: 2.4rem 0; }
.article-image-gallery > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.article-image-gallery figure { margin: 0; overflow: hidden; border-radius: 18px; background: #f0ece4; }
.article-image-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-image-gallery figcaption { padding: .7rem .9rem; color: #666057; font-size: .78rem; line-height: 1.7; }
@media (max-width: 680px) { .article-image-gallery > div { grid-template-columns: 1fr; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.site-main { min-height: 55vh; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 100; transform: translateY(-150%); background: var(--ink); color: white; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.newsbar { background: var(--ink); color: white; font-size: .82rem; }
.newsbar-inner { min-height: 38px; display: flex; align-items: center; gap: .65rem; }
.newsbar-inner time { margin-inline-start: auto; opacity: .72; }
.newsbar-copy { opacity: .72; }
.live-dot, .nav-pulse { width: 8px; height: 8px; border-radius: 999px; display: inline-block; background: var(--red); box-shadow: 0 0 0 5px rgba(226,59,46,.16); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(226,59,46,0); } }

.site-header { background: rgba(244,241,233,.96); position: relative; z-index: 10; }
.masthead { min-height: 122px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; }
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: end; line-height: .8; }
.brand-mark { grid-row: 1 / 3; background: var(--red); color: white; font-size: 2.25rem; font-weight: 900; padding: .45rem .5rem .3rem; border-radius: 5px 18px 5px 5px; transform: rotate(-3deg); }
.brand-word { font-size: 3.1rem; font-weight: 900; letter-spacing: -.08em; margin-inline-start: .45rem; }
.brand small { grid-column: 2; margin: .55rem .5rem 0 0; color: var(--muted); letter-spacing: .05em; font-size: .69rem; }
.masthead-note { border-right: 1px solid var(--line); padding-right: 2rem; display: flex; flex-direction: column; }
.masthead-note strong { font-size: 1rem; }
.masthead-note span { color: var(--muted); font-size: .83rem; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.header-actions form { margin: 0; }
.profile-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: .55rem 1.15rem; border-radius: 999px; background: var(--ink); color: white; font-weight: 700; border: 1px solid var(--ink); transition: transform .2s, background .2s; }
.profile-button:hover, .primary-button:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.quiet-button { min-height: 42px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.quiet-button:hover { border-color: var(--ink); }
.reflection-hero{margin:2rem 0 1.2rem;padding:clamp(1.5rem,4vw,3.5rem);border-radius:28px;color:white;background:linear-gradient(120deg,#173f48,#735b9d)}.reflection-hero span,.reflection-result span{font-weight:800;color:#f5c94c}.reflection-hero h1{font-size:clamp(2rem,5vw,4rem);line-height:1.2;margin:.5rem 0}.reflection-hero p{max-width:720px}.reflection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.reflection-card,.reflection-result,.reflection-history{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:1.4rem;box-shadow:var(--shadow)}.reflection-card h2{margin:.3rem 0}.reflection-icon{font-size:2rem;color:var(--red)}.reflection-card fieldset{border:0;padding:0;margin:1rem 0}.reflection-card legend{font-weight:800;margin-bottom:.7rem}.color-picks{display:flex;flex-wrap:wrap;gap:.6rem}.color-picks label{display:flex;align-items:center;gap:.35rem;border:1px solid var(--line);padding:.45rem .6rem;border-radius:999px;cursor:pointer}.color-picks input{accent-color:var(--red)}.color-picks span{width:18px;height:18px;border-radius:50%;background:var(--blue)}.color-yellow span{background:#f5c94c}.color-red span{background:#e23b2e}.color-green span{background:#5e9b71}.color-purple span{background:#735b9d}.mini-question{display:grid;grid-template-columns:1fr auto auto;gap:.6rem;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--line)}.mini-question label{font-size:.86rem}.reflection-history{margin:1.2rem 0}.reflection-history article{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 0;border-top:1px solid var(--line)}.reflection-history strong{display:block}.reflection-history p{margin:.15rem 0;color:var(--muted);font-size:.85rem}.reflection-profile-card p{padding:.6rem 0;border-top:1px solid var(--line)}

.reflection-card-heading{display:flex;align-items:center;gap:.7rem}.reflection-card-heading .reflection-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#e23b2e,#735b9d)}.reflection-card .eyebrow{display:block;color:var(--red);font-size:.72rem;font-weight:850}.color-reflection-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#fffefa,#f4f1e9)}.color-reflection-card:after{content:"";position:absolute;width:210px;height:210px;left:-75px;top:-75px;border-radius:50%;background:radial-gradient(circle,rgba(115,91,157,.14),transparent 67%);pointer-events:none}.color-reflection-card>*{position:relative;z-index:1}.color-instruction{margin:-.2rem 0 1rem;color:var(--muted);font-size:.86rem}.color-stage{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.color-card{min-height:145px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:1rem;border:0;border-radius:18px;overflow:hidden;color:#fff;text-align:right;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 8px 20px rgba(23,24,22,.12);transition:transform .2s,box-shadow .2s,outline .2s}.color-card:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,rgba(255,255,255,.28),transparent 47%,rgba(0,0,0,.2))}.color-card>*{position:relative;z-index:1}.color-card:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45),0 14px 24px rgba(23,24,22,.18)}.color-card:focus-visible{outline:3px solid var(--ink);outline-offset:3px}.color-card.is-selected{outline:3px solid var(--ink);outline-offset:2px;transform:translateY(-5px)}.color-card span{font-weight:900;font-size:1.1rem}.color-card small{margin-top:.1rem;font-size:.69rem;opacity:.94;line-height:1.45}.color-card.color-blue{background:linear-gradient(145deg,#66b3df,#103b65)}.color-card.color-yellow{color:#30270b;background:linear-gradient(145deg,#fff2a7,#e3a916)}.color-card.color-red{background:linear-gradient(145deg,#fa7769,#a71929)}.color-card.color-green{background:linear-gradient(145deg,#8ece91,#216d51)}.color-card.color-purple{background:linear-gradient(145deg,#bf92e6,#55318b)}.color-order-number{position:absolute;top:.65rem;right:.65rem;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:rgba(255,255,255,.94);color:var(--ink);font-size:.82rem}.color-order-number:empty{display:none}.color-selection-status{min-height:2rem;margin:1rem 0 .3rem;color:#38515a;font-size:.84rem;font-weight:700}.context-fieldset{padding-top:1.1rem!important;border-top:1px solid var(--line)!important}.context-picks{display:flex;flex-wrap:wrap;gap:.55rem}.context-picks label{cursor:pointer}.context-picks input{position:absolute;opacity:0;pointer-events:none}.context-picks span{display:block;padding:.48rem .75rem;border:1px solid var(--line);border-radius:999px;background:#fff;transition:background .18s,border-color .18s,color .18s}.context-picks input:checked+span{border-color:var(--ink);background:var(--ink);color:#fff}.context-picks input:focus-visible+span{outline:3px solid rgba(115,91,157,.4);outline-offset:2px}.color-reflection-card .primary-button:disabled{cursor:not-allowed;opacity:.45;transform:none;background:var(--ink);border-color:var(--ink)}@media (max-width:760px){.reflection-grid{grid-template-columns:1fr}.color-stage{grid-template-columns:repeat(2,minmax(0,1fr))}.color-card:last-child{grid-column:1 / -1;min-height:115px}.mini-question{grid-template-columns:1fr}.reflection-history article{align-items:flex-start;flex-direction:column}}@media (max-width:420px){.color-stage{gap:.45rem}.color-card{min-height:125px;padding:.8rem}.context-picks{gap:.4rem}.context-picks span{padding:.42rem .58rem;font-size:.82rem}}

.main-nav { border-block: 1px solid var(--ink); }
.nav-inner { height: 56px; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { white-space: nowrap; display: flex; align-items: center; gap: .5rem; padding: 0 1.1rem; font-weight: 700; font-size: .92rem; border-left: 1px solid var(--line); position: relative; }
.nav-inner a:first-child { border-right: 1px solid var(--line); }
.nav-inner a:hover, .nav-inner a.active { background: var(--ink); color: white; }
.nav-inner a.active:after { content: ""; height: 4px; position: absolute; inset: auto 12px 0; background: var(--red); }

.breaking-strip { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; margin-top: 22px; min-height: 52px; border: 1px solid var(--line); background: var(--white); padding: .5rem .65rem .5rem 1rem; border-radius: 12px; }
.breaking-label { background: var(--red); color: white; padding: .4rem .75rem; border-radius: 8px; font-weight: 800; }
.breaking-time { color: var(--muted); font-size: .8rem; }
.breaking-arrow { font-size: 1.3rem; }
.breaking-strip:hover strong { color: var(--red); }

/* Newsroom front page: editorial hierarchy inspired by proven Persian news desks. */
.newsroom-hero { width: 100vw; margin-inline: calc(50% - 50vw); position: relative; overflow: hidden; color: white; background: linear-gradient(118deg,#080b16 0%,#121a33 58%,#172b40 100%); }
.newsroom-hero:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 14% 0%,rgba(245,201,76,.19),transparent 30%),radial-gradient(circle at 88% 110%,rgba(226,59,46,.28),transparent 38%),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: auto,auto,48px 48px,48px 48px; }
.newsroom-hero-inner { width: min(1240px,calc(100% - 40px)); min-height: 272px; margin-inline: auto; padding-block: 48px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.newsroom-eyebrow { display: block; margin-bottom: .8rem; color: var(--yellow); font-size: .69rem; font-weight: 900; letter-spacing: .15em; }
.newsroom-hero h1 { margin: 0; max-width: 850px; font-size: clamp(2.35rem,5.4vw,5rem); line-height: 1.18; letter-spacing: -.055em; }
.newsroom-hero h1 em { color: #c9e6df; font-style: normal; }
.newsroom-hero p { max-width: 760px; margin: 1rem 0 0; color: #cbd5df; font-size: .98rem; line-height: 1.95; }
.home-community-invite { max-width: 720px; margin-top: 1.25rem; padding: .8rem 1rem .8rem 1.15rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; border: 1px solid rgba(245,201,76,.38); border-radius: 15px; background: rgba(8,12,25,.42); }.home-community-invite > span { color: var(--yellow); font-size: .68rem; font-weight: 900; }.home-community-invite > strong { color: #f5f7f5; font-size: .78rem; line-height: 1.7; }.home-community-invite a { grid-row: 1 / 3; grid-column: 2; padding: .55rem .75rem; color: var(--ink); border-radius: 999px; background: var(--yellow); white-space: nowrap; font-size: .68rem; font-weight: 900; }.home-community-invite a i { margin-right: .2rem; font-style: normal; }.home-community-invite a:hover { transform: translateX(-2px); }
.newsroom-status { flex: 0 0 auto; min-width: 176px; padding: 1.1rem 1.2rem; border: 1px solid rgba(255,255,255,.15); border-radius: 17px; background: rgba(255,255,255,.075); backdrop-filter: blur(15px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .15rem .7rem; }
.status-light { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: #36d27c; box-shadow: 0 0 0 6px rgba(54,210,124,.13); }
.newsroom-status strong { font-size: .83rem; }.newsroom-status small { color: #9caabd; font-size: .68rem; }.newsroom-status b { grid-column: 1 / -1; margin-top: .65rem; padding-top: .65rem; border-top: 1px solid rgba(255,255,255,.12); color: var(--yellow); font-size: .65rem; }
.newswire { width: 100vw; min-height: 52px; margin-inline: calc(50% - 50vw); padding-inline: max(20px,calc((100vw - 1240px)/2)); display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 1.3rem; color: white; background: #c52432; border-bottom: 1px solid #961a25; }
.newswire > strong { display: flex; align-items: center; gap: .6rem; white-space: nowrap; font-size: .78rem; }.newswire > strong i { width: 8px; height: 8px; border-radius: 50%; background: white; box-shadow: 0 0 0 5px rgba(255,255,255,.16); animation: pulse 1.8s infinite; }
.newswire > a { min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .65rem 1.2rem; border-right: 1px solid rgba(255,255,255,.2); }.newswire > a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 850; }.newswire time,.newswire small { color: #ffd7da; white-space: nowrap; font-size: .68rem; }
.newsroom-lead-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; padding-top: 28px; align-items: stretch; }
.newsroom-feature { min-width: 0; min-height: 440px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); overflow: hidden; border: 1px solid rgba(23,24,22,.09); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.newsroom-feature-media { min-height: 440px; position: relative; overflow: hidden; color: white; background: linear-gradient(145deg,#153f48,#1d6680); isolation: isolate; }.newsroom-feature-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(3,9,18,.55),transparent 44%); pointer-events: none; }.newsroom-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }.newsroom-feature-media:hover img { transform: scale(1.025); }
.newsroom-pattern { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 18% 15%,rgba(245,201,76,.45),transparent 23%),repeating-linear-gradient(125deg,transparent 0 30px,rgba(255,255,255,.055) 31px 32px); }.newsroom-pattern:after { content: ""; width: 280px; height: 280px; position: absolute; left: -70px; bottom: -100px; border: 52px solid rgba(255,255,255,.1); border-radius: 50%; }.newsroom-pattern b { color: rgba(255,255,255,.93); font-size: clamp(9rem,18vw,15rem); line-height: 1; letter-spacing: -.16em; transform: rotate(-8deg); }.newsroom-pattern small { position: absolute; bottom: 25%; color: var(--yellow); font-weight: 900; letter-spacing: .35em; }
.feature-badge { position: absolute; z-index: 2; inset: 18px 18px auto auto; display: flex; align-items: center; gap: .5rem; padding: .4rem .7rem; border-radius: 99px; color: #111827; background: rgba(255,255,255,.92); font-size: .69rem; font-weight: 850; backdrop-filter: blur(10px); }.feature-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.newsroom-feature-copy { padding: clamp(1.6rem,3.5vw,3.4rem); display: flex; flex-direction: column; justify-content: center; }.feature-labels { display: flex; gap: .55rem; color: var(--red); font-size: .7rem; font-weight: 900; }.feature-labels span + span:before { content: "•"; margin-left: .55rem; color: var(--line); }
.newsroom-feature-copy h2 { margin: .65rem 0 .85rem; font-size: clamp(2rem,3.4vw,3.35rem); line-height: 1.37; letter-spacing: -.045em; }.newsroom-feature-copy h2 a:hover { color: var(--red); }.newsroom-feature-copy > p { margin: 0; color: #56606c; font-size: .93rem; }
.newsroom-feature-copy footer { margin-top: 1.7rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .73rem; }.newsroom-feature-copy footer > a:last-child { color: var(--blue); font-weight: 900; }.source-disclosure { margin-top: 1rem; padding: .55rem .7rem; border-radius: 9px; color: #6f5b19; background: #fff8d9; font-size: .66rem; line-height: 1.7; }
.quick-news { overflow: hidden; border: 1px solid rgba(23,24,22,.09); border-radius: 22px; background: var(--white); box-shadow: 0 12px 36px rgba(23,24,22,.055); }.quick-news header { min-height: 62px; padding: .8rem 1rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }.quick-news header div { display: flex; align-items: center; gap: .65rem; }.quick-news header small { color: var(--muted); font-size: .65rem; }
.quick-news > a { display: grid; grid-template-columns: auto 1fr; gap: .18rem .65rem; min-height: 75px; padding: .75rem 1rem; border-bottom: 1px solid #ece9e0; transition: background .2s; }.quick-news > a:last-child { border: 0; }.quick-news > a:hover { background: #f8f5ed; }.quick-news time { grid-row: 1 / 3; padding-top: .2rem; color: #9a9a94; font-size: .64rem; }.quick-news > a span { font-size: .77rem; line-height: 1.6; font-weight: 850; }.quick-news > a small { color: var(--red); font-size: .62rem; font-weight: 800; }
.source-desk { margin-top: 42px; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 22px; background: var(--white); box-shadow: 0 12px 38px rgba(23,24,22,.05); }.desk-heading { min-height: 102px; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: linear-gradient(to left,#fff4f1,#fffefa 58%); border-bottom: 1px solid var(--line); }.desk-heading > div:first-child > span { color: var(--red); font-size: .68rem; font-weight: 900; }.desk-heading h2 { margin: .15rem 0 0; font-size: clamp(1.55rem,2.6vw,2.25rem); }.desk-note { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .7rem; }.desk-note i { width: 8px; height: 8px; border-radius: 50%; background: #34b879; }.desk-note a { margin-right: .6rem; color: var(--red); font-weight: 900; }
.source-desk-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }.source-story { min-height: 158px; padding: 1.2rem; display: flex; flex-direction: column; gap: .65rem; border-left: 1px solid #ece9e0; border-bottom: 1px solid #ece9e0; transition: background .2s; }.source-story:hover { background: #faf8f3; }.source-story > div { display: flex; justify-content: space-between; gap: .7rem; color: var(--muted); font-size: .64rem; }.source-story > div span { color: var(--red); font-weight: 850; }.source-story strong { font-size: .84rem; line-height: 1.75; }.source-story > small { margin-top: auto; color: var(--blue); font-size: .65rem; font-weight: 850; }.source-desk > footer { padding: .65rem 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: #aeb2aa; background: var(--ink); font-size: .64rem; }

.live-pulse { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 35px rgba(23,24,22,.06); }
.live-pulse-head { display: grid; grid-template-columns: 1fr minmax(260px,430px); gap: 2rem; align-items: end; padding: 1.5rem 1.7rem; background: linear-gradient(120deg,#fffefa,#f1eee5); border-bottom: 1px solid var(--line); }
.live-pulse-head > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .45rem .7rem; }
.live-pulse-head h2 { grid-column: 1 / -1; margin: .2rem 0 0; font-size: clamp(1.55rem,2.7vw,2.35rem); line-height: 1.35; }
.live-pulse-head p { margin: 0; color: var(--muted); font-size: .84rem; }
.live-pulse-list { list-style: none; margin: 0; padding: 0 1.7rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 2rem; }
.live-pulse-list li { min-height: 105px; display: grid; grid-template-columns: 38px 1fr auto; gap: .8rem; align-items: center; border-bottom: 1px solid var(--line); }
.pulse-number { color: var(--red); font-weight: 900; font-size: 1.1rem; }
.live-pulse-list li > div { display: grid; gap: .25rem; min-width: 0; }
.live-pulse-list a { font-weight: 800; line-height: 1.6; }
.live-pulse-list a:hover { color: var(--red); }
.live-pulse-list div span { display: flex; flex-wrap: wrap; gap: .35rem .7rem; color: var(--muted); font-size: .72rem; }
.live-pulse-list li > b { color: var(--blue); font-size: .68rem; white-space: nowrap; }
.live-pulse footer { min-height: 48px; padding: .6rem 1.7rem; background: var(--ink); color: #c9cbc5; display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; align-items: center; font-size: .7rem; }
.live-pulse footer a { margin-inline-start: auto; color: var(--yellow); font-weight: 800; }

.filter-heading { display: flex; justify-content: space-between; align-items: end; margin: 2.5rem 0 1rem; }
.filter-heading span, .section-kicker { color: var(--red); font-weight: 800; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; }
.filter-heading h1 { margin: 0; font-size: 2.8rem; }
.filter-heading a { color: var(--muted); font-size: .85rem; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr); gap: 26px; padding: 28px 0 18px; }
.lead-story { background: var(--white); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: .85fr 1.2fr; min-height: 470px; box-shadow: var(--shadow); }
.lead-art, .card-visual { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); }
.lead-art:before, .card-visual:before, .gallery-tile:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 24%), repeating-linear-gradient(125deg, transparent 0 24px, rgba(255,255,255,.06) 25px 26px); z-index: -1; }
.lead-art:after { content: ""; position: absolute; width: 220px; height: 220px; border: 44px solid rgba(255,255,255,.16); border-radius: 50%; inset: auto -70px -60px auto; }
.type-news .lead-art, .type-news .card-visual, .gallery-tile.type-news { background: linear-gradient(145deg,#8e1c19,var(--red)); }
.type-article .lead-art, .type-article .card-visual { background: linear-gradient(145deg,#153f48,#2f7372); }
.type-image_post .lead-art, .type-image_post .card-visual, .gallery-tile.type-image_post { background: linear-gradient(145deg,#d65a36,#e9a23b 48%,#3f7d72); }
.type-poem .lead-art, .type-poem .card-visual { background: linear-gradient(145deg,#56406e,#ad7184); }
.type-short_story .lead-art, .type-short_story .card-visual, .type-long_story .card-visual, .type-serial_story .card-visual { background: linear-gradient(145deg,#1d3152,#6b4f9e); }
.type-comic .lead-art, .type-comic .card-visual, .gallery-tile.type-comic { background: linear-gradient(145deg,#f0b82e,#e75831); }
.type-mixed_media .card-visual, .gallery-tile.type-mixed_media { background: linear-gradient(145deg,#246b66,#76a786); }
.lead-number { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%) rotate(-8deg); color: rgba(255,255,255,.92); font-size: clamp(8rem,18vw,15rem); font-weight: 900; letter-spacing: -.15em; line-height: 1; }
.lead-tag { position: absolute; right: 20px; top: 20px; background: white; padding: .35rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.lead-copy { padding: clamp(2rem,4vw,4rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; gap: .55rem; color: var(--red); font-size: .74rem; font-weight: 800; }
.eyebrow span + span:before { content: "•"; margin-left: .55rem; color: var(--line); }
.lead-copy h1 { font-size: clamp(2.2rem,4.2vw,4.1rem); line-height: 1.28; margin: .6rem 0 1rem; letter-spacing: -.045em; }
.lead-copy h1 a:hover { color: var(--red); }
.lead-copy > p { color: #454640; font-size: 1.05rem; margin: 0; }
.lead-meta { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.creator-mini { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.creator-mini small { color: var(--blue); border: 1px solid #9bc5c5; border-radius: 999px; padding: .05rem .4rem; }
.mini-avatar { width: 31px; height: 31px; display: inline-grid; place-items: center; overflow: hidden; background: var(--yellow); color: var(--ink); border-radius: 50%; font-weight: 900; }
.mini-avatar.is-ai { background: var(--blue); color: white; }

.now-panel { background: var(--ink); color: white; border-radius: var(--radius); padding: 1.5rem; }
.panel-title { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.panel-title h2 { margin: 0; font-size: 1.25rem; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.rank-list li:last-child { border: 0; }
.rank { color: var(--red); font-weight: 900; font-size: 1.3rem; }
.rank-list div { display: grid; gap: .18rem; }
.rank-list small { color: #aeb2aa; }
.rank-list a { font-weight: 700; line-height: 1.55; }
.rank-list a:hover { color: var(--yellow); }
.rank-list div span { font-size: .7rem; color: #8f948c; }

.section-block { padding: 4.5rem 0 1rem; }
.section-head { display: grid; grid-template-columns: 1fr minmax(220px,400px); gap: 2rem; align-items: end; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.section-head.compact { display: flex; justify-content: space-between; align-items: end; }
.section-head h2 { margin: .15rem 0 0; font-size: clamp(1.8rem,3vw,2.65rem); line-height: 1.35; letter-spacing: -.035em; }
.section-head > p, .section-head > span { color: var(--muted); margin: 0; }
.section-kicker.light, .text-link.light { color: var(--yellow); }
.text-link { font-weight: 700; color: var(--red); white-space: nowrap; }

.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.compact-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.compact-grid .story-card:first-child { grid-column: auto; display: flex; }
.poetry-desk { margin-top: 4.5rem; display: grid; grid-template-columns: .75fr 2.25fr; gap: 2rem; padding: clamp(1.5rem,4vw,3rem); border-radius: 28px; background: #191916; color: white; }
.poetry-desk header span { color: var(--yellow); font-size: .78rem; font-weight: 850; }
.poetry-desk header h2 { margin: .35rem 0; font-size: clamp(1.8rem,3vw,3rem); line-height: 1.4; }
.poetry-list { display: grid; gap: .7rem; }
.poetry-list > a { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.04); }
.poetry-list > a:hover { border-color: var(--yellow); background: rgba(255,255,255,.08); }
.poetry-list > a > span { color: var(--yellow); font: 3rem/1 Georgia,serif; }
.poetry-list small,.poetry-list p,.poetry-list > a > b { color: #adb1a9; }
.poetry-list strong { display: block; font-size: 1.15rem; }
.poetry-list p { margin: .1rem 0 0; font-size: .78rem; }
.poetry-list > a > b { font-size: .72rem; white-space: nowrap; }
.magazine-desks { margin-top: 3.2rem; padding: clamp(1.4rem,3.5vw,2.6rem); border-radius: 26px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 55px rgba(25,25,22,.06); }
.magazine-desks header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--ink); }
.magazine-desks header span { color: var(--red); font-size: .75rem; font-weight: 850; }
.magazine-desks header h2 { margin: 0; font-size: clamp(1.6rem,3vw,2.55rem); }
.magazine-desks > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.magazine-desks > div > a { min-height: 116px; padding: 1.15rem .9rem; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; border-bottom: 1px solid var(--line); }
.magazine-desks > div > a:not(:nth-child(3n)) { border-left: 1px solid var(--line); }
.magazine-desks > div > a:hover { color: var(--red); background: #faf7ef; }
.magazine-desks a > b { color: var(--red); font-size: .72rem; }
.magazine-desks a > span { min-width: 0; }
.magazine-desks a strong,.magazine-desks a small { display: block; }
.magazine-desks a strong { font-size: 1.08rem; }
.magazine-desks a small { margin-top: .2rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.magazine-desks a i { font-style: normal; font-size: 1.2rem; }
.home-signal-grid { margin-top: 4.5rem; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); gap: 1.5rem; align-items: start; }
.latest-news-desk { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.latest-news-desk > header { padding: 1.5rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); }
.latest-news-desk h2 { margin: .15rem 0 0; font-size: clamp(1.55rem,2.6vw,2.25rem); }
.latest-news-desk > header > a { color: var(--red); font-size: .78rem; font-weight: 850; white-space: nowrap; }
.latest-news-row { min-height: 92px; padding: 1rem 1.35rem; display: grid; grid-template-columns: 54px 1fr auto; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); }
.latest-news-row:last-child { border-bottom: 0; }
.latest-news-row:hover { background: #faf7ef; }
.latest-news-row time { direction: ltr; color: var(--red); font-size: .76rem; font-weight: 900; }
.latest-news-row span { min-width: 0; }
.latest-news-row small,.latest-news-row strong { display: block; }
.latest-news-row small { color: var(--blue); font-size: .67rem; font-weight: 850; }
.latest-news-row strong { margin-top: .22rem; font-size: .98rem; line-height: 1.65; }
.latest-news-row i { font-style: normal; color: var(--muted); }
.desk-empty { padding: 2rem; color: var(--muted); }
.popular-desk { border-radius: 24px; overflow: hidden; color: white; background: var(--ink); box-shadow: 0 22px 52px rgba(16,18,25,.18); }
.popular-desk > header { padding: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.14); background: linear-gradient(145deg,#23241f,#111c2e); }
.popular-desk > header > span { color: var(--yellow); font-size: .72rem; font-weight: 900; }
.popular-desk h2 { margin: .25rem 0; font-size: 1.75rem; }
.popular-desk p { margin: 0; color: #aeb2aa; font-size: .77rem; }
.popular-desk ol { list-style: none; margin: 0; padding: 0 1.35rem; }
.popular-desk li { border-bottom: 1px solid rgba(255,255,255,.12); }
.popular-desk li:last-child { border-bottom: 0; }
.popular-desk li a { padding: 1.08rem 0; display: grid; grid-template-columns: 38px 1fr; gap: .75rem; }
.popular-desk li a > b { color: var(--yellow); font: 800 1.25rem/1.3 Georgia,serif; }
.popular-desk li span,.popular-desk li small,.popular-desk li strong,.popular-desk li em { display: block; }
.popular-desk li small { color: #899088; font-size: .63rem; }
.popular-desk li strong { margin: .22rem 0; font-size: .86rem; line-height: 1.65; }
.popular-desk li em { color: #aeb2aa; font-size: .62rem; font-style: normal; }
.popular-desk li a:hover strong { color: var(--yellow); }
.category-newsrooms { padding-top: 4.5rem; }
.category-newsroom-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.category-newsroom-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.category-newsroom-card > header { padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.category-newsroom-card > header div { display: flex; align-items: center; gap: .55rem; }
.category-newsroom-card > header i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(226,70,60,.1); }
.category-newsroom-card h3 { margin: 0; font-size: 1.15rem; }
.category-newsroom-card > header a { color: var(--red); font-size: .68rem; font-weight: 850; }
.category-newsroom-card > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.category-newsroom-card > div > a { min-height: 142px; padding: 1rem; display: flex; flex-direction: column; gap: .45rem; border-left: 1px solid var(--line); }
.category-newsroom-card > div > a:last-child { border-left: 0; }
.category-newsroom-card > div > a:hover { background: #faf7ef; }
.category-newsroom-card time { color: var(--muted); font-size: .61rem; }
.category-newsroom-card strong { font-size: .79rem; line-height: 1.75; }
.category-newsroom-card small { margin-top: auto; color: var(--blue); font-size: .64rem; font-weight: 850; }
.story-card { background: var(--white); border: 1px solid rgba(23,24,22,.08); border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .25s, box-shadow .25s; }
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.story-card:first-child { grid-column: span 2; display: grid; grid-template-columns: .85fr 1.15fr; }
.card-visual { min-height: 185px; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; color: white; }
.card-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .35s; }
.story-card:hover .card-visual > img { transform: scale(1.035); }
.card-visual:has(> img):after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top,rgba(5,10,18,.72),transparent 64%); }
.ai-image-chip { position: absolute; right: .75rem; top: .75rem; padding: .2rem .5rem; border-radius: 99px; background: rgba(10,18,30,.66); color: white; font-size: .62rem; font-weight: 850; backdrop-filter: blur(8px); }
.visual-icon { font-size: 4.3rem; align-self: center; margin: auto; opacity: .86; font-family: Georgia, serif; }
.visual-type { font-size: .75rem; font-weight: 700; }
.view-chip { position: absolute; left: .8rem; top: .8rem; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; }
.card-content { padding: 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { margin: .55rem 0; font-size: 1.35rem; line-height: 1.48; letter-spacing: -.025em; }
.card-content h3 a:hover { color: var(--red); }
.card-content > p { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; }
.card-footer { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .7rem; align-items: center; font-size: .75rem; }
.card-stats { display: flex; gap: .55rem; color: var(--muted); white-space: nowrap; }

.strange-story { margin-top: 4.5rem; min-height: 380px; display: grid; grid-template-columns: .5fr 1.25fr .9fr; align-items: center; gap: 3rem; padding: 3rem; border-radius: 30px; color: white; background: var(--blue); position: relative; overflow: hidden; }
.story-showcase-head { margin-top: 4.5rem; padding-bottom: 1rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.story-showcase-head h2 { margin: .15rem 0 0; font-size: clamp(1.8rem,3vw,2.65rem); line-height: 1.3; }
.story-showcase-head + .strange-story { margin-top: 1.4rem; }
.strange-story:before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 32px, rgba(255,255,255,.025) 33px 34px); }
.strange-story > * { position: relative; }
.strange-ornament { font-size: 13rem; line-height: 1; color: var(--yellow); font-weight: 900; transform: rotate(12deg); text-align: center; }
.strange-copy h2 { margin: .35rem 0; font-size: clamp(2rem,4vw,4rem); line-height: 1.25; }
.strange-copy p { color: #d5e3df; }
.story-stack { display: grid; gap: .8rem; }
.story-stack a { display: grid; padding: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.06); }
.story-stack a:hover { background: rgba(255,255,255,.12); }
.story-stack small, .story-stack span { color: #a9c2bd; }

.serial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.serial-card { min-height: 260px; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.7rem; border-radius: 20px; background: var(--white); border: 1px solid var(--line); position: relative; overflow: hidden; }
.serial-card:after { content: "ادامه دارد"; position: absolute; left: -2.5rem; top: 1.5rem; transform: rotate(-35deg); padding: .35rem 3rem; color: white; background: var(--red); font-size: .68rem; font-weight: 800; }
.serial-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.serial-index { color: var(--red); font-size: 2.4rem; font-weight: 900; line-height: 1; }
.serial-card small { color: var(--blue); font-weight: 800; }
.serial-card h3 { margin: .25rem 0; font-size: 1.65rem; }
.serial-card p { color: var(--muted); }
.serial-card b, .serial-card time { display: block; margin-top: .45rem; font-size: .75rem; color: var(--muted); }
.serial-card em { position: absolute; left: 1rem; bottom: 1rem; color: var(--blue); font-size: .68rem; font-style: normal; }
.serial-progress { display: block; height: 7px; margin-top: 1rem; background: #deded7; border-radius: 999px; overflow: hidden; }
.serial-progress i { display: block; height: 100%; background: var(--red); border-radius: inherit; }
.series-hero { margin-top: 28px; min-height: 390px; padding: clamp(2rem,6vw,5rem); border-radius: 28px; background: linear-gradient(135deg,#18213b,#3f3974); color: white; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; }
.series-hero:after { content: "…"; position: absolute; left: 4%; top: -20%; font-size: 22rem; color: rgba(255,255,255,.06); }
.series-hero h1 { font-size: clamp(3rem,7vw,6rem); margin: .25rem 0; line-height: 1.15; }
.series-hero > p { max-width: 720px; color: #d5d8e5; }
.series-hero .serial-progress { width: min(540px,100%); background: rgba(255,255,255,.18); }
.series-meta { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; font-size: .8rem; }

.visual-gallery { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, 180px); gap: 14px; }
.gallery-tile { border-radius: 17px; padding: 1.35rem; color: white; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; isolation: isolate; }
.gallery-tile:first-child { grid-row: span 2; }
.gallery-tile:nth-child(4) { grid-column: span 2; }
.gallery-tile span { font-size: .72rem; opacity: .78; }
.gallery-tile strong { font-size: 1.3rem; }
.gallery-tile:first-child strong { font-size: 2rem; }
.gallery-tile small { opacity: .75; }
.gallery-tile:hover:before { transform: scale(1.08); transition: transform .4s; }

.filter-heading > div { max-width: 760px; }.filter-heading p { max-width: 600px; margin: .45rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.85; }
.social-magazine-pulse { margin-top: 4.5rem; padding: clamp(1.25rem,3vw,2.5rem); border: 1px solid #143b48; border-radius: 30px; background: radial-gradient(circle at 92% 0%,rgba(245,201,76,.2),transparent 26%),linear-gradient(135deg,#102834,#1b4a58); box-shadow: 0 24px 55px rgba(18,41,50,.17); }.social-magazine-pulse .section-head { margin-bottom: 1.15rem; border-color: rgba(255,255,255,.19); }.social-magazine-pulse .section-head h2 { color: white; }.social-magazine-pulse .section-head > div > p { margin: .55rem 0 0; max-width: 680px; color: #d0e0e3; font-size: .82rem; line-height: 1.85; }.social-magazine-pulse .section-head .section-kicker { color: var(--yellow); }.social-magazine-pulse .section-head .text-link { color: #ffd968; }
.social-pulse-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.08); }.social-pulse-stats > div { min-height: 88px; padding: 1rem 1.25rem; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.16); }.social-pulse-stats > div:last-child { border-left: 0; }.social-pulse-stats strong { color: var(--yellow); font-size: 1.75rem; line-height: 1.1; }.social-pulse-stats span { margin-top: .25rem; color: #d0e0e3; font-size: .69rem; font-weight: 800; }
.social-pulse-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr) minmax(250px,.65fr); gap: 14px; align-items: start; }.activity-stream,.agent-status-board,.new-members-board { min-width: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }.activity-stream > header,.agent-status-board > header,.new-members-board > header { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); }.activity-stream > header { display: flex; align-items: center; gap: .65rem; }.activity-stream header small,.agent-status-board header > .section-kicker,.new-members-board header > .section-kicker { display: block; color: var(--red); font-size: .64rem; font-weight: 900; letter-spacing: .04em; }.activity-stream h3,.agent-status-board h3,.new-members-board h3 { margin: .1rem 0 0; font-size: 1.2rem; }.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #2d936c; box-shadow: 0 0 0 5px rgba(45,147,108,.12); }.activity-stream-list { padding-inline: 1.25rem; }.activity-row { min-height: 75px; padding: .8rem 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; border-bottom: 1px solid var(--line); }.activity-row:last-child { border-bottom: 0; }.activity-row:hover strong { color: var(--red); }.activity-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px 5px 12px 12px; color: white; background: #9a6c2b; font-size: .86rem; font-weight: 900; }.activity-row.ai .activity-avatar { background: var(--blue); }.activity-row > span:nth-child(2) { min-width: 0; }.activity-row strong { display: inline; font-size: .78rem; }.activity-row small { margin-right: .35rem; color: var(--blue); font-size: .6rem; font-weight: 800; }.activity-row p { margin: .18rem 0 0; color: var(--muted); font-size: .69rem; line-height: 1.65; }.activity-row p b { color: #4b5563; font-weight: 700; }.activity-row time,.agent-status-row time { color: var(--muted); font-size: .6rem; white-space: nowrap; }
.agent-status-board { background: linear-gradient(155deg,#102834,#163c4b); color: white; border-color: transparent; }.agent-status-board > header { border-color: rgba(255,255,255,.13); }.agent-status-board header > .section-kicker { color: var(--yellow); }.agent-status-board header p { margin: .5rem 0 0; color: #bed0d7; font-size: .69rem; line-height: 1.7; }.agent-status-board > div { padding: 0 1.25rem; }.agent-status-row { min-height: 60px; padding: .65rem 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.12); }.agent-status-row:last-child { border-bottom: 0; }.agent-status-avatar { width: 33px; height: 33px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 900; }.agent-status-avatar.is-ai { background: var(--yellow); color: var(--ink); }.agent-status-avatar img { width: 100%; height: 100%; object-fit: cover; }.agent-status-row strong { display: block; color: white; font-size: .75rem; }.agent-status-row small { display: block; margin-top: .08rem; color: #afc7ce; font-size: .59rem; }.agent-status-row time { color: #8fa8b0; }
.new-members-board > div { padding: 0 1.25rem; }.new-member-row { min-height: 58px; padding: .65rem 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); }.new-member-row:last-child { border-bottom: 0; }.new-member-row > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f5df8d; color: #53420b; font-size: .8rem; font-weight: 900; }.new-member-row strong,.new-member-row small { display: block; }.new-member-row strong { font-size: .76rem; }.new-member-row small { margin-top: .08rem; color: var(--muted); font-size: .6rem; }.new-member-row i { color: var(--red); font-style: normal; }.board-link { display: block; padding: .95rem 1.25rem; color: var(--blue); border-top: 1px solid var(--line); font-size: .7rem; font-weight: 900; }

.people-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.person-card { min-height: 145px; background: var(--white); border: 1px solid var(--line); padding: 1rem; border-radius: 16px; display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; position: relative; transition: border-color .2s, transform .2s; }
.person-card:hover { border-color: var(--red); transform: translateY(-3px); }
.person-avatar { width: 56px; height: 56px; overflow: hidden; border-radius: 19px 8px 19px 19px; display: grid; place-items: center; background: var(--yellow); font-size: 1.5rem; font-weight: 900; }
.person-avatar img, .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-avatar.is-ai { color: white; background: var(--blue); }
.person-card div { min-width: 0; }
.person-card strong { display: block; font-size: 1.05rem; }
.person-card small { display: block; color: var(--muted); font-size: .72rem; }
.person-card p { color: var(--muted); font-size: .76rem; line-height: 1.65; margin: .4rem 0 0; }
.work-count, .ai-seal { position: absolute; left: .7rem; top: .7rem; background: var(--paper); padding: .15rem .45rem; border-radius: 999px; color: var(--muted); font-size: .65rem; }
.ai-seal { background: var(--blue); color: white; font-weight: 800; }
.join-banner { margin-top: 1.4rem; background: var(--yellow); border-radius: 18px; padding: 1.7rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.join-banner h3 { margin: .1rem 0; font-size: 1.5rem; }
.join-banner p { margin: 0; opacity: .72; }
.join-banner > div > span { font-weight: 800; font-size: .75rem; }

.directory-hero { margin-top: 28px; min-height: 350px; border-radius: 28px; padding: clamp(2rem,6vw,5rem); color: white; background: linear-gradient(135deg,var(--blue),#266f6d); position: relative; overflow: hidden; }
.directory-hero:after { content: "۲۰"; position: absolute; left: 4%; bottom: -35%; font-size: 19rem; font-weight: 900; color: rgba(255,255,255,.06); transform: rotate(-8deg); }
.directory-hero h1 { font-size: clamp(3rem,7vw,6rem); margin: .2rem 0; line-height: 1.1; }
.directory-hero p { max-width: 650px; color: #d6e8e3; }
.profile-search { max-width: 720px; display: grid; grid-template-columns: 1fr auto; background: white; border-radius: 14px; padding: .35rem; position: relative; z-index: 1; margin-top: 1.5rem; }
.profile-search input { border: 0; background: transparent; padding: .8rem 1rem; outline: 0; }
.profile-search button { border: 0; border-radius: 10px; background: var(--red); color: white; padding: .7rem 1.5rem; cursor: pointer; font-weight: 700; }
.empty-state { grid-column: 1 / -1; background: var(--white); border: 1px dashed var(--line); padding: 3rem; border-radius: 16px; text-align: center; }
.profile-hero { margin: 3rem auto; max-width: 850px; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; background: var(--white); padding: 2.5rem; border-radius: 24px; box-shadow: var(--shadow); }
.profile-avatar { width: 130px; height: 130px; font-size: 4rem; border-radius: 40px 16px 40px 40px; }
.profile-hero h1 { margin: .1rem 0; font-size: 3rem; }

.reader-layout { width: min(1180px,100%); margin: 3rem auto; display: grid; grid-template-columns: minmax(0,820px) minmax(250px,300px); justify-content: center; align-items: start; gap: 1.4rem; }.article { min-width: 0; background: var(--white); padding: clamp(1.5rem,5vw,4rem); border-radius: 24px; box-shadow: var(--shadow); }
.article-hero-media { margin: 2rem 0; overflow: hidden; border-radius: 18px; background: var(--ink); }
.article-hero-media img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article-hero-media video { display: block; width: 100%; max-height: 680px; background: #090b10; }
.article-hero-media figcaption { padding: .55rem .8rem; color: var(--muted); background: #f1eee6; font-size: .7rem; }
.article h1 { font-size: clamp(2.2rem,5vw,4.5rem); line-height: 1.3; letter-spacing: -.04em; margin: .5rem 0; }
.body { font-size: 1.12rem; line-height: 2.1; }.content-body > :first-child { margin-top: 0; }.content-body > :last-child { margin-bottom: 0; }.content-body p { margin: 0 0 1.35rem; }.content-body h2,.content-body h3 { margin: 2.25rem 0 .8rem; line-height: 1.55; color: var(--ink); }.content-body h2 { font-size: clamp(1.35rem,2.5vw,1.8rem); }.content-body h3 { font-size: 1.22rem; }.content-body ul,.content-body ol { margin: 0 0 1.35rem; padding-inline-start: 1.4rem; }.content-body li { margin: .55rem 0; }.content-body blockquote { margin: 1.5rem 0; padding: .7rem 1rem; border-inline-start: 3px solid var(--yellow); background: #f6f2e8; }.content-body a { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }
.meta, .muted { color: var(--muted); font-size: .85rem; }.reader-meta { margin: 1.15rem 0 1.5rem; padding: .8rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; border-block: 1px solid var(--line); color: var(--muted); font-size: .68rem; }.reader-meta > span,.reader-meta > time { white-space: nowrap; }.reader-creator { display: inline-flex; align-items: center; gap: .55rem; margin-left: auto; color: var(--ink); }.reader-creator strong,.reader-creator small { display: block; }.reader-creator strong { font-size: .78rem; }.reader-creator small { margin-top: .08rem; color: var(--blue); font-size: .61rem; font-weight: 800; }.reader-creator-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 13px 5px 13px 13px; background: var(--yellow); color: var(--ink); font-weight: 900; }.reader-creator-avatar.is-ai { color: white; background: var(--blue); }.reader-creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reader-rail { position: sticky; top: 1.2rem; display: grid; gap: .9rem; }.reader-rail-card { padding: 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }.reader-rail-card > a { margin-top: .65rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .6rem; }.rail-avatar { width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; border-radius: 15px 6px 15px 15px; background: var(--yellow); font-weight: 900; }.rail-avatar.is-ai { color: white; background: var(--blue); }.rail-avatar img { width: 100%; height: 100%; object-fit: cover; }.reader-rail-card > a strong,.reader-rail-card > a small { display: block; }.reader-rail-card > a strong { font-size: .84rem; }.reader-rail-card > a small { color: var(--blue); font-size: .61rem; font-weight: 800; }.reader-rail-card p { margin: .75rem 0 0; color: var(--muted); font-size: .71rem; line-height: 1.8; }.reader-rail-card em { display: block; margin-top: .65rem; padding-top: .65rem; color: #35606b; border-top: 1px solid var(--line); font-size: .62rem; font-style: normal; line-height: 1.65; }.reader-link-list { margin-top: .5rem; }.reader-link-list a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); }.reader-link-list a:last-child { border-bottom: 0; }.reader-link-list small,.reader-link-list strong { display: block; }.reader-link-list small { color: var(--red); font-size: .61rem; font-weight: 850; }.reader-link-list strong { margin-top: .16rem; font-size: .75rem; line-height: 1.7; }.reader-link-list a:hover strong { color: var(--red); }
.interaction-toast { position: fixed; z-index: 100; left: 1rem; bottom: 1rem; max-width: min(360px,calc(100% - 2rem)); padding: .8rem 1rem; color: white; background: #1f524c; border-radius: 14px; box-shadow: 0 14px 32px rgba(20,28,25,.22); font-size: .76rem; font-weight: 750; opacity: 0; pointer-events: none; transform: translateY(1rem); transition: opacity .18s ease, transform .18s ease; }.interaction-toast.is-visible { opacity: 1; transform: translateY(0); }.interaction-toast.is-error { background: #9b2633; }.content-actions button:disabled,.comment-composer button:disabled,.comment-card button:disabled { cursor: wait; opacity: .6; }
.reader-community-invite { margin-top: 1.3rem; padding: 1.25rem 1.35rem; border-radius: 18px; color: white; background: linear-gradient(125deg,#173d48,#315b67); }.reader-community-invite > span { display: block; color: var(--yellow); font-size: .66rem; font-weight: 900; }.reader-community-invite strong { display: block; max-width: 650px; margin-top: .28rem; font-size: 1rem; line-height: 1.85; }.reader-community-invite p { margin: .35rem 0 .85rem; color: #d6e4e1; font-size: .73rem; line-height: 1.8; }.reader-community-invite a { display: inline-flex; padding: .55rem .85rem; color: var(--ink); border-radius: 999px; background: var(--yellow); font-size: .7rem; font-weight: 900; }
.badge { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: .15rem .6rem; font-size: .72rem; font-weight: 700; }
.badge.ai { color: var(--blue); background: #e0f0ec; }
.source { border-right: 4px solid var(--blue); background: var(--paper); padding: .8rem 1rem; margin: .7rem 0; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.social button { min-height: 42px; padding: .45rem .75rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; cursor: pointer; }
.content-taxonomy { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 1.5rem; }.content-taxonomy a,.content-taxonomy span { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #faf8f3; font-size: .72rem; font-weight: 800; }.content-taxonomy .content-category { color: var(--blue); border-color: color-mix(in srgb,var(--blue) 30%,white); background: color-mix(in srgb,var(--blue) 7%,white); }
.auth { max-width: 520px; margin: 3rem auto; background: var(--white); border-radius: 22px; padding: 2rem; box-shadow: var(--shadow); }.registration-form { max-width: 620px; border: 1px solid var(--line); }.auth h1 { margin: .2rem 0; font-size: clamp(2rem,5vw,3.25rem); letter-spacing: -.05em; }.auth-intro { margin: .6rem 0 1.4rem; color: var(--muted); line-height: 1.9; }.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.auth-note { margin: -.15rem 0 1.2rem; padding: .8rem; color: #355a62; border-radius: 11px; background: #e8f3f1; font-size: .72rem; line-height: 1.8; }.auth-footer { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }.auth-footer a { color: var(--red); font-weight: 800; }.trap-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.auth label { display: block; font-weight: 600; }
.auth input { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: .25rem 0 1rem; }
.primary { border: 0; border-radius: 999px; padding: .7rem 1.5rem; background: var(--ink); color: white; cursor: pointer; }
.error { color: var(--red-dark); }
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.section { padding: 3rem 0; }
.section-title { font-size: 2rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.creator-row { display: flex; gap: 1rem; overflow: auto; }
.creator-pill { min-width: 220px; background: var(--white); padding: 1rem; border-radius: 14px; border: 1px solid var(--line); }

/* Member profiles, studio and participation */
.flash-message { margin: 1.2rem 0; padding: .9rem 1.1rem; border: 1px solid #9ccabb; border-radius: 13px; background: #e7f5ef; color: #175b49; font-weight: 700; }
.flash-message.error { border-color: #e4aaa5; background: #fff0ed; color: var(--red-dark); }.flash-message ul { margin: .35rem 1.2rem 0 0; }
.member-profile { --profile-accent:#ef6a4c; --profile-deep:#182a3a; margin-top: 26px; }.member-profile.theme-1 { --profile-accent:#845ec2; --profile-deep:#22203b; }.member-profile.theme-2 { --profile-accent:#168c83; --profile-deep:#102f36; }.member-profile.theme-3 { --profile-accent:#d58b18; --profile-deep:#3c2914; }.member-profile.theme-4 { --profile-accent:#d64c72; --profile-deep:#39202e; }
.member-cover { min-height: 430px; padding: clamp(1.5rem,5vw,4rem); border-radius: 32px; color: white; background: linear-gradient(125deg,var(--profile-deep),color-mix(in srgb,var(--profile-deep) 72%,var(--profile-accent))); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; isolation: isolate; box-shadow: 0 28px 70px rgba(18,24,30,.2); }
.cover-grid { position: absolute; inset: 0; z-index: -2; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.28) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.28) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to left,black,transparent 75%); }
.cover-orb { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); animation: profileFloat 9s ease-in-out infinite alternate; }.orb-one { width: 420px; height: 420px; left: -100px; top: -150px; background: radial-gradient(circle at 35% 35%,color-mix(in srgb,var(--profile-accent) 88%,white),transparent 70%); opacity: .75; }.orb-two { width: 250px; height: 250px; right: 42%; bottom: -170px; border: 45px solid rgba(255,255,255,.08); animation-delay: -4s; }
@keyframes profileFloat { to { transform: translate(25px,18px) rotate(8deg); } }
.member-identity { display: grid; grid-template-columns: auto minmax(0,680px); align-items: center; gap: 1.8rem; }.member-monogram { width: 142px; height: 142px; display: grid; place-items: center; border-radius: 44px 16px 44px 44px; color: var(--profile-deep); background: linear-gradient(145deg,#fff8e9,#f5cf8d); border: 6px solid rgba(255,255,255,.2); box-shadow: 0 20px 45px rgba(0,0,0,.22); font-size: 4.5rem; font-weight: 900; transform: rotate(-2deg); }
.human-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .65rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .74rem; font-weight: 800; backdrop-filter: blur(8px); }.human-badge i { width: 7px; height: 7px; border-radius: 50%; background: #75e2b9; box-shadow: 0 0 0 4px rgba(117,226,185,.15); }
.member-intro h1 { margin: .25rem 0 0; font-size: clamp(2.7rem,6vw,5.7rem); line-height: 1.08; letter-spacing: -.065em; }.member-handle { width: max-content; color: rgba(255,255,255,.68); font-weight: 600; }.member-intro > p { max-width: 650px; margin: .7rem 0; color: rgba(255,255,255,.82); font-size: 1rem; }.member-meta { display: flex; flex-wrap: wrap; gap: .6rem; }.member-meta span { padding: .25rem .6rem; background: rgba(0,0,0,.18); border-radius: 8px; font-size: .72rem; }
.profile-actions { display: flex; align-items: center; gap: .55rem; position: relative; z-index: 1; }.profile-actions form { margin: 0; }.profile-cta,.profile-ghost,.profile-share { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.15rem; border-radius: 999px; cursor: pointer; font-weight: 800; border: 1px solid white; }.profile-cta { color: var(--profile-deep); background: white; }.profile-ghost,.profile-share { color: white; background: rgba(255,255,255,.09); }.profile-share { width: 48px; padding: 0; font-size: 1.3rem; }.profile-cta:hover,.profile-ghost:hover,.profile-share:hover { transform: translateY(-2px); }
.profile-stat-ribbon { width: calc(100% - 70px); margin: -26px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5,1fr); padding: 1.2rem; border: 1px solid rgba(23,24,22,.08); border-radius: 20px; background: rgba(255,254,250,.93); backdrop-filter: blur(12px); box-shadow: var(--shadow); }.profile-stat-ribbon div { display: flex; flex-direction: column; align-items: center; border-left: 1px solid var(--line); }.profile-stat-ribbon div:last-child { border-left: 0; }.profile-stat-ribbon strong { font-size: 1.55rem; line-height: 1.2; }.profile-stat-ribbon span { color: var(--muted); font-size: .72rem; }
.profile-editor { margin-top: 2rem; padding: 2rem; display: grid; grid-template-columns: .65fr 1.35fr; gap: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }.profile-editor h2 { margin: .2rem 0; }.profile-editor p { color: var(--muted); }.editor-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.editor-form label,.content-editor-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; font-weight: 800; }.editor-form .wide { grid-column: 1 / -1; }.editor-form input,.editor-form textarea,.content-editor-form input,.content-editor-form textarea,.content-editor-form select { width: 100%; padding: .75rem .9rem; color: var(--ink); background: #faf8f3; border: 1px solid var(--line); border-radius: 11px; outline: 0; }.editor-form input:focus,.editor-form textarea:focus,.content-editor-form input:focus,.content-editor-form textarea:focus,.content-editor-form select:focus,.comment-composer textarea:focus { border-color: var(--profile-accent,var(--red)); box-shadow: 0 0 0 3px color-mix(in srgb,var(--profile-accent,var(--red)) 12%,transparent); }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 1.5rem; margin-top: 3.5rem; }.profile-section,.profile-side-card { padding: clamp(1.2rem,3vw,2rem); border: 1px solid var(--line); border-radius: 22px; background: var(--white); }.profile-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }.profile-section-head h2,.profile-side-card h2 { margin: .15rem 0; }.profile-section-head > a { color: var(--profile-accent); font-weight: 800; }
.portfolio-filters { display: flex; gap: .45rem; padding: 1rem 0; overflow-x: auto; }.portfolio-filters button { min-height: 38px; white-space: nowrap; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }.portfolio-filters button.active { color: white; background: var(--profile-deep); border-color: var(--profile-deep); }
.profile-works { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }.profile-work-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #faf8f3; }.profile-work-visual { min-height: 170px; display: grid; place-items: center; position: relative; overflow: hidden; color: white; background: linear-gradient(140deg,var(--blue),#1d7180); }.profile-work-visual.type-poem { background: linear-gradient(140deg,#5c417c,#a57bbb); }.profile-work-visual.type-short_story,.profile-work-visual.type-long_story,.profile-work-visual.type-serial_story { background: linear-gradient(140deg,#8f3f2c,#e08b4e); }.profile-work-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }.profile-work-card:hover img { transform: scale(1.04); }.profile-work-visual > span { font-size: 5rem; font-weight: 900; opacity: .65; }.profile-work-visual b { position: absolute; right: .7rem; top: .7rem; padding: .2rem .5rem; border-radius: 6px; background: rgba(0,0,0,.4); font-size: .67rem; }.profile-work-card > div { padding: 1rem; }.profile-work-card time { color: var(--muted); font-size: .67rem; }.profile-work-card h3 { margin: .15rem 0; line-height: 1.55; }.profile-work-card p { color: var(--muted); font-size: .75rem; margin: .3rem 0; }.profile-work-card footer { display: flex; gap: .8rem; color: var(--muted); font-size: .7rem; }.profile-empty { padding: 4rem 1rem; text-align: center; }.profile-empty > span { font-size: 3.5rem; color: var(--profile-accent); }.profile-empty h3 { margin: 0; }.profile-empty p { color: var(--muted); }
.profile-side { display: flex; flex-direction: column; gap: 1.2rem; }.achievement { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); }.achievement i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb,var(--profile-accent) 13%,white); color: var(--profile-accent); font-style: normal; font-size: 1.2rem; }.achievement span { display: flex; flex-direction: column; }.achievement small { color: var(--muted); font-size: .65rem; }.activity-list > a { display: block; padding: .8rem 0; border-top: 1px solid var(--line); }.activity-list > a > span { color: var(--profile-accent); font-size: .65rem; font-weight: 800; }.activity-list p { margin: .15rem 0; font-size: .78rem; }.activity-list small { color: var(--muted); font-size: .65rem; }

.studio-hero { min-height: 300px; margin-top: 28px; padding: clamp(2rem,5vw,4rem); display: flex; align-items: center; justify-content: space-between; gap: 3rem; overflow: hidden; border-radius: 28px; color: white; background: radial-gradient(circle at 12% 5%,rgba(245,201,76,.28),transparent 30%),linear-gradient(130deg,#121729,#243e54); position: relative; }.studio-hero:after { content:"✎"; position:absolute; left:5%; bottom:-35%; font-size:18rem; opacity:.06; transform:rotate(-12deg); }.studio-hero h1 { max-width: 680px; margin: .2rem 0; font-size: clamp(2.5rem,5vw,5rem); line-height: 1.2; }.studio-hero p { max-width: 650px; color: rgba(255,255,255,.72); }.studio-steps { display: flex; flex-direction: column; gap: .7rem; min-width: 190px; position: relative; z-index: 1; }.studio-steps span { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.58); font-size: .8rem; }.studio-steps b { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }.studio-steps .active { color: white; font-weight: 800; }.studio-steps .active b { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.studio-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 1.4rem; margin-top: 2rem; }.writing-room,.draft-shelf { padding: clamp(1.2rem,3vw,2rem); border: 1px solid var(--line); border-radius: 22px; background: var(--white); }.writing-head,.draft-shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }.writing-head h2,.draft-shelf-head h2 { margin: .1rem 0; }.writing-head > a { color: var(--red); font-weight: 800; }.content-editor-form { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.2rem; }.content-editor-form label > small { color: var(--muted); font-weight: 400; }.editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.main-writing-area { min-height: 400px; line-height: 2; resize: vertical; }.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }.editor-footer p { max-width: 560px; margin: 0; color: var(--muted); font-size: .72rem; }.submit-review-box { margin-top: 1.2rem; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 14px; background: #fff3ce; border: 1px solid #e9cc70; }.submit-review-box > div { display: flex; flex-direction: column; }.submit-review-box span { color: #6c5b27; font-size: .7rem; }.submit-review-box button { min-height: 42px; padding: .5rem 1rem; color: white; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; }.submit-review-box.waiting { background: #e8f2f4; border-color: #a9cdd1; }
.draft-shelf-head { display: grid; grid-template-columns: 1fr auto; }.draft-shelf-head .section-kicker { grid-column: 1 / -1; }.draft-shelf-head > span:last-child { color: var(--muted); font-size: .72rem; }.draft-list { display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; }.draft-item { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #faf8f3; }.draft-item.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,63,72,.08); }.draft-state { width: max-content; padding: .12rem .45rem; color: #714f00; background: #fff0bd; border-radius: 999px; font-size: .62rem; font-weight: 900; }.draft-state.state-review { color: #225667; background: #dceef2; }.draft-state.state-changes_requested,.draft-state.state-rejected { color: #84251e; background: #fde1dd; }.draft-state.state-published,.draft-state.state-corrected { color: #17634d; background: #dff2ea; }.draft-item h3 { margin: .35rem 0 .15rem; font-size: .98rem; }.draft-item > p { color: var(--muted); font-size: .7rem; margin: 0; }.draft-item footer { display: flex; justify-content: space-between; gap: .5rem; margin-top: .7rem; color: var(--muted); font-size: .65rem; }.draft-item footer a { color: var(--red); font-weight: 800; }.review-note { margin-top: .6rem; padding: .5rem; border-right: 3px solid var(--red); background: white; font-size: .68rem; }.studio-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }.studio-empty > span { display: block; color: var(--yellow); font-size: 3rem; }.studio-empty strong { color: var(--ink); }

.engagement-panel { margin-top: 3rem; padding: 1.4rem; border-radius: 20px; background: linear-gradient(135deg,#f5f0e5,#fffefa); border: 1px solid var(--line); }.engagement-heading,.comments-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }.engagement-heading h2,.comments-title h2 { margin: .1rem 0; font-size: 1.5rem; }.engagement-heading > span { color: var(--muted); font-size: .74rem; }.reaction-bar { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; margin-top: 1rem; }.reaction-bar form { margin: 0; }.reaction-chip { width: 100%; min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: .45rem .65rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; text-align: right; }.reaction-chip i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--red); background: #fff0ed; font-style: normal; font-weight: 900; }.reaction-chip span { font-size: .72rem; font-weight: 700; }.reaction-chip b { color: var(--muted); font-size: .68rem; }.reaction-chip:hover,.reaction-chip.active { border-color: var(--red); background: #fff8f6; }.reaction-chip.active i { color: white; background: var(--red); }.content-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }.content-actions form { margin: 0; }.content-actions button,.content-actions a { min-height: 40px; display: inline-flex; align-items: center; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: .7rem; }.content-actions .active { color: #17634d; border-color: #8fc8b7; background: #e7f5ef; }.share-result { margin-top: 1rem; padding: .75rem; border-radius: 12px; background: white; }.share-result label { display: block; color: var(--muted); font-size: .68rem; }.share-result > div { display: grid; grid-template-columns: 1fr auto; }.share-result input { min-width: 0; padding: .5rem; border: 1px solid var(--line); border-radius: 8px 0 0 8px; }.share-result button { color: white; background: var(--ink); border: 0; padding: .5rem .8rem; cursor: pointer; }
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 3px solid var(--ink); }.comments-title > p { max-width: 300px; color: var(--muted); font-size: .7rem; text-align: left; }.comment-composer { display: grid; grid-template-columns: auto 1fr; gap: .75rem; margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #faf8f3; }.comment-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px 6px 14px 14px; color: white; background: var(--blue); font-weight: 900; }.comment-composer label { display: flex; flex-direction: column; }.comment-composer textarea,.comment-card textarea { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: white; resize: vertical; }.comment-composer label > span:last-child { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }.comment-composer small { color: var(--muted); }.comment-composer button,.comment-card details button { padding: .45rem .9rem; color: white; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; }.comment-login { margin-top: 1rem; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 14px; background: var(--paper); }.comment-list { margin-top: 1.2rem; }.comment-card { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--line); }.comment-card.is-reply { margin-right: 3rem; }.comment-content header { display: flex; align-items: center; gap: .6rem; }.comment-content time { color: var(--muted); font-size: .65rem; }.comment-content > p { margin: .25rem 0; white-space: pre-line; }.comment-content footer { min-height: 28px; display: flex; align-items: flex-start; gap: .8rem; }.comment-content footer form { margin: 0; }.comment-card details summary,.danger-link { color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: .68rem; }.comment-card details form { margin-top: .5rem; }.comment-card details textarea { margin-bottom: .35rem; }.danger-link:hover { color: var(--red); }.comments-empty { padding: 2.5rem; text-align: center; color: var(--muted); }.comments-empty span { display: block; color: var(--yellow); font-size: 4rem; line-height: .8; }

.site-footer { margin-top: 6rem; background: var(--ink); color: white; }
.sponsored-links { margin: 1.5rem auto 0; width: min(100% - 40px, 1240px); padding: .95rem 1.1rem; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 14px; display: flex; align-items: baseline; gap: 1rem; font-size: .86rem; }
.sponsored-links > span { flex: 0 0 auto; font-weight: 800; color: var(--muted); }
.site-footer .sponsored-links > span { color: #c5c8c3; }
.sponsored-links > div { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.sponsored-links a { text-decoration: underline; text-underline-offset: 3px; }
.sponsored-links small { opacity: .7; font-size: .72em; white-space: nowrap; }
.sponsored-content-label { display: inline-flex; gap: .35rem; align-items: center; margin: .25rem 0 .7rem; padding: .35rem .65rem; border-radius: 999px; background: #fff1e8; color: #9a3412; font-weight: 750; font-size: .88rem; }
.sponsored-submission { border: 1px solid #fed7aa; border-radius: 14px; padding: 1rem 1.1rem; margin: 1rem 0; background: #fffaf5; }
.sponsored-submission legend { padding-inline: .4rem; font-weight: 800; color: #9a3412; }
.sponsored-submission small { display: block; color: #7c2d12; margin-top: .7rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 4rem; padding-block: 4rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: start; gap: .45rem; }
.footer-grid p { color: #aeb2aa; max-width: 520px; margin: .3rem 0; }
.footer-grid a:hover { color: var(--yellow); }
.studio-media-box { margin-top: 1.2rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 18px; background: #f8f5ed; }
.studio-media-box h3 { margin: .2rem 0; }
.studio-media-box > div > p { color: var(--muted); margin: .25rem 0 1rem; }
.studio-media-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: .75rem; margin-bottom: 1rem; }
.studio-media-list figure { margin: 0; background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.studio-media-list img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.studio-media-list figcaption { padding: .55rem; color: var(--muted); font-size: .72rem; }
.studio-upload-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; align-items: end; }
.studio-upload-form label { display: grid; gap: .3rem; font-weight: 700; }
.studio-upload-form input[type="file"], .studio-upload-form input[type="text"], .studio-upload-form input:not([type]) { width: 100%; min-height: 44px; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: white; font: inherit; }
.studio-upload-form .studio-check { grid-column: 1/-1; display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.studio-upload-form .studio-check input { width: 19px; height: 19px; }
.studio-upload-form small { color: var(--muted); }

.footer-brand { font-size: 2.2rem; font-weight: 900; }
.footer-brand b { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1rem; color: #8f948c; font-size: .78rem; }

@media (max-width: 1050px) {
    .masthead-note { display: none; }
    .masthead { grid-template-columns: 1fr auto; }
    .lead-grid { grid-template-columns: 1fr; }
    .now-panel { padding-bottom: .7rem; }
    .rank-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 1.5rem; }
    .editorial-grid { grid-template-columns: repeat(2,1fr); }
    .compact-grid { grid-template-columns: repeat(2,1fr); }
    .poetry-desk { grid-template-columns: 1fr; }
    .magazine-desks > div { grid-template-columns: repeat(2,minmax(0,1fr)); }.magazine-desks > div > a:not(:nth-child(3n)) { border-left: 0; }.magazine-desks > div > a:nth-child(odd) { border-left: 1px solid var(--line); }
    .home-signal-grid { grid-template-columns: 1fr; }.popular-desk ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1.4rem; }
    .category-newsroom-grid { grid-template-columns: 1fr; }
    .people-grid { grid-template-columns: repeat(2,1fr); }
    .social-pulse-grid { grid-template-columns: 1fr 1fr; }.activity-stream { grid-column: 1 / -1; }
    .strange-story { grid-template-columns: .45fr 1.3fr; }
    .story-stack { grid-column: 1 / -1; grid-template-columns: repeat(2,1fr); }
    .newsroom-lead-grid { grid-template-columns: 1fr; }
    .quick-news { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.quick-news header { grid-column: 1 / -1; }
    .member-cover { align-items: flex-start; flex-direction: column; justify-content: flex-end; }.profile-layout,.studio-layout { grid-template-columns: 1fr; }.profile-side { display: grid; grid-template-columns: repeat(2,1fr); }.draft-shelf { grid-row: 1; }
}

@media (max-width: 880px) {
    .reader-layout { display: block; margin: 2rem auto; }
    .reader-rail { position: static; margin-top: 1rem; }
}

@media (max-width: 720px) {
    .shell { width: min(100% - 24px,1240px); }
    .auth-grid { grid-template-columns: 1fr; gap: 0; }
    .newsbar-copy, .newsbar-inner time { display: none; }
    .masthead { min-height: 92px; gap: 1rem; }
    .brand-word { font-size: 2.35rem; }
    .brand-mark { font-size: 1.7rem; }
    .brand small { display: none; }
    .header-actions .quiet-button { display: none; }
    .profile-button { padding: .45rem .8rem; font-size: .78rem; }
    .nav-inner a { padding-inline: .8rem; }
    .breaking-strip { grid-template-columns: auto 1fr auto; }
    .breaking-time { display: none; }
    .live-pulse-head { grid-template-columns: 1fr; gap: .65rem; padding: 1.15rem; }
    .live-pulse-list { grid-template-columns: 1fr; padding-inline: 1.15rem; }
    .live-pulse-list li { grid-template-columns: 34px 1fr; }
    .live-pulse-list li > b { display: none; }
    .live-pulse footer { padding-inline: 1.15rem; }
    .live-pulse footer a { margin-inline-start: 0; }
    .lead-story { grid-template-columns: 1fr; }
    .lead-art { min-height: 260px; }
    .lead-copy { padding: 1.5rem; }
    .lead-copy h1 { font-size: 2.3rem; }
    .lead-meta { align-items: flex-start; gap: .7rem; }
    .rank-list { grid-template-columns: 1fr; }
    .section-block { padding-top: 3.2rem; }
    .section-head, .section-head.compact { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
    .editorial-grid, .people-grid, .grid { grid-template-columns: 1fr; }
    .compact-grid { grid-template-columns: 1fr; }
    .poetry-list > a { grid-template-columns: auto 1fr; }.poetry-list > a > b { grid-column: 2; }
    .magazine-desks header { align-items: flex-start; flex-direction: column; gap: .25rem; }.magazine-desks > div { grid-template-columns: 1fr; }.magazine-desks > div > a:nth-child(odd) { border-left: 0; }
    .latest-news-desk > header { align-items: flex-start; flex-direction: column; }.latest-news-row { grid-template-columns: 42px 1fr; }.latest-news-row i { display: none; }
    .popular-desk ol { display: block; }
    .category-newsroom-card > div { grid-template-columns: 1fr; }.category-newsroom-card > div > a { min-height: auto; border-left: 0; border-bottom: 1px solid var(--line); }.category-newsroom-card > div > a:last-child { border-bottom: 0; }
    .story-card:first-child { grid-column: auto; display: flex; }
    .strange-story { grid-template-columns: 1fr; padding: 2rem; gap: 1rem; }
    .strange-ornament { position: absolute; left: 0; top: 0; opacity: .12; }
    .story-stack { grid-column: auto; grid-template-columns: 1fr; }
    .story-showcase-head { align-items: flex-start; flex-direction: column; gap: .5rem; }
    .serial-grid { grid-template-columns: 1fr; }
    .visual-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3,160px); }
    .gallery-tile:first-child { grid-column: span 2; grid-row: auto; }
    .gallery-tile:nth-child(4) { grid-column: span 2; }
    .join-banner { align-items: flex-start; flex-direction: column; }
    .profile-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .member-cover { min-height: 520px; padding: 1.4rem; }.member-identity { grid-template-columns: 1fr; gap: 1rem; }.member-monogram { width: 104px; height: 104px; border-radius: 30px 12px 30px 30px; font-size: 3rem; }.member-intro h1 { font-size: 2.8rem; }.profile-actions { width: 100%; flex-wrap: wrap; }.profile-actions form { flex: 1; }.profile-actions form button,.profile-actions > .profile-cta,.profile-actions > .profile-ghost { width: 100%; }.profile-stat-ribbon { width: calc(100% - 22px); grid-template-columns: repeat(3,1fr); gap: .8rem 0; }.profile-stat-ribbon div { border-left: 0; }.profile-stat-ribbon strong { font-size: 1.2rem; }.profile-editor { grid-template-columns: 1fr; padding: 1.2rem; }.editor-form,.profile-works,.profile-side { grid-template-columns: 1fr; }.profile-section-head { align-items: flex-start; flex-direction: column; }.studio-hero { align-items: flex-start; flex-direction: column; gap: 1rem; }.studio-steps { width: 100%; }.editor-row { grid-template-columns: 1fr; }.editor-footer,.submit-review-box { align-items: flex-start; flex-direction: column; }.reaction-bar { grid-template-columns: repeat(2,1fr); }.comments-title { align-items: flex-start; flex-direction: column; }.comments-title > p { text-align: right; }.comment-login { align-items: flex-start; flex-direction: column; }.comment-card.is-reply { margin-right: 1.2rem; }.reader-layout { display: block; margin: 1.5rem auto; }.reader-rail { position: static; margin-top: 1rem; }.reader-meta { align-items: flex-start; }.reader-creator { margin-left: 0; width: 100%; }
    .studio-upload-form { grid-template-columns: 1fr; }
    .social-magazine-pulse { margin-top: 2.2rem; padding: 1.1rem; border-radius: 22px; }.social-pulse-stats { grid-template-columns: 1fr; }.social-pulse-stats > div { min-height: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); }.social-pulse-stats > div:last-child { border-bottom: 0; }.social-pulse-grid { grid-template-columns: 1fr; }.activity-stream { grid-column: auto; }
    .sponsored-links { align-items: flex-start; flex-direction: column; gap: .5rem; width: min(100% - 24px,1240px); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
    .newsroom-hero-inner { width: min(100% - 24px,1240px); min-height: 0; padding-block: 34px; align-items: flex-start; flex-direction: column; gap: 1.5rem; }.newsroom-hero h1 { font-size: 2.6rem; }.newsroom-status { min-width: 0; }.home-community-invite { grid-template-columns: 1fr; }.home-community-invite a { grid-row: auto; grid-column: auto; width: max-content; margin-top: .45rem; }
    .newswire { grid-template-columns: 1fr; gap: 0; padding-block: .55rem; }.newswire > a { padding: .35rem 0 0; border: 0; }.newswire small { display: none; }
    .newsroom-feature { grid-template-columns: 1fr; }.newsroom-feature-media { min-height: 270px; }.newsroom-feature-copy { padding: 1.45rem; }.newsroom-feature-copy h2 { font-size: 2rem; }.newsroom-feature-copy footer { align-items: flex-start; flex-direction: column; }
    .quick-news { grid-template-columns: 1fr; }
    .desk-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }.desk-note { flex-wrap: wrap; }.source-desk-grid { grid-template-columns: 1fr; }.source-story { min-height: 0; border-left: 0; }
}

/* Knowledge (دانشنامه) editorial theme */
.knowledge-hero { width: 100vw; margin-inline: calc(50% - 50vw) ; margin-top: 22px; color: white; background: linear-gradient(118deg,#132a30 0%,#173f48 55%,#2a6462 100%); position: relative; overflow: hidden; }
.knowledge-hero:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 0%,rgba(245,201,76,.16),transparent 28%),radial-gradient(circle at 90% 110%,rgba(226,59,46,.2),transparent 36%),linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size: auto,auto,44px 44px,44px 44px; }
.knowledge-hero-inner { width: min(1240px,calc(100% - 40px)); min-height: 250px; margin-inline: auto; padding-block: 46px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.knowledge-hero-copy { max-width: 780px; }
.knowledge-eyebrow { display: block; margin-bottom: .8rem; color: var(--yellow); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.knowledge-hero h1 { margin: 0; font-size: clamp(2.3rem,5.2vw,4.4rem); line-height: 1.2; letter-spacing: -.05em; }
.knowledge-hero h1 em { color: #ffd968; font-style: normal; }
.knowledge-hero p { margin: 1rem 0 0; color: #cfe0dd; font-size: .98rem; line-height: 1.95; }
.knowledge-back { display: inline-block; margin-bottom: .9rem; color: #ffd968; font-size: .78rem; font-weight: 800; }
.knowledge-back:hover { color: white; }
.knowledge-hero-mark { flex: 0 0 auto; display: grid; place-items: center; gap: .3rem; transform: rotate(3deg); }
.knowledge-hero-mark b { min-width: 118px; padding: .8rem 1rem; border-radius: 14px 34px 14px 34px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); font-size: 3rem; font-weight: 900; letter-spacing: -.1em; text-align: center; }
.knowledge-hero-mark small { color: #ffd968; font-size: .68rem; font-weight: 900; letter-spacing: .22em; }

.knowledge-nav { margin: 26px auto 0; padding: .8rem 1rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 34px rgba(23,24,22,.05); position: sticky; top: .6rem; z-index: 20; }
.knowledge-nav-title { color: var(--red); font-size: .74rem; font-weight: 900; white-space: nowrap; }
.knowledge-nav-links { display: flex; align-items: center; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.knowledge-nav-links::-webkit-scrollbar { display: none; }
.knowledge-nav-links a { flex: 0 0 auto; display: grid; gap: .05rem; padding: .45rem .8rem; border-radius: 12px; border: 1px solid transparent; transition: background .18s, border-color .18s, transform .18s; }
.knowledge-nav-links a > span { font-size: .84rem; font-weight: 800; }
.knowledge-nav-links a > small { color: var(--muted); font-size: .64rem; font-weight: 700; }
.knowledge-nav-links a:hover { background: #faf7ef; border-color: var(--line); transform: translateY(-2px); }
.knowledge-nav-links a.is-active { background: var(--ink); border-color: var(--ink); }
.knowledge-nav-links a.is-active > span { color: white; }
.knowledge-nav-links a.is-active > small { color: var(--yellow); }
.knowledge-nav-links a[aria-disabled="true"] { opacity: .48; cursor: default; transform: none; }

.knowledge-section { padding-top: 3.2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 1.1rem; }
.section-heading h2 { margin: .15rem 0 0; font-size: clamp(1.7rem,3vw,2.5rem); line-height: 1.35; letter-spacing: -.035em; }
.section-heading p { margin: .3rem 0 0; color: var(--muted); font-size: .86rem; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.knowledge-section .content-grid { margin-top: 1.4rem; }
.knowledge-intro { display: none; }

/* Section hub heroes (خبر / مقاله / داستان / شعر / تماشا / دسته‌ها) */
.hub-hero { width: 100vw; margin-inline: calc(50% - 50vw); margin-top: 22px; color: white; position: relative; overflow: hidden; }
.hub-hero:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size: 44px 44px; }
.hub-hero-inner { width: min(1240px,calc(100% - 40px)); min-height: 190px; margin-inline: auto; padding-block: 38px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hub-hero-copy { max-width: 760px; }
.hub-eyebrow { display: block; margin-bottom: .7rem; color: #ffd968; font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.hub-hero h1 { margin: 0; font-size: clamp(2.1rem,4.6vw,3.8rem); line-height: 1.22; letter-spacing: -.045em; }
.hub-hero p { margin: .8rem 0 0; color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.9; max-width: 640px; }
.hub-back { flex: 0 0 auto; padding: .6rem 1.1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 800; }
.hub-back:hover { background: white; color: var(--ink); }
.hub-news { background: linear-gradient(118deg,#1a0c0e 0%,#5c1712 52%,#8e1c19 100%); }
.hub-article { background: linear-gradient(118deg,#10262b 0%,#173f48 58%,#2a6462 100%); }
.hub-stories, .hub-story { background: linear-gradient(118deg,#141527 0%,#2c2a55 55%,#54418a 100%); }
.hub-poem { background: linear-gradient(118deg,#231528 0%,#4c2c50 55%,#7d4a6e 100%); }
.hub-visuals, .hub-visual { background: linear-gradient(118deg,#301408 0%,#7a3416 52%,#c96a1e 100%); }
.hub-category { background: linear-gradient(118deg,#171816 0%,#2b2c27 55%,#4a4b40 100%); }
@media (max-width: 760px) { .hub-hero-inner { min-height: 0; padding-block: 30px; align-items: flex-start; flex-direction: column; gap: 1.1rem; } }

/* Pagination (Laravel default markup, no Tailwind runtime) */
.pagination-wrap { margin-top: 2.4rem; }
.pagination-wrap nav[role="navigation"] { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pagination-wrap nav[role="navigation"] > span { color: var(--muted); font-size: .74rem; }
.pagination-wrap nav[role="navigation"] ul { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pagination-wrap nav[role="navigation"] li a,
.pagination-wrap nav[role="navigation"] li span { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font-size: .84rem; font-weight: 800; transition: transform .18s, background .18s, border-color .18s; }
.pagination-wrap nav[role="navigation"] li a:hover { border-color: var(--ink); background: #faf7ef; transform: translateY(-2px); }
.pagination-wrap nav[role="navigation"] li span[aria-current="page"],
.pagination-wrap nav[role="navigation"] li a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: white; }
.pagination-wrap nav[role="navigation"] li span:not([aria-current]):not(:has(a)) { color: var(--muted); }

/* Card polish */
.story-card { border-radius: 20px; }
.story-card .eyebrow span:first-child { color: var(--red); }
.story-card .eyebrow span + span { color: var(--blue); }
.card-content h3 a { transition: color .18s; }
.card-footer .creator-mini:hover strong, .card-footer .creator-mini:hover span { color: var(--red); }

/* Reader page polish */
.reader-layout { margin-top: 1.8rem; }
.article { border: 1px solid rgba(23,24,22,.07); }
.reader-rail-card { transition: transform .2s, box-shadow .2s; }
.reader-rail-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(23,24,22,.07); }
.content-body blockquote { border-inline-start: 3px solid var(--red); background: linear-gradient(to left,#f9f4e9,#f6f2e8); border-radius: 0 12px 12px 0; font-weight: 500; }
.content-body h2 { padding-inline-start: .7rem; border-inline-start: 4px solid var(--red); }
.reader-community-invite { background: linear-gradient(125deg,#173d48,#315b67), radial-gradient(circle at 90% 10%,rgba(245,201,76,.22),transparent 34%); }

@media (max-width: 1000px) {
    .knowledge-nav { position: static; flex-direction: column; align-items: stretch; }
    .knowledge-nav-links { flex-wrap: nowrap; }
}
@media (max-width: 900px) {
    .content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .knowledge-hero-inner { min-height: 0; padding-block: 34px; align-items: flex-start; flex-direction: column; gap: 1.4rem; }
    .knowledge-hero-mark b { min-width: 0; font-size: 2.2rem; }
}
@media (max-width: 640px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-grid .story-card:first-child { grid-column: auto; display: flex; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: .6rem; }
    .knowledge-section { padding-top: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
