/* Startup Ideas pages (issue #152).
   Rest From Rest uses its own earthy palette (no white backgrounds).
   Shared index and Land to Land stay on the standard theme tokens. */

/* ---- Startup Ideas index ---- */
.si-list {
  display: grid;
  gap: 0;
  margin: 8px 0 48px;
  padding: 0;
  border-top: 1px solid var(--pm18-line);
}
.si-entry {
  display: block;
  text-decoration: none;
  color: var(--pm18-ink);
  border-bottom: 1px solid var(--pm18-line);
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.si-entry:hover .si-title { text-decoration: underline; }
.si-title {
  display: block;
  font-size: 1.15rem;
  color: var(--pm18-accent);
  margin: 0 0 4px;
}
.si-flagship {
  display: block;
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm18-accent-2);
  margin: 0 0 6px;
}
.si-teaser {
  display: block;
  color: var(--pm18-muted);
  font-size: 0.95rem;
}

/* ---- Rest From Rest (earthy, no white, no tiles) ---- */
body.rfr-page {
  --sand: #d7c4a3;
  --clay: #b56a4a;
  --oatmeal: #e2d3b8;
  --rust: #a85a3a;
  --brown: #6e4b35;
  --ink-warm: #3a2a20;
  --muted-warm: #6a5340;
  --pm18-ink: #3a2a20;
  --pm18-muted: #6a5340;
  --pm18-paper: #d7c4a3;
  --pm18-paper-2: #c9b28d;
  --pm18-surface: #d9cbb4;
  --pm18-line: #b79d7e;
  --pm18-accent: #8a4a32;
  --pm18-accent-2: #6e4b35;
  --pm18-shell-bg: #d9cbb4;
  --pm18-shell-line: #b79d7e;
  --pm18-shell-ink: #3a2a20;
  --pm18-shell-muted: #6a5340;
  --pm18-shell-accent: #8a4a32;
  margin: 0;
  padding: 0;
  color: var(--ink-warm);
  background-color: #cbb89a;
  background-image:
    repeating-radial-gradient(circle at 1px 1px, rgba(90, 58, 36, 0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(22deg, rgba(110, 75, 53, 0.05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(112deg, rgba(80, 50, 30, 0.04) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #d7c4a3 0%, #c4ad86 55%, #b89a72 100%);
  background-size: 6px 6px, 8px 8px, 7px 7px, auto;
}
body.rfr-page .pm18-leftzone {
  border-right-color: rgba(110, 75, 53, 0.25);
}
body.rfr-page #pm18-shell-nav {
  background: var(--pm18-shell-bg);
  border-bottom-color: var(--pm18-shell-line);
  color: var(--pm18-shell-ink);
}
body.rfr-page .pm18-page-body {
  max-width: 40em;
  padding: 8px 20px 72px;
  font-family: var(--pm18-font, Georgia, serif);
  color: var(--ink-warm);
}
.rfr-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.rfr-hero svg {
  display: block;
  width: 100%;
  height: auto;
}
.rfr-caption {
  margin: 8px 20px 24px;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-size: 13px;
  color: var(--muted-warm);
  overflow-wrap: anywhere;
}
.rfr-monologue h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink-warm);
  margin: 0 0 8px;
}
.rfr-byline {
  font-style: italic;
  color: var(--muted-warm);
  margin: 0 0 28px;
  font-size: 1.05rem;
}
.rfr-verse {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--ink-warm);
  margin: 0;
}
.rfr-verse strong {
  font-weight: 700;
  color: var(--brown);
}


/* Initial shots gallery on Rest From Rest. No motion unless the user allows it. */
.rfr-shots {
  max-width: 40em;
  margin: 0 auto 36px;
  padding: 0 20px;
}
.rfr-shots h2 {
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-warm);
  margin: 0 0 16px;
}
.rfr-shot {
  margin: 0 0 24px;
  padding: 0;
}
.rfr-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .rfr-shot img {
    opacity: 0;
    animation: rfr-shot-fade 0.5s ease forwards;
  }
  @keyframes rfr-shot-fade {
    to { opacity: 1; }
  }
}
.rfr-shot figcaption {
  margin: 8px 0 0;
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-size: 13px;
  color: var(--muted-warm);
  overflow-wrap: anywhere;
}

