/* Bard Watch: sign-in, About, My Profile and the artist editor. Mobile first (320 px up); 640 and 900 px
   media queries add room. Colors and fonts come from the tokens in base.css. No inline styles. */

/* ---- the ridge picture at the bottom of sign-in and About ------------------------------------------ */

.ridge-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  pointer-events: none;
}

/* ---- sign-in ----------------------------------------------------------------------------------------- */

.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}
.login-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 22px 24px;
  text-align: center;
}
.login-logo {
  display: block;
  width: min(280px, 72%);
  height: auto;
  margin: 0 auto 10px;
}
.login-title {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
}
.star-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
  margin: 10px auto 18px;
  color: var(--cardinal);
}
.star-rule::before,
.star-rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--cardinal);
  opacity: 0.8;
}
.star-mark {
  width: 22px;
  height: 22px;
}
.form-messages {
  text-align: left;
}
.login-form {
  display: grid;
  gap: 12px;
  text-align: left;
}
.login-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  color: var(--forest);
}
.input-code {
  min-height: 60px;
  border-radius: 999px;
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.login-form .btn {
  min-height: 60px;
  font-size: 1.35rem;
}
.login-note {
  margin: 4px 0 0;
  text-align: center;
  font-style: italic;
  color: var(--text-soft);
}
.login-more {
  margin: 18px 0 0;
}
.login-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---- About -------------------------------------------------------------------------------------------- */

.about {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--cream);
}
.about-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 12px;
}
.about-title {
  text-align: center;
  font-size: clamp(2rem, 8vw, 3rem);
  margin-bottom: 4px;
}
.brush-about {
  width: min(240px, 60%);
  height: 10px;
  margin: 0 auto 18px;
}
.about-cards {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.about-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 0;
  min-height: 96px;
  border: 1px solid var(--parchment-line);
  border-radius: 20px;
  background: var(--parchment);
  overflow: hidden;
}
.about-mark {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 10px;
  border-right: 2px solid var(--tan);
  color: var(--forest);
}
.about-art {
  display: block;
  width: 100%;
  max-width: 76px;
  height: auto;
}
.about-icon {
  width: 52px;
  height: 52px;
}
.about-badge {
  position: relative;
  display: grid;
  place-items: center;
}
.about-badge .about-icon {
  width: 60px;
  height: 60px;
}
.about-badge-num {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cardinal);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}
.about-text {
  padding: 12px 16px;
}
.about-line {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.25;
}
.about-text > :last-child {
  margin-bottom: 0;
}
.about-text .btn {
  margin-top: 4px;
}
.about-more {
  margin: 0 0 14px;
  border-top: 2px solid var(--parchment-line);
  border-bottom: 2px solid var(--parchment-line);
  padding: 2px 4px;
}
.about-more summary,
.missing-details summary,
.done-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest);
}
.about-more summary::-webkit-details-marker,
.missing-details summary::-webkit-details-marker,
.done-details summary::-webkit-details-marker {
  display: none;
}
.about-more summary {
  font-size: 1.15rem;
}
.more-chev {
  width: 20px;
  height: 20px;
  transition: transform 0.15s;
}
.about-more[open] .more-chev,
.done-details[open] .more-chev {
  transform: rotate(180deg);
}
.missing-details[open] .more-chev {
  transform: none;
}
.missing-details:not([open]) .more-chev {
  transform: rotate(180deg);
}
.prose h2 {
  font-size: 1.2rem;
  margin: 1rem 0 0.25rem;
}
.about-go {
  text-align: center;
  margin: 8px 0 0;
}

/* ---- My Profile --------------------------------------------------------------------------------------- */

