/* Multi-page additions for the SuckerPot site. Same tokens as site.css, no new colours. */

/* Selfhostr family bar, above the header */
.family {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  line-height: 18px;
}
.family .wrap {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.family a {
  color: var(--fg-muted);
  text-decoration: none;
}
.family a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.family a[aria-current="true"] {
  color: var(--fg);
  font-weight: 600;
}
.family .family-label {
  color: var(--fg-subtle);
  margin-right: auto;
}
.family ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

/* Current page in the header */
nav.links a[aria-current="page"]:not(.btn) {
  color: var(--fg);
  background: var(--surface-hover);
}

/* Mobile menu: a details element, no script */
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
}
nav.links .menu-panel a:not(.btn) {
  display: block;
  padding: 10px 12px;
}
@media (min-width: 900px) {
  .menu {
    display: none;
  }
}

/* Feature cards on the home page */
.features {
  display: grid;
  gap: 12px;
}
@media (min-width: 700px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
a.card.feature {
  display: block;
  text-decoration: none;
  padding: 20px;
  transition: background 160ms ease, border-color 160ms ease;
}
a.card.feature:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
a.card.feature h3 {
  margin-bottom: 8px;
}
a.card.feature p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
}
a.card.feature .more {
  margin-top: 14px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}

/* Screenshots (demo data) */
.shot {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.shots {
  display: grid;
  gap: 28px;
}

/* Page body: prose, tables and lists on inner pages */
.prose {
  max-width: 42em;
}
.prose > p {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.65;
}
.prose h3 {
  margin-top: 40px;
}
.prose .checks {
  margin-top: 16px;
}
.prose .cards,
.prose .code,
.prose .snip {
  margin-top: 20px;
}
.prose a {
  text-underline-offset: 3px;
}
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.dtable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
.dtable th,
.dtable td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg-muted);
}
.dtable th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
}
.dtable td:first-child {
  color: var(--fg);
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
.page-end {
  border-top: 1px solid var(--border);
}

/* Footer columns */
.foot-cols {
  display: grid;
  gap: 28px;
}
.foot-cols h2 {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  margin-bottom: 12px;
}
.foot-cols ul {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.foot-cols ul a {
  color: var(--fg-muted);
  text-decoration: none;
}
.foot-cols ul a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 900px) {
  .foot-cols {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.foot-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
}
.eyebrow-tight {
  margin-bottom: 8px;
}

.hero .fine,
.hero .code + .fine {
  margin-top: 16px;
}
