/* AUTO-GENERATED by sync-css.js — do not edit directly. */
/* Edit shared-css/ sources or _*-local.css files, then run: node sync-css.js */

/*
 * sync-layouts.css — Layout styles for sync-generated pages
 *
 * Contains all layout, header, footer, and page-type styles previously
 * inlined by the sync templates (narrative, feature, split, garden-entry,
 * garden-index). Distributed to each site by sync-css.js.
 *
 * Edit here, then run: node sync-css.js
 */

/* ===== Shared Layout ===== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.site-footer { margin-top: 4rem; padding: 2rem 1.5rem; border-top: 1px solid var(--color-border); text-align: center; font-size: var(--wb-p3); color: var(--color-text-muted); }
.site-footer a { color: var(--color-text-secondary); }
.site-footer__rss { display: inline-flex; align-items: center; gap: 0.3em; text-decoration: none; }
.site-footer__rss:hover { color: var(--color-text); }

/* ===== Narrative Layout ===== */

.narrative-page { padding-top: 2rem; padding-bottom: 3rem; max-width: 46rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.narrative__header { margin-bottom: 2.5rem; }
.narrative__title { font-size: var(--h1); margin-top: 0; margin-bottom: 0.4em; }
.narrative__subtitle { font-size: var(--wb-p1); color: var(--color-text-secondary); margin-bottom: 0.5rem; max-width: 46rem; }
.narrative__date { display: block; font-family: var(--font-sans); font-size: var(--wb-p3); color: var(--color-text-muted); }
.narrative__body { margin-bottom: 3rem; }
.narrative__footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }

@media (max-width: 640px) {
  .narrative__title { font-size: var(--h2); }
}

/* ===== Feature Layout ===== */

.feature-page { padding-bottom: 3rem; }
.feature__header { padding: 3rem 1.5rem 2rem; max-width: 46rem; margin: 0 auto; text-align: center; }
.feature__title { font-size: var(--h-display); margin-top: 0; margin-bottom: 0.5em; }
.feature__lede { font-size: var(--wb-p1); color: var(--color-text-secondary); max-width: 38rem; margin: 0 auto; }
.feature__date { display: block; font-family: var(--font-sans); font-size: var(--wb-p3); color: var(--color-text-muted); margin-top: 1rem; }
.feature__body { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }
.feature__section { padding: 2rem 0; }
.feature__section + .feature__section { border-top: 1px solid var(--color-border); }
.feature__footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); max-width: 46rem; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

@media (max-width: 640px) {
  .feature__title { font-size: var(--h1); }
  .feature__header { text-align: left; }
}

/* ===== Split Layout ===== */

.split-page { padding-top: 2rem; padding-bottom: 3rem; max-width: 1200px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.split__header { margin-bottom: 2rem; }
.split__title { font-size: var(--h1); margin-top: 0; margin-bottom: 0.4em; }
.split__subtitle { font-size: var(--wb-p1); color: var(--color-text-secondary); }
.split__date { display: block; font-family: var(--font-sans); font-size: var(--wb-p3); color: var(--color-text-muted); margin-top: 0.5rem; }
.split__layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.split__main { max-width: 46rem; }
.split__sidebar { position: sticky; top: 5rem; }
.split__sidebar .notion-callout--sidebar { margin-top: 0; }
.split__sidebar .notion-callout--sidebar + .notion-callout--sidebar { margin-top: 1rem; }
.split__footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }

@media (max-width: 900px) {
  .split__layout { grid-template-columns: 1fr; gap: 2rem; }
  .split__sidebar { position: static; }
}
@media (max-width: 640px) {
  .split__title { font-size: var(--h2); }
}

/* ===== Garden Entry (Card Detail) ===== */

.card-detail-page { padding-top: 1.5rem; padding-bottom: 3rem; }
.card-detail__breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3em; font-family: var(--font-sans); font-size: var(--wb-p3); margin-bottom: 1.5rem; color: var(--color-text-muted); }
.card-detail__breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.card-detail__breadcrumb a:hover { color: var(--color-link); }
.breadcrumb-sep { color: var(--color-text-muted); }
.breadcrumb-current { color: var(--color-text); }
.card-detail__header { margin-bottom: 2rem; }
.card-detail__title { font-size: var(--h2); margin-top: 0.4em; margin-bottom: 0.3em; }
.card-detail__meta { display: flex; gap: 1.5rem; font-family: var(--font-sans); font-size: var(--badge-size); line-height: 1.3; color: var(--fx-base-700); }
html.dark .card-detail__meta { color: var(--fx-base-400); }
.card-detail__summary { font-size: var(--wb-p1); color: var(--color-text-secondary); margin-bottom: 1.5rem; max-width: 46rem; }
.card-detail__use-when { margin-bottom: 1.5rem; padding: 1em 1.25em; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); border-radius: 0 6px 6px 0; max-width: 46rem; }
.card-detail__use-when strong { font-family: var(--font-sans); display: block; margin-bottom: 0.3em; }
.card-detail__use-when p { margin: 0; }
.card-detail__body { margin-bottom: 3rem; }
.card-detail__nav { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }

.related-cards { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.related-cards__heading { font-size: var(--h5); margin-bottom: 1rem; }
.related-cards__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.related-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1em; border: 1px solid var(--color-border); border-radius: 8px; text-decoration: none; color: var(--color-text); transition: border-color 0.15s ease, transform 0.2s ease; }
.related-card:hover { border-color: var(--color-link); color: var(--color-text); transform: translateY(-1px); }
.related-card__name { font-family: var(--font-sans); font-weight: 500; font-size: var(--wb-p3); line-height: 1.3; }

