/* Sochi Rose: embedded public Mastodon timeline */
.sochi-mastodon,
.sochi-mastodon * {
  box-sizing: border-box;
}

.sochi-mastodon {
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  border: 1px solid #36bfb9;
  border-radius: 8px;
  overflow: hidden;
  background: #222629;
  color: #eeeeee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.sochi-mastodon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #071017;
  border-bottom: 1px solid #294747;
}
.sochi-mastodon-heading { margin: 0; font: inherit; color: #fff; font-weight: 700; }
.sochi-mastodon-profile,
.sochi-mastodon .mastodon-permalink {
  color: #40cdc6;
  text-decoration: none;
}
.sochi-mastodon-profile:hover,
.sochi-mastodon .mastodon-permalink:hover { text-decoration: underline; }
.sochi-mastodon .mastodon-status { padding: 9px 12px; margin: 0; color: #cfd4d7; }
.sochi-mastodon-posts { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.sochi-mastodon-post {
  padding: 13px 12px;
  border-bottom: 1px solid #383e41;
  overflow-wrap: anywhere;
}
.sochi-mastodon-post:last-child { border-bottom: 0; }
.sochi-mastodon-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sochi-mastodon-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; }
.sochi-mastodon-author-text { min-width: 0; flex: 1; }
.sochi-mastodon-author-name { font-weight: 700; color: #fff; }
.sochi-mastodon-handle, .sochi-mastodon-date, .sochi-mastodon-boost { color: #aab5ba; font-size: 11px; }
.sochi-mastodon-boost { margin: 0 0 7px; }
.sochi-mastodon-content { white-space: normal; line-height: 1.6; }
.sochi-mastodon-content p { margin: 0 0 9px; }
.sochi-mastodon-content p:last-child { margin-bottom: 0; }
.sochi-mastodon-content a { color: #40cdc6; text-decoration: underline; }
.sochi-mastodon-content blockquote { border-left: 3px solid #36bfb9; padding-left: 9px; margin: 8px 0; }
.sochi-mastodon-content ul, .sochi-mastodon-content ol { margin: 5px 0 10px; padding-left: 20px; }
.sochi-mastodon-content code { overflow-wrap: anywhere; }
.sochi-mastodon-cw { display: block; margin-bottom: 7px; }
.sochi-mastodon-cw summary { cursor: pointer; font-weight: 600; }
.sochi-mastodon-media { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(130px,100%),1fr)); gap: 6px; margin-top: 10px; }
.sochi-mastodon-media img,
.sochi-mastodon-media video { width: 100%; max-height: 280px; object-fit: contain; border-radius: 5px; background: #141718; }
.sochi-mastodon-media audio { width: 100%; }
.sochi-mastodon-post-footer { margin-top: 9px; }
.sochi-mastodon-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: #141a1f;
  border-top: 1px solid #294747;
}
.sochi-mastodon-controls button {
  border: 1px solid #3a8985;
  background: #0a171e;
  color: #e9f7f6;
  font: inherit;
  border-radius: 5px;
  cursor: pointer;
  padding: 6px 10px;
}
.sochi-mastodon-controls button:hover { background: #17343a; }
.sochi-mastodon-controls button:focus-visible, .sochi-mastodon a:focus-visible,
.sochi-mastodon-cw summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sochi-mastodon-controls button:disabled { opacity: 0.55; cursor: wait; }
.sochi-mastodon-controls button[hidden] { display: none; }
@media (max-width: 380px) {
  .sochi-mastodon-header { flex-wrap: wrap; }
  .sochi-mastodon-controls { flex-wrap: wrap; }
}
