/* Compact, explicitly selected information sections. Forms keep their own UI. */
.section-menu-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.section-menu-layout > .stack {
  display: contents;
}

.section-menu-item {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line, #e2e8f1);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

:not(.section-menu-layout):not(.stack) > .section-menu-item + .section-menu-item {
  margin-top: 12px;
}

.section-menu-item > .section-menu-heading {
  margin: 0;
  padding: 0;
  font: inherit;
  letter-spacing: normal;
}

.section-menu-toggle {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #243852;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.section-menu-toggle:hover {
  background: #f6f8fd;
}

.section-menu-toggle[aria-expanded="true"] {
  background: #edf3ff;
  color: #234fb5;
}

.section-menu-toggle:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #7399ff;
  outline-offset: -4px;
  border-radius: 10px;
}

.section-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f0f4fc;
  color: #5273aa;
}

.section-menu-toggle[aria-expanded="true"] .section-menu-icon {
  background: #dce8ff;
  color: #285de5;
}

.section-menu-icon .icon {
  width: 20px;
  height: 20px;
}

.section-menu-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.section-menu-title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.section-menu-meta {
  color: #65738a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.section-menu-meta:empty {
  display: none;
}

.section-menu-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #73839d;
  transition: transform .15s;
}

.section-menu-toggle[aria-expanded="true"] .section-menu-chevron {
  transform: rotate(90deg);
  color: #285de5;
}

.section-menu-body {
  min-width: 0;
  border-top: 1px solid #e2e8f1;
}

.section-menu-body[hidden] {
  display: none !important;
}

/* The menu row supplies the title; retain the original controls and data. */
.section-menu-body > :is(.panel-header, .submission-head) {
  padding: 12px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-menu-body > :is(.panel-header, .submission-head) :is(h2, h3, p) {
  display: none;
}

.section-menu-body > :is(.panel-header, .submission-head):not(:has(button, a, input, select, textarea)) {
  display: none;
}

.section-menu-body > :is(.panel-header, .submission-head) > .actions {
  margin-left: auto;
}

.section-menu-body > .panel-body {
  padding: 20px;
}

.section-menu-next-action {
  padding: 16px 20px;
  margin: 0 0 16px;
  width: 100%;
}

.section-menu-next-action .eyebrow {
  margin-bottom: 6px;
}

.section-menu-next-action h3 {
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.5;
}

.section-menu-next-action .action-meta {
  gap: 8px 18px;
  font-size: 12px;
}

@media (max-width: 600px) {
  .section-menu-toggle {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    min-height: 72px;
    padding: 13px 14px;
    gap: 10px;
  }

  .section-menu-icon {
    width: 32px;
    height: 32px;
  }

  .section-menu-title {
    font-size: 14px;
  }

  .section-menu-body > :is(.panel-header, .submission-head),
  .section-menu-body > .panel-body,
  .section-menu-next-action {
    padding: 14px;
  }

  .section-menu-body > :is(.panel-header, .submission-head) > .actions {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-menu-toggle,
  .section-menu-chevron {
    transition: none;
  }
}
