/* Shared Rosélis type, colour and control scales. The compact size is for navigation. */
:root {
  --brand-primary:#135440;
  --brand-on-primary:#fff;
  --brand-paper:#f5f8f1;
  --brand-wash:#e8f0e6;
  --control-height:2.75rem;
  --control-compact:2.25rem;
  --control-radius:.625rem;
}
html[data-theme="dark"] {
  --brand-primary:#b7ddc8;
  --brand-on-primary:#103528;
  --brand-paper:#162e26;
  --brand-wash:#203e32;
}
body,button,select,input,textarea {font-family:var(--sans)}
:is(#roselis-site,.rx-shell,.screen-fallback) :is(.button,.rx-button,.rx-secondary,.screen-button,.rx-lang,.preference-button,.rx-field input,.rx-field select,.rx-field textarea) {
  border-radius:var(--control-radius);
  font-family:var(--sans);
}
:is(#roselis-site,.rx-shell,.screen-fallback) :is(.button,.rx-button,.rx-secondary) {
  min-height:var(--control-height);font-size:var(--type-body);font-weight:650;line-height:1.3;
}
:is(#roselis-site,.rx-shell) :is(.button.primary,.rx-button) {background:var(--brand-primary);color:var(--brand-on-primary);border-color:var(--brand-primary)}
.rx-shell {--rx-brand:var(--brand-primary);--rx-brand-text:var(--brand-on-primary);color:var(--ink);font:normal var(--type-body)/1.6 var(--sans)}
.rx-shell h1,.screen-fallback h1 {font:500 var(--type-page)/1.12 var(--serif);letter-spacing:-.025em}
.rx-shell h2 {font:500 var(--type-section)/1.14 var(--serif)}
.rx-shell h3 {font:650 var(--type-card)/1.35 var(--sans)}
.rx-shell :is(label,input,select,textarea,dd,dt,p) {font-size:var(--type-body)}
.rx-shell input:not([type="checkbox"]):not([type="radio"]),.rx-shell select {min-height:var(--control-height)}
.screen-tools {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.screen-tools :is(.screen-button,.rx-lang),#roselis-site .screen-button {
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
  min-height:var(--control-compact);padding:.3rem .75rem;border:1px solid var(--line);border-radius:var(--control-radius);
  background:var(--white);color:var(--ink);font:650 var(--type-small)/1.3 var(--sans);
}
.screen-tools :is(button,a):focus-visible {outline:3px solid var(--pref-focus);outline-offset:3px}
#roselis-site dialog .screen-tools {margin-bottom:.65rem}
.rx-staff .staff-mast {background:linear-gradient(110deg,var(--brand-wash),var(--brand-paper));position:relative;overflow:hidden}
.rx-staff .staff-mast-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,21.75rem);align-items:center;gap:clamp(1rem,3vw,3rem)}
.rx-staff .staff-logo {display:inline-block;width:clamp(6.5rem,10vw,9rem)}
.rx-staff .staff-logo img {display:block;width:100%;height:auto}
.rx-staff .staff-art {position:relative;width:100%;height:clamp(10rem,17vw,14rem);overflow:hidden;border-radius:45% 0 38% 0;justify-self:end;background:var(--brand-wash)}
.rx-staff .staff-art img {position:absolute;right:-3%;top:-4%;width:171%;max-width:none;height:109%;object-fit:cover;object-position:right center}
.rx-staff .staff-mast h1 {margin:.65rem 0 0;max-width:17ch}
.rx-staff .staff-mast .screen-tools {margin-top:.85rem}
.rx-shell :is(.rx-card,.rx-box) {border-color:var(--line)}
.screen-fallback {max-width:54rem;margin:auto;padding:8vh 5vw}
@media(max-width:40rem){
  .rx-staff .staff-mast-row {grid-template-columns:minmax(0,1fr) minmax(6rem,36%);gap:.4rem}
  .rx-staff .staff-art {align-self:center;height:clamp(7rem,30vw,10rem)}
  .rx-staff .staff-mast h1 {font-size:clamp(2rem,8vw,2.5rem)}
  .topline .site-preferences {column-gap:.3rem}
  #roselis-site .topline .preference-button {padding-inline:.45rem}
}
