/* CampToMe V8B.4. Camper workspace tabs; no changes to business logic. */
body.role-camper .ctm8b4-workspace-header {padding:18px 0 0;box-sizing:border-box}
body.role-camper .ctm8b4-workspace-inner {
  box-sizing:border-box; width:min(1420px,calc(100% - 32px))!important;
  max-width:none!important;margin:0 auto!important;padding:16px 16px 0!important;
  background:#fff;border:1px solid #d9e4ec;border-radius:21px 21px 0 0;
  box-shadow:0 16px 36px rgba(6,38,61,.065);
}
body.role-camper .ctm8b4-hero {
  padding:24px 27px 23px;border-radius:16px;color:#fff;
  background:#0a314a;
  background-image:linear-gradient(105deg,rgba(5,38,59,.96) 0%,rgba(5,42,67,.93) 65%,rgba(9,66,94,.85) 100%);
}
body.role-camper .ctm8b4-kicker {font-size:10px;font-weight:900;letter-spacing:.11em;color:#ffad72}
body.role-camper .ctm8b4-hero h2 {margin:5px 0 4px;color:#fff;font-size:29px;line-height:1.12;letter-spacing:-.7px}
body.role-camper .ctm8b4-hero p {margin:0;color:#d3e3ed;font-size:12px;line-height:1.55}
body.role-camper .ctm8b4-tabs {display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 14px;border-bottom:1px solid #dae5eb}
body.role-camper .ctm8b4-tab {appearance:none;border:1px solid #cfdee8;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:#fff;color:#113b55;cursor:pointer;padding:10px 14px;min-height:40px;
  font:inherit;font-size:12px;font-weight:850;white-space:nowrap}
body.role-camper .ctm8b4-tab:hover{background:#f3f8fb;border-color:#a5c0d0}
body.role-camper .ctm8b4-tab[aria-selected="true"]{background:#083751;border-color:#083751;color:#fff}
body.role-camper .ctm8b4-tab:focus-visible{outline:3px solid #ffac73;outline-offset:2px}
body.role-camper .ctm8b4-badge{display:inline-grid;place-items:center;min-width:19px;min-height:19px;padding:0 5px;
  box-sizing:border-box;border-radius:99px;background:#ffecdd;color:#99400d;font-size:11px;font-weight:900}
body.role-camper .ctm8b4-badge[hidden],body.role-camper .ctm8b4-badge:empty{display:none!important}
/* Old two-location navigation becomes redundant, its underlying page functionality remains. */
body.role-camper #camper-area .ctm8b-quicknav,
body.role-camper #camperFavoritesPage .ctm8b-quicknav{display:none!important}
body.role-camper #camper-area {padding-top:0!important;padding-bottom:0!important}
body.role-camper #camper-area>.container {padding-top:12px!important;padding-bottom:20px!important}
/* One content at a time, controlled by the same active tab state. */
body.role-camper.ctm8b4-camper-news #camper-area .camper-trip-creator,
body.role-camper.ctm8b4-camper-news #camper-area .dashboard-shell,
body.role-camper.ctm8b4-camper-requests #ctmNotificationsCamper{display:none!important}
body.role-camper.ctm8b4-camper-favorites #camper-area{display:none!important}
body.role-camper:not(.ctm8b4-camper-favorites) #camperFavoritesPage{display:none!important}
/* Keep the entire news feed on the same grid instead of nesting a second unrelated card. */
body.role-camper.ctm8b4-camper-news #ctmNotificationsCamper{
  box-sizing:border-box; width:100%!important;max-width:none!important;margin:0!important;
  border-radius:0 0 18px 18px!important;box-shadow:none!important;
  padding:10px 16px 18px!important;background:#fff!important;
}
body.role-camper.ctm8b4-camper-news #camper-area>.container{
  border:1px solid #d9e4ec;border-top:0;border-radius:0 0 21px 21px;background:#fff;
  box-shadow:0 15px 36px rgba(6,38,61,.065);padding:12px 16px 20px!important;
}
/* Favorite view: unchanged original design, now aligned under the shared top bar. */
body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage{
  padding:0 0 22px!important; margin:0!important;min-height:0!important;
}
body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage>.container{
  box-sizing:border-box!important;width:min(1420px,calc(100% - 32px))!important;
  max-width:none!important;margin:0 auto!important;padding:12px 0 0!important;
}
body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage .ctm-favorites{width:100%!important;max-width:none!important}
body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage .ctm-favorites>.ctm-favorites-header{padding:20px 26px!important}
body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage .ctm-favorites>.ctm-favorites-content{padding:19px 26px 20px!important;gap:22px!important}
/* Only one large navy hero per view: make the existing request-list heading compact. */
body.role-camper.ctm8b4-camper-requests .camper-workflow-head {
  background:#fff!important;color:#113b55!important;border-radius:16px 16px 0 0!important;
  border-bottom:1px solid #dde7ed!important;box-shadow:none!important;
}
body.role-camper.ctm8b4-camper-requests .camper-workflow-head h3{color:#123851!important;font-size:19px!important}
body.role-camper.ctm8b4-camper-requests .camper-workflow-head small{color:#657f90!important}
body.role-camper.ctm8b4-camper-requests .camper-workflow-head .workflow-eyebrow{color:#de6a21!important}
/* The original V8B.1 area scrolls to requests after tapping the shared main navigation.
   No automatic scrolling is required when clicking the three local tabs. */
@media(max-width:760px){
 body.role-camper .ctm8b4-workspace-inner,
 body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage>.container{width:calc(100% - 24px)!important}
 body.role-camper .ctm8b4-workspace-inner{padding:10px 10px 0!important}
 body.role-camper .ctm8b4-hero{padding:19px 17px}
 body.role-camper .ctm8b4-hero h2{font-size:23px}
 body.role-camper .ctm8b4-tab{white-space:normal;padding:9px 11px;font-size:11px}
}
@media(max-width:520px){
 body.role-camper .ctm8b4-workspace-inner,
 body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage>.container{width:calc(100% - 20px)!important}
 body.role-camper .ctm8b4-tabs{gap:6px}
 body.role-camper .ctm8b4-tab{flex:1 1 auto}
 body.role-camper.ctm8b4-camper-news #camper-area>.container{padding:10px!important}
 body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage .ctm-favorites>.ctm-favorites-header{padding:17px 18px!important}
 body.role-camper.ctm8b4-camper-favorites #camperFavoritesPage .ctm-favorites>.ctm-favorites-content{padding:16px 18px!important}
}

/* V8B.4.1: Favorites legacy isolation hides all main siblings (including our new tabs).
   Preserve legacy isolation but explicitly keep the shared My Trips header visible.
   This rule must beat ctm-favorites-navigation-v2.css's :not(#camperFavoritesPage). */
body.role-camper.app-favorites main > section#ctm8b4WorkspaceHeader.ctm8b4-workspace-header {
  display:block!important;
  visibility:visible!important;
}
