/* Espazo persoal: perfil, directorio de persoas e favoritos. Ver js/profile.js. */

/* "Persoas" só ten sentido con login (en local e sen API non hai perfís). */
body:not([data-auth-mode="google"]) [data-people-nav] {
  display: none !important;
}

/* Conta na barra lateral: a liña do nome é un botón cara ao perfil. */
.sidebar-foot button.account-line.is-link {
  gap: 10px;
  width: 100%;
  padding: 6px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.sidebar-foot button.account-line.is-link:hover .account-text strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-foot button.account-line.is-link.active::after {
  display: none;
}

/* Estrelas de favorito */

.fav-btn {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}

.fav-btn:hover,
.fav-btn:focus-visible {
  color: var(--accent);
  background: var(--tint);
  outline: 0;
}

.fav-btn.is-on {
  color: var(--accent);
}

.fav-btn.has-label {
  height: auto;
  padding: 7px 12px;
  font-size: 14px;
  border: 1px solid var(--line);
}

.fav-btn.has-label .fav-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.fav-row {
  margin: 8px 0 2px;
}

.fav-slot {
  display: inline-flex;
}

.fav-slot.is-float {
  position: absolute;
  top: 12px;
  right: 52px;
  z-index: 1;
}

.fav-slot.in-top {
  flex: 0 0 auto;
}

.incipit-row .fav-slot {
  align-self: center;
  margin-left: 6px;
}

#coplaDrawer .drawer-actions .fav-btn.has-label,
#pieceDrawer .drawer-actions .fav-btn.has-label {
  margin-right: auto;
}

.fav-slot.in-meta {
  margin-left: auto;
}

.fav-slot.in-meta .fav-btn {
  height: 26px;
  min-width: 26px;
  padding: 0 4px;
  font-size: 16px;
}

.fav-btn.is-compact {
  min-width: 0;
  height: 18px;
  padding: 0 0 0 5px;
  margin-right: -4px;
  font-size: 13px;
  vertical-align: baseline;
}

.tag.has-star {
  display: inline-flex;
  align-items: center;
}

/* O meu espazo e persoas */

.profile-page,
.people-page {
  max-width: 880px;
  padding-bottom: 80px;
}

.profile-page .panel,
.people-page .panel {
  margin-top: 18px;
}

.profile-id {
  display: flex;
  gap: 16px;
  align-items: center;
}