.me {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.pcard,
.ed-card,
.completion-card,
.activity-card {
  border: 1px solid var(--parchment-line);
  border-radius: 22px;
  background: var(--parchment);
  padding: 16px;
}
.pcard-head,
.ed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pcard-icon,
.ed-icon {
  width: 36px;
  height: 36px;
  color: var(--forest);
}
.pcard-title,
.ed-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}
.pcard-body {
  min-width: 0;
}
.profile-card {
  margin: 0 0 12px;
  padding: 14px;
  border: 1.5px solid var(--tan);
  border-radius: 18px;
  background: var(--cream);
}
.profile-card:last-child {
  margin-bottom: 0;
}
.profile-card-name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}
.reveal-summary {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.reveals-left-left {
  margin: 0 0 10px;
  text-align: left;
  font-size: 1.1rem;
}
.reveals-left-left .num {
  font-size: 1.4rem;
}
.attempts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.attempt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  padding: 10px 0;
  border-top: 1px solid var(--tan);
}
.attempt-name {
  font-weight: 600;
}
.attempt-when {
  grid-column: 2;
  grid-row: 1;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.attempt-what {
  grid-column: 1 / -1;
  font-size: 0.95rem;
}

/* ---- the artist editor -------------------------------------------------------------------------------- */

.editor {
  max-width: 1100px;
  margin: 0 auto;
}
.editor-layout {
  display: grid;
  gap: 14px;
}
.editor-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}
.editor-sections {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.editor-error {
  margin: 0 0 12px;
}
.saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}
.saved-pill .pill-icon {
  width: 18px;
  height: 18px;
  color: var(--forest);
}
.saved-pill[data-state="saving"] .pill-icon {
  opacity: 0.4;
}
.saved-pill[data-state="error"] {
  background: var(--err-bg);
  color: var(--err);
}
.saved-pill[data-state="error"] .pill-icon {
  color: var(--err);
}

.completion-card {
  text-align: center;
}
.ring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 8px;
}
.ring-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ring-track {
  stroke: var(--tan);
}
.ring-fill {
  stroke: var(--forest);
}
.ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--forest);
}
.ring-label {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
}
.ring-done {
  font-weight: 600;
}
.ring-preview {
  margin-top: 12px;
}
.missing-details,
.done-details {
  margin: 8px 0 0;
  padding: 0 4px;
  border-top: 2px solid var(--parchment-line);
  text-align: left;
}
.checklist {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.check-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
button.check-link {
  cursor: pointer;
}
button.check-link:hover span:last-of-type {
  text-decoration: underline;
}
.check-box {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--forest);
  border-radius: 6px;
  background: var(--field-bg);
}
.check-mark {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
  background: var(--forest);
  color: var(--cream);
}
.stat {
  margin: 0 0 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--cardinal);
}
.activity-card .ring-label {
  font-size: 1.2rem;
}

