/* Scroll & Stone - The Daily Thread's cross-device sync disclosure panel.
   Scoped entirely under .dt-sync so it cannot leak into the folio/filament/colophon
   styling that daily-thread.css already owns. Quiet, text-first, no boxed-card styling
   beyond a single hairline rule - this is UI chrome, not a codex scene. Flag-gated: with
   dailyThreadSync off, #dt-sync stays [hidden] and this stylesheet has nothing to do. */
.dt-sync {
  max-width: 38rem;
  margin: 3rem auto 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 36, 25, 0.18);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #2A2419;
}

.dt-sync summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.dt-sync summary::-webkit-details-marker { display: none; }

.dt-sync summary::before {
  content: "+ ";
  color: #8C6E1D;
}

.dt-sync[open] summary::before { content: "\2212 "; }

.dt-sync-body { margin-top: 1rem; line-height: 1.5; }

.dt-sync-code {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.15rem;
  color: #A93226;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.dt-sync-join {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.dt-sync-join-label {
  flex: 1 1 100%;
  font-weight: 600;
}

.dt-sync-join input {
  flex: 1 1 12rem;
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(42, 36, 25, 0.3);
  border-radius: 3px;
  background: #F3E9D2;
  color: inherit;
}

.dt-sync button {
  font: inherit;
  padding: 0.4rem 0.9rem;
  border: 1px solid #8C6E1D;
  border-radius: 3px;
  background: transparent;
  color: #8C6E1D;
  cursor: pointer;
}

.dt-sync button:hover { background: rgba(140, 110, 29, 0.1); }

.dt-sync button:focus-visible,
.dt-sync input:focus-visible {
  outline: 2px solid #8C6E1D;
  outline-offset: 2px;
}

.dt-sync-status { margin-top: 0.6rem; font-size: 0.88rem; color: #5a5240; }

@media (prefers-reduced-motion: reduce) {
  .dt-sync * { transition: none !important; }
}
