/* The Settings page: one section for each part of the console, a box of rows in each, and a line for what the last change did. Colours come from tokens.css. */

.settings-own { display: contents; }
.settings-own[hidden] { display: none; }
.settings { display: flex; flex-direction: column; gap: 10px; margin: 0 20px 20px; max-width: 760px; }
.settings .sect-head { margin: 6px 0 0; }
.settings .note { margin: 0; min-height: 1.4em; }
.settings .place-note { margin: 0; color: var(--dim); font-size: 12px; }
.settings .place-note:empty { display: none; }
.settings .roles-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The choice of the default IPFS node: two cards that each say what the node does, with the state of the chosen one on the head line. */
.settings .role-pick { gap: 6px; padding: 12px 14px; color: inherit; font: inherit; }
.settings .role-head { display: flex; align-items: center; gap: 8px; }
.settings .role-head b { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.settings .role-state { display: inline-flex; flex: none; align-items: center; }
.settings .role-state:empty { display: none; }
.settings .role-pick small { line-height: 1.45; }
.settings [data-box^="held"][hidden] { display: none; }
.settings [data-box^="held"] .box-item.top { align-items: flex-start; }
.settings [data-box^="held"] .svc-end { flex-wrap: wrap; }
/* A switch of a page that Settings draws, such as Orivon's relay: its state and its switch are items of the row and wrap with it, as every row of this page does. */
.settings .ad-switch .svc-end { display: contents; }
.settings .ad-switch .svc-row { row-gap: 10px; }

@media (max-width: 599px) {
  .settings { margin: 0 16px 16px; }
  .settings .roles-three { grid-template-columns: minmax(0, 1fr); }
  .settings .box-item { flex-wrap: wrap; }
  .settings .box-item .two { flex: 1 1 180px; }
  .settings .roles { grid-template-columns: minmax(0, 1fr); }
}

/* Advanced: IPFS Node (on-fly). A disclosure that stays closed until the person opens it, or until the browser gave no IPFS Node. */
.settings-advanced { border: 1px solid var(--ln); border-radius: 8px; background: var(--pn); }
.settings-advanced > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.settings-advanced > summary::-webkit-details-marker { display: none; }
.settings-advanced > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(-45deg); flex: none; }
.settings-advanced[open] > summary::before { transform: rotate(45deg); }
.settings-advanced-body { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.settings-advanced-body > p:empty { display: none; }
