/* Syndicate page (preview only). Selectors and values follow the live
   /syndicate rules in nws.css, fetched 2026-11-19. */

main:has(.syn-page) {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--page-px) 7rem;
  min-width: 0;
}

@media (width >= 768px) {
  main:has(.syn-page) {
    padding: 24px var(--page-px) 4rem;
  }
}

.syn-page {
  margin-top: 4px;
  min-width: 0;
}

.syn-page .queue-kicker {
  color: #595959;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-wrap: pretty;
}

.syn-page h1 {
  letter-spacing: -.025em;
  color: var(--red);
  margin: 8px 0 0;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  max-width: 100%;
}

.syn-page h1 .syn-accent {
  color: var(--red);
}

@media (width >= 640px) {
  .syn-page h1 {
    font-size: 3rem;
    line-height: 1;
  }
}

.syn-hero {
  color: #595959;
  max-width: 42rem;
  margin: 16px 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.syn-lede {
  color: #595959;
  max-width: 42rem;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.syn-rss {
  color: #444;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  max-width: 42rem;
  margin: 18px 0 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
  min-width: 0;
}

.syn-rss p {
  margin: 0;
  text-wrap: pretty;
}

.syn-rss ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.syn-rss li {
  text-wrap: pretty;
}

.syn-rss a {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.syn-rss a:hover {
  color: var(--red);
}

.syn-kit {
  scroll-margin-top: calc(var(--header-h, 109px) + 12px);
  margin-top: 64px;
  min-width: 0;
}

.syn-kit h2 {
  color: var(--red);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-wrap: balance;
}

@media (width >= 640px) {
  .syn-kit h2 { font-size: 1.875rem; }
}

.syn-preview {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin-top: 16px;
  overflow: auto;
  max-width: 100%;
  min-width: 0;
}

.syn-preview iframe {
  vertical-align: top;
  background: #fff;
  border: 0;
  width: 100%;
  display: block;
}

.syn-widget {
  width: 100%;
  min-height: inherit;
  display: block;
  min-width: 0;
}

.syn-widget rssapp-imageboard,
.syn-widget rssapp-ticker,
.syn-widget rssapp-magazine {
  width: 100%;
  max-width: 100%;
  display: block;
}

#imageboard .syn-preview { min-height: 640px; }
#ticker .syn-preview { min-height: 90px; max-height: 140px; overflow: hidden; }
#magazine .syn-preview { min-height: 860px; }

.syn-tabs {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 20px;
  display: flex;
}

.syn-tabs button {
  color: #888;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

.syn-tabs button:hover { color: #111; }

.syn-tabs button.on,
.syn-tabs button[aria-selected="true"] {
  color: #fff;
  background: #111;
}

.syn-steps {
  color: #595959;
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.syn-steps li {
  margin: 0 0 4px;
  text-wrap: pretty;
}

.syn-snip {
  color: #fff;
  background: #111;
  border-radius: 12px;
  margin-top: 16px;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

.syn-snip-bar {
  border-bottom: 1px solid #ffffff1a;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  display: flex;
}

.syn-snip-bar p {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff9;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

.syn-snip .btn {
  color: #fff;
  cursor: pointer;
  background: #111;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.syn-snip .btn.red {
  background: var(--red);
  color: #fff;
}

.syn-snip .btn.red:hover {
  color: #fff;
  background: #bf161c;
}

.syn-copy {
  border-radius: 999px;
  height: 36px;
  padding: 0 16px;
  min-width: 5.5rem;
}

.syn-snip pre {
  color: var(--red);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  max-width: 100%;
}

.syn-snip code {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (width <= 430px) {
  .syn-page h1 { font-size: 1.85rem; }
}
