html[lang=fa] .reg-archive-filter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:16px;align-items:end;padding:20px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface);margin-block:24px 12px}
html[lang=fa] .reg-archive-filter>div{display:grid;gap:8px;min-width:0}
html[lang=fa] .reg-archive-filter label{font-size:.875rem;font-weight:600}
html[lang=fa] .reg-archive-filter select{width:100%;box-sizing:border-box}
html[lang=fa] .reg-archive-filter .reg-action{cursor:pointer;font-family:inherit;font-size:.9375rem;white-space:nowrap;background:var(--ds-paper)!important;color:var(--ds-brand)!important;justify-content:center}
html[lang=fa] .reg-archive-group{margin-block:28px;scroll-margin-top:150px}
html[lang=fa] .reg-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html[lang=fa] .reg-archive-grid .reg-list-card{margin:0;overflow-wrap:anywhere}
html[lang=fa] .reg-archive-grid h4{font-size:1.0625rem;line-height:1.9;margin-block:10px}
html[lang=fa] .reg-archive-grid h4 a{text-decoration:none!important}
@media(max-width:800px){html[lang=fa] .reg-archive-filter{grid-template-columns:repeat(2,minmax(0,1fr))}html[lang=fa] .reg-archive-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){html[lang=fa] .reg-archive-filter{grid-template-columns:minmax(0,1fr);padding:16px}}

/* Persian registration cards: readable measures and source-owned schedules. */
html[lang=fa] .reg-section-description{max-width:65ch;margin-block:0 24px}
html[lang=fa] .reg-notice-card{box-sizing:border-box;padding:24px;margin-block:0 20px;background:var(--ds-paper);border-color:var(--ds-border)}
html[lang=fa] .reg-card-heading{max-width:72ch}
html[lang=fa] .reg-card-meta{display:flex;flex-wrap:wrap;gap:8px 16px;list-style:none;padding:0;margin:0 0 12px;color:var(--ds-muted);font-size:.85rem;line-height:1.8}
html[lang=fa] .reg-card-meta li+li{border-inline-start:1px solid var(--ds-border);padding-inline-start:16px}
html[lang=fa] .reg-notice-card h3{font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.85;margin:0 0 12px;color:var(--ds-brand);overflow-wrap:anywhere}
html[lang=fa] .reg-notice-card .reg-card-summary{max-width:66ch;margin:0;color:var(--ds-muted);font-size:.95rem;line-height:1.95}
html[lang=fa] .reg-card-schedule{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:24px 0 0;padding:20px 0 0;border-block-start:1px solid var(--ds-border)}
html[lang=fa] .reg-card-schedule>div{min-width:0}
html[lang=fa] .reg-card-schedule dt{font-size:.9rem;font-weight:650;line-height:1.8;margin-bottom:6px}
html[lang=fa] .reg-card-schedule dd{margin:0;font-size:.95rem;line-height:1.9;color:var(--ds-text)}
html[lang=fa] .reg-card-schedule time{display:inline-block}
html[lang=fa] .reg-card-schedule .reg-note{display:block;font-size:.82rem}
html[lang=fa] .reg-card-dates-detail summary{min-height:44px;box-sizing:border-box;padding-block:10px;cursor:pointer;color:var(--ds-brand);font-size:.88rem;text-decoration:underline;text-underline-offset:.2em}
html[lang=fa] .reg-card-dates-detail ul{list-style:none;padding:0;margin:8px 0}
html[lang=fa] .reg-card-dates-detail li{padding-block:10px;border-block-start:1px solid var(--ds-border);font-size:.85rem}
html[lang=fa] .reg-card-dates-detail strong,html[lang=fa] .reg-card-dates-detail li>span{display:block}
html[lang=fa] .reg-card-footer{display:flex;justify-content:flex-start;margin-top:20px}
html[lang=fa] .reg-card-footer .reg-action{font-size:.9rem;padding:9px 16px;min-height:46px}
html[lang=fa] .reg-card-dates-detail summary:focus-visible{outline:3px solid var(--ds-focus);outline-offset:4px}
@media(max-width:650px){html[lang=fa] .reg-notice-card{padding:18px}html[lang=fa] .reg-card-schedule{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:18px;padding-top:16px}html[lang=fa] .reg-card-schedule>div+div{padding-top:16px;border-top:1px solid var(--ds-border)}html[lang=fa] .reg-card-footer .reg-action{width:100%}html[lang=fa] .reg-card-meta{gap:6px 10px}html[lang=fa] .reg-card-meta li+li{padding-inline-start:10px}}

/* The existing warm surface, paper and brand tokens define both themes. */
html[lang=fa] body[data-home-system][data-university-emblems] main .reg-list-card.reg-notice-card{background:var(--ds-surface)}
html[lang=fa] .reg-card-schedule{background:var(--ds-paper);padding:18px;border:0;border-radius:var(--ds-radius);box-sizing:border-box}
html[lang=fa] .reg-card-schedule dt{color:var(--ds-accent)}
html[lang=fa] .reg-card-footer .reg-action{background:var(--ds-brand)!important;color:var(--ds-paper)!important;border-color:var(--ds-brand)}
html[lang=fa] .reg-card-footer .reg-action:hover{background:var(--ds-brand-hover)!important;border-color:var(--ds-brand-hover);color:var(--ds-paper)!important}
@media(max-width:650px){html[lang=fa] .reg-card-schedule{padding:16px}}
