/* ==========================================================================
   HALSO — component styles for apply.html and privacy.html
   Authored 2026-08-03 to replace the missing assets/site.css +
   assets/components.css referenced by the /apply repair package.

   Loads AFTER assets/halso.css and is scoped to the two pages that link it.
   No other page references this file; assets/halso.css is not modified.

   Palette taken from the live site and the HALSO mark:
     plum    #3D2948   brass #B98942   cream #F6F0E7
   ========================================================================== */

:root {
  --h-plum:      #3D2948;
  --h-plum-deep: #2C1D35;
  --h-brass:     #B98942;
  --h-brass-dk:  #966C30;
  --h-cream:     #F6F0E7;
  --h-cream-2:   #FBF7F0;
  --h-ink:       #2A2430;
  --h-ink-soft:  #5C5364;
  --h-rule:      #E2D8C8;
  --h-crit:      #8F3243;
  --h-crit-bg:   #FBEEF0;
  --h-ok-bg:     #F1ECF3;
  --h-radius:    10px;
  --h-shadow:    0 1px 2px rgba(61,41,72,.05), 0 8px 24px rgba(61,41,72,.07);
}

/* ---------- page frame ---------------------------------------------------- */

body.v-std {
  margin: 0;
  background: var(--h-cream);
  color: var(--h-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.v-std .wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

body.v-std main {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--h-plum);
  color: var(--h-cream);
  padding: .7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 var(--h-radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

body.v-std a { color: var(--h-plum); text-decoration: underline; text-underline-offset: 2px; }
body.v-std a:hover { color: var(--h-brass-dk); }

body.v-std :focus-visible {
  outline: 3px solid var(--h-brass);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- header -------------------------------------------------------- */

body.v-std header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--h-rule);
  margin-bottom: 2.5rem;
}

body.v-std a.homelink,
body.v-std a.homelink:hover {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
}

.mark { width: 38px; height: 38px; flex: none; display: block; }

.brand { display: flex; flex-direction: column; line-height: 1.15; }

.b-name {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--h-plum);
}

.b-sub {
  font-size: .585rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--h-ink-soft);
  margin-top: .18rem;
}

nav.mainnav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

nav.mainnav a {
  font-size: .875rem;
  color: var(--h-ink);
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
nav.mainnav a:hover { color: var(--h-plum); border-bottom-color: var(--h-brass); }
nav.mainnav a[aria-current="page"] { border-bottom-color: var(--h-brass); }

nav.mainnav a.apply-btn {
  background: var(--h-brass);
  color: #fff;
  padding: .48rem 1.05rem;
  border-radius: 6px;
  border-bottom: none;
  font-weight: 500;
}
nav.mainnav a.apply-btn:hover { background: var(--h-brass-dk); color: #fff; border-bottom: none; }
nav.mainnav a.apply-btn[aria-current="page"] { border-bottom: none; }

nav.mainnav a.member-btn {
  border: 1px solid var(--h-rule);
  padding: .45rem 1.05rem;
  border-radius: 6px;
  background: #fff;
  font-weight: 500;
}
nav.mainnav a.member-btn:hover { border-color: var(--h-brass); color: var(--h-plum); }

/* ---------- page head ----------------------------------------------------- */

.page-head { margin: 0 0 2.6rem; }

.page-head h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 5.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--h-plum);
  margin: 0 0 .85rem;
  letter-spacing: -.01em;
}

.page-head .sub {
  font-size: 1.055rem;
  color: var(--h-ink-soft);
  max-width: 46rem;
  margin: 0 0 1.2rem;
}

.k-label {
  font-size: .705rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--h-brass-dk);
  margin: 0 0 .9rem;
}
.k-label.center { text-align: center; }

.trustline {
  border-left: 3px solid var(--h-brass);
  background: var(--h-cream-2);
  padding: .85rem 1.1rem;
  margin: 0;
  font-size: .92rem;
  color: var(--h-ink-soft);
  max-width: 36rem;
  border-radius: 0 6px 6px 0;
}

.nojs {
  border: 1px solid var(--h-crit);
  background: var(--h-crit-bg);
  padding: 1rem 1.15rem;
  border-radius: var(--h-radius);
  margin-bottom: 2rem;
  font-size: .93rem;
}

/* ---------- sections ------------------------------------------------------ */

.sec { margin: 0 0 3.2rem; }

.prose { font-size: 1rem; margin: 0 0 .9rem; max-width: 46rem; }
.prose.soft, .soft { color: var(--h-ink-soft); }

.steps-list {
  margin: 0;
  padding-left: 1.3rem;
  max-width: 46rem;
}
.steps-list li { margin-bottom: .65rem; }
.steps-list li::marker { color: var(--h-brass-dk); font-weight: 600; }

