/* The journal shares the studio palette and uses a narrower reading column. */
.mag-index,.mag-detail{max-width:1120px;margin-inline:auto;padding-block:clamp(28px,5vw,64px) 72px}
.mag-masthead{display:flex;align-items:end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.mag-masthead h1,.mag-title h1{font-size:clamp(2rem,4vw,3.35rem);letter-spacing:-.045em}
.mag-masthead p,.mag-title>p{font-size:clamp(1rem,1.8vw,1.18rem);max-width:64ch}
.mag-search{display:flex;align-items:center;border:1px solid var(--input);border-radius:12px;background:var(--surface);min-height:46px;max-width:100%}
.mag-search input{flex:1;min-width:0;width:220px;background:none;border:0;border-radius:12px;min-height:44px;padding:.4em .8em;font-size:1rem;color:var(--ink)}
.mag-search button{border:0;background:transparent;width:45px;height:44px;display:grid;place-items:center}
.mag-categories,.mag-count,.mag-meta,.mag-meta span,.mag-kicker,.mag-read,.mag-next,.mag-sources a,.mag-back,.mag-toc strong,.mag-toc a,.mag-pagination,.mag-count a,.mag-categories a{display:flex;align-items:center}
.mag-categories{gap:8px;flex-wrap:wrap;margin-block:25px 8px}
.mag-categories a,.mag-pagination a{gap:7px;border:1px solid var(--line);border-radius:999px;padding:6px 14px;background:var(--surface);font-size:.94rem;min-height:42px}
.mag-categories a[aria-current],.mag-pagination a[aria-current]{background:var(--selected);border-color:var(--green)}
.mag-categories .icon,.mag-meta .icon,.mag-kicker .icon,.mag-toc .icon,.mag-sources .icon,.mag-count .icon{width:17px;height:17px;flex:none}
.mag-count{justify-content:space-between;border-bottom:1px solid var(--line);padding:7px 0 14px;color:var(--muted);font-size:.9rem;margin-bottom:20px}
.mag-count a{gap:6px;color:var(--green)}
.mag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2.3vw,26px)}
.mag-tile{border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);background:var(--surface);min-width:0;display:flex}
.mag-tile>a{display:flex;flex:1;flex-direction:column;color:var(--ink)}
.mag-tile a:hover h2,.mag-case:hover strong,.mag-sources a:hover,.mag-toc a:hover{text-decoration:underline;text-underline-offset:.18em}
.mag-tile-media{aspect-ratio:2.65;background:var(--soft);overflow:hidden}
.mag-tile-media img,.mag-cover img{display:block;width:100%;height:100%;object-fit:cover}
.mag-tile-body{padding:clamp(16px,2.2vw,26px);flex:1;display:flex;flex-direction:column;align-items:start}
.mag-kicker,.mag-meta,.mag-case small{color:var(--muted);font-size:.86rem}
.mag-kicker,.mag-meta span,.mag-read,.mag-toc a,.mag-toc strong,.mag-back,.mag-sources a{gap:7px}
.mag-tile h2{font-size:clamp(1.12rem,2vw,1.5rem);margin:8px 0 18px}
.mag-meta{gap:8px 18px;flex-wrap:wrap}
.mag-tile .mag-meta{justify-content:space-between;margin-top:auto;width:100%}
.mag-read{color:var(--green)}
.mag-lead{margin-bottom:clamp(14px,2.3vw,26px)}
.mag-lead>a{display:grid;grid-template-columns:1.05fr 1fr}
.mag-lead .mag-tile-media{aspect-ratio:auto;min-height:260px}
.mag-lead .mag-tile-body{justify-content:center;padding:clamp(20px,4vw,44px)}
.mag-lead .mag-meta{margin-top:22px}
.mag-lead h2{font-size:clamp(1.4rem,2.7vw,2.05rem);margin-bottom:0}
.mag-pagination{justify-content:center;gap:8px;margin-top:28px}
.mag-pagination a{display:grid;place-items:center;min-width:42px}
.mag-title{max-width:84ch;margin-block:22px}
.mag-title h1{margin-block:8px}
.mag-title .mag-meta{margin-top:15px}
.mag-cover{height:clamp(200px,25vw,315px);background:var(--soft);border-radius:20px;overflow:hidden}
.mag-reading{display:grid;grid-template-columns:minmax(200px,.36fr) minmax(0,1fr);gap:clamp(24px,4.4vw,56px);align-items:start;margin-top:35px}
.mag-toc{position:sticky;top:95px;background:var(--soft);padding:20px;border-radius:16px}
.mag-toc strong{margin-bottom:7px}
.mag-toc a{padding:8px 0;line-height:1.55;border-top:1px solid var(--line);font-size:.93rem}
.mag-toc a span{color:var(--green);min-width:1.25em}
.mag-prose{min-width:0;max-width:74ch}
.mag-prose section+section{margin-top:32px}
.mag-prose h2,.mag-more h2{font-size:clamp(1.25rem,2.15vw,1.7rem);margin-bottom:8px}
.mag-prose p{margin:8px 0 14px;color:var(--ink);font-size:1.03rem;line-height:1.8}
html[lang=fa] .mag-prose p{line-height:2.05;font-size:1.08rem}
.mag-figure{margin:18px 0 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}
.mag-figure img{display:block;background:var(--soft);width:100%;max-height:370px;object-fit:contain}
.mag-figure figcaption{padding:9px 15px;color:var(--muted);font-size:.91rem;line-height:1.65}
.mag-sources{border-top:1px solid var(--line);padding-top:18px}
.mag-sources ul{padding:0;list-style:none;margin:0}
.mag-sources li{margin:.35em 0}
.mag-sources a{color:var(--green);text-decoration:underline;text-underline-offset:.2em;align-items:baseline;overflow-wrap:anywhere;min-height:34px}
.mag-connection{background:var(--soft);border:1px solid var(--line);padding:18px;border-radius:18px}
.mag-case{display:flex;align-items:center;gap:13px}
.mag-case img{width:72px;height:64px;object-fit:cover;border-radius:9px;background:var(--surface)}
.mag-case div{flex:1}.mag-case strong,.mag-case small{display:block}
.mag-next{justify-content:space-between;flex-wrap:wrap;gap:12px}.mag-case+.mag-next{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
.mag-more{margin-top:42px}
@media(max-width:720px){
.mag-masthead{display:block}.mag-search{margin-top:16px}.mag-search input{width:100%}.mag-categories{margin-top:18px;gap:6px}.mag-categories a{padding:5px 10px;font-size:.88rem}
.mag-lead>a{display:flex}.mag-lead .mag-tile-media{min-height:0;aspect-ratio:2.2}.mag-grid{grid-template-columns:1fr}.mag-tile-media{aspect-ratio:2.6}
.mag-reading{grid-template-columns:1fr;margin-top:18px;gap:25px}.mag-toc{position:static;padding:13px 18px}.mag-toc a{min-height:42px}
.mag-cover{height:clamp(165px,39vw,235px)}.mag-title{margin-block:16px}.mag-figure img{max-height:330px}.mag-case img{width:57px;height:57px}
}
.mag-art-folio,.mag-art-screen{display:flex;gap:clamp(7px,1.2vw,17px);align-items:center;justify-content:center;padding:10px clamp(14px,4vw,60px);background:linear-gradient(130deg,var(--hero),var(--soft))}
.mag-art-folio img,.mag-art-screen img{display:block;width:46%;height:100%;object-fit:contain;min-width:0;filter:drop-shadow(0 3px 5px #1723131e)}
.mag-art-screen{align-items:flex-start;padding-bottom:0;overflow:hidden}
.mag-art-screen img{border-radius:6px 6px 0 0;object-position:top;object-fit:cover}
.mag-art-folio img:only-child,.mag-art-screen img:only-child{width:95%}
.mag-lead .mag-tile-media img{max-height:338px}.mag-lead .mag-art-folio,.mag-lead .mag-art-screen{height:clamp(245px,25vw,325px)}
@media(max-width:720px){.mag-lead .mag-art-folio,.mag-lead .mag-art-screen{height:auto;aspect-ratio:2.2}}
