/* Compact choices and optional detail on the resources, tools and team pages. */
.knowledge-page .knowledge-intro {
  padding-block: 28px 20px;
}

.knowledge-page #explore {
  padding-top: 20px;
}

.knowledge-page .knowledge-section {
  scroll-margin-top: 90px;
}

.knowledge-page .knowledge-topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 9px 14px;
  min-height: 128px;
  padding: 18px;
}

.knowledge-page .knowledge-topic-icon {
  grid-row: auto;
  width: 36px;
  height: 36px;
  margin: 0;
}

.knowledge-page .knowledge-topic-icon svg {
  width: 30px;
  height: 30px;
}

.knowledge-page .knowledge-topic-copy {
  grid-column: 1;
}

.knowledge-page .knowledge-topic h3 {
  margin: 0 0 2px;
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
}

.knowledge-page .knowledge-topic p {
  margin: 0;
  font-size: .9rem;
}

.knowledge-topic-arrow {
  grid-column: 2;
  grid-row: 2;
  color: var(--dawn-gold-hover);
  font-size: 1.25rem;
}

.knowledge-page .knowledge-tools > a {
  min-height: 62px;
  padding-block: 10px;
}

.knowledge-page .knowledge-tools strong {
  flex: 1;
  min-width: 0;
}

.knowledge-page .knowledge-tool-number {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.knowledge-page .knowledge-reading a {
  min-height: 48px;
  padding-block: 9px;
}

.team-directory-section .team-department-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  border-top: 1px solid var(--dawn-line);
}

.team-directory-section .team-department-head h2 {
  margin: 0;
  font-size: clamp(1.17rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.team-directory-section .team-department-detail {
  max-width: 40ch;
}

.team-directory-section .team-card-content {
  align-content: start;
  gap: 4px;
  padding: 14px 14px 10px;
}

.team-directory-section .team-card-member-role {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.45;
}

.team-directory-section :is(.team-member-detail, .team-department-detail) p {
  margin: 0 0 8px;
  font-size: .87rem;
  line-height: 1.6;
}

:is(.resource-disclosure, .team-member-detail, .team-department-detail) > summary {
  min-height: 44px;
  padding-block: 10px;
  color: var(--dawn-gold-hover);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

:is(.resource-disclosure, .team-member-detail, .team-department-detail) > summary:focus-visible,
.calc-result-jump:focus-visible {
  outline: 2px solid var(--dawn-gold-hover);
  outline-offset: 2px;
}

.lp-settings {
  border-top: 1px solid var(--dawn-line);
}

.lp-layout :is(.lp-note, .lp-settings),
.lp-card #lp-err:not(:empty) {
  margin-top: 10px;
}

.lp-card.resource-disclosure:not([open]) {
  padding-block: 4px;
}

.cc-head > p {
  margin: 5px 0 0;
}

.cc-table-unit {
  margin: 0 0 6px;
}

body.public-page #main .cc-disc.resource-disclosure {
  margin: 18px 0 0;
  padding-block: 4px;
}

.cc-disc.resource-disclosure p {
  margin: 0 0 10px;
}

.calc-result-jump {
  display: none;
}

.calc-tool-actions {
  display: flex;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 8px;
}

.calc-tool-actions #calc-reset {
  min-height: 44px;
}

.calc-tool-actions #calc-reset:disabled {
  opacity: .58;
  cursor: not-allowed;
}

#calc-result-panel {
  scroll-margin-top: 90px;
}

.calc-result-total {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.calc-result-total > span {
  color: var(--muted);
  font-size: .88rem;
}

.calc-result-detail {
  border-top: 1px solid var(--dawn-line);
}

.calc-result-detail .calc-breakdown {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .calc-result-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--dawn-gold-hover);
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .knowledge-page .knowledge-intro {
    padding-block: 20px 14px;
  }

  .knowledge-page #explore {
    padding-top: 14px;
  }

  .knowledge-page .knowledge-topic {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 70px;
    padding: 12px 14px;
  }

  .knowledge-page .knowledge-topic-icon,
  .knowledge-page .knowledge-topic-copy,
  .knowledge-page .knowledge-topic-arrow {
    grid-row: 1;
  }

  .knowledge-page .knowledge-topic-icon { grid-column: 1; }
  .knowledge-page .knowledge-topic-copy { grid-column: 2; min-width: 0; }
  .knowledge-page .knowledge-topic-arrow { grid-column: 3; }

  .team-directory-section .team-department-head {
    grid-template-columns: minmax(0, 1fr);
  }
}
