:root{font:16px/1.5 "Instrument Sans",system-ui,sans-serif;color:#173e37;background:#f5f5ee}
*{box-sizing:border-box}
body{margin:0}
header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;background:#173e37;padding:1rem max(1rem,calc((100vw - 49rem)/2));color:white}
header>a{font-weight:700}
header a{color:inherit}
nav{display:flex;gap:.75rem;flex-wrap:wrap}
nav a[aria-current]{font-weight:700;text-decoration-thickness:.14em}
main{width:min(100% - 2rem,49rem);margin:clamp(1.75rem,5vw,3.5rem) auto}
h1{font-size:clamp(1.9rem,5vw,3.15rem);line-height:1.08;margin:0 0 1rem}
h2{font-size:1.3rem;margin:0 0 1rem}
.lead{font-size:1.22rem;font-weight:600}
form,article,.notice{padding:clamp(1rem,4vw,1.65rem);border:1px solid #bbc8c0;border-radius:.8rem;background:#fffdf8;margin:1.4rem 0}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem;margin-bottom:1rem}
label{display:grid;gap:.35rem;font-weight:600}
input,select,textarea{width:100%;padding:.65rem;background:#fff;border:1px solid #8b9e94;border-radius:.35rem;font:inherit;color:inherit}
textarea{resize:vertical}
.hint{font-size:.9rem;margin:.45rem 0 1rem}
button{padding:.7rem 1.15rem;border:0;border-radius:.4rem;background:#176353;color:#fff;font:inherit;font-weight:700;cursor:pointer}
a{color:#176353;text-underline-offset:.18em;overflow-wrap:anywhere}
:focus-visible{outline:3px solid #0b7b93;outline-offset:3px}
.notice.error{border-color:#a33f2f;color:#842f25}
.notice.success{border-color:#387766}
.paging{margin:1rem 0}

/* Public broker application */
body:has(.broker-intro) {
  min-height: 100vh;
  background: #edf7fc;
  color: #153c54;
}
body:has(.broker-intro) header { background: #073f62; }
.broker-intro {
  padding: clamp(1.4rem, 5vw, 3rem);
  border-radius: 1rem;
  color: white;
  background: linear-gradient(115deg, #075078, #0075a7);
}
.broker-intro p:last-child { margin-bottom: 0; }
.broker-intro ~ form {
  background: white;
  border-color: #bfdce9;
  box-shadow: 0 .5rem 1.75rem #104e7410;
}
.broker-intro ~ form :is(input, select, textarea) { border-color: #789bad; }
.broker-intro ~ form button { background: #006c9c; }
.broker-intro ~ form button:hover { background: #00547c; }
body:has(.broker-intro) :focus-visible { outline-color: #007cb8; }
body:has(.broker-intro) header :focus-visible { outline-color: white; }