.ed-head {
  flex-wrap: wrap;
}
.ed-title {
  flex: 1;
  min-width: 0;
}
.sec-badge {
  flex: none;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.sec-badge.is-done {
  background: var(--forest);
  color: var(--cream);
}
.sec-badge.is-needed {
  background: var(--cream);
  color: var(--cardinal);
  border: 1.5px solid var(--cardinal);
}
.ed-intro {
  margin: 0 0 10px;
}
.ed-body {
  min-width: 0;
}
.radio-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.bio-box {
  position: relative;
}
.bio-box .textarea {
  padding-bottom: 2.2rem;
}
.bio-count {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-soft);
  pointer-events: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.media-item {
  display: grid;
  gap: 6px;
  align-content: start;
}
.media-add {
  position: relative;
}
.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
  aspect-ratio: 1;
  border: 2px dashed var(--forest);
  border-radius: 14px;
  color: var(--forest);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.add-tile:hover {
  background: rgba(21, 69, 48, 0.07);
}
.media-add:focus-within .add-tile {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.add-plus {
  width: 28px;
  height: 28px;
}

.slots {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slot-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.slot-row .sample-row {
  flex: 1;
  min-width: 0;
}
.kebab-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.kebab-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 5;
  min-width: 200px;
  margin-top: 4px;
  padding: 6px;
  display: grid;
  gap: 4px;
  border: 1.5px solid var(--forest);
  border-radius: 14px;
  background: var(--field-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.slot-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 6px 16px;
  border: 2px dashed var(--forest);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}
.slot-add:hover {
  background: rgba(21, 69, 48, 0.07);
}
.slot-form {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--cream);
}

.pick {
  display: grid;
  gap: 8px;
}
.pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pick-chips:empty {
  display: none;
}
.pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 4px 0 16px;
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 600;
}
.chip-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.chip-x-icon {
  width: 16px;
  height: 16px;
}
.chip-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 2px dashed var(--forest);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.chip-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chip-add-icon {
  width: 18px;
  height: 18px;
}
.pick-add {
  position: relative;
}
.pick-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 6;
  min-width: 220px;
  max-width: 100%;
  max-height: 260px;
  overflow: auto;
  margin-top: 4px;
  padding: 6px;
  display: grid;
  gap: 2px;
  border: 1.5px solid var(--forest);
  border-radius: 14px;
  background: var(--field-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.pick-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pick-option:hover,
.pick-option:focus-visible {
  background: var(--parchment);
}

.row-editor {
  display: grid;
  gap: 10px;
}
.rows {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rows:empty {
  display: none;
}
.row-item {
  position: relative;
  padding: 10px 52px 6px 12px;
  border: 1.5px solid var(--tan);
  border-radius: 16px;
  background: var(--cream);
}
.row-fields {
  display: grid;
  gap: 0 12px;
}
.row-fields .field {
  margin-bottom: 0.5rem;
}
.row-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.row-remove .icon {
  width: 18px;
  height: 18px;
}
.contact-row-ed {
  padding-right: 12px;
}
.cr-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "mark kind kind kind"
    "value value switch remove";
  gap: 8px;
  align-items: center;
}
.cr-mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
}
.cr-mark .icon {
  width: 20px;
  height: 20px;
}
.cr-kind {
  grid-area: kind;
}
.cr-value {
  grid-area: value;
}
.cr-line .switch {
  grid-area: switch;
}
.cr-line .row-remove {
  grid-area: remove;
  position: static;
}
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 44px;
  flex: none;
}
.switch-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.switch-track {
  position: absolute;
  left: 0;
  top: 8px;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: var(--tan);
  transition: background 0.15s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 0.15s;
}
.switch-input:checked + .switch-track {
  background: var(--forest);
}
.switch-input:checked + .switch-track::after {
  transform: translateX(28px);
}
.switch-input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.confirm {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.confirm-q {
  font-weight: 600;
}
.ed-body > .btn + .btn,
.ed-body .confirm {
  margin-top: 4px;
}

@media (min-width: 640px) {
  .about-card {
    grid-template-columns: 130px 1fr;
  }
  .about-art {
    max-width: 100px;
  }
  .row-fields {
    grid-template-columns: 1.4fr 1fr;
  }
  .cr-line {
    grid-template-columns: auto 150px minmax(0, 1fr) auto auto;
    grid-template-areas: "mark kind value switch remove";
  }
  .ed-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 4px 20px;
    padding: 20px;
  }
  .ed-head {
    align-items: flex-start;
    flex-direction: column;
    margin: 0;
  }
  .ed-icon {
    width: 44px;
    height: 44px;
  }
  .ed-title {
    flex: none;
  }
  .pcard {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 4px 20px;
    padding: 20px;
  }
  .pcard-head {
    align-items: flex-start;
    flex-direction: column;
    margin: 0;
  }
  .pcard-icon {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 900px) {
  .editor-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .editor-aside {
    position: sticky;
    top: 88px;
  }
  .about-inner {
    padding-top: 28px;
  }
  .login-inner {
    padding-top: 48px;
  }
}

@media (max-width: 359px) {
  .about-card {
    grid-template-columns: 76px 1fr;
  }
  .about-icon {
    width: 40px;
    height: 40px;
  }
  .about-line {
    font-size: 1.08rem;
  }
  .ring {
    width: 130px;
    height: 130px;
  }
}

/* The artwork was cut from images with a cream background. Multiply lets the page color show through so no box edge appears. */
.login-logo,
.ridge-img,
.dt-hills,
.about-art {
  mix-blend-mode: multiply;
}
