/* Only the read-only public gateway serves this stylesheet. */
.dia-public-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
}

.dia-public-legal a {
  color: var(--text-muted, #b0bec3);
  font-size: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.dia-public-legal a + a::before {
  content: "·";
  margin-right: 14px;
  color: var(--text-faint, #89979b);
  display: inline-block;
}

.dia-public-legal a:hover {
  color: var(--text-accent, #3b9ead);
  text-decoration: underline;
}

.dia-public-legal a:focus-visible {
  outline: 2px solid var(--interactive-accent, #3b9ead);
  outline-offset: 3px;
  border-radius: 2px;
}

.dia-color-switch {
  position: static;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: none;
  gap: 2px;
  height: 36px;
  box-sizing: border-box;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid var(--dia-border, #343f44);
  border-radius: 9px;
  background: var(--background-primary, #1b2226);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.dia-color-switch button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #b0bec3);
  cursor: pointer;
}

.dia-color-switch button:hover {
  background: var(--dia-nav-hover, #27383d);
  color: var(--text-normal, #e5ecee);
}

.dia-color-switch button[aria-pressed="true"] {
  background: var(--dia-nav-active, #294047);
  color: var(--nav-item-color-active, #a6e3ea);
}

.dia-color-switch button:focus-visible {
  outline: 2px solid var(--interactive-accent, #3b9ead);
  outline-offset: 1px;
}

.dia-color-switch svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body > .dia-color-switch {
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 50;
}

/* Calm reader transitions; Obsidian keeps its native navigation and tab UI. */
body .workspace-split.mod-root .workspace-tab-header {
  box-shadow: inset 0 -2px 0 transparent;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

body .workspace-leaf-content[data-type="file-explorer"] .nav-folder-title,
body .workspace-leaf-content[data-type="file-explorer"] .nav-file-title,
body .dia-color-switch button {
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

body .nav-folder-title .collapse-icon svg {
  transition: transform 150ms ease;
}

.dia-document-updated {
  flex: none;
  align-self: center;
  margin-left: auto;
  padding: 0 18px 0 12px;
  color: var(--text-faint, #89979b);
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .dia-document-updated { padding-right: 10px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body .workspace-split.mod-root .workspace-tab-header,
  body .workspace-leaf-content[data-type="file-explorer"] .nav-folder-title,
  body .workspace-leaf-content[data-type="file-explorer"] .nav-file-title,
  body .dia-color-switch button,
  body .nav-folder-title .collapse-icon svg { transition: none; }
}