/* ---- Land to Land placeholder ---- */
.l2l-hero {
  width: 100%;
  margin: 0 0 8px;
  overflow: visible;
}
.l2l-hero svg {
  display: block;
  width: 100%;
  height: auto;
}
.l2l-caption {
  margin: 0 0 24px;
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-size: 13px;
  color: var(--pm18-muted);
  overflow-wrap: anywhere;
}
.l2l-body {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40em;
  overflow-wrap: anywhere;
}

/* ---- Process Mapping and Documentation (standard WBS outline) ---- */
.pm-doc {
  max-width: 52em;
  padding-bottom: 72px;
}
.pm-lede {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.pm-section {
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--pm18-line);
}
.pm-section > summary.pm-section-title {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 14px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pm18-ink);
  overflow-wrap: anywhere;
}
.pm-section > summary.pm-section-title::-webkit-details-marker { display: none; }
.pm-section > summary.pm-section-title::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  font-weight: 800;
  color: var(--pm18-accent);
}
.pm-section[open] > summary.pm-section-title::before { content: "−"; }
.pm-section-body { padding: 0 0 12px; }
.pm-sub {
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  border-left: 1px dotted var(--pm18-line);
}
.pm-sub > summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 8px 0;
  font-weight: 650;
  color: var(--pm18-accent);
  overflow-wrap: anywhere;
}
.pm-sub > summary::-webkit-details-marker { display: none; }
.pm-sub > summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  font-weight: 800;
  color: var(--pm18-muted);
}
.pm-sub[open] > summary::before { content: "−"; }
.pm-wbs {
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
  color: var(--pm18-accent-2);
  margin-right: 0.35em;
}
.pm-lens {
  font-weight: 500;
  color: var(--pm18-muted);
  font-size: 0.92em;
}
.pm-q {
  margin: 0 0 10px;
  padding: 0 0 0 1.2em;
  display: grid;
  gap: 6px;
  overflow-wrap: anywhere;
}
.pm-q li { line-height: 1.45; }
.pm-note-inline {
  margin: 0 0 10px;
  color: var(--pm18-muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.pm-matrix {
  margin: 8px 0 16px;
  border-top: 1px solid var(--pm18-line);
}
.pm-matrix-row {
  grid-template-columns:
    minmax(calc(var(--pm18-step) * 1), 1.2fr)
    minmax(calc(var(--pm18-step) * 1), 1.2fr)
    minmax(calc(var(--pm18-step) * 1), 1.4fr)
    minmax(calc(var(--pm18-step) * 1), 1.2fr)
    minmax(calc(var(--pm18-step) * 1), 1fr)
    minmax(calc(var(--pm18-step) * 1), 1.2fr)
    minmax(calc(var(--pm18-step) * 1), 1fr);
}
.pm-matrix-row .pm-col {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pm-flow {
  margin: 12px 0 8px;
  padding: 0;
}
.pm-flow svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
}
.pm-flow-cap {
  margin: 6px 0 0;
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-size: 13px;
  color: var(--pm18-muted);
  overflow-wrap: anywhere;
}

/* ---- SWEEP LOTZ (mirrors Land to Land) ---- */
.sl-hero {
  width: 100%;
  margin: 0 0 8px;
  overflow: visible;
}
.sl-hero svg {
  display: block;
  width: 100%;
  height: auto;
}
.sl-caption {
  margin: 0 0 24px;
  font-family: var(--pm18-font-ui, system-ui, sans-serif);
  font-size: 13px;
  color: var(--pm18-muted);
  overflow-wrap: anywhere;
}
.sl-body {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40em;
  overflow-wrap: anywhere;
}
