/* Vehar Stage 4 v1.0.4 — article / search / archive / comments
   Scoped selectors deliberately outrank legacy inline page styles. */

/* Article: a readable measure, responsive media and intentional hierarchy. */
body.single .vs-single-page{max-width:1190px;padding:20px 16px 36px}
body.single .vs-single-page .vs-single-grid{grid-template-columns:minmax(0,235px) minmax(0,1fr) minmax(0,235px);gap:18px}
body.single .vs-single-page .vs-article-box{background:#fff;border:1px solid #e3ece0;border-radius:14px;overflow:hidden;box-shadow:0 5px 24px rgba(0,59,17,.055)}
body.single .vs-single-page .vs-post-title{font-size:clamp(23px,2.2vw,29px);line-height:1.85;letter-spacing:-.025em;text-wrap:pretty;padding-inline:16px}
body.single .vs-single-page .vs-kicker{font-size:13px;line-height:1.9;padding-inline:14px}
body.single .vs-single-page .vs-post-lead{font-size:15px;line-height:2.25;color:#225c2d;padding-inline:20px;text-align:right}
body.single .vs-single-page .vs-content{
  font-size:var(--vehar-reading-size,16.5px);line-height:2.23;
  padding:22px clamp(16px,3.1vw,34px) 16px;text-align:right;
  overflow-wrap:anywhere;word-break:normal;color:#263128;
}
body.single .vs-single-page .vs-content p{margin-bottom:1.25em}
body.single .vs-single-page .vs-content h2{font-size:1.31em;line-height:1.8;margin:1.7em 0 .75em}
body.single .vs-single-page .vs-content h3{font-size:1.14em;line-height:1.8;margin:1.5em 0 .6em}
body.single .vs-single-page .vs-content h4{font-size:1.06em;line-height:1.8}
body.single .vs-single-page .vs-content :where(img,video,iframe,object,embed,canvas,svg){max-width:100%;height:auto}
body.single .vs-single-page .vs-content iframe{aspect-ratio:16/9;min-height:200px}
body.single .vs-single-page .vs-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;direction:rtl;margin-block:18px}
body.single .vs-single-page .vs-content :where(td,th){padding:10px 12px;border:1px solid #d9e6d4;white-space:normal;min-width:80px}
body.single .vs-single-page .vs-content th{background:#eff6eb}
body.single .vs-single-page .vs-content :where(pre,code){direction:ltr;unicode-bidi:plaintext;max-width:100%}
body.single .vs-single-page .vs-content pre{overflow-x:auto;padding:14px;background:#f5f8f4;border:1px solid #e3ebe0;border-radius:8px}
body.single .vs-single-page .vs-content a{text-underline-offset:3px;text-decoration:underline;text-decoration-color:#79ab81}
body.single .vs-single-page .vs-feature img{width:100%;height:auto;object-fit:contain}
body.single .vs-single-page .vs-post-toolbar{min-height:46px;height:auto;padding-inline:12px}
body.single .vs-single-page .vs-post-tools :where(button,a){min-width:35px;min-height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px}
body.single .vs-single-page .vs-post-tools :where(button,a):hover{background:#eef6eb}
body.single .vs-single-page .vs-share-row{flex-wrap:wrap;gap:11px}
body.single .vs-single-page .vs-share-row :where(a,button){width:40px;height:40px;font-size:16px;transition:background .15s ease}
body.single .vs-single-page .vs-tags a{line-height:1.8}
body.single .vs-reading-tools{margin:0 auto 16px;padding:9px 13px;max-width:max-content;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;background:#f3f8f0;border:1px solid #e0ebdc;border-radius:11px;font-size:12px}
body.single .vs-reading-label{color:#496a4c;margin-inline:4px;font-weight:800}
body.single .vs-reading-btn{cursor:pointer;background:#fff;color:#075720;border:1px solid #bed5bd;border-radius:8px;padding:7px 10px;min-height:36px;line-height:1.5;font:inherit;font-weight:800}
body.single .vs-reading-btn:hover{background:#e1f0df}
body.single .vs-reading-btn:focus-visible{outline:3px solid #d97706;outline-offset:2px}

/* Related cards: consistent news-grid styling and no tiny tap targets. */
body.single .vs-related-manual .vs-related-mini-grid{gap:12px}
body.single .vs-related-manual .vs-side-item a{min-height:110px}
body.single .we3-related{max-width:1080px;border:1px solid #e0eade;border-radius:14px;padding:18px;box-shadow:0 5px 20px rgba(0,48,10,.045)}
body.single .we3-related .we3-r-h{font-size:17px;padding-bottom:12px;margin-bottom:14px}
body.single .we3-related .we3-r-grid{gap:14px}
body.single .we3-related .we3-r-thumb{height:auto;aspect-ratio:4/3;border-radius:11px}
body.single .we3-related .we3-r-title{font-size:13px;line-height:1.75}
body.single .we3-related a:focus-visible{outline:3px solid #d97706;outline-offset:2px}

/* Comments: fix layout nesting, improve legibility, keyboard and mobile forms. */
body.single .vs-comments-holder>.we3-comments{max-width:1080px;border:1px solid #e2ecde;border-radius:14px;padding:18px;box-shadow:0 5px 20px rgba(0,48,10,.045)}
body.single #comments .we3-c-head{display:flex;flex-direction:column;align-items:stretch;gap:8px}
body.single #comments .we3-c-title{font-size:19px;line-height:1.8;margin:0}
body.single #comments .we3-c-sub{font-size:12.5px;line-height:1.9;margin:0 0 7px}
body.single #comments .we3-c-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.single #comments .we3-c-tabs button{min-height:38px;padding:7px 13px;border-radius:8px}
body.single #comments .we3-c-sort{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
body.single #comments .we3-c-sort-select{min-height:42px;border:1px solid #cbdac5;border-radius:8px;padding:6px 10px}
body.single #comments li.we3-comment{max-width:100%}
body.single #comments .we3-c-text{overflow-wrap:anywhere;line-height:2.1;font-size:14.5px}
body.single #comments .we3-c-form{margin-top:14px}
body.single #comments .we3-c-field label{display:block;margin:0 0 6px;color:#25462b;font-size:13px;font-weight:800}
body.single #comments .we3-c-field :where(input,textarea){width:100%;max-width:100%;font:inherit;font-size:15px;line-height:1.85;border-radius:9px}
body.single #comments .we3-c-field textarea{min-height:130px;resize:vertical}
body.single #comments .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:9px;font-size:12.5px;line-height:1.8}
body.single #comments .comment-form-cookies-consent input{width:17px;height:17px;margin-top:4px;flex:none}
body.single #comments .comment-form-cookies-consent label{margin:0}
body.single #comments .we3-c-btn{min-height:42px}
body.single #comments [hidden]{display:none!important}

/* Category/tag/author/date archive: align with stage3 front-page treatment. */
body.archive .va-archive.va-archive{max-width:1180px;padding:20px 16px 0}
body.archive .va-archive .va-archive-head{margin-bottom:18px}
body.archive .va-archive .va-archive-title{font-size:clamp(21px,2vw,27px);line-height:1.8}
body.archive .va-archive .va-archive-desc{font-size:14px;line-height:2.1;border-radius:0 8px 8px 0}
body.archive .va-archive .va-top-section,body.archive .va-archive .va-body-shell{border-radius:14px;border-color:#e0ebdd}
body.archive .va-archive .va-top-grid,body.archive .va-archive .va-body-grid{gap:18px}
body.archive .va-archive .va-overlay-card{border-radius:12px}
body.archive .va-archive .va-news-row{gap:15px;padding-block:15px;border-color:#e2ebe0}
body.archive .va-archive .va-news-body h2{font-size:clamp(15px,1.55vw,18px);line-height:1.85}
body.archive .va-archive .va-news-body p{font-size:13px;line-height:2;color:#4b5c4d}
body.archive .va-archive .va-news-date{display:inline-block;color:#607560;font-size:11.5px;line-height:1.8;margin-top:7px}
body.archive .va-archive .va-news-thumb{overflow:hidden;border-radius:9px}
body.archive .va-archive .va-news-thumb img{height:100%;object-fit:cover}
body.archive .va-archive .va-tab-panel[hidden]{display:none!important}
body.archive .va-archive .va-tab-btn{min-height:38px;border-radius:7px}
body.archive .va-archive .va-tab-btn:focus-visible{outline:3px solid #d97706;outline-offset:2px}
body.archive .va-archive .va-pagination :where(a,span){min-width:38px;min-height:38px}

/* Search: override old dark cards with a restrained light news editorial system. */
body.search .we3-search{max-width:1180px;margin:0 auto;padding:20px 16px 0;direction:rtl}
body.search .we3-search .we3-archive-header{margin-bottom:12px}
body.search .we3-search .we3-archive-title{font-size:clamp(21px,2vw,26px);line-height:1.85}
body.search .we3-search .we3-search-box{max-width:820px!important;margin:0 auto 23px!important}
body.search .we3-search .we3-search-box form{display:flex;gap:10px;flex-wrap:wrap}
body.search .we3-search .we3-search-box input[type="search"]{flex:1;min-width:160px;min-height:48px;border:1px solid #bdcfb9;border-radius:10px;padding:9px 14px;font:inherit;font-size:15px}
body.search .we3-search .we3-search-box :where(button,input[type="submit"]){min-height:48px;border:0;border-radius:10px;padding:9px 21px;background:#00621b;color:#fff;font:inherit;font-weight:800;cursor:pointer}
body.search .we3-search .we3-archive-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.search .we3-search .we3-card{background:#fff;border:1px solid #e2ebe1;border-radius:14px;box-shadow:0 5px 19px rgba(0,60,10,.065);transition:transform .2s ease,box-shadow .2s ease}
body.search .we3-search .we3-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,60,10,.1)}
body.search .we3-search .we3-card__body{background:#fff;gap:10px}
body.search .we3-search .we3-card__title{font-size:17px;line-height:1.9}
body.search .we3-search .we3-card__title a{color:#14321c!important}
body.search .we3-search .we3-card__title a:hover{color:#007227!important}
body.search .we3-search .we3-card__excerpt{color:#526352!important;font-size:13px;line-height:2}
body.search .we3-search .we3-meta{color:#687b68!important;opacity:1}
body.search .we3-search .we3-meta__item{white-space:normal}
body.search .we3-search .we3-card__footer{padding:0 16px 16px;background:#fff}
body.search .we3-search .we3-card__btn{background:#edf6e9;color:#005e19!important;border:1px solid #d6e8d1;border-radius:8px;font-size:13px}
body.search .we3-search .we3-loadmore-btn{background:#00631a;border:0;box-shadow:0 3px 12px rgba(0,75,11,.12);min-height:44px}
body.search .we3-search .we3-search-pagination[hidden]{display:none!important}
body.search .we3-search .we3-pagination{margin:20px auto;display:flex;justify-content:center}
body.search .we3-search .we3-pagination .nav-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
body.search .we3-search .we3-pagination :where(a,span.page-numbers){min-width:38px;min-height:38px;padding:8px 12px;border:1px solid #d2e3cf;border-radius:8px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
body.search .we3-search .we3-pagination .current{background:#00631a;color:#fff}
body.search .we3-search .we3-empty{background:#fff;border:1px solid #e2ece0;border-radius:13px;padding:25px 14px!important}
body.search .we3-search .we3-empty .we3-chip{background:#eff7eb;color:#225a2a;border:1px solid #d6e9d0;border-radius:999px;padding:7px 13px}

@media(max-width:1080px){
  body.single .vs-single-page .vs-single-grid{grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);grid-template-areas:"right main" "left main";gap:16px}
  body.archive .va-archive .va-top-grid,body.archive .va-archive .va-body-grid{gap:14px}
}
@media(max-width:820px){
  body.single .vs-single-page .vs-single-grid{display:block}
  body.single .vs-single-page .vs-main{width:100%}
  body.single .vs-single-page :where(.vs-right,.vs-left){display:none}
  body.search .we3-search .we3-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  body.single .vs-single-page{padding:12px 10px 20px}
  body.single .vs-single-page .vs-article-box{border-radius:11px}
  body.single .vs-single-page .vs-post-title{font-size:22px;line-height:1.85;padding-inline:12px}
  body.single .vs-single-page .vs-content{font-size:var(--vehar-reading-size,16px);line-height:2.25;padding:18px 16px 12px}
  body.single .vs-reading-tools{margin-inline:10px;max-width:calc(100% - 20px);gap:5px}
  body.single .vs-reading-btn{padding:7px 8px;font-size:11.5px}
  body.single .vs-reading-label{flex-basis:100%;text-align:center}
  body.single .vs-single-page .vs-post-lead{font-size:14px;padding-inline:16px}
  body.single .we3-related{padding:14px;margin-inline:10px}
  body.single .we3-related .we3-r-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.single .we3-related .we3-r-title{font-size:12px}
  body.single .vs-comments-holder>.we3-comments{margin:14px 10px;padding:13px}
  body.single #comments .we3-c-text{font-size:14px}
  body.single #comments .we3-c-tabs button{font-size:12px;padding-inline:10px}
  body.archive .va-archive.va-archive,body.search .we3-search{padding:13px 10px 0}
  body.archive .va-archive .va-news-row{grid-template-columns:1fr;gap:8px}
  body.archive .va-archive .va-news-thumb img{height:auto;aspect-ratio:16/10}
  body.search .we3-search .we3-archive-grid{grid-template-columns:1fr;gap:14px}
  body.search .we3-search .we3-card__thumb{aspect-ratio:16/9}
  body.search .we3-search .we3-search-box form{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  body.search .we3-search .we3-card{transition:none}
  body.search .we3-search .we3-card:hover{transform:none}
}
@media print{
  body.single .vs-reading-tools, body.single .vs-comments-holder,body.single .we3-actionbar,body.single .we3-share-pop,body.single .we3-suggest,body.single .we3-related{display:none!important}
  body.single .vs-single-page .vs-single-grid{display:block!important}
  body.single .vs-single-page .vs-content{font-size:12pt!important;line-height:1.8;color:#000}
}

/* Final visual polish for search headings, image placeholders and controls. */
body.search .we3-search .we3-archive-header{
  background:#f1f7ef!important;border:1px solid #dceadd!important;
  border-radius:12px!important;box-shadow:none!important;padding:14px 17px!important;
}
body.search .we3-search .we3-archive-title{background:none!important;color:#064f18!important;margin:0!important}
body.search .we3-search .we3-card__thumb{background:#dce8d7}
body.search .we3-search .we3-card__placeholder{background:linear-gradient(145deg,#d7e4d2,#eaf2e7)!important}
body.search .we3-search #we3-loadmore{background:#00631a!important;box-shadow:0 3px 12px rgba(0,75,11,.12)!important;border:0!important;border-radius:9px;min-height:44px}
body.archive .va-archive .va-tab-btn.is-active{background:#00601a!important;color:#fff!important;border-color:#00601a!important}
