.member-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}
.member-link:hover, .member-link:focus-visible { text-decoration: underline; text-underline-offset: .3em; }
.head-nav .member-link { padding-block: 8px; font-size: 15px; font-weight: 750; }
.footer-inner nav { flex-wrap: wrap; }
@media (min-width: 681px) and (max-width: 1050px) {
  .mast-inner { column-gap: clamp(10px, 1.6vw, 18px); }
  .head-nav { gap: clamp(10px, 1.5vw, 16px); margin-right: 0; }
}
@media (max-width: 850px) {
  .head-nav .member-link { font-size: 13px; }
}
@media (max-width: 960px) {
  .head-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .head-nav.open > * { justify-self: start; }
}

body:has(.member-dialog[open]) { overflow: hidden; }
.member-dialog {
  width: min(430px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px #1d241c38;
}
.member-dialog::backdrop { background: rgb(28 31 25 / 57%); }
.member-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px clamp(18px, 5vw, 28px);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(115deg, #ebe8d8, #f9f6eb);
}
.member-head h2 { margin: 0; font-size: clamp(22px, 4vw, 27px); line-height: 1.3; }
.member-head h2:focus { outline: 0; }
.member-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #797765;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.member-body { padding: 23px clamp(18px, 5vw, 28px) 26px; }
.member-body p { margin: 0 0 15px; font-size: 14px; }
.member-body form { display: grid; gap: 15px; }
.member-body label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.member-body input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #9b9a87;
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.member-body small { color: var(--muted); font-size: 12px; font-weight: 500; }
.member-submit {
  width: 100%;
  min-height: 45px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}
.member-submit:hover { background: #f1b829; }
.member-dialog button:disabled { cursor: wait; opacity: .64; }
.member-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; }
.member-orders-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; margin-bottom: 16px; padding: 8px 14px; border: 1px solid #315448; border-radius: 6px; color: #244b39; font-weight: 750; }
.member-orders-link:hover { background: #e9eddf; }
.member-text { min-height: 36px; border: 0; padding: 4px 0; background: transparent; color: #315448; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.member-body .member-alert { color: #8d2d19; margin-bottom: 0; }
.member-alert:empty { display: none; }
.member-body .member-address { margin-bottom: 22px; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.member-body .member-code { display: block; margin-block: 5px 16px; padding: 14px 16px; overflow-wrap: anywhere; border: 1px dashed #577464; border-radius: 5px; background: #e7eddf; color: #223e30; font: 700 17px/1.6 ui-monospace, monospace; user-select: all; }
.member-line-button {
  width: 100%;
  min-height: 45px;
  padding: 9px 14px;
  border: 1px solid #25503c;
  border-radius: 6px;
  background: #315e49;
  color: #fff;
  font-weight: 750;
}
.member-line-button:hover { background: #244b39; }
.member-body [data-line-slot] { margin-bottom: 16px; }
.member-submit + [data-line-slot] { margin: 12px 0 0; }
.member-body .member-line-state, .member-body .member-notice {
  margin: 0;
  padding: 10px 12px;
  background: #e9eddf;
  border-radius: 5px;
  color: #254634;
  font-size: 14px;
}
.member-body .member-notice { margin-bottom: 18px; }
.member-body .member-line-label { margin: 0 0 6px; font-weight: 700; }
.member-body .member-email-label { margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-weight: 700; }
.member-prefs-link { background: transparent; font: inherit; font-weight: 750; }
.member-prefs .pref-panel { margin: 0 0 16px; padding: 14px; border: 1px solid var(--rule); border-radius: 8px; gap: 10px; }
.pref-panel h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; color: #254634; font-size: 18px; }
.pref-panel small { font-weight: 650; }
.member-prefs .pref-panel p { margin: 0; }
.pref-panel .pref-contact { overflow-wrap: anywhere; }
.pref-panel fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.pref-panel legend { margin-bottom: 8px; color: #254634; font-weight: 750; }
.pref-flavors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 2px 9px; }
.member-prefs .pref-flavors label { display: flex; align-items: center; min-height: 38px; gap: 6px; }
.member-prefs .pref-flavors input { width: 18px; height: 18px; flex: none; accent-color: #315448; }
.pref-panel .member-text { justify-self: start; }
.pref-feedback:empty { display: none; }
.gs-subscribe-link { display: inline-block; align-self: start; justify-self: start; min-height: 42px; border: 0; background: transparent; padding: 6px 0; color: #315448; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.gs-subscribe-dialog .opt-in { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 500; }
.member-body .member-policy { margin: 0; color: #55594d; font-size: 13px; }
.member-body .member-policy a { color: #315448; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gs-subscribe-dialog .opt-in input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: #315448; }
.member-body .activity-area-fields { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.member-body .activity-area-fields legend { margin-bottom: 6px; font-weight: 700; }
.member-body select { width: 100%; min-height: 42px; min-width: 0; border: 1px solid #9b9a87; border-radius: 6px; background: #fffefa; color: var(--ink); font: inherit; }
.gs-subscribe-dialog [hidden] { display: none; }
