/* Home and public category directory. Shared primitives live in design-system.css. */
.ref-home,.ref-forum{padding-block:4px 32px}.ref-subject-nav{display:flex;gap:24px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-block:14px;font-size:13px}.ref-subject-nav>span{margin-inline-end:auto;color:var(--muted);font-size:11px}.ref-subject-nav a{min-height:32px;display:inline-flex;align-items:center}.ref-home>.hub-pills{margin-block:8px}.ref-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center;padding-block:24px 32px}.ref-hero h1{font-size:clamp(28px,3vw,38px);line-height:1.55;margin-bottom:14px}.ref-hero-copy>p:not(.eyebrow){font-size:15px;line-height:1.95;color:var(--muted);max-width:58ch;margin-bottom:20px}.ref-hero .eyebrow{margin-bottom:10px}.ref-montage{height:260px;position:relative;padding:0}.ref-photo-main{width:100%;height:260px;object-fit:cover;border-radius:12px}.ref-photo-mobile{display:none}.ref-subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);background:var(--panel);border-radius:12px;margin-bottom:36px;overflow:hidden}.ref-subjects>a{padding:22px;display:flex;gap:16px;align-items:center;min-width:0;border-inline-end:1px solid var(--line)}.ref-subjects>a:last-child{border:0}.ref-subject-icon{font-size:28px;color:var(--accent);flex:none;width:32px;text-align:center}.ref-subjects h2{font-size:19px;margin:0 0 4px}.ref-subjects p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.ref-subjects>a>span:last-child{margin-inline-start:auto}.ref-track-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px}.ref-track{padding:18px 0 22px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;align-items:start}.ref-track h3{font-size:18px;margin-bottom:8px}.ref-track p{font-size:14px;color:var(--muted);line-height:1.9}.ref-track-link{font-size:12px;color:var(--accent);margin-top:auto}.ref-learning{margin-bottom:36px}.ref-editorial{margin-block:36px}.ref-archive-strip{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#e9ede9;padding:26px 28px;border-radius:12px;margin-block:36px}.ref-archive-strip h2{font-size:22px;margin-bottom:8px}.ref-archive-strip p{font-size:13px;max-width:68ch;color:var(--muted);margin-bottom:0}.ref-archive-strip .eyebrow{margin-bottom:8px}.ref-archive-strip .button{flex:none}.device-reference-note{font-size:12px;color:var(--muted);margin:12px 0 0}.ref-board-heading{max-width:850px;padding-block:18px 24px}.ref-board-heading h1{margin-bottom:12px}.ref-board-heading p{font-size:15px;color:var(--muted);max-width:72ch}.ref-board-legend{display:grid;grid-template-columns:1fr 100px 90px;gap:20px;padding:8px 24px;font-size:12px;color:var(--muted)}.ref-board-sections{display:flex;flex-direction:column;gap:28px}.ref-board-section{background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden}.ref-board-section>header{padding:14px 22px;background:var(--navy);color:#fff}.ref-board-section>header h2{font-size:17px;margin:0}.ref-board-section>header a:hover{color:#f3d3dc}.ref-board-list{display:contents}.ref-board-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 90px;gap:20px;align-items:center;padding:22px;border-bottom:1px solid var(--line)}.ref-board-row:last-child{border-bottom:0}.ref-board-name{display:flex;gap:16px;align-items:start;min-width:0}.ref-board-name>span:last-child{display:flex;flex-direction:column;gap:5px}.ref-board-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:8px;background:var(--accent-soft);font-size:22px;color:var(--accent)}.ref-board-name strong{font-size:17px;line-height:1.7}.ref-board-name small{font-size:13px;line-height:1.8;color:var(--muted)}.ref-board-count{font-size:13px;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}.ref-archive-badge{background:var(--surface-2);font-size:12px;justify-self:center;padding:4px 10px;border-radius:5px;color:var(--muted)}.ref-archive-notice{margin-block:24px;padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);display:flex;gap:16px}.ref-archive-notice h2{font-size:19px}.ref-archive-notice p{font-size:14px;color:var(--muted)}.ref-archive-notice a{font-size:13px;color:var(--accent)}
@media(max-width:760px){.ref-subject-nav{gap:4px 20px;padding-block:10px}.ref-subject-nav>span{flex-basis:100%;font-size:10px}.ref-subject-nav a{font-size:12px}.ref-hero{grid-template-columns:1fr;gap:20px;padding-block:20px 24px}.ref-montage{height:180px}.ref-photo-main{height:180px}.ref-hero h1{font-size:28px}.ref-hero h1 br{display:none}.ref-hero-copy>p:not(.eyebrow){font-size:14px}.ref-subjects{grid-template-columns:1fr}.ref-subjects>a{padding:17px 18px;border-inline-end:0;border-bottom:1px solid var(--line)}.ref-subjects h2{font-size:18px}.ref-track-grid{grid-template-columns:1fr}.ref-track{padding-block:18px}.ref-track h3{font-size:18px}.ref-archive-strip{display:block;padding:22px}.ref-archive-strip .button{margin-top:18px}.ref-board-legend{display:none}.ref-board-row{grid-template-columns:minmax(0,1fr);gap:10px;padding:18px}.ref-board-name{gap:12px}.ref-board-name strong{font-size:16px}.ref-board-icon{width:36px;height:36px;font-size:20px}.ref-board-count{text-align:start;padding-inline-start:48px}.ref-board-count::after{content:' زیردسته'}.ref-archive-badge{display:none}.ref-board-heading p{font-size:14px}.ref-board-section>header{padding:14px 18px}.ref-archive-notice{padding:18px}.ref-archive-notice>span{display:none}}
html[lang=en] .ref-board-count::after{content:' subcategories'}html[lang=ar] .ref-board-count::after{content:' قسم فرعي'}
@media(max-width:760px){.ref-montage{display:none}}
