/* Agency mini-sites reuse Palma tokens, typography and shared service controls. */
/* Iteration 59: shared stepped form and full-width preview. */
.agency-wizard-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start;scroll-margin-top:calc(var(--agency-site-offset,64px) + var(--agency-savebar-height,108px) + 12px)}
body.editor-page #editor-main.agency-workspace:has(.agency-wizard-layout){width:100%;max-width:1100px}
.agency-wizard-nav{display:flex;flex-direction:column;gap:4px;position:sticky;top:calc(var(--agency-site-offset,64px) + var(--agency-savebar-height,108px) + 12px);padding:16px 0;max-height:calc(100dvh - var(--agency-site-offset,64px) - var(--agency-savebar-height,108px) - 24px);overflow-y:auto}
.agency-wizard-nav>strong{font:500 14px/1.4 var(--palma-font-body);margin:0 0 10px}
.agency-workspace #agency-form{min-width:0}.agency-workspace #agency-form>.profile-public-section[hidden]{display:none!important}
.agency-wizard-actions{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:20px 0;padding:14px 0;background:white;border-top:1px solid #d4e4da}
.agency-wizard-actions [role=status]{font-size:13px;color:#496254}
.agency-workspace .agency-file-button{display:inline-flex;position:relative;min-height:48px;padding:12px 18px;background:#e8f2eb;border:1px solid #b8d2c0;border-radius:12px;cursor:pointer;font-weight:500}
.agency-file-input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.agency-file-button:focus-within{outline:3px solid #12613e;outline-offset:3px}
.agency-workspace :is(.pe-add,.pe-delete,.pe-price-type button){min-height:44px;font-family:inherit;font-size:14px;border:1px solid #b8d2c0;border-radius:10px;padding:10px 14px;background:white;color:#203e31;display:inline-flex;align-items:center;gap:8px}
.agency-workspace :is(.pe-add,.pe-delete) svg{width:20px;height:20px}.agency-workspace .pe-delete{color:#813730}.agency-workspace .pe-price-type button[aria-pressed=true]{background:#e4f2e8;border-color:#176649}.agency-workspace .pe-price-type{display:flex;flex-wrap:wrap;gap:8px}
.agency-workspace .pe-field :is(input:not([type=file]),select,textarea){width:100%;background:#fff;border:1px solid #b8cdbf;border-radius:10px;padding:12px;font-family:inherit;line-height:1.5}
.agency-workspace .pe-service summary,.agency-workspace .pe-faq-item summary{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer}.agency-workspace summary svg{width:20px;height:20px;flex:none}.agency-workspace .pe-hint{font-size:14px;line-height:1.6;color:#496254}.agency-workspace .profile-gallery-preview{max-width:100%;height:160px;object-fit:cover;border-radius:12px}
dialog.ui-dialog.agency-preview-dialog{display:block;width:min(1144px,96vw);max-width:96vw;padding:24px;max-height:92dvh;overflow:auto}
.agency-preview-dialog>.agency-page{width:100%;min-width:0;max-width:none}.agency-preview-dialog .agency-title{min-width:0}.agency-preview-dialog .agency-cover img{max-height:none;object-fit:cover}
.agency-preview-dialog .ui-dialog-head{position:sticky;top:-24px;z-index:30;background:white;padding:12px 0}
.agency-navigation{padding:0 28px 16px}.agency-navigation>summary{width:max-content;min-height:44px;cursor:pointer}.agency-navigation .agency-jump{padding:12px 0 0}
.agency-team-count{padding:0 28px 20px;margin:0!important;font-size:14px}.agency-page .agency-geography{border:0;padding:0;background:transparent}
#agency-internet .agency-link,.agency-office-grid a[href^="tel:"]{padding:10px 16px;border-radius:10px;background:#e3f0e7;text-decoration:none;margin:4px 8px 4px 0;border:1px solid #b8d2c0;font-weight:500}
#agency-internet .agency-link:nth-of-type(3n+2){background:#e8eef9;color:#2e4c7a;border-color:#c5d4ea}#agency-internet .agency-link:nth-of-type(3n){background:#fff1cf;color:#6a5120;border-color:#ead49b}
.agency-office-map{height:300px;margin-top:12px;border-radius:12px;overflow:hidden;position:relative}.agency-office-map [data-map-canvas]{height:100%;width:100%}
dialog.agency-map-dialog{display:block;width:min(800px,96vw);max-width:96vw}.agency-map-dialog .property-map-wrap{height:380px;position:relative}.agency-map-dialog [data-map-canvas]{height:100%;width:100%}
@media(max-width:800px){.agency-wizard-actions{gap:8px;flex-wrap:wrap}.agency-wizard-actions [role=status]{order:-1;flex-basis:100%;text-align:center}dialog.ui-dialog.agency-preview-dialog{padding:12px;width:96vw}.agency-preview-dialog .ui-dialog-head{top:-12px}.agency-navigation,.agency-team-count{padding-left:18px;padding-right:18px}}
.agency-page,.agency-workspace{--agency-ink:var(--palma-ink,#203e31);--agency-green:#176649;--agency-mint:#eaf5ef;--agency-line:#d4e4da;color:var(--agency-ink);font:400 16px/1.6 var(--font-body,'Golos Text',sans-serif);overflow-wrap:anywhere}
body .editor-main:has(.agency-page){max-width:1144px;padding:24px}
.agency-page *,.agency-workspace *{box-sizing:border-box}
.agency-leader-layout{display:grid;grid-template-columns:minmax(140px,240px) minmax(0,1fr);gap:24px;align-items:start}.agency-page .agency-leader-photo{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:18px}.agency-leader-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin-bottom:20px}.agency-leader-layout .agency-video{margin-top:20px}.agency-preview-actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:12px;padding:16px;background:var(--palma-surface,#fff);border-top:1px solid var(--agency-line);z-index:2}.agency-preview-actions [role=status]{flex-basis:100%;margin:0}.agency-preview-actions [role=status]:empty{display:none}
.agency-page .agency-office-grid{grid-template-columns:1fr}.agency-office-summary{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:24px}.agency-office-summary h4{margin:0 0 12px;font-size:16px}.agency-office-summary .agency-link{display:flex;overflow-wrap:anywhere}.agency-office-map{margin-top:16px}.agency-contact-lines{gap:8px;align-items:center;overflow-wrap:anywhere}.agency-page .agency-contact-lines a{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.agency-leader-layout,.agency-office-summary{grid-template-columns:1fr;gap:16px}.agency-page .agency-leader-photo{max-width:240px}.agency-preview-actions .editor-button{flex:1 1 100%}}
.agency-page h1{font:600 clamp(26px,3.4vw,42px)/1.25 'Unbounded',sans-serif;margin:4px 0 10px;letter-spacing:-.04em}
.agency-page h2{font:550 clamp(20px,2vw,25px)/1.4 'Unbounded',sans-serif;margin:0 0 20px;letter-spacing:-.035em}
.agency-page h3{font-size:18px;line-height:1.4;margin:0 0 12px}
.agency-page p{margin:0 0 12px}.agency-page a{color:var(--agency-green)}
.agency-hero{border:1px solid var(--agency-line);border-radius:24px;overflow:hidden;background:white}
.agency-cover{height:240px;background:radial-gradient(ellipse at 83% 120%,#ffd771 0 16%,transparent 16.4%),radial-gradient(ellipse at 73% 120%,#438769 0 40%,transparent 40.4%),linear-gradient(110deg,#164b39,#287258);position:relative;color:white}
.agency-cover img{width:100%;height:100%;object-fit:cover}.agency-cover-caption{position:absolute;left:32px;top:36px;max-width:400px;font:500 clamp(22px,3vw,36px)/1.3 'Unbounded',sans-serif}
.agency-identity{position:relative;display:grid;grid-template-columns:112px minmax(0,1fr) 190px;gap:24px;align-items:center;padding:0 32px 28px;margin-top:-38px}
.agency-logo{width:112px;height:112px;object-fit:contain;background:white;padding:10px;border-radius:22px;border:1px solid var(--agency-line);box-shadow:0 7px 22px #183b2920}
.agency-initials{display:grid;place-items:center;font-size:45px;color:var(--agency-green)}
.agency-title{padding-top:56px}.agency-title p{margin:0;color:#496254}.agency-title .agency-eyebrow{font-size:13px;letter-spacing:.02em}
.agency-contact-actions{display:grid;gap:8px;padding-top:50px;align-self:end}.agency-contact-actions :is(button,summary){min-height:46px;text-align:center;width:100%;font:500 15px/1.4 inherit;white-space:normal}
.agency-phone{border:1px solid var(--agency-line);border-radius:12px;background:white}.agency-phone summary{cursor:pointer;display:grid;place-items:center;list-style:none;padding:10px}.agency-phone a{display:block;padding:8px;text-align:center}
.agency-jump{display:flex;flex-wrap:wrap;gap:8px;padding:0 28px 20px}.agency-jump a{display:flex;align-items:center;min-height:44px;padding:6px 12px;border-radius:10px;background:#f0f5f1;text-decoration:none;font-size:14px}
.agency-section{margin:32px 0;min-width:0;scroll-margin-top:90px}.agency-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.agency-section-head h2{margin:0}
.agency-why{border-radius:20px;background:var(--agency-mint);padding:28px 32px}.agency-why p{font-size:20px;line-height:1.65;max-width:900px;margin:0}.agency-why h2{font-size:18px;color:var(--agency-green);margin-bottom:12px}
.agency-story.has-video{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:32px}.agency-story .agency-section{margin:0}.agency-story{margin:36px 0}.agency-video video{display:block;width:100%;max-height:420px;aspect-ratio:16/10;background:#173729;border-radius:18px;object-fit:contain}.agency-video p{margin-top:10px;color:#496254}.agency-copy{font-size:16px}.agency-copy :is(h2,h3){font-family:var(--font-body);font-size:20px;margin:20px 0 10px}
.agency-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:32px}.agency-geography{padding:24px;border:1px solid var(--agency-line);border-radius:18px;align-self:start}.agency-work-group{margin-bottom:20px}.agency-work-group h3{font-size:15px}.agency-chips{display:flex;flex-wrap:wrap;gap:8px}.agency-chips span{padding:6px 11px;border-radius:8px;background:#f0f5f1;font-size:14px}
.agency-service-grid,.agency-office-grid,.agency-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.agency-service{border:1px solid var(--agency-line);padding:24px;border-radius:18px}.agency-service:nth-child(3n+1){background:#f6f9f5}.agency-service strong{display:block;color:var(--agency-green);font-size:24px}.agency-service small{display:block;color:#496254;font-size:13px}.agency-service p{margin:12px 0}
.agency-rail{display:flex;gap:16px;overflow:auto;scroll-snap-type:x mandatory;padding:2px 2px 14px;scrollbar-width:thin;overscroll-behavior-x:contain}.agency-rail>*{flex:0 0 31.5%;min-width:0;scroll-snap-align:start}.agency-rail-controls{display:flex;gap:8px}.agency-rail-controls button{width:44px;height:44px;border:1px solid var(--agency-line);background:white;border-radius:50%;font-size:24px;color:var(--agency-green);cursor:pointer}
.agency-object{display:block;border:1px solid var(--agency-line);border-radius:18px;overflow:hidden;color:inherit!important;text-decoration:none}.agency-object img,.agency-object-placeholder{display:block;width:100%;height:190px;object-fit:cover;background:var(--agency-mint)}.agency-object-placeholder{display:grid;place-items:center}.agency-object-placeholder svg{width:60px;height:60px}.agency-object-media{position:relative}.agency-object-copy{padding:16px}.agency-object strong{font-size:21px}.agency-object h3{font-size:17px;margin:0 0 6px}.agency-object p,.agency-object small{font-size:14px;color:#496254}
.agency-team-card{padding:16px;border:1px solid var(--agency-line);border-radius:18px}.agency-team-card .palma-person{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.agency-team-card .palma-person-avatar{width:100%;height:auto;aspect-ratio:4/3;border-radius:12px}.agency-team-card .palma-person-avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 24%}.agency-team-card .palma-person-copy{padding:0}.agency-team-card .palma-person-copy strong{font-size:19px}
.agency-photo{margin:0}.agency-photo button{display:block;width:100%;border:0;padding:0;background:transparent;cursor:zoom-in}.agency-photo img{display:block;width:100%;height:230px;object-fit:cover;border-radius:16px}.agency-photo figcaption{font-size:14px;color:#496254;padding:10px 2px}
.agency-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:4px 0;margin-right:24px}.agency-contact-lines{display:flex;flex-wrap:wrap}.agency-office-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}.agency-office-grid article{padding:22px;background:#f3f7f3;border-radius:16px}.agency-office-grid .agency-link{margin:0}.agency-office-grid p{font-size:14px;margin-top:8px}
.agency-legal{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:24px;border:1px solid var(--agency-line);border-radius:16px}.agency-legal dt{font-size:13px;color:#496254}.agency-legal dd{margin:4px 0 0}.agency-faq{border-bottom:1px solid var(--agency-line);padding:12px 0}.agency-faq summary{font-weight:600;cursor:pointer;min-height:44px;padding:10px 2px}.agency-faq .post-body{padding:8px 0 16px}.agency-posts img{width:100%;height:160px;object-fit:cover;border-radius:14px}.agency-posts a{text-decoration:none}.agency-posts h3{margin-top:12px}.agency-example-note{padding:14px 18px;border:1px dashed #96b39e;border-radius:12px;font-size:14px;color:#496254;margin-bottom:18px!important}.agency-muted{color:#496254}
.agency-workspace{max-width:860px;margin:auto}.agency-workspace h1{font-size:26px}.agency-savebar{position:sticky;top:64px;z-index:15;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px;background:#fffffff5;border-bottom:1px solid var(--agency-line)}.agency-savebar [role=status]{font-size:13px;margin-right:auto}.agency-workspace .profile-public-section{padding:24px;border-radius:18px;background:#f3f7f3;margin:16px 0;scroll-margin-top:170px}.agency-workspace .profile-public-section h2{font-size:20px;margin:0 0 18px}.agency-workspace input,.agency-workspace select,.agency-workspace textarea{font-size:16px;min-width:0;max-width:100%}.agency-workspace .pe-field{margin:12px 0}.agency-workspace .pe-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.agency-workspace .pe-check{display:flex;gap:10px;align-items:center;min-height:44px}.agency-workspace .pe-check input{flex:none;width:20px;height:20px}.agency-workspace .pe-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}.agency-workspace fieldset{border:1px solid var(--agency-line);padding:16px;border-radius:12px;margin:12px 0;min-width:0}.agency-workspace legend{font-weight:600;font-size:16px}.agency-workspace .agency-upload{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0}.agency-upload img{width:100px;height:100px;object-fit:contain;border-radius:12px}.agency-upload input{max-width:100%}.agency-workspace button,.agency-workspace .editor-button{min-height:44px;cursor:pointer}.agency-workspace :disabled{cursor:default}.agency-workspace .pe-link-item,.agency-workspace .pe-service{background:white;border:1px solid var(--agency-line);border-radius:12px;padding:16px;margin:12px 0}.agency-validation{color:#8b332e;padding:16px;background:#fff3f0;border-radius:12px}.agency-validation a{display:block;color:inherit;min-height:36px}.agency-field-error{outline:2px solid #a63d30}.agency-team-row{display:flex;align-items:center;gap:12px;border:1px solid var(--agency-line);padding:14px;border-radius:12px;margin:12px 0}.agency-team-row img{width:56px;height:64px;object-fit:cover;border-radius:8px}.agency-team-row>div{flex:1;min-width:0}.agency-team-row small{display:block}.agency-team-row button{flex:none}.agency-office-suggestions{display:grid;gap:4px}.agency-office-suggestions button{text-align:left;padding:10px}.agency-record-actions{display:flex;flex-wrap:wrap;gap:8px}.agency-dialog{max-width:min(92vw,900px);border:1px solid var(--agency-line);border-radius:18px;padding:18px}.agency-dialog img{max-width:100%;max-height:75dvh;object-fit:contain}.agency-dialog::backdrop{background:#132c24a6}
.agency-page :is(a,button,summary):focus-visible,.agency-workspace :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #12613e;outline-offset:3px}.agency-page :is(button,a){touch-action:manipulation}
@media(max-width:700px){body .editor-main:has(.agency-page){padding:12px}.agency-cover{height:156px}.agency-cover-caption{font-size:22px;left:20px;top:24px;max-width:260px}.agency-identity{grid-template-columns:80px minmax(0,1fr);gap:14px;padding:0 18px 18px;margin-top:-24px}.agency-logo{width:80px;height:80px;padding:8px;border-radius:16px;align-self:start}.agency-title{padding-top:36px}.agency-page h1{font-size:25px;overflow-wrap:anywhere}.agency-title .agency-eyebrow{font-size:12px}.agency-title p{font-size:13px}.agency-contact-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;padding:0;align-items:start}.agency-jump{padding:0 14px 16px;gap:6px}.agency-jump a{font-size:13px;padding:6px 10px}.agency-section{margin:26px 0}.agency-why{padding:22px}.agency-why p{font-size:17px}.agency-story.has-video,.agency-columns{display:block}.agency-story .agency-section{margin:24px 0}.agency-service-grid,.agency-posts{grid-template-columns:1fr}.agency-rail>*{flex-basis:84%}.agency-team-card .palma-person{flex-direction:row;align-items:center}.agency-team-card .palma-person-avatar{width:86px;height:108px;aspect-ratio:auto;flex:none}.agency-team-card .palma-person-copy strong{font-size:17px}.agency-office-grid,.agency-legal{grid-template-columns:1fr}.agency-workspace .profile-public-section{padding:18px}.agency-workspace .pe-pair,.agency-workspace .pe-choices{grid-template-columns:1fr}.agency-savebar{top:56px}.agency-workspace .agency-team-row{flex-wrap:wrap}.agency-workspace .agency-team-row button{flex:1}.agency-section-head h2{font-size:20px}.agency-rail-controls{gap:4px}}
@media(prefers-reduced-motion:reduce){.agency-rail{scroll-behavior:auto}}
.agency-contact-actions :is(button,summary){font-family:inherit;font-size:15px;font-weight:500;line-height:1.4}
.agency-member{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid var(--agency-line);border-radius:16px;padding:20px;margin:16px 0;background:#fff}.agency-member h2{font-size:19px;margin:0}.agency-member p{margin:6px 0}.agency-member .agency-record-actions{max-width:400px}.agency-search{display:flex;gap:12px;align-items:end;margin:24px 0}.agency-search label{flex:1}.agency-search input{display:block;width:100%;margin-top:8px}.agency-search-results{padding:12px 0}.agency-agent-result{display:flex;gap:12px;align-items:center;min-height:64px;border-bottom:1px solid var(--agency-line);padding:12px 0}.agency-agent-result input{width:20px;height:20px;flex:none}.agency-agent-result small{display:block}.agency-material-grid,.agency-catalog{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.agency-material-grid article,.agency-catalog-card{border:1px solid var(--agency-line);padding:24px;border-radius:18px;background:#f4f8f3}.agency-material-grid h2,.agency-catalog-card h2{font-size:20px;margin:0 0 12px}.agency-soon{color:#627269}.agency-catalog-card{display:flex;gap:18px;align-items:start;color:inherit;text-decoration:none}.agency-catalog-card img,.agency-catalog-card>.agency-initials{width:80px;height:80px;flex:none;object-fit:contain;background:#fff;border-radius:16px}.agency-catalog-card p{font-size:14px}.agency-sections{margin:18px 0}.agency-sections summary{min-height:44px;cursor:pointer}.agency-sections nav{display:flex;flex-wrap:wrap;gap:4px 14px}.agency-workspace .palma-page-head{grid-template-columns:24px minmax(0,1fr) 24px}.agency-workspace .palma-page-head h1{overflow-wrap:normal;font-size:clamp(20px,3vw,26px)}
@media(max-width:700px){.agency-member{display:block}.agency-member .agency-record-actions{margin-top:16px}.agency-material-grid,.agency-catalog{grid-template-columns:1fr}.agency-search{flex-wrap:wrap}.agency-search label{flex-basis:100%}.agency-catalog-card{padding:18px;gap:12px}.agency-catalog-card img,.agency-catalog-card>.agency-initials{width:60px;height:60px}.agency-savebar{position:static}.agency-workspace .profile-public-section{scroll-margin-top:80px}}
/* Shared article styles must not turn the mini-site back into a narrow form. */
body.editor-page #editor-main.agency-workspace .agency-mobile-sections{display:none}
@media(max-width:1023px){.agency-savebar{position:static}.agency-wizard-layout{display:block;scroll-margin-top:calc(var(--agency-site-offset,56px) + 60px)}body.editor-page #editor-main.agency-workspace .agency-mobile-sections{display:flex;width:100%;text-align:left;white-space:normal;margin:12px 0;position:sticky;top:var(--agency-site-offset,56px);z-index:var(--palma-z-filters)}.agency-wizard-nav{display:none;position:static;max-height:none;overflow:visible}.agency-wizard-nav.is-expanded{display:block}.agency-wizard-nav>strong{display:none}.agency-sections-open #agency-form{display:none}}
.agency-office-editor [data-office-map-status]:empty,.agency-office-editor [data-office-location-status]:empty{display:none}
body.editor-page #editor-main:has(>.agency-page){max-width:1080px;width:100%;padding:24px}
.agency-page .agency-team-card .palma-person .palma-person-avatar{width:100%;height:auto;aspect-ratio:4/3;border-radius:12px}
.agency-page .agency-team-card .palma-person .palma-person-avatar img{object-position:50% 22%}
.agency-page .agency-posts>a{display:block;min-width:0}.agency-page .agency-posts>a>img{width:100%;height:160px;display:block}.agency-page .agency-posts>a>h3{margin:12px 0 0}
.agency-page .agency-contact-actions>.editor-button{grid-column:auto}
#agency-form input[type=radio]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none}
.chat-notice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chat-notice-actions button{min-height:44px;border:1px solid #d4e4da;border-radius:10px;padding:8px 16px;background:#eaf5ef;color:#203e31}
@media(max-width:700px){body.editor-page #editor-main:has(>.agency-page){padding:12px}.agency-page .agency-team-card .palma-person .palma-person-avatar{width:86px;height:108px;aspect-ratio:auto}}

/* I080: the approved agency composition. Scoped so other participant pages retain their layout. */
body .agency-page{--agency-line:var(--palma-line,#d5e2db);--agency-mint:#eaf5ef;font-family:var(--palma-font-body,'Golos Text',sans-serif);font-size:14px;line-height:1.55;container-type:inline-size;min-width:0}
body.editor-page:has(#editor-main>.agency-page){background:#f5f8f6}
body.editor-page .mobile-site:has(#editor-main>.agency-page),dialog.ui-dialog.agency-preview-dialog{background:#f5f8f6}
body .agency-page .agency-hero{border-radius:20px;box-shadow:none}
body .agency-page .agency-hero .agency-cover{height:clamp(70px,calc(21cqw - 39px),180px)}
body .agency-page .agency-hero .agency-cover:not(.has-cover){height:70px}
body .agency-page .agency-hero .agency-identity{position:static;display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;margin:0;padding:20px 24px 12px}
body .agency-page .agency-hero .agency-logo{width:80px;height:80px;padding:5px;border-radius:16px;box-shadow:none;align-self:center}
body .agency-page .agency-hero .agency-title{min-width:0;padding:0}
body .agency-page .agency-title h1{font:600 28px/1.2 var(--palma-font-body,'Golos Text',sans-serif);letter-spacing:-.02em;margin:3px 0 5px}
body .agency-page .agency-title p{font-size:12.6px;color:#52675a}
body .agency-page .agency-title .agency-eyebrow{font-size:12px;letter-spacing:0}
body .agency-page .agency-hero .agency-contact-actions{position:static;display:flex;grid-column:1/-1;flex-wrap:wrap;gap:10px;max-width:none;padding:0;align-self:auto}
body .agency-page .agency-hero .agency-contact-actions>.editor-button{flex:0 1 auto;width:auto;min-height:44px;margin:0;white-space:normal;box-shadow:none;border-radius:12px;padding:10px 18px;font-size:14px}
body .agency-page .agency-contact-actions>.editor-button.primary{background:var(--palma-yellow,#ffdf47);border-color:var(--palma-yellow,#ffdf47);color:#213b30}
body .agency-page .agency-contact-actions>[data-call-unavailable]{order:-1}
body .agency-page .agency-team-count{padding:0 24px 16px;font-size:12.6px;color:#52675a}
body .agency-page .agency-team-count a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-weight:500}
body .agency-page .agency-jump{display:flex;position:relative;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:6px;padding:2px 0 6px;margin:12px 0 8px;max-width:100%}
body .agency-page .agency-jump:empty{display:none}
body .agency-page .agency-jump a{display:flex;flex:none;align-items:center;justify-content:center;min-height:44px;padding:0;border:0;border-radius:999px;background:transparent;font:400 12px/1.5 var(--palma-font-body,'Golos Text',sans-serif);white-space:nowrap;text-decoration:none;color:#213b30}
body .agency-page .agency-jump a span{padding:9px 15px;border-radius:999px;background:#edf3ef}
body .agency-page .agency-jump a[aria-current] span{background:#176649;color:#fff;font-weight:500}
body .agency-page .agency-section{margin:12px 0;padding:20px;border:1px solid var(--agency-line);border-radius:18px;background:#fff;scroll-margin-top:90px;min-width:0}
body .agency-page .agency-section:focus{outline:none}
body .agency-page .agency-section:focus-visible{outline:2px solid #176649;outline-offset:3px}
body .agency-page .agency-section h2{font:600 24px/1.3 var(--palma-font-body,'Golos Text',sans-serif);letter-spacing:-.02em;color:#064438;margin:0 0 16px}
body .agency-page .agency-section h3{font:600 18px/1.35 var(--palma-font-body,'Golos Text',sans-serif);letter-spacing:0;margin:0 0 8px}
body .agency-page .agency-section-head{gap:12px;align-items:center;margin-bottom:12px}
body .agency-page .agency-section-head h2{margin:0}
body .agency-page .agency-leader-layout{display:grid;grid-template-columns:minmax(140px,210px) minmax(0,1fr);gap:20px;align-items:center}
body .agency-page .agency-leader-layout:not(:has(>.agency-leader-photo)){grid-template-columns:1fr}
body .agency-page .agency-leader-photo{display:block;width:100%;height:auto;max-width:none;aspect-ratio:1;object-fit:contain;border-radius:12px;background:#f5f8f6}
body .agency-page .agency-leader-copy{min-width:0}
body .agency-page .agency-leader-copy>.agency-muted{font-size:12.6px;margin:0 0 12px}
body .agency-page .agency-leader-message{font-size:14px;line-height:1.6;margin:0}
body .agency-page .agency-leader-layout .agency-video{grid-column:1/-1;margin:0;max-width:720px;width:100%}
body .agency-page #agency-about{background:#eaf5ef;border-color:#dceae2}
body .agency-page .agency-copy,body .agency-page .agency-why p{font-size:14px;line-height:1.65}
body .agency-page .agency-copy>:last-child,body .agency-page .agency-section>p:last-child{margin-bottom:0}
body .agency-page .agency-service-grid,body .agency-page .agency-posts{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
body .agency-page .agency-service{padding:16px;border-radius:12px;background:#f5f8f6}
body .agency-page .agency-service strong{font-size:22px}
body .agency-page .agency-chips span{font-size:12.6px;border-radius:999px;background:#edf3ef}
body .agency-page .agency-work-group:last-child{margin-bottom:0}
body .agency-page .agency-rail{gap:12px;padding-bottom:10px}
body .agency-page .agency-rail>*{flex-basis:calc((100% - 24px)/3)}
body .agency-page .agency-team-card{padding:12px;border-radius:14px;background:#f5f8f6}
body .agency-page .agency-team-card .palma-person{flex-direction:column;gap:12px;align-items:stretch}
body .agency-page .agency-team-card .palma-person .palma-person-avatar{width:100%;height:auto;aspect-ratio:1;max-width:100%;background:#fff}
body .agency-page .agency-team-card .palma-person-avatar img{object-fit:contain;object-position:center}
body .agency-page .agency-team-card .palma-person .palma-person-avatar:not(:has(img)){width:86px;height:86px;aspect-ratio:1;font-size:24px;background:#eaf5ef}
body .agency-page .agency-team-card .palma-person-copy strong{font-size:16px}
body .agency-page .agency-posts>a{padding:10px;border:1px solid var(--agency-line);border-radius:14px}
body .agency-page .agency-posts>a>img{height:auto;aspect-ratio:16/10;object-fit:contain;background:#f5f8f6;border-radius:8px}
body .agency-page .agency-photo img{object-fit:contain;background:#f5f8f6;height:200px}
body .agency-page .agency-office-grid article{padding:16px;border:1px solid var(--agency-line);background:#f5f8f6}
body .agency-page .agency-office-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px}
body .agency-page .agency-legal{padding:0;border:0;font-size:14px}
@container(max-width:760px){
 body .agency-page .agency-rail>*{flex-basis:calc((100% - 12px)/2)}
}
@container(max-width:520px){
 body .agency-page .agency-hero .agency-cover{height:70px}
 body .agency-page .agency-hero .agency-identity{grid-template-columns:60px minmax(0,1fr);gap:12px;padding:12px 16px 4px}
 body .agency-page .agency-hero .agency-logo{width:60px;height:60px;border-radius:14px}
 body .agency-page .agency-title h1{font-size:23px}
 body .agency-page .agency-title p,body .agency-page .agency-title .agency-eyebrow{font-size:11px}
 body .agency-page .agency-hero .agency-contact-actions{gap:8px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
 body .agency-page .agency-hero .agency-contact-actions>.editor-button{width:100%;padding:8px;font-size:12px}
 body .agency-page .agency-team-count{padding:0 16px 8px;font-size:11px}
 body .agency-page .agency-jump a{font-size:11px}
 body .agency-page .agency-section{padding:12px;margin:10px 0}
 body .agency-page .agency-section h2{font-size:20px;margin-bottom:12px}
 body .agency-page .agency-section-head h2{margin:0}
 body .agency-page .agency-section h3{font-size:17px}
 body .agency-page .agency-leader-layout{grid-template-columns:minmax(100px,36%) minmax(0,1fr);gap:14px}
 body .agency-page .agency-leader-copy>.agency-muted{font-size:11px;margin-bottom:8px}
 body .agency-page .agency-leader-message{font-size:13px;line-height:1.5}
 body .agency-page .agency-copy,body .agency-page .agency-why p{font-size:13px}
 body .agency-page .agency-rail>*{flex-basis:85%}
 body .agency-page .agency-team-card .palma-person{flex-direction:row;align-items:center}
 body .agency-page .agency-team-card .palma-person .palma-person-avatar{width:86px;height:108px;aspect-ratio:auto;flex:none}
 body .agency-page .agency-legal{grid-template-columns:1fr}
}

body .agency-page .agency-leader-message-full{grid-column:1/-1}
/* I081: catalog links use the same title / all-items alignment as the home page. */
body .agency-page .agency-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
body .agency-page .agency-section-head h2{min-width:0}
body .agency-page .agency-all-link{display:inline-flex;align-items:center;flex:none;min-height:44px;padding:5px 0;color:var(--agency-green);font:500 12.6px/1.4 var(--palma-font-body);white-space:nowrap;text-decoration:none}
body .agency-page .agency-member-role{font-size:12px;color:#52675a;margin:0 0 8px}
@container(max-width:520px){body .agency-page .agency-all-link{font-size:11px}body .agency-page .agency-section-head{gap:8px}}
