/* One contact composition. Compact screens switch panels instead of squeezing
   the whole address book and form into unreadable type. Never clip overflow:
   browser zoom, a keyboard or unusually long edited copy can still scroll. */
html body.page-contact #main-content{min-height:0;display:block}
html body.page-contact #main-content .contact-screen{
 --contact-gap:clamp(12px,2.4svh,28px);
 box-sizing:border-box;min-height:100svh;width:100%;margin:0;
 padding:max(90px,calc(var(--site-header-bottom,60px) + 22px)) max(24px,4vw,env(safe-area-inset-right)) max(18px,3svh,env(safe-area-inset-bottom)) max(24px,4vw,env(safe-area-inset-left))!important;
 display:grid;grid-template-columns:1fr 1fr;
 grid-template-areas:"kicker primary" "title primary" "panels panels" "social social";
 grid-template-rows:auto auto 1fr auto;gap:12px 4vw;
}
.contact-screen>.eyebrow{grid-area:kicker;align-self:end}
html body.page-contact #main-content main.contact-screen[data-page-intro]>h1{
 grid-area:title;font-size:clamp(48px,9svh,100px)!important;
 line-height:1!important;margin:0!important;
}
.contact-screen .contact-primary{grid-area:primary;align-self:center;justify-self:end;gap:6px;min-width:0}
.contact-screen .contact-primary>a{font-size:clamp(24px,3vw,42px);padding-bottom:4px}
.contact-screen .contact-panels{
 grid-area:panels;display:grid;grid-template-columns:1fr .9fr 1.4fr;
 align-content:center;align-items:start;gap:4vw;min-width:0;padding-block:var(--contact-gap);
}
.contact-screen .contact-panel{min-width:0}
.contact-screen .contact-panel[hidden]{display:none!important}
html body.page-contact .contact-screen .contact-details{gap:24px}
html body.page-contact .contact-screen .contact-details p{font-size:14px!important;line-height:1.5}
html body.page-contact .contact-screen .contact-details .contact-invitation{font-size:clamp(16px,1.4vw,21px)!important;line-height:1.5;max-width:44ch}
html body.page-contact .contact-screen .contact-details h2{font-size:11px;line-height:1.35;margin-bottom:8px}
.contact-screen .contact-office-grid{grid-template-columns:1fr;gap:24px}
html body.page-contact .contact-screen .contact-channels{grid-template-columns:1fr;gap:18px;padding-top:18px}
.contact-screen .contact-channels .channel-note{font-size:12px;margin-bottom:4px}
.contact-screen .contact-message{border:0;padding:0}
.contact-screen .contact-message>h2{font-size:26px;margin:0 0 16px}
html body.page-contact .contact-screen .contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0}
.contact-screen .contact-form>label:nth-of-type(5),.contact-screen .form-notice{grid-column:1/-1}
html body.page-contact .contact-screen .contact-form label{font-size:11px;line-height:1.3;gap:3px;min-width:0}
html body.page-contact .contact-screen .contact-form :is(input,select,textarea){font-size:16px!important;padding:6px 0;min-width:0;width:100%;box-sizing:border-box;line-height:1.3}
.contact-screen .contact-form textarea{height:64px;min-height:48px;resize:vertical}
html body.page-contact .contact-screen .contact-form button{font-size:13px;line-height:20px;padding:4px 18px;height:28px;min-height:28px;width:max-content;white-space:nowrap;border-radius:999px;grid-column:1/-1}
.contact-screen .contact-form .form-notice{font-size:11px;line-height:1.35;margin:0}
.contact-screen .contact-form .contact-status{color:var(--theme-ink,#191b18)}
html body.page-contact .contact-screen .contact-socials{
 grid-area:social;display:flex;justify-content:space-between;align-items:center;
 gap:16px;margin:0;padding:8px 0 0;border-bottom:0;border-top:1px solid var(--theme-line,#19191928);
}
.contact-screen .contact-socials h2{font-size:20px;line-height:1.2;margin:0}
html body.page-contact .contact-screen .contact-socials nav{gap:8px}
html body.page-contact .contact-screen .contact-social-icon{flex-basis:36px;width:36px;height:36px}
.contact-screen .contact-social-icon svg{width:22px;height:22px}
.contact-screen .contact-social-icon::before{inset:4px}
.contact-tabs[hidden]{display:none!important}
.contact-tabs{grid-area:tabs;gap:8px;display:flex;align-items:center;min-width:0}
.contact-tabs button{font-size:13px;line-height:20px;background:transparent;color:inherit;border:0;border-radius:999px;padding:4px 12px;height:28px;min-height:28px;flex-shrink:0;white-space:nowrap}
.contact-tabs button[aria-selected="true"]{background:var(--theme-ink,#191b18);color:var(--theme-base,#f3f3f0)}
@media(max-width:1100px),(max-height:700px){
 html body.page-contact #main-content .contact-screen{
  grid-template-areas:"kicker" "title" "primary" "tabs" "panels" "social";
  grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr auto;
  padding-top:max(84px,calc(var(--site-header-bottom,60px) + 18px))!important;
  gap:clamp(8px,1.5svh,18px);
 }
 html body.page-contact #main-content main.contact-screen[data-page-intro]>h1{font-size:clamp(42px,7.8svh,76px)!important}
 .contact-screen .contact-primary{justify-self:start}
 .contact-screen .contact-primary>a{font-size:clamp(24px,4vw,36px)}
 .contact-screen .contact-panels{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:8px;align-content:center}
 .contact-screen.is-panelled .contact-panels{gap:0}
 .contact-screen.is-panelled .contact-panel{animation:contact-panel-in .24s ease-out}
 .contact-screen .contact-office-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 html body.page-contact .contact-screen .contact-channels{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 .contact-screen .contact-message>h2{display:none}
 html body.page-contact .contact-screen .contact-details .contact-invitation{max-width:60ch;font-size:clamp(16px,2.2vw,22px)!important}
}
@media(max-width:600px){
 .contact-screen>.eyebrow{display:none}
 html body.page-contact #main-content .contact-screen{grid-template-areas:"title" "primary" "tabs" "panels" "social";grid-template-rows:auto auto auto 1fr auto}
 html body.page-contact .contact-screen .contact-details{gap:18px}
 html body.page-contact .contact-screen .contact-details p{font-size:13px!important}
 .contact-screen .contact-office-grid,html body.page-contact .contact-screen .contact-channels{gap:16px}
 .contact-screen .contact-primary>span{font-size:9px}
 .contact-screen .contact-socials h2{font-size:18px}
}
/* A phone turned sideways uses a quiet left rail and a wide working panel. */
@media(orientation:landscape) and (max-height:600px){
 html body.page-contact #main-content .contact-screen{
  padding-top:max(68px,calc(var(--site-header-bottom,48px) + 12px))!important;
  padding-bottom:max(12px,env(safe-area-inset-bottom))!important;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.8fr);
  grid-template-areas:"title tabs" "primary panels" "social panels";
  grid-template-rows:auto 1fr auto;gap:12px 4vw;
 }
 .contact-screen>.eyebrow{display:none}
 html body.page-contact #main-content main.contact-screen[data-page-intro]>h1{font-size:clamp(32px,9svh,52px)!important}
 .contact-screen .contact-primary{align-self:start;margin-top:12px}
 .contact-screen .contact-primary>a{font-size:clamp(18px,2.7vw,30px)}
 .contact-screen .contact-primary>a span{margin-left:6px}
 .contact-screen .contact-primary>span{font-size:9px}
 .contact-screen .contact-panels{padding:0;align-content:center}
 html body.page-contact .contact-screen .contact-details{gap:12px}
 html body.page-contact .contact-screen .contact-details .contact-invitation{font-size:15px!important;line-height:1.4}
 html body.page-contact .contact-screen .contact-channels{padding-top:12px;gap:14px}
 html body.page-contact .contact-screen .contact-socials{flex-direction:column;align-items:start;gap:4px}
 .contact-screen .contact-socials h2{font-size:16px}
 html body.page-contact .contact-screen .contact-form{gap:6px 14px}
 .contact-screen .contact-form textarea{height:48px}
 .contact-tabs button{padding-inline:14px}
}
@media(max-height:620px) and (orientation:portrait){
 html body.page-contact #main-content .contact-screen{gap:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
 .contact-screen .contact-panels{padding:0}
 html body.page-contact .contact-screen .contact-form{gap:6px 12px}
 .contact-screen .contact-form textarea{height:48px}
 .contact-screen .contact-socials h2{font-size:16px}
}
@media(max-height:520px) and (orientation:portrait){
 html.mobile-menu-enabled body.page-contact .site-header{height:56px!important;min-height:0!important}
 html.mobile-menu-enabled body.page-contact .site-header .brand{top:18px!important}
 html.mobile-menu-enabled body.page-contact .mobile-menu-toggle{top:6px!important}
 html body.page-contact #main-content .contact-screen{
  padding-top:64px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;gap:4px 12px;
  grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr auto;
  grid-template-areas:"title primary" "tabs tabs" "panels panels" "social social";
 }
 html body.page-contact #main-content main.contact-screen[data-page-intro]>h1{font-size:30px!important}
 .contact-screen .contact-primary{justify-self:end}
 .contact-screen .contact-primary>span{display:none}
 .contact-screen .contact-primary>a{font-size:18px}
 .contact-screen .contact-primary>a span{margin-left:4px}
 html body.page-contact .contact-screen .contact-details .contact-invitation{font-size:14px!important;line-height:1.4}
 html body.page-contact .contact-screen .contact-details{gap:12px}
 html body.page-contact .contact-screen .contact-channels{padding-top:12px}
 html body.page-contact .contact-screen .contact-form :is(input,select,textarea){padding-block:4px}
 .contact-screen .contact-form textarea{height:42px;min-height:42px}
 html body.page-contact .contact-screen .contact-form button{grid-column:1;grid-row:4;padding-inline:12px}
 .contact-screen .contact-form .form-notice{grid-column:2;grid-row:4;font-size:10px}
}
/* Very short landscape screens gain the full width for the form, with the
   message alongside the four short fields rather than below them. */
@media(orientation:landscape) and (max-height:360px){
 html body.page-contact #main-content .contact-screen{
  grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr;
  grid-template-areas:"title primary" "tabs social" "panels panels";
  gap:6px 18px;
 }
 .contact-screen .contact-primary{justify-self:end;align-self:center;margin:0}
 .contact-screen .contact-primary>span{display:none}
 .contact-screen .contact-primary>a{font-size:22px}
 html body.page-contact .contact-screen .contact-socials{flex-direction:row;justify-content:end;border:0;padding:0}
 .contact-screen .contact-socials>div{display:none}
 html body.page-contact .contact-screen #contact-general{grid-template-columns:1fr 1fr;gap:24px;align-items:center}
 html body.page-contact .contact-screen .contact-channels{border:0;padding:0}
 html body.page-contact .contact-screen .contact-details .contact-invitation{font-size:14px!important}
 html body.page-contact .contact-screen .contact-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 14px}
 .contact-screen .contact-form>label:nth-of-type(3){grid-column:1;grid-row:2}
 .contact-screen .contact-form>label:nth-of-type(4){grid-column:2;grid-row:2}
 .contact-screen .contact-form>label:nth-of-type(5){grid-column:3/5;grid-row:1/3;grid-template-rows:auto 1fr}
 .contact-screen .contact-form textarea{height:100%;min-height:48px}
 html body.page-contact .contact-screen .contact-form button{grid-column:3/5;grid-row:3}
 .contact-screen .contact-form .form-notice{grid-column:1/3;grid-row:3;font-size:10px}
}
@keyframes contact-panel-in{from{opacity:0}to{opacity:1}}
html body.page-contact .contact-screen .contact-form .contact-outcome-consent{grid-column:1/-1;display:flex;align-items:flex-start;gap:12px;font-size:12px;line-height:1.5;min-height:44px;padding-block:10px;cursor:pointer}
html body.page-contact .contact-screen .contact-form .contact-outcome-consent input{flex:none;width:18px;height:18px;min-height:18px;margin:2px 0;padding:0;accent-color:currentColor}
html body.page-contact .contact-screen .contact-form:has(.contact-outcome-consent) :is(button,.form-notice){grid-row:auto}
@media(orientation:landscape) and (max-height:360px){.contact-screen .contact-form .contact-outcome-consent{grid-row:3}html body.page-contact .contact-screen .contact-form:has(.contact-outcome-consent) :is(button,.form-notice){grid-row:4}}
@media(prefers-reduced-motion:reduce){.contact-screen.is-panelled .contact-panel{animation:none}}
@media print{
 .contact-tabs{display:none!important}
 .contact-screen .contact-panel[hidden]{display:block!important}
 html body.page-contact #main-content .contact-screen{min-height:0;padding:24px!important;display:block}
 .contact-screen .contact-panels{display:block}
 .contact-screen .contact-panel{margin-block:24px}
}
