/* Daydi SSR — the crawlable extras: breadcrumbs, collections, FAQ.
   Tokens come from style.css (this file only adds what those pages need); every rule here uses the
   same variables, so dark mode and the fluid container carry over untouched. */

/* ------------------------------------------------------------------ breadcrumbs */

.crumbs {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  /* `margin: 0` would kill .wrap's `margin-inline: auto` (this file loads after style.css),
     which is what pushed the breadcrumbs to the viewport edge while the page stayed centred. */
  margin-block: 0;
  padding: 10px 0;
  list-style: none;
}
.crumbs__item { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); }
.crumbs__item + .crumbs__item::before { content: "/"; color: var(--line); }
.crumbs__item a { color: var(--ink-muted); }
.crumbs__item a:hover { color: var(--pine); }

/* ------------------------------------------------------------------ collections index */

.coll {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.coll:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); text-decoration: none; }
/* Collections without a cover used to render as an empty white box with a floating count pill. */
.coll__photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, var(--band-b), var(--band-c) 62%, #3F7A5C) center / cover; }
.coll__photo img { width: 100%; height: 100%; object-fit: cover; }
.coll__count {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-end: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--on-dark);
  font-size: 0.8rem;
  backdrop-filter: blur(6px);
}
.coll__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.coll__name { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; }
.coll__intro { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* ------------------------------------------------------------------ how a list was built */

.seo-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  max-width: min(100%, 78ch);
  margin-block: 0 var(--gap);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--pine);
  border-radius: var(--r-control);
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.seo-rule .label { color: var(--ink); }

.seo-more { margin-top: var(--band-pad); }
.seo-more__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ FAQ */

.faq-toc { display: grid; gap: 2px; margin-block: var(--gap) 0; padding: 0; list-style: none; }
.faq-toc a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); }
.faq-toc a::before { content: "\2192"; margin-inline-end: 8px; color: var(--pine); }
.faq-toc a:hover { color: var(--pine); }

.faq { display: grid; gap: clamp(20px, 2.4vw, 36px); margin-top: var(--band-pad); }
.faq__item { max-width: 74ch; scroll-margin-top: 24px; }
.faq__item h2 { font-size: var(--fs-h3); }
.faq__item .link-more { padding-block: 8px; }
.faq__item p { margin: 8px 0 0; }

/* ------------------------------------------------------------------ related hubs (above the footer) */

.related {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  padding-block: clamp(16px, 2vw, 28px);
}
.related .label { display: block; color: var(--ink-muted); }
.related__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
