/* Keep the primary links readable and centered between balanced side columns. */
:root{--header:100px}
.header,.site-header{display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr);align-items:center;gap:20px;height:var(--header);padding-block:16px}
.header>.menu-open,.site-header>.menu-open{grid-column:1;grid-row:1;justify-self:start}
.header>nav,.site-header>.desktop-nav{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;gap:clamp(16px,1.6vw,28px);min-width:0}
.header>nav a,.site-header>.desktop-nav a{font-size:18px;font-weight:500;line-height:1.2;min-height:48px;justify-content:center;text-align:center;white-space:nowrap;padding:12px 0}
.header>.header-brand,.site-header>.header-brand{grid-column:3;grid-row:1;justify-self:end;margin-left:0;width:190px}

/* Give all six links their own centered row on smaller desktop screens. */
@media(min-width:901px) and (max-width:1199px){
 :root{--header:140px}
 .header,.site-header{grid-template-columns:1fr 1fr;grid-template-rows:44px 48px;gap:12px 20px;padding-block:18px}
 .header>nav,.site-header>.desktop-nav{grid-column:1/-1;grid-row:2;gap:clamp(20px,3vw,36px)}
 .header>.header-brand,.site-header>.header-brand{grid-column:2;width:165px}
}

/* Home stays directly accessible even when the other links use the menu. */
@media(max-width:900px){
 :root{--header:80px}
 .header,.site-header{grid-template-columns:44px minmax(0,1fr) auto;gap:12px;padding:16px 20px}
 .header>.header-brand,.site-header>.header-brand{grid-column:2;justify-self:center;width:min(165px,100%);max-width:100%}
 .header>nav,.site-header>.desktop-nav{grid-column:3;grid-row:1;display:flex;gap:0}
 .header>nav a,.site-header>.desktop-nav a{font-size:17px}
 .header>nav a:not(.nav-home),.site-header>.desktop-nav a:not(.nav-home){display:none}
}
