/*
 * A product as a whole (Kiln/UI/ProductView.swift and CatalogueView.swift): the one-page brief, the map of features by
 * journey and release, and how it works today.
 */
.product-panel-body { padding: 24px 28px 36px; }
@media (max-width: 599px) {
  .product-panel-body { padding: 16px; }
}

/* The brief (BriefView). */
.brief { max-width: 780px; padding: 32px 36px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 599px) {
  .brief { padding: 20px 18px; }
}
.brief-head { display: flex; flex-direction: column; gap: 6px; }
.brief-name { font-size: 24px; }
.brief-summary { font-size: 14.5px; color: var(--ink-soft); }
.brief-section { display: flex; flex-direction: column; gap: 8px; }
.brief-section-title { font-size: 15.5px; font-weight: 600; }
.brief-paragraph { font-size: 14.5px; line-height: 1.6; }
.brief-unsettled { font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.brief-items { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.brief-item-name { font-size: 14.5px; font-weight: 600; }
.brief-item-detail { font-size: 14px; color: var(--ink-soft); }
.brief-notyet { padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.brief-notyet li::marker { color: var(--ink-faint); content: "–  "; }

/* The feature map (FeatureMapView): a row for each journey, a column for each release. */
.feature-map { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.map-releases, .map-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.map-release { display: flex; flex-direction: column; gap: 2px; }
.map-release-count { font-size: 12.5px; color: var(--ink-soft); }
.map-journey { display: flex; flex-direction: column; gap: 10px; }
.map-journey-title { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; }
.map-journey-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule); }
.map-cell { display: flex; flex-direction: column; gap: 8px; min-height: 36px; min-width: 0; }
.map-cell--empty { border: 1px dashed var(--rule); border-radius: 10px; }
.map-cell-label { display: none; }

@media (max-width: 899px) {
  .map-releases { display: none; }
  .map-cells { grid-template-columns: minmax(0, 1fr); }
  .map-cell--empty { display: none; }
  .map-cell-label { display: block; }
}

/* A feature on the map (PlanCard). */
.plan-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 12px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; min-width: 0;
}
a.plan-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 4%, var(--card)); text-decoration: none; }
.plan-card--live { opacity: 0.85; box-shadow: none; }
.plan-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; }
.plan-card-top .status { font-size: 12px; margin-right: auto; }
.plan-card-top .chip { font-size: 11px; padding: 1px 7px; }
.plan-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.plan-card-summary { font-size: 13px; color: var(--ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plan-card-needs { font-size: 12px; color: var(--ink-soft); }
.plan-card-notes { font-size: 12px; font-weight: 600; color: var(--wait-text); }

/* Features started on their own, not on the map yet (Unplaced). */
.unplaced { display: flex; flex-direction: column; gap: 10px; }
.unplaced-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.unplaced .plan-card { border-color: color-mix(in srgb, var(--wait) 40%, transparent); }

/* How it works today (CatalogueView). */
.catalogue { display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.catalogue-head { display: flex; flex-direction: column; gap: 6px; }
.catalogue-search { max-width: 360px; }
.catalogue-area { display: flex; flex-direction: column; gap: 10px; }
.catalogue-area-title { font-size: 15.5px; font-weight: 600; }
.known-rules { list-style: none; }
.known-rule { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; padding: 11px 14px; border-top: 1px solid var(--rule); }
.known-rule:first-child { border-top: 0; }
.known-rule-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; }
.known-rule-title { font-size: 14.5px; }
.known-rule-detail { font-size: 13px; color: var(--ink-soft); }
.known-rule .chip { margin-left: auto; }
a.chip { text-decoration: none; }
a.chip:hover { text-decoration: underline; }
