/* Sharing tools stay separate from native accordion activation. */
.guide-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 16px;
}

.guide-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--section-accent, var(--gold));
  background: transparent;
  font: 500 12px/1.5 var(--font-mono);
  text-align: center;
}

.guide-copy-link svg {
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-copy-link:hover { border-color: currentColor; background: #ffffff05; }
.guide-copy-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.guide-copy-link[aria-busy="true"] { cursor: progress; }

.rules-list details > .guide-tools { margin-top: 0; }
.guide-copy-fallback { grid-column: 1 / -1; min-width: 0; margin-bottom: 20px; }
.guide-copy-fallback[hidden] { display: none; }
.guide-copy-fallback > p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.guide-copy-fallback > input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #0c0f09;
  font-size: 13px;
}
.guide-copy-fallback > input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

#toast { width: max-content; max-width: calc(100vw - 32px); white-space: normal; overflow-wrap: anywhere; text-align: center; }

@media (max-width: 600px) {
  .guide-tools { margin-bottom: 14px; }
  .guide-copy-link { padding: 9px 10px; font-size: 11px; }
}
