.cs { --leaf:#205739; max-width:1260px; margin:auto; color:#172e24; }
main .cs-intro { display:block; position:static; padding:16px 0 20px; background:transparent; box-shadow:none; }
.cs-intro h1 { margin:0 0 8px; }
.cs-grid { display:grid; grid-template-columns:minmax(175px, 210px) minmax(0, 1fr); gap:24px; align-items:start; }
.cs [hidden] { display:none !important; }
.cs summary { padding:8px 10px; cursor:pointer; font-weight:700; }
.cs aside { border:1px solid #bbcfbf; background:#eef2e8; border-radius:6px; }
.cs aside nav, .cs #cs-paging { display:block; position:static; padding:8px; width:auto; min-width:0; background:none; box-shadow:none; }
.cs aside ul { margin:0; padding:0 0 0 10px; list-style:none; }
.cs aside nav > ul { padding-left:0; }
.cs aside a { display:block; padding:8px; line-height:1.25; white-space:normal; }
.cs aside a[aria-current] { background:#d8e6d7; font-weight:700; border-left:3px solid var(--leaf); }
.cs form { display:block; background:#fff; padding:16px; border:1px solid #bbcfbf; border-radius:8px; }
.cs input:not([type=checkbox]), .cs select { width:100%; min-height:44px; margin:5px 0 8px; }
.cs fieldset { padding:8px; border:0; border-top:1px solid #d0dcd0; min-width:0; margin:8px 0; }
.cs legend { font-weight:700; padding:0 7px; }
.cs small { font-weight:400; }
.cs-checks { display:flex; gap:4px 12px; flex-wrap:wrap; }
.cs-checks label { display:flex; align-items:center; min-height:42px; gap:5px; margin:0; }
.cs-checks input { flex:none; margin:0; accent-color:var(--leaf); }
.cs button { border:1px solid var(--leaf); background:var(--leaf); color:white; border-radius:5px; min-height:44px; cursor:pointer; padding:7px 12px; }
.cs button:disabled { opacity:.55; cursor:default; }
.cs button.cs-secondary, .cs #cs-chips button { background:#f3f7f0; color:#1e4932; }
.cs button, .cs input, .cs select { scroll-margin-block: 12px 75px; }
.cs-actions, .cs #cs-paging, .cs #cs-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.cs #cs-paging { padding:0; }
.cs #cs-status { margin:12px 0; scroll-margin-block:20px 70px; }
.cs-result { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; margin:12px 0; padding:14px; background:#fff; border:1px solid #bbcfbf; border-radius:8px; }
.cs-result h3 { margin:0 0 6px; }
.cs-result p { margin:5px 0; }
.cs-result img { width:130px; height:130px; object-fit:contain; }
.cs-result figure { margin:0; max-width:130px; }
.cs-result figcaption { font-size:.82rem; }
.cs-result ul { margin:6px 0; padding-left:20px; }
.cs #cs-static ul { padding-left:20px; }
.cs #cs-static li { margin:7px 0; }
.cs #cs-extra { margin:6px 0 12px; }
@media(max-width:780px) {
 .cs { margin-inline:12px; }
 .cs-grid { grid-template-columns:1fr; gap:12px; }
 .cs aside a { min-height:38px; }
}
@media(max-width:500px) {
 .cs-result { grid-template-columns:1fr; }
 .cs-result img { max-width:100%; }
}
/* Keep ordinary fragment navigation immediate when the static catalogue is in use. */
html:has(#cs-static:not([hidden])) { scroll-behavior:auto; }
.cs #cs-static li[id] { scroll-margin-block-start:16px; }
.cs #cs-static li[id]:target { outline:2px solid var(--leaf); outline-offset:3px; }
