/* Shared site chrome, fonts and paper palette come from /styles.css.
   Content rules are scoped here so the existing guide and PDF exports stay unchanged. */
.therapist-page .therapist-content {
  max-width: 780px;
  padding-block: 50px 80px;
}
.therapist-page .therapist-content h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.12;
  margin-bottom: 25px;
  overflow-wrap: anywhere;
}
.therapist-page .therapist-content h2 {
  font-size: 32px;
  margin: 46px 0 20px;
}
.therapist-page .therapist-content p {
  margin-bottom: 20px;
}
.therapist-page .therapist-content .lede {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.therapist-page .therapist-content .eyebrow {
  margin-bottom: 17px;
}
.therapist-page .lang-switch {
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}
.therapist-page .lang-switch summary {
  cursor: pointer;
  width: fit-content;
}
.therapist-page .lang-switch ul,
.therapist-page .inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
  font-size: 14px;
}
.therapist-page .lang-switch a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}
.therapist-page .store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0 20px;
}
.therapist-page .store-link {
  display: inline-block;
  padding: 11px 18px;
  background: #fcf9f4;
  color: var(--plum-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  border-image: url("/assets/pencil-border.svg") 20 / 10px / 2px stretch;
}
.therapist-page .store-link:hover {
  background-color: var(--rose);
}
.therapist-page .hub-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-block: 25px;
}
.therapist-page .hub-card,
.therapist-page .summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcf9f4;
  border-image: url("/assets/pencil-border.svg") 20 / 11px / 2px stretch;
}
.therapist-page .hub-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
}
.therapist-page .hub-card span {
  color: var(--muted);
  font-size: 15px;
}
.therapist-page .steps {
  padding-left: 24px;
  color: var(--muted);
}
.therapist-page .steps li {
  margin-bottom: 18px;
  padding-left: 5px;
}
.therapist-page .steps strong {
  color: var(--ink);
}
.therapist-page .summary {
  margin-top: 40px;
  font-size: 14px;
  background-color: var(--sage);
}
.therapist-page .summary h2 {
  margin-top: 0;
  font-size: 26px;
}
.therapist-page .summary p:last-child,
.therapist-page .qr-block p:last-child {
  margin-bottom: 0;
}
.therapist-page .qr-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}
.therapist-page .qr-block > div {
  flex: 1 1 260px;
}
/* QR codes stay dark on white, independent of the site's paper texture. */
.therapist-page .qr {
  display: block;
  width: 152px;
  height: 152px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.therapist-page input:focus-visible,
.therapist-page select:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}
.therapist-page .hw-errors p {
  color: inherit;
}
@media (max-width: 620px) {
  .therapist-page .therapist-content {
    padding-block: 32px 55px;
  }
  .therapist-page .therapist-content .lede {
    font-size: 17px;
  }
  .therapist-page .hub-links {
    grid-template-columns: 1fr;
  }
}

/* Builder-specific layout ported from the app; all rules stay scoped. */
.therapist-page [hidden] {
  display: none !important;
}

.therapist-page .hw-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.therapist-page .hw-form,
.therapist-page .hw-practices,
.therapist-page .hw-practice,
.therapist-page .hw-rule {
  display: grid;
  gap: 1rem;
}

.therapist-page .hw-form {
  margin-top: 2rem;
  gap: 1.25rem;
}

.therapist-page .hw-field {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.therapist-page .hw-field small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.therapist-page .hw-form input,
.therapist-page .hw-form select,
.therapist-page .hw-link-row input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.therapist-page .hw-form input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
}

/* `min-width: 0`: a fieldset is min-content wide by default and would overflow a phone screen. */
.therapist-page .hw-practice {
  margin: 0;
  min-width: 0;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--rose);
}

.therapist-page .hw-legend {
  padding: 0 0.25rem;
  font-weight: 600;
}

.therapist-page .hw-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.therapist-page .hw-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.therapist-page .hw-days legend {
  margin-bottom: 0.375rem;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.therapist-page .hw-day {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
}

.therapist-page .hw-times {
  display: grid;
  gap: 0.5rem;
}

.therapist-page .hw-label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.therapist-page .hw-button {
  justify-self: start;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.therapist-page .hw-button-quiet {
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

.therapist-page .hw-errors {
  padding: 0.75rem 1rem;
  border: 1px solid #a13945;
  border-radius: 0.75rem;
  color: #a13945;
  font-size: 0.9375rem;
}

.therapist-page .hw-errors p {
  margin: 0.25rem 0;
}

.therapist-page .hw-result {
  margin-top: 2.5rem;
}

.therapist-page .hw-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.therapist-page .hw-link-row input {
  flex: 1 1 12rem;
  font-size: 0.875rem;
}

.therapist-page .hw-qr .qr {
  width: min(100%, 18rem);
  height: auto;
  margin-top: 1.25rem;
}