/* ---------- path selector ------------------------------------------------- */

fieldset.paths {
  border: 0;
  margin: 0 0 1.9rem;
  padding: 0;
  display: grid;
  gap: .8rem;
}

.path { position: relative; }

.path input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}

.path label {
  display: block;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--h-rule);
  border-left: 4px solid var(--h-rule);
  border-radius: var(--h-radius);
  padding: 1.05rem 1.2rem;
  transition: border-color .14s ease, background .14s ease;
}
.path label:hover { border-color: #CFC2AC; border-left-color: var(--h-brass); }

.path input[type="radio"]:checked + label {
  border-color: var(--h-plum);
  border-left-color: var(--h-brass);
  background: var(--h-ok-bg);
}

.path input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--h-brass);
  outline-offset: 2px;
}

.p-t {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--h-plum);
  margin-bottom: .3rem;
}
.p-x {
  display: block;
  font-size: .9rem;
  color: var(--h-ink-soft);
  margin-bottom: .45rem;
}
.p-c {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--h-brass-dk);
}

/* ---------- form card ----------------------------------------------------- */

.formcard {
  background: #fff;
  border: 1px solid var(--h-rule);
  border-radius: var(--h-radius);
  padding: 1.7rem 1.6rem 1.9rem;
  box-shadow: var(--h-shadow);
}

.formcard fieldset {
  border: 0;
  margin: 0 0 1.6rem;
  padding: 0;
}

.formcard legend {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--h-plum);
  padding: 0;
  margin-bottom: .95rem;
  width: 100%;
  border-bottom: 1px solid var(--h-rule);
  padding-bottom: .5rem;
}

.fld { margin-bottom: 1.15rem; }

.lbl {
  display: block;
  font-size: .905rem;
  font-weight: 600;
  color: var(--h-ink);
  margin-bottom: .34rem;
}

.req { color: var(--h-crit); font-weight: 700; }

.hint {
  font-size: .825rem;
  color: var(--h-ink-soft);
  margin: 0 0 .4rem;
}

.formcard input[type="text"],
.formcard input[type="email"],
.formcard input[type="url"],
.formcard select,
.formcard textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: .96rem;
  color: var(--h-ink);
  background: #fff;
  border: 1px solid #CFC5B4;
  border-radius: 6px;
  padding: .58rem .7rem;
}
.formcard textarea { min-height: 6.2rem; resize: vertical; }
.formcard select { appearance: auto; }

.formcard input:focus,
.formcard select:focus,
.formcard textarea:focus {
  outline: none;
  border-color: var(--h-plum);
  box-shadow: 0 0 0 3px rgba(185,137,66,.22);
}

.err {
  display: none;
  margin: .34rem 0 0;
  font-size: .845rem;
  color: var(--h-crit);
  font-weight: 500;
}
.fld.invalid .err,
.ack.invalid .err { display: block; }

.fld.invalid input,
.fld.invalid select,
.fld.invalid textarea { border-color: var(--h-crit); }

/* ---------- acknowledgements --------------------------------------------- */

.ack {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .65rem;
  row-gap: .2rem;
  align-items: start;
  background: var(--h-cream-2);
  border: 1px solid var(--h-rule);
  border-radius: 8px;
  padding: .85rem 1rem;
  margin-bottom: .9rem;
}
.ack.invalid { border-color: var(--h-crit); background: var(--h-crit-bg); }

.ack input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: .25rem 0 0;
  accent-color: var(--h-plum);
  flex: none;
}

.ack-t { font-size: .885rem; line-height: 1.5; }
.ack-t label { cursor: pointer; }
.ack .err { grid-column: 2; }

/* ---------- submit -------------------------------------------------------- */

