/* Neutral RuWANT-specific namespace. Integrator should align spacing with existing design tokens. */
.rw-news{max-width:1200px;margin:2rem auto;padding:0 1rem;font:inherit;color:inherit}
.rw-news__heading{display:flex;justify-content:space-between;gap:1rem;align-items:end;margin-bottom:1.25rem}
.rw-news__heading h2,.rw-news h1{margin:.1rem 0 1rem}
.rw-news__eyebrow,.rw-news__category,.rw-news__source{font-size:.85rem;opacity:.7}
.rw-news__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}
.rw-news__card{border:1px solid rgba(127,127,127,.25);border-radius:1rem;padding:1.15rem;background:rgba(127,127,127,.025)}
.rw-news__card h2,.rw-news__card h3{font-size:1.12rem;line-height:1.35;margin:.5rem 0}
.rw-news__card a,.rw-news__sources a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.rw-news__lead{font-size:1.2rem;line-height:1.6;color:inherit;opacity:.8}
.rw-news--article{max-width:790px;line-height:1.7}
.rw-news--article h1{line-height:1.15;font-size:clamp(1.8rem,4vw,2.8rem)}
.rw-news__body p{margin:1rem 0}
.rw-news__sources{padding:1rem 1.2rem;margin:2rem 0;border-top:1px solid rgba(127,127,127,.3);background:rgba(127,127,127,.04)}
.rw-news__pagination{display:flex;align-items:center;gap:1rem;justify-content:center;margin:2rem 0}
@media(max-width:620px){.rw-news__heading{align-items:start}.rw-news__heading h2{font-size:1.4rem}}
.rw-news a,.rw-news-admin a{overflow-wrap:anywhere}.rw-news-admin{max-width:1200px;padding-bottom:3rem}.rw-news-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}.rw-news-admin-grid article{border:1px solid var(--w-color-border-furniture,#ccc);border-radius:12px;padding:16px;min-width:0;overflow-wrap:anywhere}.rw-news-admin input:not([type=checkbox]),.rw-news-admin textarea,.rw-news-admin select{max-width:100%;box-sizing:border-box;width:100%}.rw-news-admin textarea{min-height:140px}.rw-news-admin button,.rw-news button,.rw-news select{min-height:44px;margin:4px;max-width:100%}.rw-news-note{border-left:4px solid var(--rw-orange,#ff8000);padding:12px}.rw-news__pagination{flex-wrap:wrap}.rw-news-admin details{margin:12px 0;overflow-wrap:anywhere}

.rw-news--listing,.rw-news--article{margin-block:0;padding-inline:0}.rw-news-admin-grid a{display:inline-flex;align-items:center;min-height:44px}
.rw-news h1,.rw-news h2,.rw-news h3,.rw-news__body{overflow-wrap:anywhere}

/* Явные границы полей и сенсорные размеры административной редакции. */
.rw-news-admin form[method=get]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;align-items:end;margin:16px 0}
.rw-news-admin form[method=get] label{display:flex;flex-direction:column;gap:6px;min-width:0}
.rw-news-admin input:not([type=checkbox]),.rw-news-admin select{min-height:44px;padding:8px 12px;border:1px solid var(--w-color-border-furniture,#ccc);border-radius:6px;background:var(--w-color-surface-page,#fff);color:inherit}
.rw-news-admin a.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:normal;box-sizing:border-box}

.rw-news__ai-disclosure{font-size:13px;line-height:1.6;color:#5b6068;margin:24px 0 16px}.rw-news-admin pre{white-space:pre-wrap;overflow-wrap:anywhere}.rw-news-admin .rw-script{width:100%;min-height:24rem;box-sizing:border-box}.rw-news-admin .rw-action-row{display:flex;flex-wrap:wrap;gap:12px}.rw-news-admin input[type="datetime-local"],.rw-news-admin input[type="time"]{max-width:100%;box-sizing:border-box}

/* Общая компактная навигация; горизонтально прокручивается только ряд вкладок. */
.rw-editor{min-width:0}.rw-editor-tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:6px 0 12px;margin:8px 0 18px;overscroll-behavior-x:contain}.rw-editor-tabs a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid var(--w-color-border-furniture,#ccc);border-radius:6px;text-decoration:none;white-space:nowrap}.rw-editor-tabs a[aria-current=page]{border-color:var(--brand,#f47716);font-weight:700}.rw-editor-table{width:100%;border-collapse:collapse;table-layout:fixed}.rw-editor-table th,.rw-editor-table td{padding:12px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--w-color-border-furniture,#ddd);overflow-wrap:anywhere}.rw-editor-table th:first-child{width:32%}.rw-editor-table a,.rw-editor-recent a,.rw-editor-pagination a{display:inline-flex;align-items:center;min-height:44px}.rw-editor-actions a{display:flex}.rw-editor-actions details{margin:0}.rw-editor-actions summary,.rw-editor details>summary{min-height:44px;cursor:pointer;line-height:1.5;padding:8px 0}.rw-editor-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}.rw-editor-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rw-editor-stats a{padding:12px;border:1px solid var(--w-color-border-furniture,#ddd);border-radius:8px}.rw-editor-stats strong{display:block;font-size:24px}.rw-editor-recent{padding:0;list-style:none}.rw-editor-recent li{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 0;border-bottom:1px solid var(--w-color-border-furniture,#ddd)}.rw-editor-recent li>a:first-child{flex-basis:100%;font-weight:600}.rw-editor-events{padding-left:20px;line-height:1.7}.rw-editor-facts{display:grid;grid-template-columns:minmax(130px,1fr) 3fr;gap:12px}.rw-editor-facts dt{font-weight:600}.rw-editor-facts dd{margin:0;overflow-wrap:anywhere}.rw-editor-row{border-bottom:1px solid var(--w-color-border-furniture,#ddd);padding:8px 0}.rw-editor input[type=checkbox]{min-width:20px;min-height:20px;margin:12px}.rw-editor form ul{padding-left:0;list-style:none}
@media(max-width:720px){.rw-editor-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rw-editor-table thead{display:none}.rw-editor-table,.rw-editor-table tbody{display:block}.rw-editor-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px 0;border-bottom:1px solid var(--w-color-border-furniture,#ddd)}.rw-editor-table td{display:block;min-width:0;border:0;padding:4px 6px}.rw-editor-table td:first-child,.rw-editor-table .rw-editor-actions,.rw-editor-table td[colspan]{grid-column:1/-1}.rw-editor-table [data-label]::before{content:attr(data-label);display:block;font-size:12px;opacity:.7}.rw-editor-actions{display:flex!important;flex-wrap:wrap;gap:0 14px}.rw-editor-facts{grid-template-columns:1fr;gap:4px}.rw-editor-facts dd{margin-bottom:12px}.rw-editor h1{font-size:26px}}

.rw-editor details>summary,.rw-editor pre,.rw-editor a{overflow-wrap:anywhere}.rw-editor details>summary{max-width:100%}
