/* My Peak Checklists: page-only layout using the shared site-pages palette.
   Native details and semantic lists work without JavaScript. */
body.page:has(.peak-checklists) .entry-header {
  box-sizing: border-box;
  max-width: calc(64rem + 48px);
  margin: 0 auto;
  padding: 2.8rem 24px 1rem;
  align-items: flex-start;
  text-align: left;
  min-height: 0;
  justify-content: flex-start;
}

body.page:has(.peak-checklists) .entry-header h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--page-text);
  font-size: clamp(2.7rem, 5.2vw, 4.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
}

/* Use one shared gutter for the native hero and the checklist body. */
body.page.content-title-style-above:has(.peak-checklists) :is(.hero-container.site-container, .content-container.site-container) { padding-inline: 0; }
body.page.content-title-style-above:has(.peak-checklists) .content-area { margin-top: 0; }
body.page:has(.peak-checklists) .entry-content-wrap { padding: 0; }
body.page:has(.peak-checklists) .entry.single-entry { margin-inline: 0; box-shadow: none; }
.page .entry-content:has(> .peak-checklists) { margin-top: 0; padding: 12px 24px 32px; }

.page .peak-checklists,
.page .peak-checklists * { box-sizing: border-box; }

.page .peak-checklists {
  width: 100%;
  max-width: 64rem !important;
  margin: 0 auto !important;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

/* Classic WordPress wraps the outer Group's children in a neutral div.
   Descendant selectors work with either form; no semantic box is flattened. */
.page .peak-checklists > .wp-block-group__inner-container { min-width: 0; }

.page .peak-checklists a {
  color: var(--page-accent);
  text-underline-offset: .23em;
  text-decoration-thickness: 1px;
}

.page .peak-checklists a:hover { text-decoration-thickness: 2px; }
.page .peak-checklists :is(a, summary):focus-visible {
  outline: 3px solid var(--page-accent);
  outline-offset: 5px;
}

.page .peak-checklists .peak-intro {
  max-width: 40rem;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.65;
  color: var(--page-muted);
}

.page .peak-checklists .peak-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 3rem;
}

.page .peak-checklists .peak-jumps a {
  padding: .6rem 1rem;
  border: 1px solid var(--page-line);
  border-radius: 100px;
  background: var(--page-surface);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.page .peak-checklists .peak-jumps a:hover { border-color: var(--page-accent); }
.page .peak-checklists .peak-section { margin: 0 0 3.5rem; scroll-margin-top: 1.5rem; }
.page .peak-checklists .peak-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.page .peak-checklists h2 {
  margin: 0;
  color: var(--page-text);
  font-size: clamp(1.65rem, 2.7vw, 2.05rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
  transform: none;
}

.page .peak-checklists .peak-count {
  margin: 0;
  color: var(--page-accent);
  font-size: .9rem;
  white-space: nowrap;
}

.page .peak-checklists .peak-count strong {
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -.035em;
}

.page .peak-checklists .peak-section-context {
  max-width: 45rem;
  margin: 0 0 1.2rem;
  color: var(--page-muted);
  font-size: .88rem;
}

.page .peak-checklists .peak-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page .peak-checklists .peak-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(10rem, 22rem);
  column-gap: 1.5rem;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius-soft);
  background: var(--page-surface);
  scroll-margin-top: 1.5rem;
}

.page .peak-checklists .peak-row > * { min-width: 0; }
.page .peak-checklists .peak-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--page-accent);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.page .peak-checklists .peak-check {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .55rem;
  background: var(--page-accent);
  color: var(--page-surface);
  font-size: 1.4rem;
  line-height: 1;
}

.page .peak-checklists .peak-name {
  margin: 0 0 .35rem;
  color: var(--page-text);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  transform: none;
}

.page .peak-checklists .peak-date { margin: 0; color: var(--page-muted); font-size: .82rem; }
.page .peak-checklists .peak-report {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
}

.page .peak-checklists .peak-remaining {
  margin: 1rem 0 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--page-line);
}

.page .peak-checklists .peak-remaining summary {
  width: fit-content;
  padding: .4rem 0;
  color: var(--page-accent);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.page .peak-checklists .peak-remaining ul {
  columns: 3;
  column-gap: 2rem;
  margin: 1rem 0 .35rem;
  padding: 0;
  list-style: none;
}

.page .peak-checklists .peak-remaining li {
  break-inside: avoid;
  margin: 0;
  padding: .3rem 0;
  color: var(--page-muted);
  font-size: .88rem;
}

.page .peak-checklists .peak-remaining li::before {
  content: '';
  display: inline-block;
  width: .55rem;
  height: .55rem;
  margin-right: .65rem;
  border: 1px solid var(--page-accent);
  border-radius: 50%;
}

.page .peak-checklists .sr-context {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page .peak-checklists .peak-note {
  max-width: 46rem;
  margin-top: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--page-line);
  scroll-margin-top: 1.5rem;
}

.page .peak-checklists .peak-note h2 { margin-bottom: 1rem; font-size: 1.25rem; line-height: 1.25; }
.page .peak-checklists .peak-note p { margin: 0 0 .9rem; color: var(--page-muted); font-size: .9rem; line-height: 1.7; }

@media (max-width: 760px) {
  .page .peak-checklists .peak-row { grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1rem; }
  .page .peak-checklists .peak-report { grid-column: 2; margin-top: .6rem; text-align: left; }
  .page .peak-checklists .peak-status { grid-row: 1 / 3; }
  .page .peak-checklists .peak-remaining ul { columns: 2; }
  .page .peak-checklists .peak-section-header { flex-wrap: wrap; gap: .35rem; }
  .page .peak-checklists .peak-jumps { margin-bottom: 2.4rem; }
}

@media (max-width: 440px) {
  body.page:has(.peak-checklists) .entry-header { padding: 2rem 20px 1rem; }
  .page .entry-content:has(> .peak-checklists) { padding-inline: 20px; }
  .page .peak-checklists .peak-row { grid-template-columns: 3rem minmax(0, 1fr); column-gap: .75rem; padding: 1.1rem 1rem; }
  .page .peak-checklists .peak-remaining ul { columns: 1; }
  .page .peak-checklists .peak-section { margin-bottom: 2.6rem; }
  .page .peak-checklists .peak-jumps a { padding: .55rem .8rem; font-size: .83rem; }
  .page .peak-checklists .peak-name { font-size: 1.15rem; }
}
