﻿.rules-manager{color:#5d422d}.rules-manager-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.rules-manager-status{padding:16px 20px;background:#f3eadc;border:1px solid #e7d5bd;border-radius:13px;line-height:2;font-size:12px}.rules-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.rules-summary>div{display:grid;gap:8px;background:#fff;border:1px solid #e4d5c4;border-radius:16px;padding:22px}.rules-summary strong{font-size:28px;color:#89613f}.rules-summary span{font-size:12px;color:#8e7a65}.rules-manager-filters{display:flex;gap:12px;margin:25px 0}.rules-manager-filters input,.rules-manager-filters select{font:inherit;border:1px solid #d7c4ad;border-radius:12px;padding:13px;background:#fff;font-size:12px}.rules-manager-filters input{flex:1;min-width:0}.rules-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.rule-manager-card{border:1px solid #e1d0bb;background:#fffdf8;border-radius:20px;padding:25px;min-width:0}.rule-manager-card.inactive{background:#f6f2eb;border-color:#e2dacf}.rule-manager-head{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#9a7651;font-size:11px}.rule-state{padding:5px 10px;border-radius:30px;background:#e7f1e6;color:#548252;font-size:10px}.inactive .rule-state{background:#e9e5de;color:#958878}.rule-manager-card h2{font-size:18px;line-height:1.9;margin:16px 0}.rule-body{white-space:pre-wrap;line-height:2.2;overflow-wrap:anywhere;font-size:13px;color:#75634e}.rule-clauses{border:1px solid #eee0cd;background:#faf5eb;border-radius:13px;margin:18px 0;padding:15px}.rule-clauses strong{font-size:11px;color:#9a754a}.rule-clauses p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2;font-size:12px;color:#7f6c56;margin:8px 0 14px}.rule-clauses>div:last-child p{margin-bottom:0}.rule-dates{font-size:10px;color:#a08a71;line-height:1.9}.rule-manager-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.rule-manager-actions button{font-size:11px}.rule-delete{font:700 11px IRANSans,Tahoma;border:1px solid #e8c6bd;border-radius:10px;padding:10px 14px;background:#fff3ed;color:#b06349;cursor:pointer}.rule-editor-dialog{width:min(650px,calc(100vw - 26px));border:0;border-radius:20px;padding:25px;background:#fffdf7;color:#65472d;max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #36231b66;font-family:IRANSans,Tahoma;direction:rtl}.rule-editor-dialog::backdrop{background:#2b2014b8;backdrop-filter:blur(3px)}.rule-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.rule-editor-head h2{font-size:19px}.rule-editor-head button{border:0;border-radius:10px;padding:5px 12px;font-size:25px;background:#f1e5d4;color:#765538}.rule-editor-dialog form>label{display:grid;gap:8px;font-size:12px;margin:15px 0}.rule-editor-dialog input:not([type=checkbox]),.rule-editor-dialog textarea{font:inherit;width:100%;box-sizing:border-box;border:1px solid #d9c5ac;border-radius:11px;background:#fff;padding:13px;line-height:1.9}.rule-editor-dialog textarea{min-height:130px;resize:vertical}.rule-editor-dialog .rule-active-choice{display:flex;align-items:center}.rule-active-choice input{width:19px;height:19px;accent-color:#88613c}.rule-editor-status{font-size:12px;color:#b05b36;line-height:1.9}.rule-editor-dialog .form-primary{border:0;background:#805b3c;border-radius:12px;padding:13px 22px;color:white;font:700 12px IRANSans,Tahoma;cursor:pointer}.rules-empty{padding:45px;text-align:center;color:#967b60;border:1px dashed #ccb696;border-radius:18px;grid-column:1/-1}.rules-manager button:disabled,.rule-editor-dialog button:disabled{opacity:.5;cursor:default}
.public-rules{--rules-brown:#5c3c28;--rules-ink:#4b3422;--rules-muted:#97816a;--rules-line:#e7d7c1;margin:0;background:#faf6ee;color:var(--rules-ink);font-family:IRANSans,Tahoma,sans-serif}.public-rules *{box-sizing:border-box}.public-rules a{text-decoration:none;color:inherit}.rules-site-header{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:20px max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid var(--rules-line);background:#fffdf8}.rules-brand{display:flex;gap:13px;align-items:center}.rules-brand>span{display:grid;place-items:center;width:47px;height:47px;border-radius:14px;background:var(--rules-brown);color:#efd4ae;font-size:28px}.rules-brand strong{font-size:16px}.rules-brand small{font-size:10px;display:block;margin-top:6px;color:var(--rules-muted);font-weight:400}.rules-site-header>a:last-child{font-size:12px;color:#906d4c}.rules-hero{padding:65px max(24px,calc((100vw - 1180px)/2));background:radial-gradient(circle at 10% 20%,#9a754950,transparent 35%),linear-gradient(120deg,#372414,#725136);color:#fff4e5}.rules-eyebrow{font-size:12px;display:inline-block;border:1px solid #dcc09a50;border-radius:30px;background:#ffffff09;padding:8px 14px;color:#e3c29a}.rules-hero h1{font-size:39px;line-height:1.7;margin:18px 0}.rules-hero>p{font-size:14px;line-height:2.2;color:#dbc6ad;max-width:700px}.rules-hero-stat{margin-top:28px;display:flex;align-items:center;gap:10px;font-size:12px;color:#dcc6a9}.rules-hero-stat b{font-size:24px;color:#f0d1a4}.rules-hero-stat span{margin-right:20px;border-right:1px solid #ab866055;padding-right:25px}.rules-public-content{max-width:1180px;padding:35px 24px 60px;margin:auto}.rules-public-tools{display:flex;align-items:center;gap:15px;border:1px solid var(--rules-line);background:white;padding:18px 22px;border-radius:17px}.rules-public-tools label{font-size:12px;color:#937759;white-space:nowrap}.rules-public-tools input{flex:1;min-width:0;font:inherit;border:0;padding:10px;background:#faf7f1;border-radius:10px;font-size:12px}.rules-public-tools>span{font-size:11px;color:var(--rules-muted);white-space:nowrap}.rules-category-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:23px 0 30px}.rules-category-tabs button{font:600 12px IRANSans,Tahoma;border:1px solid var(--rules-line);border-radius:30px;padding:10px 18px;background:#fff;cursor:pointer;color:#987a59}.rules-category-tabs button.active{background:var(--rules-brown);color:#fff1da;border-color:var(--rules-brown)}.rules-public-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}.rule-public-card{background:#fffdf8;border:1px solid var(--rules-line);border-radius:24px;padding:30px;position:relative;box-shadow:0 10px 25px #78503205;overflow:hidden}.rule-public-card:before{content:'';position:absolute;top:0;right:0;left:0;height:4px;background:linear-gradient(90deg,#eee0c9,#b28a56)}.rule-card-heading{display:flex;gap:17px;align-items:center;margin-bottom:22px}.rule-number{display:grid;place-items:center;width:49px;height:54px;border-radius:15px;background:#efe3ce;color:#9c774e;font-size:19px;font-weight:700;flex-shrink:0}.rule-card-heading small{font-size:10px;color:#ae906a}.rule-card-heading h2{font-size:19px;line-height:1.9;margin:7px 0 0}.public-rules .rule-body{font-size:14px;line-height:2.3;color:#806a52}.rule-public-card footer{display:flex;flex-wrap:wrap;gap:15px;font-size:10px;color:#b69e80;padding-top:18px;border-top:1px solid #eee4d4;margin-top:25px}.rules-public-note{margin-top:35px;border:1px solid #dec7a5;background:#f0e6d6;border-radius:20px;padding:27px}.rules-public-note strong{font-size:17px;color:#7c5939}.rules-public-note p{font-size:13px;line-height:2;color:#9c805f}.rules-site-footer{text-align:center;font-size:11px;color:#b9a287;background:#39291c;padding:25px}.public-rules [hidden]{display:none!important}.public-rules a:focus-visible,.public-rules button:focus-visible{outline:3px solid #ac8450;outline-offset:4px}
@media(max-width:800px){.rules-manager-grid,.rules-public-grid{grid-template-columns:1fr}.rules-hero h1{font-size:31px}.rules-public-tools label{display:none}}@media(max-width:550px){.rules-summary{gap:8px}.rules-summary>div{padding:15px}.rules-summary span{font-size:10px}.rules-manager-filters{gap:8px}.rules-manager-filters input,.rules-manager-filters select{font-size:11px;padding:11px}.rule-manager-card{padding:20px}.rule-editor-dialog{padding:18px}.rules-site-header{padding:15px;gap:10px}.rules-brand strong{font-size:13px}.rules-site-header>a:last-child{font-size:10px}.rules-brand>span{width:38px;height:38px;font-size:23px}.rules-brand small{font-size:9px}.rules-hero{padding:40px 20px}.rules-hero h1{font-size:26px}.rules-hero>p{font-size:12px}.rules-hero-stat span{padding-right:14px;margin-right:8px;font-size:11px}.rules-public-content{padding:25px 16px 40px}.rules-public-tools{gap:10px;padding:12px}.rules-category-tabs button{font-size:10px;padding:9px 13px}.rule-public-card{padding:23px}.rule-card-heading h2{font-size:17px}.public-rules .rule-body{font-size:13px}.rules-public-note strong{font-size:14px}}
