/* Platform's feed preview as a request and its response (views/platform.ejs #feedDemo), 12 November 2026.
   Card surface from platform-overview.css (.platform-code); this file lays out the request line, the format tabs,
   the status strip and the response. Lines never wrap: the response scrolls sideways on narrow screens. */
.feed-demo { display: flex; flex-direction: column; }
.feed-demo__request { display: flex; align-items: center; gap: .7rem; padding: 18px 20px 0; }
.feed-demo__method { flex: none; padding: .2rem .45rem; border-radius: 4px; background: rgba(167, 139, 250, .14); color: #c4b5fd; font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.feed-demo__url { flex: 1; min-width: 0; overflow: hidden; color: #c9d6e8; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.feed-demo__url span { color: #67e8f9; }
.feed-demo__copy { display: inline-flex; flex: none; align-items: center; gap: .35rem; min-height: 32px; padding: 0 .6rem; border: 0; border-radius: 6px; background: rgba(148, 163, 184, .1); color: #cbd5e1; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.feed-demo__copy:hover { background: rgba(148, 163, 184, .18); color: #f1f5f9; }
.feed-demo__copy:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }
.feed-demo__copy.is-done { color: #4ade80; }
.feed-demo__header { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .7rem; padding: 10px 20px 0 calc(20px + 2.55rem); color: #8ea1b6; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feed-demo__header code { overflow: hidden; color: #a9b7ca; font: inherit; text-overflow: ellipsis; white-space: nowrap; }

.feed-demo__tabs { display: flex; align-items: center; gap: .25rem; margin: 16px 20px 0; padding-bottom: 0; border-bottom: 1px solid rgba(148, 163, 184, .14); overflow-x: auto; scrollbar-width: none; }
.feed-demo__tabs::-webkit-scrollbar { display: none; }
.feed-demo__tabs [role=tab] { flex: none; margin-bottom: -1px; padding: .5rem .75rem; border: 0; border-bottom: 2px solid transparent; background: none; color: #8ea1b6; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.feed-demo__tabs [role=tab]:hover { color: #e2e8f0; }
.feed-demo__tabs [role=tab][aria-selected=true] { border-bottom-color: #67e8f9; color: #f1f5f9; }
.feed-demo__tabs [role=tab]:focus-visible { outline: 2px solid #67e8f9; outline-offset: -2px; border-radius: 4px; }
.feed-demo__more { flex: none; margin-left: auto; padding: .5rem .25rem; color: #67e8f9; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.feed-demo__more::after { content: ' \2192'; }
.feed-demo__more:hover { color: #a5f3fc; }

.feed-demo__status { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 12px 20px 10px; color: #8ea1b6; font-size: 12px; }
.feed-demo__ok { display: inline-flex; align-items: center; gap: .35rem; color: #4ade80; font-weight: 600; }
.feed-demo__excerpt { margin-left: auto; color: #6b7d93; font-style: italic; }
.feed-demo__excerpt[hidden] { display: none; }
.feed-demo__ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

.feed-demo__body { margin: 0 20px 20px; border-radius: 6px; background: #080e19; }
.feed-demo .feed-demo__panel { box-sizing: border-box; overflow-wrap: normal; word-break: normal; height: 352px; margin: 0; padding: 12px 0; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .25) transparent; color: #c9d6e8; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; counter-reset: feed-line; }
.feed-demo__panel:focus-visible { outline: 2px solid #67e8f9; outline-offset: -2px; border-radius: 6px; }
.feed-demo__line { display: block; padding: 0 16px 0 0; counter-increment: feed-line; }
.feed-demo__line::before { content: counter(feed-line); display: inline-block; width: 2.6em; margin-right: 1em; padding-right: .5em; border-right: 1px solid rgba(148, 163, 184, .12); color: #475569; text-align: right; user-select: none; }
.feed-demo__line.is-comment { color: #6b7d93; }

@media (max-width: 540px) {
  .feed-demo__request { padding: 16px 16px 0; gap: .5rem; }
  .feed-demo__copy-text { display: none; }
  .feed-demo__header { padding: 10px 16px 0; }
  .feed-demo__tabs { margin: 14px 16px 0; }
  .feed-demo__status { padding: 10px 16px 8px; }
  .feed-demo__body { margin: 0 16px 16px; }
  .feed-demo .feed-demo__panel { height: 330px; font-size: 11.5px; }
}
