/* The Psychology work area inherits PokerIndex's navigation and page shell. */
.ps-workspace {
  --ps-gold: #ddb387;
  --ps-line: #49382c;
  --ps-ink: #f7efe4;
  --ps-muted: #d0c2b3;
  color: var(--ps-ink);
  max-width: 1120px;
  margin-inline: auto;
}
.ps-workspace h1,
.ps-workspace h2,
.ps-workspace p { margin: 0; }
.ps-workspace h1,
.ps-workspace h2 {
  color: var(--ps-ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}
.ps-workspace h1 { font-size: clamp(2.6rem, 5.8vw, 5.25rem); letter-spacing: -.045em; }
.ps-workspace h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); letter-spacing: -.025em; }
.ps-workspace p,
.ps-workspace small { color: var(--ps-muted); }
.ps-header { padding: 14px 0 25px; border-bottom: 1px solid var(--ps-line); }
.ps-header > p { margin-top: 8px; font-size: clamp(1rem, 2.4vw, 1.15rem); }
.ps-learning {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1.3fr);
  gap: clamp(18px, 4vw, 58px);
  align-items: start;
  padding: 26px 0;
}
.ps-situations { display: grid; gap: 8px; margin-top: 16px; }
.ps-situations button {
  appearance: none;
  background: #191510;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  padding: 10px 15px;
  min-height: 48px;
  color: var(--ps-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}
.ps-situations button[aria-pressed="true"] { background: #38271d; border-color: var(--ps-gold); color: #fff3e5; }
.ps-situations button:hover { border-color: var(--ps-gold); }
.ps-program,
.ps-production {
  padding: clamp(16px, 3.1vw, 32px);
  min-width: 0;
  border: 1px solid var(--ps-line);
  border-top-color: var(--ps-gold);
  border-radius: 9px;
  background: linear-gradient(125deg, #272019, #191410 70%);
}
.ps-program > p { margin-top: 9px; }
.ps-program .ps-meta { font-size: .875rem; color: var(--ps-gold); }
.ps-program .ps-draft-label { font-size: .875rem; }
.ps-program .ps-safety { padding-left: 10px; border-left: 2px solid var(--ps-gold); }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 17px; }
.ps-workspace .ss-primary,
.ps-workspace .ss-secondary { min-height: 44px; }
.ps-workspace .ss-primary:disabled { opacity: .65; cursor: wait; }
.ps-link, .ps-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ps-gold) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  font: inherit;
}
button.ps-link { padding: 0; border: 0; background: none; cursor: pointer; }
.ps-invitation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 20px 0;
  border-block: 1px solid var(--ps-line);
}
.ps-invitation p { max-width: 64ch; margin-top: 6px; }
.ps-more { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 8px; }
.ps-author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .8fr);
  gap: 26px;
  align-items: start;
  padding-top: 24px;
}
.ps-studio-header { padding-top: 0; }
.ps-studio-header > a { margin-bottom: 6px; }
.ps-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.ps-steps li {
  border: 1px solid var(--ps-line);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--ps-muted);
  font-size: .875rem;
}
.ps-steps [aria-current="step"] { color: #18130e; background: var(--ps-gold); border-color: var(--ps-gold); font-weight: 700; }
.ps-form > p { margin: 7px 0 15px; }
.ps-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; margin-block: 15px; }
.ps-field { display: grid; min-width: 0; gap: 4px; }
.ps-field label { font-weight: 700; }
.ps-field small { line-height: 1.35; overflow-wrap: anywhere; }
.ps-workspace .ps-field input,
.ps-workspace .ps-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 5px;
  border: 1px solid #706050;
  background: #191510;
  color: var(--ps-ink);
  font: inherit;
}
.ps-field textarea { resize: vertical; }
.ps-field [aria-invalid="true"] { border-color: #ffb4a5 !important; }
.ps-rights { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; min-height: 44px; }
.ps-rights input { width: 19px; height: 19px; flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--ps-gold); }
.ps-workspace .ps-error { color: #ffb4a5; font-size: .875rem; }
.ps-draft-tools { margin-top: 16px; font-size: .9rem; }
.ps-production ol { padding-inline-start: 22px; }
.ps-production li + li { margin-top: 13px; }
.ps-production strong { color: var(--ps-gold); }
.ps-production p { font-size: .95rem; }
.ps-review { margin: 13px 0 0; }
.ps-review div { padding: 8px 0; border-bottom: 1px solid var(--ps-line); }
.ps-review dt { color: var(--ps-muted); font-size: .85rem; }
.ps-review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
body.am-is-reading .am-private-entry > summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
body.am-is-reading .am-private-entry > summary:focus-visible { outline: 2px solid #ddb387; outline-offset: 4px; }
@media (max-width: 720px) {
  .ps-header { padding: 3px 0 13px; }
  .ps-header > p { line-height: 1.35; }
  .ps-learning, .ps-author-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; padding-block: 14px; }
  .ps-situations { margin-top: 8px; }
  .ps-situations button { min-height: 44px; padding-block: 7px; }
  .ps-learning > section:first-child > h2 { font-size: 1.45rem; }
  .ps-program { padding: 12px 15px; }
  .ps-program h2 { font-size: 1.65rem; }
  .ps-program > p { margin-top: 4px; line-height: 1.33; }
  .ps-program .ps-actions { margin-top: 8px; }
  .ps-invitation { padding-block: 14px; }
  .ps-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (orientation: landscape) and (max-height: 450px) {
  .ps-header { padding: 0 0 8px; }
  .ps-workspace h1 { font-size: 2.35rem; }
  .ps-workspace h2 { font-size: 1.5rem; }
  .ps-header > p, .ps-program > p { margin-top: 4px; }
  .ps-learning { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; padding-block: 10px; }
  .ps-situations { margin-top: 6px; gap: 4px; }
  .ps-situations button { min-height: 44px; padding-block: 5px; }
  .ps-program { padding: 10px 14px; }
  .ps-program .ps-actions { margin-top: 6px; }
}

.ps-situation-select { display: none; }
@media (max-width: 420px), (orientation: landscape) and (max-height: 450px) {
  .ps-situations { display: none; }
  .ps-situation-select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 5px;
    padding: 6px 7px;
    border: 1px solid var(--ps-line);
    border-radius: 6px;
    background: #191510;
    color: var(--ps-ink);
    font: inherit;
  }
}
@media (max-width: 360px) {
  .ps-header { padding-bottom: 7px; }
  .ps-learning { gap: 9px; padding-block: 9px; }
  .ps-learning > section:first-child > h2 { font-size: 1.25rem; }
  .ps-program .ps-actions { column-gap: 8px; }
  .ps-program .ps-actions > .ss-primary { padding-inline: 10px; }
}
@media (orientation: landscape) and (max-height: 450px) {
  .ps-header > p { display: none; }
}

@media (orientation: landscape) and (max-height: 450px) {
  .ps-learning { padding-top: 5px; }
  .ps-program { padding-top: 5px; }
  .ps-program .ps-actions { margin-top: 2px; }
}
.ps-production details { margin-top: 14px; border-top: 1px solid var(--ps-line); }
.ps-production summary { min-height: 44px; padding-block: 10px; cursor: pointer; color: var(--ps-gold); }
.ps-production details ol { margin-top: 0; }


@media (max-width: 360px) {
  .ps-header > p { display: none; }
  .ps-program { padding-top: 8px; }
}


.ps-learner-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 8px;
  align-items: center;
}
.ps-learner-header > p { grid-column: 1 / -1; }
.ps-author-entry { justify-self: end; white-space: nowrap; }
@media (max-width: 360px) {
  .ps-learner-header { padding-block: 0; }
  .ps-author-entry { font-size: .875rem; }
}

