/* Scoped site CMS styles. Shared brand/header CSS remains untouched. */
.cms{padding-block:2rem 4rem;direction:rtl;min-width:0}
.cms h1{font-size:clamp(1.5rem,3vw,2.3rem);margin:.9rem 0 1.5rem}
.cms-nav{display:flex;gap:.65rem;flex-wrap:wrap;padding:.75rem;border:1px solid #d7e2db;border-radius:12px;background:#f6faf7}
.cms-nav a{padding:.55rem .75rem;border-radius:8px;color:#164f33;text-decoration:none}
.cms-nav a:hover,.cms-nav a[aria-current]{background:#e2f0e6}
.cms-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.cms-filters{display:grid;grid-template-columns:2fr repeat(3,minmax(0,1fr)) auto;gap:.8rem;align-items:end;margin:1rem 0}
.cms label{display:block;font-weight:600;margin-bottom:.9rem}
.cms input:not([type=checkbox]):not([type=file]),.cms textarea,.cms select{
 display:block;width:100%;box-sizing:border-box;border:1px solid #a2b7a7;border-radius:9px;background:#fff;color:#193f2d;
 font:inherit;padding:.7rem;min-height:44px;margin-top:.35rem}
.cms input:focus-visible,.cms textarea:focus-visible,.cms select:focus-visible,.cms button:focus-visible{outline:3px solid #abca74;outline-offset:2px}
.cms button{cursor:pointer;font:inherit;min-height:40px}
.cms-table-wrap{overflow-x:auto;border:1px solid #d7e2db;border-radius:12px}
.cms-table{border-collapse:collapse;width:100%;min-width:630px;text-align:right}
.cms-table th,.cms-table td{padding:1rem;border-bottom:1px solid #e6ece8}
.cms-table th{background:#eef5ef;color:#234f37}
.cms-table small{display:block;color:#596860;overflow-wrap:anywhere;font-weight:400;margin-top:.35rem}
.cms-pill{display:inline-block;border-radius:100px;background:#e0efe2;color:#24543b;padding:.2rem .65rem;font-size:.9rem}
.cms-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:1.3rem;align-items:start}
.cms-main,.cms-side,.cms-revisions,.cms-setting-panel{padding:1.2rem;border-radius:14px;border:1px solid #dbe6dd;background:#fff}
.cms-help{font-size:.88rem;color:#465c4b;line-height:1.8}
.cms-toolbar{display:flex;flex-wrap:wrap;gap:.4rem;padding:.4rem;background:#edf4ef;border:1px solid #d1e0d5;border-radius:8px}
.cms-toolbar button,.cms-revisions button,.cms-row button{border:1px solid #b6c9ba;border-radius:8px;background:white;color:#164c2d;padding:.35rem .65rem}
.cms #cms-body{direction:rtl;font-family:inherit;min-height:390px;line-height:1.8}
.cms-categories{max-height:210px;overflow:auto;display:grid;grid-template-columns:1fr;gap:.35rem}
.cms-categories label{font-weight:400;margin:0;display:flex;gap:.4rem;align-items:center}
.cms fieldset{border:1px solid #d7e2db;border-radius:10px;margin:1rem 0;padding:.75rem;min-width:0}
.cms-upload-preview{display:block;max-width:100%;max-height:160px;object-fit:cover;margin:.75rem 0}
.cms-upload-preview[hidden]{display:none}
.cms-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.cms-revisions{margin:1.5rem 0}.cms-revisions form{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 0;border-top:1px solid #e0e9e3}
.cms-danger{color:#912c2c!important;border-color:#c98c8c!important}
.cms-setting-panel{margin-block:1rem}.cms-setting-panel h2{font-size:1.25rem}
.cms-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;background:#f7faf8;padding:1rem;margin:.75rem 0;border:1px solid #d9e6dd;border-radius:10px}
.cms-row label{margin:0}.cms-row .wide{grid-column:1/-1}.cms-row-actions{display:flex;gap:.5rem;align-items:end}
.cms-settings-actions{position:sticky;bottom:0;background:white;padding:1rem 0;border-top:1px solid #d6e2d9}
.cms-contact{padding-block:2rem 4rem}.cms-contact h1{font-size:clamp(1.7rem,3vw,2.4rem)}
.contact-lead{font-size:1.15rem;color:#4d6658}.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-block:1.5rem}
.contact-card{border:1px solid #d7e4da;border-radius:15px;padding:1.4rem;background:#f8fbf8;min-width:0}
.contact-card h2{font-size:1.12rem;margin:0 0 .9rem;color:#174f34}
.contact-card a{overflow-wrap:anywhere}.contact-card span{display:block;margin-top:.4rem;color:#4b6656}
@media(max-width:800px){.cms-filters{grid-template-columns:1fr 1fr}.cms-columns{grid-template-columns:1fr}}
@media(max-width:480px){.cms{padding-inline:.5rem}.cms-filters,.cms-row,.contact-grid{grid-template-columns:1fr}
.cms-heading .fb-btn{width:100%;text-align:center}.cms-main,.cms-side{padding:.85rem}.cms-row{padding:.75rem}
.cms-nav a{font-size:.91rem;padding:.45rem}.cms-revisions form{align-items:start;flex-direction:column}}

/* N1 news moderation: no shared header or inline styles changed. */
.news-admin .news-actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap;margin:1rem 0}
.news-admin .news-actions label{display:flex;align-items:center;gap:.45rem;margin:0}
.news-admin .news-actions input{width:20px;height:20px}
.news-admin .news-actions button{min-height:44px;padding:.5rem .8rem}
.news-admin .cms-table td{vertical-align:top}
.news-admin .cms-table input[type=checkbox]{width:20px;height:20px}
.news-admin .cms-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.news-admin .news-log{white-space:pre-wrap;overflow-wrap:anywhere;max-width:330px;font-size:.85rem;direction:ltr}
@media(max-width:600px){
 .news-admin .cms-row{grid-template-columns:1fr}
 .news-admin .news-actions button{flex:1 1 100%}
 .news-admin .cms-table-wrap{max-width:100%}
}/* N1 review list on phones: one card per news item, every column visible */
@media(max-width:600px){
 .news-admin .news-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .news-admin .news-table,.news-admin .news-table tbody,.news-admin .news-table tr,.news-admin .news-table td{display:block;width:100%}
 .news-admin .news-table tr{border-bottom:1px solid #dfe8e2;padding:.6rem 0}
 .news-admin .news-table td{padding:.3rem .8rem;border:0}
 .news-admin .news-table td::before{content:attr(data-label);display:block;font-size:.8rem;color:#5b6b62}
 .news-admin .news-table td small{display:block;overflow-wrap:anywhere}
 .news-admin .news-table a{display:inline-block;min-height:44px;line-height:44px}
}

/* S2 visual editor: same public .prose typography, no inline styles or horizontal page scroll. */
.cms-edit .cms-main,.cms-edit .cms-side,.cms-visual-wrapper,.cms-live-preview{min-width:0}
.cms-visual-label{font-weight:700;margin:.8rem 0 .45rem}
.cms-visual-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.75rem;max-width:100%}
.cms-visual-toolbar button{min-width:44px;min-height:44px;padding:.5rem .65rem;flex:0 0 auto}
.cms-visual-canvas,.cms-live-preview article{
 border:1px solid #bacfc0;border-radius:10px;padding:1rem;background:#fff;min-height:360px;
 direction:rtl;text-align:justify;font-kerning:none;line-height:2;overflow-wrap:anywhere;word-break:normal;
 max-width:100%;box-sizing:border-box;overflow-x:auto
}
.cms-visual-canvas:focus{outline:3px solid #b4d4bb;outline-offset:2px}
.cms-visual-canvas img,.cms-live-preview img{max-width:100%;height:auto}
.cms-visual-canvas table,.cms-live-preview table{border-collapse:collapse;max-width:100%;width:100%;table-layout:fixed}
.cms-visual-canvas td,.cms-visual-canvas th,.cms-live-preview td,.cms-live-preview th{
 border:1px solid #c5d4c8;padding:.5rem;overflow-wrap:anywhere}
.cms-visual-canvas [dir=ltr],.cms-live-preview [dir=ltr]{direction:ltr;text-align:left}
.cms-visual-source{display:none!important}
.cms-live-preview{margin-top:1.5rem;padding:1rem;border:1px solid #dbe6dd;border-radius:12px;background:#f6faf7}
.cms-live-preview h2{font-size:1.1rem;margin:0 0 .7rem}
.cms-live-preview article{min-height:200px}
.cms-visual-canvas blockquote,.cms-live-preview blockquote{border-inline-start:4px solid #82b596;padding-inline-start:1rem}
@media(max-width:800px){.cms-visual-canvas{min-height:320px}}
@media(max-width:390px){
 .cms-visual-toolbar{gap:.3rem}
 .cms-visual-toolbar button{min-width:44px;min-height:44px;padding:.45rem}
 .cms-visual-canvas,.cms-live-preview article{padding:.7rem}
 .cms-live-preview{padding:.6rem}
}
/* headings and table cells are never justified (a wrapped heading stretched its words on phones) */
.cms-visual-canvas :is(h2,h3,h4,th,td,li),.cms-live-preview article :is(h2,h3,h4,th,td,li){text-align:start}
