#procedure-library { scroll-margin-top:100px; }
.procedure-modes { display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--line); padding-bottom:16px; margin-bottom:24px; }
.procedure-modes button { min-height:44px; padding:10px 18px; border:1px solid #c7d9de; border-radius:7px; background:#fff; color:var(--navy); font-family:inherit; font-size:14px; font-weight:600; line-height:1.5; }
.procedure-modes button[aria-pressed='true'] { background:var(--navy); border-color:var(--navy); color:#fff; }
.procedure-intro { display:flex; align-items:center; gap:24px; justify-content:space-between; background:#e9f4f1; border:1px solid #c9ded8; border-radius:12px; padding:22px; margin-bottom:24px; }
.procedure-intro h2 { margin:0 0 10px; font-size:26px; }
.procedure-intro p { margin:0; color:#45666a; max-width:640px; }
.procedure-intro .portal-kicker { font-size:11px; }
.procedure-numbers { display:flex; gap:22px; flex-shrink:0; }
.procedure-numbers span { display:grid; gap:5px; font-size:12px; color:#45666a; }
.procedure-numbers b { color:#12635f; font-size:35px; line-height:1; font-weight:600; }
.procedure-search-row { display:flex; align-items:end; gap:12px; }
.procedure-search-row > label { flex:1; min-width:0; }
.portal-view .procedure-search-row input { font-size:16px; min-height:48px; }
.procedure-help { font-size:13px!important; margin:7px 0 24px; color:#637b86; }
.procedure-catalog-layout { display:grid; grid-template-columns:235px minmax(0,1fr); gap:26px; align-items:start; }
.procedure-categories { position:sticky; top:105px; min-width:0; }
.procedure-categories h3 { margin:0 0 16px; font-size:15px; }
.procedure-categories nav { display:grid; gap:4px; }
.procedure-categories nav button { display:flex; justify-content:space-between; text-align:left; gap:10px; min-height:44px; padding:11px 12px; border:1px solid transparent; border-radius:7px; color:#3e5b6b; background:transparent; font-size:14px; line-height:1.45; }
.procedure-categories nav button b { font-size:12px; color:#67848a; }
.procedure-categories nav button[aria-pressed='true'] { color:#0a6864; background:#e1f0eb; border-color:#b8d9ce; font-weight:700; }
.procedure-source-note { margin-top:18px; border-top:1px solid var(--line); padding-top:15px; }
.procedure-source-note summary,.procedure-application summary { cursor:pointer; font-size:14px; line-height:1.6; color:#45616f; }
.procedure-source-note p { font-size:13px; color:#56717e; }
.procedure-mobile-filter { display:none!important; }
.procedure-results { min-width:0; }
.procedure-count { margin:0 0 15px; color:#526d7c; font-size:14px!important; }
.procedure-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.procedure-grid > .portal-empty { grid-column:1/-1; }
.procedure-card { display:flex; flex-direction:column; padding:0; border:1px solid #d2dfe3; border-radius:10px; background:white; min-width:0; overflow:hidden; }
.procedure-card-content { display:flex; flex:1; flex-direction:column; padding:22px; }
.procedure-card-cover { position:relative; display:block; padding:0; border:0; border-bottom:1px solid #d2dfe3; width:100%; aspect-ratio:16/9; background:#eaf0ef; overflow:hidden; }
.procedure-card-cover img { display:block; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .2s; }
.procedure-photo-status { position:absolute; inset:0; display:grid; place-items:center; padding:20px; text-align:center; font-family:inherit; font-size:13px; line-height:1.5; color:#48656c; }
.photo-ready > img { opacity:1; }
.photo-ready > .procedure-photo-status { display:none; }
.procedure-card-image-count { position:absolute; right:12px; bottom:12px; padding:5px 9px; background:#183d3aee; border-radius:5px; color:white; font-size:11px; }
.procedure-photo { margin:20px 0 8px; border:1px solid #d1dfdf; border-radius:9px; background:#f4f8f6; overflow:hidden; scroll-margin-top:150px; }
.procedure-photo-open { display:block; position:relative; width:100%; padding:0; border:0; background:#e8eeeb; min-height:160px; }
.procedure-photo-open img { display:block; width:100%; height:auto; max-height:470px; object-fit:contain; opacity:0; }
.procedure-photo-open.photo-ready img { opacity:1; }
.procedure-photo-expand { position:absolute; right:12px; bottom:12px; padding:6px 10px; border-radius:5px; background:#fffef2ed; color:#204943; font-size:12px; box-shadow:0 1px 5px #0002; }
.procedure-photo figcaption { padding:14px 16px; font-size:14px; line-height:1.6; color:#344f59; }
.procedure-photo figcaption small,.procedure-lightbox small { display:block; margin-top:6px; color:#6c7f83; font-size:11px; }
.procedure-photo-warning { display:inline-block; padding:2px 8px; margin:0 8px 5px 0; background:#fce4d8; color:#973d1a; border:1px solid #e9b8a0; border-radius:4px; font-size:12px; }
.procedure-photo-mistake { background:#fff8f3; border-color:#e7cab7; }
.procedure-photo-jump { border:1px solid #b7d5cc; background:#eaf5ef; color:#206653; margin-top:18px; padding:11px 14px; border-radius:6px; min-height:44px; text-align:left; font-family:inherit; font-weight:600; font-size:14px; line-height:1.5; }
.procedure-lightbox { padding:0; border:1px solid #c1d1d2; border-radius:12px; width:min(1060px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); background:#fff; color:#193d49; overflow:auto; box-shadow:0 18px 80px #0005; }
.procedure-lightbox::backdrop { background:#10242dde; }
.procedure-lightbox-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 18px; border-bottom:1px solid #d6e1e2; font-family:inherit; font-weight:600; font-size:13px; line-height:1.5; }
.procedure-lightbox-bar button { min-height:44px; border:1px solid #c4d3d7; border-radius:6px; padding:8px 13px; color:#234854; background:white; flex-shrink:0; }
.procedure-lightbox-media { display:block; position:relative; width:100%; min-height:180px; border:0; padding:0; background:#e9eeec; }
.procedure-lightbox-media img { display:block; width:100%; height:auto; max-height:68dvh; object-fit:contain; opacity:0; }
.procedure-lightbox-media.photo-ready img { opacity:1; }
.procedure-lightbox > p { padding:16px 20px; margin:0; line-height:1.6; font-size:14px; }
.procedure-card-cover:focus-visible,.procedure-photo-open:focus-visible,.procedure-lightbox button:focus-visible { outline:3px solid #b57d27; outline-offset:-4px; }
.procedure-card:focus-within,.procedure-card:hover { border-color:#5c9c92; }
.procedure-card-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.procedure-card-meta > span { font-size:11px; letter-spacing:.04em; font-weight:700; color:#126963; padding:4px 6px; border-radius:4px; background:#edf6f3; }
.procedure-card-meta small { font-size:11px; color:#627b89; }
.procedure-card h3 { margin:14px 0 9px; }
.procedure-card h3 button { padding:0; border:0; background:transparent; color:var(--navy); text-align:left; font:inherit; line-height:1.4; }
.procedure-card p { margin:0 0 20px; color:#56717e; font-size:14px; }
.procedure-card-foot { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-top:auto; padding-top:12px; border-top:1px solid #e8eef0; }
.procedure-card-foot > span { color:#647d89; font-size:12px; }
.procedure-card-foot .text-button { min-height:44px; white-space:nowrap; }
.procedure-reader-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.procedure-reader-tools > div { display:flex; flex-wrap:wrap; gap:8px; }
.procedure-reader { max-width:960px; margin:0 auto; padding:36px; overflow-wrap:anywhere; }
.procedure-reader-header { border-bottom:1px solid var(--line); padding-bottom:22px; }
.procedure-reader h1 { font-size:clamp(27px,3vw,38px); line-height:1.2; margin:14px 0; letter-spacing:-.025em; }
.procedure-reader-header > p { font-size:18px; color:#56717e; margin-bottom:18px; }
.procedure-toc { display:flex; flex-wrap:wrap; gap:6px; margin:20px 0; }
.procedure-toc button { border:1px solid #d0dfe2; background:#f4f8f9; padding:8px 12px; border-radius:6px; color:#365d6d; min-height:44px; font-size:13px; }
.procedure-scope { padding:16px 18px; border-left:3px solid #799cb0; background:#f1f6f9; margin-bottom:18px; }
.procedure-scope strong { font-size:14px; }
.procedure-scope p { font-size:14px; margin:6px 0 0; }
.procedure-application { margin:18px 0 26px; }
.procedure-application p { color:#56717e; font-size:14px; }
.procedure-section { margin-top:32px; scroll-margin-top:105px; }
.procedure-section h2 { margin:0 0 16px; }
.procedure-section ul { padding-left:22px; }
.procedure-section li { margin-bottom:10px; padding-left:3px; }
.procedure-section-intro { color:#597280; }
.procedure-steps { counter-reset:procedure-step; list-style:none; padding:0; }
.procedure-steps > li { position:relative; padding:0 0 20px 49px; margin:0 0 8px; border-bottom:1px solid #e7eef0; counter-increment:procedure-step; }
.procedure-steps > li::before { content:counter(procedure-step,decimal-leading-zero); position:absolute; left:0; top:0; display:grid; place-items:center; width:33px; height:33px; border-radius:7px; color:#106960; background:#e8f3ef; font-size:13px; font-weight:700; }
.procedure-steps h3 { margin:0 0 8px; padding-top:3px; font-size:17px; }
.procedure-steps p { margin:0; }
.procedure-checks { list-style:none; padding:0!important; }
.procedure-checks li { position:relative; padding:13px 15px 13px 40px; background:#f4f8f7; border-radius:7px; margin:8px 0; }
.procedure-checks li::before { content:'✓'; position:absolute; left:14px; color:#18796e; }
.procedure-hold { background:#e8f3f0; border-left:3px solid #257d71; padding:18px 20px; margin-top:20px; }
.procedure-hold strong { font-size:14px; color:#145a52; }
.procedure-hold p { margin:8px 0 0; }
.procedure-mistakes { margin:0; display:grid; gap:12px; }
.procedure-mistakes > div { padding:18px; border:1px solid #e5ddd0; border-radius:8px; background:#fcfaf6; }
.procedure-mistakes dt { font-weight:700; font-size:16px; color:#765126; }
.procedure-mistakes dd { margin:7px 0 0; font-size:15px; line-height:1.7; color:#526572; }
.procedure-source { border-top:1px solid #d8e2e6; padding-top:20px; }
.procedure-source p { font-size:13px; line-height:1.7; color:#566f7b; }
.procedure-related { border-top:1px solid var(--line); margin-top:30px; padding:24px 0; }
.procedure-related > div { display:flex; flex-wrap:wrap; gap:8px; }
.procedure-related button { border:1px solid #c8dcd9; border-radius:6px; padding:10px 13px; min-height:44px; text-align:left; background:#f5faf8; color:#1c6661; font-size:14px; line-height:1.5; }
@container workspace (max-width:950px) { .procedure-intro { align-items:start; flex-direction:column; } .procedure-catalog-layout { grid-template-columns:200px minmax(0,1fr); gap:18px; } .procedure-card-content { padding:18px; } .procedure-grid { grid-template-columns:minmax(0,1fr); } }
@container workspace (max-width:720px) { .procedure-catalog-layout { grid-template-columns:minmax(0,1fr); } .procedure-categories { position:static; } .procedure-categories h3,.procedure-categories nav { display:none; } .procedure-mobile-filter { display:grid!important; } .procedure-source-note { margin-top:12px; } .procedure-reader { padding:22px; } }
@media(max-width:760px) { .procedure-catalog-layout { grid-template-columns:minmax(0,1fr); } .procedure-categories { position:static; } .procedure-categories h3,.procedure-categories nav { display:none; } .procedure-mobile-filter { display:grid!important; } .procedure-grid { grid-template-columns:minmax(0,1fr); } .procedure-intro { align-items:start; flex-direction:column; padding:20px; gap:20px; } .procedure-intro h2 { font-size:23px; } .procedure-reader { padding:20px; } .procedure-reader-header > p { font-size:16px; } .procedure-section { scroll-margin-top:155px; } .procedure-modes button { flex:1; } }
@media(max-width:480px) { .procedure-search-row { flex-wrap:wrap; } .procedure-search-row > label { flex-basis:100%; } .procedure-reader-tools > div { width:100%; } .procedure-reader-tools .button { flex:1; padding:9px; } .procedure-reader { padding:18px; } .procedure-steps > li { padding-left:42px; } .procedure-toc button { flex:1 0 calc(50% - 8px); } }
@media print { .portal-print-root .procedure-section { margin-top:20px; } .portal-print-root .procedure-section h2 { break-after:avoid; font-size:17px; } .portal-print-root .procedure-steps h3 { font-size:13px; break-after:avoid; } .portal-print-root .procedure-steps li { break-inside:avoid; } .portal-print-root .procedure-checks li { break-inside:avoid; background:transparent; } .portal-print-root .procedure-source p { color:#333; font-size:10px; } .portal-print-root .procedure-hold { break-inside:avoid; background:transparent; border:1px solid #aaa; } .portal-print-root .procedure-mistakes { display:block; } .portal-print-root .procedure-mistakes > div { break-inside:avoid; margin:8px 0; background:transparent; } .portal-print-root .procedure-mistakes dt,.portal-print-root .procedure-mistakes dd { font-size:12px; color:#111; } }
@media(max-width:480px) { .procedure-steps .procedure-photo { margin-left:-42px; } .procedure-photo figcaption { padding:12px; font-size:13px; } .procedure-photo-open img { max-height:340px; } .procedure-intro { padding:18px; gap:16px; } .procedure-intro h2 { font-size:21px; } .procedure-numbers b { font-size:28px; } .procedure-lightbox-bar { padding:8px 12px; } }
@media print { .procedure-lightbox { display:none!important; } .portal-print-root .procedure-photo { display:block; margin:12px 0; background:white; break-inside:avoid; max-width:140mm; } .portal-print-root .procedure-photo img { display:block; width:100%; max-height:75mm; object-fit:contain; } .portal-print-root .procedure-photo figcaption { font-size:10px; padding:8px; color:#222; } .portal-print-root .procedure-photo small { font-size:8px; } }
