/* Priority 4: Collection navigation and Explore by Idea.
   Isolated from the v5.3.2 base stylesheet to preserve prior approved work. */

.priority4-section { padding: 94px 0; }
.collection-header .lede,
.themes-header .lede { max-width: 890px; }

.collection-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.collection-summary > div {
  padding: 23px 26px;
  border-right: 1px solid var(--line);
}
.collection-summary > div:first-child { padding-left: 0; }
.collection-summary > div:last-child { border-right: 0; }
.collection-summary strong {
  display: block;
  margin-bottom: 5px;
  color: var(--paper);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.collection-summary span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collection-heading-row { align-items: end; }
.collection-work-card {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(360px, 1.25fr);
  gap: 62px;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.collection-work-cover {
  display: block;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--ink-soft);
}
.collection-work-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity .2s ease, transform .25s ease;
}
.collection-work-cover:hover img,
.collection-work-cover:focus-visible img { opacity: .9; transform: scale(1.012); }
.collection-work-copy h3 { font-size: clamp(2.25rem, 5vw, 4.5rem); margin: 10px 0 12px; }
.collection-work-copy h3 a:hover { color: var(--muted); }
.work-state,
.work-meta,
.idea-count,
.path-label,
.theme-status {
  color: var(--stone);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.work-meta { color: var(--muted); }
.work-description { max-width: 690px; color: var(--paper-soft); font-size: 1.12rem; }
.collection-actions { margin-top: 32px; }

.collection-ideas-section { background: rgba(240,234,220,.018); }
.active-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.active-idea-card {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid var(--line);
  transition: background .18s ease;
}
.active-idea-card:first-child { padding-left: 0; }
.active-idea-card:last-child { border-right: 0; }
.active-idea-card:hover { background: rgba(240,234,220,.035); }
.active-idea-card h3 { margin: 48px 0 16px; font-size: clamp(2rem, 3.4vw, 3rem); }
.active-idea-card p { color: var(--muted); }
.idea-work {
  display: block;
  margin-top: 26px;
  color: var(--paper-soft);
  font-style: italic;
}

.collection-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.collection-path-card {
  min-height: 300px;
  padding: 31px;
  border-right: 1px solid var(--line);
}
.collection-path-card:first-child { padding-left: 0; }
.collection-path-card:last-child { border-right: 0; }
.collection-path-card h3 { margin: 45px 0 17px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.collection-path-card p { color: var(--muted); }
.collection-continuity { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collection-continuity .lede { margin-right: auto; margin-left: auto; }
.collection-standard { padding-bottom: 116px; }

.idea-directory {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.idea-directory a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.idea-directory a:hover,
.idea-directory a.is-active { background: rgba(240,234,220,.045); color: var(--paper); }
.idea-directory small { color: var(--stone); }
.idea-directory a.is-active small { color: var(--paper-soft); }

.active-themes-overview { background: rgba(240,234,220,.018); }
.theme-map {
  display: grid;
  grid-template-columns: minmax(170px,.8fr) 70px minmax(240px,1.15fr) 70px minmax(200px,1fr);
  align-items: center;
  margin-top: 48px;
}
.theme-map > a,
.theme-map-stack a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(240,234,220,.015);
}
.theme-map a:hover { background: rgba(240,234,220,.055); }
.theme-map span { display: block; color: var(--paper); font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; }
.theme-map small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.45; }
.theme-map-work { text-align: center; }
.theme-map-work span { font-size: 1.85rem; }
.map-line { height: 1px; background: var(--line-strong); }
.theme-map-stack { display: grid; gap: 12px; }

.priority-theme-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
}
.priority-theme-card {
  min-height: 240px;
  padding: 34px 36px 36px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.priority-theme-card:nth-child(even) { padding-left: 36px; border-left: 1px solid var(--line); }
.priority-theme-card.is-active { min-height: 360px; background: rgba(240,234,220,.018); }
.priority-theme-card h3 { margin: 8px 0 18px; font-size: clamp(2rem, 3.4vw, 3rem); }
.priority-theme-card > p { color: var(--muted); }
.theme-card-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.top-link {
  color: var(--stone);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .6rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.top-link:hover { color: var(--paper); }
.theme-work-link {
  display: block;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  transition: background .18s ease;
}
.theme-work-link:hover { background: rgba(240,234,220,.045); }
.theme-work-link strong { display: block; margin-bottom: 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; font-weight: 400; }
.theme-work-link span { display: block; color: var(--muted); }

.theme-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.theme-method-grid article { padding: 30px; border-right: 1px solid var(--line); }
.theme-method-grid article:first-child { padding-left: 0; }
.theme-method-grid article:last-child { border-right: 0; }
.theme-method-grid span { color: var(--stone); font-family: Arial, Helvetica, sans-serif; font-size: .64rem; letter-spacing: .12em; }
.theme-method-grid h3 { margin: 42px 0 15px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.theme-method-grid p { color: var(--muted); }

@media (max-width: 900px) {
  .idea-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-map { grid-template-columns: 1fr; gap: 14px; }
  .map-line { width: 1px; height: 26px; margin: 0 auto; }
  .theme-map-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 800px) {
  .priority4-section { padding: 76px 0; }
  .collection-summary { grid-template-columns: 1fr; max-width: none; }
  .collection-summary > div,
  .collection-summary > div:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .collection-summary > div:last-child { border-bottom: 0; }
  .collection-work-card { grid-template-columns: 1fr; gap: 38px; }
  .collection-work-cover { width: min(100%, 560px); }
  .active-idea-grid,
  .collection-path-grid,
  .priority-theme-index,
  .theme-method-grid { grid-template-columns: 1fr; }
  .active-idea-card,
  .active-idea-card:first-child,
  .collection-path-card,
  .collection-path-card:first-child,
  .theme-method-grid article,
  .theme-method-grid article:first-child {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .active-idea-card:last-child,
  .collection-path-card:last-child,
  .theme-method-grid article:last-child { border-bottom: 0; }
  .active-idea-card h3,
  .collection-path-card h3,
  .theme-method-grid h3 { margin-top: 22px; }
  .priority-theme-card,
  .priority-theme-card:nth-child(even) { min-height: 0; padding: 28px 0 30px; border-left: 0; }
  .priority-theme-card.is-active { min-height: 0; }
}

@media (max-width: 560px) {
  .idea-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-map-stack { grid-template-columns: 1fr; }
  .theme-card-heading { display: block; }
  .top-link { display: inline-block; margin-bottom: 10px; }
}
