.ws-page {
  --ws-rule: #e7e1dc;
  --ws-pad: clamp(1.4rem, 3.3vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}
.ws-page > .crumbs { margin-bottom: clamp(1.5rem,3vw,2.8rem); }
.ws-page .ws-form-layout {
  max-width: 71rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,.77fr) minmax(0,1.23fr);
  grid-template-rows: auto 1fr;
  gap: 1.4rem clamp(1.8rem,5vw,5.2rem);
  align-items: start;
}
.ws-lead {
  grid-column: 1;
  padding-block-start: .6rem;
}
.ws-lead h1, .ws-pro-head h1, .ws-preview h1 {
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.ws-lead h1 { font-size: clamp(2rem,3.7vw,3.5rem); }
.ws-lead .intro, .ws-preview .intro {
  margin: 1rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.6;
}
.ws-page .ws-form-layout > .seg { grid-column: 1; margin: 0; align-self: start; justify-self: start; }
.ws-form-layout > form {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: var(--ws-pad);
  border-color: var(--ws-rule);
}
.ws-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}
.ws-fieldset + .ws-fieldset, .ws-additional {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ws-rule);
}
.ws-fieldset legend {
  width: 100%;
  padding: 0 0 1rem;
  color: var(--purple);
  font: italic 700 clamp(1.33rem,1.9vw,1.65rem)/1.18 Raleway, Montserrat, sans-serif;
}
.ws-fieldset + .ws-fieldset { padding-block-start: 0; border-top: 0; }
.ws-fieldset + .ws-fieldset legend { border-top: 1px solid var(--ws-rule); padding-top: 1.65rem; }
.ws-fieldset .field-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.15rem 1.1rem;
  align-items: end;
}
.ws-fieldset .lab, .ws-additional .lab { min-width: 0; }
.ws-submit {
  padding-top: 1.25rem;
}
.ws-submit .formnote { margin: 0 0 1.2rem; }
.ws-preview { max-width: 48rem; margin: 0 auto; }
.ws-preview h1 { font-size: clamp(2rem,3.6vw,3.3rem); }
.ws-preview header { margin: 0 0 1.7rem; }
.ws-preview .intro { max-width: 100%; }
.ws-message { padding: var(--ws-pad); border-color: var(--ws-rule); }
.ws-page .ws-message h2 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1rem,1.6vw,1.3rem);
  font-style: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ws-message .mail-preview { margin: 1rem 0; padding: 1rem 1.15rem; border: 1px solid var(--ws-rule); line-height: 1.7; }
.ws-message .actions { gap: .75rem; }
#ws-note { color: var(--purple); font-weight: 600; }
#ws-note:empty, #access-error:empty { margin: 0; }
.ws-pro-head {
  padding: var(--ws-pad);
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
  align-items: center;
  gap: 1rem clamp(1.2rem,4vw,4rem);
}
.ws-pro-head h1 { font-size: clamp(1.8rem,4.1vw,3.7rem); }
.ws-pro-head .intro { margin: 0; max-width: 40ch; line-height: 1.58; }
.ws-services {
  margin-top: var(--ws-pad);
  gap: clamp(1rem,2.5vw,2rem);
  align-items: stretch;
}
.ws-page .ws-service {
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding: var(--ws-pad);
  color: var(--ink);
  border: 1px solid var(--ws-rule);
  border-radius: 1.2rem;
}
.ws-service:hover { border-color: #afa6c3; box-shadow: 0 6px 18px rgb(46 35 96 / .06); }
.ws-service-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: .9rem;
  background: #f1eef7;
  color: var(--purple);
  margin-bottom: 1.25rem;
}
.ws-service:nth-child(2) .ws-service-icon { background: var(--cream); }
.ws-service h2 { margin: 0; font-size: clamp(1.65rem,2.5vw,2.25rem); }
.ws-service p { margin: .8rem 0 0; max-width: 48ch; color: var(--muted); }
.ws-service .detail-link {
  padding-top: 1.5rem;
  margin-top: auto;
  text-decoration: underline;
  text-decoration-color: #aaa0bf;
  text-underline-offset: .27em;
  text-decoration-thickness: 1px;
}
.ws-service:hover .detail-link { text-decoration-color: currentColor; }
.form-wrap:has(#access-form), .panel.form-wrap:has(#sign-out) {
  max-width: 38rem;
  margin: clamp(1.5rem,4vw,3rem) auto;
}
.form-wrap:has(#access-form) h1, .panel.form-wrap:has(#sign-out) h1 {
  font-size: clamp(2.1rem,3.8vw,3.5rem);
  margin-bottom: .8rem;
}
.form-wrap:has(#access-form) .intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}
#access-form { border-color: #e7e1dc; padding: clamp(1.2rem,3vw,2.35rem); }
.form-wrap > .seg:has(+ form) {
  display: inline-flex;
  border-radius: 1rem;
  gap: .13rem;
  padding: .25rem;
  background: #f3f1f4;
}
.form-wrap > .seg:has(+ form) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .52rem .95rem;
  border: 0;
  border-radius: .8rem;
  color: var(--purple);
  background: transparent;
  font-size: .92rem;
}
.form-wrap > .seg:has(+ form) a[aria-current] { background: white; box-shadow: 0 1px 5px #2e23601c; }
@media (max-width: 60rem) {
  .ws-page .ws-form-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; max-width: 44rem; }
  .ws-form-layout > form { grid-column: 1; grid-row: auto; }
  .ws-lead { padding: 0; }
  .ws-lead .intro { max-width: 54ch; }
  .ws-pro-head { grid-template-columns: 1fr; }
}
@media (min-width: 48.5rem) and (max-width:60rem) {
  .ws-pro-head { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
}
@media (max-width: 38rem) {
  .ws-fieldset .field-grid { grid-template-columns: minmax(0,1fr); }
  .ws-page .ws-form-layout { gap: 1.15rem; }
  .ws-submit .ui-btn { width: 100%; }
  .ws-pro-head h1 { font-size: clamp(1.65rem,7.2vw,2.5rem); }
  .ws-form-layout > form, .ws-message { padding: clamp(1rem,4.5vw,1.5rem); }
  .ws-fieldset .lab { gap: .4rem; }
}
