/* A single leading Back control shares the title's row; it never gets its own bar. */
.page-heading-row{display:flex;align-items:center;gap:.5rem;min-width:0;max-width:100%;margin:0 0 1rem}
.page-heading-row>h1,.page-heading-row>.page-heading-copy{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.page-heading-copy>h1{margin:0}
.page-heading-row :is(a,button).page-back{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);box-shadow:none;text-decoration:none;position:relative;cursor:pointer}
.page-heading-row :is(a,button).page-back[hidden]{display:none}
.page-heading-row :is(a,button).page-back::before{content:'';display:block;width:10px;height:10px;margin-left:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.page-back-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.page-heading-row :is(a,button).page-back:hover{background:var(--hover);text-decoration:none}
.page-heading-row :is(a,button).page-back:focus-visible{outline:3px solid var(--navigation-focus,var(--court2));outline-offset:2px}
.page-heading-row :is(a,button).page-back:active{background:var(--chipS)}
.page-heading-row .page-heading-actions{flex:0 1 auto;min-width:0;max-width:38%;margin-left:auto;white-space:normal;overflow-wrap:anywhere}
.page-heading-row #homeJourneyControls{display:contents}
.page-heading-row #homeJourneyControls[hidden]{display:none}
.page-heading-row:has(#homeJourneyTitle){flex:none}
@media(prefers-reduced-motion:no-preference){.page-heading-row :is(a,button).page-back{transition:background-color 140ms ease}}
@media(prefers-reduced-motion:reduce){.page-heading-row :is(a,button).page-back{transition:none}}
@media print{.page-heading-row :is(a,button).page-back{display:none}}
/* Keep small-screen gutters stable when text grows; the Back target supplies its own icon spacing. */
@media(max-width:420px){#list:has(>.lhead .page-heading-row){padding-inline:16px}.lhead .page-heading-row{column-gap:0}.lhead .page-heading-row>h1{font-size:1.375rem;overflow-wrap:normal}}
@media(max-width:420px){.clubhouse{padding-inline:16px}.club-heading .page-heading-row{column-gap:0}.club-heading .page-heading-row>h1{font-size:1.25rem;overflow-wrap:normal}}
/* Compact task titles stay readable at enlarged text sizes without splitting words. */
@media(max-width:420px){
  .casual-main,.planner-main{padding-inline:16px}
  :is(.account-main,.casual-main,.planner-main,.organize-main,.payments-main,.home-main) .page-heading-row{column-gap:0}
  :is(.account-main,.casual-main,.planner-main,.organize-main,.payments-main) .page-heading-row h1,
  .home-main .page-heading-row:has(.page-back:not([hidden])) h1{font-size:1.25rem;overflow-wrap:normal;hyphens:manual}
}

/* One shared Home-aligned shell. Page content may be intentionally bounded,
   but the shell, title, and Back anchor must not drift between journeys. */
.journey-shell{box-sizing:border-box;width:100%;max-width:var(--ganak-shell-max);margin:0 auto;padding:1.5rem var(--ganak-shell-gutter) 2rem}
.journey-shell>:not(.page-heading-row):not(.planner-heading){max-width:var(--journey-content-width,44rem)}
.journey-shell .page-heading-row h1{font-size:var(--ganak-journey-title);line-height:1.15;letter-spacing:-.035em}
@media(max-width:700px){.journey-shell{padding-top:1rem;padding-inline:12px}}
@media(max-width:420px){.journey-shell .page-heading-row h1{font-size:var(--ganak-journey-title)}}
@media(max-width:420px){.planner-main{padding-inline:var(--ganak-shell-gutter)}:is(.home-main,.planner-main,.organize-main) .page-heading-row h1{font-size:var(--ganak-journey-title);overflow-wrap:normal;hyphens:manual}}
@media(max-width:380px) and (max-height:700px){.journey-shell{padding-top:.5rem}}
@media(max-width:650px){.casual-main.journey-shell{padding-bottom:calc(6.5rem + env(safe-area-inset-bottom,0px))}}

.account-main.journey-shell{--journey-content-width:560px}
.auction-page.journey-shell{--journey-content-width:100%}