@media (max-width: 640px) {
  .card-detail__title { font-size: var(--h3); }
  .card-detail__meta { flex-direction: column; gap: 0.25rem; }
}

/* ===== Garden Index ===== */

.garden-page__header { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.garden-page__title { font-size: var(--h2); margin-bottom: 0.4em; }
.garden-page__intro { font-size: var(--wb-p1); color: var(--color-text-secondary); max-width: 36rem; }

.filter-bar { margin-bottom: 2rem; }
.filter-bar__search { margin-bottom: 1rem; }
.filter-bar__input {
  width: 100%; max-width: 24rem; padding: 0.6em 1em;
  font-family: var(--font-serif); font-size: var(--wb-p3);
  border: 1px solid var(--color-border); border-radius: 6px;
  background: var(--color-surface); color: var(--color-text);
  outline: none; transition: border-color 0.15s ease;
}
.filter-bar__input:focus { border-color: var(--color-link); }
html.dark .filter-bar__input { background: var(--fx-base-900); }
.filter-bar__categories { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-pill {
  display: inline-flex; align-items: center; padding: 0.3em 0.7em;
  font-family: var(--font-sans); font-size: var(--badge-size); font-weight: 500;
  border: 1px solid var(--color-border); border-radius: 4px;
  background: transparent; color: var(--color-text-secondary);
  cursor: pointer; transition: all 0.12s ease; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--color-text-secondary); color: var(--color-text); }
.filter-pill--active { background: var(--color-selected); color: white; border-color: var(--color-selected); }
.filter-pill--active:hover { color: white; border-color: var(--color-selected); }

.card-grid__count { font-family: var(--font-sans); font-size: var(--wb-p3); color: var(--color-text-muted); margin-bottom: 1rem; }
.card-grid__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card-tile {
  display: block; padding: 1.25rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 8px;
  text-decoration: none; color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 20px -4px var(--shadow-color); color: var(--color-text); }
.card-tile__header { margin-bottom: 0.6rem; }
.card-tile__title { font-family: var(--font-sans); font-size: var(--wb-p1); font-weight: 700; margin-bottom: 0.4em; line-height: 1.25; }
.card-tile__summary { font-size: var(--wb-p3); color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 0.6em; }
.card-tile__meta { font-family: var(--font-sans); font-size: var(--badge-size); color: var(--color-text-muted); }

.outcomes-bridge { margin-top: 4rem; padding: 2.5rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.outcomes-bridge__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.outcomes-bridge__title { font-size: var(--h5); margin-bottom: 0.3em; }
.outcomes-bridge__desc { font-size: var(--wb-p3); color: var(--color-text-secondary); max-width: 38rem; margin-bottom: 0; }
.outcomes-bridge__links { display: flex; gap: 0.6rem; flex-shrink: 0; }

.latest-updates-section { margin-top: 6rem; padding: 5rem 1.5rem; background: var(--color-surface); border-top: 1px solid var(--color-border); opacity: 0; transition: opacity 0.4s ease; }
.latest-updates-section.is-visible { opacity: 1; }
.latest-updates__inner { max-width: 1400px; margin: 0 auto; display: flex; gap: 3rem; align-items: flex-start; }
.latest-updates__left { flex: 3; min-width: 0; }
.latest-updates__right { flex: 2; min-width: 320px; max-width: 420px; }
.latest-updates__header { margin-bottom: 1.5rem; }
.latest-updates__title { font-size: var(--h4); margin-bottom: 0.4rem; }
.latest-updates__label { font-family: var(--font-sans); font-size: var(--badge-size); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); }
.latest-updates__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.latest-updates__subscribe { position: sticky; top: 5rem; min-height: 320px; }
.latest-updates__subscribe [data-circle-form-uid] { min-height: 300px; }
.update-card {
  display: flex; flex-direction: column; padding: 1rem 1.25rem;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-brand); border-radius: 8px;
  text-decoration: none; color: var(--color-text);
  box-shadow: 0 2px 8px -2px var(--shadow-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.update-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -4px var(--shadow-color); color: var(--color-text); }
.update-card__title { font-family: var(--font-sans); font-size: var(--wb-p2); font-weight: 700; line-height: 1.25; margin-bottom: 0.4rem; }
.update-card__excerpt { font-size: var(--wb-p3); color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 0.5rem; flex: 1; }
.update-card__meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-sans); font-size: var(--badge-size); color: var(--color-text-muted); }
.update-card__read-more { color: var(--color-link); font-weight: 500; }

.empty-state { padding: 3rem 1rem; text-align: center; }
.empty-state p:first-child { font-family: var(--font-sans); font-weight: 500; font-size: var(--wb-p1); }

@media (max-width: 960px) {
  .latest-updates__inner { flex-direction: column; gap: 2rem; }
  .latest-updates__right { max-width: 100%; min-width: 0; }
  .latest-updates__cards { grid-template-columns: repeat(2, 1fr); }
  .latest-updates__subscribe { position: static; }
}
@media (max-width: 640px) {
  .card-grid__items { grid-template-columns: 1fr; }
  .garden-page__title { font-size: var(--h3); }
  .outcomes-bridge__inner { flex-direction: column; align-items: flex-start; }
  .outcomes-bridge__links { width: 100%; }
  .latest-updates-section { padding: 3rem 1.5rem; }
  .latest-updates__cards { grid-template-columns: 1fr; }
}
