/* Dotty Retro DS · pages.css — secondary public pages */

.ds-page-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ds-ink-muted);
  max-width: 48em;
  text-wrap: pretty;
}

.ds-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Community · illustration + comment */
.ds-community {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.ds-community-figure {
  margin: 0;
  width: 100%;
}
.ds-community-art {
  display: block;
  width: 100%;
  height: auto;
}
.ds-community-comment {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ds-ink-muted);
  text-wrap: pretty;
  max-width: 36em;
}

/* Download · architecture picks */
.ds-download-arch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin: 0 0 8px;
}
.ds-download-arch-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 28px;
  min-width: 0;
}
.ds-download-arch-col:first-child {
  padding-left: 4px;
}
.ds-download-arch-col:last-child {
  padding-right: 4px;
}
.ds-download-arch-col + .ds-download-arch-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12.5%;
  height: 75%;
  width: 1px;
  background: #d0d0d0;
}
.ds-download-arch-icon {
  display: block;
  margin: 2px 0 8px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
}
.ds-download-arch-icon-apple {
  width: 40px;
  height: 48px;
}
.ds-download-arch-icon-intel {
  width: 72px;
  height: 48px;
  margin-top: 2px;
  margin-bottom: 8px;
}
.ds-download-arch-col .ds-eyebrow {
  margin-bottom: 2px;
}
.ds-download-arch-col .ds-title {
  margin: 0;
}
.ds-download-arch-copy {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ds-ink-muted);
  max-width: 28em;
}
.ds-download-arch-col > .ds-btn-block {
  margin-top: auto;
  width: 100%;
  max-width: 22rem;
}
.ds-download-arch-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #d0d0d0;
}
.ds-download-arch-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ds-ink-muted);
  max-width: 40em;
}
.ds-download-arch-note a:hover {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .ds-download-arch {
    grid-template-columns: 1fr;
  }
  .ds-download-arch-col {
    padding: 18px 4px;
  }
  .ds-download-arch-col + .ds-download-arch-col::before {
    left: 4px;
    right: 4px;
    top: 0;
    width: auto;
    height: 1px;
  }
  .ds-download-arch-col > .ds-btn-block {
    max-width: none;
  }
}

/* Library index grid */
.ds-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}
@media (max-width: 700px) {
  .ds-library-grid {
    grid-template-columns: 1fr;
  }
}
.ds-book-card {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.ds-book-card:hover .ds-book-card-title {
  color: #0085cf;
}
.ds-book-card-cover {
  flex: 0 0 72px;
  width: 72px;
  height: 104px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.22);
  background: #eee;
}
.ds-book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ds-book-card-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-book-card-author {
  font-size: 11px;
  font-style: italic;
  color: var(--ds-ink-faint);
}
.ds-book-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ds-ink);
}
.ds-book-card-tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ds-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Library detail */
.ds-library-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}
@media (max-width: 700px) {
  .ds-library-detail {
    grid-template-columns: 1fr;
  }
}
.ds-library-aside {
  padding: 22px 18px 28px;
  border-right: 1px solid #e0e0e0;
  background: #fafafa;
}
@media (max-width: 700px) {
  .ds-library-aside {
    border-right: 0;
    border-bottom: 1px solid #e0e0e0;
  }
}
.ds-library-aside-cover {
  width: 100%;
  max-width: 184px;
  margin: 0 auto;
  border-radius: 3px;
  display: block;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 14px rgba(0, 0, 0, 0.22);
}
.ds-library-authors {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e4;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ds-author-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.ds-author-photo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.ds-author-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-author-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ds-ink);
}
.ds-author-title {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ds-ink-muted);
}
.ds-author-socials {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ds-author-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: #6a7a8a;
  text-decoration: none;
}
.ds-author-social:hover {
  color: #0085cf;
  background: rgba(0, 133, 207, 0.1);
}
.ds-author-social svg {
  width: 13px;
  height: 13px;
  display: block;
}
.ds-library-main {
  padding: 28px 36px 36px;
}

/* Site breadcrumbs (all public pages except home) */
.ds-breadcrumbs {
  max-width: var(--ds-max);
  margin: 0 auto;
  /* Sit nearer the panel than the nav */
  padding: 28px 16px 8px;
}
.ds-breadcrumbs + .site-section {
  margin-top: 8px;
}
.ds-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ds-ink-faint);
}
.ds-breadcrumbs li {
  display: flex;
  align-items: center;
  min-width: 0;
}
.ds-breadcrumbs li + li::before {
  content: "›";
  margin: 0 8px;
  color: #bbb;
  flex: 0 0 auto;
}
.ds-breadcrumbs a {
  color: #0085cf;
  text-decoration: none;
}
.ds-breadcrumbs a:hover {
  text-decoration: underline;
}
.ds-breadcrumbs-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: -1px;
  color: #0085cf;
  border-radius: 3px;
}
.ds-breadcrumbs-home:hover {
  color: #0069a8;
  text-decoration: none;
  background: rgba(0, 133, 207, 0.08);
}
.ds-breadcrumbs-home svg {
  display: block;
}
.ds-breadcrumbs [aria-current="page"] {
  color: var(--ds-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28em;
}

/* User guide master–detail (blue Aqua source list) */
.ds-guide {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: 420px;
}
@media (max-width: 800px) {
  .ds-guide {
    grid-template-columns: 1fr;
  }
}
.ds-guide-sidebar {
  padding-bottom: 16px;
}
@media (max-width: 800px) {
  .ds-guide-sidebar {
    border-right: 0;
    border-bottom: 1px solid #c5d4e4;
  }
}
.ds-guide-cat + .ds-guide-cat {
  margin-top: 8px;
}
.ds-guide-sidebar .ds-sidebar-label {
  padding-top: 10px;
}
.ds-guide-sidebar .ds-sidebar-label a {
  display: inline;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-shadow: inherit;
  background: transparent;
}
.ds-guide-sidebar .ds-sidebar-label a:hover {
  background: transparent;
  text-decoration: underline;
}
.ds-guide-main {
  padding: 22px 28px 28px;
  min-width: 0;
  background: #fff;
}

/* Markdown / legal prose inside panels (shared with user guide) */
.ds-prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ds-ink);
}
.ds-prose > *:first-child {
  margin-top: 0;
}
.ds-prose > *:last-child {
  margin-bottom: 0;
}
.ds-prose h1,
.ds-prose h2,
.ds-prose h3,
.ds-prose h4 {
  color: var(--ds-ink);
  line-height: 1.25;
  margin: 1.5em 0 0.5em;
  font-weight: 700;
}
.ds-prose h1 { font-size: 26px; }
.ds-prose h2 { font-size: 20px; }
.ds-prose h3 { font-size: 17px; }
.ds-prose p,
.ds-prose ul,
.ds-prose ol {
  margin: 0 0 1em;
}
.ds-prose ul,
.ds-prose ol {
  padding-left: 1.35em;
}
.ds-prose a {
  color: #0085cf;
}
.ds-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--ds-rule);
}
.ds-prose code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: #f2f2f2;
}
.ds-prose pre {
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 5px;
  background: #f2f2f2;
  border: 1px solid #e4e4e4;
}
.ds-prose blockquote {
  margin: 0 0 1em;
  padding: 0 0 0 14px;
  border-left: 3px solid #d0d0d0;
  color: var(--ds-ink-muted);
}

