/* Player Manual inline email signup, guide save bar, and /account/ preference center */

.pm-member-wrap {
  padding-block: clamp(1.4rem, 3.2vw, 2.5rem);
}

.pm-member-card {
  background: var(--white, #fffdf8);
  border: 1px solid var(--rule, #dbcfc9);
  border-radius: 8px;
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
  margin: 1.5rem 0;
  color: var(--ink, #21192a);
}

.pm-member-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2f4b37;
  margin-bottom: 0.35rem;
}

.pm-member-card h2 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink, #21192a);
}

.pm-member-copy {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
  line-height: 1.52;
  color: var(--quiet, #685c69);
  max-width: 64ch;
}

.pm-member-form {
  margin-top: 1rem;
}

.pm-member-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.pm-member-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pm-member-topics {
  border: 0;
  padding: 0;
  margin: 0 0 0.85rem;
}

.pm-member-topics legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink, #21192a);
  margin-bottom: 0.45rem;
}

.pm-member-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.pm-member-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--rule, #dbcfc9);
  border-radius: 999px;
  background: var(--paper, #fff9f2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink, #21192a);
  cursor: pointer;
  min-height: 44px;
}

.pm-member-topic:has(input:checked) {
  background: #e6f0e9;
  border-color: #2f4b37;
  color: #1c3122;
}

.pm-member-topic input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #2f4b37;
  cursor: pointer;
}

.pm-member-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
  max-width: 560px;
}

.pm-member-input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid #a899a2;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink, #21192a);
  font-size: 0.98rem;
}

.pm-member-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid #2f4b37;
  border-radius: 5px;
  background: #2f4b37;
  color: #fffdf8;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pm-member-submit:hover {
  filter: brightness(0.92);
}

.pm-member-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #a899a2;
  border-radius: 5px;
  background: var(--paper, #fff9f2);
  color: var(--ink, #21192a);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.pm-btn-secondary:hover {
  background: #f1e7e1;
}

.pm-member-status {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  min-height: 0;
}

.pm-member-status:empty {
  display: none;
}

.pm-member-status[data-tone="ok"] {
  color: #214e31;
}

.pm-member-status[data-tone="err"] {
  color: #8f2238;
}

.pm-member-sublink {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  color: var(--ink, #21192a);
}

.pm-member-sublink a {
  font-weight: 650;
  color: #2f4b37;
}

.pm-member-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--quiet, #685c69);
}

.pm-member-note a {
  color: inherit;
}

/* Lightweight Save Guide to My Lists bar */
.pm-save-shell {
  padding-top: 0.75rem;
}

.pm-save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin: 0.85rem 0 1rem;
}

.pm-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1px solid #2f4b37;
  border-radius: 999px;
  background: var(--white, #fffdf8);
  color: #2f4b37;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.pm-save-btn:hover {
  background: #edf4ef;
}

.pm-save-btn[aria-pressed="true"] {
  background: #2f4b37;
  color: #fffdf8;
}

.pm-save-btn-sm {
  min-height: 36px;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
}

.pm-save-link {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--quiet, #685c69);
}

.pm-save-status {
  font-size: 0.84rem;
  color: #214e31;
}

.pm-sync-inline-trigger {
  display: inline;
  padding: 0.1rem 0.25rem;
  margin-left: 0.15rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #2f4b37;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.pm-sync-inline-trigger:hover {
  color: #1c3122;
  background: #e6f0e9;
}

.pm-sync-inline-trigger:focus-visible {
  outline: 2px solid #2f4b37;
  outline-offset: 2px;
}

/* Instant email sign-up modal on save or checklist check */
html.pm-sync-modal-open {
  overflow: hidden;
}

