/* White-sheet navigation: shared inventory, different desktop/mobile entry points. */
.cfm-v4-footer-nav a.cfm-v4-footer-rss { display: flex; align-items: center; gap: 8px; }
.cfm-v4-footer-rss .cfm-v4-icon { width: 18px; height: 18px; flex: none; }

.cfm-sheet-rubrics h2,
.cfm-sheet-heading > span {
  margin: 0 0 14px;
  color: #187359;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: 0;
}

.cfm-sheet-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cfm-sheet-categories a {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: none;
  color: #1d2522;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  letter-spacing: 0;
  overflow-wrap: normal;
  transition: color 180ms ease;
}

.cfm-sheet-categories a:hover,
.cfm-sheet-categories a[aria-current="page"],
.cfm-sheet-topics a:hover {
  color: #0c7956;
  background: none;
}

.cfm-sheet-navigator {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.cfm-sheet-navigator summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  color: #187359;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.cfm-sheet-navigator summary::-webkit-details-marker { display: none; }
.cfm-sheet-navigator summary svg { width: 18px; height: 18px; flex: none; transition: transform 240ms ease; }
.cfm-sheet-navigator[open] summary svg { transform: rotate(180deg); }
.cfm-sheet-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; padding: 12px 0 2px; }
.cfm-sheet-topics a { display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 7px 0; color: #303e37; font-size: 14px; font-weight: 450; line-height: 1.4; text-decoration: none; }
.cfm-sheet-shortcuts { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 24px; }
.cfm-sheet-shortcuts a { display: flex; align-items: center; min-height: 44px; color: #4c5d54; font-size: 15px; font-weight: 450; text-decoration: none; }
.cfm-sheet-shortcuts a:last-child { flex-basis: 100%; }
.cfm-sheet-categories a:focus-visible,
.cfm-sheet-topics a:focus-visible,
.cfm-sheet-shortcuts a:focus-visible,
.cfm-sheet-navigator summary:focus-visible { outline: 2px solid #187359; outline-offset: 3px; border-radius: 2px; }

.cfm-v4-sections-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 156px);
  max-height: var(--cfm-sheet-available-height, calc(100dvh - 156px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e7e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 54px rgb(22 36 29 / 13%);
  transform: translate3d(-18px, -4px, 0);
  transition: transform 360ms cubic-bezier(.22,1,.36,1), opacity 220ms ease, visibility 0s linear 360ms;
}
.cfm-v4-sections.is-open .cfm-v4-sections-panel { transform: translate3d(0,0,0); }
.cfm-v4-sections-panel > * { opacity: 1; transform: none; transition: none; }
.cfm-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px 4px 26px; flex: none; }
.cfm-sheet-heading > span { margin: 0; color: #6a776f; }
.cfm-v4-sections-panel .cfm-v4-sections-close { position: static; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #24332b; }
.cfm-v4-sections-close svg { width: 24px; height: 24px; }
.cfm-v4-sections-close:hover { background: #edf4f0; }
.cfm-sheet-scroll { min-height: 0; padding: 4px 26px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cfm-v4-sections-panel .cfm-sheet-rubrics h2 { display: none; }

@media (max-width: 480px) {
  .cfm-v4-mobile-panel { opacity: 1; background: transparent; backdrop-filter: none; transition: visibility 0s linear 420ms; }
  .cfm-v4-mobile-panel[aria-hidden="false"] { transition-delay: 0s; }
  .cfm-v4-mobile-drawer { width: 100%; max-width: none; border-radius: 0; background: #fff; box-shadow: none; }
  .cfm-v4-mobile-drawer-header { min-height: 88px; padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(24px, env(safe-area-inset-left)); border: 0; }
  .cfm-v4-mobile-drawer-logo { width: 184px; max-width: calc(100% - 64px); }
  .cfm-v4-mobile-drawer-logo img { max-height: none; }
  .cfm-v4-mobile-drawer-close { border-radius: 4px; background: transparent; }
  .cfm-v4-mobile-drawer-close .cfm-v4-icon { width: 26px; height: 26px; }
  .cfm-v4-mobile-drawer-close:hover { background: #edf4f0; }
  .cfm-v4-mobile-drawer-body { padding: 10px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); scrollbar-gutter: auto; scrollbar-width: thin; }
  .cfm-v4-mobile-drawer-body > *,
  .cfm-v4-mobile-panel[aria-hidden="false"] .cfm-v4-mobile-drawer-body > * { opacity: 1; transform: none; animation: none; }
  .cfm-v4-mobile-drawer .cfm-sheet-categories a { min-height: 49px; font-size: 24px; }
  .cfm-v4-mobile-drawer .cfm-v4-mobile-social-row { margin-top: 30px; padding-top: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cfm-v4-sections-panel,
  .cfm-v4-mobile-panel,
  .cfm-v4-mobile-drawer,
  .cfm-sheet-navigator summary svg { transition: none; }
}
