.sops-page { padding: 50px 0 80px; overflow-wrap: anywhere; }
.sops-page [hidden] { display: none !important; }
.sops-page :is(a,button,input,summary):focus-visible { outline: 3px solid #087b57; outline-offset: 3px; }
.sops-intro { max-width: 850px; }
.sops-back { display: inline-block; margin-bottom: 28px; color: #176235; font-weight: 700; text-decoration: none; }
.sops-intro .section-kicker { color: #176235; margin-bottom: 10px; }
.sops-intro h1 { max-width: 790px; margin-bottom: 20px; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.sops-intro > p:last-child { margin: 0 0 28px; max-width: 720px; font-size: 1.1rem; color: var(--muted); }
.sops-context { max-width: 920px; margin-bottom: 28px; padding: 22px 26px; border-left: 4px solid var(--green-deep); border-radius: 0 16px 16px 0; background: #e9f1eb; }
.sops-context h2 { font-size: 1.25rem; margin: 0 0 8px; }
.sops-context p { margin: 0 0 10px; }
.sops-context p:last-child { margin-bottom: 0; }
.sops-controls { margin: 0 0 38px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.sops-controls > label { display: block; margin-bottom: 8px; font-weight: 800; }
.sops-search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sops-search-row input { flex: 1 1 280px; min-width: 0; padding: 12px 15px; border: 1px solid #849b91; border-radius: 10px; font: inherit; }
.sops-page button { font: inherit; cursor: pointer; }
.sops-search-row button, .sops-actions button { padding: 9px 15px; border: 1px solid #758d80; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.sops-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sops-filters button { padding: 8px 14px; border: 1px solid #90aa9a; border-radius: 999px; background: transparent; color: var(--ink); }
.sops-filters button[aria-pressed="true"] { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
#sops-count { margin: 14px 0 0; color: var(--muted); font-weight: 700; }
.sops-empty { margin-top: 15px; padding: 18px; border-radius: 12px; background: #e9f1eb; }
.sops-empty p { margin: 4px 0 0; }
.sops-group { margin: 0 0 44px; }
.sops-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 20px; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.sops-group h2 span { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.sops-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }
.sops-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 25px rgba(4,29,54,.045); scroll-margin-top: 95px; }
.sops-card:has(> details[open]) { grid-column: span 2; }
.sops-card details[id] { scroll-margin-top: 95px; }
.sops-card > details > summary { display: flex; flex-direction: column; gap: 7px; padding: 23px; cursor: pointer; list-style: none; }
.sops-card > details > summary::-webkit-details-marker { display: none; }
.sops-card > details > summary::marker { content: ''; }
.sops-category, .sops-format { color: #176235; font-weight: 800; font-size: .9rem; }
.sops-card > details > summary strong { font-size: 1.27rem; line-height: 1.28; }
.sops-summary { color: var(--muted); }
.sops-open { margin-top: 6px; color: #176235; font-weight: 800; }
.sops-open span { font-size: 1.25rem; vertical-align: middle; }
.sops-card details[open] > summary .sops-open span { display: inline-block; transform: rotate(45deg); }
.sops-detail { padding: 0 23px 23px; border-top: 1px solid var(--line); }
.sops-format { margin: 20px 0 4px; }
.sops-detail-intro { margin: 0 0 16px; }
.sops-steps { padding: 0; margin: 0 0 18px; list-style: none; }
.sops-steps li { border-top: 1px solid var(--line); }
.sops-steps label { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.sops-steps input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: #176235; }
.sops-steps b { color: #176235; }
.sops-result, .sops-limit { padding: 13px 16px; border-radius: 10px; background: #eaf3ed; }
.sops-limit { background: #edf2f5; }
.sops-related { margin-top: 20px; }
.sops-related ul, .sops-sources ul { margin: 8px 0 0; padding-left: 20px; }
.sops-related li, .sops-sources li { margin-bottom: 5px; overflow-wrap: anywhere; }
.sops-related a, .sops-sources a { color: #0c6651; }
.sops-sources { margin-top: 16px; }
.sops-sources > summary { cursor: pointer; font-weight: 700; }
.sops-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.sops-actions .sops-progress { flex-basis: 100%; color: var(--muted); }
.sops-actions a { padding: 7px 4px; color: #0c6651; font-weight: 700; }
.sops-note, .sops-about { max-width: 850px; color: var(--muted); }
@media (min-width: 1200px) { .sops-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 700px) { .header-inner { gap: 8px; } .site-header .brand { min-width: 0; flex: 1; gap: 8px; } .site-header .brand span { min-width: 0; } .site-header .brand :is(strong,small) { overflow-wrap: anywhere; } .site-header .brand img { width: 40px; height: 40px; flex: 0 0 40px; } .menu-toggle { flex: 0 0 auto; padding: 8px 10px; font-size: .9rem; } .sops-page { padding-top: 28px; } .sops-grid { grid-template-columns: minmax(0,1fr); } .sops-card:has(> details[open]) { grid-column: auto; } .sops-controls { padding: 17px; } .sops-context { padding: 17px; } .sops-card > details > summary { padding: 19px; } .sops-detail { padding: 0 19px 19px; } }
@media print {
  @page { margin: 16mm; }
  body.sops-printing { background: white; color: black; }
  body.sops-printing :is(.site-header,footer,.sops-back,.sops-intro,.sops-controls,.sops-note,.sops-about,.sops-actions,.sops-group > h2) { display: none !important; }
  body.sops-printing .sops-context { max-width: none; padding: 0; border: 0; background: none; }
  body.sops-printing .sops-page { padding: 0; }
  body.sops-printing .sops-page > .shell { width: 100%; }
  body.sops-printing .sops-grid { display: block; }
  body.sops-printing .sops-card:not(.sops-print-target), body.sops-printing .sops-group:not(:has(.sops-print-target)) { display: none !important; }
  body.sops-printing .sops-card { border: 0; box-shadow: none; }
  body.sops-printing .sops-card > details > summary { padding: 0 0 12px; }
  body.sops-printing .sops-detail { padding: 0; }
  body.sops-printing .sops-steps li, body.sops-printing .sops-result, body.sops-printing .sops-limit { break-inside: avoid; }
  body.sops-printing a { color: black; }
}