.formcard button[type="submit"] {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--h-plum);
  border: 0;
  border-radius: 7px;
  padding: .85rem 1.4rem;
  cursor: pointer;
  transition: background .14s ease;
}
.formcard button[type="submit"]:hover:not(:disabled) { background: var(--h-plum-deep); }
.formcard button[type="submit"]:disabled { background: #8C7E97; cursor: progress; }

/* ---------- error summary + confirmations -------------------------------- */

.errsummary {
  border: 1px solid var(--h-crit);
  background: var(--h-crit-bg);
  border-radius: var(--h-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.errsummary h3 {
  margin: 0 0 .5rem;
  font-size: .98rem;
  color: var(--h-crit);
  font-family: Fraunces, Georgia, serif;
}
.errsummary ul { margin: 0; padding-left: 1.2rem; font-size: .9rem; }
.errsummary li { margin-bottom: .28rem; }
.errsummary a { color: var(--h-crit); }

.confirm {
  border: 1px solid var(--h-plum);
  border-left: 4px solid var(--h-brass);
  background: var(--h-ok-bg);
  border-radius: var(--h-radius);
  padding: 1.5rem 1.6rem;
  outline: none;
}
.confirm.pending {
  border-color: var(--h-crit);
  border-left-color: var(--h-crit);
  background: var(--h-crit-bg);
}

.c-h {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--h-plum);
  margin: 0 0 .6rem;
}
.confirm.pending .c-h { color: var(--h-crit); }

.c-x { margin: 0 0 .7rem; font-size: .95rem; }
.c-x:last-child { margin-bottom: 0; }

/* ---------- membership support block ------------------------------------- */

.support {
  background: #fff;
  border: 1px solid var(--h-rule);
  border-radius: var(--h-radius);
  padding: 1.6rem 1.5rem;
  text-align: center;
  box-shadow: var(--h-shadow);
}
.sup-text { font-size: .95rem; color: var(--h-ink-soft); margin: 0 0 .7rem; }
.sup-id { font-size: .95rem; font-weight: 600; color: var(--h-plum); margin: 0; }
.sup-div { color: var(--h-rule); margin: 0 .45rem; }

/* ---------- privacy-notice components ------------------------------------ */

.neverbox {
  border: 1px solid var(--h-plum);
  border-left: 4px solid var(--h-brass);
  background: var(--h-ok-bg);
  border-radius: var(--h-radius);
  padding: 1.25rem 1.4rem;
  margin: 1.4rem 0;
}
.nb-t {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--h-plum);
  margin: 0 0 .5rem;
}
.nb-x { margin: 0 0 .5rem; font-size: .93rem; }
.nb-x:last-child { margin-bottom: 0; }

.crit-date {
  font-size: .85rem;
  color: var(--h-ink-soft);
  font-style: italic;
  margin: 0 0 1.4rem;
}

/* ---------- footer -------------------------------------------------------- */

body.v-std footer {
  border-top: 1px solid var(--h-rule);
  margin-top: 3.2rem;
  padding: 1.8rem 1.5rem 2.6rem;
  text-align: center;
  font-size: .845rem;
  color: var(--h-ink-soft);
}
body.v-std footer .div { color: var(--h-rule); margin: 0 .4rem; }

body.v-std footer .f-links {
  margin: .85rem 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
}
body.v-std footer .f-links a {
  color: var(--h-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
body.v-std footer .f-links a:hover { color: var(--h-plum); border-bottom-color: var(--h-brass); }

/* ---------- wider viewports ---------------------------------------------- */

@media (min-width: 46rem) {
  fieldset.paths { grid-template-columns: 1fr 1fr; }
  .formcard { padding: 2.1rem 2rem 2.3rem; }
}

/* ---------- small screens (tested at 390px) ------------------------------ */

@media (max-width: 33rem) {
  body.v-std { font-size: 16px; }
  body.v-std .wrap { padding: 0 1.05rem; }

  body.v-std header.top {
    flex-direction: column;
    align-items: flex-start;
    gap: .95rem;
    padding: .95rem 0;
    margin-bottom: 1.8rem;
  }
  nav.mainnav { gap: .55rem .95rem; width: 100%; }
  nav.mainnav a { font-size: .82rem; }
  nav.mainnav a.apply-btn,
  nav.mainnav a.member-btn { padding: .4rem .85rem; }

  .b-sub { font-size: .53rem; }
  .page-head { margin-bottom: 1.9rem; }
  .page-head .sub { font-size: .99rem; }

  .formcard { padding: 1.15rem 1rem 1.35rem; border-radius: 8px; }
  .formcard button[type="submit"] { padding: .9rem 1rem; }
  .path label { padding: .9rem 1rem; }
  .confirm, .support, .neverbox { padding: 1.15rem 1.05rem; }

  .ack { padding: .75rem .85rem; }
  .sup-div { display: block; height: 0; overflow: hidden; margin: 0; }
}

/* ---------- respect user preferences ------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body.v-std * { transition: none !important; }
}

/* ---------- base-stylesheet reconciliation -------------------------------- */
/* halso.css carries `@media (min-width:961px){ .mainnav{display:block!important} }`
   because the site header nests its links in a <ul> that acts as the flex row.
   This page's header has direct <a> children and no <ul>, so that declaration
   collapses the links to ~5px of inline whitespace. Restore the flex row at the
   same breakpoint. Scoped to apply.css, which only these two pages load, so no
   other page on the site is affected. */
@media (min-width: 961px) {
  nav.mainnav { display: flex !important; }
}