.account-avatar.is-large {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.profile-form .field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.profile-form .field.full,
.profile-form .check-row,
.profile-form .form-actions {
  grid-column: 1 / -1;
}

.profile-form label {
  font-size: 13px;
  font-weight: 500;
}

.profile-form small,
.small-print {
  font-size: 12px;
  color: var(--muted);
}

.profile-form code {
  font-family: var(--font-mono);
  font-size: 12px;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.profile-form .check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
}

.profile-form .check-row input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.profile-form .check-row span {
  display: grid;
  flex: 1;
  gap: 2px;
}

.profile-form .check-row strong {
  font-size: 14px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.place-pick {
  display: flex;
  gap: 8px;
  align-items: center;
}

.place-pick input {
  flex: 1;
  min-width: 0;
}

.place-pick input {
  scroll-margin-top: 96px;
}

.place-results {
  display: block;
  max-height: min(320px, 45vh);
  max-height: min(320px, 45dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--float-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.place-results[hidden] {
  display: none;
}

.place-results button {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.place-results button:hover,
.place-results button:focus-visible {
  background: var(--tint);
  outline: 0;
}

.place-results span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .place-results button {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    min-height: 44px;
  }
}

.fav-list {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.fav-item {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.fav-open {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
  padding: 10px 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.fav-open strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-open span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.fav-open:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.person-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border-radius: var(--radius);
  transition: background 120ms ease;
}

.person-card:hover,
.person-card:focus-visible {
  background: var(--tint);
  outline: 0;
}

.person-card-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.person-place {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.person-bio {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.person-bio-full {
  margin: 0;
  line-height: 1.55;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-page,
  .people-page {
    padding-bottom: 110px;
  }
}

/* Pezas e persoas */

.tag.is-private {
  font-style: italic;
  color: var(--muted);
}

.tag.is-public {
  color: var(--ink);
}

.tag.is-hidden-piece {
  color: var(--accent);
}

.piece-scope {
  margin: 4px 0 8px;
}

.piece-login-note {
  margin: 4px 0 14px;
  font-size: 14px;
}

.piece-login-note a {
  color: var(--accent);
}

.workshop-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin: 0 0 16px;
  background: var(--tint);
  border-radius: var(--radius);
}

.workshop-notice > div {
  display: grid;
  gap: 2px;
  max-width: 640px;
}

.workshop-notice span {
  font-size: 14px;
  color: var(--muted);
}

.piece-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.piece-row {
  flex-wrap: wrap;
}

.piece-row .fav-open {
  min-width: 160px;
}

.piece-vis {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.piece-vis.is-public {
  color: var(--ink);
}

.piece-vis.is-hidden {
  color: var(--accent);
}

.piece-row .btn {
  padding: 5px 12px;
  font-size: 13px;
}

.fav-tabs {
  flex-wrap: wrap;
  gap: 4px 18px;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.tag-picker input {
  flex: 1;
  min-width: 200px;
}

.people-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip-link {
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  background: var(--tint);
  border-radius: 999px;
}

.chip-link:hover,
.chip-link:focus-visible {
  background: var(--tint-strong);
  outline: 0;
}

.sub-title {
  margin: 18px 0 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-id .follow-btn {
  align-self: center;
  margin-left: auto;
}

/* Diálogo de gardado */

.fe-dialog {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.fe-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.36);
}

.fe-dialog-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 26px;
  overflow: auto;
  background: var(--float-bg);
  border-radius: 24px;
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(23, 23, 23, 0.22));
}

.fe-dialog-panel h2 {
  margin: 0;
  font-size: 24px;
}

.fe-dialog-panel .field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.fe-dialog-panel label,
.fe-dialog-panel legend {
  font-size: 13px;
  font-weight: 500;
}

.fe-dialog-panel fieldset {
  padding: 0;
  border: 0;
}

.fe-dialog-panel .vis-option {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-weight: 400;
  cursor: pointer;
}

.fe-dialog-panel .vis-option input[type="radio"],
.fe-dialog-panel .check-row input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.fe-dialog-panel .vis-option > span,
.fe-dialog-panel .check-row > span {
  display: grid;
  flex: 1;
  gap: 2px;
}

.fe-dialog-panel .vis-option strong,
.fe-dialog-panel .check-row strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.fe-dialog-panel .check-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

.vis-option small,
.fe-dialog-panel small {
  font-size: 12px;
  color: var(--muted);
}

.fe-dialog-panel .is-error {
  color: var(--accent);
}

.fe-dialog-panel .form-actions {
  justify-content: flex-end;
}

/* Sobre o arquivo */

.about-page {
  max-width: 980px;
  padding-bottom: 90px;
}

.about-section {
  padding-top: 26px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.about-section-head h2 {
  margin: 4px 0 10px;
  font-size: 26px;
}

.about-section-head .eyebrow {
  font-family: var(--font-mono);
}

.about-lead {
  max-width: 720px;
  margin: 0;
  line-height: 1.65;
}

.about-nav {
  display: grid;
  margin-top: 8px;
}

.about-nav-row {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 12px;
  align-items: baseline;
  padding: 14px 4px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.about-nav-row:hover,
.about-nav-row:focus-visible {
  background: var(--tint);
  outline: 0;
}

.about-nav-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.about-nav-body {
  display: grid;
  gap: 3px;
}

.about-nav-body strong {
  font-size: 17px;
  font-weight: 500;
}

.about-nav-body span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.about-nav-go {
  color: var(--muted);
  transition: transform 120ms ease, color 120ms ease;
}

.about-nav-row:hover .about-nav-go {
  color: var(--accent);
  transform: translateX(3px);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.about-cards h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.about-cards p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.about-relations {
  margin-top: 14px;
}

.about-list,
.about-legend {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  padding: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.about-list li strong {
  color: var(--ink);
}

.about-legend li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.about-legend .level-text {
  font-size: 15px;
  font-weight: 500;
}

.about-cta {
  margin: 18px 0 0;
}

.about-page .public-submit {
  margin-top: 30px;
}

.about-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-top: 22px;
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.about-foot-mark {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.about-foot-link {
  margin-left: auto;
  color: var(--ink);
  text-underline-offset: 4px;
}

.about-foot-link:hover {
  color: var(--accent);
}

/* Política de privacidade dentro da aplicación */

.privacy-doc {
  max-width: 720px;
  line-height: 1.65;
}

.privacy-doc .eyebrow {
  margin-top: 8px;
  font-family: var(--font-mono);
}

.privacy-doc h1 {
  margin: 6px 0 4px;
  font-size: 34px;
  line-height: 1.15;
}

.privacy-doc h2 {
  padding-top: 18px;
  margin: 34px 0 6px;
  font-size: 20px;
  border-top: 1px solid var(--line);
}

.privacy-doc .summary {
  padding: 16px 18px;
  margin: 22px 0 0;
  background: var(--tint);
  border-radius: 14px;
}

.privacy-doc .summary p {
  margin: 0;
}

.privacy-doc ul {
  padding-left: 20px;
}

.privacy-doc li {
  margin: 5px 0;
}

.privacy-doc a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.privacy-doc code {
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 720px) {
  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-legend li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .about-nav-row {
    grid-template-columns: 30px 1fr 18px;
  }

  .about-page {
    padding-bottom: 120px;
  }

  .fe-dialog-panel {
    padding: 20px;
  }
}

a.btn {
  text-decoration: none;
}

.people-page .profile-id {
  width: 100%;
}

/* --- Autorías e recursos ligados ------------------------------------------ */

button.chip-link {
  border: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.author-ficha .author-name {
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
}

.link-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.link-row {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.link-row strong {
  font-weight: 600;
}

.link-row span {
  color: var(--muted);
  font-size: 12px;
}

.link-row:hover,
.link-row:focus-visible {
  border-color: var(--accent);
  outline: 0;
}

.workshop-links {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.workshop-links-head {
  display: grid;
  gap: 2px;
}

.workshop-links-head .muted {
  font-size: 12px;
}

.workshop-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workshop-link-item a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workshop-link-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workshop-link-add input {
  flex: 1 1 160px;
  min-width: 0;
}

.piece-links-drawer {
  margin: 12px 0;
}

/* Escolla de autorías (js/authorbox.js) */

.authorbox-list {
  position: fixed;
  z-index: 4000;
  max-width: min(420px, calc(100vw - 16px));
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: var(--float-bg, #fff);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.authorbox-list[hidden] {
  display: none;
}

.authorbox-head,
.authorbox-note {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}

.authorbox-head {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authorbox-new strong {
  color: var(--ink);
}

.authorbox-option {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
}

.authorbox-option:hover,
.authorbox-option.is-active {
  background: var(--tint);
}

.authorbox-count {
  flex: none;
  font: 11px var(--font-mono);
  color: var(--muted);
}

.authorbox-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 8px;
  overflow: hidden;
  width: min(560px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 40px));
}

.authorbox-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 4px 0 10px;
}

.authorbox-search {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  font: inherit;
  background: var(--tint);
  border: 0;
  border-radius: 999px;
}

.authorbox-sort {
  display: flex;
  gap: 6px;
}

.authorbox-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 8px;
}

.authorbox-letters .chip {
  min-width: 30px;
  padding: 3px 8px;
  font: 12px var(--font-mono);
}

.authorbox-body {
  min-height: 0;
  overflow-y: auto;
}

.authorbox-letter {
  margin: 16px 0 4px;
  font: 500 12px var(--font-mono);
  color: var(--accent);
}

.authorbox-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 10px 6px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.authorbox-row:hover,
.authorbox-row:focus-visible {
  background: var(--tint);
  outline: 0;
}

.authorbox-row small {
  flex: none;
  font: 11px var(--font-mono);
  color: var(--muted);
}

.authorbox-more {
  padding: 14px 6px;
  font-size: 12px;
}

.author-search {
  min-width: 190px;
}

/* Recursos ligados a unha peza: mesmo formulario no obradoiro e na ficha */

.resource-form {
  display: grid;
  gap: 10px;
}

.resource-form .input-action input {
  min-width: 0;
  padding: 9px 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
}

.resource-form .input-action input:focus {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.resource-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.resource-fields .field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.resource-fields .field > span {
  color: var(--muted);
  font-size: 12px;
}

.resource-fields .field:first-child {
  grid-column: 1 / -1;
}

.resource-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.resource-preview[hidden] {
  display: none;
}

.resource-preview img {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}

.resource-preview div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.resource-preview strong,
.resource-preview span,
.resource-preview small {
  overflow-wrap: anywhere;
}

.resource-preview span,
.resource-preview small {
  color: var(--muted);
  font-size: 12px;
}

.resource-feedback {
  min-height: 1em;
  margin: 0;
  font-size: 12px;
}

.workshop-link-item {
  gap: 10px;
}

.resource-chip-kind {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  min-width: 78px;
  color: var(--muted);
  font-size: 12px;
}

.resource-chip-kind svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.resource-chip-main {
  display: grid;
  flex: 1;
  min-width: 0;
}

.resource-chip-main small {
  color: var(--muted);
  font-size: 12px;
}

.tag.is-private {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
}

@media (max-width: 560px) {
  .resource-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Recursos ligados a unha peza: pregados e discretos; o principal son os ritmos e as coplas. */
.resources-fold {
  margin: 14px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.resources-fold > summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.resources-fold > summary::-webkit-details-marker { display: none; }
.resources-fold > summary::before { content: "＋"; font-weight: 400; }
.resources-fold[open] > summary::before { content: "－"; }
.resources-fold > summary:hover,
.resources-fold > summary:focus-visible { color: var(--ink); outline: 0; }
.resources-fold > summary small { font-weight: 400; font-size: 12px; }
.resources-fold .workshop-links-note { margin: 0; font-size: 12px; }
.workshop-links.resources-fold { margin: 18px 0 0; }

/* Móbil/táctil: páxina estática, sen o «zoom» de iOS ao escribir.
   iOS amplía a páxina ao enfocar un campo cuxa letra mida menos de 16px; con 16px non o fai. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body,
button,
a,
summary,
label,
select,
input,
textarea,
[role="button"] {
  touch-action: manipulation;
}

@media (pointer: coarse), (hover: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* username (@) */
.profile-handle {
  margin: 2px 0 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-handle.is-missing {
  font-family: var(--font-ui);
  font-size: 13px;
}

.person-handle {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.chip-handle {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}


/* Persoas: filtro por zona */
.people-zone {
  display: grid;
  gap: 10px;
  margin: 4px 0 14px;
}

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zone-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.zone-chip span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.zone-chip:hover {
  background: var(--tint);
}

.zone-chip.active {
  color: var(--panel);
  background: var(--ink);
  border-color: var(--ink);
}

.zone-chip.active span {
  color: inherit;
  opacity: 0.75;
}

.people-count {
  min-height: 1.4em;
  margin: 0 0 8px;
  font-size: 13px;
}

@media (max-width: 920px), (pointer: coarse) {
  .zone-chip {
    min-height: 40px;
  }
}
