/* Approved calm layout with restrained gloss; no functional selectors hidden. */
.site-header{background:linear-gradient(120deg,rgba(255,253,247,.98),rgba(245,242,251,.96));box-shadow:0 2px 18px rgba(34,42,91,.055)}
.brand-logo{filter:drop-shadow(0 2px 3px rgba(54,42,89,.10))}.brand-text strong{letter-spacing:.01em}
.primary-button,.outline-button,.view-button,.nav-tab,.profile-card,.sh-card{transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease,border-color .22s ease}
.primary-button{background:linear-gradient(160deg,#294b87,#192d60);border:1px solid rgba(187,151,80,.6);box-shadow:inset 0 1px rgba(255,255,255,.17),0 4px 12px rgba(28,45,92,.12)}
.outline-button{background:linear-gradient(150deg,#fffefb,#f5f1e8);box-shadow:inset 0 1px rgba(255,255,255,.9)}
.profile-card,.sh-card{background:linear-gradient(145deg,#fffefb,#faf8f3);box-shadow:0 5px 20px rgba(36,43,83,.055);border-color:#ded7c9}
.sea-art{filter:drop-shadow(0 6px 15px rgba(65,50,113,.10));animation:calm-light 9s ease-in-out infinite}
@keyframes calm-light{0%,100%{filter:drop-shadow(0 6px 15px rgba(65,50,113,.10))}50%{filter:drop-shadow(0 6px 18px rgba(178,145,75,.16))}}
@media(hover:hover){.primary-button:hover,.outline-button:hover,.view-button:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(35,48,95,.15)}.profile-card:hover,.sh-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(35,48,95,.10)}}
@media(prefers-reduced-motion:reduce){.sea-art{animation:none}.primary-button,.outline-button,.view-button,.nav-tab,.profile-card,.sh-card{transition:none;transform:none}html{scroll-behavior:auto}}

/* Readable profile CTA and an approved-only workspace entry. */
#registrationButton,#heroRegister,.hero .primary-button,.workspace-launch{color:#fff8e8;background:linear-gradient(160deg,#294b87,#192d60);border:1px solid #b49a62}
#registrationButton{padding:10px 14px;border-radius:8px}
#registrationButton:hover,#heroRegister:hover,.hero .primary-button:hover,.workspace-launch:hover{color:#fff8e8;background:linear-gradient(160deg,#304f91,#20396f)}
.workspace-launch{min-height:44px;white-space:normal;text-align:center}
@media(max-width:600px){.hero-actions .workspace-launch{width:100%;margin-top:8px}}

/* Keep navigation within the viewport without reducing readable type. */
.header-inner{width:100%;min-width:0;box-sizing:border-box}
.header-inner .main-nav,.header-inner .header-tools{min-width:0;max-width:100%;box-sizing:border-box}
.header-inner .main-nav>button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(min-width:981px){
 .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px}
 .header-inner .brand{grid-column:1;grid-row:1;min-width:0}
 .header-inner .header-tools{grid-column:2;grid-row:1}
 .header-inner .main-nav{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;margin:0;gap:4px;width:100%}
 .header-inner .main-nav>button{flex:0 1 auto}
}
@media(max-width:980px){
 .header-inner .main-nav{max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain}
 .header-inner .main-nav>button{width:100%;text-align:start}
}
@media(max-width:640px){.header-inner .header-tools{flex-wrap:wrap}.header-inner .brand-text{min-width:0;overflow-wrap:anywhere}}

#observanceFilters{border:0;padding:0;margin:0 0 18px;min-width:0}#observanceFilters legend{font-weight:700;color:#243140;margin-bottom:8px}#observanceFilters .checkbox-label{display:flex;align-items:center;gap:8px;min-height:32px;font-size:15px;line-height:1.4}#observanceFilters input{flex:none;width:16px;height:16px}

.fee-acknowledgment input[type=checkbox]{flex-shrink:0;cursor:pointer}

.primary-button.potential-matches-button{background:#ff9d45;color:#241509}
.primary-button.potential-matches-button:hover:not(:disabled){background:#ef832a;color:#241509}
.primary-button.potential-matches-button:focus-visible{outline:3px solid #1a1f4f;outline-offset:3px}
.primary-button.potential-matches-button:disabled{background:#f3c99f;color:#594331}

/* Member Directory How It Works button */
#singleDirectory #howButton {
  align-self: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid #9b7639;
  border-radius: .5rem;
  background: #f1d28b;
  color: #152844;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

#singleDirectory #howButton .icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

#singleDirectory #howButton:lang(en) [data-i18n="howWorks"] {
  text-transform: capitalize;
}

@media (hover: hover) {
  #singleDirectory #howButton:hover {
    background: #ffe9ae;
  }
}

#singleDirectory #howButton:active {
  background: #e4c477;
}

#singleDirectory #howButton:focus-visible {
  outline: 3px solid #152844;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  #singleDirectory #howButton {
    align-self: stretch;
  }
}

/* Smart Shidduch suggestions and confidential feedback */
.smart-suggestion {
  padding: clamp(1rem, 2.4vw, 1.45rem);
  border: 1px solid #d9c9ab;
  border-radius: .85rem;
  background: #fffdf8;
  color: #152844;
}

.smart-suggestion > h4 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  margin: 0 0 .45rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.smart-suggestion > h4 span {
  padding: .25rem .55rem;
  border-radius: .4rem;
  background: #f6ecda;
  font-size: .8rem;
}

.smart-suggestion > p + p { margin-block-start: .48rem }

.smart-suggestion > ul {
  margin: .15rem 0 .65rem;
  padding-inline-start: 1.2rem;
  font-size: .9rem;
  line-height: 1.45;
}

.smart-match-actions,
.smart-match-feedback {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-block-start: .9rem;
}

.smart-match-action {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 48px;
  padding: .42rem .6rem;
  border: 1px solid var(--match-button-border, transparent);
  border-radius: .55rem;
  background: var(--match-button);
  color: var(--match-text, #fff);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.smart-match-view {
  --match-button: #f1d28b;
  --match-hover: #ffe9ae;
  --match-text: #152844;
  --match-button-border: #987337;
}

.smart-match-introduction {
  --match-button: #152844;
  --match-hover: #29466d;
}

.smart-match-interest {
  --match-button: #206348;
  --match-hover: #174c37;
}

.smart-match-submit {
  --match-button: #a22930;
  --match-hover: #7a1c22;
}

.smart-match-submit:disabled { --match-button: #a3474a }
.smart-match-action:hover:not(:disabled) { background: var(--match-hover) }
.smart-match-action:active:not(:disabled) { box-shadow: inset 0 0 0 2px currentColor }
.smart-match-action:focus-visible,
.smart-match-feedback select:focus-visible {
  outline: 3px solid #152844;
  outline-offset: 3px;
}

.smart-match-interest[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #fff;
}

.smart-match-shadchan {
  min-height: 44px;
  margin-block-start: .2rem;
  font-size: .875rem;
  text-decoration: underline;
}

.smart-match-feedback {
  align-items: end;
  padding-block-start: .85rem;
  border-block-start: 1px solid #ddd2bf;
}

.smart-match-feedback label {
  display: grid;
  grid-column: span 2;
  gap: .35rem;
  min-width: 0;
}

.smart-match-feedback strong {
  color: #a22930;
  font-weight: 700;
}

.smart-match-feedback select {
  width: 100%;
  min-height: 48px;
  padding-inline: .7rem;
  border: 1px solid #96846d;
  border-radius: .55rem;
  background: #fffdf8;
  color: #152844;
  font-size: .92rem;
}

.smart-match-feedback > p {
  grid-column: 1 / -1;
  font-size: .83rem;
}

@media (max-width: 560px) {
  .smart-match-actions,
  .smart-match-feedback { grid-template-columns: minmax(0, 1fr) }
  .smart-match-feedback label { grid-column: auto }
}
