/* Commercial agencies: manufacturer-led cards, optional click-to-view documents. */
.agencies-section{background:#f5f7f8;padding-top:76px}
.agencies-intro{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:70px;margin-bottom:44px}
.agencies-intro h2{margin-top:17px;font-size:clamp(30px,3.4vw,46px);line-height:1.35}
.agencies-intro>p{max-width:520px;color:var(--muted);font-size:14px;line-height:2}
.agencies-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}
.agency-manufacturer-card{min-width:0;display:flex;flex-direction:column;position:relative;padding:25px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 18px #062c3d04;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.agency-manufacturer-card:before{content:'';position:absolute;inset:0 0 auto;height:3px;background:var(--orange)}
.agency-manufacturer-card:hover{border-color:#b5c8d0;box-shadow:0 10px 28px #062c3d0c}
.agency-card-top{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:25px}
.agency-manufacturer-mark{width:66px;height:66px;padding:10px;display:grid;place-items:center;border:1px solid #e7edf0;border-radius:9px;background:#fafcfc;color:#6e8a96;flex:none}
.agency-manufacturer-mark>svg{width:30px;height:30px;stroke-width:1.25}
.agency-manufacturer-mark img{width:100%;height:100%;object-fit:contain}
.agency-manufacturer-mark .agency-country-flag{height:auto;max-height:100%;border-radius:3px;box-shadow:0 1px 4px #062c3d15}
.agency-origin{display:flex;align-items:center;gap:7px;font-size:10px;text-align:end;color:var(--muted);line-height:1.6}
.agency-origin>span{font-size:22px;line-height:1;flex:none}
.agency-origin svg{width:16px;height:16px}
.agency-origin .agency-origin-flag{display:block;width:25px;height:19px;object-fit:cover;flex:none;border:1px solid #dce4e7;border-radius:2px}
.agency-card-label{display:block;font-size:8px;letter-spacing:.09em;color:var(--muted);margin-bottom:8px}
.agency-card-heading h3{font-size:19px;line-height:1.55;overflow-wrap:anywhere}
.agency-type{display:inline-block;font-size:10px;background:#eef4f6;color:var(--navy);padding:4px 9px;border-radius:4px;margin-top:12px;overflow-wrap:anywhere}
.agency-products{margin-top:23px;margin-bottom:23px;padding-top:19px;border-top:1px solid #edf1f3}
.agency-products h4{font-size:11px;margin-bottom:9px}
.agency-products p{font-size:11px;line-height:1.95;color:var(--muted);overflow-wrap:anywhere;white-space:pre-line}
.agency-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-top:auto;margin-bottom:15px}
.agency-territory{display:flex;gap:9px;align-items:flex-start;flex:1;min-width:0}
.agency-territory>div{min-width:0}
.agency-territory>svg{width:17px;height:17px;margin-top:3px;color:var(--orange)}
.agency-territory span{display:block;font-size:9px;color:var(--muted)}
.agency-territory strong{display:block;font-size:11px;line-height:1.8;font-weight:500;overflow-wrap:anywhere}
.agency-card-actions{margin-top:auto;display:flex;flex-direction:column;gap:13px}
.agency-card-meta+.agency-card-actions{margin-top:0}
.agency-document-button{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;max-width:56%;min-height:42px;flex-shrink:0;margin-inline-start:auto;border:1px solid #d8e4e9;background:#f5f9fa;color:var(--navy);padding:9px 10px;border-radius:6px;text-align:start;font-size:10px;font-weight:600;line-height:1.6}
.agency-document-button:only-child{max-width:100%}
.agency-document-button>svg{width:16px;height:16px}
.agency-document-button>span{min-width:0;overflow-wrap:anywhere}
.agency-document-button:hover{border-color:var(--navy);background:#eaf2f5}
.agency-inquiry{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;font-weight:600;color:var(--navy);padding:7px 0}
.agency-inquiry svg{width:17px;height:17px;color:var(--orange)}
.agency-website{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}
.agency-website svg{width:14px;height:14px}
.agencies-partnership{display:flex;align-items:center;gap:22px;margin-top:48px;background:var(--navy);color:#fff;border-radius:12px;padding:32px}
.agencies-partnership-icon{display:grid;place-items:center;width:64px;height:64px;flex:none;border:1px solid #ffffff30;border-radius:9px;color:#adc7d2}
.agencies-partnership-icon svg{width:30px;height:30px}
.agencies-partnership>div{flex:1}
.agencies-partnership h2{font-size:21px;line-height:1.6}
.agencies-partnership p{font-size:11px;margin-top:8px;line-height:1.9;color:#c4d6df}
.agencies-partnership .button{flex:none;white-space:normal;font-size:11px;padding:13px 19px;min-height:48px}
.agencies-empty{grid-column:1/-1;text-align:center;padding:55px 22px;border:1px dashed #b9cbd3;background:#fff;border-radius:12px}
.agencies-empty>svg{width:32px;height:32px;margin-bottom:15px;color:var(--muted)}
.agencies-empty h3{font-size:21px}.agencies-empty p{font-size:12px;color:var(--muted);margin:12px 0 22px}
.agency-document-dialog{width:min(680px,calc(100vw - 24px));width:min(680px,calc(100vw - 24px),calc((100dvh - 144px)*.7070707 + 28px));min-width:min(320px,calc(100vw - 24px));height:min(980px,calc(100vh - 24px),calc((100vw - 44px)*1.4142857 + 134px));height:min(980px,calc(100dvh - 24px),calc((100vw - 44px)*1.4142857 + 134px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 25px 100px #001a2e55;overflow:hidden;overscroll-behavior:contain}
.agency-document-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.agency-document-dialog,.agency-document-dialog *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.agency-document-sheet:after{content:'';position:absolute;inset:0;z-index:2}
.agency-document-sheet>img{pointer-events:none;-webkit-user-drag:none}
.agency-document-dialog::backdrop{background:#001f30c9;backdrop-filter:blur(4px)}
.agency-document-head{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:10px 14px;border-bottom:1px solid var(--line)}
.agency-document-head>div{min-width:0}
.agency-document-head span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:8px;color:var(--muted);letter-spacing:.07em;line-height:1.4}
.agency-document-head h2{font-size:18px;margin-top:3px;line-height:1.3}
.agency-document-head p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;margin-top:3px;color:var(--muted);line-height:1.4}
.agency-document-head .icon-button{flex:none;background:#f1f5f6;border-radius:50%;width:40px;height:40px}
.agency-document-media{display:grid;place-items:center;container-type:size;min-width:0;min-height:0;overflow:hidden;background:#edf1f3;padding:10px}
.agency-document-sheet{position:relative;display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.agency-document-sheet>img{display:block;grid-area:1/1;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;background:#fff}
.agency-document-sheet>p{position:absolute;inset:0;z-index:1;display:grid;place-content:center;overflow:hidden;margin:0;padding:12px;background:#edf1f3;text-align:center;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
@supports(width:1cqh){.agency-document-sheet{width:min(100cqw,calc(100cqh*.7070707));height:auto;max-height:100%;aspect-ratio:210/297;background:#fff;box-shadow:0 2px 9px #062c3d15}}
.agency-document-footer{display:flex;justify-content:center;gap:10px;min-width:0;min-height:38px;padding:9px 14px;align-items:center}
.agency-document-footer p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;color:var(--muted);line-height:1.5}
@media(min-width:801px){#main[data-page="/agents"] .page-hero{height:360px}}
@media(max-width:1100px){.agencies-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agencies-intro{gap:35px}.agencies-partnership{flex-wrap:wrap}.agencies-partnership .button{margin-inline-start:86px}}
@media(max-width:650px){.agencies-section{padding-top:45px}.agencies-intro{grid-template-columns:1fr;gap:22px;margin-bottom:29px}.agencies-intro>p{font-size:12px}.agencies-grid{grid-template-columns:1fr;gap:18px}.agency-manufacturer-card{padding:23px}.agencies-partnership{padding:24px;gap:18px;margin-top:30px}.agencies-partnership-icon{width:49px;height:49px}.agencies-partnership>div{flex-basis:calc(100% - 70px)}.agencies-partnership h2{font-size:17px}.agencies-partnership .button{margin-inline-start:0;width:100%;justify-content:center}.agency-card-meta{gap:10px}.agency-document-footer p{display:none}.agency-document-footer{justify-content:center}}
@media(max-height:450px){.agency-document-head{padding-block:7px}.agency-document-head span{display:none}.agency-document-head h2{font-size:15px}.agency-document-head p{font-size:9px}.agency-document-head .icon-button{width:34px;height:34px}.agency-document-footer{min-height:32px;padding-block:6px}.agency-document-media{padding:7px}}
@media print{body:has(#agency-document-dialog[open])>*{display:none!important}}