.pm-sync-modal {
  padding: 0;
  border: 0;
  background: transparent;
  width: min(92vw, 490px);
  max-width: calc(100vw - 1.5rem);
  max-height: 92dvh;
  margin: auto;
  overflow: visible;
  color: var(--ink, #21192a);
}

.pm-sync-modal::backdrop {
  background: rgba(24, 18, 32, 0.62);
  backdrop-filter: blur(2px);
}

.pm-sync-modal.pm-sync-modal-fallback {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  width: 100vw;
  max-width: none;
  max-height: none;
  padding: 1rem;
  background: rgba(24, 18, 32, 0.62);
}

.pm-sync-modal-card {
  position: relative;
  width: 100%;
  max-width: 490px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--white, #fffdf8);
  border: 1px solid var(--rule, #dbcfc9);
  border-radius: 10px;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  box-shadow: 0 22px 60px rgba(24, 18, 32, 0.28);
  color: var(--ink, #21192a);
}

.pm-sync-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.pm-sync-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin: -0.35rem -0.45rem 0 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--quiet, #685c69);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pm-sync-modal-close:hover {
  background: #f1e7e1;
  color: var(--ink, #21192a);
}

.pm-sync-modal-close:focus-visible {
  outline: 2px solid #2f4b37;
  outline-offset: 2px;
}

.pm-sync-modal-card h2 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink, #21192a);
}

.pm-sync-modal-copy {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--quiet, #685c69);
}

.pm-sync-modal-form {
  margin-top: 1rem;
}

.pm-sync-modal-field {
  display: flex;
  margin-bottom: 0.75rem;
}

.pm-sync-modal-field .pm-member-input {
  width: 100%;
  flex: 1 1 auto;
}

.pm-sync-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.pm-sync-modal-actions .pm-member-submit {
  flex: 1 1 auto;
}

.pm-sync-modal-dismiss {
  flex: 0 0 auto;
}

/* /account/ Preference Center */
.pm-account-head {
  max-width: 70ch;
  margin-bottom: 1.4rem;
}

.pm-account-head .lead {
  margin-top: 0.65rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.pm-account-banner {
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  border: 1px solid #2f4b37;
  background: #e6f0e9;
  color: #1a3523;
  font-weight: 650;
  margin-bottom: 1.25rem;
}

.pm-account-banner[data-tone="warn"] {
  border-color: #a16620;
  background: #fdf3e2;
  color: #5b370d;
}

.pm-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pm-account-col {
  display: grid;
  gap: 1.25rem;
}

.pm-account-panel {
  background: var(--white, #fffdf8);
  border: 1px solid var(--rule, #dbcfc9);
  border-radius: 8px;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}

.pm-account-panel h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.pm-account-panel h3 {
  font-size: 1.18rem;
  margin: 0 0 0.45rem;
}

.pm-account-panel p {
  line-height: 1.55;
}

.pm-account-panel .pm-member-card {
  margin: 0.75rem 0 0;
  border-left-width: 3px;
  padding: 1rem;
}

.pm-account-rule {
  border: 0;
  border-top: 1px solid var(--rule, #dbcfc9);
  margin: 1.35rem 0;
}

.pm-account-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule, #dbcfc9);
}

.pm-account-email {
  font-size: 1.06rem;
  font-weight: 750;
  word-break: break-word;
}

.pm-status-badge {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e6f0e9;
  color: #1f442a;
}

.pm-status-badge[data-state="unsubscribed"] {
  background: #f5e6e9;
  color: #7b2235;
}

.pm-status-badge[data-state="pending"] {
  background: #fdf3e2;
  color: #6b4111;
}

.pm-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.pm-sync-box {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule, #dbcfc9);
}

.pm-sync-meta,
.pm-panel-note,
.pm-empty-note {
  font-size: 0.92rem;
  color: var(--quiet, #685c69);
  margin-top: 0.35rem;
}

.pm-saved-list,
.pm-checklist-summary,
.pm-quick-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.pm-saved-item,
.pm-checklist-row,
.pm-quick-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule, #dbcfc9);
  border-radius: 6px;
  background: var(--paper, #fff9f2);
}

.pm-saved-item a,
.pm-checklist-row a,
.pm-quick-item a {
  font-weight: 650;
  text-decoration: none;
}

.pm-saved-item a:hover,
.pm-checklist-row a:hover,
.pm-quick-item a:hover {
  text-decoration: underline;
}

.pm-saved-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--quiet, #685c69);
  margin-top: 0.15rem;
}

.pm-remove-btn {
  border: 1px solid #c5b4bc;
  border-radius: 4px;
  background: transparent;
  color: var(--ink, #21192a);
  padding: 0.32rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 34px;
}

.pm-remove-btn:hover {
  background: #f2e4e8;
}

.pm-quick-save {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule, #dbcfc9);
}

.pm-quick-save summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.94rem;
}

.pm-account-privacy {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--quiet, #685c69);
}

@media (max-width: 820px) {
  .pm-account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pm-member-row {
    flex-direction: column;
  }
  .pm-member-submit {
    width: 100%;
  }
  .pm-sync-modal {
    width: min(94vw, 490px);
  }
  .pm-sync-modal-card {
    padding: 1.1rem;
  }
  .pm-sync-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pm-sync-modal-dismiss {
    width: 100%;
  }
}
